jufubao-base 1.0.233 → 1.0.234

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.233",
3
+ "version": "1.0.234",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -29,6 +29,7 @@
29
29
  </view>
30
30
  </view>
31
31
  <view class="sreen__box carousel" v-if="config['isCarousel'] === true">
32
+
32
33
  <xd-swiper-dot
33
34
  :current="current"
34
35
  :info="list"
@@ -172,8 +173,10 @@
172
173
  return parseInt(this.config.titleStyle.lineHeight)+'rpx'
173
174
  },
174
175
  notCarouselComp(){
176
+ let rowMaxHeight = this.height * this.config.row;
177
+ let trueDataHeight = Math.ceil(this.content.length/this.config.column) * this.height;
175
178
  return {
176
- height: this.height * this.config.row + 'px'
179
+ height: Math.min(rowMaxHeight, trueDataHeight) + 'px'
177
180
  }
178
181
  },
179
182
  getIndexHeigth(){
@@ -181,18 +184,15 @@
181
184
  return (this.config['mode'] === 'normal'?0:48) * this.$rpxNum;
182
185
  },
183
186
  getContHeight() {
184
- let realRow = this.config['row'];
185
-
187
+ //当只有一屏时候需要判断是否满屏
186
188
  if(this.list.length === 1) {
187
- this.list[0] = this.list[0].splice(0,5);
188
- realRow = Math.ceil(this.list[0].length/this.config.column);
189
+ let trueRow = Math.ceil(this.list[0].length/this.config.column);
190
+ return this.height * Math.min(this.config.row,trueRow);
189
191
  }
190
- //数量小于等于1,2行
191
- if(realRow < 3) {
192
- return this.height * realRow;
193
- }
194
- return this.height * this.config['row'];
192
+ //多屏幕情况
193
+ return this.height * this.config.row;
195
194
  },
195
+
196
196
  boxHeight(){
197
197
  return this.height + this.$rpxNum * this.text;
198
198
  }