pet/uni_modules/uview-next/components/u-waterfall/props.js

35 lines
940 B
JavaScript
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.

export default {
props: {
// #ifdef VUE2
value: {
// 瀑布流数据
type: Array,
default: () => uni.$u.props.waterfall.value
},
// #endif
// #ifdef VUE3
modelValue: {
// 瀑布流数据
type: Array,
default: () => uni.$u.props.waterfall.value
},
// #endif
// 每次向结构插入数据的时间间隔,间隔越长,越能保证两列高度相近,但是对用户体验越不好
// 单位ms
addTime: {
type: [Number, String],
default: () => uni.$u.props.waterfall.addTime
},
// id值用于清除某一条数据时根据此idKey名称找到并移除如数据为{idx: 22, name: 'lisa'}
// 那么该把idKey设置为idx
idKey: {
type: String,
default: () => uni.$u.props.waterfall.idKey
},
// 瀑布流的列数,不可动态修改
column: {
type: [Number, String],
default: () => uni.$u.props.waterfall.column
}
}
}