@zy-frontend/form-core 2.0.6
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/README.md +422 -0
- package/dist/index.es.d.ts +453 -0
- package/dist/index.es.js +3587 -0
- package/dist/style.css +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { ExtractPropTypes } from 'vue';
|
|
5
|
+
import { InjectionKey } from 'vue';
|
|
6
|
+
import { PropType } from 'vue';
|
|
7
|
+
import { PublicProps } from 'vue';
|
|
8
|
+
import { Ref } from 'vue';
|
|
9
|
+
import { RuleItem } from 'async-validator';
|
|
10
|
+
import { Rules } from 'async-validator';
|
|
11
|
+
import { RuleType } from 'async-validator';
|
|
12
|
+
import { UnwrapNestedRefs } from 'vue';
|
|
13
|
+
|
|
14
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
|
|
16
|
+
declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
|
|
17
|
+
|
|
18
|
+
declare type __VLS_Prettify<T> = {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} & {};
|
|
21
|
+
|
|
22
|
+
declare type __VLS_Prettify_2<T> = {
|
|
23
|
+
[K in keyof T]: T[K];
|
|
24
|
+
} & {};
|
|
25
|
+
|
|
26
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
declare type __VLS_TypePropsToRuntimeProps_2<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare type __VLS_WithDefaults_2<P, D> = {
|
|
51
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
|
|
52
|
+
default: D[K];
|
|
53
|
+
}> : P[K];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export declare type Action = {
|
|
57
|
+
name?: string;
|
|
58
|
+
immediate?: boolean;
|
|
59
|
+
handler: string | ActionHandler | CombinedActionHandler;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export declare type ActionHandler = (fieldValue: any, // 当前字段的值
|
|
63
|
+
formKey: string, // 当前表单key
|
|
64
|
+
formData: Record<string, any>, // 当前所有表单数据
|
|
65
|
+
formConfig: Record<string, FormWithFieldMap>, // 所有表单配置的Map
|
|
66
|
+
oldFieldValue: any) => void;
|
|
67
|
+
|
|
68
|
+
export declare type AdvancedConfig = {
|
|
69
|
+
skipAutoDataReset?: boolean;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export declare type CombinedActionHandler = (formKey: string, // 当前表单key
|
|
73
|
+
formData: Record<string, any>, // 当前所有表单数据
|
|
74
|
+
formConfig: Record<string, FormWithFieldMap>) => void;
|
|
75
|
+
|
|
76
|
+
export declare interface Component {
|
|
77
|
+
type: ComponentType;
|
|
78
|
+
props?: Record<string, any>;
|
|
79
|
+
options?: Option_2[];
|
|
80
|
+
remote?: ComponentRemote | boolean;
|
|
81
|
+
showWhenReadOnly?: boolean;
|
|
82
|
+
fields?: Field[];
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export declare interface ComponentRemote {
|
|
87
|
+
url?: string;
|
|
88
|
+
extraParams?: Record<string, string | number | boolean>;
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare type ComponentType = ComponentTypeEnum | string;
|
|
93
|
+
|
|
94
|
+
export declare enum ComponentTypeEnum {
|
|
95
|
+
Input = "input",
|
|
96
|
+
InputNumber = "inputNumber",
|
|
97
|
+
Select = "select",
|
|
98
|
+
MultiSelect = "multiSelect",
|
|
99
|
+
Cascader = "cascader",
|
|
100
|
+
Radio = "radio",
|
|
101
|
+
Checkbox = "checkbox",
|
|
102
|
+
Switch = "switch",
|
|
103
|
+
DatePicker = "datePicker",
|
|
104
|
+
DateTimePicker = "dateTimePicker",
|
|
105
|
+
Upload = "upload",
|
|
106
|
+
DynamicTable = "dynamicTable",
|
|
107
|
+
DynamicForm = "dynamicForm",
|
|
108
|
+
DynamicTabs = "dynamicTabs",
|
|
109
|
+
Title = "title",
|
|
110
|
+
Collapse = "collapse",
|
|
111
|
+
ImageList = "imageList",
|
|
112
|
+
CombinedFields = "combinedFields"
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export declare type ContainerFieldComponent = Component & {
|
|
116
|
+
container: {
|
|
117
|
+
className?: string;
|
|
118
|
+
};
|
|
119
|
+
anchorTab?: boolean;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export declare const DELETED_FIELD_IDENTIFIER = "#ZY-FORM-CORE-DELETED#";
|
|
123
|
+
|
|
124
|
+
export declare interface Field {
|
|
125
|
+
key: string;
|
|
126
|
+
formKey?: string;
|
|
127
|
+
span?: number;
|
|
128
|
+
label?: Label | string;
|
|
129
|
+
description?: string;
|
|
130
|
+
props?: Record<string, any>;
|
|
131
|
+
type: FieldType;
|
|
132
|
+
defaultValue?: any;
|
|
133
|
+
clearValue?: any;
|
|
134
|
+
show?: boolean;
|
|
135
|
+
disabled?: boolean | IsFieldDisabled | string;
|
|
136
|
+
rules?: Rule[];
|
|
137
|
+
component?: Component;
|
|
138
|
+
actions?: Array<Action | ActionHandler | string>;
|
|
139
|
+
subscribers?: Subscriber[];
|
|
140
|
+
datetimeFormatPattern?: string;
|
|
141
|
+
className?: string;
|
|
142
|
+
advancedConfig?: AdvancedConfig;
|
|
143
|
+
readonly?: boolean;
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export declare type FieldType = 'boolean' | 'string' | 'number' | 'array' | 'object' | 'datetime' | 'images' | 'null' | 'container' | 'invisible' | 'combined';
|
|
148
|
+
|
|
149
|
+
export declare type FileRemoveMethod = (componentParams?: Record<string, any>, context?: RequestContext) => Promise<void> | void;
|
|
150
|
+
|
|
151
|
+
export declare interface Form {
|
|
152
|
+
key: string;
|
|
153
|
+
title?: string;
|
|
154
|
+
props?: FormProps;
|
|
155
|
+
show?: boolean;
|
|
156
|
+
gutter?: FormGutter;
|
|
157
|
+
fields: Field[];
|
|
158
|
+
preScript?: string | PreScriptFunction;
|
|
159
|
+
postScript?: string | PostScriptFunction;
|
|
160
|
+
subscribers?: (Omit<Subscriber, 'handler'> & {
|
|
161
|
+
handler: FormSubscriberHandler | string;
|
|
162
|
+
})[];
|
|
163
|
+
readonly?: boolean;
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export declare const FORM_CONTEXT_SYMBOL: InjectionKey<Record<string, any>>;
|
|
168
|
+
|
|
169
|
+
export declare const FORM_DATA_REFRESH_SYMBOL: InjectionKey<Ref<string, string>>;
|
|
170
|
+
|
|
171
|
+
export declare const FORM_DISABLED_SYMBOL: unique symbol;
|
|
172
|
+
|
|
173
|
+
export declare const FORM_GROUP_SYMBOL: unique symbol;
|
|
174
|
+
|
|
175
|
+
export declare const FORM_UNFULFILLED_FIELD_SYMBOL: unique symbol;
|
|
176
|
+
|
|
177
|
+
export declare type FormGutter = {
|
|
178
|
+
horizontal?: number | string;
|
|
179
|
+
vertical?: number | string;
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export declare type FormLabelPosition = LabelPosition;
|
|
184
|
+
|
|
185
|
+
export declare interface FormProps {
|
|
186
|
+
labelPosition?: FormLabelPosition;
|
|
187
|
+
labelWidth?: string | number;
|
|
188
|
+
hideRequiredAsterisk?: boolean;
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export declare type FormSubscriberHandler = (depValues: any[], // 依赖项值的集合
|
|
194
|
+
formKey: string, // 当前表单key
|
|
195
|
+
formData: Record<string, any>, // 当前所有表单数据
|
|
196
|
+
formConfig: Form) => void;
|
|
197
|
+
|
|
198
|
+
export declare type FormWithFieldMap = {
|
|
199
|
+
fieldMap: Record<string, Field>;
|
|
200
|
+
} & Form;
|
|
201
|
+
|
|
202
|
+
export declare const getFormattedFieldValue: (fieldValue: any, fieldType: Field['type'], componentProps: {
|
|
203
|
+
datetimeFormatPattern: string;
|
|
204
|
+
}) => any;
|
|
205
|
+
|
|
206
|
+
export declare const IDENTIFIER = "#ZY-FORM-CORE#";
|
|
207
|
+
|
|
208
|
+
export declare type IsFieldDisabled = (fieldValue: any, formData: any, fieldConfig: Field) => boolean;
|
|
209
|
+
|
|
210
|
+
export declare interface Label {
|
|
211
|
+
text?: string;
|
|
212
|
+
width?: string;
|
|
213
|
+
[key: string]: any;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export declare type LabelPosition = 'top' | 'right' | 'left';
|
|
217
|
+
|
|
218
|
+
declare type Option_2 = {
|
|
219
|
+
value: string | number | boolean | Record<string, any>;
|
|
220
|
+
label: string;
|
|
221
|
+
disabled?: boolean;
|
|
222
|
+
[key: string]: any;
|
|
223
|
+
};
|
|
224
|
+
export { Option_2 as Option }
|
|
225
|
+
|
|
226
|
+
export declare type PostScriptFunction = (formData: Ref<Record<string, any>>, // 当前表单数据
|
|
227
|
+
formConfig: UnwrapNestedRefs<Form>) => Record<string, any>;
|
|
228
|
+
|
|
229
|
+
export declare type PreScriptFunction = (formData: Ref<Record<string, any>>, // 当前表单数据
|
|
230
|
+
formConfig: UnwrapNestedRefs<Form>) => void;
|
|
231
|
+
|
|
232
|
+
export declare type RemoteMethod = (componentParams?: Record<string, any>, context?: RequestContext) => Option_2[] | Promise<Option_2[]>;
|
|
233
|
+
|
|
234
|
+
export declare type RemoteResponse = Option_2[] | Promise<Option_2[]> | any;
|
|
235
|
+
|
|
236
|
+
export declare interface RequestContext {
|
|
237
|
+
requestId: number;
|
|
238
|
+
signal?: AbortSignal;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export declare type RequestFunction = (keyPath: string, // 字段键路径,格式为formKey.fieldKey
|
|
242
|
+
value: any, // 字段值
|
|
243
|
+
url?: string, // 字段remote里配置的远程请求URL
|
|
244
|
+
extraParams?: Record<string, string | number | boolean>, // 字段remote里配置的远程请求参数
|
|
245
|
+
componentParams?: Record<string, any>, // 由UI组件传入的参数,如Select组件的query、Upload组件的file等
|
|
246
|
+
context?: RequestContext) => RemoteResponse;
|
|
247
|
+
|
|
248
|
+
export declare interface Rule extends Omit<RuleItem, 'validator'> {
|
|
249
|
+
level?: number;
|
|
250
|
+
validator?: string | ValidatorFunction | Validator;
|
|
251
|
+
deps?: string[];
|
|
252
|
+
trigger?: string | string[];
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { RuleType }
|
|
256
|
+
|
|
257
|
+
export declare interface Subscriber {
|
|
258
|
+
name?: string;
|
|
259
|
+
immediate?: boolean;
|
|
260
|
+
deps: string[];
|
|
261
|
+
handler: SubscriberHandler | string;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export declare type SubscriberHandler = (depValues: any[], // 依赖项值的集合
|
|
265
|
+
formKey: string, // 当前表单key
|
|
266
|
+
fieldKey: string, // 当前字段key
|
|
267
|
+
formData: Record<string, any>, // 当前所有表单数据
|
|
268
|
+
fieldConfig: Field) => void;
|
|
269
|
+
|
|
270
|
+
export declare interface UIComponents extends Record<ComponentType, any> {
|
|
271
|
+
form: any;
|
|
272
|
+
formItem: any;
|
|
273
|
+
tabs?: any;
|
|
274
|
+
collapse?: any;
|
|
275
|
+
collapseItem?: any;
|
|
276
|
+
[key: string]: any;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export declare interface UIComponentsWithTab extends UIComponents {
|
|
280
|
+
tabs: any;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export declare type UnfulfilledField = {
|
|
284
|
+
key: string;
|
|
285
|
+
formKey: string;
|
|
286
|
+
label: string;
|
|
287
|
+
message: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export declare type UploadMethod = (componentParams?: Record<string, any>, context?: RequestContext) => UploadResponse;
|
|
291
|
+
|
|
292
|
+
export declare type UploadResponse = any | Promise<any>;
|
|
293
|
+
|
|
294
|
+
export declare const validateFields: (rules: Rules, value: Record<string, any>) => Promise<void>;
|
|
295
|
+
|
|
296
|
+
export declare interface Validator {
|
|
297
|
+
name?: string;
|
|
298
|
+
required?: boolean;
|
|
299
|
+
deps?: string[];
|
|
300
|
+
handler: string | ValidatorFunction;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export declare type ValidatorFunction = (rule: any, value: any, callback: any, formData: UnwrapNestedRefs<Record<string, any>>, // 当前表单数据
|
|
304
|
+
formConfig: UnwrapNestedRefs<Form>, // 当前表单配置
|
|
305
|
+
validatorParams: {
|
|
306
|
+
rule: any;
|
|
307
|
+
value: any;
|
|
308
|
+
callback: any;
|
|
309
|
+
}, formGroupData: UnwrapNestedRefs<Record<string, any>>, depValues?: any[]) => void;
|
|
310
|
+
|
|
311
|
+
export declare const ZYForm: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
312
|
+
components: UIComponents;
|
|
313
|
+
config: Form[];
|
|
314
|
+
data: Record<string, any>;
|
|
315
|
+
formKey: string;
|
|
316
|
+
activated?: boolean | undefined;
|
|
317
|
+
readonly?: boolean | undefined;
|
|
318
|
+
static?: boolean | undefined;
|
|
319
|
+
disabled?: boolean | undefined;
|
|
320
|
+
requestFn?: RequestFunction | undefined;
|
|
321
|
+
scenario?: string | undefined;
|
|
322
|
+
requiredFieldOnly?: boolean | undefined;
|
|
323
|
+
anchorPositioning?: boolean | undefined;
|
|
324
|
+
anchorTabsPlacement?: "right" | "left" | undefined;
|
|
325
|
+
nestedProps?: {
|
|
326
|
+
key?: string | number | undefined;
|
|
327
|
+
label?: string | undefined;
|
|
328
|
+
} | undefined;
|
|
329
|
+
showUnfulfilledTips?: boolean | undefined;
|
|
330
|
+
}>, {
|
|
331
|
+
requestFn: undefined;
|
|
332
|
+
scenario: undefined;
|
|
333
|
+
anchorTabsPlacement: string;
|
|
334
|
+
showUnfulfilledTips: boolean;
|
|
335
|
+
}>>, {
|
|
336
|
+
initFormData: (newData?: Record<string, any> | undefined) => Promise<void>;
|
|
337
|
+
resetFormData: () => void;
|
|
338
|
+
restartWatch: () => Promise<void>;
|
|
339
|
+
validate: (maxLevel?: number | undefined, fields?: string[] | undefined) => Promise<true | [...any[], any]>;
|
|
340
|
+
clearValidate: () => any;
|
|
341
|
+
getFormData: () => any;
|
|
342
|
+
showFirstUnfulfilledField: () => void;
|
|
343
|
+
scrollTo: (fieldKey: string) => Promise<void>;
|
|
344
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
345
|
+
blur: (e: FocusEvent, keyPath: string, fieldValue: any) => void;
|
|
346
|
+
change: (keyPath: string, fieldValue: any) => void;
|
|
347
|
+
keyupEnter: (e: KeyboardEvent, keyPath: string, fieldValue: any) => void;
|
|
348
|
+
"update:data": (val: Record<string, any>) => void;
|
|
349
|
+
"update:config": (val: Form[]) => void;
|
|
350
|
+
"update:unfulfilledFields": (val: UnfulfilledField[]) => void;
|
|
351
|
+
mounted: () => void;
|
|
352
|
+
"data-initialed": (formKey: string) => void;
|
|
353
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
354
|
+
components: UIComponents;
|
|
355
|
+
config: Form[];
|
|
356
|
+
data: Record<string, any>;
|
|
357
|
+
formKey: string;
|
|
358
|
+
activated?: boolean | undefined;
|
|
359
|
+
readonly?: boolean | undefined;
|
|
360
|
+
static?: boolean | undefined;
|
|
361
|
+
disabled?: boolean | undefined;
|
|
362
|
+
requestFn?: RequestFunction | undefined;
|
|
363
|
+
scenario?: string | undefined;
|
|
364
|
+
requiredFieldOnly?: boolean | undefined;
|
|
365
|
+
anchorPositioning?: boolean | undefined;
|
|
366
|
+
anchorTabsPlacement?: "right" | "left" | undefined;
|
|
367
|
+
nestedProps?: {
|
|
368
|
+
key?: string | number | undefined;
|
|
369
|
+
label?: string | undefined;
|
|
370
|
+
} | undefined;
|
|
371
|
+
showUnfulfilledTips?: boolean | undefined;
|
|
372
|
+
}>, {
|
|
373
|
+
requestFn: undefined;
|
|
374
|
+
scenario: undefined;
|
|
375
|
+
anchorTabsPlacement: string;
|
|
376
|
+
showUnfulfilledTips: boolean;
|
|
377
|
+
}>>> & Readonly<{
|
|
378
|
+
onBlur?: ((e: FocusEvent, keyPath: string, fieldValue: any) => any) | undefined;
|
|
379
|
+
onChange?: ((keyPath: string, fieldValue: any) => any) | undefined;
|
|
380
|
+
onKeyupEnter?: ((e: KeyboardEvent, keyPath: string, fieldValue: any) => any) | undefined;
|
|
381
|
+
"onUpdate:data"?: ((val: Record<string, any>) => any) | undefined;
|
|
382
|
+
"onUpdate:config"?: ((val: Form[]) => any) | undefined;
|
|
383
|
+
"onUpdate:unfulfilledFields"?: ((val: UnfulfilledField[]) => any) | undefined;
|
|
384
|
+
onMounted?: (() => any) | undefined;
|
|
385
|
+
"onData-initialed"?: ((formKey: string) => any) | undefined;
|
|
386
|
+
}>, {
|
|
387
|
+
requestFn: RequestFunction;
|
|
388
|
+
scenario: string;
|
|
389
|
+
anchorTabsPlacement: 'left' | 'right';
|
|
390
|
+
showUnfulfilledTips: boolean;
|
|
391
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
392
|
+
|
|
393
|
+
export declare const ZYFormGroup: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
394
|
+
components: UIComponentsWithTab;
|
|
395
|
+
config: Form[];
|
|
396
|
+
data: Record<string, any>;
|
|
397
|
+
readonly?: boolean | undefined;
|
|
398
|
+
static?: boolean | undefined;
|
|
399
|
+
disabled?: boolean | undefined;
|
|
400
|
+
requestFn?: RequestFunction | undefined;
|
|
401
|
+
scenario?: string | undefined;
|
|
402
|
+
requiredFieldOnly?: boolean | undefined;
|
|
403
|
+
containChildFormInTabs?: boolean | undefined;
|
|
404
|
+
defaultTabKey?: string | undefined;
|
|
405
|
+
showUnfulfilledTips?: boolean | undefined;
|
|
406
|
+
}>, {
|
|
407
|
+
requestFn: undefined;
|
|
408
|
+
scenario: undefined;
|
|
409
|
+
defaultTabKey: undefined;
|
|
410
|
+
showUnfulfilledTips: boolean;
|
|
411
|
+
}>>, {
|
|
412
|
+
resetFormData: (formKey?: string | string[] | undefined) => Promise<void>;
|
|
413
|
+
initFormData: (newData?: Record<string, any> | undefined) => Promise<void>;
|
|
414
|
+
validate: (formKey?: string | string[] | undefined, maxLevel?: number, showUnfulfilled?: boolean) => Promise<true | [...any[], any] | (true | [...any[], any])[] | undefined>;
|
|
415
|
+
clearValidate: (formKey?: string | string[] | undefined) => void;
|
|
416
|
+
getFormData: () => Record<string, any>;
|
|
417
|
+
scrollTo: (formKey: string, fieldKey: string) => void;
|
|
418
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
419
|
+
"update:data": (val: Record<string, any>) => void;
|
|
420
|
+
mounted: () => void;
|
|
421
|
+
"data-initialed": () => void;
|
|
422
|
+
"tab-change": (...args: any[]) => void;
|
|
423
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
|
|
424
|
+
components: UIComponentsWithTab;
|
|
425
|
+
config: Form[];
|
|
426
|
+
data: Record<string, any>;
|
|
427
|
+
readonly?: boolean | undefined;
|
|
428
|
+
static?: boolean | undefined;
|
|
429
|
+
disabled?: boolean | undefined;
|
|
430
|
+
requestFn?: RequestFunction | undefined;
|
|
431
|
+
scenario?: string | undefined;
|
|
432
|
+
requiredFieldOnly?: boolean | undefined;
|
|
433
|
+
containChildFormInTabs?: boolean | undefined;
|
|
434
|
+
defaultTabKey?: string | undefined;
|
|
435
|
+
showUnfulfilledTips?: boolean | undefined;
|
|
436
|
+
}>, {
|
|
437
|
+
requestFn: undefined;
|
|
438
|
+
scenario: undefined;
|
|
439
|
+
defaultTabKey: undefined;
|
|
440
|
+
showUnfulfilledTips: boolean;
|
|
441
|
+
}>>> & Readonly<{
|
|
442
|
+
"onUpdate:data"?: ((val: Record<string, any>) => any) | undefined;
|
|
443
|
+
onMounted?: (() => any) | undefined;
|
|
444
|
+
"onData-initialed"?: (() => any) | undefined;
|
|
445
|
+
"onTab-change"?: ((...args: any[]) => any) | undefined;
|
|
446
|
+
}>, {
|
|
447
|
+
requestFn: RequestFunction;
|
|
448
|
+
scenario: string;
|
|
449
|
+
showUnfulfilledTips: boolean;
|
|
450
|
+
defaultTabKey: string;
|
|
451
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
452
|
+
|
|
453
|
+
export { }
|