公寓列表改为4列
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user