{{ slotProps.data.color
}}
}}
npm install @fcli/vue-grid-waterfall
bash
npm install @fcli/vue-grid-waterfall --save-dev 来安装
在项目中使用
import VueGridWaterfall from '@fcli/vue-grid-waterfall';
const app=createApp(App)
app.use(VueGridWaterfall);
`
示例:
`html
{{ slotProps.data.color
}}
`
| 属性 | 属性名称 | 类型 | 可选值 |
| ------ | -------- | ------ | ------ |
| dataList | 瀑布流列表数据 | Array | [] |
| columns | 展示的列数 | number | 2 |
| width | 瀑布流宽度 | number | 0 |
| height | 瀑布流高度 | number | 0 |
| bottom | 滚动到底部触发加载数据的距离 | number | 50 |
| loading | 是否加在载数据 | boolean | 加载数据完数据设为false |
| #slot-scope | 插槽 | object | slotProps.data|
#### slot
例:
`
{{ slotProps.data.text }}
``