@vunk/form 2.19.0 → 2.19.1
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/api-tables-select/src/ctx.d.ts +16 -22
- package/components/api-tables-select/src/index.vue.d.ts +39 -43
- package/components/button/index.mjs +1 -2
- package/components/button/src/ctx.d.ts +7 -7
- package/components/button/src/index.vue.d.ts +64 -63
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +7 -7
- package/components/card-input-collection/src/core.vue.d.ts +12 -8
- package/components/card-input-collection/src/ctx.d.ts +2 -2
- package/components/card-input-collection/src/index.vue.d.ts +7 -6
- package/components/cascader/src/ctx.d.ts +33 -25
- package/components/cascader/src/index.vue.d.ts +67 -50
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.mjs +3 -3
- package/components/checkbox/src/ctx.d.ts +19 -19
- package/components/checkbox/src/index.vue.d.ts +128 -127
- package/components/cloneDeep.cjs +1 -1
- package/components/color-picker/src/ctx.d.ts +22 -14
- package/components/color-picker/src/index.vue.d.ts +52 -32
- package/components/date-picker/src/ctx.d.ts +32 -24
- package/components/date-picker/src/index.vue.d.ts +68 -51
- package/components/date-picker-range/src/ctx.d.ts +23 -15
- package/components/date-picker-range/src/index.vue.d.ts +131 -98
- package/components/dialog/src/ctx.d.ts +5 -5
- package/components/dialog/src/index.vue.d.ts +18 -16
- package/components/dialog-input-collection/index.mjs +9 -9
- package/components/dialog-input-collection/src/ctx.d.ts +4 -3
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +12 -8
- package/components/dialog-input-collection/src/index.vue.d.ts +13 -11
- package/components/dialog-input-collection/src/layout.vue.d.ts +8 -4
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +21 -22
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +4 -3
- package/components/download-plus/src/index.vue.d.ts +81 -78
- package/components/editable-text/src/ctx.d.ts +2 -6
- package/components/editable-text/src/index.vue.d.ts +14 -10
- package/components/el-slider/index.mjs +4 -4
- package/components/el-slider/src/button.vue.d.ts +2 -1
- package/components/el-slider/src/composables/use-slide.d.ts +1 -1
- package/components/el-slider/src/composables/use-slider-button.d.ts +1 -1
- package/components/el-slider/src/composables/use-watch.d.ts +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +7 -6
- package/components/el-slider/src/slider.d.ts +2 -1
- package/components/esri-input-geojson/index.mjs +40 -55
- package/components/esri-input-geojson/src/append.vue.d.ts +97 -96
- package/components/esri-input-geojson/src/ctx.d.ts +21 -22
- package/components/esri-input-geojson/src/default-view.vue.d.ts +7 -3
- package/components/esri-input-geojson/src/index.vue.d.ts +593 -186
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +406 -40
- package/components/fieldset/index.mjs +2 -4
- package/components/fieldset/src/index.vue.d.ts +3 -2
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +68 -67
- package/components/form-item/index.mjs +6 -7
- package/components/form-item/src/core.vue.d.ts +12 -10
- package/components/form-item/src/ctx.d.ts +6 -4
- package/components/form-item/src/index.vue.d.ts +7 -6
- package/components/form-item-renderer/index.mjs +2 -3
- package/components/form-item-renderer/src/core.vue.d.ts +3 -2
- package/components/form-item-renderer/src/index.vue.d.ts +7 -5
- package/components/form-item-renderer-template/index.mjs +1 -2
- package/components/form-item-renderer-template/src/index.vue.d.ts +3 -2
- package/components/forms-provider/src/index.vue.d.ts +5 -2
- package/components/forms-provider/src/segment.vue.d.ts +7 -3
- package/components/forms-provider/src/view.vue.d.ts +11 -7
- package/components/index2.cjs +1 -1
- package/components/information/src/index.vue.d.ts +3 -2
- package/components/information-collection/src/ctx.d.ts +17 -11
- package/components/information-collection/src/index.vue.d.ts +36 -27
- package/components/information-renderer/index.d.ts +9 -9
- package/components/information-tag/src/ctx.d.ts +4 -3
- package/components/information-tag/src/index.vue.d.ts +12 -11
- package/components/information-templates-default/src/index.vue.d.ts +2 -1
- package/components/input/src/ctx.d.ts +20 -20
- package/components/input/src/index.vue.d.ts +70 -69
- package/components/input-array/src/ctx.d.ts +2 -2
- package/components/input-array/src/form-template.vue.d.ts +2 -1
- package/components/input-array/src/index.vue.d.ts +6 -5
- package/components/input-collection/src/core.vue.d.ts +17 -15
- package/components/input-collection/src/ctx.d.ts +4 -4
- package/components/input-collection/src/index.vue.d.ts +13 -12
- package/components/input-file/src/index.vue.d.ts +51 -50
- package/components/input-file/src/template.vue.d.ts +2 -1
- package/components/input-link/src/ctx.d.ts +19 -21
- package/components/input-link/src/index.vue.d.ts +111 -110
- package/components/input-number/src/ctx.d.ts +5 -5
- package/components/input-number/src/index.vue.d.ts +39 -38
- package/components/input-tag/src/ctx.d.ts +10 -10
- package/components/input-tag/src/index.vue.d.ts +48 -47
- package/components/monaco-editor/src/ctx.d.ts +2 -2
- package/components/monaco-editor/src/index.vue.d.ts +17 -16
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.mjs +2 -2
- package/components/radio/src/ctx.d.ts +3 -3
- package/components/radio/src/index.vue.d.ts +32 -31
- package/components/radio/src/option.vue.d.ts +12 -10
- package/components/radio/src/wraper.vue.d.ts +9 -8
- package/components/renderer-data/src/index.vue.d.ts +3 -2
- package/components/select/src/core.vue.d.ts +99 -239
- package/components/select/src/ctx.d.ts +23 -95
- package/components/select/src/index.vue.d.ts +76 -75
- package/components/select/src/options.vue.d.ts +3 -2
- package/components/slider/src/ctx.d.ts +10 -10
- package/components/slider/src/index.vue.d.ts +29 -25
- package/components/style.css +1 -1
- package/components/switch/src/ctx.d.ts +11 -11
- package/components/switch/src/index.vue.d.ts +24 -20
- package/components/tables-select/index.mjs +1 -2
- package/components/tables-select/src/ctx.d.ts +27 -43
- package/components/tables-select/src/index.vue.d.ts +57 -71
- package/components/template-instances-provider/src/index.vue.d.ts +3 -2
- package/components/templates-default/src/ctx.d.ts +3 -5
- package/components/templates-default/src/index.vue.d.ts +778 -727
- package/components/templates-element-plus/index.mjs +3 -3
- package/components/templates-element-plus/src/index.vue.d.ts +27 -26
- package/components/templates-esri/src/index.vue.d.ts +600 -193
- package/components/templates-layout/index.mjs +3 -3
- package/components/templates-layout/src/index.vue.d.ts +14 -13
- package/components/templates-variant/src/index.vue.d.ts +132 -99
- package/components/time-picker/src/ctx.d.ts +31 -23
- package/components/time-picker/src/index.vue.d.ts +66 -49
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +45 -45
- package/components/upload/src/ctx.d.ts +24 -22
- package/components/upload/src/file.vue.d.ts +75 -73
- package/components/upload/src/index.vue.d.ts +188 -187
- package/components/upload/src/wraper.vue.d.ts +48 -47
- package/components/upload-plus/index.cjs +7 -7
- package/components/upload-plus/index.mjs +1911 -1937
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +2 -5
- package/components/upload-plus/src/index.vue.d.ts +6 -5
- package/components/use-watch.cjs +1 -1
- package/components/van-cascader/src/ctx.d.ts +33 -25
- package/components/van-cascader/src/index.vue.d.ts +67 -50
- package/components/var-datetime-picker/index.cjs +1 -1
- package/components/var-datetime-picker/index.mjs +18 -20
- package/components/var-datetime-picker/src/ctx.d.ts +4 -3
- package/components/var-datetime-picker/src/index.vue.d.ts +144 -179
- package/components/vditor/src/ctx.d.ts +2 -3
- package/components/vditor/src/index.vue.d.ts +19 -19
- package/composables/index.mjs +3 -5
- package/composables/useSourceManager.d.ts +2 -2
- package/index.css +1 -1
- package/package.json +1 -1
- package/shared/element-plus/instances.d.ts +60 -43
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'vant/es/cascader/style';
|
|
2
2
|
import 'vant/es/popup/style';
|
|
3
|
-
declare const
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
placement: {
|
|
5
5
|
type: import("vue").PropType<import("element-plus").Placement>;
|
|
6
6
|
};
|
|
@@ -65,14 +65,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
};
|
|
66
66
|
labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
|
|
67
67
|
rules: {
|
|
68
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | null)[], unknown, unknown>>;
|
|
68
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
|
|
69
69
|
readonly required: false;
|
|
70
70
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
71
|
__epPropKey: true;
|
|
72
72
|
};
|
|
73
73
|
error: StringConstructor;
|
|
74
74
|
validateStatus: {
|
|
75
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "
|
|
75
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
76
76
|
readonly required: false;
|
|
77
77
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
78
|
__epPropKey: true;
|
|
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
81
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
82
82
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
83
83
|
emptyValues: ArrayConstructor;
|
|
84
|
-
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown, undefined, boolean>;
|
|
84
|
+
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
85
85
|
size: {
|
|
86
86
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
87
87
|
readonly required: false;
|
|
@@ -91,17 +91,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
91
91
|
placeholder: StringConstructor;
|
|
92
92
|
disabled: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
93
93
|
clearable: BooleanConstructor;
|
|
94
|
-
clearIcon: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component
|
|
94
|
+
clearIcon: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
95
95
|
filterable: BooleanConstructor;
|
|
96
96
|
filterMethod: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | (() => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | {
|
|
97
97
|
(): (node: import("element-plus").CascaderNode, keyword: string) => boolean;
|
|
98
98
|
new (): any;
|
|
99
99
|
readonly prototype: any;
|
|
100
|
-
} | ((new (...args: any[]) => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | (() => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | {
|
|
100
|
+
} | (((new (...args: any[]) => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | (() => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | {
|
|
101
101
|
(): (node: import("element-plus").CascaderNode, keyword: string) => boolean;
|
|
102
102
|
new (): any;
|
|
103
103
|
readonly prototype: any;
|
|
104
|
-
} | null)[], unknown, unknown, (node: import("element-plus").CascaderNode, keyword: string) => boolean, boolean>;
|
|
104
|
+
}) | null)[], unknown, unknown, (node: import("element-plus").CascaderNode, keyword: string) => boolean, boolean>;
|
|
105
105
|
separator: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
106
106
|
showAllLevels: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
107
107
|
collapseTags: BooleanConstructor;
|
|
@@ -118,12 +118,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
118
118
|
(): (value: string) => boolean | Promise<any>;
|
|
119
119
|
new (): any;
|
|
120
120
|
readonly prototype: any;
|
|
121
|
-
} | ((new (...args: any[]) => (value: string) => boolean | Promise<any>) | (() => (value: string) => boolean | Promise<any>) | {
|
|
121
|
+
} | (((new (...args: any[]) => (value: string) => boolean | Promise<any>) | (() => (value: string) => boolean | Promise<any>) | {
|
|
122
122
|
(): (value: string) => boolean | Promise<any>;
|
|
123
123
|
new (): any;
|
|
124
124
|
readonly prototype: any;
|
|
125
|
-
} | null)[], unknown, unknown, () => true, boolean>;
|
|
126
|
-
fallbackPlacements: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | null)[], unknown, unknown, string[], boolean>;
|
|
125
|
+
}) | null)[], unknown, unknown, () => true, boolean>;
|
|
126
|
+
fallbackPlacements: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
127
127
|
popperClass: {
|
|
128
128
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | {
|
|
129
129
|
[x: string]: boolean;
|
|
@@ -145,9 +145,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
145
145
|
[x: string]: boolean;
|
|
146
146
|
} | (string | {
|
|
147
147
|
[x: string]: boolean;
|
|
148
|
-
} | (string |
|
|
148
|
+
} | (string | {
|
|
149
|
+
[x: string]: boolean;
|
|
150
|
+
} | (string | {
|
|
151
|
+
[x: string]: boolean;
|
|
152
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
153
|
+
[x: string]: boolean;
|
|
154
|
+
} | (string | {
|
|
149
155
|
[x: string]: boolean;
|
|
150
|
-
}
|
|
156
|
+
} | (string | {
|
|
151
157
|
[x: string]: boolean;
|
|
152
158
|
} | (string | {
|
|
153
159
|
[x: string]: boolean;
|
|
@@ -167,9 +173,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
167
173
|
[x: string]: boolean;
|
|
168
174
|
} | (string | {
|
|
169
175
|
[x: string]: boolean;
|
|
170
|
-
} |
|
|
176
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
177
|
+
[x: string]: boolean;
|
|
178
|
+
} | (string | {
|
|
171
179
|
[x: string]: boolean;
|
|
172
|
-
}
|
|
180
|
+
} | (string | {
|
|
173
181
|
[x: string]: boolean;
|
|
174
182
|
} | (string | {
|
|
175
183
|
[x: string]: boolean;
|
|
@@ -189,9 +197,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
189
197
|
[x: string]: boolean;
|
|
190
198
|
} | (string | {
|
|
191
199
|
[x: string]: boolean;
|
|
192
|
-
} |
|
|
200
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
193
201
|
[x: string]: boolean;
|
|
194
|
-
}
|
|
202
|
+
} | (string | {
|
|
195
203
|
[x: string]: boolean;
|
|
196
204
|
} | (string | {
|
|
197
205
|
[x: string]: boolean;
|
|
@@ -211,26 +219,26 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
211
219
|
[x: string]: boolean;
|
|
212
220
|
} | (string | {
|
|
213
221
|
[x: string]: boolean;
|
|
214
|
-
} | (string |
|
|
222
|
+
} | (string | {
|
|
215
223
|
[x: string]: boolean;
|
|
216
|
-
})[])[])[])[])[])[])[])[])[])[]) | null)[], unknown, unknown>>;
|
|
224
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
217
225
|
readonly required: false;
|
|
218
226
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
219
227
|
__epPropKey: true;
|
|
220
228
|
};
|
|
221
|
-
popperStyle: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | null)[], unknown, unknown, undefined, boolean>;
|
|
229
|
+
popperStyle: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
222
230
|
teleported: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
223
|
-
effect: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | null)[], unknown, unknown, string, boolean>;
|
|
231
|
+
effect: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | (((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect)) | null)[], unknown, unknown, string, boolean>;
|
|
224
232
|
tagType: {
|
|
225
233
|
default: string;
|
|
226
|
-
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "
|
|
234
|
+
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "info" | "primary" | "success" | "warning" | "danger", unknown>>;
|
|
227
235
|
required: false;
|
|
228
236
|
validator: ((val: unknown) => boolean) | undefined;
|
|
229
237
|
__epPropKey: true;
|
|
230
238
|
};
|
|
231
239
|
tagEffect: {
|
|
232
240
|
default: string;
|
|
233
|
-
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "
|
|
241
|
+
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
234
242
|
required: false;
|
|
235
243
|
validator: ((val: unknown) => boolean) | undefined;
|
|
236
244
|
__epPropKey: true;
|
|
@@ -241,13 +249,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
241
249
|
showPrefix: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
242
250
|
fitInputWidth: import("element-plus/es/utils/index.mjs").EpPropFinalized<(BooleanConstructor | NumberConstructor)[], unknown, unknown, boolean, boolean>;
|
|
243
251
|
modelValue: {
|
|
244
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null) | ((new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null) | null)[], unknown, unknown>>;
|
|
252
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null) | (((new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null)) | null)[], unknown, unknown>>;
|
|
245
253
|
readonly required: false;
|
|
246
254
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
247
255
|
__epPropKey: true;
|
|
248
256
|
};
|
|
249
|
-
options: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | ((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | null)[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
|
|
250
|
-
props: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | ((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | null)[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
|
|
257
|
+
options: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | (((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[])) | null)[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
|
|
258
|
+
props: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | (((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps)) | null)[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
|
|
251
259
|
virtualScroll: BooleanConstructor;
|
|
252
260
|
itemSize: import("element-plus/es/utils/index.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 34, boolean>;
|
|
253
261
|
height: import("element-plus/es/utils/index.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 204, boolean>;
|
|
@@ -325,14 +333,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
325
333
|
};
|
|
326
334
|
labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
|
|
327
335
|
rules: {
|
|
328
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | null)[], unknown, unknown>>;
|
|
336
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
|
|
329
337
|
readonly required: false;
|
|
330
338
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
331
339
|
__epPropKey: true;
|
|
332
340
|
};
|
|
333
341
|
error: StringConstructor;
|
|
334
342
|
validateStatus: {
|
|
335
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "
|
|
343
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
336
344
|
readonly required: false;
|
|
337
345
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
338
346
|
__epPropKey: true;
|
|
@@ -341,7 +349,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
341
349
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
342
350
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
343
351
|
emptyValues: ArrayConstructor;
|
|
344
|
-
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown, undefined, boolean>;
|
|
352
|
+
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
345
353
|
size: {
|
|
346
354
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
347
355
|
readonly required: false;
|
|
@@ -351,17 +359,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
351
359
|
placeholder: StringConstructor;
|
|
352
360
|
disabled: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
353
361
|
clearable: BooleanConstructor;
|
|
354
|
-
clearIcon: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component
|
|
362
|
+
clearIcon: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
355
363
|
filterable: BooleanConstructor;
|
|
356
364
|
filterMethod: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | (() => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | {
|
|
357
365
|
(): (node: import("element-plus").CascaderNode, keyword: string) => boolean;
|
|
358
366
|
new (): any;
|
|
359
367
|
readonly prototype: any;
|
|
360
|
-
} | ((new (...args: any[]) => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | (() => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | {
|
|
368
|
+
} | (((new (...args: any[]) => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | (() => (node: import("element-plus").CascaderNode, keyword: string) => boolean) | {
|
|
361
369
|
(): (node: import("element-plus").CascaderNode, keyword: string) => boolean;
|
|
362
370
|
new (): any;
|
|
363
371
|
readonly prototype: any;
|
|
364
|
-
} | null)[], unknown, unknown, (node: import("element-plus").CascaderNode, keyword: string) => boolean, boolean>;
|
|
372
|
+
}) | null)[], unknown, unknown, (node: import("element-plus").CascaderNode, keyword: string) => boolean, boolean>;
|
|
365
373
|
separator: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
366
374
|
showAllLevels: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
367
375
|
collapseTags: BooleanConstructor;
|
|
@@ -378,12 +386,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
378
386
|
(): (value: string) => boolean | Promise<any>;
|
|
379
387
|
new (): any;
|
|
380
388
|
readonly prototype: any;
|
|
381
|
-
} | ((new (...args: any[]) => (value: string) => boolean | Promise<any>) | (() => (value: string) => boolean | Promise<any>) | {
|
|
389
|
+
} | (((new (...args: any[]) => (value: string) => boolean | Promise<any>) | (() => (value: string) => boolean | Promise<any>) | {
|
|
382
390
|
(): (value: string) => boolean | Promise<any>;
|
|
383
391
|
new (): any;
|
|
384
392
|
readonly prototype: any;
|
|
385
|
-
} | null)[], unknown, unknown, () => true, boolean>;
|
|
386
|
-
fallbackPlacements: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | null)[], unknown, unknown, string[], boolean>;
|
|
393
|
+
}) | null)[], unknown, unknown, () => true, boolean>;
|
|
394
|
+
fallbackPlacements: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
387
395
|
popperClass: {
|
|
388
396
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | {
|
|
389
397
|
[x: string]: boolean;
|
|
@@ -405,9 +413,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
405
413
|
[x: string]: boolean;
|
|
406
414
|
} | (string | {
|
|
407
415
|
[x: string]: boolean;
|
|
408
|
-
} | (string |
|
|
416
|
+
} | (string | {
|
|
417
|
+
[x: string]: boolean;
|
|
418
|
+
} | (string | {
|
|
419
|
+
[x: string]: boolean;
|
|
420
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
421
|
+
[x: string]: boolean;
|
|
422
|
+
} | (string | {
|
|
409
423
|
[x: string]: boolean;
|
|
410
|
-
}
|
|
424
|
+
} | (string | {
|
|
411
425
|
[x: string]: boolean;
|
|
412
426
|
} | (string | {
|
|
413
427
|
[x: string]: boolean;
|
|
@@ -427,9 +441,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
427
441
|
[x: string]: boolean;
|
|
428
442
|
} | (string | {
|
|
429
443
|
[x: string]: boolean;
|
|
430
|
-
} |
|
|
444
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
445
|
+
[x: string]: boolean;
|
|
446
|
+
} | (string | {
|
|
431
447
|
[x: string]: boolean;
|
|
432
|
-
}
|
|
448
|
+
} | (string | {
|
|
433
449
|
[x: string]: boolean;
|
|
434
450
|
} | (string | {
|
|
435
451
|
[x: string]: boolean;
|
|
@@ -449,9 +465,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
449
465
|
[x: string]: boolean;
|
|
450
466
|
} | (string | {
|
|
451
467
|
[x: string]: boolean;
|
|
452
|
-
} |
|
|
468
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
453
469
|
[x: string]: boolean;
|
|
454
|
-
}
|
|
470
|
+
} | (string | {
|
|
455
471
|
[x: string]: boolean;
|
|
456
472
|
} | (string | {
|
|
457
473
|
[x: string]: boolean;
|
|
@@ -471,26 +487,26 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
471
487
|
[x: string]: boolean;
|
|
472
488
|
} | (string | {
|
|
473
489
|
[x: string]: boolean;
|
|
474
|
-
} | (string |
|
|
490
|
+
} | (string | {
|
|
475
491
|
[x: string]: boolean;
|
|
476
|
-
})[])[])[])[])[])[])[])[])[])[]) | null)[], unknown, unknown>>;
|
|
492
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
477
493
|
readonly required: false;
|
|
478
494
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
479
495
|
__epPropKey: true;
|
|
480
496
|
};
|
|
481
|
-
popperStyle: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | null)[], unknown, unknown, undefined, boolean>;
|
|
497
|
+
popperStyle: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
482
498
|
teleported: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
483
|
-
effect: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | null)[], unknown, unknown, string, boolean>;
|
|
499
|
+
effect: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | (((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect)) | null)[], unknown, unknown, string, boolean>;
|
|
484
500
|
tagType: {
|
|
485
501
|
default: string;
|
|
486
|
-
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "
|
|
502
|
+
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "info" | "primary" | "success" | "warning" | "danger", unknown>>;
|
|
487
503
|
required: false;
|
|
488
504
|
validator: ((val: unknown) => boolean) | undefined;
|
|
489
505
|
__epPropKey: true;
|
|
490
506
|
};
|
|
491
507
|
tagEffect: {
|
|
492
508
|
default: string;
|
|
493
|
-
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "
|
|
509
|
+
type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
494
510
|
required: false;
|
|
495
511
|
validator: ((val: unknown) => boolean) | undefined;
|
|
496
512
|
__epPropKey: true;
|
|
@@ -501,13 +517,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
501
517
|
showPrefix: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
502
518
|
fitInputWidth: import("element-plus/es/utils/index.mjs").EpPropFinalized<(BooleanConstructor | NumberConstructor)[], unknown, unknown, boolean, boolean>;
|
|
503
519
|
modelValue: {
|
|
504
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null) | ((new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null) | null)[], unknown, unknown>>;
|
|
520
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null) | (((new (...args: any[]) => string | number | Record<string, any> | import("element-plus").CascaderNodePathValue | (import("element-plus").CascaderNodeValue | import("element-plus").CascaderNodePathValue)[]) | (() => import("element-plus").CascaderValue | null)) | null)[], unknown, unknown>>;
|
|
505
521
|
readonly required: false;
|
|
506
522
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
507
523
|
__epPropKey: true;
|
|
508
524
|
};
|
|
509
|
-
options: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | ((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | null)[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
|
|
510
|
-
props: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | ((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | null)[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
|
|
525
|
+
options: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | (((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[])) | null)[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
|
|
526
|
+
props: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | (((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps)) | null)[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
|
|
511
527
|
virtualScroll: BooleanConstructor;
|
|
512
528
|
itemSize: import("element-plus/es/utils/index.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 34, boolean>;
|
|
513
529
|
height: import("element-plus/es/utils/index.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 204, boolean>;
|
|
@@ -534,7 +550,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
534
550
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
535
551
|
disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
536
552
|
clearable: boolean;
|
|
537
|
-
clearIcon: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component
|
|
553
|
+
clearIcon: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown>;
|
|
538
554
|
validateEvent: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
539
555
|
props: import("element-plus").CascaderProps;
|
|
540
556
|
options: import("element-plus").CascaderOption[];
|
|
@@ -565,4 +581,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
565
581
|
itemSize: number;
|
|
566
582
|
height: number;
|
|
567
583
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
584
|
+
declare const _default: typeof __VLS_export;
|
|
568
585
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const V=require("@vunk/form/components/form-item"),t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const V=require("@vunk/form/components/form-item"),t=require("vue"),C=require("@vunk/form/composables"),F=require("@vunk/form/composables/element-plus"),w=require("vant"),b=require("@varlet/ui"),n=require("element-plus");require("vant/es/popup/style");require("@varlet/ui/es/date-picker/date-picker.css");require("@varlet/ui/es/time-picker/timePicker.css");const R=require("../_plugin-vue_export-helper.cjs"),Y={...V._VkfFormItemCtx.props,modelValue:null,readonly:Boolean,type:{type:String,default:"month"},allowedDates:{type:Function,default:void 0},useSeconds:Boolean,valueFormat:{type:String,default:"YYYY-MM-DD HH:mm"}},E={"update:modelValue":null},M=[{label:"日期",value:"date",format:"YYYY-MM-DD"},{label:"年",value:"year",format:"YYYY"},{label:"月",value:"month",format:"YYYY-MM"}],B=M.reduce((e,a)=>(e[a.value]=a,e),{}),I=[{label:"日期",value:"date",varDatePickerType:"date",isRange:!1},{label:"年",value:"year",varDatePickerType:"year",isRange:!1},{label:"月",value:"month",varDatePickerType:"month",isRange:!1},{value:"dates",label:"多选日期",varDatePickerType:"date",isRange:!1},{value:"week",label:"周",varDatePickerType:"date",isRange:!1},{value:"datetime",label:"日期时间",varDatePickerType:"date",isRange:!1,hasTime:!0},{value:"datetimerange",label:"日期时间范围",varDatePickerType:"date",isRange:!1,hasTime:!0},{value:"daterange",label:"日期范围",varDatePickerType:"date",isRange:!0},{value:"monthrange",label:"月范围",varDatePickerType:"month",isRange:!0}],k=I.reduce((e,a)=>(e[a.value]=a,e),{}),S=t.defineComponent({name:"VkfVarDatetimePicker",components:{VkfFormItem:V.VkfFormItem,ElDatePicker:n.ElDatePicker,DatePicker:b.DatePicker,TimePicker:b.TimePicker,Popup:w.Popup,ElTabPane:n.ElTabPane,ElTabs:n.ElTabs},props:Y,emits:E,setup(e,{emit:a}){const y=V._VkfFormItemCtx.createBindProps(e),{tr:P}=F.useLocale(),s=t.computed(()=>k[e.type].varDatePickerType),i=t.computed(()=>B[s.value].format),d=t.computed(()=>!!k[e.type].isRange),u=t.computed(()=>!!k[e.type].hasTime),m=()=>e.modelValue?n.dayjs(e.modelValue).format(i.value):"",c=()=>e.modelValue?n.dayjs(e.modelValue).format(e.useSeconds?"HH:mm:ss":"HH:mm"):"",p=r=>{if(!r)return"";const o=n.dayjs(r,i.value);return e.modelValue?n.dayjs(e.modelValue).year(o.year()).month(o.month()).date(o.date()).format(e.valueFormat):o.format(e.valueFormat)},v=r=>{if(!r)return"";const o=n.dayjs(r,e.useSeconds?"HH:mm:ss":"HH:mm");return e.modelValue?n.dayjs(e.modelValue).hour(o.hour()).minute(o.minute()).second(o.second()).format(e.valueFormat):o.format(e.valueFormat)},f=t.computed({get(){return m()},set(r){const o=p(r);a("update:modelValue",o)}}),l=t.computed({get(){return c()},set(r){const o=v(r);a("update:modelValue",o)}}),h=C.useComputedReadonly(e),T=t.ref(!1),D=t.ref("date");return{preInput:()=>{h.value||(e.modelValue&&u.value&&(D.value="time"),T.value=!0)},inputBlur:r=>{r.target.blur()},popupShow:T,formItemBindProps:y,varDatePickerType:s,isRange:d,hasTime:u,currentTab:D,valueTime:l,valueDate:f,tr:P}}});function q(e,a,y,P,s,i){const d=t.resolveComponent("ElDatePicker"),u=t.resolveComponent("DatePicker"),m=t.resolveComponent("ElTabPane"),c=t.resolveComponent("TimePicker"),p=t.resolveComponent("ElTabs"),v=t.resolveComponent("Popup"),f=t.resolveComponent("VkfFormItem");return t.openBlock(),t.createBlock(f,t.normalizeProps(t.guardReactiveProps(e.formItemBindProps)),{default:t.withCtx(()=>[t.createElementVNode("div",{onClickCapture:a[0]||(a[0]=(...l)=>e.preInput&&e.preInput(...l))},[t.createVNode(d,{"popper-class":"var-datetime-picker-el-popover","model-value":e.modelValue,type:e.type,readonly:!0,"value-format":e.valueFormat,onFocus:e.inputBlur},null,8,["model-value","type","value-format","onFocus"])],32),t.createVNode(v,{show:e.popupShow,"onUpdate:show":a[4]||(a[4]=l=>e.popupShow=l),position:"bottom",round:""},{default:t.withCtx(()=>[t.createVNode(p,{modelValue:e.currentTab,"onUpdate:modelValue":a[3]||(a[3]=l=>e.currentTab=l),class:t.normalizeClass(["var-datetime-picker-el-tabs",{"is-hidden":!e.hasTime}])},{default:t.withCtx(()=>[t.createVNode(m,{label:e.valueDate||e.tr("el.datepicker.selectDate","选择日期"),name:"date"},{default:t.withCtx(()=>[t.createVNode(u,{modelValue:e.valueDate,"onUpdate:modelValue":a[1]||(a[1]=l=>e.valueDate=l),type:e.varDatePickerType,range:e.isRange,"allowed-dates":e.allowedDates},null,8,["modelValue","type","range","allowed-dates"])]),_:1},8,["label"]),e.hasTime?(t.openBlock(),t.createBlock(m,{key:0,label:e.valueTime||e.tr("el.datepicker.selectTime","选择时间"),name:"time"},{default:t.withCtx(()=>[t.createVNode(c,{modelValue:e.valueTime,"onUpdate:modelValue":a[2]||(a[2]=l=>e.valueTime=l),format:"24hr"},null,8,["modelValue"])]),_:1},8,["label"])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","class"])]),_:1},8,["show"])]),_:1},16)}const g=R._export_sfc(S,[["render",q]]),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfVarDatetimePicker=g;exports.__VkfVarDatetimePicker=H;exports.default=g;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _VkfFormItemCtx as Y, VkfFormItem as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { _VkfFormItemCtx as Y, VkfFormItem as w } from "@vunk/form/components/form-item";
|
|
2
|
+
import { defineComponent as B, computed as n, ref as h, resolveComponent as r, openBlock as F, createBlock as R, normalizeProps as E, guardReactiveProps as H, withCtx as i, createElementVNode as I, createVNode as u, normalizeClass as S, createCommentVNode as C } from "vue";
|
|
3
3
|
import { useComputedReadonly as O } from "@vunk/form/composables";
|
|
4
4
|
import { useLocale as U } from "@vunk/form/composables/element-plus";
|
|
5
5
|
import { Popup as $ } from "vant";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { TimePicker as j, DatePicker as z } from "@varlet/ui";
|
|
7
|
+
import { ElTabs as N, ElTabPane as L, ElDatePicker as _, dayjs as m } from "element-plus";
|
|
8
8
|
import "vant/es/popup/style";
|
|
9
|
-
import "@varlet/ui/es/date-picker/
|
|
10
|
-
import "@varlet/ui/es/time-picker/
|
|
9
|
+
import "@varlet/ui/es/date-picker/date-picker.css";
|
|
10
|
+
import "@varlet/ui/es/time-picker/timePicker.css";
|
|
11
11
|
import { _ as q } from "../_plugin-vue_export-helper.cjs";
|
|
12
12
|
const A = {
|
|
13
13
|
...Y.props,
|
|
@@ -105,28 +105,26 @@ const A = {
|
|
|
105
105
|
varDatePickerType: "month",
|
|
106
106
|
isRange: !0
|
|
107
107
|
}
|
|
108
|
-
], T = Q.reduce((e, a) => (e[a.value] = a, e), {}), W =
|
|
108
|
+
], T = Q.reduce((e, a) => (e[a.value] = a, e), {}), W = B({
|
|
109
109
|
name: "VkfVarDatetimePicker",
|
|
110
110
|
components: {
|
|
111
|
-
VkfFormItem:
|
|
112
|
-
ElDatePicker:
|
|
113
|
-
DatePicker:
|
|
114
|
-
TimePicker:
|
|
111
|
+
VkfFormItem: w,
|
|
112
|
+
ElDatePicker: _,
|
|
113
|
+
DatePicker: z,
|
|
114
|
+
TimePicker: j,
|
|
115
115
|
Popup: $,
|
|
116
116
|
ElTabPane: L,
|
|
117
|
-
ElTabs:
|
|
117
|
+
ElTabs: N
|
|
118
118
|
},
|
|
119
119
|
props: A,
|
|
120
120
|
emits: G,
|
|
121
121
|
setup(e, { emit: a }) {
|
|
122
122
|
const P = Y.createBindProps(e), { tr: D } = U(), p = n(() => T[e.type].varDatePickerType), c = n(() => K[p.value].format), f = n(() => !!T[e.type].isRange), s = n(() => !!T[e.type].hasTime), d = () => e.modelValue ? m(e.modelValue).format(c.value) : "", v = () => e.modelValue ? m(e.modelValue).format(e.useSeconds ? "HH:mm:ss" : "HH:mm") : "", k = (o) => {
|
|
123
|
-
if (!o)
|
|
124
|
-
return "";
|
|
123
|
+
if (!o) return "";
|
|
125
124
|
const t = m(o, c.value);
|
|
126
125
|
return e.modelValue ? m(e.modelValue).year(t.year()).month(t.month()).date(t.date()).format(e.valueFormat) : t.format(e.valueFormat);
|
|
127
126
|
}, y = (o) => {
|
|
128
|
-
if (!o)
|
|
129
|
-
return "";
|
|
127
|
+
if (!o) return "";
|
|
130
128
|
const t = m(
|
|
131
129
|
o,
|
|
132
130
|
e.useSeconds ? "HH:mm:ss" : "HH:mm"
|
|
@@ -148,10 +146,10 @@ const A = {
|
|
|
148
146
|
const t = y(o);
|
|
149
147
|
a("update:modelValue", t);
|
|
150
148
|
}
|
|
151
|
-
}),
|
|
149
|
+
}), M = O(e), b = h(!1), g = h("date");
|
|
152
150
|
return {
|
|
153
151
|
preInput: () => {
|
|
154
|
-
|
|
152
|
+
M.value || (e.modelValue && s.value && (g.value = "time"), b.value = !0);
|
|
155
153
|
},
|
|
156
154
|
inputBlur: (o) => {
|
|
157
155
|
o.target.blur();
|
|
@@ -170,7 +168,7 @@ const A = {
|
|
|
170
168
|
});
|
|
171
169
|
function X(e, a, P, D, p, c) {
|
|
172
170
|
const f = r("ElDatePicker"), s = r("DatePicker"), d = r("ElTabPane"), v = r("TimePicker"), k = r("ElTabs"), y = r("Popup"), V = r("VkfFormItem");
|
|
173
|
-
return
|
|
171
|
+
return F(), R(V, E(H(e.formItemBindProps)), {
|
|
174
172
|
default: i(() => [
|
|
175
173
|
I("div", {
|
|
176
174
|
onClickCapture: a[0] || (a[0] = (...l) => e.preInput && e.preInput(...l))
|
|
@@ -214,7 +212,7 @@ function X(e, a, P, D, p, c) {
|
|
|
214
212
|
]),
|
|
215
213
|
_: 1
|
|
216
214
|
}, 8, ["label"]),
|
|
217
|
-
e.hasTime ? (
|
|
215
|
+
e.hasTime ? (F(), R(d, {
|
|
218
216
|
key: 0,
|
|
219
217
|
label: e.valueTime || e.tr("el.datepicker.selectTime", "选择时间"),
|
|
220
218
|
name: "time"
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import { DatePickType } from 'element-plus';
|
|
2
3
|
export declare const props: {
|
|
3
4
|
modelValue: null;
|
|
4
5
|
readonly: BooleanConstructor;
|
|
5
6
|
type: {
|
|
6
|
-
type: PropType<
|
|
7
|
+
type: PropType<Exclude<DatePickType, "datetimerange">>;
|
|
7
8
|
default: string;
|
|
8
9
|
};
|
|
9
10
|
allowedDates: {
|
|
@@ -56,14 +57,14 @@ export declare const props: {
|
|
|
56
57
|
};
|
|
57
58
|
labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
|
|
58
59
|
rules: {
|
|
59
|
-
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | null)[], unknown, unknown>>;
|
|
60
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
|
|
60
61
|
readonly required: false;
|
|
61
62
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
62
63
|
__epPropKey: true;
|
|
63
64
|
};
|
|
64
65
|
error: StringConstructor;
|
|
65
66
|
validateStatus: {
|
|
66
|
-
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "
|
|
67
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
67
68
|
readonly required: false;
|
|
68
69
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
70
|
__epPropKey: true;
|