@blueking/bkui-form 0.0.42-beta.5 → 0.0.42-beta.6
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/dist/bkui-form-es.js
CHANGED
|
@@ -634,16 +634,25 @@ function mergeDeep(target) {
|
|
|
634
634
|
}
|
|
635
635
|
if (!sources.length) return target;
|
|
636
636
|
var source = sources.shift();
|
|
637
|
-
if (
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
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) {
|