@vunk/form 0.0.0-alpha.7 → 0.0.0-alpha.8
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/components/config/index.js +1 -16
- package/components/config-renderer/index.js +1 -0
- package/components/confirm-input/index.js +33 -8
- package/components/confirm-input/src/ctx.d.ts +8 -1
- package/components/confirm-input/src/index.vue.d.ts +18 -2
- package/components/date-picker/src/ctx.d.ts +56 -88
- package/components/date-picker/src/index.vue.d.ts +140 -204
- package/components/form/index.js +7 -1
- package/components/form/src/ctx.d.ts +277 -1
- package/components/form/src/index.vue.d.ts +825 -0
- package/components/form-item-renderer/index.js +1 -0
- package/components/ground/index.css +26 -26
- package/components/ground/index.js +122 -100
- package/components/ground/src/ground-config/src/index copy.vue.d.ts +72 -0
- package/components/ground/src/ground-config/src/index.vue.d.ts +953 -54
- package/components/ground/src/ground-main/src/index.vue.d.ts +7 -16
- package/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +13 -0
- package/components/ground/src/index.vue.d.ts +16 -5
- package/components/input/index.js +7 -7
- package/components/input-config/index.js +7 -4
- package/components/input-config/src/ctx.d.ts +600 -5
- package/components/input-config/src/index.vue.d.ts +2051 -2
- package/components/rules-config/src/ctx.d.ts +276 -0
- package/components/rules-config/src/index.vue.d.ts +1098 -0
- package/components/switch/src/ctx.d.ts +6 -0
- package/components/switch/src/index.vue.d.ts +13 -0
- package/index.css +26 -26
- package/package.json +1 -1
- package/shared/element-plus/ctx/index.d.ts +5 -5
- package/shared/element-plus/instances/date-picker.d.ts +59 -91
- package/shared/element-plus/instances/select.d.ts +1 -1
- package/shared/helper/index.d.ts +2 -1
- package/shared/helper/index.js +15 -1
- package/shared/types/form-item/confirm-input.d.ts +8 -0
- package/shared/types/form-item/confirm-input.js +1 -0
- package/shared/types/form-item/date-picker.d.ts +2 -2
- package/shared/types/form-item/index.d.ts +1 -0
- package/shared/types/form-item/input.d.ts +2 -6
- package/shared/types/form-item/select.d.ts +2 -2
- package/shared/types/form-item/switch.d.ts +2 -2
- package/shared/types/shared/index.d.ts +1 -1
- package/types/components/confirm-input/src/ctx.d.ts +8 -1
- package/types/components/confirm-input/src/index.vue.d.ts +18 -2
- package/types/components/date-picker/src/ctx.d.ts +56 -88
- package/types/components/date-picker/src/index.vue.d.ts +140 -204
- package/types/components/form/src/ctx.d.ts +277 -1
- package/types/components/form/src/index.vue.d.ts +825 -0
- package/types/components/ground/src/ground-config/src/index copy.vue.d.ts +72 -0
- package/types/components/ground/src/ground-config/src/index.vue.d.ts +953 -54
- package/types/components/ground/src/ground-main/src/index.vue.d.ts +7 -16
- package/types/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +13 -0
- package/types/components/ground/src/index.vue.d.ts +16 -5
- package/types/components/input-config/src/ctx.d.ts +600 -5
- package/types/components/input-config/src/index.vue.d.ts +2051 -2
- package/types/components/rules-config/src/ctx.d.ts +276 -0
- package/types/components/rules-config/src/index.vue.d.ts +1098 -0
- package/types/components/switch/src/ctx.d.ts +6 -0
- package/types/components/switch/src/index.vue.d.ts +13 -0
- package/types/shared/element-plus/ctx/index.d.ts +5 -5
- package/types/shared/element-plus/instances/date-picker.d.ts +59 -91
- package/types/shared/element-plus/instances/select.d.ts +1 -1
- package/types/shared/helper/index.d.ts +2 -1
- package/types/shared/types/form-item/confirm-input.d.ts +8 -0
- package/types/shared/types/form-item/date-picker.d.ts +2 -2
- package/types/shared/types/form-item/index.d.ts +1 -0
- package/types/shared/types/form-item/input.d.ts +2 -6
- package/types/shared/types/form-item/select.d.ts +2 -2
- package/types/shared/types/form-item/switch.d.ts +2 -2
- package/types/shared/types/shared/index.d.ts +1 -1
|
@@ -8,113 +8,81 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
id: {
|
|
11
|
-
type: (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
popperClass: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
format: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
};
|
|
24
|
-
valueFormat: {
|
|
25
|
-
type: import("vue").PropType<string>;
|
|
26
|
-
};
|
|
27
|
-
clearable: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
clearIcon: {
|
|
32
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
33
|
-
default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
34
|
-
};
|
|
35
|
-
editable: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
prefixIcon: {
|
|
40
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
41
|
-
default: string;
|
|
11
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
|
+
__epPropKey: true;
|
|
42
15
|
};
|
|
16
|
+
name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
|
|
17
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
18
|
+
format: StringConstructor;
|
|
19
|
+
valueFormat: StringConstructor;
|
|
20
|
+
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
21
|
+
clearIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
|
|
22
|
+
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
23
|
+
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
|
|
43
24
|
size: {
|
|
44
|
-
type: import("vue").PropType<"" | "small" | "default" | "large"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
disabled: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
placeholder: {
|
|
56
|
-
type: StringConstructor;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
popperOptions: {
|
|
60
|
-
type: import("vue").PropType<Partial<import("element-plus").Options>>;
|
|
61
|
-
default: () => {};
|
|
62
|
-
};
|
|
63
|
-
modelValue: {
|
|
64
|
-
type: import("vue").PropType<string | number | Date | (string | number | Date)[]>;
|
|
65
|
-
default: string;
|
|
66
|
-
};
|
|
67
|
-
rangeSeparator: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
25
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
|
+
__epPropKey: true;
|
|
70
29
|
};
|
|
30
|
+
readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
31
|
+
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
32
|
+
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
33
|
+
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
34
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
35
|
+
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
71
36
|
startPlaceholder: StringConstructor;
|
|
72
37
|
endPlaceholder: StringConstructor;
|
|
73
38
|
defaultValue: {
|
|
74
|
-
type: import("vue").PropType<Date | Date[]
|
|
39
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
|
+
__epPropKey: true;
|
|
75
43
|
};
|
|
76
44
|
defaultTime: {
|
|
77
|
-
type: import("vue").PropType<Date | Date[]
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
default: boolean;
|
|
45
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
46
|
+
readonly required: false;
|
|
47
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
|
+
__epPropKey: true;
|
|
82
49
|
};
|
|
50
|
+
isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
83
51
|
disabledHours: {
|
|
84
|
-
type:
|
|
52
|
+
readonly type: import("vue").PropType<Function>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
85
56
|
};
|
|
86
57
|
disabledMinutes: {
|
|
87
|
-
type:
|
|
58
|
+
readonly type: import("vue").PropType<Function>;
|
|
59
|
+
readonly required: false;
|
|
60
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
|
+
__epPropKey: true;
|
|
88
62
|
};
|
|
89
63
|
disabledSeconds: {
|
|
90
|
-
type:
|
|
64
|
+
readonly type: import("vue").PropType<Function>;
|
|
65
|
+
readonly required: false;
|
|
66
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
|
+
__epPropKey: true;
|
|
91
68
|
};
|
|
92
69
|
disabledDate: {
|
|
93
|
-
type:
|
|
70
|
+
readonly type: import("vue").PropType<Function>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
94
74
|
};
|
|
95
75
|
cellClassName: {
|
|
96
|
-
type:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
default: () => never[];
|
|
101
|
-
};
|
|
102
|
-
arrowControl: {
|
|
103
|
-
type: BooleanConstructor;
|
|
104
|
-
default: boolean;
|
|
105
|
-
};
|
|
106
|
-
label: {
|
|
107
|
-
type: StringConstructor;
|
|
108
|
-
default: undefined;
|
|
109
|
-
};
|
|
110
|
-
tabindex: {
|
|
111
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
112
|
-
default: number;
|
|
113
|
-
};
|
|
114
|
-
validateEvent: {
|
|
115
|
-
type: BooleanConstructor;
|
|
116
|
-
default: boolean;
|
|
76
|
+
readonly type: import("vue").PropType<Function>;
|
|
77
|
+
readonly required: false;
|
|
78
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
+
__epPropKey: true;
|
|
117
80
|
};
|
|
81
|
+
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
82
|
+
arrowControl: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
83
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
84
|
+
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
85
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
118
86
|
unlinkPanels: BooleanConstructor;
|
|
119
87
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
120
88
|
rules: {
|
|
@@ -164,37 +132,37 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
164
132
|
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
165
133
|
}>;
|
|
166
134
|
datePickerBindProps: import("vue").ComputedRef<{
|
|
167
|
-
name: string |
|
|
168
|
-
size: "" | "small" | "default" | "large" | undefined;
|
|
169
|
-
disabled:
|
|
170
|
-
id: string |
|
|
171
|
-
modelValue:
|
|
135
|
+
name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
136
|
+
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never> | undefined;
|
|
137
|
+
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
138
|
+
id: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown> | undefined;
|
|
139
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
172
140
|
placeholder: string;
|
|
173
|
-
readonly:
|
|
174
|
-
clearable:
|
|
175
|
-
prefixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
141
|
+
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
142
|
+
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
143
|
+
prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
176
144
|
label: string | undefined;
|
|
177
|
-
tabindex: string | number
|
|
178
|
-
validateEvent:
|
|
145
|
+
tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>;
|
|
146
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
179
147
|
popperClass: string;
|
|
180
|
-
clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
148
|
+
clearIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
181
149
|
format: string | undefined;
|
|
182
150
|
valueFormat: string | undefined;
|
|
183
|
-
editable:
|
|
151
|
+
editable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
184
152
|
popperOptions: Partial<import("element-plus").Options>;
|
|
185
153
|
rangeSeparator: string;
|
|
186
154
|
startPlaceholder: string | undefined;
|
|
187
155
|
endPlaceholder: string | undefined;
|
|
188
|
-
defaultValue: Date | Date[] | undefined;
|
|
189
|
-
defaultTime: Date | Date[] | undefined;
|
|
190
|
-
isRange:
|
|
156
|
+
defaultValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown> | undefined;
|
|
157
|
+
defaultTime: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown> | undefined;
|
|
158
|
+
isRange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
191
159
|
disabledHours: Function | undefined;
|
|
192
160
|
disabledMinutes: Function | undefined;
|
|
193
161
|
disabledSeconds: Function | undefined;
|
|
194
162
|
disabledDate: Function | undefined;
|
|
195
163
|
cellClassName: Function | undefined;
|
|
196
164
|
shortcuts: unknown[];
|
|
197
|
-
arrowControl:
|
|
165
|
+
arrowControl: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
198
166
|
unlinkPanels: boolean;
|
|
199
167
|
}>;
|
|
200
168
|
datePickerOnEmits: {
|
|
@@ -226,113 +194,81 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
226
194
|
default: string;
|
|
227
195
|
};
|
|
228
196
|
id: {
|
|
229
|
-
type: (
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
default: string;
|
|
234
|
-
};
|
|
235
|
-
popperClass: {
|
|
236
|
-
type: StringConstructor;
|
|
237
|
-
default: string;
|
|
238
|
-
};
|
|
239
|
-
format: {
|
|
240
|
-
type: StringConstructor;
|
|
241
|
-
};
|
|
242
|
-
valueFormat: {
|
|
243
|
-
type: import("vue").PropType<string>;
|
|
244
|
-
};
|
|
245
|
-
clearable: {
|
|
246
|
-
type: BooleanConstructor;
|
|
247
|
-
default: boolean;
|
|
248
|
-
};
|
|
249
|
-
clearIcon: {
|
|
250
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
251
|
-
default: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
252
|
-
};
|
|
253
|
-
editable: {
|
|
254
|
-
type: BooleanConstructor;
|
|
255
|
-
default: boolean;
|
|
256
|
-
};
|
|
257
|
-
prefixIcon: {
|
|
258
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
259
|
-
default: string;
|
|
197
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
198
|
+
readonly required: false;
|
|
199
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
200
|
+
__epPropKey: true;
|
|
260
201
|
};
|
|
202
|
+
name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
|
|
203
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
204
|
+
format: StringConstructor;
|
|
205
|
+
valueFormat: StringConstructor;
|
|
206
|
+
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
207
|
+
clearIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
|
|
208
|
+
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
209
|
+
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
|
|
261
210
|
size: {
|
|
262
|
-
type: import("vue").PropType<"" | "small" | "default" | "large"
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
type: BooleanConstructor;
|
|
267
|
-
default: boolean;
|
|
268
|
-
};
|
|
269
|
-
disabled: {
|
|
270
|
-
type: BooleanConstructor;
|
|
271
|
-
default: boolean;
|
|
272
|
-
};
|
|
273
|
-
placeholder: {
|
|
274
|
-
type: StringConstructor;
|
|
275
|
-
default: string;
|
|
276
|
-
};
|
|
277
|
-
popperOptions: {
|
|
278
|
-
type: import("vue").PropType<Partial<import("element-plus").Options>>;
|
|
279
|
-
default: () => {};
|
|
280
|
-
};
|
|
281
|
-
modelValue: {
|
|
282
|
-
type: import("vue").PropType<string | number | Date | (string | number | Date)[]>;
|
|
283
|
-
default: string;
|
|
284
|
-
};
|
|
285
|
-
rangeSeparator: {
|
|
286
|
-
type: StringConstructor;
|
|
287
|
-
default: string;
|
|
211
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
212
|
+
readonly required: false;
|
|
213
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
214
|
+
__epPropKey: true;
|
|
288
215
|
};
|
|
216
|
+
readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
217
|
+
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
218
|
+
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
219
|
+
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
220
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
221
|
+
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
289
222
|
startPlaceholder: StringConstructor;
|
|
290
223
|
endPlaceholder: StringConstructor;
|
|
291
224
|
defaultValue: {
|
|
292
|
-
type: import("vue").PropType<Date | Date[]
|
|
225
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
226
|
+
readonly required: false;
|
|
227
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
228
|
+
__epPropKey: true;
|
|
293
229
|
};
|
|
294
230
|
defaultTime: {
|
|
295
|
-
type: import("vue").PropType<Date | Date[]
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
default: boolean;
|
|
231
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
232
|
+
readonly required: false;
|
|
233
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
234
|
+
__epPropKey: true;
|
|
300
235
|
};
|
|
236
|
+
isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
301
237
|
disabledHours: {
|
|
302
|
-
type:
|
|
238
|
+
readonly type: import("vue").PropType<Function>;
|
|
239
|
+
readonly required: false;
|
|
240
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
241
|
+
__epPropKey: true;
|
|
303
242
|
};
|
|
304
243
|
disabledMinutes: {
|
|
305
|
-
type:
|
|
244
|
+
readonly type: import("vue").PropType<Function>;
|
|
245
|
+
readonly required: false;
|
|
246
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
247
|
+
__epPropKey: true;
|
|
306
248
|
};
|
|
307
249
|
disabledSeconds: {
|
|
308
|
-
type:
|
|
250
|
+
readonly type: import("vue").PropType<Function>;
|
|
251
|
+
readonly required: false;
|
|
252
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
253
|
+
__epPropKey: true;
|
|
309
254
|
};
|
|
310
255
|
disabledDate: {
|
|
311
|
-
type:
|
|
256
|
+
readonly type: import("vue").PropType<Function>;
|
|
257
|
+
readonly required: false;
|
|
258
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
259
|
+
__epPropKey: true;
|
|
312
260
|
};
|
|
313
261
|
cellClassName: {
|
|
314
|
-
type:
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
default: () => never[];
|
|
319
|
-
};
|
|
320
|
-
arrowControl: {
|
|
321
|
-
type: BooleanConstructor;
|
|
322
|
-
default: boolean;
|
|
323
|
-
};
|
|
324
|
-
label: {
|
|
325
|
-
type: StringConstructor;
|
|
326
|
-
default: undefined;
|
|
327
|
-
};
|
|
328
|
-
tabindex: {
|
|
329
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
330
|
-
default: number;
|
|
331
|
-
};
|
|
332
|
-
validateEvent: {
|
|
333
|
-
type: BooleanConstructor;
|
|
334
|
-
default: boolean;
|
|
262
|
+
readonly type: import("vue").PropType<Function>;
|
|
263
|
+
readonly required: false;
|
|
264
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
265
|
+
__epPropKey: true;
|
|
335
266
|
};
|
|
267
|
+
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
268
|
+
arrowControl: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
269
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
270
|
+
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
271
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
336
272
|
unlinkPanels: BooleanConstructor;
|
|
337
273
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
338
274
|
rules: {
|
|
@@ -376,31 +312,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
376
312
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
377
313
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
378
314
|
}, {
|
|
379
|
-
name: string |
|
|
315
|
+
name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
380
316
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
381
317
|
type: "date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange";
|
|
382
318
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
383
319
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
384
320
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
385
|
-
disabled:
|
|
386
|
-
modelValue:
|
|
321
|
+
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
322
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
387
323
|
placeholder: string;
|
|
388
|
-
readonly:
|
|
389
|
-
clearable:
|
|
390
|
-
prefixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
324
|
+
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
325
|
+
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
326
|
+
prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
391
327
|
label: string;
|
|
392
|
-
tabindex: string | number
|
|
393
|
-
validateEvent:
|
|
328
|
+
tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>;
|
|
329
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
394
330
|
formItemSize: "small" | "default" | "large";
|
|
395
331
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
396
332
|
popperClass: string;
|
|
397
|
-
clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
398
|
-
editable:
|
|
333
|
+
clearIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
334
|
+
editable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
399
335
|
popperOptions: Partial<import("element-plus").Options>;
|
|
400
336
|
rangeSeparator: string;
|
|
401
|
-
isRange:
|
|
337
|
+
isRange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
402
338
|
shortcuts: unknown[];
|
|
403
|
-
arrowControl:
|
|
339
|
+
arrowControl: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
404
340
|
unlinkPanels: boolean;
|
|
405
341
|
datePickerSlots: import("./types").DatePickerSlots;
|
|
406
342
|
}>;
|
package/components/form/index.js
CHANGED
|
@@ -19,6 +19,11 @@ const props = {
|
|
|
19
19
|
formItems: {
|
|
20
20
|
type: Array,
|
|
21
21
|
default: () => []
|
|
22
|
+
},
|
|
23
|
+
elRef: {
|
|
24
|
+
type: Function,
|
|
25
|
+
default: () => () => {
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
};
|
|
24
29
|
const createBindProps = bindPropsFactory(props);
|
|
@@ -69,7 +74,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
74
|
const _component_VkfFormItemRenderer = resolveComponent("VkfFormItemRenderer");
|
|
70
75
|
const _component_ElForm = resolveComponent("ElForm");
|
|
71
76
|
return openBlock(), createBlock(_component_ElForm, mergeProps(_ctx.formProps, toHandlers(_ctx.formEmits), {
|
|
72
|
-
model: _ctx.model || _ctx.data
|
|
77
|
+
model: _ctx.model || _ctx.data,
|
|
78
|
+
ref: _ctx.elRef
|
|
73
79
|
}), {
|
|
74
80
|
default: withCtx(() => [
|
|
75
81
|
createVNode(_component_VkfFormItemRenderer, { source: _ctx.formItems }, {
|