@vunk/form 2.19.13 → 2.19.16
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 +14 -10
- package/components/api-tables-select/src/index.vue.d.ts +30 -21
- package/components/button/src/ctx.d.ts +4 -0
- package/components/button/src/index.vue.d.ts +18 -0
- package/components/card-input-collection/src/core.vue.d.ts +9 -0
- package/components/card-input-collection/src/ctx.d.ts +4 -0
- package/components/card-input-collection/src/index.vue.d.ts +9 -0
- package/components/cascader/src/ctx.d.ts +5 -1
- package/components/cascader/src/index.vue.d.ts +12 -3
- package/components/checkbox/src/ctx.d.ts +5 -1
- package/components/checkbox/src/index.vue.d.ts +19 -1
- package/components/collapse-item/index.cjs +1 -1
- package/components/collapse-item/index.mjs +38 -31
- package/components/collapse-item/src/index.vue.d.ts +8 -2
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +10 -1
- package/components/date-picker/src/ctx.d.ts +5 -1
- package/components/date-picker/src/index.vue.d.ts +13 -4
- package/components/date-picker-range/src/ctx.d.ts +90 -86
- package/components/date-picker-range/src/index.vue.d.ts +198 -180
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog-input-collection/src/ctx.d.ts +4 -0
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +4 -0
- package/components/download-plus/src/index.vue.d.ts +18 -0
- package/components/editable-text/src/ctx.d.ts +4 -0
- package/components/editable-text/src/index.vue.d.ts +9 -0
- package/components/el-slider/src/slider-core.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +5 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +34 -6
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +42 -36
- package/components/form-item/src/core.vue.d.ts +2 -0
- package/components/form-item/src/ctx.d.ts +6 -1
- package/components/form-item/src/index.vue.d.ts +9 -0
- package/components/information-collection/src/ctx.d.ts +4 -0
- package/components/information-collection/src/index.vue.d.ts +9 -0
- package/components/information-tag/src/index.vue.d.ts +2 -2
- package/components/input/src/ctx.d.ts +5 -1
- package/components/input/src/index.vue.d.ts +21 -3
- package/components/input-array/src/ctx.d.ts +4 -0
- package/components/input-array/src/index.vue.d.ts +9 -0
- package/components/input-collection/src/core.vue.d.ts +9 -0
- package/components/input-collection/src/ctx.d.ts +4 -0
- package/components/input-collection/src/index.vue.d.ts +9 -0
- package/components/input-file/src/index.vue.d.ts +9 -0
- package/components/input-link/src/ctx.d.ts +4 -0
- package/components/input-link/src/index.vue.d.ts +31 -4
- package/components/input-number/src/ctx.d.ts +5 -1
- package/components/input-number/src/index.vue.d.ts +21 -3
- package/components/input-tag/src/ctx.d.ts +5 -1
- package/components/input-tag/src/index.vue.d.ts +25 -7
- package/components/monaco-editor/src/ctx.d.ts +4 -0
- package/components/monaco-editor/src/index.vue.d.ts +18 -0
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +21 -3
- package/components/radio/src/wraper.vue.d.ts +10 -1
- package/components/select/src/core.vue.d.ts +33 -15
- package/components/select/src/ctx.d.ts +5 -1
- package/components/select/src/index.vue.d.ts +15 -6
- package/components/slider/src/ctx.d.ts +4 -0
- package/components/slider/src/index.vue.d.ts +11 -2
- package/components/switch/src/ctx.d.ts +4 -0
- package/components/switch/src/index.vue.d.ts +9 -0
- package/components/tables-select/src/ctx.d.ts +5 -1
- package/components/tables-select/src/index.vue.d.ts +10 -1
- package/components/templates-default/src/index.vue.d.ts +218 -38
- package/components/templates-esri/src/index.vue.d.ts +34 -6
- package/components/templates-variant/src/index.vue.d.ts +198 -180
- package/components/time-picker/src/ctx.d.ts +5 -1
- package/components/time-picker/src/index.vue.d.ts +13 -4
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/index.vue.d.ts +18 -0
- package/components/upload/src/wraper.vue.d.ts +9 -0
- package/components/upload-plus/index.cjs +7 -7
- package/components/upload-plus/index.mjs +1661 -1653
- package/components/upload-plus/src/ctx.d.ts +4 -0
- package/components/upload-plus/src/index.vue.d.ts +9 -0
- package/components/van-cascader/src/ctx.d.ts +4 -0
- package/components/van-cascader/src/index.vue.d.ts +12 -3
- package/components/var-datetime-picker/src/ctx.d.ts +4 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +18 -0
- package/components/vditor/src/ctx.d.ts +4 -0
- package/components/vditor/src/index.vue.d.ts +18 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +13 -13
|
@@ -63,6 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
63
63
|
};
|
|
64
64
|
prop: null;
|
|
65
65
|
defaultModelValue: null;
|
|
66
|
+
labelTipProps: {
|
|
67
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
68
|
+
default: () => {};
|
|
69
|
+
};
|
|
66
70
|
label: StringConstructor;
|
|
67
71
|
labelWidth: {
|
|
68
72
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -231,6 +235,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
231
235
|
};
|
|
232
236
|
prop: null;
|
|
233
237
|
defaultModelValue: null;
|
|
238
|
+
labelTipProps: {
|
|
239
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
240
|
+
default: () => {};
|
|
241
|
+
};
|
|
234
242
|
label: StringConstructor;
|
|
235
243
|
labelWidth: {
|
|
236
244
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -266,6 +274,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
266
274
|
formItemTip: string;
|
|
267
275
|
labelTip: string;
|
|
268
276
|
information: boolean;
|
|
277
|
+
labelTipProps: import("element-plus").UseTooltipProps;
|
|
269
278
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
270
279
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
271
280
|
url: string;
|
|
@@ -314,6 +323,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
314
323
|
};
|
|
315
324
|
prop: null;
|
|
316
325
|
defaultModelValue: null;
|
|
326
|
+
labelTipProps: {
|
|
327
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
328
|
+
default: () => {};
|
|
329
|
+
};
|
|
317
330
|
label: StringConstructor;
|
|
318
331
|
labelWidth: {
|
|
319
332
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -386,6 +399,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
386
399
|
};
|
|
387
400
|
prop: null;
|
|
388
401
|
defaultModelValue: null;
|
|
402
|
+
labelTipProps: {
|
|
403
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
404
|
+
default: () => {};
|
|
405
|
+
};
|
|
389
406
|
label: StringConstructor;
|
|
390
407
|
labelWidth: {
|
|
391
408
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -426,6 +443,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
426
443
|
formItemTip: string;
|
|
427
444
|
labelTip: string;
|
|
428
445
|
information: boolean;
|
|
446
|
+
labelTipProps: import("element-plus").UseTooltipProps;
|
|
429
447
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
430
448
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
431
449
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -71,6 +71,10 @@ export declare const props: {
|
|
|
71
71
|
};
|
|
72
72
|
prop: null;
|
|
73
73
|
defaultModelValue: null;
|
|
74
|
+
labelTipProps: {
|
|
75
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
76
|
+
default: () => {};
|
|
77
|
+
};
|
|
74
78
|
label: StringConstructor;
|
|
75
79
|
labelWidth: {
|
|
76
80
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -63,6 +63,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
63
63
|
};
|
|
64
64
|
prop: null;
|
|
65
65
|
defaultModelValue: null;
|
|
66
|
+
labelTipProps: {
|
|
67
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
68
|
+
default: () => {};
|
|
69
|
+
};
|
|
66
70
|
label: StringConstructor;
|
|
67
71
|
labelWidth: {
|
|
68
72
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -147,6 +151,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
147
151
|
};
|
|
148
152
|
prop: null;
|
|
149
153
|
defaultModelValue: null;
|
|
154
|
+
labelTipProps: {
|
|
155
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
156
|
+
default: () => {};
|
|
157
|
+
};
|
|
150
158
|
label: StringConstructor;
|
|
151
159
|
labelWidth: {
|
|
152
160
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -183,6 +191,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
183
191
|
formItemTip: string;
|
|
184
192
|
labelTip: string;
|
|
185
193
|
information: boolean;
|
|
194
|
+
labelTipProps: import("element-plus").UseTooltipProps;
|
|
186
195
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
187
196
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
188
197
|
editable: boolean;
|
|
@@ -191,11 +191,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
191
191
|
"onUpdate:modelValue"?: ((value: number | number[]) => any) | undefined;
|
|
192
192
|
onChange?: ((value: number | number[]) => any) | undefined;
|
|
193
193
|
}>, {
|
|
194
|
-
|
|
194
|
+
id: string;
|
|
195
195
|
placement: import("@popperjs/core/index").Placement;
|
|
196
|
+
size: "" | "default" | "small" | "large";
|
|
196
197
|
vertical: boolean;
|
|
197
198
|
disabled: boolean;
|
|
198
|
-
id: string;
|
|
199
199
|
modelValue: number | number[];
|
|
200
200
|
validateEvent: boolean;
|
|
201
201
|
persistent: boolean;
|
|
@@ -125,6 +125,10 @@ export declare const props: {
|
|
|
125
125
|
};
|
|
126
126
|
prop: null;
|
|
127
127
|
defaultModelValue: null;
|
|
128
|
+
labelTipProps: {
|
|
129
|
+
type: PropType<import("element-plus").UseTooltipProps>;
|
|
130
|
+
default: () => {};
|
|
131
|
+
};
|
|
128
132
|
label: StringConstructor;
|
|
129
133
|
labelWidth: {
|
|
130
134
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -218,7 +222,7 @@ export declare const props: {
|
|
|
218
222
|
};
|
|
219
223
|
autofocus: BooleanConstructor;
|
|
220
224
|
};
|
|
221
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"modelModifiers", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"wordLimitPosition", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"countGraphemes", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"visibleElements", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> | Exclude<Extract<"dialogEdit", keyof T2>, KE> | Exclude<Extract<"dialogEditFullscreen", keyof T2>, KE> | Exclude<Extract<"dialogEditTitle", keyof T2>, KE> | Exclude<Extract<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
|
|
225
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"modelModifiers", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"wordLimitPosition", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"countGraphemes", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"visibleElements", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> | Exclude<Extract<"dialogEdit", keyof T2>, KE> | Exclude<Extract<"dialogEditFullscreen", keyof T2>, KE> | Exclude<Extract<"dialogEditTitle", keyof T2>, KE> | Exclude<Extract<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
|
|
222
226
|
export declare const emits: {
|
|
223
227
|
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, import("geojson").GeoJsonProperties>;
|
|
224
228
|
'update:flying': null;
|
|
@@ -127,6 +127,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
127
127
|
};
|
|
128
128
|
prop: null;
|
|
129
129
|
defaultModelValue: null;
|
|
130
|
+
labelTipProps: {
|
|
131
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
132
|
+
default: () => {};
|
|
133
|
+
};
|
|
130
134
|
label: StringConstructor;
|
|
131
135
|
labelWidth: {
|
|
132
136
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -223,6 +227,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
223
227
|
inputBindProps: import("vue").ComputedRef<{
|
|
224
228
|
type: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string) | (() => import("element-plus").InputType) | ((new (...args: any[]) => string) | (() => import("element-plus").InputType) | null)[], unknown, unknown>;
|
|
225
229
|
required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
230
|
+
id: string | undefined;
|
|
231
|
+
ariaLabel: string | undefined;
|
|
226
232
|
size: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
227
233
|
labelPosition: "left" | "right" | "top" | "start" | "end" | undefined;
|
|
228
234
|
formItemSize: "default" | "small" | "large" | undefined;
|
|
@@ -235,6 +241,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
235
241
|
information: boolean;
|
|
236
242
|
prop: any;
|
|
237
243
|
defaultModelValue: any;
|
|
244
|
+
labelTipProps: import("element-plus").UseTooltipProps;
|
|
238
245
|
label: string | undefined;
|
|
239
246
|
labelWidth: import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
240
247
|
rules: 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> | undefined;
|
|
@@ -244,7 +251,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
244
251
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
245
252
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
246
253
|
disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
247
|
-
id: string | undefined;
|
|
248
254
|
modelModifiers: import("element-plus").InputModelModifiers;
|
|
249
255
|
maxlength: number | undefined;
|
|
250
256
|
minlength: number | undefined;
|
|
@@ -268,7 +274,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
268
274
|
inputStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
269
275
|
autofocus: boolean;
|
|
270
276
|
rows: number | undefined;
|
|
271
|
-
ariaLabel: string | undefined;
|
|
272
277
|
inputmode: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined) | ((new (...args: any[]) => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined) | null)[], unknown, unknown>;
|
|
273
278
|
name: string | undefined;
|
|
274
279
|
countGraphemes: ((value: string) => number) | undefined;
|
|
@@ -448,6 +453,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
448
453
|
};
|
|
449
454
|
prop: null;
|
|
450
455
|
defaultModelValue: null;
|
|
456
|
+
labelTipProps: {
|
|
457
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
458
|
+
default: () => {};
|
|
459
|
+
};
|
|
451
460
|
label: StringConstructor;
|
|
452
461
|
labelWidth: {
|
|
453
462
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -559,6 +568,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
559
568
|
}>, {
|
|
560
569
|
type: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string) | (() => import("element-plus").InputType) | ((new (...args: any[]) => string) | (() => import("element-plus").InputType) | null)[], unknown, unknown>;
|
|
561
570
|
required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
571
|
+
id: string;
|
|
562
572
|
labelPosition: "left" | "right" | "top" | "start" | "end";
|
|
563
573
|
formItemSize: "default" | "small" | "large";
|
|
564
574
|
formItemSlots: import("../../form-item/src/types.ts").FormItemSlots;
|
|
@@ -567,10 +577,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
567
577
|
formItemTip: string;
|
|
568
578
|
labelTip: string;
|
|
569
579
|
information: boolean;
|
|
580
|
+
labelTipProps: import("element-plus").UseTooltipProps;
|
|
570
581
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
571
582
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
572
583
|
disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
573
|
-
id: string;
|
|
574
584
|
modelValue: import("geojson").FeatureCollection<import("geojson").Geometry, any>;
|
|
575
585
|
modelModifiers: import("element-plus").InputModelModifiers;
|
|
576
586
|
autosize: import("element-plus").InputAutoSize;
|
|
@@ -657,6 +667,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
657
667
|
};
|
|
658
668
|
prop: null;
|
|
659
669
|
defaultModelValue: null;
|
|
670
|
+
labelTipProps: {
|
|
671
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
672
|
+
default: () => {};
|
|
673
|
+
};
|
|
660
674
|
label: StringConstructor;
|
|
661
675
|
labelWidth: {
|
|
662
676
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -753,9 +767,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
753
767
|
}>, {
|
|
754
768
|
inputBindProps: import("vue").ComputedRef<{
|
|
755
769
|
type: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string) | (() => import("element-plus").InputType) | ((new (...args: any[]) => string) | (() => import("element-plus").InputType) | null)[], unknown, unknown>;
|
|
770
|
+
id: string | undefined;
|
|
771
|
+
ariaLabel: string | undefined;
|
|
756
772
|
size: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
757
773
|
disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
758
|
-
id: string | undefined;
|
|
759
774
|
modelValue: string | number | null;
|
|
760
775
|
modelModifiers: import("element-plus").InputModelModifiers;
|
|
761
776
|
maxlength: number | undefined;
|
|
@@ -780,7 +795,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
780
795
|
inputStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
781
796
|
autofocus: boolean;
|
|
782
797
|
rows: number | undefined;
|
|
783
|
-
ariaLabel: string | undefined;
|
|
784
798
|
inputmode: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined) | ((new (...args: any[]) => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "email" | "search" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined) | null)[], unknown, unknown>;
|
|
785
799
|
name: string | undefined;
|
|
786
800
|
countGraphemes: ((value: string) => number) | undefined;
|
|
@@ -858,6 +872,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
858
872
|
};
|
|
859
873
|
prop: null;
|
|
860
874
|
defaultModelValue: null;
|
|
875
|
+
labelTipProps: {
|
|
876
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
877
|
+
default: () => {};
|
|
878
|
+
};
|
|
861
879
|
label: StringConstructor;
|
|
862
880
|
labelWidth: {
|
|
863
881
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -967,6 +985,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
967
985
|
}>, {
|
|
968
986
|
type: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string) | (() => import("element-plus").InputType) | ((new (...args: any[]) => string) | (() => import("element-plus").InputType) | null)[], unknown, unknown>;
|
|
969
987
|
required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
988
|
+
id: string;
|
|
970
989
|
labelPosition: "left" | "right" | "top" | "start" | "end";
|
|
971
990
|
formItemSize: "default" | "small" | "large";
|
|
972
991
|
formItemSlots: import("../../form-item/src/types.ts").FormItemSlots;
|
|
@@ -975,10 +994,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
975
994
|
formItemTip: string;
|
|
976
995
|
labelTip: string;
|
|
977
996
|
information: boolean;
|
|
997
|
+
labelTipProps: import("element-plus").UseTooltipProps;
|
|
978
998
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
979
999
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
980
1000
|
disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
981
|
-
id: string;
|
|
982
1001
|
modelValue: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined) | null)[], unknown, unknown>;
|
|
983
1002
|
modelModifiers: import("element-plus").InputModelModifiers;
|
|
984
1003
|
autosize: import("element-plus").InputAutoSize;
|
|
@@ -1204,6 +1223,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1204
1223
|
};
|
|
1205
1224
|
prop: null;
|
|
1206
1225
|
defaultModelValue: null;
|
|
1226
|
+
labelTipProps: {
|
|
1227
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
1228
|
+
default: () => {};
|
|
1229
|
+
};
|
|
1207
1230
|
label: StringConstructor;
|
|
1208
1231
|
labelWidth: {
|
|
1209
1232
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -1276,6 +1299,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1276
1299
|
};
|
|
1277
1300
|
prop: null;
|
|
1278
1301
|
defaultModelValue: null;
|
|
1302
|
+
labelTipProps: {
|
|
1303
|
+
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
1304
|
+
default: () => {};
|
|
1305
|
+
};
|
|
1279
1306
|
label: StringConstructor;
|
|
1280
1307
|
labelWidth: {
|
|
1281
1308
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -1316,6 +1343,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1316
1343
|
formItemTip: string;
|
|
1317
1344
|
labelTip: string;
|
|
1318
1345
|
information: boolean;
|
|
1346
|
+
labelTipProps: import("element-plus").UseTooltipProps;
|
|
1319
1347
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1320
1348
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1321
1349
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("element-plus"),h=require("@vunk/core/shared/utils-vue"),e=require("vue"),q=require("@vunk/form/shared/element-plus"),u=require("@vunk/form/composables"),B=require("@vunk/form/composables/element-plus"),v=require("@vunk/core/shared/utils-object"),V=require("@vunk/form/shared/rules"),O=require("../index-DSyxYMB0.js"),$=require("@vunk/form/components/collapse-item"),k={...s.formItemProps,labelPosition:{type:String,default:void 0},formItemSize:{type:String,default:void 0},formItemSlots:{type:Object,default:void 0},elRef:{type:Function,required:!1},inline:{type:Boolean,default:!1},readonly:{type:Boolean,default:void 0},formItemTip:{type:String,default:void 0},formItemTipClass:null,labelTip:{type:String,default:void 0},information:{type:Boolean,default:!1},prop:null,defaultModelValue:null};Reflect.deleteProperty(k,"size");const b=k,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("element-plus"),h=require("@vunk/core/shared/utils-vue"),e=require("vue"),q=require("@vunk/form/shared/element-plus"),u=require("@vunk/form/composables"),B=require("@vunk/form/composables/element-plus"),v=require("@vunk/core/shared/utils-object"),V=require("@vunk/form/shared/rules"),O=require("../index-DSyxYMB0.js"),$=require("@vunk/form/components/collapse-item"),k={...s.formItemProps,labelPosition:{type:String,default:void 0},formItemSize:{type:String,default:void 0},formItemSlots:{type:Object,default:void 0},elRef:{type:Function,required:!1},inline:{type:Boolean,default:!1},readonly:{type:Boolean,default:void 0},formItemTip:{type:String,default:void 0},formItemTipClass:null,labelTip:{type:String,default:void 0},information:{type:Boolean,default:!1},prop:null,defaultModelValue:null,labelTipProps:{type:Object,default:()=>({})}};Reflect.deleteProperty(k,"size");const b=k,j=h.bindPropsFactory(b),E=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:j,props:b},Symbol.toStringTag,{value:"Module"})),N={key:0,class:"vkf-form-item-label__span"},R={key:2,class:"vkf-form-item-label__actions"},_=e.defineComponent({inheritAttrs:!1,__name:"core",props:{labelTip:{type:String,default:""},formItemTip:{type:String,default:""},formItemTipClass:null,elRef:null,label:null,prop:null,labelTipProps:null},setup(t){const i=t,{mittOn:f}=u.useFormMitt(),m=$.useCollapseItemContext();return f("afterValidate",({invalidFields:o})=>{if(!o||i.prop==null||!(i.prop in o))return;const r=m;if(!r)return;const n=r.name;if(r.accordion){if(Object.keys(o)[0]===i.prop){if(r.activeNames.includes(n))return;r.handleItemClick(n)}}else{if(r.activeNames.includes(n))return;r.handleItemClick(n)}}),(o,r)=>(e.openBlock(),e.createBlock(e.unref(s.ElFormItem),e.mergeProps(o.$attrs,{prop:t.prop,class:["vkf-form-item",{"has-label-actions":o.$slots.labelActions}],label:t.label}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"before"),e.renderSlot(o.$slots,"default"),e.renderSlot(o.$slots,"after"),t.formItemTip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["vkf-form-item__tip",t.formItemTipClass])},[e.createElementVNode("span",null,e.toDisplayString(t.formItemTip),1)],2)):e.createCommentVNode("",!0)]),label:e.withCtx(n=>[e.renderSlot(o.$slots,"label",e.normalizeProps(e.guardReactiveProps(n)),()=>[t.label?(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0),t.labelTip?(e.openBlock(),e.createBlock(e.unref(s.ElTooltip),e.mergeProps({key:1,content:t.labelTip},t.labelTipProps),{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElButton),{text:"",class:"vkf-form-item-label-tip-button"},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(O.warning_default))]),_:1})]),_:1})]),_:1},16,["content"])):e.createCommentVNode("",!0),o.$slots.labelActions?(e.openBlock(),e.createElementBlock("div",R,[e.renderSlot(o.$slots,"labelActions")])):e.createCommentVNode("",!0)])]),error:e.withCtx(n=>[e.renderSlot(o.$slots,"error",e.normalizeProps(e.guardReactiveProps(n)))]),_:3},16,["prop","class","label"]))}}),P=e.defineComponent({name:"VkfFormItem",props:b,setup(t,{slots:i}){const f=q.createFormItemBindProps(t,["rules"]),m=u.useComputedReadonly(t),{tr:o}=B.useLocale(),r=e.ref(),n=e.computed(()=>t.labelPosition),p=u.useComputedLabelPosition(r,n),y=()=>t.label||o("vkf.formItem.defaultField","该字段"),T=l=>{if(l.message)return;l.required&&(l.message=o("vkf.formItem.required","{label}不能为空",{label:y()}));const a=V.PATTERN_OPTIONS.find(I=>I.value===l.pattern);a&&(l.message=o("vkf.formItem.pattern","输入 {label} {pattern}",{label:y(),pattern:a.title}))},C=e.computed(()=>{let l=[];return!t.rules&&t.required&&l.push({required:!0}),v.isPlainObject(t.rules)&&(l=[t.rules]),Array.isArray(t.rules)&&(l=t.rules,t.required&&!t.rules.find(a=>a.required)&&l.push({required:!0})),l=l.filter(a=>{if(a&&v.isPlainObject(a))return Object.keys(a).filter(S=>!S.startsWith("data-")).length>0}),l.forEach(a=>{T(a)}),l}),{getDataValue:c,emitSetData:d}=u.useRendererData();setTimeout(()=>{t.defaultModelValue!==void 0&&t.prop&&(c==null?void 0:c(t.prop))===void 0&&(d==null||d({k:t.prop,v:t.defaultModelValue}))});const g=l=>{r.value=(l==null?void 0:l.$el)??l,typeof t.elRef=="function"&&t.elRef(l)};return()=>e.h(_,{...f.value,"label-position":p.value,elRef:g,class:{"is-readonly":m.value,"vkf-form-item--inline":t.inline,"is-empty-label":!t.label,"is-information":t.information},size:t.formItemSize,rules:C.value,formItemTip:t.formItemTip,formItemTipClass:t.formItemTipClass,labelTip:t.labelTip,label:t.label,labelTipProps:t.labelTipProps},{...i,...t.formItemSlots})}}),z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfFormItem=P;exports._VkfFormItemCtx=E;exports.__VkfFormItem=z;exports.default=P;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { formItemProps as
|
|
2
|
-
import { bindPropsFactory as
|
|
3
|
-
import { defineComponent as
|
|
1
|
+
import { formItemProps as z, ElFormItem as F, ElTooltip as A, ElButton as M, ElIcon as N } from "element-plus";
|
|
2
|
+
import { bindPropsFactory as L } from "@vunk/core/shared/utils-vue";
|
|
3
|
+
import { defineComponent as B, openBlock as f, createBlock as g, unref as m, mergeProps as C, withCtx as i, renderSlot as n, normalizeProps as S, guardReactiveProps as h, createElementBlock as y, toDisplayString as O, createCommentVNode as u, createVNode as I, normalizeClass as w, createElementVNode as K, ref as D, computed as R, h as W } from "vue";
|
|
4
4
|
import { createFormItemBindProps as x } from "@vunk/form/shared/element-plus";
|
|
5
5
|
import { useFormMitt as G, useComputedReadonly as H, useComputedLabelPosition as J, useRendererData as Q } from "@vunk/form/composables";
|
|
6
6
|
import { useLocale as U } from "@vunk/form/composables/element-plus";
|
|
7
|
-
import { isPlainObject as
|
|
7
|
+
import { isPlainObject as $ } from "@vunk/core/shared/utils-object";
|
|
8
8
|
import { PATTERN_OPTIONS as X } from "@vunk/form/shared/rules";
|
|
9
9
|
import { w as Y } from "../index-BCZuzyeO.mjs";
|
|
10
10
|
import { useCollapseItemContext as Z } from "@vunk/form/components/collapse-item";
|
|
11
|
-
const
|
|
12
|
-
...
|
|
11
|
+
const E = {
|
|
12
|
+
...z,
|
|
13
13
|
labelPosition: {
|
|
14
14
|
type: String,
|
|
15
15
|
default: void 0
|
|
@@ -48,10 +48,14 @@ const $ = {
|
|
|
48
48
|
default: !1
|
|
49
49
|
},
|
|
50
50
|
prop: null,
|
|
51
|
-
defaultModelValue: null
|
|
51
|
+
defaultModelValue: null,
|
|
52
|
+
labelTipProps: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default: () => ({})
|
|
55
|
+
}
|
|
52
56
|
};
|
|
53
|
-
Reflect.deleteProperty(
|
|
54
|
-
const v =
|
|
57
|
+
Reflect.deleteProperty(E, "size");
|
|
58
|
+
const v = E, ee = L(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
55
59
|
__proto__: null,
|
|
56
60
|
createBindProps: ee,
|
|
57
61
|
props: v
|
|
@@ -61,7 +65,7 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
61
65
|
}, le = {
|
|
62
66
|
key: 2,
|
|
63
67
|
class: "vkf-form-item-label__actions"
|
|
64
|
-
}, oe = /* @__PURE__ */
|
|
68
|
+
}, oe = /* @__PURE__ */ B({
|
|
65
69
|
inheritAttrs: !1,
|
|
66
70
|
__name: "core",
|
|
67
71
|
props: {
|
|
@@ -76,7 +80,8 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
76
80
|
formItemTipClass: null,
|
|
77
81
|
elRef: null,
|
|
78
82
|
label: null,
|
|
79
|
-
prop: null
|
|
83
|
+
prop: null,
|
|
84
|
+
labelTipProps: null
|
|
80
85
|
},
|
|
81
86
|
setup(e) {
|
|
82
87
|
const s = e, { mittOn: c } = G(), d = Z();
|
|
@@ -94,7 +99,7 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
94
99
|
if (o.activeNames.includes(r)) return;
|
|
95
100
|
o.handleItemClick(r);
|
|
96
101
|
}
|
|
97
|
-
}), (l, o) => (f(),
|
|
102
|
+
}), (l, o) => (f(), g(m(F), C(l.$attrs, {
|
|
98
103
|
prop: e.prop,
|
|
99
104
|
class: ["vkf-form-item", {
|
|
100
105
|
"has-label-actions": l.$slots.labelActions
|
|
@@ -109,23 +114,23 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
109
114
|
key: 0,
|
|
110
115
|
class: w(["vkf-form-item__tip", e.formItemTipClass])
|
|
111
116
|
}, [
|
|
112
|
-
K("span", null,
|
|
117
|
+
K("span", null, O(e.formItemTip), 1)
|
|
113
118
|
], 2)) : u("", !0)
|
|
114
119
|
]),
|
|
115
120
|
label: i((r) => [
|
|
116
|
-
n(l.$slots, "label",
|
|
117
|
-
e.label ? (f(), y("span", te,
|
|
118
|
-
e.labelTip ? (f(),
|
|
121
|
+
n(l.$slots, "label", S(h(r)), () => [
|
|
122
|
+
e.label ? (f(), y("span", te, O(r.label), 1)) : u("", !0),
|
|
123
|
+
e.labelTip ? (f(), g(m(A), C({
|
|
119
124
|
key: 1,
|
|
120
125
|
content: e.labelTip
|
|
121
|
-
}, {
|
|
126
|
+
}, e.labelTipProps), {
|
|
122
127
|
default: i(() => [
|
|
123
|
-
I(m(
|
|
128
|
+
I(m(M), {
|
|
124
129
|
text: "",
|
|
125
130
|
class: "vkf-form-item-label-tip-button"
|
|
126
131
|
}, {
|
|
127
132
|
default: i(() => [
|
|
128
|
-
I(m(
|
|
133
|
+
I(m(N), null, {
|
|
129
134
|
default: i(() => [
|
|
130
135
|
I(m(Y))
|
|
131
136
|
]),
|
|
@@ -136,19 +141,19 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
136
141
|
})
|
|
137
142
|
]),
|
|
138
143
|
_: 1
|
|
139
|
-
},
|
|
144
|
+
}, 16, ["content"])) : u("", !0),
|
|
140
145
|
l.$slots.labelActions ? (f(), y("div", le, [
|
|
141
146
|
n(l.$slots, "labelActions")
|
|
142
147
|
])) : u("", !0)
|
|
143
148
|
])
|
|
144
149
|
]),
|
|
145
150
|
error: i((r) => [
|
|
146
|
-
n(l.$slots, "error",
|
|
151
|
+
n(l.$slots, "error", S(h(r)))
|
|
147
152
|
]),
|
|
148
153
|
_: 3
|
|
149
154
|
}, 16, ["prop", "class", "label"]));
|
|
150
155
|
}
|
|
151
|
-
}), pe = /* @__PURE__ */
|
|
156
|
+
}), pe = /* @__PURE__ */ B({
|
|
152
157
|
name: "VkfFormItem",
|
|
153
158
|
props: v,
|
|
154
159
|
setup(e, {
|
|
@@ -156,27 +161,27 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
156
161
|
}) {
|
|
157
162
|
const c = x(e, ["rules"]), d = H(e), {
|
|
158
163
|
tr: l
|
|
159
|
-
} = U(), o = D(), r =
|
|
164
|
+
} = U(), o = D(), r = R(() => e.labelPosition), T = J(o, r), k = () => e.label || l("vkf.formItem.defaultField", "该字段"), V = (t) => {
|
|
160
165
|
if (t.message) return;
|
|
161
166
|
t.required && (t.message = l("vkf.formItem.required", "{label}不能为空", {
|
|
162
|
-
label:
|
|
167
|
+
label: k()
|
|
163
168
|
}));
|
|
164
|
-
const a = X.find((
|
|
169
|
+
const a = X.find((P) => P.value === t.pattern);
|
|
165
170
|
a && (t.message = l("vkf.formItem.pattern", "输入 {label} {pattern}", {
|
|
166
|
-
label:
|
|
171
|
+
label: k(),
|
|
167
172
|
pattern: a.title
|
|
168
173
|
}));
|
|
169
|
-
},
|
|
174
|
+
}, j = R(() => {
|
|
170
175
|
let t = [];
|
|
171
176
|
return !e.rules && e.required && t.push({
|
|
172
177
|
required: !0
|
|
173
|
-
}),
|
|
178
|
+
}), $(e.rules) && (t = [e.rules]), Array.isArray(e.rules) && (t = e.rules, e.required && !e.rules.find((a) => a.required) && t.push({
|
|
174
179
|
required: !0
|
|
175
180
|
})), t = t.filter((a) => {
|
|
176
|
-
if (a &&
|
|
177
|
-
return Object.keys(a).filter((
|
|
181
|
+
if (a && $(a))
|
|
182
|
+
return Object.keys(a).filter((q) => !q.startsWith("data-")).length > 0;
|
|
178
183
|
}), t.forEach((a) => {
|
|
179
|
-
|
|
184
|
+
V(a);
|
|
180
185
|
}), t;
|
|
181
186
|
}), {
|
|
182
187
|
getDataValue: b,
|
|
@@ -188,13 +193,13 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
188
193
|
v: e.defaultModelValue
|
|
189
194
|
}));
|
|
190
195
|
});
|
|
191
|
-
const
|
|
196
|
+
const _ = (t) => {
|
|
192
197
|
o.value = (t == null ? void 0 : t.$el) ?? t, typeof e.elRef == "function" && e.elRef(t);
|
|
193
198
|
};
|
|
194
199
|
return () => W(oe, {
|
|
195
200
|
...c.value,
|
|
196
|
-
"label-position":
|
|
197
|
-
elRef:
|
|
201
|
+
"label-position": T.value,
|
|
202
|
+
elRef: _,
|
|
198
203
|
class: {
|
|
199
204
|
"is-readonly": d.value,
|
|
200
205
|
"vkf-form-item--inline": e.inline,
|
|
@@ -202,11 +207,12 @@ const v = $, ee = N(v), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Objec
|
|
|
202
207
|
"is-information": e.information
|
|
203
208
|
},
|
|
204
209
|
size: e.formItemSize,
|
|
205
|
-
rules:
|
|
210
|
+
rules: j.value,
|
|
206
211
|
formItemTip: e.formItemTip,
|
|
207
212
|
formItemTipClass: e.formItemTipClass,
|
|
208
213
|
labelTip: e.labelTip,
|
|
209
|
-
label: e.label
|
|
214
|
+
label: e.label,
|
|
215
|
+
labelTipProps: e.labelTipProps
|
|
210
216
|
}, {
|
|
211
217
|
...s,
|
|
212
218
|
...e.formItemSlots
|
|
@@ -29,6 +29,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
29
29
|
elRef: null;
|
|
30
30
|
label: null;
|
|
31
31
|
prop: null;
|
|
32
|
+
labelTipProps: null;
|
|
32
33
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
34
|
labelTip: {
|
|
34
35
|
type: StringConstructor;
|
|
@@ -42,6 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
42
43
|
elRef: null;
|
|
43
44
|
label: null;
|
|
44
45
|
prop: null;
|
|
46
|
+
labelTipProps: null;
|
|
45
47
|
}>> & Readonly<{}>, {
|
|
46
48
|
formItemTip: string;
|
|
47
49
|
labelTip: string;
|