@vunk/form 2.14.20 → 2.15.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/src/ctx.d.ts +1 -0
- package/components/api-tables-select/src/index.vue.d.ts +5 -0
- package/components/button/src/ctx.d.ts +1 -0
- package/components/button/src/index.vue.d.ts +3 -0
- package/components/card-input-collection/src/core.vue.d.ts +4 -0
- package/components/card-input-collection/src/ctx.d.ts +1 -0
- package/components/card-input-collection/src/index.vue.d.ts +3 -0
- package/components/cascader/src/ctx.d.ts +2 -1
- package/components/cascader/src/index.vue.d.ts +3 -0
- package/components/checkbox/src/ctx.d.ts +1 -1
- package/components/checkbox/src/index.vue.d.ts +1 -1
- package/components/color-picker/src/ctx.d.ts +1 -0
- package/components/color-picker/src/index.vue.d.ts +3 -0
- package/components/date-picker/src/ctx.d.ts +2 -1
- package/components/date-picker/src/index.vue.d.ts +3 -0
- package/components/date-picker-range/src/ctx.d.ts +1 -0
- package/components/date-picker-range/src/index.vue.d.ts +3 -0
- package/components/dialog/index.cjs +125 -0
- package/components/dialog/index.d.ts +4 -0
- package/components/dialog/index.mjs +119 -0
- package/components/dialog/src/ctx.d.ts +174 -0
- package/components/dialog/src/index.vue.d.ts +1180 -0
- package/components/dialog/src/types.d.ts +1 -0
- package/components/dialog-input-collection/src/ctx.d.ts +1 -0
- package/components/dialog-input-collection/src/index.vue.d.ts +4 -0
- package/components/download-plus/src/ctx.d.ts +1 -0
- package/components/download-plus/src/index.vue.d.ts +3 -0
- package/components/editable-text/src/ctx.d.ts +1 -0
- package/components/editable-text/src/index.vue.d.ts +4 -0
- package/components/esri-input-geojson/src/ctx.d.ts +2 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +4 -0
- package/components/form-item/index.cjs +17 -1
- package/components/form-item/index.mjs +18 -2
- package/components/form-item/src/ctx.d.ts +2 -1
- package/components/form-item/src/index.vue.d.ts +3 -0
- package/components/information/index.cjs +7 -3
- package/components/information/index.mjs +7 -3
- package/components/information/src/ctx.d.ts +4 -1
- package/components/information/src/index.vue.d.ts +6 -2
- package/components/information-collection/src/ctx.d.ts +1 -0
- package/components/information-collection/src/index.vue.d.ts +3 -0
- package/components/input/src/ctx.d.ts +2 -1
- package/components/input/src/index.vue.d.ts +3 -0
- package/components/input-array/index.cjs +0 -3
- package/components/input-array/index.mjs +0 -3
- package/components/input-array/src/form-template.vue.d.ts +1 -1
- package/components/input-array/src/index.vue.d.ts +1 -1
- package/components/input-collection/src/core.vue.d.ts +4 -0
- package/components/input-collection/src/ctx.d.ts +1 -0
- package/components/input-collection/src/index.vue.d.ts +3 -0
- package/components/input-link/src/ctx.d.ts +1 -0
- package/components/input-link/src/index.vue.d.ts +3 -0
- package/components/input-number/src/ctx.d.ts +2 -1
- package/components/input-number/src/index.vue.d.ts +3 -0
- package/components/input-tag/src/ctx.d.ts +2 -1
- package/components/input-tag/src/index.vue.d.ts +3 -0
- package/components/monaco-editor/src/ctx.d.ts +1 -0
- package/components/monaco-editor/src/index.vue.d.ts +3 -0
- package/components/radio/index.cjs +1 -3
- package/components/radio/index.mjs +1 -3
- package/components/radio/src/ctx.d.ts +1 -1
- package/components/radio/src/index.vue.d.ts +3 -3
- package/components/select/index.cjs +0 -2
- package/components/select/index.mjs +0 -2
- package/components/select/src/core.vue.d.ts +3 -3
- package/components/select/src/ctx.d.ts +2 -2
- package/components/select/src/index.vue.d.ts +3 -3
- package/components/slider/index.cjs +1 -2
- package/components/slider/index.mjs +1 -2
- package/components/slider/src/ctx.d.ts +1 -1
- package/components/slider/src/index.vue.d.ts +3 -3
- package/components/switch/index.cjs +1 -4
- package/components/switch/index.mjs +1 -4
- package/components/switch/src/ctx.d.ts +1 -3
- package/components/switch/src/index.vue.d.ts +3 -7
- package/components/switch/src/types.d.ts +0 -1
- package/components/tables-select/src/ctx.d.ts +2 -1
- package/components/tables-select/src/index.vue.d.ts +3 -0
- package/components/upload/src/ctx.d.ts +2 -1
- package/components/upload/src/index.vue.d.ts +3 -0
- package/components/upload-plus/src/ctx.d.ts +1 -0
- package/components/upload-plus/src/index.vue.d.ts +4 -0
- package/components/van-cascader/src/ctx.d.ts +1 -0
- package/components/van-cascader/src/index.vue.d.ts +4 -0
- package/components/var-datetime-picker/src/ctx.d.ts +1 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +3 -0
- package/components/vditor/src/ctx.d.ts +1 -0
- package/components/vditor/src/index.vue.d.ts +3 -0
- package/package.json +6 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -76,6 +76,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
76
76
|
default: boolean;
|
|
77
77
|
};
|
|
78
78
|
prop: any;
|
|
79
|
+
defaultModelValue: any;
|
|
79
80
|
label: StringConstructor;
|
|
80
81
|
labelWidth: {
|
|
81
82
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -198,6 +199,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
198
199
|
default: boolean;
|
|
199
200
|
};
|
|
200
201
|
prop: any;
|
|
202
|
+
defaultModelValue: any;
|
|
201
203
|
label: StringConstructor;
|
|
202
204
|
labelWidth: {
|
|
203
205
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -7694,6 +7696,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7694
7696
|
default: boolean;
|
|
7695
7697
|
};
|
|
7696
7698
|
prop: any;
|
|
7699
|
+
defaultModelValue: any;
|
|
7697
7700
|
label: StringConstructor;
|
|
7698
7701
|
labelWidth: {
|
|
7699
7702
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -7754,6 +7757,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7754
7757
|
labelTip: string;
|
|
7755
7758
|
information: boolean;
|
|
7756
7759
|
prop: any;
|
|
7760
|
+
defaultModelValue: any;
|
|
7757
7761
|
labelWidth: string | number;
|
|
7758
7762
|
labelPosition: "" | "top" | "left" | "right";
|
|
7759
7763
|
inlineMessage: string | boolean;
|
|
@@ -63,6 +63,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
63
63
|
default: boolean;
|
|
64
64
|
};
|
|
65
65
|
prop: any;
|
|
66
|
+
defaultModelValue: any;
|
|
66
67
|
label: StringConstructor;
|
|
67
68
|
labelWidth: {
|
|
68
69
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -256,6 +257,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
256
257
|
default: boolean;
|
|
257
258
|
};
|
|
258
259
|
prop: any;
|
|
260
|
+
defaultModelValue: any;
|
|
259
261
|
label: StringConstructor;
|
|
260
262
|
labelWidth: {
|
|
261
263
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -316,6 +318,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
316
318
|
labelTip: string;
|
|
317
319
|
information: boolean;
|
|
318
320
|
prop: any;
|
|
321
|
+
defaultModelValue: any;
|
|
319
322
|
labelWidth: string | number;
|
|
320
323
|
labelPosition: "" | "top" | "left" | "right";
|
|
321
324
|
inlineMessage: string | boolean;
|
|
@@ -59,6 +59,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
61
|
prop: any;
|
|
62
|
+
defaultModelValue: any;
|
|
62
63
|
label: StringConstructor;
|
|
63
64
|
labelWidth: {
|
|
64
65
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -167,6 +168,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
167
168
|
default: boolean;
|
|
168
169
|
};
|
|
169
170
|
prop: any;
|
|
171
|
+
defaultModelValue: any;
|
|
170
172
|
label: StringConstructor;
|
|
171
173
|
labelWidth: {
|
|
172
174
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -3311,6 +3313,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3311
3313
|
default: boolean;
|
|
3312
3314
|
};
|
|
3313
3315
|
prop: any;
|
|
3316
|
+
defaultModelValue: any;
|
|
3314
3317
|
label: StringConstructor;
|
|
3315
3318
|
labelWidth: {
|
|
3316
3319
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -3372,6 +3375,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3372
3375
|
labelTip: string;
|
|
3373
3376
|
information: boolean;
|
|
3374
3377
|
prop: any;
|
|
3378
|
+
defaultModelValue: any;
|
|
3375
3379
|
labelWidth: string | number;
|
|
3376
3380
|
labelPosition: "" | "top" | "left" | "right";
|
|
3377
3381
|
inlineMessage: string | boolean;
|
|
@@ -127,6 +127,7 @@ export declare const props: {
|
|
|
127
127
|
default: boolean;
|
|
128
128
|
};
|
|
129
129
|
prop: any;
|
|
130
|
+
defaultModelValue: any;
|
|
130
131
|
label: StringConstructor;
|
|
131
132
|
labelWidth: {
|
|
132
133
|
readonly type: PropType<string | number>;
|
|
@@ -308,7 +309,7 @@ export declare const props: {
|
|
|
308
309
|
};
|
|
309
310
|
autofocus: BooleanConstructor;
|
|
310
311
|
};
|
|
311
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"view", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"visibleElements", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> | Exclude<Extract<"dialogEdit", keyof T2>, KE> | Exclude<Extract<"dialogEditFullscreen", keyof T2>, KE> | Exclude<Extract<"dialogEditTitle", keyof T2>, KE> | Exclude<Extract<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"view", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"view", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
|
|
312
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"view", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"visibleElements", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> | Exclude<Extract<"dialogEdit", keyof T2>, KE> | Exclude<Extract<"dialogEditFullscreen", keyof T2>, KE> | Exclude<Extract<"dialogEditTitle", keyof T2>, KE> | Exclude<Extract<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"view", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", 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<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"view", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
|
|
312
313
|
export declare const emits: {
|
|
313
314
|
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, {
|
|
314
315
|
[name: string]: any;
|
|
@@ -127,6 +127,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
127
127
|
default: boolean;
|
|
128
128
|
};
|
|
129
129
|
prop: any;
|
|
130
|
+
defaultModelValue: any;
|
|
130
131
|
label: StringConstructor;
|
|
131
132
|
labelWidth: {
|
|
132
133
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -321,6 +322,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
321
322
|
labelTip: string;
|
|
322
323
|
information: boolean;
|
|
323
324
|
prop: any;
|
|
325
|
+
defaultModelValue: any;
|
|
324
326
|
label: string;
|
|
325
327
|
labelWidth: string | number;
|
|
326
328
|
labelPosition: "" | "top" | "left" | "right";
|
|
@@ -535,6 +537,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
535
537
|
default: boolean;
|
|
536
538
|
};
|
|
537
539
|
prop: any;
|
|
540
|
+
defaultModelValue: any;
|
|
538
541
|
label: StringConstructor;
|
|
539
542
|
labelWidth: {
|
|
540
543
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -745,6 +748,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
745
748
|
labelTip: string;
|
|
746
749
|
information: boolean;
|
|
747
750
|
prop: any;
|
|
751
|
+
defaultModelValue: any;
|
|
748
752
|
labelWidth: string | number;
|
|
749
753
|
labelPosition: "" | "top" | "left" | "right";
|
|
750
754
|
inlineMessage: string | boolean;
|
|
@@ -47,7 +47,8 @@ const _props = {
|
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: false
|
|
49
49
|
},
|
|
50
|
-
prop: null
|
|
50
|
+
prop: null,
|
|
51
|
+
defaultModelValue: null
|
|
51
52
|
};
|
|
52
53
|
Reflect.deleteProperty(_props, "size");
|
|
53
54
|
const props = _props;
|
|
@@ -237,6 +238,21 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
237
238
|
});
|
|
238
239
|
return data;
|
|
239
240
|
});
|
|
241
|
+
const {
|
|
242
|
+
getDataValue,
|
|
243
|
+
emitSetData
|
|
244
|
+
} = composables.useRendererData();
|
|
245
|
+
setTimeout(() => {
|
|
246
|
+
if (props2.defaultModelValue !== void 0 && props2.prop) {
|
|
247
|
+
const value = getDataValue?.(props2.prop);
|
|
248
|
+
if (value === void 0) {
|
|
249
|
+
emitSetData?.({
|
|
250
|
+
k: props2.prop,
|
|
251
|
+
v: props2.defaultModelValue
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
});
|
|
240
256
|
return () => vue.h(FormItemCore, {
|
|
241
257
|
...formItemBindProps.value,
|
|
242
258
|
elRef: props2.elRef,
|
|
@@ -2,7 +2,7 @@ import { formItemProps, ElFormItem, ElTooltip, ElIcon, ElButton, useGlobalConfig
|
|
|
2
2
|
import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
3
|
import { defineComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, normalizeProps, guardReactiveProps, createVNode, computed, h } from 'vue';
|
|
4
4
|
import { createFormItemBindProps } from '@vunk/form/shared/element-plus';
|
|
5
|
-
import { useComputedReadonly } from '@vunk/form/composables';
|
|
5
|
+
import { useComputedReadonly, useRendererData } 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
8
|
import { w as warning_default } from '../index.mjs';
|
|
@@ -43,7 +43,8 @@ const _props = {
|
|
|
43
43
|
type: Boolean,
|
|
44
44
|
default: false
|
|
45
45
|
},
|
|
46
|
-
prop: null
|
|
46
|
+
prop: null,
|
|
47
|
+
defaultModelValue: null
|
|
47
48
|
};
|
|
48
49
|
Reflect.deleteProperty(_props, "size");
|
|
49
50
|
const props = _props;
|
|
@@ -233,6 +234,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
233
234
|
});
|
|
234
235
|
return data;
|
|
235
236
|
});
|
|
237
|
+
const {
|
|
238
|
+
getDataValue,
|
|
239
|
+
emitSetData
|
|
240
|
+
} = useRendererData();
|
|
241
|
+
setTimeout(() => {
|
|
242
|
+
if (props2.defaultModelValue !== void 0 && props2.prop) {
|
|
243
|
+
const value = getDataValue?.(props2.prop);
|
|
244
|
+
if (value === void 0) {
|
|
245
|
+
emitSetData?.({
|
|
246
|
+
k: props2.prop,
|
|
247
|
+
v: props2.defaultModelValue
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
});
|
|
236
252
|
return () => h(FormItemCore, {
|
|
237
253
|
...formItemBindProps.value,
|
|
238
254
|
elRef: props2.elRef,
|
|
@@ -35,6 +35,7 @@ declare const _props: {
|
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
37
|
prop: any;
|
|
38
|
+
defaultModelValue: any;
|
|
38
39
|
label: StringConstructor;
|
|
39
40
|
labelWidth: {
|
|
40
41
|
readonly type: PropType<string | number>;
|
|
@@ -98,5 +99,5 @@ declare const _props: {
|
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
101
|
export declare const props: Omit<typeof _props, "size">;
|
|
101
|
-
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<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> : 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<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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>]: { [k in 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<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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>]: T2[k]; }[P]; }>;
|
|
102
|
+
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<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> : 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<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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>]: { [k in 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<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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>]: T2[k]; }[P]; }>;
|
|
102
103
|
export {};
|
|
@@ -33,6 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
35
|
prop: any;
|
|
36
|
+
defaultModelValue: any;
|
|
36
37
|
label: StringConstructor;
|
|
37
38
|
labelWidth: {
|
|
38
39
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -131,6 +132,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
131
132
|
default: boolean;
|
|
132
133
|
};
|
|
133
134
|
prop: any;
|
|
135
|
+
defaultModelValue: any;
|
|
134
136
|
label: StringConstructor;
|
|
135
137
|
labelWidth: {
|
|
136
138
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -203,6 +205,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
203
205
|
labelTip: string;
|
|
204
206
|
information: boolean;
|
|
205
207
|
prop: any;
|
|
208
|
+
defaultModelValue: any;
|
|
206
209
|
labelWidth: string | number;
|
|
207
210
|
labelPosition: "" | "top" | "left" | "right";
|
|
208
211
|
inlineMessage: string | boolean;
|
|
@@ -18,21 +18,25 @@ const props = {
|
|
|
18
18
|
default: () => []
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
const emits = {
|
|
21
|
+
const emits = {
|
|
22
|
+
setData: (e) => e
|
|
23
|
+
};
|
|
22
24
|
|
|
23
25
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
24
26
|
name: "VkfInformation",
|
|
25
27
|
props,
|
|
26
28
|
emits,
|
|
27
29
|
setup(props2, {
|
|
28
|
-
slots
|
|
30
|
+
slots,
|
|
31
|
+
emit
|
|
29
32
|
}) {
|
|
30
33
|
return () => vue.createVNode(elementPlus.ElForm, {
|
|
31
34
|
"model": props2.data,
|
|
32
35
|
"label-width": "auto"
|
|
33
36
|
}, {
|
|
34
37
|
default: () => [vue.createVNode(informationRenderer.VkfInformationData, {
|
|
35
|
-
"data": props2.data
|
|
38
|
+
"data": props2.data,
|
|
39
|
+
"onSetData": e => emit("setData", e)
|
|
36
40
|
}, {
|
|
37
41
|
default: () => [vue.createVNode(informationRenderer.VkfInformationRenderer, {
|
|
38
42
|
"source": props2.formItems
|
|
@@ -14,21 +14,25 @@ const props = {
|
|
|
14
14
|
default: () => []
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
const emits = {
|
|
17
|
+
const emits = {
|
|
18
|
+
setData: (e) => e
|
|
19
|
+
};
|
|
18
20
|
|
|
19
21
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
22
|
name: "VkfInformation",
|
|
21
23
|
props,
|
|
22
24
|
emits,
|
|
23
25
|
setup(props2, {
|
|
24
|
-
slots
|
|
26
|
+
slots,
|
|
27
|
+
emit
|
|
25
28
|
}) {
|
|
26
29
|
return () => createVNode(ElForm, {
|
|
27
30
|
"model": props2.data,
|
|
28
31
|
"label-width": "auto"
|
|
29
32
|
}, {
|
|
30
33
|
default: () => [createVNode(VkfInformationData, {
|
|
31
|
-
"data": props2.data
|
|
34
|
+
"data": props2.data,
|
|
35
|
+
"onSetData": e => emit("setData", e)
|
|
32
36
|
}, {
|
|
33
37
|
default: () => [createVNode(VkfInformationRenderer, {
|
|
34
38
|
"source": props2.formItems
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SetDataEvent } from '@vunk/core';
|
|
1
2
|
import { NormalObject } from '@vunk/shared';
|
|
2
3
|
import { PropType } from 'vue';
|
|
3
4
|
export declare const props: {
|
|
@@ -10,4 +11,6 @@ export declare const props: {
|
|
|
10
11
|
default: () => any[];
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
|
-
export declare const emits: {
|
|
14
|
+
export declare const emits: {
|
|
15
|
+
setData: (e: SetDataEvent) => SetDataEvent;
|
|
16
|
+
};
|
|
@@ -7,7 +7,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7
7
|
type: import("vue").PropType<any[]>;
|
|
8
8
|
default: () => any[];
|
|
9
9
|
};
|
|
10
|
-
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
13
|
data: {
|
|
12
14
|
type: import("vue").PropType<import("@vunk/shared").NormalObject>;
|
|
13
15
|
default: () => {};
|
|
@@ -16,7 +18,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
18
|
type: import("vue").PropType<any[]>;
|
|
17
19
|
default: () => any[];
|
|
18
20
|
};
|
|
19
|
-
}>> & Readonly<{
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
onSetData?: (e: import("@vunk/core").SetDataEvent) => any;
|
|
23
|
+
}>, {
|
|
20
24
|
data: import("@vunk/shared").NormalObject;
|
|
21
25
|
formItems: any[];
|
|
22
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -87,6 +87,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
87
87
|
default: any;
|
|
88
88
|
};
|
|
89
89
|
prop: any;
|
|
90
|
+
defaultModelValue: any;
|
|
90
91
|
label: StringConstructor;
|
|
91
92
|
labelWidth: {
|
|
92
93
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -223,6 +224,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
223
224
|
default: any;
|
|
224
225
|
};
|
|
225
226
|
prop: any;
|
|
227
|
+
defaultModelValue: any;
|
|
226
228
|
label: StringConstructor;
|
|
227
229
|
labelWidth: {
|
|
228
230
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -281,6 +283,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
281
283
|
labelTip: string;
|
|
282
284
|
information: boolean;
|
|
283
285
|
prop: any;
|
|
286
|
+
defaultModelValue: any;
|
|
284
287
|
labelWidth: string | number;
|
|
285
288
|
labelPosition: "" | "top" | "left" | "right";
|
|
286
289
|
inlineMessage: string | boolean;
|
|
@@ -59,6 +59,7 @@ export declare const props: {
|
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
61
|
prop: any;
|
|
62
|
+
defaultModelValue: any;
|
|
62
63
|
label: StringConstructor;
|
|
63
64
|
labelWidth: {
|
|
64
65
|
readonly type: PropType<string | number>;
|
|
@@ -248,7 +249,7 @@ export declare const props: {
|
|
|
248
249
|
};
|
|
249
250
|
autofocus: BooleanConstructor;
|
|
250
251
|
};
|
|
251
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: T2[k]; }[P]; }>;
|
|
252
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"formatter", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2>]: T2[k]; }[P]; }>;
|
|
252
253
|
export declare const emits: {
|
|
253
254
|
"update:modelValue": (value: string) => boolean;
|
|
254
255
|
input: (value: string) => boolean;
|
|
@@ -57,6 +57,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
59
|
prop: any;
|
|
60
|
+
defaultModelValue: any;
|
|
60
61
|
label: StringConstructor;
|
|
61
62
|
labelWidth: {
|
|
62
63
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -352,6 +353,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
352
353
|
default: boolean;
|
|
353
354
|
};
|
|
354
355
|
prop: any;
|
|
356
|
+
defaultModelValue: any;
|
|
355
357
|
label: StringConstructor;
|
|
356
358
|
labelWidth: {
|
|
357
359
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -565,6 +567,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
565
567
|
labelTip: string;
|
|
566
568
|
information: boolean;
|
|
567
569
|
prop: any;
|
|
570
|
+
defaultModelValue: any;
|
|
568
571
|
labelWidth: string | number;
|
|
569
572
|
labelPosition: "" | "top" | "left" | "right";
|
|
570
573
|
inlineMessage: string | boolean;
|
|
@@ -92,9 +92,6 @@ var _sfc_main$1 = /* @__PURE__ */vue.defineComponent({
|
|
|
92
92
|
}
|
|
93
93
|
emit("update:modelValue", data);
|
|
94
94
|
};
|
|
95
|
-
if (props.modelValue === void 0 && props.defaultModelValue) {
|
|
96
|
-
emit("update:modelValue", props.defaultModelValue);
|
|
97
|
-
}
|
|
98
95
|
const hasMinus = vue.computed(() => {
|
|
99
96
|
if (!props.keepLastRow) {
|
|
100
97
|
return true;
|
|
@@ -88,9 +88,6 @@ var _sfc_main$1 = /* @__PURE__ */defineComponent({
|
|
|
88
88
|
}
|
|
89
89
|
emit("update:modelValue", data);
|
|
90
90
|
};
|
|
91
|
-
if (props.modelValue === void 0 && props.defaultModelValue) {
|
|
92
|
-
emit("update:modelValue", props.defaultModelValue);
|
|
93
|
-
}
|
|
94
91
|
const hasMinus = computed(() => {
|
|
95
92
|
if (!props.keepLastRow) {
|
|
96
93
|
return true;
|
|
@@ -884,13 +884,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
884
884
|
labelTip: string;
|
|
885
885
|
information: boolean;
|
|
886
886
|
prop: any;
|
|
887
|
+
defaultModelValue: any[];
|
|
887
888
|
labelWidth: string | number;
|
|
888
889
|
labelPosition: "" | "top" | "left" | "right";
|
|
889
890
|
inlineMessage: string | boolean;
|
|
890
891
|
showMessage: boolean;
|
|
891
892
|
modelValue: any[];
|
|
892
893
|
labelActions: boolean;
|
|
893
|
-
defaultModelValue: any[];
|
|
894
894
|
splicable: boolean;
|
|
895
895
|
defaultItemValue: any;
|
|
896
896
|
source: Record<string, any>;
|
|
@@ -873,13 +873,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
873
873
|
labelTip: string;
|
|
874
874
|
information: boolean;
|
|
875
875
|
prop: any;
|
|
876
|
+
defaultModelValue: any[];
|
|
876
877
|
labelWidth: string | number;
|
|
877
878
|
labelPosition: "" | "top" | "left" | "right";
|
|
878
879
|
inlineMessage: string | boolean;
|
|
879
880
|
showMessage: boolean;
|
|
880
881
|
modelValue: any[];
|
|
881
882
|
labelActions: boolean;
|
|
882
|
-
defaultModelValue: any[];
|
|
883
883
|
splicable: boolean;
|
|
884
884
|
defaultItemValue: any;
|
|
885
885
|
source: Record<string, any>;
|