jufubao-base 1.0.308 → 1.0.309

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.308",
3
+ "version": "1.0.309",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -424,11 +424,24 @@ export default {
424
424
  },
425
425
  },
426
426
  {
427
- label: '内容填充设置:',
427
+ label: '边距设置:',
428
428
  ele: 'xd-margin-padding',
429
- valueKey: 'padding',
430
429
  groupKey:'style',
431
- value: data.padding || null,
430
+ valueKey: 'margin',
431
+ value: data.margin || null,
432
+ setting: {
433
+ type: 'margin',
434
+ },
435
+ placeholder: '请设置内容边距设置',
436
+ inline: false,
437
+ notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
438
+ },
439
+ {
440
+ label: '标题填充设置:',
441
+ ele: 'xd-margin-padding',
442
+ valueKey: 'titlePadding',
443
+ groupKey:'style',
444
+ value: data.titlePadding || null,
432
445
  setting: {
433
446
  type: 'padding',
434
447
  },
@@ -437,17 +450,17 @@ export default {
437
450
  notice: '内容填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
438
451
  },
439
452
  {
440
- label: '边距设置:',
453
+ label: '内容填充设置:',
441
454
  ele: 'xd-margin-padding',
455
+ valueKey: 'padding',
442
456
  groupKey:'style',
443
- valueKey: 'margin',
444
- value: data.margin || null,
457
+ value: data.padding || null,
445
458
  setting: {
446
- type: 'margin',
459
+ type: 'padding',
447
460
  },
448
- placeholder: '请设置内容边距设置',
461
+ placeholder: '请内容填充设置',
449
462
  inline: false,
450
- notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
463
+ notice: '内容填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
451
464
  },
452
465
  {
453
466
  ele: 'title',
@@ -82,7 +82,7 @@
82
82
  >接口无数返回,请检查是否配置成功!</view>
83
83
  </template>
84
84
  <template v-else>
85
- <view :style="{margin:marginUi}">
85
+ <view :style="{margin:marginComp}">
86
86
  <view
87
87
  class="jfb-base-notice__body-title"
88
88
  :style="{
@@ -90,7 +90,7 @@
90
90
  background: bgc,
91
91
  color:textColor,
92
92
  borderRadius: titleRadius,
93
- padding: titlePadding,
93
+ padding: titlePaddingComp,
94
94
  borderBottomColor: borderTitleColor,
95
95
  textAlign: textAlign,
96
96
  }"
@@ -102,7 +102,7 @@
102
102
  background: bgc,
103
103
  color:textColor,
104
104
  borderRadius: contRadius,
105
- padding: paddingUi,
105
+ padding: paddingComp,
106
106
  lineHeight: '50rpx',
107
107
  }"
108
108
  v-if="content"
@@ -216,10 +216,16 @@
216
216
  right: 0
217
217
  },
218
218
  padding: {
219
- top: 8,
220
- left: 10,
221
- bottom: 8,
222
- right: 10
219
+ top: 20,
220
+ left: 20,
221
+ bottom: 20,
222
+ right: 20
223
+ },
224
+ titlePadding:{
225
+ top: 20,
226
+ left: 20,
227
+ bottom: 20,
228
+ right: 20
223
229
  },
224
230
  radius: 0, //圆角
225
231
  fontSize: 20,
@@ -286,36 +292,21 @@
286
292
  if(this.show_tip_icon==='Y') return this.$xdUniHelper.filterHtml(this.content,'')
287
293
  return this.content
288
294
  },
289
- marginUi() {
290
- let str = `${this.checkValue(this.margin.top, 20)}rpx`;
291
- str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
292
- str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
293
- str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
294
- return str
295
+ marginComp() {
296
+ return this.getMarginAndPadding(this.margin, 0)
295
297
  },
296
- paddingUi() {
297
- let str = `${this.checkValue(this.padding.top, 20)}rpx`;
298
- str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
299
- str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
300
- str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
301
- return str
298
+ paddingComp() {
299
+ return this.getMarginAndPadding(this.padding, 20)
302
300
  },
303
301
 
304
302
  scrollMarginUi(){
305
- let str = `${this.checkValue(this.scrollMargin.top, 0)}rpx`;
306
- str = `${str} ${this.checkValue(this.scrollMargin.right, 0)}rpx`;
307
- str = `${str} ${this.checkValue(this.scrollMargin.bottom, 0)}rpx`;
308
- str = `${str} ${this.checkValue(this.scrollMargin.left, 0)}rpx`;
309
- return str
303
+ return this.getMarginAndPadding(this.scrollMargin, 0)
310
304
  },
311
305
 
312
306
 
313
- titlePadding() {
314
- let str = `${this.checkValue(this.padding.top, 20)}rpx`;
315
- str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
316
- str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
317
- str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
318
- return str
307
+ titlePaddingComp() {
308
+ debugger
309
+ return this.getMarginAndPadding(this.titlePadding, 20)
319
310
  },
320
311
  contRadius(){
321
312
  if(this.isTitle) return `0rpx 0rpx ${this.radius}rpx ${this.radius}rpx`;
@@ -362,8 +353,10 @@
362
353
 
363
354
 
364
355
  this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
365
- this.padding = getContainerPropsValue(container, 'content.padding', {top: 8, left: 10, bottom: 8, right: 10});
366
- this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {});
356
+ this.padding = getContainerPropsValue(container, 'content.padding', {top: 20, left: 20, bottom: 20, right: 20});
357
+ this.titlePadding = getContainerPropsValue(container, 'content.titlePadding', {top: 20, left: 20, bottom: 20, right: 20});
358
+ this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {top: 0, left: 0, bottom: 0, right: 0});
359
+ debugger
367
360
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
368
361
  this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
369
362
  this.titleFontSize = this.fontSize * 1.2;