@blueking/bkui-form 0.0.42-beta.5 → 0.0.42-beta.7

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.
@@ -634,16 +634,25 @@ function mergeDeep(target) {
634
634
  }
635
635
  if (!sources.length) return target;
636
636
  var source = sources.shift();
637
- if (isObj(target) && isObj(source)) {
638
- for (var key in source) {
639
- if (isObj(source[key])) {
640
- if (!target[key]) Object.assign(target, _defineProperty({}, key, {}));
641
- mergeDeep(target[key], source[key]);
642
- } else {
643
- Object.assign(target, _defineProperty({}, key, source[key]));
637
+ if (source === undefined) {
638
+ return target;
639
+ }
640
+ Object.entries(source).forEach(function (_ref) {
641
+ var _ref2 = _slicedToArray(_ref, 2),
642
+ key = _ref2[0],
643
+ value = _ref2[1];
644
+ var targetValue = target[key];
645
+ if (isObj(value)) {
646
+ if (!(key in target)) {
647
+ target[key] = {};
648
+ } else if (!isObj(targetValue)) {
649
+ target[key] = {};
644
650
  }
651
+ mergeDeep(target[key], value);
652
+ } else {
653
+ target[key] = value;
645
654
  }
646
- }
655
+ });
647
656
  return mergeDeep.apply(void 0, [target].concat(sources));
648
657
  }
649
658
  function isArguments(object) {
@@ -11462,10 +11471,7 @@ var CollapseGroupWidget = Vue.extend({
11462
11471
  props: _objectSpread2(_objectSpread2({}, props), {}, {
11463
11472
  type: {
11464
11473
  type: String,
11465
- default: 'default',
11466
- validator: function validator(value) {
11467
- return ['default', 'normal', 'card'].includes(value);
11468
- }
11474
+ default: 'default' // 'default', 'normal', 'card'
11469
11475
  },
11470
11476
  showTitle: {
11471
11477
  type: Boolean,
@@ -11484,6 +11490,10 @@ var CollapseGroupWidget = Vue.extend({
11484
11490
  verifiable: {
11485
11491
  type: Boolean,
11486
11492
  default: false
11493
+ },
11494
+ collapseStyle: {
11495
+ type: String,
11496
+ default: 'normal' // normal: 修改后的样式参看BCS,default: 组件样式
11487
11497
  }
11488
11498
  }),
11489
11499
  data: function data() {
@@ -11494,7 +11504,6 @@ var CollapseGroupWidget = Vue.extend({
11494
11504
  render: function render(h) {
11495
11505
  var _this$schema,
11496
11506
  _this = this;
11497
- var collapseStyle = {};
11498
11507
  var collapseTitleStyle = {
11499
11508
  background: '#f5f7fa',
11500
11509
  'border-radius': '2px',
@@ -11527,9 +11536,9 @@ var CollapseGroupWidget = Vue.extend({
11527
11536
  hideArrow: true,
11528
11537
  name: key
11529
11538
  },
11530
- class: ['mb15']
11539
+ class: _this.collapseStyle === 'normal' ? ['mb15'] : []
11531
11540
  }, [h('div', {
11532
- style: collapseTitleStyle
11541
+ style: _this.collapseStyle === 'normal' ? collapseTitleStyle : {}
11533
11542
  }, [h('i', {
11534
11543
  class: ['bk-icon icon-down-shape mr5'],
11535
11544
  style: _objectSpread2(_objectSpread2({}, collapseIconStyle), {}, {
@@ -11553,7 +11562,7 @@ var CollapseGroupWidget = Vue.extend({
11553
11562
  return h(FieldGroupWrap, {
11554
11563
  props: _objectSpread2({}, groupWrapProps)
11555
11564
  }, [h(registry.getBaseWidget('collapse'), {
11556
- style: collapseStyle,
11565
+ class: this.collapseStyle,
11557
11566
  props: {
11558
11567
  value: this.activeName
11559
11568
  },