@vunk/form 2.3.3 → 2.4.0
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/index.cjs +1 -9
- package/components/api-tables-select/index.mjs +1 -9
- package/components/api-tables-select/src/ctx.d.ts +4 -7
- package/components/api-tables-select/src/index.vue.d.ts +10 -9
- package/components/button/src/ctx.d.ts +4 -0
- package/components/button/src/index.vue.d.ts +9 -0
- package/components/card-input-collection/index.cjs +5 -10
- package/components/card-input-collection/index.mjs +6 -11
- package/components/card-input-collection/src/ctx.d.ts +4 -7
- package/components/card-input-collection/src/index.vue.d.ts +9 -9
- package/components/cascader/src/ctx.d.ts +5 -1
- package/components/cascader/src/index.vue.d.ts +9 -0
- package/components/checkbox/src/ctx.d.ts +5 -1
- package/components/checkbox/src/index.vue.d.ts +9 -0
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +9 -0
- package/components/date-picker/src/ctx.d.ts +5 -1
- package/components/date-picker/src/index.vue.d.ts +9 -0
- package/components/date-picker-range/src/ctx.d.ts +4 -0
- package/components/date-picker-range/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 +9 -0
- package/components/esri-input-geojson/src/ctx.d.ts +5 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +10 -0
- package/components/form/index.cjs +12 -29
- package/components/form/index.mjs +13 -30
- package/components/form/src/ctx.d.ts +1 -8
- package/components/form/src/index.vue.d.ts +0 -20
- package/components/form-item/index.cjs +6 -1
- package/components/form-item/index.css +3 -0
- package/components/form-item/index.mjs +6 -1
- package/components/form-item/src/ctx.d.ts +5 -1
- package/components/form-item/src/index.vue.d.ts +9 -0
- package/components/form-item-renderer/index.cjs +49 -7
- package/components/form-item-renderer/index.mjs +51 -9
- package/components/form-item-renderer/src/core.vue.d.ts +38 -0
- package/components/form-item-renderer/src/index.vue.d.ts +67 -12
- package/components/information/index.cjs +76 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/index.mjs +70 -0
- package/components/information/src/ctx.d.ts +13 -0
- package/components/information/src/index.vue.d.ts +391 -0
- package/components/information/src/types.d.ts +2 -0
- package/components/information-templates-default/index.cjs +187 -0
- package/components/information-templates-default/index.css +12 -0
- package/components/information-templates-default/index.d.ts +4 -0
- package/components/information-templates-default/index.mjs +181 -0
- package/components/information-templates-default/src/ctx.d.ts +2 -0
- package/components/information-templates-default/src/index.vue.d.ts +52 -0
- package/components/information-templates-default/src/types.d.ts +1 -0
- package/components/input/src/ctx.d.ts +5 -1
- package/components/input/src/index.vue.d.ts +9 -0
- package/components/input-collection/index.cjs +11 -7
- package/components/input-collection/index.mjs +12 -8
- package/components/input-collection/src/ctx.d.ts +8 -4
- package/components/input-collection/src/index.vue.d.ts +16 -7
- package/components/input-link/src/ctx.d.ts +4 -0
- package/components/input-link/src/index.vue.d.ts +9 -0
- package/components/input-number/src/ctx.d.ts +5 -1
- package/components/input-number/src/index.vue.d.ts +9 -0
- package/components/monaco-editor/src/ctx.d.ts +4 -0
- package/components/monaco-editor/src/index.vue.d.ts +9 -0
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +9 -0
- package/components/select/src/ctx.d.ts +5 -1
- package/components/select/src/index.vue.d.ts +9 -0
- package/components/slider/src/ctx.d.ts +4 -0
- package/components/slider/src/index.vue.d.ts +9 -0
- 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 +9 -0
- package/components/tag-information/index.cjs +105 -0
- package/components/tag-information/index.css +6 -0
- package/components/tag-information/index.d.ts +4 -0
- package/components/tag-information/index.mjs +99 -0
- package/components/tag-information/src/ctx.d.ts +26 -0
- package/components/tag-information/src/index.vue.d.ts +894 -0
- package/components/tag-information/src/types.d.ts +1 -0
- package/components/template-instances-provider/index.cjs +8 -13
- package/components/template-instances-provider/index.mjs +8 -13
- package/components/template-instances-provider/src/index.vue.d.ts +4 -14
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/index.vue.d.ts +9 -0
- 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 +9 -0
- package/components/var-datetime-picker/src/ctx.d.ts +4 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +9 -0
- package/components/vditor/src/ctx.d.ts +4 -0
- package/components/vditor/src/index.vue.d.ts +9 -0
- package/composables/index.cjs +31 -5
- package/composables/index.mjs +31 -6
- package/composables/useTemplateInstances.d.ts +6 -1
- package/index.css +23 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/package.json +22 -1
- package/shared/types/index.d.ts +4 -1
|
@@ -71,6 +71,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
71
71
|
type: StringConstructor;
|
|
72
72
|
default: any;
|
|
73
73
|
};
|
|
74
|
+
information: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
74
78
|
label: StringConstructor;
|
|
75
79
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
76
80
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -272,6 +276,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
272
276
|
type: StringConstructor;
|
|
273
277
|
default: any;
|
|
274
278
|
};
|
|
279
|
+
information: {
|
|
280
|
+
type: BooleanConstructor;
|
|
281
|
+
default: boolean;
|
|
282
|
+
};
|
|
275
283
|
label: StringConstructor;
|
|
276
284
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
277
285
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -398,6 +406,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
398
406
|
formItemTip: string;
|
|
399
407
|
formItemTipClass: any;
|
|
400
408
|
labelTip: string;
|
|
409
|
+
information: boolean;
|
|
401
410
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
402
411
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
403
412
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
@@ -59,6 +59,10 @@ export declare const props: {
|
|
|
59
59
|
type: StringConstructor;
|
|
60
60
|
default: any;
|
|
61
61
|
};
|
|
62
|
+
information: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
62
66
|
label: StringConstructor;
|
|
63
67
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
64
68
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -51,6 +51,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
51
|
type: StringConstructor;
|
|
52
52
|
default: any;
|
|
53
53
|
};
|
|
54
|
+
information: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
54
58
|
label: StringConstructor;
|
|
55
59
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
56
60
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -208,6 +212,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
208
212
|
type: StringConstructor;
|
|
209
213
|
default: any;
|
|
210
214
|
};
|
|
215
|
+
information: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
211
219
|
label: StringConstructor;
|
|
212
220
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
213
221
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -244,6 +252,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
244
252
|
formItemTip: string;
|
|
245
253
|
formItemTipClass: any;
|
|
246
254
|
labelTip: string;
|
|
255
|
+
information: boolean;
|
|
247
256
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
248
257
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
249
258
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
@@ -115,6 +115,10 @@ export declare const props: {
|
|
|
115
115
|
type: StringConstructor;
|
|
116
116
|
default: any;
|
|
117
117
|
};
|
|
118
|
+
information: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
118
122
|
label: StringConstructor;
|
|
119
123
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
120
124
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -209,7 +213,7 @@ export declare const props: {
|
|
|
209
213
|
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>;
|
|
210
214
|
autofocus: BooleanConstructor;
|
|
211
215
|
};
|
|
212
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"type", 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<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"multiple", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"rows", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"tabindex", 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<"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<"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" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "multiple" | "placeholder" | "formatter" | "autofocus" | "visibleElements" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>, KE> : Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "multiple" | "placeholder" | "formatter" | "autofocus" | "visibleElements" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>]: { [k in Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "multiple" | "placeholder" | "formatter" | "autofocus" | "visibleElements" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
216
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"type", 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<"information", 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<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"multiple", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"rows", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"tabindex", 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<"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<"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" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "multiple" | "placeholder" | "formatter" | "autofocus" | "visibleElements" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>, KE> : Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "multiple" | "placeholder" | "formatter" | "autofocus" | "visibleElements" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>]: { [k in Extract<"size" | "type" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "id" | "ariaLabel" | "modelValue" | "clearable" | "multiple" | "placeholder" | "formatter" | "autofocus" | "visibleElements" | "rows" | "validateEvent" | "tabindex" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "view" | "viewComponent" | "viewComponentAttrs" | "viewModelActiveFillSymbol" | "editTypes" | "viewModelActiveLineSymbol" | "viewModelActivePointSymbol" | "skipSave" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "flying" | "layerIndex" | "inputSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
213
217
|
export declare const emits: {
|
|
214
218
|
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, {
|
|
215
219
|
[name: string]: any;
|
|
@@ -115,6 +115,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
115
115
|
type: StringConstructor;
|
|
116
116
|
default: any;
|
|
117
117
|
};
|
|
118
|
+
information: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
118
122
|
label: StringConstructor;
|
|
119
123
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
120
124
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -220,6 +224,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
220
224
|
formItemTip: string;
|
|
221
225
|
formItemTipClass: any;
|
|
222
226
|
labelTip: string;
|
|
227
|
+
information: boolean;
|
|
223
228
|
label: string;
|
|
224
229
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
225
230
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
@@ -420,6 +425,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
420
425
|
type: StringConstructor;
|
|
421
426
|
default: any;
|
|
422
427
|
};
|
|
428
|
+
information: {
|
|
429
|
+
type: BooleanConstructor;
|
|
430
|
+
default: boolean;
|
|
431
|
+
};
|
|
423
432
|
label: StringConstructor;
|
|
424
433
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
425
434
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -541,6 +550,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
541
550
|
formItemTip: string;
|
|
542
551
|
formItemTipClass: any;
|
|
543
552
|
labelTip: string;
|
|
553
|
+
information: boolean;
|
|
544
554
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
545
555
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
546
556
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
@@ -13,7 +13,6 @@ var templatesDefault = require('@vunk/form/components/templates-default');
|
|
|
13
13
|
var templatesLayout = require('@vunk/form/components/templates-layout');
|
|
14
14
|
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
15
15
|
var form = require('@vunk/form/shared/form');
|
|
16
|
-
var templateInstancesProvider = require('@vunk/form/components/template-instances-provider');
|
|
17
16
|
var rendererData = require('@vunk/form/components/renderer-data');
|
|
18
17
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
19
18
|
|
|
@@ -58,13 +57,6 @@ const props = {
|
|
|
58
57
|
colSource: {
|
|
59
58
|
type: Object,
|
|
60
59
|
default: () => ({})
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* 是否继承父级模板
|
|
64
|
-
*/
|
|
65
|
-
inheritTemplates: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: false
|
|
68
60
|
}
|
|
69
61
|
};
|
|
70
62
|
const createBindProps = utilsVue.bindPropsFactory(props);
|
|
@@ -121,7 +113,6 @@ const genRowItem = (defaultItem, options = {}) => {
|
|
|
121
113
|
var _sfc_main = vue.defineComponent({
|
|
122
114
|
name: "VkfForm",
|
|
123
115
|
components: {
|
|
124
|
-
VkfTemplateInstancesProvider: templateInstancesProvider.VkfTemplateInstancesProvider,
|
|
125
116
|
VkfRendererData: rendererData.VkfRendererData,
|
|
126
117
|
ElForm: elementPlus.ElForm,
|
|
127
118
|
VkfFormItemRenderer: formItemRenderer.VkfFormItemRenderer,
|
|
@@ -189,7 +180,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
180
|
const _component_VkfTemplatesLayout = vue.resolveComponent("VkfTemplatesLayout");
|
|
190
181
|
const _component_VkfFormItemRenderer = vue.resolveComponent("VkfFormItemRenderer");
|
|
191
182
|
const _component_VkfRendererData = vue.resolveComponent("VkfRendererData");
|
|
192
|
-
const _component_VkfTemplateInstancesProvider = vue.resolveComponent("VkfTemplateInstancesProvider");
|
|
193
183
|
const _component_ElForm = vue.resolveComponent("ElForm");
|
|
194
184
|
return vue.openBlock(), vue.createBlock(_component_ElForm, vue.mergeProps(_ctx.formProps, {
|
|
195
185
|
ref: _ctx.getRef,
|
|
@@ -199,34 +189,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
199
189
|
model: _ctx.model || _ctx.data
|
|
200
190
|
}, vue.toHandlers(_ctx.formEmits), { onSubmit: _ctx.handleSubmit }), {
|
|
201
191
|
default: vue.withCtx(() => [
|
|
202
|
-
vue.createVNode(
|
|
192
|
+
vue.createVNode(_component_VkfRendererData, {
|
|
193
|
+
data: _ctx.data,
|
|
194
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
195
|
+
}, {
|
|
203
196
|
default: vue.withCtx(() => [
|
|
204
|
-
|
|
205
|
-
vue.
|
|
206
|
-
{ key: 0 },
|
|
207
|
-
[
|
|
197
|
+
vue.createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, {
|
|
198
|
+
placeholder: vue.withCtx(() => [
|
|
208
199
|
vue.createVNode(_component_VkfTemplatesDefault),
|
|
209
|
-
vue.createVNode(_component_VkfTemplatesLayout)
|
|
210
|
-
|
|
211
|
-
],
|
|
212
|
-
64
|
|
213
|
-
/* STABLE_FRAGMENT */
|
|
214
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
215
|
-
vue.createVNode(_component_VkfRendererData, {
|
|
216
|
-
data: _ctx.data,
|
|
217
|
-
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
218
|
-
}, {
|
|
200
|
+
vue.createVNode(_component_VkfTemplatesLayout)
|
|
201
|
+
]),
|
|
219
202
|
default: vue.withCtx(() => [
|
|
220
|
-
vue.
|
|
221
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
203
|
+
vue.renderSlot(_ctx.$slots, "rendererTemplate")
|
|
222
204
|
]),
|
|
223
205
|
_: 3
|
|
224
206
|
/* FORWARDED */
|
|
225
|
-
}, 8, ["
|
|
207
|
+
}, 8, ["source"]),
|
|
208
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
226
209
|
]),
|
|
227
210
|
_: 3
|
|
228
211
|
/* FORWARDED */
|
|
229
|
-
}, 8, ["
|
|
212
|
+
}, 8, ["data"])
|
|
230
213
|
]),
|
|
231
214
|
_: 3
|
|
232
215
|
/* FORWARDED */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formProps, formEmits, ElForm } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
3
|
import { NOOP } from '@vunk/core/shared/utils-function';
|
|
4
|
-
import { defineComponent, shallowRef, getCurrentInstance, provide, computed, resolveComponent, openBlock, createBlock, mergeProps, toHandlers, withCtx, createVNode,
|
|
4
|
+
import { defineComponent, shallowRef, getCurrentInstance, provide, computed, resolveComponent, openBlock, createBlock, mergeProps, toHandlers, withCtx, createVNode, renderSlot } from 'vue';
|
|
5
5
|
import { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
|
|
6
6
|
import { createFormBindProps, createFormOnEmits } from '@vunk/form/shared/element-plus';
|
|
7
7
|
import { getValue } from '@vunk/core/shared/helper';
|
|
@@ -9,7 +9,6 @@ import { VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
|
9
9
|
import { VkfTemplatesLayout } from '@vunk/form/components/templates-layout';
|
|
10
10
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
11
11
|
import { genTemplateIfFunc } from '@vunk/form/shared/form';
|
|
12
|
-
import { VkfTemplateInstancesProvider } from '@vunk/form/components/template-instances-provider';
|
|
13
12
|
import { VkfRendererData } from '@vunk/form/components/renderer-data';
|
|
14
13
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
15
14
|
|
|
@@ -54,13 +53,6 @@ const props = {
|
|
|
54
53
|
colSource: {
|
|
55
54
|
type: Object,
|
|
56
55
|
default: () => ({})
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* 是否继承父级模板
|
|
60
|
-
*/
|
|
61
|
-
inheritTemplates: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false
|
|
64
56
|
}
|
|
65
57
|
};
|
|
66
58
|
const createBindProps = bindPropsFactory(props);
|
|
@@ -117,7 +109,6 @@ const genRowItem = (defaultItem, options = {}) => {
|
|
|
117
109
|
var _sfc_main = defineComponent({
|
|
118
110
|
name: "VkfForm",
|
|
119
111
|
components: {
|
|
120
|
-
VkfTemplateInstancesProvider,
|
|
121
112
|
VkfRendererData,
|
|
122
113
|
ElForm,
|
|
123
114
|
VkfFormItemRenderer,
|
|
@@ -185,7 +176,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
185
176
|
const _component_VkfTemplatesLayout = resolveComponent("VkfTemplatesLayout");
|
|
186
177
|
const _component_VkfFormItemRenderer = resolveComponent("VkfFormItemRenderer");
|
|
187
178
|
const _component_VkfRendererData = resolveComponent("VkfRendererData");
|
|
188
|
-
const _component_VkfTemplateInstancesProvider = resolveComponent("VkfTemplateInstancesProvider");
|
|
189
179
|
const _component_ElForm = resolveComponent("ElForm");
|
|
190
180
|
return openBlock(), createBlock(_component_ElForm, mergeProps(_ctx.formProps, {
|
|
191
181
|
ref: _ctx.getRef,
|
|
@@ -195,34 +185,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
195
185
|
model: _ctx.model || _ctx.data
|
|
196
186
|
}, toHandlers(_ctx.formEmits), { onSubmit: _ctx.handleSubmit }), {
|
|
197
187
|
default: withCtx(() => [
|
|
198
|
-
createVNode(
|
|
188
|
+
createVNode(_component_VkfRendererData, {
|
|
189
|
+
data: _ctx.data,
|
|
190
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
191
|
+
}, {
|
|
199
192
|
default: withCtx(() => [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
{ key: 0 },
|
|
203
|
-
[
|
|
193
|
+
createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, {
|
|
194
|
+
placeholder: withCtx(() => [
|
|
204
195
|
createVNode(_component_VkfTemplatesDefault),
|
|
205
|
-
createVNode(_component_VkfTemplatesLayout)
|
|
206
|
-
|
|
207
|
-
],
|
|
208
|
-
64
|
|
209
|
-
/* STABLE_FRAGMENT */
|
|
210
|
-
)) : createCommentVNode("v-if", true),
|
|
211
|
-
createVNode(_component_VkfRendererData, {
|
|
212
|
-
data: _ctx.data,
|
|
213
|
-
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
214
|
-
}, {
|
|
196
|
+
createVNode(_component_VkfTemplatesLayout)
|
|
197
|
+
]),
|
|
215
198
|
default: withCtx(() => [
|
|
216
|
-
|
|
217
|
-
renderSlot(_ctx.$slots, "default")
|
|
199
|
+
renderSlot(_ctx.$slots, "rendererTemplate")
|
|
218
200
|
]),
|
|
219
201
|
_: 3
|
|
220
202
|
/* FORWARDED */
|
|
221
|
-
}, 8, ["
|
|
203
|
+
}, 8, ["source"]),
|
|
204
|
+
renderSlot(_ctx.$slots, "default")
|
|
222
205
|
]),
|
|
223
206
|
_: 3
|
|
224
207
|
/* FORWARDED */
|
|
225
|
-
}, 8, ["
|
|
208
|
+
}, 8, ["data"])
|
|
226
209
|
]),
|
|
227
210
|
_: 3
|
|
228
211
|
/* FORWARDED */
|
|
@@ -43,13 +43,6 @@ export declare const props: {
|
|
|
43
43
|
type: PropType<Partial<ColItem>>;
|
|
44
44
|
default: () => ColItem;
|
|
45
45
|
};
|
|
46
|
-
/**
|
|
47
|
-
* 是否继承父级模板
|
|
48
|
-
*/
|
|
49
|
-
inheritTemplates: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
46
|
model: ObjectConstructor;
|
|
54
47
|
rules: {
|
|
55
48
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
@@ -82,7 +75,7 @@ export declare const props: {
|
|
|
82
75
|
};
|
|
83
76
|
disabled: BooleanConstructor;
|
|
84
77
|
};
|
|
85
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", 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<"disabled", keyof T2> | Extract<"data", keyof T2> | Extract<"layout", keyof T2> | Extract<"
|
|
78
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", 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<"disabled", keyof T2> | Extract<"data", keyof T2> | Extract<"layout", 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<"rowSource", keyof T2> | Extract<"colSource", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "elRef" | "inline" | "readonly" | "labelWidth" | "labelPosition" | "rules" | "inlineMessage" | "showMessage" | "disabled" | "data" | "layout" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "rowSource" | "colSource", keyof T2>, KE> : Extract<"size" | "elRef" | "inline" | "readonly" | "labelWidth" | "labelPosition" | "rules" | "inlineMessage" | "showMessage" | "disabled" | "data" | "layout" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "rowSource" | "colSource", keyof T2>]: { [k in Extract<"size" | "elRef" | "inline" | "readonly" | "labelWidth" | "labelPosition" | "rules" | "inlineMessage" | "showMessage" | "disabled" | "data" | "layout" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "rowSource" | "colSource", keyof T2>]: T2[k]; }[P]; }>;
|
|
86
79
|
export declare const emits: {
|
|
87
80
|
setData: (e: SetDataEvent) => SetDataEvent;
|
|
88
81
|
validate: any;
|
|
@@ -28,10 +28,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
type: import("vue").PropType<Partial<import("./types").ColItem>>;
|
|
29
29
|
default: () => import("./types").ColItem;
|
|
30
30
|
};
|
|
31
|
-
inheritTemplates: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
31
|
model: ObjectConstructor;
|
|
36
32
|
rules: {
|
|
37
33
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
@@ -119,10 +115,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
119
115
|
type: import("vue").PropType<Partial<import("./types").ColItem>>;
|
|
120
116
|
default: () => import("./types").ColItem;
|
|
121
117
|
};
|
|
122
|
-
inheritTemplates: {
|
|
123
|
-
type: BooleanConstructor;
|
|
124
|
-
default: boolean;
|
|
125
|
-
};
|
|
126
118
|
model: ObjectConstructor;
|
|
127
119
|
rules: {
|
|
128
120
|
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
@@ -352,7 +344,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
352
344
|
disabled: boolean;
|
|
353
345
|
data: Record<string, any>;
|
|
354
346
|
layout: boolean;
|
|
355
|
-
inheritTemplates: boolean;
|
|
356
347
|
requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
357
348
|
labelSuffix: string;
|
|
358
349
|
statusIcon: boolean;
|
|
@@ -363,17 +354,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
363
354
|
rowSource: Partial<RowItem>;
|
|
364
355
|
colSource: Partial<import("./types").ColItem>;
|
|
365
356
|
}, {}, {
|
|
366
|
-
VkfTemplateInstancesProvider: {
|
|
367
|
-
new (...args: any[]): any;
|
|
368
|
-
__isFragment?: never;
|
|
369
|
-
__isTeleport?: never;
|
|
370
|
-
__isSuspense?: never;
|
|
371
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
372
|
-
[x: string]: any;
|
|
373
|
-
[x: symbol]: any;
|
|
374
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
375
|
-
install(app: import("vue").App): void;
|
|
376
|
-
};
|
|
377
357
|
VkfRendererData: {
|
|
378
358
|
new (...args: any[]): any;
|
|
379
359
|
__isFragment?: never;
|
|
@@ -42,6 +42,10 @@ const _props = {
|
|
|
42
42
|
labelTip: {
|
|
43
43
|
type: String,
|
|
44
44
|
default: void 0
|
|
45
|
+
},
|
|
46
|
+
information: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
45
49
|
}
|
|
46
50
|
};
|
|
47
51
|
Reflect.deleteProperty(_props, "size");
|
|
@@ -134,7 +138,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
138
|
class: ["vkf-form-item", {
|
|
135
139
|
"is-readonly": _ctx.readonly,
|
|
136
140
|
"vkf-form-item--inline": _ctx.inline,
|
|
137
|
-
"is-empty-label": !_ctx.label
|
|
141
|
+
"is-empty-label": !_ctx.label,
|
|
142
|
+
"is-information": _ctx.information
|
|
138
143
|
}],
|
|
139
144
|
size: _ctx.formItemSize,
|
|
140
145
|
rules: _ctx.rules
|
|
@@ -38,6 +38,10 @@ const _props = {
|
|
|
38
38
|
labelTip: {
|
|
39
39
|
type: String,
|
|
40
40
|
default: void 0
|
|
41
|
+
},
|
|
42
|
+
information: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
41
45
|
}
|
|
42
46
|
};
|
|
43
47
|
Reflect.deleteProperty(_props, "size");
|
|
@@ -130,7 +134,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
134
|
class: ["vkf-form-item", {
|
|
131
135
|
"is-readonly": _ctx.readonly,
|
|
132
136
|
"vkf-form-item--inline": _ctx.inline,
|
|
133
|
-
"is-empty-label": !_ctx.label
|
|
137
|
+
"is-empty-label": !_ctx.label,
|
|
138
|
+
"is-information": _ctx.information
|
|
134
139
|
}],
|
|
135
140
|
size: _ctx.formItemSize,
|
|
136
141
|
rules: _ctx.rules
|
|
@@ -30,6 +30,10 @@ declare const _props: {
|
|
|
30
30
|
type: StringConstructor;
|
|
31
31
|
default: any;
|
|
32
32
|
};
|
|
33
|
+
information: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
33
37
|
label: StringConstructor;
|
|
34
38
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
35
39
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -64,5 +68,5 @@ declare const _props: {
|
|
|
64
68
|
};
|
|
65
69
|
};
|
|
66
70
|
export declare const props: Omit<typeof _props, "size">;
|
|
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]; }>;
|
|
71
|
+
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<"information", 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" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>, KE> : Extract<"required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>]: { [k in Extract<"required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>]: T2[k]; }[P]; }>;
|
|
68
72
|
export {};
|
|
@@ -29,6 +29,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
29
29
|
type: StringConstructor;
|
|
30
30
|
default: any;
|
|
31
31
|
};
|
|
32
|
+
information: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
32
36
|
label: StringConstructor;
|
|
33
37
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
34
38
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -107,6 +111,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
107
111
|
type: StringConstructor;
|
|
108
112
|
default: any;
|
|
109
113
|
};
|
|
114
|
+
information: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
110
118
|
label: StringConstructor;
|
|
111
119
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
112
120
|
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
@@ -148,6 +156,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
148
156
|
formItemTip: string;
|
|
149
157
|
formItemTipClass: any;
|
|
150
158
|
labelTip: string;
|
|
159
|
+
information: boolean;
|
|
151
160
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
152
161
|
labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
|
153
162
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
var templateInstancesProvider = require('@vunk/form/components/template-instances-provider');
|
|
6
7
|
var form = require('@vunk/form/shared/form');
|
|
7
8
|
var composables = require('@vunk/form/composables');
|
|
8
9
|
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
@@ -27,14 +28,12 @@ const VkfFormItemRenderer$1 = vue.defineComponent({
|
|
|
27
28
|
name: "VkfFormItemRenderer",
|
|
28
29
|
props: props,
|
|
29
30
|
setup(props, ctx) {
|
|
30
|
-
const
|
|
31
|
+
const { templateInstances, getTemplateInstance } = composables.useTemplateInstancesContext();
|
|
31
32
|
const {
|
|
32
33
|
emitSetData,
|
|
33
34
|
data: rendererData,
|
|
34
35
|
getDataValue
|
|
35
36
|
} = composables.useRendererData();
|
|
36
|
-
const templateInstances = props.templateInstances ?? parentTemplateInstance ?? vue.shallowReactive({});
|
|
37
|
-
vue.provide("vkTemplateInstances", templateInstances);
|
|
38
37
|
const Renderer = (props2) => {
|
|
39
38
|
return vue.h(VkfFormItemRenderer$1, {
|
|
40
39
|
templateInstances,
|
|
@@ -47,7 +46,7 @@ const VkfFormItemRenderer$1 = vue.defineComponent({
|
|
|
47
46
|
const currentK = [...props.k, ...pK, index];
|
|
48
47
|
const validateTemplateType = () => {
|
|
49
48
|
vue.nextTick(() => {
|
|
50
|
-
if (c.templateType && !
|
|
49
|
+
if (c.templateType && !getTemplateInstance(c.templateType)) {
|
|
51
50
|
console.warn(
|
|
52
51
|
c.templateType,
|
|
53
52
|
"templateType\u4E0D\u5B58\u5728\u5C06\u8DF3\u8FC7"
|
|
@@ -55,7 +54,7 @@ const VkfFormItemRenderer$1 = vue.defineComponent({
|
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
};
|
|
58
|
-
if (c.templateType &&
|
|
57
|
+
if (c.templateType && getTemplateInstance(c.templateType)) {
|
|
59
58
|
const templateIf = form.genTemplateIfFunc(c.templateIf);
|
|
60
59
|
const preTemplateVisible = rendererData ? templateIf(rendererData.value) : true;
|
|
61
60
|
if (!preTemplateVisible) return a;
|
|
@@ -70,7 +69,7 @@ const VkfFormItemRenderer$1 = vue.defineComponent({
|
|
|
70
69
|
v
|
|
71
70
|
})
|
|
72
71
|
});
|
|
73
|
-
const nodes =
|
|
72
|
+
const nodes = getTemplateInstance(c.templateType)?.slots.default?.({
|
|
74
73
|
// for legacy
|
|
75
74
|
data: slotData,
|
|
76
75
|
raw: c,
|
|
@@ -101,7 +100,50 @@ const VkfFormItemRenderer$1 = vue.defineComponent({
|
|
|
101
100
|
}
|
|
102
101
|
});
|
|
103
102
|
|
|
104
|
-
var
|
|
103
|
+
var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(VkfFormItemRenderer$1, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/form-item-renderer/src/core.vue"]]);
|
|
104
|
+
|
|
105
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
106
|
+
__name: "index",
|
|
107
|
+
props: props,
|
|
108
|
+
setup(__props, { expose: __expose }) {
|
|
109
|
+
__expose();
|
|
110
|
+
const props = __props;
|
|
111
|
+
const __returned__ = { props, get VkfTemplateInstancesProvider() {
|
|
112
|
+
return templateInstancesProvider.VkfTemplateInstancesProvider;
|
|
113
|
+
}, Core };
|
|
114
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
115
|
+
return __returned__;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
120
|
+
return vue.openBlock(), vue.createBlock($setup["VkfTemplateInstancesProvider"], null, {
|
|
121
|
+
placeholder: vue.withCtx(() => [
|
|
122
|
+
vue.renderSlot(_ctx.$slots, "placeholder")
|
|
123
|
+
]),
|
|
124
|
+
default: vue.withCtx(() => [
|
|
125
|
+
vue.createVNode(
|
|
126
|
+
$setup["Core"],
|
|
127
|
+
vue.normalizeProps(vue.guardReactiveProps({
|
|
128
|
+
...$setup.props,
|
|
129
|
+
..._ctx.$attrs
|
|
130
|
+
})),
|
|
131
|
+
{
|
|
132
|
+
default: vue.withCtx(() => [
|
|
133
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
134
|
+
]),
|
|
135
|
+
_: 3
|
|
136
|
+
/* FORWARDED */
|
|
137
|
+
},
|
|
138
|
+
16
|
|
139
|
+
/* FULL_PROPS */
|
|
140
|
+
)
|
|
141
|
+
]),
|
|
142
|
+
_: 3
|
|
143
|
+
/* FORWARDED */
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
var VkfFormItemRenderer = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/form-item-renderer/src/index.vue"]]);
|
|
105
147
|
|
|
106
148
|
var types = /*#__PURE__*/Object.freeze({
|
|
107
149
|
__proto__: null
|