diff --git a/app/components/waterfallFlow/index.vue b/app/components/waterfallFlow/index.vue
index 2cf412b..cfc506c 100644
--- a/app/components/waterfallFlow/index.vue
+++ b/app/components/waterfallFlow/index.vue
@@ -11,7 +11,6 @@
:key="item.id"
class="waterfall-item"
>
-
@@ -35,19 +34,15 @@ const props = defineProps({
const columns = ref([])
-// 计算每列的内容
const calculateColumns = () => {
const cols = Array.from({ length: props.columnCount }, () => [])
props.items.forEach((item, index) => {
- // 将项目添加到高度最小的列中
const columnIndex = index % props.columnCount
cols[columnIndex].push(item)
})
columns.value = cols
}
-
-// 监听items变化重新计算列
watch(() => props.items, () => {
calculateColumns()
}, { deep: true })
diff --git a/app/components/x-van-date/index.vue b/app/components/x-van-date/index.vue
index 7acabd5..0c2299e 100644
--- a/app/components/x-van-date/index.vue
+++ b/app/components/x-van-date/index.vue
@@ -1,7 +1,6 @@