jufubao-base 1.0.435 → 1.0.436

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.435",
3
+ "version": "1.0.436",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -90,6 +90,7 @@
90
90
  iconMargin:20,
91
91
  titleStyle:{},
92
92
  columnSpacing:0,
93
+ titleMargin:4,
93
94
  }
94
95
  },
95
96
  computed: {
@@ -144,7 +145,7 @@
144
145
  scrollStyleComp: this.scrollStyleComp, //滑块外框样式
145
146
  height: this.iconWH.height,
146
147
  width: this.iconWH.width,
147
- titleStyle: this.titleStyle,
148
+ titleStyle: Object.assign({}, this.titleStyle, { marginTop: this.titleMargin + 'rpx' }),
148
149
  dotStyleData: this.dotStyleData,
149
150
  carouselType: this.carouselType
150
151
  }
@@ -245,7 +246,7 @@
245
246
 
246
247
  return {
247
248
  width:width,
248
- height: width + textHeight,
249
+ height: width + this.titleMargin + textHeight,
249
250
  marginBT,
250
251
  contentPaddingBT,
251
252
  textHeight,
@@ -320,6 +321,7 @@
320
321
  this.iconBgColor = gCPVal(container, 'iconBgColor', ['#fff'], {sKey:'iconBgColorStatus', fields:['iconBgColor','iconBgImage']})
321
322
  this.iconBgImage = gCPVal(container, 'iconBgImage', {url: ""}, {sKey:'iconBgColorStatus', fields:['iconBgColor','iconBgImage']});
322
323
  this.columnSpacing = gCPVal(container, 'columnSpacing', [16,0],{sKey:'columnSpacingStatus', fields:['columnSpacing']});
324
+ this.titleMargin = gCPVal(container, 'titleMargin', [16,4],{sKey:'titleMarginStatus', fields:['titleMargin']});
323
325
  let defaultPadding = 20;
324
326
  if(this.column === 4) defaultPadding = 25
325
327
  this.iconMargin = gCPVal(container, 'iconMargin', [16,defaultPadding],{sKey:'iconMarginStatus', fields:['iconMargin']});
@@ -11,11 +11,12 @@ import {
11
11
 
12
12
  function checkAndSetValue(iconSetBaseStyle,data,gValue){
13
13
  if(gValue.isAdd && gValue.isFirst) return;
14
- let status = ['columnSpacingStatus','radiusStatus','iconMarginStatus','titleStyle'];
14
+ let status = ['columnSpacingStatus','radiusStatus','iconMarginStatus','titleStyle','titleMarginStatus'];
15
15
  let defValue = {
16
16
  columnSpacing:0,
17
17
  radius:'20',
18
18
  iconMargin:20,
19
+ titleMargin:4,
19
20
  titleStyle:{
20
21
  fontSize:'24rpx',
21
22
  color:data['textColor'] || '#333',
@@ -295,6 +296,38 @@ export default (data, gValue, gColor, oldData={})=>{
295
296
  },
296
297
  {ele: 'group_end'},
297
298
 
299
+ {
300
+ label: '标与字间距',
301
+ ele: 'xd-radio',
302
+ groupKey: 'style',
303
+ valueKey: 'titleMarginStatus',
304
+ value: statusDataVal({data, key:'titleMarginStatus', fields:['titleMargin'],gValue}),
305
+ labelInline:true,
306
+ list: [
307
+ {label: '默认', value: 'D'},
308
+ {label: '自定义', value: 'C'},
309
+ ]
310
+ },
311
+ {ele: 'group_start'},
312
+ {
313
+ label: "",
314
+ groupKey: 'style',
315
+ ele: 'xd-slider',
316
+ valueKey: "titleMargin",
317
+ value: dataVal({data, key:'titleMargin', dValue:gValue.isAdd && gValue.isFirst?10:4, gValue}),
318
+ hidden: !statusShow({data, key: 'titleMarginStatus', fields:['titleMargin'], gValue}),
319
+ className: "input80",
320
+ labelInline: true,
321
+ setting:{
322
+ min: 0,
323
+ max: 60,
324
+ step:1,
325
+ showStops:false,
326
+ showInput:false,
327
+ }
328
+ },
329
+ {ele: 'group_end'},
330
+
298
331
  {
299
332
  label: '图标投影',
300
333
  ele: 'xd-shadow',