@formily/core
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -112,3 +112,3 @@ "use strict"; | ||
state.initialValue = initialValue; | ||
if (!shared_1.isValid(state.value)) { | ||
if (!shared_1.isValid(state.value) || shared_1.isEmpty(state.value)) { | ||
state.value = initialValue; | ||
@@ -326,3 +326,3 @@ } | ||
(published.display !== false || published.visible === false) && | ||
published.unmountRemoveValue) { | ||
published.unmountRemoveValue === true) { | ||
if (published.unmounted) { | ||
@@ -457,3 +457,2 @@ if (shared_1.isValid(published.value)) { | ||
dataType: dataType, | ||
unmountRemoveValue: unmountRemoveValue, | ||
useDirty: shared_1.isValid(useDirty) ? useDirty : options.useDirty | ||
@@ -479,2 +478,5 @@ }); | ||
} | ||
if (shared_1.isValid(unmountRemoveValue)) { | ||
state.unmountRemoveValue = unmountRemoveValue; | ||
} | ||
if (shared_1.isValid(value)) { | ||
@@ -481,0 +483,0 @@ state.value = value; |
{ | ||
"name": "@formily/core", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "main": "lib", | ||
"devDependencies": { | ||
"typescript": "^3.5.2" | ||
"typescript": "~3.8.0" | ||
}, | ||
@@ -29,4 +29,4 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@formily/shared": "^1.1.3", | ||
"@formily/validator": "^1.1.3", | ||
"@formily/shared": "^1.1.4", | ||
"@formily/validator": "^1.1.4", | ||
"immer": "^6.0.3" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "a5676b3b826ffc695d41bab2a539c539d8c66a9d" | ||
"gitHead": "aa80fcff3a7cece323f5302486a697dfbe3efc08" | ||
} |
@@ -110,3 +110,3 @@ import { | ||
state.initialValue = initialValue | ||
if (!isValid(state.value)) { | ||
if (!isValid(state.value) || isEmpty(state.value)) { | ||
state.value = initialValue | ||
@@ -354,3 +354,3 @@ } else if ( | ||
(published.display !== false || published.visible === false) && | ||
published.unmountRemoveValue | ||
published.unmountRemoveValue === true | ||
) { | ||
@@ -530,3 +530,2 @@ if (published.unmounted) { | ||
dataType, | ||
unmountRemoveValue, | ||
useDirty: isValid(useDirty) ? useDirty : options.useDirty | ||
@@ -554,2 +553,6 @@ }) | ||
if (isValid(unmountRemoveValue)) { | ||
state.unmountRemoveValue = unmountRemoveValue | ||
} | ||
if (isValid(value)) { | ||
@@ -556,0 +559,0 @@ // value > formValue > initialValue |
250699
5424
Updated@formily/shared@^1.1.4
Updated@formily/validator@^1.1.4