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