Files

31 lines
859 B
TypeScript
Raw Permalink Normal View History

2026-02-10 08:05:03 +08:00
/* 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: () => ({}),
},
};