@vunk/form 1.4.8 → 1.4.10
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/button/src/ctx.d.ts +9 -3
- package/components/button/src/index.vue.d.ts +22 -7
- package/components/cascader/src/ctx.d.ts +10 -4
- package/components/cascader/src/index.vue.d.ts +22 -7
- package/components/checkbox/src/ctx.d.ts +10 -4
- package/components/checkbox/src/index.vue.d.ts +22 -7
- package/components/color-picker/src/ctx.d.ts +9 -3
- package/components/color-picker/src/index.vue.d.ts +22 -7
- package/components/date-picker/src/ctx.d.ts +10 -4
- package/components/date-picker/src/index.vue.d.ts +22 -7
- package/components/date-picker-range/src/ctx.d.ts +9 -3
- package/components/date-picker-range/src/index.vue.d.ts +22 -7
- package/components/download-plus/src/ctx.d.ts +9 -3
- package/components/download-plus/src/index.vue.d.ts +22 -7
- package/components/esri-input-geojson/src/ctx.d.ts +10 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +26 -8
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +5 -5
- package/components/form-item/index.cjs +80 -18
- package/components/form-item/index.css +11 -10
- package/components/form-item/index.mjs +82 -20
- package/components/form-item/src/ctx.d.ts +10 -4
- package/components/form-item/src/index.vue.d.ts +311 -8
- package/components/geoinput/src/ctx.d.ts +9 -3
- package/components/geoinput/src/index.vue.d.ts +22 -7
- package/components/geoinput-read/src/core.vue.d.ts +26 -8
- package/components/geoinput-read/src/ctx.d.ts +10 -4
- package/components/geoinput-read/src/index.vue.d.ts +48 -15
- package/components/geoinput-update/src/ctx.d.ts +10 -4
- package/components/geoinput-update/src/index.vue.d.ts +26 -8
- package/components/index2.cjs +19 -0
- package/components/index2.mjs +19 -1
- package/components/input/src/ctx.d.ts +10 -4
- package/components/input/src/index.vue.d.ts +22 -7
- package/components/input-collection/src/ctx.d.ts +9 -3
- package/components/input-collection/src/index.vue.d.ts +22 -7
- package/components/input-link/src/ctx.d.ts +9 -3
- package/components/input-link/src/index.vue.d.ts +22 -7
- package/components/input-number/src/ctx.d.ts +10 -4
- package/components/input-number/src/index.vue.d.ts +22 -7
- package/components/monaco-editor/src/ctx.d.ts +9 -3
- package/components/monaco-editor/src/index.vue.d.ts +22 -7
- package/components/radio/src/ctx.d.ts +9 -3
- package/components/radio/src/index.vue.d.ts +22 -7
- package/components/select/index.cjs +38 -5
- package/components/select/index.mjs +40 -7
- package/components/select/src/ctx.d.ts +16 -3
- package/components/select/src/index.vue.d.ts +40 -8
- package/components/slider/src/ctx.d.ts +9 -3
- package/components/slider/src/index.vue.d.ts +22 -7
- package/components/switch/src/ctx.d.ts +9 -3
- package/components/switch/src/index.vue.d.ts +22 -7
- package/components/upload/src/ctx.d.ts +10 -4
- package/components/upload/src/index.vue.d.ts +22 -7
- package/components/upload-plus/src/ctx.d.ts +9 -3
- package/components/upload-plus/src/index.vue.d.ts +22 -7
- package/components/van-cascader/src/ctx.d.ts +9 -3
- package/components/van-cascader/src/index.vue.d.ts +22 -7
- package/components/var-datetime-picker/src/ctx.d.ts +9 -3
- package/components/var-datetime-picker/src/index.vue.d.ts +22 -7
- package/components/vditor/src/ctx.d.ts +9 -3
- package/components/vditor/src/index.vue.d.ts +22 -7
- package/index.css +11 -10
- package/package.json +1 -1
- package/shared/element-plus/index.cjs +0 -1
- package/shared/element-plus/index.mjs +0 -1
|
@@ -42,12 +42,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
42
|
type: BooleanConstructor;
|
|
43
43
|
default: any;
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
type:
|
|
47
|
-
default:
|
|
45
|
+
formItemTip: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
formItemTipClass: any;
|
|
50
|
+
labelTip: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: any;
|
|
48
53
|
};
|
|
49
54
|
label: StringConstructor;
|
|
50
55
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
56
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
51
57
|
prop: {
|
|
52
58
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
53
59
|
readonly required: false;
|
|
@@ -193,12 +199,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
193
199
|
type: BooleanConstructor;
|
|
194
200
|
default: any;
|
|
195
201
|
};
|
|
196
|
-
|
|
197
|
-
type:
|
|
198
|
-
default:
|
|
202
|
+
formItemTip: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: any;
|
|
205
|
+
};
|
|
206
|
+
formItemTipClass: any;
|
|
207
|
+
labelTip: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: any;
|
|
199
210
|
};
|
|
200
211
|
label: StringConstructor;
|
|
201
212
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
213
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
202
214
|
prop: {
|
|
203
215
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
204
216
|
readonly required: false;
|
|
@@ -229,8 +241,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
229
241
|
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
230
242
|
inline: boolean;
|
|
231
243
|
readonly: boolean;
|
|
232
|
-
|
|
244
|
+
formItemTip: string;
|
|
245
|
+
formItemTipClass: any;
|
|
246
|
+
labelTip: string;
|
|
233
247
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
248
|
+
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
234
249
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
235
250
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
236
251
|
url: string;
|
|
@@ -106,12 +106,18 @@ export declare const props: {
|
|
|
106
106
|
type: BooleanConstructor;
|
|
107
107
|
default: boolean;
|
|
108
108
|
};
|
|
109
|
-
|
|
110
|
-
type:
|
|
111
|
-
default:
|
|
109
|
+
formItemTip: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: any;
|
|
112
|
+
};
|
|
113
|
+
formItemTipClass: any;
|
|
114
|
+
labelTip: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: any;
|
|
112
117
|
};
|
|
113
118
|
label: StringConstructor;
|
|
114
119
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
120
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
115
121
|
prop: {
|
|
116
122
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
117
123
|
readonly required: false;
|
|
@@ -203,7 +209,7 @@ export declare const props: {
|
|
|
203
209
|
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
204
210
|
autofocus: BooleanConstructor;
|
|
205
211
|
};
|
|
206
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"type", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"
|
|
212
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"type", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"required", 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<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"prop", 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<"visibleElements", keyof T2> | Extract<"multiple", keyof T2> | Extract<"id", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"prefixIcon", 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<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"rows", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"viewModelActiveFillSymbol", 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> | Extract<"inputSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "type" | "autofocus" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "visibleElements" | "multiple" | "id" | "placeholder" | "clearable" | "validateEvent" | "modelValue" | "tabindex" | "ariaLabel" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "rows" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>, KE> : Extract<"size" | "disabled" | "type" | "autofocus" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "visibleElements" | "multiple" | "id" | "placeholder" | "clearable" | "validateEvent" | "modelValue" | "tabindex" | "ariaLabel" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "rows" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>]: { [k in Extract<"size" | "disabled" | "type" | "autofocus" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "visibleElements" | "multiple" | "id" | "placeholder" | "clearable" | "validateEvent" | "modelValue" | "tabindex" | "ariaLabel" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "rows" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
207
213
|
export declare const emits: {
|
|
208
214
|
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, {
|
|
209
215
|
[name: string]: any;
|
|
@@ -106,12 +106,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
106
106
|
type: BooleanConstructor;
|
|
107
107
|
default: boolean;
|
|
108
108
|
};
|
|
109
|
-
|
|
110
|
-
type:
|
|
111
|
-
default:
|
|
109
|
+
formItemTip: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: any;
|
|
112
|
+
};
|
|
113
|
+
formItemTipClass: any;
|
|
114
|
+
labelTip: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: any;
|
|
112
117
|
};
|
|
113
118
|
label: StringConstructor;
|
|
114
119
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
120
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
115
121
|
prop: {
|
|
116
122
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
117
123
|
readonly required: false;
|
|
@@ -213,9 +219,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
213
219
|
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
214
220
|
elRef: any;
|
|
215
221
|
inline: boolean;
|
|
216
|
-
|
|
222
|
+
formItemTip: string;
|
|
223
|
+
formItemTipClass: any;
|
|
224
|
+
labelTip: string;
|
|
217
225
|
label: string;
|
|
218
226
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
227
|
+
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
219
228
|
prop: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
220
229
|
rules: unknown;
|
|
221
230
|
error: string;
|
|
@@ -402,12 +411,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
402
411
|
type: BooleanConstructor;
|
|
403
412
|
default: boolean;
|
|
404
413
|
};
|
|
405
|
-
|
|
406
|
-
type:
|
|
407
|
-
default:
|
|
414
|
+
formItemTip: {
|
|
415
|
+
type: StringConstructor;
|
|
416
|
+
default: any;
|
|
417
|
+
};
|
|
418
|
+
formItemTipClass: any;
|
|
419
|
+
labelTip: {
|
|
420
|
+
type: StringConstructor;
|
|
421
|
+
default: any;
|
|
408
422
|
};
|
|
409
423
|
label: StringConstructor;
|
|
410
424
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
425
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
411
426
|
prop: {
|
|
412
427
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
413
428
|
readonly required: false;
|
|
@@ -525,8 +540,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
525
540
|
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
526
541
|
inline: boolean;
|
|
527
542
|
readonly: boolean;
|
|
528
|
-
|
|
543
|
+
formItemTip: string;
|
|
544
|
+
formItemTipClass: any;
|
|
545
|
+
labelTip: string;
|
|
529
546
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
547
|
+
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
530
548
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
531
549
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
532
550
|
visibleElements: __esri.SketchVisibleElements;
|
|
@@ -75,7 +75,7 @@ export declare const props: {
|
|
|
75
75
|
};
|
|
76
76
|
disabled: BooleanConstructor;
|
|
77
77
|
};
|
|
78
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"data", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"
|
|
78
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"data", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"model", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2> | Extract<"formItems", keyof T2> | Extract<"layout", keyof T2> | Extract<"rowSource", keyof T2> | Extract<"colSource", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "data" | "elRef" | "inline" | "readonly" | "labelWidth" | "labelPosition" | "rules" | "inlineMessage" | "showMessage" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "layout" | "rowSource" | "colSource", keyof T2>, KE> : Extract<"size" | "disabled" | "data" | "elRef" | "inline" | "readonly" | "labelWidth" | "labelPosition" | "rules" | "inlineMessage" | "showMessage" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "layout" | "rowSource" | "colSource", keyof T2>]: { [k in Extract<"size" | "disabled" | "data" | "elRef" | "inline" | "readonly" | "labelWidth" | "labelPosition" | "rules" | "inlineMessage" | "showMessage" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "layout" | "rowSource" | "colSource", keyof T2>]: T2[k]; }[P]; }>;
|
|
79
79
|
export declare const emits: {
|
|
80
80
|
setData: (e: SetDataEvent) => SetDataEvent;
|
|
81
81
|
validate: any;
|
|
@@ -64,8 +64,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>;
|
|
65
65
|
disabled: boolean;
|
|
66
66
|
inline: boolean;
|
|
67
|
-
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
68
67
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
68
|
+
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
69
69
|
rules: Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>;
|
|
70
70
|
inlineMessage: boolean;
|
|
71
71
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -172,8 +172,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
172
172
|
}> & Omit<{
|
|
173
173
|
readonly disabled: boolean;
|
|
174
174
|
readonly inline: boolean;
|
|
175
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
176
175
|
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
176
|
+
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
177
177
|
readonly inlineMessage: boolean;
|
|
178
178
|
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
179
179
|
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
@@ -187,7 +187,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
187
187
|
readonly model?: Record<string, any>;
|
|
188
188
|
readonly scrollIntoViewOptions?: import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>;
|
|
189
189
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
190
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "inline" | "
|
|
190
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
191
191
|
$attrs: {
|
|
192
192
|
[x: string]: unknown;
|
|
193
193
|
};
|
|
@@ -325,7 +325,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
325
325
|
readonly disabled: BooleanConstructor;
|
|
326
326
|
}>> & {
|
|
327
327
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
328
|
-
}, "disabled" | "inline" | "
|
|
328
|
+
}, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "clearValidate" | "scrollToField"> & import("vue").ShallowUnwrapRef<{
|
|
329
329
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
330
330
|
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
331
331
|
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
@@ -339,8 +339,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
339
339
|
}) => any;
|
|
340
340
|
inline: boolean;
|
|
341
341
|
readonly: boolean;
|
|
342
|
-
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
343
342
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
343
|
+
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
344
344
|
inlineMessage: boolean;
|
|
345
345
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
346
346
|
requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
@@ -9,6 +9,7 @@ var elementPlus$1 = require('@vunk/form/shared/element-plus');
|
|
|
9
9
|
var composables = require('@vunk/form/composables');
|
|
10
10
|
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
11
11
|
var rules = require('@vunk/form/shared/rules');
|
|
12
|
+
var index = require('../index2.cjs');
|
|
12
13
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
13
14
|
|
|
14
15
|
const _props = {
|
|
@@ -33,9 +34,14 @@ const _props = {
|
|
|
33
34
|
type: Boolean,
|
|
34
35
|
default: void 0
|
|
35
36
|
},
|
|
36
|
-
|
|
37
|
+
formItemTip: {
|
|
37
38
|
type: String,
|
|
38
|
-
default:
|
|
39
|
+
default: void 0
|
|
40
|
+
},
|
|
41
|
+
formItemTipClass: null,
|
|
42
|
+
labelTip: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: void 0
|
|
39
45
|
}
|
|
40
46
|
};
|
|
41
47
|
Reflect.deleteProperty(_props, "size");
|
|
@@ -51,7 +57,11 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
51
57
|
var _sfc_main = vue.defineComponent({
|
|
52
58
|
name: "VkfFormItem",
|
|
53
59
|
components: {
|
|
54
|
-
ElFormItem: elementPlus.ElFormItem
|
|
60
|
+
ElFormItem: elementPlus.ElFormItem,
|
|
61
|
+
ElIcon: elementPlus.ElIcon,
|
|
62
|
+
ElTooltip: elementPlus.ElTooltip,
|
|
63
|
+
Warning: index.warning_default,
|
|
64
|
+
ElButton: elementPlus.ElButton
|
|
55
65
|
},
|
|
56
66
|
props,
|
|
57
67
|
setup(props2) {
|
|
@@ -76,24 +86,20 @@ var _sfc_main = vue.defineComponent({
|
|
|
76
86
|
};
|
|
77
87
|
const rules$1 = vue.computed(() => {
|
|
78
88
|
let data = [];
|
|
79
|
-
if (!props2.rules) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
});
|
|
84
|
-
}
|
|
89
|
+
if (!props2.rules && props2.required) {
|
|
90
|
+
data.push({
|
|
91
|
+
required: true
|
|
92
|
+
});
|
|
85
93
|
}
|
|
86
94
|
if (utilsObject.isPlainObject(props2.rules)) {
|
|
87
95
|
data = [props2.rules];
|
|
88
96
|
}
|
|
89
97
|
if (Array.isArray(props2.rules)) {
|
|
90
98
|
data = props2.rules;
|
|
91
|
-
if (props2.required) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
});
|
|
96
|
-
}
|
|
99
|
+
if (props2.required && !props2.rules.find((item) => item.required)) {
|
|
100
|
+
data.push({
|
|
101
|
+
required: true
|
|
102
|
+
});
|
|
97
103
|
}
|
|
98
104
|
}
|
|
99
105
|
data = data.filter((rule) => {
|
|
@@ -118,23 +124,79 @@ var _sfc_main = vue.defineComponent({
|
|
|
118
124
|
});
|
|
119
125
|
|
|
120
126
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
127
|
+
const _component_Warning = vue.resolveComponent("Warning");
|
|
128
|
+
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
129
|
+
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
130
|
+
const _component_ElTooltip = vue.resolveComponent("ElTooltip");
|
|
121
131
|
const _component_ElFormItem = vue.resolveComponent("ElFormItem");
|
|
122
132
|
return vue.openBlock(), vue.createBlock(_component_ElFormItem, vue.mergeProps(_ctx.formItemBindProps, {
|
|
123
133
|
ref: _ctx.elRef,
|
|
124
134
|
class: ["vkf-form-item", {
|
|
125
135
|
"is-readonly": _ctx.readonly,
|
|
126
|
-
"vkf-form-item--inline": _ctx.inline
|
|
127
|
-
"vkf-form-item--label-right": _ctx.labelPosition === "right"
|
|
136
|
+
"vkf-form-item--inline": _ctx.inline
|
|
128
137
|
}],
|
|
129
138
|
size: _ctx.formItemSize,
|
|
130
139
|
rules: _ctx.rules
|
|
131
140
|
}), vue.createSlots({
|
|
132
141
|
default: vue.withCtx(() => [
|
|
133
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
142
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
143
|
+
_ctx.formItemTip ? (vue.openBlock(), vue.createElementBlock(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
key: 0,
|
|
147
|
+
class: vue.normalizeClass(["vkf-form-item__tip", _ctx.formItemTipClass])
|
|
148
|
+
},
|
|
149
|
+
[
|
|
150
|
+
vue.createElementVNode(
|
|
151
|
+
"span",
|
|
152
|
+
null,
|
|
153
|
+
vue.toDisplayString(_ctx.formItemTip),
|
|
154
|
+
1
|
|
155
|
+
/* TEXT */
|
|
156
|
+
)
|
|
157
|
+
],
|
|
158
|
+
2
|
|
159
|
+
/* CLASS */
|
|
160
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
134
161
|
]),
|
|
135
162
|
_: 2
|
|
136
163
|
/* DYNAMIC */
|
|
137
164
|
}, [
|
|
165
|
+
!_ctx.formItemSlots?.label ? {
|
|
166
|
+
name: "label",
|
|
167
|
+
fn: vue.withCtx(() => [
|
|
168
|
+
vue.createElementVNode(
|
|
169
|
+
"span",
|
|
170
|
+
null,
|
|
171
|
+
vue.toDisplayString(_ctx.label),
|
|
172
|
+
1
|
|
173
|
+
/* TEXT */
|
|
174
|
+
),
|
|
175
|
+
_ctx.labelTip ? (vue.openBlock(), vue.createBlock(_component_ElTooltip, {
|
|
176
|
+
key: 0,
|
|
177
|
+
content: _ctx.labelTip
|
|
178
|
+
}, {
|
|
179
|
+
default: vue.withCtx(() => [
|
|
180
|
+
vue.createVNode(_component_ElButton, { type: "text" }, {
|
|
181
|
+
default: vue.withCtx(() => [
|
|
182
|
+
vue.createVNode(_component_ElIcon, { class: "vkf-form-item-label-tip-icon" }, {
|
|
183
|
+
default: vue.withCtx(() => [
|
|
184
|
+
vue.createVNode(_component_Warning)
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
/* STABLE */
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
/* STABLE */
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
/* STABLE */
|
|
196
|
+
}, 8, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
197
|
+
]),
|
|
198
|
+
key: "0"
|
|
199
|
+
} : void 0,
|
|
138
200
|
vue.renderList(_ctx.formItemSlots, (item, key) => {
|
|
139
201
|
return {
|
|
140
202
|
name: key,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
.vkf-form-item
|
|
2
|
-
display: flex;
|
|
3
|
-
}
|
|
4
|
-
.vkf-form-item.vkf-form-item--label-right.el-form-item .el-form-item__label{
|
|
1
|
+
.vkf-form-item--inline{
|
|
5
2
|
display: inline-flex;
|
|
6
3
|
}
|
|
7
|
-
.vkf-form-
|
|
8
|
-
|
|
9
|
-
line-height: 32px;
|
|
10
|
-
margin-bottom: 0;
|
|
4
|
+
.vkf-form-item__tip {
|
|
5
|
+
color: var(--el-text-color-secondary);
|
|
11
6
|
}
|
|
12
|
-
.vkf-form-item
|
|
13
|
-
|
|
7
|
+
.vkf-form-item-label-tip-icon{
|
|
8
|
+
color: var(--el-text-color-secondary);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
margin-left: 5px;
|
|
11
|
+
margin-top: -.18em;
|
|
12
|
+
}
|
|
13
|
+
.vkf-form-item-label-tip-icon:hover{
|
|
14
|
+
color: var(--el-color-primary);
|
|
14
15
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { formItemProps, ElFormItem, useGlobalConfig } from 'element-plus';
|
|
1
|
+
import { formItemProps, ElFormItem, ElIcon, ElTooltip, ElButton, useGlobalConfig } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, renderList, resolveDynamicComponent } from 'vue';
|
|
3
|
+
import { defineComponent, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, createVNode, renderList, resolveDynamicComponent } from 'vue';
|
|
4
4
|
import { createFormItemBindProps } from '@vunk/form/shared/element-plus';
|
|
5
5
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
6
6
|
import { isPlainObject } from '@vunk/core/shared/utils-object';
|
|
7
7
|
import { PATTERN_OPTIONS } from '@vunk/form/shared/rules';
|
|
8
|
+
import { w as warning_default } from '../index2.mjs';
|
|
8
9
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
9
10
|
|
|
10
11
|
const _props = {
|
|
@@ -29,9 +30,14 @@ const _props = {
|
|
|
29
30
|
type: Boolean,
|
|
30
31
|
default: void 0
|
|
31
32
|
},
|
|
32
|
-
|
|
33
|
+
formItemTip: {
|
|
33
34
|
type: String,
|
|
34
|
-
default:
|
|
35
|
+
default: void 0
|
|
36
|
+
},
|
|
37
|
+
formItemTipClass: null,
|
|
38
|
+
labelTip: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: void 0
|
|
35
41
|
}
|
|
36
42
|
};
|
|
37
43
|
Reflect.deleteProperty(_props, "size");
|
|
@@ -47,7 +53,11 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
47
53
|
var _sfc_main = defineComponent({
|
|
48
54
|
name: "VkfFormItem",
|
|
49
55
|
components: {
|
|
50
|
-
ElFormItem
|
|
56
|
+
ElFormItem,
|
|
57
|
+
ElIcon,
|
|
58
|
+
ElTooltip,
|
|
59
|
+
Warning: warning_default,
|
|
60
|
+
ElButton
|
|
51
61
|
},
|
|
52
62
|
props,
|
|
53
63
|
setup(props2) {
|
|
@@ -72,24 +82,20 @@ var _sfc_main = defineComponent({
|
|
|
72
82
|
};
|
|
73
83
|
const rules = computed(() => {
|
|
74
84
|
let data = [];
|
|
75
|
-
if (!props2.rules) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
}
|
|
85
|
+
if (!props2.rules && props2.required) {
|
|
86
|
+
data.push({
|
|
87
|
+
required: true
|
|
88
|
+
});
|
|
81
89
|
}
|
|
82
90
|
if (isPlainObject(props2.rules)) {
|
|
83
91
|
data = [props2.rules];
|
|
84
92
|
}
|
|
85
93
|
if (Array.isArray(props2.rules)) {
|
|
86
94
|
data = props2.rules;
|
|
87
|
-
if (props2.required) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
});
|
|
92
|
-
}
|
|
95
|
+
if (props2.required && !props2.rules.find((item) => item.required)) {
|
|
96
|
+
data.push({
|
|
97
|
+
required: true
|
|
98
|
+
});
|
|
93
99
|
}
|
|
94
100
|
}
|
|
95
101
|
data = data.filter((rule) => {
|
|
@@ -114,23 +120,79 @@ var _sfc_main = defineComponent({
|
|
|
114
120
|
});
|
|
115
121
|
|
|
116
122
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
123
|
+
const _component_Warning = resolveComponent("Warning");
|
|
124
|
+
const _component_ElIcon = resolveComponent("ElIcon");
|
|
125
|
+
const _component_ElButton = resolveComponent("ElButton");
|
|
126
|
+
const _component_ElTooltip = resolveComponent("ElTooltip");
|
|
117
127
|
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
118
128
|
return openBlock(), createBlock(_component_ElFormItem, mergeProps(_ctx.formItemBindProps, {
|
|
119
129
|
ref: _ctx.elRef,
|
|
120
130
|
class: ["vkf-form-item", {
|
|
121
131
|
"is-readonly": _ctx.readonly,
|
|
122
|
-
"vkf-form-item--inline": _ctx.inline
|
|
123
|
-
"vkf-form-item--label-right": _ctx.labelPosition === "right"
|
|
132
|
+
"vkf-form-item--inline": _ctx.inline
|
|
124
133
|
}],
|
|
125
134
|
size: _ctx.formItemSize,
|
|
126
135
|
rules: _ctx.rules
|
|
127
136
|
}), createSlots({
|
|
128
137
|
default: withCtx(() => [
|
|
129
|
-
renderSlot(_ctx.$slots, "default")
|
|
138
|
+
renderSlot(_ctx.$slots, "default"),
|
|
139
|
+
_ctx.formItemTip ? (openBlock(), createElementBlock(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
key: 0,
|
|
143
|
+
class: normalizeClass(["vkf-form-item__tip", _ctx.formItemTipClass])
|
|
144
|
+
},
|
|
145
|
+
[
|
|
146
|
+
createElementVNode(
|
|
147
|
+
"span",
|
|
148
|
+
null,
|
|
149
|
+
toDisplayString(_ctx.formItemTip),
|
|
150
|
+
1
|
|
151
|
+
/* TEXT */
|
|
152
|
+
)
|
|
153
|
+
],
|
|
154
|
+
2
|
|
155
|
+
/* CLASS */
|
|
156
|
+
)) : createCommentVNode("v-if", true)
|
|
130
157
|
]),
|
|
131
158
|
_: 2
|
|
132
159
|
/* DYNAMIC */
|
|
133
160
|
}, [
|
|
161
|
+
!_ctx.formItemSlots?.label ? {
|
|
162
|
+
name: "label",
|
|
163
|
+
fn: withCtx(() => [
|
|
164
|
+
createElementVNode(
|
|
165
|
+
"span",
|
|
166
|
+
null,
|
|
167
|
+
toDisplayString(_ctx.label),
|
|
168
|
+
1
|
|
169
|
+
/* TEXT */
|
|
170
|
+
),
|
|
171
|
+
_ctx.labelTip ? (openBlock(), createBlock(_component_ElTooltip, {
|
|
172
|
+
key: 0,
|
|
173
|
+
content: _ctx.labelTip
|
|
174
|
+
}, {
|
|
175
|
+
default: withCtx(() => [
|
|
176
|
+
createVNode(_component_ElButton, { type: "text" }, {
|
|
177
|
+
default: withCtx(() => [
|
|
178
|
+
createVNode(_component_ElIcon, { class: "vkf-form-item-label-tip-icon" }, {
|
|
179
|
+
default: withCtx(() => [
|
|
180
|
+
createVNode(_component_Warning)
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
/* STABLE */
|
|
184
|
+
})
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
/* STABLE */
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
/* STABLE */
|
|
192
|
+
}, 8, ["content"])) : createCommentVNode("v-if", true)
|
|
193
|
+
]),
|
|
194
|
+
key: "0"
|
|
195
|
+
} : void 0,
|
|
134
196
|
renderList(_ctx.formItemSlots, (item, key) => {
|
|
135
197
|
return {
|
|
136
198
|
name: key,
|
|
@@ -21,12 +21,18 @@ declare const _props: {
|
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: any;
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
type:
|
|
26
|
-
default:
|
|
24
|
+
formItemTip: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
formItemTipClass: any;
|
|
29
|
+
labelTip: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: any;
|
|
27
32
|
};
|
|
28
33
|
label: StringConstructor;
|
|
29
34
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
35
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
30
36
|
prop: {
|
|
31
37
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
32
38
|
readonly required: false;
|
|
@@ -58,5 +64,5 @@ declare const _props: {
|
|
|
58
64
|
};
|
|
59
65
|
};
|
|
60
66
|
export declare const props: Omit<typeof _props, "size">;
|
|
61
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"
|
|
67
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", 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<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"prop", 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>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>, KE> : Extract<"required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>]: { [k in Extract<"required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>]: T2[k]; }[P]; }>;
|
|
62
68
|
export {};
|