first commit
This commit is contained in:
30
uni_modules/tdesign-uniapp/components/sticky/props.ts
Normal file
30
uni_modules/tdesign-uniapp/components/sticky/props.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/* 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: () => ({}),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user