@vtj/ui 0.16.11 → 0.16.13
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/index.mjs +1836 -1820
- package/dist/index.umd.js +5 -5
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +66 -66
- package/types/components/action/hooks.d.ts +12 -12
- package/types/components/action-bar/ActionBar.d.ts +44 -44
- package/types/components/attachment/Attachment.d.ts +85 -534
- package/types/components/data-item/DataItem.d.ts +44 -44
- package/types/components/dialog/Dialog.d.ts +5 -13
- package/types/components/dialog-form/DialogForm.d.ts +66 -326
- package/types/components/dialog-grid/DialogGrid.d.ts +11 -27
- package/types/components/field/Field.d.ts +36 -214
- package/types/components/form/Form.d.ts +49 -293
- package/types/components/grid/renderers/components/DateEdit.d.ts +60 -64
- package/types/components/grid/renderers/components/GridEdit.d.ts +80 -305
- package/types/components/grid-editor/GridEditor.d.ts +80 -305
- package/types/components/mask/Mask.d.ts +47 -51
- package/types/components/mask/components/Tabs.d.ts +2 -4
- package/types/components/panel/Panel.d.ts +3 -7
- package/types/components/picker/Dialog.d.ts +2 -4
- package/types/components/query-form/QueryForm.d.ts +114 -610
- package/types/components/tabs/Tabs.d.ts +22 -22
- package/types/version.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialogGridProps } from './types';
|
|
2
2
|
import { VxeTableConstructor, VxeGridConstructor, VxeTableProps, VxeGridEventProps, VxeGridSlots, VxeTableDataRow, SlotVNodeType, VxeGridInstance } from 'vxe-table';
|
|
3
|
-
import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, ShallowRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, PublicProps } from 'vue';
|
|
3
|
+
import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, ShallowRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, PublicProps } from 'vue';
|
|
4
4
|
import { BaseSize, DialogMode, IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, PanelBadge, HeaderProps, ContainerProps, GridColumns, GridCustomInfo, GridLoader, GridCellRenders, GridEditRenders, GridFilterRenders, GridSortableEvent, GridSortableOptions } from '..';
|
|
5
5
|
import { DraggableOptions, ResizableOptions } from '../..';
|
|
6
6
|
import { UseMouseSourceType, Position } from '@vueuse/core';
|
|
@@ -73,8 +73,8 @@ declare function __VLS_template(): {
|
|
|
73
73
|
readonly title?: string | undefined;
|
|
74
74
|
readonly zIndex?: number | undefined;
|
|
75
75
|
readonly cancel?: string | boolean | undefined;
|
|
76
|
-
readonly left?: string | number | undefined;
|
|
77
76
|
readonly top?: string | number | undefined;
|
|
77
|
+
readonly left?: string | number | undefined;
|
|
78
78
|
readonly submit?: string | boolean | undefined;
|
|
79
79
|
readonly subtitle?: string | undefined;
|
|
80
80
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
@@ -133,9 +133,7 @@ declare function __VLS_template(): {
|
|
|
133
133
|
stop: () => void;
|
|
134
134
|
}) => any) | undefined;
|
|
135
135
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "primary" | "mode" | "pure" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
|
|
136
|
-
$attrs:
|
|
137
|
-
[x: string]: unknown;
|
|
138
|
-
};
|
|
136
|
+
$attrs: Attrs;
|
|
139
137
|
$refs: {
|
|
140
138
|
[x: string]: unknown;
|
|
141
139
|
} & {
|
|
@@ -317,9 +315,7 @@ declare function __VLS_template(): {
|
|
|
317
315
|
readonly height?: string | number | undefined;
|
|
318
316
|
readonly shadow?: "hover" | "always" | "none" | undefined;
|
|
319
317
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
|
|
320
|
-
$attrs:
|
|
321
|
-
[x: string]: unknown;
|
|
322
|
-
};
|
|
318
|
+
$attrs: Attrs;
|
|
323
319
|
$refs: {
|
|
324
320
|
[x: string]: unknown;
|
|
325
321
|
} & {
|
|
@@ -362,9 +358,7 @@ declare function __VLS_template(): {
|
|
|
362
358
|
readonly height?: string | number | undefined;
|
|
363
359
|
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
|
364
360
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
365
|
-
$attrs:
|
|
366
|
-
[x: string]: unknown;
|
|
367
|
-
};
|
|
361
|
+
$attrs: Attrs;
|
|
368
362
|
$refs: {
|
|
369
363
|
[x: string]: unknown;
|
|
370
364
|
} & {
|
|
@@ -1246,9 +1240,7 @@ declare function __VLS_template(): {
|
|
|
1246
1240
|
readonly onEditChange?: ((data: any[]) => any) | undefined;
|
|
1247
1241
|
readonly onLoaded?: ((rows: any[]) => any) | undefined;
|
|
1248
1242
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "auto" | "resizable" | "editable" | "page" | "pageSize" | "columns" | "rowSortable" | "columnSortable" | "customable" | "pager" | "pageSizes" | "virtual">;
|
|
1249
|
-
$attrs:
|
|
1250
|
-
[x: string]: unknown;
|
|
1251
|
-
};
|
|
1243
|
+
$attrs: Attrs;
|
|
1252
1244
|
$refs: {
|
|
1253
1245
|
[x: string]: unknown;
|
|
1254
1246
|
} & {
|
|
@@ -2545,8 +2537,8 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
|
|
|
2545
2537
|
readonly title?: string | undefined;
|
|
2546
2538
|
readonly zIndex?: number | undefined;
|
|
2547
2539
|
readonly cancel?: string | boolean | undefined;
|
|
2548
|
-
readonly left?: string | number | undefined;
|
|
2549
2540
|
readonly top?: string | number | undefined;
|
|
2541
|
+
readonly left?: string | number | undefined;
|
|
2550
2542
|
readonly submit?: string | boolean | undefined;
|
|
2551
2543
|
readonly subtitle?: string | undefined;
|
|
2552
2544
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
@@ -2605,9 +2597,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
|
|
|
2605
2597
|
stop: () => void;
|
|
2606
2598
|
}) => any) | undefined;
|
|
2607
2599
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "primary" | "mode" | "pure" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
|
|
2608
|
-
$attrs:
|
|
2609
|
-
[x: string]: unknown;
|
|
2610
|
-
};
|
|
2600
|
+
$attrs: Attrs;
|
|
2611
2601
|
$refs: {
|
|
2612
2602
|
[x: string]: unknown;
|
|
2613
2603
|
} & {
|
|
@@ -2789,9 +2779,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
|
|
|
2789
2779
|
readonly height?: string | number | undefined;
|
|
2790
2780
|
readonly shadow?: "hover" | "always" | "none" | undefined;
|
|
2791
2781
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
|
|
2792
|
-
$attrs:
|
|
2793
|
-
[x: string]: unknown;
|
|
2794
|
-
};
|
|
2782
|
+
$attrs: Attrs;
|
|
2795
2783
|
$refs: {
|
|
2796
2784
|
[x: string]: unknown;
|
|
2797
2785
|
} & {
|
|
@@ -2834,9 +2822,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
|
|
|
2834
2822
|
readonly height?: string | number | undefined;
|
|
2835
2823
|
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
|
2836
2824
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
2837
|
-
$attrs:
|
|
2838
|
-
[x: string]: unknown;
|
|
2839
|
-
};
|
|
2825
|
+
$attrs: Attrs;
|
|
2840
2826
|
$refs: {
|
|
2841
2827
|
[x: string]: unknown;
|
|
2842
2828
|
} & {
|
|
@@ -3718,9 +3704,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
|
|
|
3718
3704
|
readonly onEditChange?: ((data: any[]) => any) | undefined;
|
|
3719
3705
|
readonly onLoaded?: ((rows: any[]) => any) | undefined;
|
|
3720
3706
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "auto" | "resizable" | "editable" | "page" | "pageSize" | "columns" | "rowSortable" | "columnSortable" | "customable" | "pager" | "pageSizes" | "virtual">;
|
|
3721
|
-
$attrs:
|
|
3722
|
-
[x: string]: unknown;
|
|
3723
|
-
};
|
|
3707
|
+
$attrs: Attrs;
|
|
3724
3708
|
$refs: {
|
|
3725
3709
|
[x: string]: unknown;
|
|
3726
3710
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComputedRef, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
1
|
+
import { ComputedRef, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ExtractPropTypes, PropType, VNode, PublicProps, RendererNode, RendererElement } from 'vue';
|
|
2
2
|
import { FieldEditorProps, FieldOption, FieldOptionsLoader } from './types';
|
|
3
3
|
import { BaseSize } from '../../';
|
|
4
|
-
import {
|
|
4
|
+
import { FormItemProp, FormItemRule, FormItemValidateState, ComponentSize, FormItemProps, FormValidateCallback, FormValidationResult, ElTooltipProps, UseTooltipProps } from 'element-plus';
|
|
5
5
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
6
6
|
import { OnCleanup } from '@vue/reactivity';
|
|
7
7
|
import { BuiltinFieldEditorType } from './builtin';
|
|
@@ -25,28 +25,21 @@ declare function __VLS_template(): {
|
|
|
25
25
|
itemRef: ({
|
|
26
26
|
$: ComponentInternalInstance;
|
|
27
27
|
$data: {};
|
|
28
|
-
$props:
|
|
29
|
-
required: boolean;
|
|
30
|
-
labelPosition: "left" | "right" | "top" | "";
|
|
31
|
-
inlineMessage: boolean;
|
|
32
|
-
showMessage: boolean;
|
|
33
|
-
}> & Omit<{
|
|
34
|
-
readonly labelPosition: "left" | "right" | "top" | "";
|
|
35
|
-
readonly showMessage: boolean;
|
|
36
|
-
readonly size?: ComponentSize | undefined;
|
|
37
|
-
readonly required?: boolean | undefined;
|
|
28
|
+
$props: {
|
|
38
29
|
readonly label?: string | undefined;
|
|
39
|
-
readonly error?: string | undefined;
|
|
40
30
|
readonly labelWidth?: string | number | undefined;
|
|
31
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
41
32
|
readonly prop?: FormItemProp | undefined;
|
|
33
|
+
readonly required?: boolean | undefined;
|
|
42
34
|
readonly rules?: Arrayable<FormItemRule> | undefined;
|
|
35
|
+
readonly error?: string | undefined;
|
|
43
36
|
readonly validateStatus?: FormItemValidateState | undefined;
|
|
44
37
|
readonly for?: string | undefined;
|
|
45
38
|
readonly inlineMessage?: boolean | undefined;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
readonly showMessage?: boolean | undefined;
|
|
40
|
+
readonly size?: ComponentSize | undefined;
|
|
41
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
42
|
+
$attrs: Attrs;
|
|
50
43
|
$refs: {
|
|
51
44
|
[x: string]: unknown;
|
|
52
45
|
};
|
|
@@ -58,56 +51,15 @@ declare function __VLS_template(): {
|
|
|
58
51
|
$host: Element | null;
|
|
59
52
|
$emit: (event: string, ...args: any[]) => void;
|
|
60
53
|
$el: any;
|
|
61
|
-
$options: ComponentOptionsBase<Readonly<
|
|
62
|
-
size:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
required: {
|
|
66
|
-
type: PropType<boolean>;
|
|
67
|
-
default: undefined;
|
|
68
|
-
};
|
|
69
|
-
label: {
|
|
70
|
-
type: PropType<string>;
|
|
71
|
-
};
|
|
72
|
-
error: {
|
|
73
|
-
type: PropType<string>;
|
|
74
|
-
};
|
|
75
|
-
labelWidth: {
|
|
76
|
-
type: PropType<string | number>;
|
|
77
|
-
};
|
|
78
|
-
labelPosition: {
|
|
79
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
prop: {
|
|
83
|
-
type: PropType<FormItemProp>;
|
|
84
|
-
};
|
|
85
|
-
rules: {
|
|
86
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
87
|
-
};
|
|
88
|
-
validateStatus: {
|
|
89
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
90
|
-
};
|
|
91
|
-
for: {
|
|
92
|
-
type: PropType<string>;
|
|
93
|
-
};
|
|
94
|
-
inlineMessage: {
|
|
95
|
-
type: PropType<boolean>;
|
|
96
|
-
default: undefined;
|
|
97
|
-
};
|
|
98
|
-
showMessage: {
|
|
99
|
-
type: PropType<boolean>;
|
|
100
|
-
default: boolean;
|
|
101
|
-
};
|
|
102
|
-
}>>, {
|
|
103
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
104
|
-
validateMessage: Ref<string>;
|
|
105
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
54
|
+
$options: ComponentOptionsBase<Readonly< FormItemProps> & Readonly<{}>, {
|
|
55
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
56
|
+
validateMessage: Ref<string, string>;
|
|
57
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
106
58
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
107
59
|
clearValidate: () => void;
|
|
108
60
|
resetField: () => void;
|
|
109
61
|
setInitialValue: (value: any) => void;
|
|
110
|
-
},
|
|
62
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
111
63
|
required: boolean;
|
|
112
64
|
labelPosition: "left" | "right" | "top" | "";
|
|
113
65
|
inlineMessage: boolean;
|
|
@@ -137,51 +89,10 @@ declare function __VLS_template(): {
|
|
|
137
89
|
labelPosition: "left" | "right" | "top" | "";
|
|
138
90
|
inlineMessage: boolean;
|
|
139
91
|
showMessage: boolean;
|
|
140
|
-
}> & Omit<Readonly<
|
|
141
|
-
size:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
required: {
|
|
145
|
-
type: PropType<boolean>;
|
|
146
|
-
default: undefined;
|
|
147
|
-
};
|
|
148
|
-
label: {
|
|
149
|
-
type: PropType<string>;
|
|
150
|
-
};
|
|
151
|
-
error: {
|
|
152
|
-
type: PropType<string>;
|
|
153
|
-
};
|
|
154
|
-
labelWidth: {
|
|
155
|
-
type: PropType<string | number>;
|
|
156
|
-
};
|
|
157
|
-
labelPosition: {
|
|
158
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
159
|
-
default: string;
|
|
160
|
-
};
|
|
161
|
-
prop: {
|
|
162
|
-
type: PropType<FormItemProp>;
|
|
163
|
-
};
|
|
164
|
-
rules: {
|
|
165
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
166
|
-
};
|
|
167
|
-
validateStatus: {
|
|
168
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
169
|
-
};
|
|
170
|
-
for: {
|
|
171
|
-
type: PropType<string>;
|
|
172
|
-
};
|
|
173
|
-
inlineMessage: {
|
|
174
|
-
type: PropType<boolean>;
|
|
175
|
-
default: undefined;
|
|
176
|
-
};
|
|
177
|
-
showMessage: {
|
|
178
|
-
type: PropType<boolean>;
|
|
179
|
-
default: boolean;
|
|
180
|
-
};
|
|
181
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
182
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
183
|
-
validateMessage: Ref<string>;
|
|
184
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
92
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
93
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
94
|
+
validateMessage: Ref<string, string>;
|
|
95
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
185
96
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
186
97
|
clearValidate: () => void;
|
|
187
98
|
resetField: () => void;
|
|
@@ -369,28 +280,21 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
369
280
|
itemRef: ({
|
|
370
281
|
$: ComponentInternalInstance;
|
|
371
282
|
$data: {};
|
|
372
|
-
$props:
|
|
373
|
-
required: boolean;
|
|
374
|
-
labelPosition: "left" | "right" | "top" | "";
|
|
375
|
-
inlineMessage: boolean;
|
|
376
|
-
showMessage: boolean;
|
|
377
|
-
}> & Omit<{
|
|
378
|
-
readonly labelPosition: "left" | "right" | "top" | "";
|
|
379
|
-
readonly showMessage: boolean;
|
|
380
|
-
readonly size?: ComponentSize | undefined;
|
|
381
|
-
readonly required?: boolean | undefined;
|
|
283
|
+
$props: {
|
|
382
284
|
readonly label?: string | undefined;
|
|
383
|
-
readonly error?: string | undefined;
|
|
384
285
|
readonly labelWidth?: string | number | undefined;
|
|
286
|
+
readonly labelPosition?: "left" | "right" | "top" | "" | undefined;
|
|
385
287
|
readonly prop?: FormItemProp | undefined;
|
|
288
|
+
readonly required?: boolean | undefined;
|
|
386
289
|
readonly rules?: Arrayable<FormItemRule> | undefined;
|
|
290
|
+
readonly error?: string | undefined;
|
|
387
291
|
readonly validateStatus?: FormItemValidateState | undefined;
|
|
388
292
|
readonly for?: string | undefined;
|
|
389
293
|
readonly inlineMessage?: boolean | undefined;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
294
|
+
readonly showMessage?: boolean | undefined;
|
|
295
|
+
readonly size?: ComponentSize | undefined;
|
|
296
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
297
|
+
$attrs: Attrs;
|
|
394
298
|
$refs: {
|
|
395
299
|
[x: string]: unknown;
|
|
396
300
|
};
|
|
@@ -402,56 +306,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
402
306
|
$host: Element | null;
|
|
403
307
|
$emit: (event: string, ...args: any[]) => void;
|
|
404
308
|
$el: any;
|
|
405
|
-
$options: ComponentOptionsBase<Readonly<
|
|
406
|
-
size:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
required: {
|
|
410
|
-
type: PropType<boolean>;
|
|
411
|
-
default: undefined;
|
|
412
|
-
};
|
|
413
|
-
label: {
|
|
414
|
-
type: PropType<string>;
|
|
415
|
-
};
|
|
416
|
-
error: {
|
|
417
|
-
type: PropType<string>;
|
|
418
|
-
};
|
|
419
|
-
labelWidth: {
|
|
420
|
-
type: PropType<string | number>;
|
|
421
|
-
};
|
|
422
|
-
labelPosition: {
|
|
423
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
424
|
-
default: string;
|
|
425
|
-
};
|
|
426
|
-
prop: {
|
|
427
|
-
type: PropType<FormItemProp>;
|
|
428
|
-
};
|
|
429
|
-
rules: {
|
|
430
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
431
|
-
};
|
|
432
|
-
validateStatus: {
|
|
433
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
434
|
-
};
|
|
435
|
-
for: {
|
|
436
|
-
type: PropType<string>;
|
|
437
|
-
};
|
|
438
|
-
inlineMessage: {
|
|
439
|
-
type: PropType<boolean>;
|
|
440
|
-
default: undefined;
|
|
441
|
-
};
|
|
442
|
-
showMessage: {
|
|
443
|
-
type: PropType<boolean>;
|
|
444
|
-
default: boolean;
|
|
445
|
-
};
|
|
446
|
-
}>>, {
|
|
447
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
448
|
-
validateMessage: Ref<string>;
|
|
449
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
309
|
+
$options: ComponentOptionsBase<Readonly< FormItemProps> & Readonly<{}>, {
|
|
310
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
311
|
+
validateMessage: Ref<string, string>;
|
|
312
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
450
313
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
451
314
|
clearValidate: () => void;
|
|
452
315
|
resetField: () => void;
|
|
453
316
|
setInitialValue: (value: any) => void;
|
|
454
|
-
},
|
|
317
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
455
318
|
required: boolean;
|
|
456
319
|
labelPosition: "left" | "right" | "top" | "";
|
|
457
320
|
inlineMessage: boolean;
|
|
@@ -481,51 +344,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
481
344
|
labelPosition: "left" | "right" | "top" | "";
|
|
482
345
|
inlineMessage: boolean;
|
|
483
346
|
showMessage: boolean;
|
|
484
|
-
}> & Omit<Readonly<
|
|
485
|
-
size:
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
required: {
|
|
489
|
-
type: PropType<boolean>;
|
|
490
|
-
default: undefined;
|
|
491
|
-
};
|
|
492
|
-
label: {
|
|
493
|
-
type: PropType<string>;
|
|
494
|
-
};
|
|
495
|
-
error: {
|
|
496
|
-
type: PropType<string>;
|
|
497
|
-
};
|
|
498
|
-
labelWidth: {
|
|
499
|
-
type: PropType<string | number>;
|
|
500
|
-
};
|
|
501
|
-
labelPosition: {
|
|
502
|
-
type: PropType<"" | "left" | "right" | "top">;
|
|
503
|
-
default: string;
|
|
504
|
-
};
|
|
505
|
-
prop: {
|
|
506
|
-
type: PropType<FormItemProp>;
|
|
507
|
-
};
|
|
508
|
-
rules: {
|
|
509
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
510
|
-
};
|
|
511
|
-
validateStatus: {
|
|
512
|
-
type: PropType<"" | "success" | "error" | "validating">;
|
|
513
|
-
};
|
|
514
|
-
for: {
|
|
515
|
-
type: PropType<string>;
|
|
516
|
-
};
|
|
517
|
-
inlineMessage: {
|
|
518
|
-
type: PropType<boolean>;
|
|
519
|
-
default: undefined;
|
|
520
|
-
};
|
|
521
|
-
showMessage: {
|
|
522
|
-
type: PropType<boolean>;
|
|
523
|
-
default: boolean;
|
|
524
|
-
};
|
|
525
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
526
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
527
|
-
validateMessage: Ref<string>;
|
|
528
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
347
|
+
}> & Omit<Readonly< FormItemProps> & Readonly<{}>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
348
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
349
|
+
validateMessage: Ref<string, string>;
|
|
350
|
+
validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">;
|
|
529
351
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
530
352
|
clearValidate: () => void;
|
|
531
353
|
resetField: () => void;
|