@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
@@ -3,7 +3,7 @@
3
3
  "author": "SunLxy <1011771396@qq.com>",
4
4
  "description": "框架组件库",
5
5
  "homepage": "https://github.com/autumn-fairy-tales/fairys-taro-react",
6
- "version": "0.0.6",
6
+ "version": "0.0.7",
7
7
  "main": "lib/index.js",
8
8
  "types": "esm/index.d.ts",
9
9
  "module": "esm/index.js",
@@ -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?: boolean) => {
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];