mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1.6 KiB
1.6 KiB
Waterfall 瀑布流
基础用法
:::demo 基础用法
<div class="waterfall">
<div
v-waterfall-lower="loadMore"
v-waterfall-upper="loadMoreUpper"
waterfall-disabled="isWaterfallDisabled"
waterfall-offset="400"
>
<div
class="waterfall-item"
v-for="item in list"
style="text-align: center;"
>
{{ item }}
</div>
<div v-if="loading" style="text-align: center;">
loading
</div>
</div>
</div>
:::
API
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
waterfall-disabled | 在vue对象中表示是否禁止瀑布流触发的key值 | string |
- | |
waterfall-offset | 触发瀑布流加载的阈值 | number |
300 |