iov-pro-components 0.0.76 → 0.0.78
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.
|
@@ -9503,6 +9503,10 @@ var script$n = {
|
|
|
9503
9503
|
initValue: function initValue() {
|
|
9504
9504
|
var _this8 = this;
|
|
9505
9505
|
var prevFormItems = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
9506
|
+
// 上一次的form-items的所有keys
|
|
9507
|
+
var prevFormItemsKeys = prevFormItems.map(function (item) {
|
|
9508
|
+
return item.key;
|
|
9509
|
+
});
|
|
9506
9510
|
// 当前的form-items的所有keys
|
|
9507
9511
|
var formItemsKeys = this.formItemsForRender.map(function (item) {
|
|
9508
9512
|
return item.key;
|
|
@@ -9523,7 +9527,11 @@ var script$n = {
|
|
|
9523
9527
|
// 如果之前是空,则需要清空
|
|
9524
9528
|
if (isPrevItemsEmpty) {
|
|
9525
9529
|
_this8.triggerInitDefaultValue(item);
|
|
9526
|
-
}
|
|
9530
|
+
} else
|
|
9531
|
+
// 如果上一次无此字段,这次展示了且当前值为空
|
|
9532
|
+
if (!prevFormItemsKeys.includes(item.key) && isEmpty(_this8.modelValue[item.key])) {
|
|
9533
|
+
_this8.triggerInitDefaultValue(item);
|
|
9534
|
+
}
|
|
9527
9535
|
});
|
|
9528
9536
|
|
|
9529
9537
|
// 取出当前被隐藏的字段,并清空隐藏字段的值
|
|
@@ -22465,7 +22473,7 @@ var install = function install(Vue, componentConfig) {
|
|
|
22465
22473
|
};
|
|
22466
22474
|
var index = {
|
|
22467
22475
|
install: install,
|
|
22468
|
-
version: '0.0.
|
|
22476
|
+
version: '0.0.78',
|
|
22469
22477
|
ColumnTooltip: __vue_component__$y,
|
|
22470
22478
|
Description: __vue_component__$v,
|
|
22471
22479
|
DialogItemsSelect: __vue_component__$u,
|