iov-pro-components 0.0.27 → 0.0.28
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.
|
@@ -8373,6 +8373,7 @@ var script$j = {
|
|
|
8373
8373
|
formItemsForRender: [],
|
|
8374
8374
|
// 上一次的缓存数据
|
|
8375
8375
|
prevState: {
|
|
8376
|
+
initValue: cloneDeep(this.value || {}),
|
|
8376
8377
|
value: cloneDeep(this.value || {}),
|
|
8377
8378
|
dataSource: cloneDeep(this.dataSource || {}),
|
|
8378
8379
|
optionParams: {},
|
|
@@ -8642,7 +8643,7 @@ var script$j = {
|
|
|
8642
8643
|
if (Array.isArray(itemClone.name)) {
|
|
8643
8644
|
// 开始赋值
|
|
8644
8645
|
var nextValue = itemClone.name.map(function (name) {
|
|
8645
|
-
return _this4.prevState.
|
|
8646
|
+
return _this4.prevState.initValue[name];
|
|
8646
8647
|
});
|
|
8647
8648
|
// 如果每个值都是空,则清空数据
|
|
8648
8649
|
if (nextValue.some(function (val) {
|
|
@@ -8652,8 +8653,8 @@ var script$j = {
|
|
|
8652
8653
|
}
|
|
8653
8654
|
} else {
|
|
8654
8655
|
// 如果传入值非空
|
|
8655
|
-
if (!isNil(_this4.prevState.
|
|
8656
|
-
itemClone.value = _this4.prevState.
|
|
8656
|
+
if (!isNil(_this4.prevState.initValue[itemClone.name])) {
|
|
8657
|
+
itemClone.value = _this4.prevState.initValue[itemClone.name];
|
|
8657
8658
|
}
|
|
8658
8659
|
}
|
|
8659
8660
|
// 如果有默认值
|
|
@@ -20175,7 +20176,7 @@ var install = function install(Vue, componentConfig) {
|
|
|
20175
20176
|
};
|
|
20176
20177
|
var index = {
|
|
20177
20178
|
install: install,
|
|
20178
|
-
version: '0.0.
|
|
20179
|
+
version: '0.0.28',
|
|
20179
20180
|
ColumnTooltip: __vue_component__$t,
|
|
20180
20181
|
Description: __vue_component__$q,
|
|
20181
20182
|
DialogSelect: __vue_component__$p,
|