@tmagic/form 1.4.15 → 1.5.0-beta.0

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.
Files changed (42) hide show
  1. package/package.json +7 -11
  2. package/types/index.d.ts +3233 -39
  3. package/src/shims-vue.d.ts +0 -6
  4. package/types/Form.vue.d.ts +0 -118
  5. package/types/FormBox.vue.d.ts +0 -327
  6. package/types/FormDialog.vue.d.ts +0 -336
  7. package/types/FormDrawer.vue.d.ts +0 -348
  8. package/types/containers/Col.vue.d.ts +0 -40
  9. package/types/containers/Container.vue.d.ts +0 -72
  10. package/types/containers/Fieldset.vue.d.ts +0 -61
  11. package/types/containers/GroupList.vue.d.ts +0 -38
  12. package/types/containers/GroupListItem.vue.d.ts +0 -44
  13. package/types/containers/Panel.vue.d.ts +0 -46
  14. package/types/containers/Row.vue.d.ts +0 -40
  15. package/types/containers/Step.vue.d.ts +0 -50
  16. package/types/containers/Table.vue.d.ts +0 -94
  17. package/types/containers/Tabs.vue.d.ts +0 -57
  18. package/types/fields/Cascader.vue.d.ts +0 -16
  19. package/types/fields/Checkbox.vue.d.ts +0 -16
  20. package/types/fields/CheckboxGroup.vue.d.ts +0 -16
  21. package/types/fields/ColorPicker.vue.d.ts +0 -16
  22. package/types/fields/Date.vue.d.ts +0 -16
  23. package/types/fields/DateTime.vue.d.ts +0 -16
  24. package/types/fields/Daterange.vue.d.ts +0 -16
  25. package/types/fields/Display.vue.d.ts +0 -12
  26. package/types/fields/DynamicField.vue.d.ts +0 -16
  27. package/types/fields/Hidden.vue.d.ts +0 -12
  28. package/types/fields/Link.vue.d.ts +0 -16
  29. package/types/fields/Number.vue.d.ts +0 -18
  30. package/types/fields/NumberRange.vue.d.ts +0 -16
  31. package/types/fields/RadioGroup.vue.d.ts +0 -16
  32. package/types/fields/Select.vue.d.ts +0 -16
  33. package/types/fields/Switch.vue.d.ts +0 -16
  34. package/types/fields/Text.vue.d.ts +0 -18
  35. package/types/fields/Textarea.vue.d.ts +0 -18
  36. package/types/fields/Time.vue.d.ts +0 -16
  37. package/types/fields/Timerange.vue.d.ts +0 -16
  38. package/types/schema.d.ts +0 -605
  39. package/types/utils/config.d.ts +0 -3
  40. package/types/utils/containerProps.d.ts +0 -26
  41. package/types/utils/form.d.ts +0 -9
  42. package/types/utils/useAddField.d.ts +0 -1
