Skip to content

Waterfall

Waterfall / Masonry layout component with multi-column uneven arrangement, commonly used for image lists, product displays, and more.

Platform Compatibility

App(vue)App(nvue)H5Mini Program

Code Examples

Basic Usage

html
<see-waterfall :list="list" />

3-Column Waterfall

html
<see-waterfall :list="list" :columns="3" gap="12rpx" />

Custom Item Slot

html
<see-waterfall :list="list">
  <template #item="{ item }">
    <view class="custom-item">
      <image :src="item.image" mode="widthFix" />
      <text>{{ item.title }}</text>
    </view>
  </template>
</see-waterfall>

Load More

html
<see-waterfall :list="list" has-more @on-load-more="onLoadMore" />

API

Props

PropertyDescriptionTypeDefaultOptions
listWaterfall dataWaterfallItem[][]-
columnsNumber of columnsnumber2-
gapColumn gapstring'16rpx'CSS gap value
hasMoreShow load more indicatorbooleanfalsetrue / false

WaterfallItem

PropertyDescriptionTypeDefault
idUnique identifierstring | number-
imageImage URLstring-
titleTitlestring-
heightHeight (for pre-allocation, in rpx)number-

Events

Event NameDescriptionCallback Parameters
onLoadMoreTriggered when loading more-
onClickTriggered when an item is clicked(item: WaterfallItem, index: number)

Slots

NameDescriptionScope
itemCustom item content{ item, index }
footerCustom footer load area-

Liao ICP No. 2025070134