jufubao-base 1.0.307 → 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
|
@@ -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
|
-
|
|
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
|
-
|
|
444
|
-
value: data.margin || null,
|
|
457
|
+
value: data.padding || null,
|
|
445
458
|
setting: {
|
|
446
|
-
type: '
|
|
459
|
+
type: 'padding',
|
|
447
460
|
},
|
|
448
|
-
placeholder: '
|
|
461
|
+
placeholder: '请内容填充设置',
|
|
449
462
|
inline: false,
|
|
450
|
-
notice: '
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
220
|
-
left:
|
|
221
|
-
bottom:
|
|
222
|
-
right:
|
|
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
|
-
|
|
290
|
-
|
|
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
|
-
|
|
297
|
-
|
|
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
|
-
|
|
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
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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`;
|
|
@@ -354,13 +345,21 @@
|
|
|
354
345
|
this.time = Number(getContainerPropsValue(container, 'content.time', 3));
|
|
355
346
|
this.textColor = getContainerPropsValue(container, 'content.textColor', this.warningColor);
|
|
356
347
|
this.textAlign = getContainerPropsValue(container, 'content.textAlign', 'left');
|
|
348
|
+
|
|
357
349
|
this.bgc = getContainerPropsValue(container, 'content.bgc', `rgba(${colorBg.join(',')})`);
|
|
358
|
-
this.borderTitleColor = Color(this.bgc).lighten(.
|
|
350
|
+
if(Color(this.bgc).isDark()) this.borderTitleColor = Color(this.bgc).lighten(0.9).toString();
|
|
351
|
+
else if(Color(this.bgc).isLight()) this.borderTitleColor = Color(this.bgc).darken(0.05).toString();
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
359
355
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
|
|
360
|
-
this.padding = getContainerPropsValue(container, 'content.padding', {top:
|
|
361
|
-
this.
|
|
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
|
|
362
360
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
363
361
|
this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
|
|
362
|
+
this.titleFontSize = this.fontSize * 1.2;
|
|
364
363
|
this.btnConfirmWidth = getContainerPropsValue(container, 'content.btnConfirmWidth', '');
|
|
365
364
|
this.btnConfirmBgColor = getContainerPropsValue(container, 'content.btnConfirmBgColor', '');
|
|
366
365
|
this.btnConfirmTextColor = getContainerPropsValue(container, 'content.btnConfirmTextColor', '');
|
|
@@ -368,12 +367,13 @@
|
|
|
368
367
|
let staticTipIcon = getContainerPropsValue(container, 'content.staticTipIcon', '');
|
|
369
368
|
this.staticTipIcon = staticTipIcon ? getServiceUrl(staticTipIcon.url) : '';
|
|
370
369
|
this.tipIconHeight = getContainerPropsValue(container, 'content.tipIconHeight', 50);
|
|
370
|
+
|
|
371
|
+
|
|
371
372
|
if (this.fontSize === 20) this.titleFontSize = 28;
|
|
372
373
|
if (this.fontSize === 26) this.titleFontSize = 36;
|
|
373
374
|
if (this.fontSize === 36) this.titleFontSize = 44;
|
|
374
375
|
this.isTitle = getContainerPropsValue(container, 'content.isTitle', false);
|
|
375
376
|
|
|
376
|
-
|
|
377
377
|
if(this.style === '2') {
|
|
378
378
|
this.num = getContainerPropsValue(container, 'content.num', 1);
|
|
379
379
|
//#ifdef H5
|