Files
mini-yu/uni_modules/tdesign-uniapp/components/sticky/props.ts
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

31 lines
859 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import type { TdStickyProps } from './type';
export default {
/** 函数返回容器对应的 NodesRef 节点,将对应节点指定为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置 */
container: {
type: Function,
},
/** 是否禁用组件 */
disabled: Boolean,
/** 吸顶时与顶部的距离,单位`px` */
offsetTop: {
type: [String, Number],
default: 0 as TdStickyProps['offsetTop'],
},
/** 吸顶时的 z-index */
zIndex: {
type: Number,
default: 99,
},
/** 滚动时触发scrollTop: 距离顶部位置isFixed: 是否吸顶 */
onScroll: {
type: Function,
default: () => ({}),
},
};