@@ -1,336 +0,0 @@
1
- import { FormConfig } from './schema';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- config?: FormConfig | undefined;
4
- values?: Object | undefined;
5
- parentValues?: Object | undefined;
6
- width?: string | number | undefined;
7
- labelWidth?: string | undefined;
8
- fullscreen?: boolean | undefined;
9
- disabled?: boolean | undefined;
10
- title?: string | undefined;
11
- inline?: boolean | undefined;
12
- labelPosition?: string | undefined;
13
- zIndex?: number | undefined;
14
- size?: "large" | "default" | "small" | undefined;
15
- confirmText?: string | undefined;
16
- }>, {
17
- config: () => never[];
18
- values: () => {};
19
- confirmText: string;
20
- }>, {
21
- form: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
22
- config: {
23
- type: import("vue").PropType<FormConfig>;
24
- required: true;
25
- default: () => never[];
26
- };
27
- popperClass: {
28
- type: import("vue").PropType<string>;
29
- };
30
- initValues: {
31
- type: import("vue").PropType<Record<string, any>>;
32
- required: true;
33
- default: () => {};
34
- };
35
- lastValues: {
36
- type: import("vue").PropType<Record<string, any>>;
37
- default: () => {};
38
- };
39
- isCompare: {
40
- type: import("vue").PropType<boolean>;
41
- default: boolean;
42
- };
43
- keyProp: {
44
- type: import("vue").PropType<string>;
45
- default: string;
46
- };
47
- parentValues: {
48
- type: import("vue").PropType<Record<string, any>>;
49
- default: () => {};
50
- };
51
- labelWidth: {
52
- type: import("vue").PropType<string>;
53
- default: string;
54
- };
55
- disabled: {
56
- type: import("vue").PropType<boolean>;
57
- default: boolean;
58
- };
59
- stepActive: {
60
- type: import("vue").PropType<string | number>;
61
- default: number;
62
- };
63
- size: {
64
- type: import("vue").PropType<"large" | "default" | "small">;
65
- };
66
- height: {
67
- type: import("vue").PropType<string>;
68
- default: string;
69
- };
70
- inline: {
71
- type: import("vue").PropType<boolean>;
72
- default: boolean;
73
- };
74
- labelPosition: {
75
- type: import("vue").PropType<string>;
76
- default: string;
77
- };
78
- extendState: {
79
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
80
- };
81
- }>> & {
82
- onChange?: ((...args: any[]) => any) | undefined;
83
- onError?: ((...args: any[]) => any) | undefined;
84
- "onField-input"?: ((...args: any[]) => any) | undefined;
85
- "onField-change"?: ((...args: any[]) => any) | undefined;
86
- }, {
87
- values: import("vue").Ref<import("./schema").FormValue>;
88
- lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
89
- formState: import("./schema").FormState;
90
- initialized: import("vue").Ref<boolean>;
91
- changeHandler: () => void;
92
- resetForm: () => any;
93
- submitForm: (native?: boolean | undefined) => Promise<any>;
94
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
95
- change: (...args: any[]) => void;
96
- error: (...args: any[]) => void;
97
- "field-input": (...args: any[]) => void;
98
- "field-change": (...args: any[]) => void;
99
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
100
- config: {
101
- type: import("vue").PropType<FormConfig>;
102
- required: true;
103
- default: () => never[];
104
- };
105
- popperClass: {
106
- type: import("vue").PropType<string>;
107
- };
108
- initValues: {
109
- type: import("vue").PropType<Record<string, any>>;
110
- required: true;
111
- default: () => {};
112
- };
113
- lastValues: {
114
- type: import("vue").PropType<Record<string, any>>;
115
- default: () => {};
116
- };
117
- isCompare: {
118
- type: import("vue").PropType<boolean>;
119
- default: boolean;
120
- };
121
- keyProp: {
122
- type: import("vue").PropType<string>;
123
- default: string;
124
- };
125
- parentValues: {
126
- type: import("vue").PropType<Record<string, any>>;
127
- default: () => {};
128
- };
129
- labelWidth: {
130
- type: import("vue").PropType<string>;
131
- default: string;
132
- };
133
- disabled: {
134
- type: import("vue").PropType<boolean>;
135
- default: boolean;
136
- };
137
- stepActive: {
138
- type: import("vue").PropType<string | number>;
139
- default: number;
140
- };
141
- size: {
142
- type: import("vue").PropType<"large" | "default" | "small">;
143
- };
144
- height: {
145
- type: import("vue").PropType<string>;
146
- default: string;
147
- };
148
- inline: {
149
- type: import("vue").PropType<boolean>;
150
- default: boolean;
151
- };
152
- labelPosition: {
153
- type: import("vue").PropType<string>;
154
- default: string;
155
- };
156
- extendState: {
157
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
158
- };
159
- }>> & {
160
- onChange?: ((...args: any[]) => any) | undefined;
161
- onError?: ((...args: any[]) => any) | undefined;
162
- "onField-input"?: ((...args: any[]) => any) | undefined;
163
- "onField-change"?: ((...args: any[]) => any) | undefined;
164
- }, {
165
- config: FormConfig;
166
- initValues: Record<string, any>;
167
- lastValues: Record<string, any>;
168
- isCompare: boolean;
169
- keyProp: string;
170
- parentValues: Record<string, any>;
171
- labelWidth: string;
172
- disabled: boolean;
173
- stepActive: string | number;
174
- height: string;
175
- inline: boolean;
176
- labelPosition: string;
177
- }, true, {}, {}, {
178
- P: {};
179
- B: {};
180
- D: {};
181
- C: {};
182
- M: {};
183
- Defaults: {};
184
- }, Readonly<import("vue").ExtractPropTypes<{
185
- config: {
186
- type: import("vue").PropType<FormConfig>;
187
- required: true;
188
- default: () => never[];
189
- };
190
- popperClass: {
191
- type: import("vue").PropType<string>;
192
- };
193
- initValues: {
194
- type: import("vue").PropType<Record<string, any>>;
195
- required: true;
196
- default: () => {};
197
- };
198
- lastValues: {
199
- type: import("vue").PropType<Record<string, any>>;
200
- default: () => {};
201
- };
202
- isCompare: {
203
- type: import("vue").PropType<boolean>;
204
- default: boolean;
205
- };
206
- keyProp: {
207
- type: import("vue").PropType<string>;
208
- default: string;
209
- };
210
- parentValues: {
211
- type: import("vue").PropType<Record<string, any>>;
212
- default: () => {};
213
- };
214
- labelWidth: {
215
- type: import("vue").PropType<string>;
216
- default: string;
217
- };
218
- disabled: {
219
- type: import("vue").PropType<boolean>;
220
- default: boolean;
221
- };
222
- stepActive: {
223
- type: import("vue").PropType<string | number>;
224
- default: number;
225
- };
226
- size: {
227
- type: import("vue").PropType<"large" | "default" | "small">;
228
- };
229
- height: {
230
- type: import("vue").PropType<string>;
231
- default: string;
232
- };
233
- inline: {
234
- type: import("vue").PropType<boolean>;
235
- default: boolean;
236
- };
237
- labelPosition: {
238
- type: import("vue").PropType<string>;
239
- default: string;
240
- };
241
- extendState: {
242
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
243
- };
244
- }>> & {
245
- onChange?: ((...args: any[]) => any) | undefined;
246
- onError?: ((...args: any[]) => any) | undefined;
247
- "onField-input"?: ((...args: any[]) => any) | undefined;
248
- "onField-change"?: ((...args: any[]) => any) | undefined;
249
- }, {
250
- values: import("vue").Ref<import("./schema").FormValue>;
251
- lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
252
- formState: import("./schema").FormState;
253
- initialized: import("vue").Ref<boolean>;
254
- changeHandler: () => void;
255
- resetForm: () => any;
256
- submitForm: (native?: boolean | undefined) => Promise<any>;
257
- }, {}, {}, {}, {
258
- config: FormConfig;
259
- initValues: Record<string, any>;
260
- lastValues: Record<string, any>;
261
- isCompare: boolean;
262
- keyProp: string;
263
- parentValues: Record<string, any>;
264
- labelWidth: string;
265
- disabled: boolean;
266
- stepActive: string | number;
267
- height: string;
268
- inline: boolean;
269
- labelPosition: string;
270
- }> | undefined>;
271
- saveFetch: import("vue").Ref<boolean>;
272
- dialogVisible: import("vue").Ref<boolean>;
273
- cancel: () => void;
274
- save: () => Promise<void>;
275
- show: () => void;
276
- hide: () => void;
277
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
278
- change: (...args: any[]) => void;
279
- error: (...args: any[]) => void;
280
- submit: (...args: any[]) => void;
281
- close: (...args: any[]) => void;
282
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
283
- config?: FormConfig | undefined;
284
- values?: Object | undefined;
285
- parentValues?: Object | undefined;
286
- width?: string | number | undefined;
287
- labelWidth?: string | undefined;
288
- fullscreen?: boolean | undefined;
289
- disabled?: boolean | undefined;
290
- title?: string | undefined;
291
- inline?: boolean | undefined;
292
- labelPosition?: string | undefined;
293
- zIndex?: number | undefined;
294
- size?: "large" | "default" | "small" | undefined;
295
- confirmText?: string | undefined;
296
- }>, {
297
- config: () => never[];
298
- values: () => {};
299
- confirmText: string;
300
- }>>> & {
301
- onChange?: ((...args: any[]) => any) | undefined;
302
- onSubmit?: ((...args: any[]) => any) | undefined;
303
- onError?: ((...args: any[]) => any) | undefined;
304
- onClose?: ((...args: any[]) => any) | undefined;
305
- }, {
306
- config: FormConfig;
307
- values: Object;
308
- confirmText: string;
309
- }, {}>, {
310
- default?(_: {}): any;
311
- left?(_: {}): any;
312
- footer?(_: {}): any;
313
- }>;
314
- export default _default;
315
- type __VLS_WithDefaults<P, D> = {
316
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
317
- default: D[K];
318
- }> : P[K];
319
- };
320
- type __VLS_Prettify<T> = {
321
- [K in keyof T]: T[K];
322
- } & {};
323
- type __VLS_WithTemplateSlots<T, S> = T & {
324
- new (): {
325
- $slots: S;
326
- };
327
- };
328
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
329
- type __VLS_TypePropsToOption<T> = {
330
- [K in keyof T]-?: {} extends Pick<T, K> ? {
331
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
332
- } : {
333
- type: import('vue').PropType<T[K]>;
334
- required: true;
335
- };
336
- };
@@ -1,348 +0,0 @@
1
- import type { FormConfig } from './schema';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- config?: FormConfig | undefined;
4
- values?: Object | undefined;
5
- parentValues?: Object | undefined;
6
- width?: string | number | undefined;
7
- labelWidth?: string | undefined;
8
- disabled?: boolean | undefined;
9
- closeOnPressEscape?: boolean | undefined;
10
- title?: string | undefined;
11
- zIndex?: number | undefined;
12
- size?: "large" | "default" | "small" | undefined;
13
- confirmText?: string | undefined;
14
- inline?: boolean | undefined;
15
- labelPosition?: string | undefined;
16
- /** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
17
- beforeClose?: ((done: (cancel?: boolean | undefined) => void) => void) | undefined;
18
- }>, {
19
- closeOnPressEscape: boolean;
20
- config: () => never[];
21
- values: () => {};
22
- confirmText: string;
23
- }>, {
24
- form: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
25
- config: {
26
- type: import("vue").PropType<FormConfig>;
27
- required: true;
28
- default: () => never[];
29
- };
30
- popperClass: {
31
- type: import("vue").PropType<string>;
32
- };
33
- initValues: {
34
- type: import("vue").PropType<Record<string, any>>;
35
- required: true;
36
- default: () => {};
37
- };
38
- lastValues: {
39
- type: import("vue").PropType<Record<string, any>>;
40
- default: () => {};
41
- };
42
- isCompare: {
43
- type: import("vue").PropType<boolean>;
44
- default: boolean;
45
- };
46
- keyProp: {
47
- type: import("vue").PropType<string>;
48
- default: string;
49
- };
50
- parentValues: {
51
- type: import("vue").PropType<Record<string, any>>;
52
- default: () => {};
53
- };
54
- labelWidth: {
55
- type: import("vue").PropType<string>;
56
- default: string;
57
- };
58
- disabled: {
59
- type: import("vue").PropType<boolean>;
60
- default: boolean;
61
- };
62
- stepActive: {
63
- type: import("vue").PropType<string | number>;
64
- default: number;
65
- };
66
- size: {
67
- type: import("vue").PropType<"large" | "default" | "small">;
68
- };
69
- height: {
70
- type: import("vue").PropType<string>;
71
- default: string;
72
- };
73
- inline: {
74
- type: import("vue").PropType<boolean>;
75
- default: boolean;
76
- };
77
- labelPosition: {
78
- type: import("vue").PropType<string>;
79
- default: string;
80
- };
81
- extendState: {
82
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
83
- };
84
- }>> & {
85
- onChange?: ((...args: any[]) => any) | undefined;
86
- onError?: ((...args: any[]) => any) | undefined;
87
- "onField-input"?: ((...args: any[]) => any) | undefined;
88
- "onField-change"?: ((...args: any[]) => any) | undefined;
89
- }, {
90
- values: import("vue").Ref<import("./schema").FormValue>;
91
- lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
92
- formState: import("./schema").FormState;
93
- initialized: import("vue").Ref<boolean>;
94
- changeHandler: () => void;
95
- resetForm: () => any;
96
- submitForm: (native?: boolean | undefined) => Promise<any>;
97
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
98
- change: (...args: any[]) => void;
99
- error: (...args: any[]) => void;
100
- "field-input": (...args: any[]) => void;
101
- "field-change": (...args: any[]) => void;
102
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
103
- config: {
104
- type: import("vue").PropType<FormConfig>;
105
- required: true;
106
- default: () => never[];
107
- };
108
- popperClass: {
109
- type: import("vue").PropType<string>;
110
- };
111
- initValues: {
112
- type: import("vue").PropType<Record<string, any>>;
113
- required: true;
114
- default: () => {};
115
- };
116
- lastValues: {
117
- type: import("vue").PropType<Record<string, any>>;
118
- default: () => {};
119
- };
120
- isCompare: {
121
- type: import("vue").PropType<boolean>;
122
- default: boolean;
123
- };
124
- keyProp: {
125
- type: import("vue").PropType<string>;
126
- default: string;
127
- };
128
- parentValues: {
129
- type: import("vue").PropType<Record<string, any>>;
130
- default: () => {};
131
- };
132
- labelWidth: {
133
- type: import("vue").PropType<string>;
134
- default: string;
135
- };
136
- disabled: {
137
- type: import("vue").PropType<boolean>;
138
- default: boolean;
139
- };
140
- stepActive: {
141
- type: import("vue").PropType<string | number>;
142
- default: number;
143
- };
144
- size: {
145
- type: import("vue").PropType<"large" | "default" | "small">;
146
- };
147
- height: {
148
- type: import("vue").PropType<string>;
149
- default: string;
150
- };
151
- inline: {
152
- type: import("vue").PropType<boolean>;
153
- default: boolean;
154
- };
155
- labelPosition: {
156
- type: import("vue").PropType<string>;
157
- default: string;
158
- };
159
- extendState: {
160
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
161
- };
162
- }>> & {
163
- onChange?: ((...args: any[]) => any) | undefined;
164
- onError?: ((...args: any[]) => any) | undefined;
165
- "onField-input"?: ((...args: any[]) => any) | undefined;
166
- "onField-change"?: ((...args: any[]) => any) | undefined;
167
- }, {
168
- config: FormConfig;
169
- initValues: Record<string, any>;
170
- lastValues: Record<string, any>;
171
- isCompare: boolean;
172
- keyProp: string;
173
- parentValues: Record<string, any>;
174
- labelWidth: string;
175
- disabled: boolean;
176
- stepActive: string | number;
177
- height: string;
178
- inline: boolean;
179
- labelPosition: string;
180
- }, true, {}, {}, {
181
- P: {};
182
- B: {};
183
- D: {};
184
- C: {};
185
- M: {};
186
- Defaults: {};
187
- }, Readonly<import("vue").ExtractPropTypes<{
188
- config: {
189
- type: import("vue").PropType<FormConfig>;
190
- required: true;
191
- default: () => never[];
192
- };
193
- popperClass: {
194
- type: import("vue").PropType<string>;
195
- };
196
- initValues: {
197
- type: import("vue").PropType<Record<string, any>>;
198
- required: true;
199
- default: () => {};
200
- };
201
- lastValues: {
202
- type: import("vue").PropType<Record<string, any>>;
203
- default: () => {};
204
- };
205
- isCompare: {
206
- type: import("vue").PropType<boolean>;
207
- default: boolean;
208
- };
209
- keyProp: {
210
- type: import("vue").PropType<string>;
211
- default: string;
212
- };
213
- parentValues: {
214
- type: import("vue").PropType<Record<string, any>>;
215
- default: () => {};
216
- };
217
- labelWidth: {
218
- type: import("vue").PropType<string>;
219
- default: string;
220
- };
221
- disabled: {
222
- type: import("vue").PropType<boolean>;
223
- default: boolean;
224
- };
225
- stepActive: {
226
- type: import("vue").PropType<string | number>;
227
- default: number;
228
- };
229
- size: {
230
- type: import("vue").PropType<"large" | "default" | "small">;
231
- };
232
- height: {
233
- type: import("vue").PropType<string>;
234
- default: string;
235
- };
236
- inline: {
237
- type: import("vue").PropType<boolean>;
238
- default: boolean;
239
- };
240
- labelPosition: {
241
- type: import("vue").PropType<string>;
242
- default: string;
243
- };
244
- extendState: {
245
- type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
246
- };
247
- }>> & {
248
- onChange?: ((...args: any[]) => any) | undefined;
249
- onError?: ((...args: any[]) => any) | undefined;
250
- "onField-input"?: ((...args: any[]) => any) | undefined;
251
- "onField-change"?: ((...args: any[]) => any) | undefined;
252
- }, {
253
- values: import("vue").Ref<import("./schema").FormValue>;
254
- lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
255
- formState: import("./schema").FormState;
256
- initialized: import("vue").Ref<boolean>;
257
- changeHandler: () => void;
258
- resetForm: () => any;
259
- submitForm: (native?: boolean | undefined) => Promise<any>;
260
- }, {}, {}, {}, {
261
- config: FormConfig;
262
- initValues: Record<string, any>;
263
- lastValues: Record<string, any>;
264
- isCompare: boolean;
265
- keyProp: string;
266
- parentValues: Record<string, any>;
267
- labelWidth: string;
268
- disabled: boolean;
269
- stepActive: string | number;
270
- height: string;
271
- inline: boolean;
272
- labelPosition: string;
273
- }> | undefined>;
274
- saveFetch: import("vue").Ref<boolean>;
275
- bodyHeight: import("vue").Ref<number>;
276
- show: () => void;
277
- hide: () => void;
278
- handleClose: () => void;
279
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
280
- change: (...args: any[]) => void;
281
- error: (...args: any[]) => void;
282
- submit: (...args: any[]) => void;
283
- close: (...args: any[]) => void;
284
- closed: (...args: any[]) => void;
285
- open: (...args: any[]) => void;
286
- opened: (...args: any[]) => void;
287
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
288
- config?: FormConfig | undefined;
289
- values?: Object | undefined;
290
- parentValues?: Object | undefined;
291
- width?: string | number | undefined;
292
- labelWidth?: string | undefined;
293
- disabled?: boolean | undefined;
294
- closeOnPressEscape?: boolean | undefined;
295
- title?: string | undefined;
296
- zIndex?: number | undefined;
297
- size?: "large" | "default" | "small" | undefined;
298
- confirmText?: string | undefined;
299
- inline?: boolean | undefined;
300
- labelPosition?: string | undefined;
301
- /** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
302
- beforeClose?: ((done: (cancel?: boolean | undefined) => void) => void) | undefined;
303
- }>, {
304
- closeOnPressEscape: boolean;
305
- config: () => never[];
306
- values: () => {};
307
- confirmText: string;
308
- }>>> & {
309
- onChange?: ((...args: any[]) => any) | undefined;
310
- onSubmit?: ((...args: any[]) => any) | undefined;
311
- onError?: ((...args: any[]) => any) | undefined;
312
- onClose?: ((...args: any[]) => any) | undefined;
313
- onOpen?: ((...args: any[]) => any) | undefined;
314
- onOpened?: ((...args: any[]) => any) | undefined;
315
- onClosed?: ((...args: any[]) => any) | undefined;
316
- }, {
317
- config: FormConfig;
318
- values: Object;
319
- confirmText: string;
320
- closeOnPressEscape: boolean;
321
- }, {}>, {
322
- default?(_: {}): any;
323
- left?(_: {}): any;
324
- footer?(_: {}): any;
325
- }>;
326
- export default _default;
327
- type __VLS_WithDefaults<P, D> = {
328
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
329
- default: D[K];
330
- }> : P[K];
331
- };
332
- type __VLS_Prettify<T> = {
333
- [K in keyof T]: T[K];
334
- } & {};
335
- type __VLS_WithTemplateSlots<T, S> = T & {
336
- new (): {
337
- $slots: S;
338
- };
339
- };
340
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
341
- type __VLS_TypePropsToOption<T> = {
342
- [K in keyof T]-?: {} extends Pick<T, K> ? {
343
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
344
- } : {
345
- type: import('vue').PropType<T[K]>;
346
- required: true;
347
- };
348
- };