jufubao-base 1.0.307 → 1.0.308

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.307",
3
+ "version": "1.0.308",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -354,13 +354,19 @@
354
354
  this.time = Number(getContainerPropsValue(container, 'content.time', 3));
355
355
  this.textColor = getContainerPropsValue(container, 'content.textColor', this.warningColor);
356
356
  this.textAlign = getContainerPropsValue(container, 'content.textAlign', 'left');
357
+
357
358
  this.bgc = getContainerPropsValue(container, 'content.bgc', `rgba(${colorBg.join(',')})`);
358
- this.borderTitleColor = Color(this.bgc).lighten(.15).hex();
359
+ if(Color(this.bgc).isDark()) this.borderTitleColor = Color(this.bgc).lighten(0.9).toString();
360
+ else if(Color(this.bgc).isLight()) this.borderTitleColor = Color(this.bgc).darken(0.05).toString();
361
+
362
+
363
+
359
364
  this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
360
365
  this.padding = getContainerPropsValue(container, 'content.padding', {top: 8, left: 10, bottom: 8, right: 10});
361
366
  this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {});
362
367
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
363
368
  this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
369
+ this.titleFontSize = this.fontSize * 1.2;
364
370
  this.btnConfirmWidth = getContainerPropsValue(container, 'content.btnConfirmWidth', '');
365
371
  this.btnConfirmBgColor = getContainerPropsValue(container, 'content.btnConfirmBgColor', '');
366
372
  this.btnConfirmTextColor = getContainerPropsValue(container, 'content.btnConfirmTextColor', '');
@@ -368,12 +374,13 @@
368
374
  let staticTipIcon = getContainerPropsValue(container, 'content.staticTipIcon', '');
369
375
  this.staticTipIcon = staticTipIcon ? getServiceUrl(staticTipIcon.url) : '';
370
376
  this.tipIconHeight = getContainerPropsValue(container, 'content.tipIconHeight', 50);
377
+
378
+
371
379
  if (this.fontSize === 20) this.titleFontSize = 28;
372
380
  if (this.fontSize === 26) this.titleFontSize = 36;
373
381
  if (this.fontSize === 36) this.titleFontSize = 44;
374
382
  this.isTitle = getContainerPropsValue(container, 'content.isTitle', false);
375
383
 
376
-
377
384
  if(this.style === '2') {
378
385
  this.num = getContainerPropsValue(container, 'content.num', 1);
379
386
  //#ifdef H5