@fairys/taro-tools-simple-form-ui 0.0.6 → 0.0.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.
|
@@ -13,7 +13,7 @@ class FairysTaroValtioFormInstance {
|
|
|
13
13
|
if (isDeepCopy) this.state = proxy(formData ? copy(formData) : {});
|
|
14
14
|
else if (formData) this.state = proxy(formData);
|
|
15
15
|
};
|
|
16
|
-
updated = (state, isValidate)=>{
|
|
16
|
+
updated = (state, isValidate = true)=>{
|
|
17
17
|
const keys = Object.keys(state);
|
|
18
18
|
for(let index = 0; index < keys.length; index++){
|
|
19
19
|
const key = keys[index];
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ export class FairysTaroValtioFormInstance<T extends MObject<T> = Record<string,
|
|
|
31
31
|
* @param state 更新数据对象
|
|
32
32
|
* @param isValidate 是否验证(可选)
|
|
33
33
|
*/
|
|
34
|
-
updated = <M = T>(state: Partial<M>, isValidate
|
|
34
|
+
updated = <M = T>(state: Partial<M>, isValidate: boolean = true) => {
|
|
35
35
|
const keys = Object.keys(state);
|
|
36
36
|
for (let index = 0; index < keys.length; index++) {
|
|
37
37
|
const key = keys[index];
|