@form-create/element-ui 3.1.22 → 3.1.24

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.
package/types/config.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import {FormData, VNodeRule} from "@form-create/core";
2
- import {ButtonProps, ValidateFieldCallback} from "element-plus";
2
+ import {ButtonProps} from "element-plus";
3
3
  import {Api} from "./index";
4
+ import {ComponentInternalInstance} from "@vue/runtime-core";
4
5
 
5
6
  type SizeObject = {
6
7
  span?: number
@@ -123,15 +124,19 @@ export interface ApiAttrs {
123
124
  show(show: boolean): void;
124
125
  }
125
126
 
127
+ formEl(): undefined | ComponentInternalInstance;
128
+
129
+ wrapEl(id: string): undefined | ComponentInternalInstance;
130
+
126
131
  submit(success: (formData: FormData, $f: Api) => void, fail: ($f: Api) => void): Promise<any>;
127
132
 
128
133
  clearValidateState(fields?: string | string[], clearSub?: Boolean): void;
129
134
 
130
135
  clearSubValidateState(fields?: string | string[]): void;
131
136
 
132
- validate(callback?: (boolean: boolean, object: Object) => void): Promise<any>;
137
+ validate(callback?: (state: any) => void): Promise<any>;
133
138
 
134
- validateField(field: string, callback?: ValidateFieldCallback): Promise<any>;
139
+ validateField(field: string, callback?: (state: any) => void): Promise<any>;
135
140
 
136
141
  submitBtnProps(props: ButtonProps): void;
137
142