公寓列表改为4列

This commit is contained in:
A1300399510
2024-11-12 19:11:11 +08:00
parent d3c9439871
commit 62db4c21e8
24 changed files with 66 additions and 91 deletions

View File

@@ -8,7 +8,7 @@
<div class="list wid1200 flexflex" ref="gridContainer">
<template v-if="list.length != 0">
<apartment-item v-for="(item, index) in list" :key="index" :item="item" :pitchValue="pitchValue" @handlecollect="handlecollect"></apartment-item>
<apartment-item v-for="(item, index) in list" :key="index" :item="item" :pitchValue="pitchValue" :masonryInstance="masonryInstance" @handlecollect="handlecollect"></apartment-item>
</template>
</div>
@@ -72,7 +72,7 @@ onMounted(() => {
// 初始化瀑布流
masonryInstance = new Masonry(gridContainer.value, {
itemSelector: ".item",
gutter: 20,
gutter: 15,
})
// masonryInstanceMore = new Masonry(moreShowList.value, {