@tmagic/form 1.0.0-beta.1 → 1.0.0-beta.2
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/dist/tmagic-form.es.js +19 -17
- package/dist/tmagic-form.es.js.map +1 -1
- package/dist/tmagic-form.umd.js +17 -15
- package/dist/tmagic-form.umd.js.map +1 -1
- package/dist/types/src/Form.vue.d.ts +10 -13
- package/dist/types/src/FormDialog.vue.d.ts +23 -26
- package/dist/types/src/containers/Container.vue.d.ts +1 -1
- package/dist/types/src/containers/Fieldset.vue.d.ts +1 -1
- package/dist/types/src/containers/GroupList.vue.d.ts +1 -1
- package/dist/types/src/containers/GroupListItem.vue.d.ts +1 -1
- package/dist/types/src/containers/Panel.vue.d.ts +1 -1
- package/dist/types/src/containers/Row.vue.d.ts +1 -1
- package/dist/types/src/containers/Step.vue.d.ts +1 -1
- package/dist/types/src/containers/Table.vue.d.ts +5 -5
- package/dist/types/src/containers/Tabs.vue.d.ts +2 -2
- package/dist/types/src/fields/Cascader.vue.d.ts +16 -16
- package/dist/types/src/fields/Checkbox.vue.d.ts +2 -2
- package/dist/types/src/fields/CheckboxGroup.vue.d.ts +2 -2
- package/dist/types/src/fields/Date.vue.d.ts +2 -2
- package/dist/types/src/fields/DateTime.vue.d.ts +2 -2
- package/dist/types/src/fields/Daterange.vue.d.ts +2 -2
- package/dist/types/src/fields/DynamicField.vue.d.ts +2 -2
- package/dist/types/src/fields/Link.vue.d.ts +47 -54
- package/dist/types/src/fields/Number.vue.d.ts +2 -2
- package/dist/types/src/fields/RadioGroup.vue.d.ts +2 -2
- package/dist/types/src/fields/Select.vue.d.ts +12 -12
- package/dist/types/src/fields/Switch.vue.d.ts +2 -2
- package/dist/types/src/fields/Text.vue.d.ts +2 -2
- package/dist/types/src/fields/Textarea.vue.d.ts +2 -2
- package/dist/types/src/fields/Time.vue.d.ts +2 -2
- package/package.json +6 -6
- package/src/Form.vue +33 -29
- package/src/FormDialog.vue +3 -0
- package/src/containers/Tabs.vue +4 -0
|
@@ -43,7 +43,6 @@ declare const _default: DefineComponent<{
|
|
|
43
43
|
};
|
|
44
44
|
size: {
|
|
45
45
|
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
46
|
};
|
|
48
47
|
inline: {
|
|
49
48
|
type: BooleanConstructor;
|
|
@@ -96,7 +95,7 @@ declare const _default: DefineComponent<{
|
|
|
96
95
|
type: BooleanConstructor;
|
|
97
96
|
default: boolean;
|
|
98
97
|
};
|
|
99
|
-
size: PropType<"
|
|
98
|
+
size: PropType<"small" | "default" | "large">;
|
|
100
99
|
disabled: BooleanConstructor;
|
|
101
100
|
validateOnRuleChange: {
|
|
102
101
|
type: BooleanConstructor;
|
|
@@ -109,7 +108,7 @@ declare const _default: DefineComponent<{
|
|
|
109
108
|
scrollToError: BooleanConstructor;
|
|
110
109
|
}>> & {
|
|
111
110
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
112
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "
|
|
111
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "inline" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
113
112
|
$attrs: {
|
|
114
113
|
[x: string]: unknown;
|
|
115
114
|
};
|
|
@@ -142,7 +141,7 @@ declare const _default: DefineComponent<{
|
|
|
142
141
|
type: BooleanConstructor;
|
|
143
142
|
default: boolean;
|
|
144
143
|
};
|
|
145
|
-
size: PropType<"
|
|
144
|
+
size: PropType<"small" | "default" | "large">;
|
|
146
145
|
disabled: BooleanConstructor;
|
|
147
146
|
validateOnRuleChange: {
|
|
148
147
|
type: BooleanConstructor;
|
|
@@ -212,7 +211,7 @@ declare const _default: DefineComponent<{
|
|
|
212
211
|
type: BooleanConstructor;
|
|
213
212
|
default: boolean;
|
|
214
213
|
};
|
|
215
|
-
size: PropType<"
|
|
214
|
+
size: PropType<"small" | "default" | "large">;
|
|
216
215
|
disabled: BooleanConstructor;
|
|
217
216
|
validateOnRuleChange: {
|
|
218
217
|
type: BooleanConstructor;
|
|
@@ -270,7 +269,6 @@ declare const _default: DefineComponent<{
|
|
|
270
269
|
};
|
|
271
270
|
size: {
|
|
272
271
|
type: StringConstructor;
|
|
273
|
-
default: string;
|
|
274
272
|
};
|
|
275
273
|
inline: {
|
|
276
274
|
type: BooleanConstructor;
|
|
@@ -289,16 +287,15 @@ declare const _default: DefineComponent<{
|
|
|
289
287
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
290
288
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
291
289
|
}, {
|
|
292
|
-
labelPosition: string;
|
|
293
|
-
labelWidth: string;
|
|
294
|
-
inline: boolean;
|
|
295
|
-
size: string;
|
|
296
|
-
disabled: boolean;
|
|
297
|
-
config: FormConfig;
|
|
298
|
-
stepActive: string | number;
|
|
299
290
|
initValues: Record<string, any>;
|
|
300
291
|
parentValues: Record<string, any>;
|
|
292
|
+
config: FormConfig;
|
|
293
|
+
labelWidth: string;
|
|
294
|
+
disabled: boolean;
|
|
301
295
|
height: string;
|
|
296
|
+
stepActive: string | number;
|
|
297
|
+
inline: boolean;
|
|
298
|
+
labelPosition: string;
|
|
302
299
|
keyProp: string;
|
|
303
300
|
}>;
|
|
304
301
|
export default _default;
|
|
@@ -17,6 +17,7 @@ declare const _default: DefineComponent<{
|
|
|
17
17
|
default: () => never[];
|
|
18
18
|
};
|
|
19
19
|
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
size: PropType<"small" | "mini" | "medium">;
|
|
20
21
|
confirmText: {
|
|
21
22
|
type: StringConstructor;
|
|
22
23
|
default: string;
|
|
@@ -26,16 +27,15 @@ declare const _default: DefineComponent<{
|
|
|
26
27
|
$: ComponentInternalInstance;
|
|
27
28
|
$data: {};
|
|
28
29
|
$props: Partial<{
|
|
29
|
-
labelPosition: string;
|
|
30
|
-
labelWidth: string;
|
|
31
|
-
inline: boolean;
|
|
32
|
-
size: string;
|
|
33
|
-
disabled: boolean;
|
|
34
|
-
config: FormConfig;
|
|
35
|
-
stepActive: string | number;
|
|
36
30
|
initValues: Record<string, any>;
|
|
37
31
|
parentValues: Record<string, any>;
|
|
32
|
+
config: FormConfig;
|
|
33
|
+
labelWidth: string;
|
|
34
|
+
disabled: boolean;
|
|
38
35
|
height: string;
|
|
36
|
+
stepActive: string | number;
|
|
37
|
+
inline: boolean;
|
|
38
|
+
labelPosition: string;
|
|
39
39
|
keyProp: string;
|
|
40
40
|
}> & Omit<Readonly<ExtractPropTypes<{
|
|
41
41
|
initValues: {
|
|
@@ -70,7 +70,6 @@ declare const _default: DefineComponent<{
|
|
|
70
70
|
};
|
|
71
71
|
size: {
|
|
72
72
|
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
73
|
};
|
|
75
74
|
inline: {
|
|
76
75
|
type: BooleanConstructor;
|
|
@@ -88,7 +87,7 @@ declare const _default: DefineComponent<{
|
|
|
88
87
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
89
88
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
90
89
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
91
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
90
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "initValues" | "parentValues" | "config" | "labelWidth" | "disabled" | "height" | "stepActive" | "inline" | "labelPosition" | "keyProp">;
|
|
92
91
|
$attrs: {
|
|
93
92
|
[x: string]: unknown;
|
|
94
93
|
};
|
|
@@ -135,7 +134,6 @@ declare const _default: DefineComponent<{
|
|
|
135
134
|
};
|
|
136
135
|
size: {
|
|
137
136
|
type: StringConstructor;
|
|
138
|
-
default: string;
|
|
139
137
|
};
|
|
140
138
|
inline: {
|
|
141
139
|
type: BooleanConstructor;
|
|
@@ -192,7 +190,7 @@ declare const _default: DefineComponent<{
|
|
|
192
190
|
type: BooleanConstructor;
|
|
193
191
|
default: boolean;
|
|
194
192
|
};
|
|
195
|
-
size: PropType<"
|
|
193
|
+
size: PropType<"small" | "default" | "large">;
|
|
196
194
|
disabled: BooleanConstructor;
|
|
197
195
|
validateOnRuleChange: {
|
|
198
196
|
type: BooleanConstructor;
|
|
@@ -205,7 +203,7 @@ declare const _default: DefineComponent<{
|
|
|
205
203
|
scrollToError: BooleanConstructor;
|
|
206
204
|
}>> & {
|
|
207
205
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
208
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "
|
|
206
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "inline" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
209
207
|
$attrs: {
|
|
210
208
|
[x: string]: unknown;
|
|
211
209
|
};
|
|
@@ -238,7 +236,7 @@ declare const _default: DefineComponent<{
|
|
|
238
236
|
type: BooleanConstructor;
|
|
239
237
|
default: boolean;
|
|
240
238
|
};
|
|
241
|
-
size: PropType<"
|
|
239
|
+
size: PropType<"small" | "default" | "large">;
|
|
242
240
|
disabled: BooleanConstructor;
|
|
243
241
|
validateOnRuleChange: {
|
|
244
242
|
type: BooleanConstructor;
|
|
@@ -308,7 +306,7 @@ declare const _default: DefineComponent<{
|
|
|
308
306
|
type: BooleanConstructor;
|
|
309
307
|
default: boolean;
|
|
310
308
|
};
|
|
311
|
-
size: PropType<"
|
|
309
|
+
size: PropType<"small" | "default" | "large">;
|
|
312
310
|
disabled: BooleanConstructor;
|
|
313
311
|
validateOnRuleChange: {
|
|
314
312
|
type: BooleanConstructor;
|
|
@@ -334,16 +332,15 @@ declare const _default: DefineComponent<{
|
|
|
334
332
|
resetForm: () => void | undefined;
|
|
335
333
|
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
336
334
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "field-input" | "field-change")[], string, {
|
|
337
|
-
labelPosition: string;
|
|
338
|
-
labelWidth: string;
|
|
339
|
-
inline: boolean;
|
|
340
|
-
size: string;
|
|
341
|
-
disabled: boolean;
|
|
342
|
-
config: FormConfig;
|
|
343
|
-
stepActive: string | number;
|
|
344
335
|
initValues: Record<string, any>;
|
|
345
336
|
parentValues: Record<string, any>;
|
|
337
|
+
config: FormConfig;
|
|
338
|
+
labelWidth: string;
|
|
339
|
+
disabled: boolean;
|
|
346
340
|
height: string;
|
|
341
|
+
stepActive: string | number;
|
|
342
|
+
inline: boolean;
|
|
343
|
+
labelPosition: string;
|
|
347
344
|
keyProp: string;
|
|
348
345
|
}> & {
|
|
349
346
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -398,7 +395,6 @@ declare const _default: DefineComponent<{
|
|
|
398
395
|
};
|
|
399
396
|
size: {
|
|
400
397
|
type: StringConstructor;
|
|
401
|
-
default: string;
|
|
402
398
|
};
|
|
403
399
|
inline: {
|
|
404
400
|
type: BooleanConstructor;
|
|
@@ -455,7 +451,7 @@ declare const _default: DefineComponent<{
|
|
|
455
451
|
type: BooleanConstructor;
|
|
456
452
|
default: boolean;
|
|
457
453
|
};
|
|
458
|
-
size: PropType<"
|
|
454
|
+
size: PropType<"small" | "default" | "large">;
|
|
459
455
|
disabled: BooleanConstructor;
|
|
460
456
|
validateOnRuleChange: {
|
|
461
457
|
type: BooleanConstructor;
|
|
@@ -468,7 +464,7 @@ declare const _default: DefineComponent<{
|
|
|
468
464
|
scrollToError: BooleanConstructor;
|
|
469
465
|
}>> & {
|
|
470
466
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
471
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "
|
|
467
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "disabled" | "inline" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
472
468
|
$attrs: {
|
|
473
469
|
[x: string]: unknown;
|
|
474
470
|
};
|
|
@@ -501,7 +497,7 @@ declare const _default: DefineComponent<{
|
|
|
501
497
|
type: BooleanConstructor;
|
|
502
498
|
default: boolean;
|
|
503
499
|
};
|
|
504
|
-
size: PropType<"
|
|
500
|
+
size: PropType<"small" | "default" | "large">;
|
|
505
501
|
disabled: BooleanConstructor;
|
|
506
502
|
validateOnRuleChange: {
|
|
507
503
|
type: BooleanConstructor;
|
|
@@ -571,7 +567,7 @@ declare const _default: DefineComponent<{
|
|
|
571
567
|
type: BooleanConstructor;
|
|
572
568
|
default: boolean;
|
|
573
569
|
};
|
|
574
|
-
size: PropType<"
|
|
570
|
+
size: PropType<"small" | "default" | "large">;
|
|
575
571
|
disabled: BooleanConstructor;
|
|
576
572
|
validateOnRuleChange: {
|
|
577
573
|
type: BooleanConstructor;
|
|
@@ -623,6 +619,7 @@ declare const _default: DefineComponent<{
|
|
|
623
619
|
default: () => never[];
|
|
624
620
|
};
|
|
625
621
|
labelWidth: (StringConstructor | NumberConstructor)[];
|
|
622
|
+
size: PropType<"small" | "mini" | "medium">;
|
|
626
623
|
confirmText: {
|
|
627
624
|
type: StringConstructor;
|
|
628
625
|
default: string;
|
|
@@ -48,9 +48,9 @@ declare const _default: DefineComponent<{
|
|
|
48
48
|
}>> & {
|
|
49
49
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
|
+
config: FieldsetConfig;
|
|
51
52
|
model: Record<string, any>;
|
|
52
53
|
rules: Record<string, any>;
|
|
53
|
-
config: FieldsetConfig;
|
|
54
54
|
prop: string;
|
|
55
55
|
}>;
|
|
56
56
|
export default _default;
|
|
@@ -48,9 +48,9 @@ declare const _default: DefineComponent<{
|
|
|
48
48
|
}>> & {
|
|
49
49
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
model: Record<string, any>;
|
|
52
51
|
name: string;
|
|
53
52
|
config: GroupListConfig;
|
|
53
|
+
model: Record<string, any>;
|
|
54
54
|
prop: string;
|
|
55
55
|
}>;
|
|
56
56
|
export default _default;
|
|
@@ -64,8 +64,8 @@ declare const _default: DefineComponent<{
|
|
|
64
64
|
"onSwap-item"?: ((...args: any[]) => any) | undefined;
|
|
65
65
|
"onRemove-item"?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
}, {
|
|
67
|
-
model: Record<string, any>;
|
|
68
67
|
config: GroupListConfig;
|
|
68
|
+
model: Record<string, any>;
|
|
69
69
|
index: string | number | symbol;
|
|
70
70
|
groupModel: unknown[];
|
|
71
71
|
}>;
|
|
@@ -206,7 +206,7 @@ declare const _default: DefineComponent<{
|
|
|
206
206
|
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
207
207
|
"onFilter-change"?: ((...args: any[]) => any) | undefined;
|
|
208
208
|
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
209
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
209
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "className" | "border" | "lazy" | "style" | "data" | "fit" | "stripe" | "showHeader" | "showSummary" | "highlightCurrentRow" | "defaultExpandAll" | "selectOnIndeterminate" | "indent" | "treeProps" | "tableLayout">;
|
|
210
210
|
$attrs: {
|
|
211
211
|
[x: string]: unknown;
|
|
212
212
|
};
|
|
@@ -358,7 +358,7 @@ declare const _default: DefineComponent<{
|
|
|
358
358
|
handleHeaderFooterMousewheel: (event: any, data: any) => void;
|
|
359
359
|
handleMouseLeave: () => void;
|
|
360
360
|
tableId: string;
|
|
361
|
-
tableSize: ComputedRef<"
|
|
361
|
+
tableSize: ComputedRef<"small" | "default" | "large">;
|
|
362
362
|
isHidden: Ref<boolean>;
|
|
363
363
|
isEmpty: ComputedRef<boolean>;
|
|
364
364
|
renderExpanded: Ref<null>;
|
|
@@ -601,7 +601,7 @@ declare const _default: DefineComponent<{
|
|
|
601
601
|
handleHeaderFooterMousewheel: (event: any, data: any) => void;
|
|
602
602
|
handleMouseLeave: () => void;
|
|
603
603
|
tableId: string;
|
|
604
|
-
tableSize: ComputedRef<"
|
|
604
|
+
tableSize: ComputedRef<"small" | "default" | "large">;
|
|
605
605
|
isHidden: Ref<boolean>;
|
|
606
606
|
isEmpty: ComputedRef<boolean>;
|
|
607
607
|
renderExpanded: Ref<null>;
|
|
@@ -853,7 +853,7 @@ declare const _default: DefineComponent<{
|
|
|
853
853
|
type: FunctionConstructor;
|
|
854
854
|
default: () => () => void;
|
|
855
855
|
};
|
|
856
|
-
}>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
856
|
+
}>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "onChange" | "disabled" | "type" | "multiple" | "method" | "headers" | "onError" | "data" | "drag" | "withCredentials" | "showFileList" | "accept" | "beforeUpload" | "beforeRemove" | "onRemove" | "onPreview" | "onSuccess" | "onProgress" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit" | "onExceed">;
|
|
857
857
|
$attrs: {
|
|
858
858
|
[x: string]: unknown;
|
|
859
859
|
};
|
|
@@ -1392,9 +1392,9 @@ declare const _default: DefineComponent<{
|
|
|
1392
1392
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1393
1393
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1394
1394
|
}, {
|
|
1395
|
-
model: Record<string, any>;
|
|
1396
1395
|
sort: boolean;
|
|
1397
1396
|
config: TableConfig;
|
|
1397
|
+
model: Record<string, any>;
|
|
1398
1398
|
enableToggleMode: boolean;
|
|
1399
1399
|
sortKey: string;
|
|
1400
1400
|
}>;
|
|
@@ -18,7 +18,7 @@ declare const Tab: DefineComponent<{
|
|
|
18
18
|
activeTabName: any;
|
|
19
19
|
tabs: ComputedRef<any>;
|
|
20
20
|
filter: (config: any) => any;
|
|
21
|
-
tabItems: (tab: TabPaneConfig) => TabPaneConfig[]
|
|
21
|
+
tabItems: (tab: TabPaneConfig) => FormConfig | TabPaneConfig[];
|
|
22
22
|
tabClickHandler: (tab: any) => void;
|
|
23
23
|
onTabAdd: () => void;
|
|
24
24
|
onTabRemove: (tabName: string) => void;
|
|
@@ -38,8 +38,8 @@ declare const Tab: DefineComponent<{
|
|
|
38
38
|
prop: StringConstructor;
|
|
39
39
|
size: StringConstructor;
|
|
40
40
|
}>>, {
|
|
41
|
+
config: TabConfig;
|
|
41
42
|
model: Record<string, any>;
|
|
42
43
|
expandMore: boolean;
|
|
43
|
-
config: TabConfig;
|
|
44
44
|
}>;
|
|
45
45
|
export default Tab;
|
|
@@ -40,8 +40,8 @@ declare const _default: DefineComponent<{
|
|
|
40
40
|
dialogVisible: boolean;
|
|
41
41
|
cascader: Ref<SFCWithInstall<DefineComponent<{
|
|
42
42
|
size: {
|
|
43
|
-
type: PropType<"
|
|
44
|
-
validator: (val: string) => val is "" | "
|
|
43
|
+
type: PropType<"small" | "default" | "large">;
|
|
44
|
+
validator: (val: string) => val is "" | "small" | "default" | "large";
|
|
45
45
|
};
|
|
46
46
|
placeholder: {
|
|
47
47
|
type: StringConstructor;
|
|
@@ -628,7 +628,7 @@ declare const _default: DefineComponent<{
|
|
|
628
628
|
$data: {};
|
|
629
629
|
$props: Partial<{
|
|
630
630
|
type: string;
|
|
631
|
-
size: BuildPropType<StringConstructor, "
|
|
631
|
+
size: BuildPropType<StringConstructor, "small" | "default" | "large", never>;
|
|
632
632
|
disabled: boolean;
|
|
633
633
|
modelValue: BuildPropType<PropWrapper<string | number | null | undefined>, unknown, unknown>;
|
|
634
634
|
label: string;
|
|
@@ -650,7 +650,7 @@ declare const _default: DefineComponent<{
|
|
|
650
650
|
validateEvent: BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
651
651
|
inputStyle: StyleValue;
|
|
652
652
|
}> & Omit<Readonly<ExtractPropTypes<{
|
|
653
|
-
readonly size: BuildPropReturn<StringConstructor, never, false, "
|
|
653
|
+
readonly size: BuildPropReturn<StringConstructor, never, false, "small" | "default" | "large", never>;
|
|
654
654
|
readonly disabled: BooleanConstructor;
|
|
655
655
|
readonly modelValue: BuildPropReturn<PropWrapper<string | number | null | undefined>, "", unknown, unknown, unknown>;
|
|
656
656
|
readonly type: BuildPropReturn<StringConstructor, "text", unknown, unknown, unknown>;
|
|
@@ -685,7 +685,7 @@ declare const _default: DefineComponent<{
|
|
|
685
685
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
686
686
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
687
687
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
688
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
688
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "size" | "type" | "placeholder" | "form" | "clearable" | "label" | "modelValue" | "autocomplete" | "suffixIcon" | "resize" | "autosize" | "readonly" | "showPassword" | "showWordLimit" | "prefixIcon" | "tabindex" | "validateEvent" | "inputStyle">;
|
|
689
689
|
$attrs: {
|
|
690
690
|
[x: string]: unknown;
|
|
691
691
|
};
|
|
@@ -700,7 +700,7 @@ declare const _default: DefineComponent<{
|
|
|
700
700
|
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "clear") => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
701
701
|
$el: any;
|
|
702
702
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
703
|
-
readonly size: BuildPropReturn<StringConstructor, never, false, "
|
|
703
|
+
readonly size: BuildPropReturn<StringConstructor, never, false, "small" | "default" | "large", never>;
|
|
704
704
|
readonly disabled: BooleanConstructor;
|
|
705
705
|
readonly modelValue: BuildPropReturn<PropWrapper<string | number | null | undefined>, "", unknown, unknown, unknown>;
|
|
706
706
|
readonly type: BuildPropReturn<StringConstructor, "text", unknown, unknown, unknown>;
|
|
@@ -739,7 +739,7 @@ declare const _default: DefineComponent<{
|
|
|
739
739
|
input: Ref<HTMLInputElement | undefined>;
|
|
740
740
|
textarea: Ref<HTMLTextAreaElement | undefined>;
|
|
741
741
|
attrs: ComputedRef<Record<string, unknown>>;
|
|
742
|
-
inputSize: ComputedRef<"
|
|
742
|
+
inputSize: ComputedRef<"small" | "default" | "large">;
|
|
743
743
|
validateState: ComputedRef<string>;
|
|
744
744
|
validateIcon: ComputedRef<any>;
|
|
745
745
|
containerStyle: ComputedRef<StyleValue>;
|
|
@@ -814,7 +814,7 @@ declare const _default: DefineComponent<{
|
|
|
814
814
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
815
815
|
}, string, {
|
|
816
816
|
type: string;
|
|
817
|
-
size: BuildPropType<StringConstructor, "
|
|
817
|
+
size: BuildPropType<StringConstructor, "small" | "default" | "large", never>;
|
|
818
818
|
disabled: boolean;
|
|
819
819
|
modelValue: BuildPropType<PropWrapper<string | number | null | undefined>, unknown, unknown>;
|
|
820
820
|
label: string;
|
|
@@ -856,7 +856,7 @@ declare const _default: DefineComponent<{
|
|
|
856
856
|
$nextTick: typeof nextTick;
|
|
857
857
|
$watch(source: string | Function, cb: Function, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
858
858
|
} & Readonly<ExtractPropTypes<{
|
|
859
|
-
readonly size: BuildPropReturn<StringConstructor, never, false, "
|
|
859
|
+
readonly size: BuildPropReturn<StringConstructor, never, false, "small" | "default" | "large", never>;
|
|
860
860
|
readonly disabled: BooleanConstructor;
|
|
861
861
|
readonly modelValue: BuildPropReturn<PropWrapper<string | number | null | undefined>, "", unknown, unknown, unknown>;
|
|
862
862
|
readonly type: BuildPropReturn<StringConstructor, "text", unknown, unknown, unknown>;
|
|
@@ -895,7 +895,7 @@ declare const _default: DefineComponent<{
|
|
|
895
895
|
input: Ref<HTMLInputElement | undefined>;
|
|
896
896
|
textarea: Ref<HTMLTextAreaElement | undefined>;
|
|
897
897
|
attrs: ComputedRef<Record<string, unknown>>;
|
|
898
|
-
inputSize: ComputedRef<"
|
|
898
|
+
inputSize: ComputedRef<"small" | "default" | "large">;
|
|
899
899
|
validateState: ComputedRef<string>;
|
|
900
900
|
validateIcon: ComputedRef<any>;
|
|
901
901
|
containerStyle: ComputedRef<StyleValue>;
|
|
@@ -1506,8 +1506,8 @@ declare const _default: DefineComponent<{
|
|
|
1506
1506
|
suggestions: Ref<default[]>;
|
|
1507
1507
|
isDisabled: ComputedRef<boolean | undefined>;
|
|
1508
1508
|
isOnComposition: Ref<boolean>;
|
|
1509
|
-
realSize: ComputedRef<"
|
|
1510
|
-
tagSize: ComputedRef<"
|
|
1509
|
+
realSize: ComputedRef<"small" | "default" | "large">;
|
|
1510
|
+
tagSize: ComputedRef<"small" | "default">;
|
|
1511
1511
|
multiple: ComputedRef<boolean>;
|
|
1512
1512
|
readonly: ComputedRef<boolean>;
|
|
1513
1513
|
clearBtnVisible: ComputedRef<boolean>;
|
|
@@ -1528,8 +1528,8 @@ declare const _default: DefineComponent<{
|
|
|
1528
1528
|
handleInput: (val: string, e?: KeyboardEvent | undefined) => void;
|
|
1529
1529
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "expand-change" | "update:modelValue" | "focus" | "blur" | "visible-change" | "remove-tag")[], "change" | "expand-change" | "update:modelValue" | "focus" | "blur" | "visible-change" | "remove-tag", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
1530
1530
|
size: {
|
|
1531
|
-
type: PropType<"
|
|
1532
|
-
validator: (val: string) => val is "" | "
|
|
1531
|
+
type: PropType<"small" | "default" | "large">;
|
|
1532
|
+
validator: (val: string) => val is "" | "small" | "default" | "large";
|
|
1533
1533
|
};
|
|
1534
1534
|
placeholder: {
|
|
1535
1535
|
type: StringConstructor;
|
|
@@ -1741,8 +1741,8 @@ declare const _default: DefineComponent<{
|
|
|
1741
1741
|
}>> & {
|
|
1742
1742
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1743
1743
|
}, {
|
|
1744
|
-
model: Record<string, any>;
|
|
1745
|
-
disabled: boolean;
|
|
1746
1744
|
name: string;
|
|
1745
|
+
disabled: boolean;
|
|
1746
|
+
model: Record<string, any>;
|
|
1747
1747
|
}>;
|
|
1748
1748
|
export default _default;
|
|
@@ -52,8 +52,8 @@ declare const _default: DefineComponent<{
|
|
|
52
52
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
53
53
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
54
54
|
}, {
|
|
55
|
-
model: Record<string, any>;
|
|
56
|
-
disabled: boolean;
|
|
57
55
|
name: string;
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
model: Record<string, any>;
|
|
58
58
|
}>;
|
|
59
59
|
export default _default;
|
|
@@ -49,8 +49,8 @@ declare const _default: DefineComponent<{
|
|
|
49
49
|
}>> & {
|
|
50
50
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
}, {
|
|
52
|
-
model: Record<string, any>;
|
|
53
|
-
disabled: boolean;
|
|
54
52
|
name: string;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
model: Record<string, any>;
|
|
55
55
|
}>;
|
|
56
56
|
export default _default;
|
|
@@ -51,8 +51,8 @@ declare const _default: DefineComponent<{
|
|
|
51
51
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
52
52
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
53
53
|
}, {
|
|
54
|
-
model: Record<string, any>;
|
|
55
|
-
disabled: boolean;
|
|
56
54
|
name: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
model: Record<string, any>;
|
|
57
57
|
}>;
|
|
58
58
|
export default _default;
|
|
@@ -50,8 +50,8 @@ declare const _default: DefineComponent<{
|
|
|
50
50
|
}>> & {
|
|
51
51
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
model: Record<string, any>;
|
|
54
|
-
disabled: boolean;
|
|
55
53
|
name: string;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
model: Record<string, any>;
|
|
56
56
|
}>;
|
|
57
57
|
export default _default;
|
|
@@ -50,8 +50,8 @@ declare const _default: DefineComponent<{
|
|
|
50
50
|
}>> & {
|
|
51
51
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
model: Record<string, any>;
|
|
54
|
-
disabled: boolean;
|
|
55
53
|
name: string;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
model: Record<string, any>;
|
|
56
56
|
}>;
|
|
57
57
|
export default _default;
|
|
@@ -69,8 +69,8 @@ declare const _default: DefineComponent<{
|
|
|
69
69
|
}>> & {
|
|
70
70
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
71
71
|
}, {
|
|
72
|
-
model: Record<string, any>;
|
|
73
|
-
disabled: boolean;
|
|
74
72
|
name: string;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
model: Record<string, any>;
|
|
75
75
|
}>;
|
|
76
76
|
export default _default;
|