jufubao-base 1.0.226 → 1.0.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
v-if="config['isCarousel'] === false"
|
|
10
10
|
:style="[notCarouselComp,{'--title-height':titleHeight}]"
|
|
11
11
|
>
|
|
12
|
+
|
|
12
13
|
<view
|
|
13
14
|
v-for="item in list"
|
|
14
15
|
:key="item['content_id']"
|
|
@@ -181,7 +182,12 @@
|
|
|
181
182
|
return (this.config['mode'] === 'normal'?0:48) * this.$rpxNum;
|
|
182
183
|
},
|
|
183
184
|
getContHeight() {
|
|
184
|
-
let realRow =
|
|
185
|
+
let realRow = this.config['row'];
|
|
186
|
+
|
|
187
|
+
if(this.list.length === 1) {
|
|
188
|
+
this.list[0] = this.list[0].splice(0,5);
|
|
189
|
+
realRow = Math.ceil(this.list[0].length/this.config.column);
|
|
190
|
+
}
|
|
185
191
|
//数量小于等于1,2行
|
|
186
192
|
if(realRow < 3) {
|
|
187
193
|
return this.height * realRow;
|
|
@@ -238,7 +244,7 @@
|
|
|
238
244
|
this.h5key = Date.now()
|
|
239
245
|
}
|
|
240
246
|
|
|
241
|
-
},
|
|
247
|
+
}, 100)
|
|
242
248
|
},
|
|
243
249
|
|
|
244
250
|
handleClick(item) {
|