@coding-form/form-engine 0.0.8 → 0.0.9

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.
@@ -11,7 +11,7 @@ export declare class FormInstance implements FormInstanceInterface {
11
11
  private initInstanceList;
12
12
  getFormControl(formCode?: string): FormControl | undefined;
13
13
  getProxyTarget(formCode?: string): any;
14
- getFieldValue(name: NamePath, formCode?: string): void;
14
+ getFieldValue(name: NamePath, formCode?: string): any;
15
15
  getFieldsValue(formCode?: string): any;
16
16
  resetFields(nameList?: NamePath[] | NamePath, formCode?: string): void;
17
17
  setFieldsValue(values: any, formCode?: string): void;
@@ -33,7 +33,7 @@ class FormInstance {
33
33
  return this.getFormControl(formCode)?.getProxyTarget();
34
34
  }
35
35
  getFieldValue(name, formCode) {
36
- this.getFormControl(formCode)?.getFieldValue(name);
36
+ return this.getFormControl(formCode)?.getFieldValue(name);
37
37
  }
38
38
  getFieldsValue(formCode) {
39
39
  return this.getFormControl(formCode)?.getFieldsValue();
@@ -8,7 +8,7 @@ export interface FormInstanceInterface {
8
8
  /** 获取表所有值 **/
9
9
  getFieldsValue: (formCode?: string) => any;
10
10
  /** 重置表单值 **/
11
- resetFields: (fields?: NamePath[] | NamePath, formCode?: string) => void;
11
+ resetFields: (fields?: NamePath[], formCode?: string) => void;
12
12
  /** 设置表单所有值 **/
13
13
  setFieldsValue: (values: any, formCode?: string) => void;
14
14
  /** 设置表单值 **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coding-form/form-engine",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "form-engine components",
5
5
  "keywords": [
6
6
  "coding-form",