File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function handleLoadComplete() {
42
42
```
43
43
44
44
<script setup >
45
- import { ref } from ' vue'
45
+ import { ref } from ' vue'
46
46
const waterfallList = ref ([
47
47
{
48
48
id: 1 ,
@@ -60,25 +60,7 @@ function handleItemClick(item, index) {
60
60
console .log (' 点击了项目:' , item, index)
61
61
}
62
62
</script >
63
- ```
64
63
65
- ## 自定义内容渲染
66
-
67
- ```vue
68
- <template>
69
- <up-waterfall
70
- :list="waterfallList"
71
- :column="2"
72
- >
73
- <template #default="{ item }">
74
- <view class="item-content">
75
- <text class="item-title">{{ item.title }}</text>
76
- <text class="item-desc">{{ item.desc }}</text>
77
- </view>
78
- </template>
79
- </up-waterfall>
80
- </template>
81
- ```
82
64
83
65
## 自定义列数
84
66
@@ -252,12 +234,12 @@ interface WaterfallItem {
252
234
| resetWaterfall | 重置瀑布流 | ` (list: WaterfallItem[]) ` |
253
235
| appendNewData | 追加新数据 | ` (newItems: WaterfallItem[]) ` |
254
236
255
- ## 样式变量
237
+ <!-- ## 样式变量
256
238
257
239
组件提供了下列 CSS 变量,可用于自定义样式。
258
240
259
241
| 名称 | 默认值 | 描述 |
260
242
|------|--------|------|
261
243
| --up-waterfall-item-margin | `30rpx` | 项目间距 |
262
244
| --up-waterfall-item-radius | `12rpx` | 项目圆角 |
263
- | --up-waterfall-item-shadow | ` 0rpx 3rpx 6rpx rgba(0, 46, 37, 0.08) ` | 项目阴影 |
245
+ | --up-waterfall-item-shadow | `0rpx 3rpx 6rpx rgba(0, 46, 37, 0.08)` | 项目阴影 | -->
You can’t perform that action at this time.
0 commit comments