@vunk/form 0.0.1-alpha.14 → 0.0.1-alpha.15
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/checkbox/index.d.ts +4 -0
- package/components/checkbox/index.js +107 -0
- package/components/checkbox/src/ctx.d.ts +95 -0
- package/components/checkbox/src/ctx.js +35 -0
- package/components/checkbox/src/index.vue.d.ts +241 -0
- package/components/checkbox/src/types.d.ts +1 -0
- package/components/checkbox/src/types.js +1 -0
- package/components/date-picker/src/ctx.d.ts +1 -1
- package/components/date-picker/src/index.vue.d.ts +13 -13
- package/components/form-item-renderer-template-default/index.js +34 -2
- package/components/input/src/ctx.d.ts +1 -1
- package/components/input/src/index.vue.d.ts +7 -7
- package/components/input-number/src/index.vue.d.ts +12 -12
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.js +107 -0
- package/components/radio/src/ctx.d.ts +66 -0
- package/components/radio/src/ctx.js +35 -0
- package/components/radio/src/index.vue.d.ts +179 -0
- package/components/radio/src/types.d.ts +1 -0
- package/components/radio/src/types.js +1 -0
- package/components/select/src/index.vue.d.ts +26 -26
- package/components/switch/src/index.vue.d.ts +5 -5
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +15 -5
- package/shared/element-plus/index.js +6 -2
- package/shared/types/form/checkbox.d.ts +13 -0
- package/shared/types/form/index.d.ts +2 -0
- package/shared/types/form/index.js +1 -0
- package/shared/types/form/radio.d.ts +8 -0
- package/shared/types/renderer-source/checkbox.d.ts +7 -0
- package/shared/types/renderer-source/index.d.ts +5 -1
- package/shared/types/renderer-source/radio.d.ts +7 -0
|
@@ -7,6 +7,8 @@ import { VkfDatePicker } from '@vunk/form/components/date-picker';
|
|
|
7
7
|
import { getValue } from '@vunk/core/shared/helper';
|
|
8
8
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
9
9
|
import { VkfInputNumber } from '@vunk/form/components/input-number';
|
|
10
|
+
import { VkfRadio } from '@vunk/form/components/radio';
|
|
11
|
+
import { VkfCheckbox } from '@vunk/form/components/checkbox';
|
|
10
12
|
|
|
11
13
|
const props = {
|
|
12
14
|
data: {
|
|
@@ -26,7 +28,9 @@ var script = defineComponent({
|
|
|
26
28
|
VkfSwitch,
|
|
27
29
|
VkfSelect,
|
|
28
30
|
VkfDatePicker,
|
|
29
|
-
VkfInputNumber
|
|
31
|
+
VkfInputNumber,
|
|
32
|
+
VkfRadio,
|
|
33
|
+
VkfCheckbox
|
|
30
34
|
},
|
|
31
35
|
emits,
|
|
32
36
|
props,
|
|
@@ -39,13 +43,41 @@ var script = defineComponent({
|
|
|
39
43
|
});
|
|
40
44
|
|
|
41
45
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
42
|
-
const
|
|
46
|
+
const _component_VkfCheckbox = resolveComponent("VkfCheckbox");
|
|
43
47
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
48
|
+
const _component_VkfRadio = resolveComponent("VkfRadio");
|
|
49
|
+
const _component_VkfInput = resolveComponent("VkfInput");
|
|
44
50
|
const _component_VkfSwitch = resolveComponent("VkfSwitch");
|
|
45
51
|
const _component_VkfSelect = resolveComponent("VkfSelect");
|
|
46
52
|
const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
|
|
47
53
|
const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
|
|
48
54
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
55
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCheckbox" }, {
|
|
56
|
+
default: withCtx(({ data: sourceData, templateIf }) => [
|
|
57
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCheckbox, mergeProps({
|
|
58
|
+
key: 0,
|
|
59
|
+
modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
|
|
60
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
61
|
+
k: sourceData.prop,
|
|
62
|
+
v: $event
|
|
63
|
+
})
|
|
64
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}),
|
|
68
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfRadio" }, {
|
|
69
|
+
default: withCtx(({ data: sourceData, templateIf }) => [
|
|
70
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfRadio, mergeProps({
|
|
71
|
+
key: 0,
|
|
72
|
+
modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
|
|
73
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
74
|
+
k: sourceData.prop,
|
|
75
|
+
v: $event
|
|
76
|
+
})
|
|
77
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}),
|
|
49
81
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
|
|
50
82
|
default: withCtx(({ data: sourceData, templateIf }) => [
|
|
51
83
|
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
|
|
@@ -102,7 +102,7 @@ export declare const props: {
|
|
|
102
102
|
required: boolean;
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"
|
|
105
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", 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<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"inputStyle", 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> : Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>]: T2[k]; }[P]; }>;
|
|
106
106
|
export declare const emits: {
|
|
107
107
|
"update:modelValue": (value: string) => boolean;
|
|
108
108
|
input: (value: string) => boolean;
|
|
@@ -104,15 +104,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
type: string;
|
|
105
105
|
label: string | undefined;
|
|
106
106
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
107
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
id: string | undefined;
|
|
107
110
|
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
108
111
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
109
|
-
id: string | undefined;
|
|
110
112
|
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
111
113
|
prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
112
114
|
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
113
|
-
disabled: boolean;
|
|
114
115
|
placeholder: string | undefined;
|
|
115
|
-
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
116
116
|
resize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "vertical" | "none" | "both" | "horizontal", unknown> | undefined;
|
|
117
117
|
autosize: import("element-plus").InputAutoSize;
|
|
118
118
|
autocomplete: string;
|
|
@@ -269,8 +269,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
269
269
|
required: boolean;
|
|
270
270
|
};
|
|
271
271
|
}>> & {
|
|
272
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
273
272
|
onChange?: ((value: string) => any) | undefined;
|
|
273
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
274
274
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
275
275
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
276
276
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
@@ -290,14 +290,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
290
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
291
291
|
formItemSize: "default" | "small" | "large";
|
|
292
292
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
293
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
294
|
+
disabled: boolean;
|
|
295
|
+
id: string;
|
|
293
296
|
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
294
297
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
295
|
-
id: string;
|
|
296
298
|
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
297
299
|
prefixIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
298
300
|
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
299
|
-
disabled: boolean;
|
|
300
|
-
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
301
301
|
autosize: import("element-plus").InputAutoSize;
|
|
302
302
|
autocomplete: string;
|
|
303
303
|
form: string;
|
|
@@ -81,16 +81,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
81
|
label: string | undefined;
|
|
82
82
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
83
83
|
name: string | undefined;
|
|
84
|
-
|
|
85
|
-
id: string | undefined;
|
|
84
|
+
modelValue: number | undefined;
|
|
86
85
|
disabled: boolean;
|
|
86
|
+
id: string | undefined;
|
|
87
|
+
controls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
89
|
+
min: number;
|
|
90
|
+
max: number;
|
|
87
91
|
placeholder: string | undefined;
|
|
88
|
-
modelValue: number | undefined;
|
|
89
92
|
step: number;
|
|
90
93
|
stepStrictly: boolean;
|
|
91
|
-
max: number;
|
|
92
|
-
min: number;
|
|
93
|
-
controls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
94
94
|
controlsPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "right", unknown>;
|
|
95
95
|
valueOnClear: any;
|
|
96
96
|
precision: number | undefined;
|
|
@@ -172,8 +172,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
172
172
|
required: boolean;
|
|
173
173
|
};
|
|
174
174
|
}>> & {
|
|
175
|
-
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
176
175
|
onChange?: ((prev: number | undefined, cur: number | undefined) => any) | undefined;
|
|
176
|
+
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
177
177
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
178
178
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
179
179
|
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
@@ -184,14 +184,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
184
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
185
185
|
formItemSize: "default" | "small" | "large";
|
|
186
186
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
187
|
-
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
188
|
-
id: string;
|
|
189
187
|
disabled: boolean;
|
|
188
|
+
id: string;
|
|
189
|
+
controls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
190
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
191
|
+
min: number;
|
|
192
|
+
max: number;
|
|
190
193
|
step: number;
|
|
191
194
|
stepStrictly: boolean;
|
|
192
|
-
max: number;
|
|
193
|
-
min: number;
|
|
194
|
-
controls: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
195
195
|
controlsPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "right", unknown>;
|
|
196
196
|
valueOnClear: any;
|
|
197
197
|
}>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
+
import { radioGroupProps, radioGroupEmits, ElRadio, ElRadioGroup, ElRadioButton } from 'element-plus';
|
|
3
|
+
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, Fragment, renderList, resolveDynamicComponent, createTextVNode, toDisplayString } from 'vue';
|
|
4
|
+
import { createRadioGroupBindProps, createRadioGroupOnEmits } from '@vunk/form/shared/element-plus';
|
|
5
|
+
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defProps = Object.defineProperties;
|
|
9
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14
|
+
var __spreadValues = (a, b) => {
|
|
15
|
+
for (var prop in b || (b = {}))
|
|
16
|
+
if (__hasOwnProp.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
if (__getOwnPropSymbols)
|
|
19
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
20
|
+
if (__propIsEnum.call(b, prop))
|
|
21
|
+
__defNormalProp(a, prop, b[prop]);
|
|
22
|
+
}
|
|
23
|
+
return a;
|
|
24
|
+
};
|
|
25
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
|
+
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), radioGroupProps), {
|
|
27
|
+
options: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
type: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "default"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const emits = __spreadValues({}, radioGroupEmits);
|
|
37
|
+
|
|
38
|
+
var script = defineComponent({
|
|
39
|
+
name: "VkfRadio",
|
|
40
|
+
components: {
|
|
41
|
+
VkfFormItem,
|
|
42
|
+
ElRadio,
|
|
43
|
+
ElRadioGroup,
|
|
44
|
+
ElRadioButton
|
|
45
|
+
},
|
|
46
|
+
emits,
|
|
47
|
+
props,
|
|
48
|
+
setup(props2, { emit }) {
|
|
49
|
+
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
50
|
+
const coreBindProps = createRadioGroupBindProps(props2);
|
|
51
|
+
const coreOnEmits = createRadioGroupOnEmits(emit);
|
|
52
|
+
const options = computed(() => {
|
|
53
|
+
return props2.options.filter((item) => item.value !== void 0 && item.value !== null);
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
formItemBindProps,
|
|
57
|
+
coreBindProps,
|
|
58
|
+
coreOnEmits,
|
|
59
|
+
options,
|
|
60
|
+
pickObject
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
+
const _component_ElRadioGroup = resolveComponent("ElRadioGroup");
|
|
67
|
+
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
68
|
+
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
createVNode(_component_ElRadioGroup, mergeProps(_ctx.coreBindProps, toHandlers(_ctx.coreOnEmits)), {
|
|
71
|
+
default: withCtx(() => [
|
|
72
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item) => {
|
|
73
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.type === "button" ? "ElRadioButton" : "ElRadio"), mergeProps({
|
|
74
|
+
key: item.value,
|
|
75
|
+
label: item.value
|
|
76
|
+
}, _ctx.pickObject(item, {
|
|
77
|
+
excludes: ["label", "value"]
|
|
78
|
+
})), {
|
|
79
|
+
default: withCtx(() => {
|
|
80
|
+
var _a;
|
|
81
|
+
return [
|
|
82
|
+
createTextVNode(toDisplayString((_a = item.label) != null ? _a : item.value), 1)
|
|
83
|
+
];
|
|
84
|
+
}),
|
|
85
|
+
_: 2
|
|
86
|
+
}, 1040, ["label"]);
|
|
87
|
+
}), 128))
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 16)
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 16);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
script.render = render;
|
|
97
|
+
script.__file = "radio/src/index.vue";
|
|
98
|
+
|
|
99
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
100
|
+
__proto__: null
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
script.install = (app) => {
|
|
104
|
+
app.component(script.name, script);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export { script as VkfRadio, types as __VkfRadio, script as default };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { RadioProps } from '@vunk/form/shared/types/form';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
options: {
|
|
5
|
+
type: PropType<RadioProps[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: PropType<"default" | "button">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
13
|
+
size: {
|
|
14
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
15
|
+
readonly required: false;
|
|
16
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
17
|
+
__epPropKey: true;
|
|
18
|
+
};
|
|
19
|
+
disabled: BooleanConstructor;
|
|
20
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
21
|
+
fill: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
22
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
23
|
+
textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
24
|
+
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
25
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
26
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
27
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
28
|
+
prop: {
|
|
29
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
30
|
+
readonly required: false;
|
|
31
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
|
+
__epPropKey: true;
|
|
33
|
+
};
|
|
34
|
+
rules: {
|
|
35
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
};
|
|
40
|
+
error: StringConstructor;
|
|
41
|
+
validateStatus: {
|
|
42
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
43
|
+
readonly required: false;
|
|
44
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
|
+
__epPropKey: true;
|
|
46
|
+
};
|
|
47
|
+
for: StringConstructor;
|
|
48
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
49
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
50
|
+
formItemSize: {
|
|
51
|
+
type: PropType<"default" | "small" | "large">;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
formItemSlots: {
|
|
55
|
+
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
elRef: {
|
|
59
|
+
type: PropType<any>;
|
|
60
|
+
required: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const emits: {
|
|
64
|
+
"update:modelValue": (val: string | number | boolean) => boolean;
|
|
65
|
+
change: (val: string | number | boolean) => boolean;
|
|
66
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
2
|
+
import { radioGroupProps, radioGroupEmits } from 'element-plus';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defProps = Object.defineProperties;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), radioGroupProps), {
|
|
24
|
+
options: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
type: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "default"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const emits = __spreadValues({}, radioGroupEmits);
|
|
34
|
+
|
|
35
|
+
export { emits, props };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
options: {
|
|
3
|
+
type: import("vue").PropType<import("../../../shared/types/form").RadioProps[]>;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
type: {
|
|
7
|
+
type: import("vue").PropType<"default" | "button">;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
11
|
+
size: {
|
|
12
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
+
__epPropKey: true;
|
|
16
|
+
};
|
|
17
|
+
disabled: BooleanConstructor;
|
|
18
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
19
|
+
fill: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
20
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
21
|
+
textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
22
|
+
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
23
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
24
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
25
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
26
|
+
prop: {
|
|
27
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
28
|
+
readonly required: false;
|
|
29
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
|
+
__epPropKey: true;
|
|
31
|
+
};
|
|
32
|
+
rules: {
|
|
33
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
34
|
+
readonly required: false;
|
|
35
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
|
+
__epPropKey: true;
|
|
37
|
+
};
|
|
38
|
+
error: StringConstructor;
|
|
39
|
+
validateStatus: {
|
|
40
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
41
|
+
readonly required: false;
|
|
42
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
|
+
__epPropKey: true;
|
|
44
|
+
};
|
|
45
|
+
for: StringConstructor;
|
|
46
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
47
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
48
|
+
formItemSize: {
|
|
49
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
formItemSlots: {
|
|
53
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
elRef: {
|
|
57
|
+
type: import("vue").PropType<any>;
|
|
58
|
+
required: boolean;
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
formItemBindProps: import("vue").ComputedRef<{
|
|
62
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
63
|
+
label: string | undefined;
|
|
64
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
65
|
+
prop: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown> | undefined;
|
|
66
|
+
rules: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown> | undefined;
|
|
67
|
+
error: string | undefined;
|
|
68
|
+
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
69
|
+
for: string | undefined;
|
|
70
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
71
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
72
|
+
formItemSize: "default" | "small" | "large";
|
|
73
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
74
|
+
elRef: any;
|
|
75
|
+
}>;
|
|
76
|
+
coreBindProps: import("vue").ComputedRef<{
|
|
77
|
+
label: string | undefined;
|
|
78
|
+
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
79
|
+
fill: string;
|
|
80
|
+
name: string | undefined;
|
|
81
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
id: string | undefined;
|
|
84
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
85
|
+
textColor: string;
|
|
86
|
+
}>;
|
|
87
|
+
coreOnEmits: {
|
|
88
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
89
|
+
change: (val: string | number | boolean) => void;
|
|
90
|
+
};
|
|
91
|
+
options: import("vue").ComputedRef<import("../../../shared/types/form").RadioProps[]>;
|
|
92
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
|
|
93
|
+
excludes?: EX | undefined;
|
|
94
|
+
includes?: KI[] | undefined;
|
|
95
|
+
} | undefined) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
96
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
97
|
+
"update:modelValue": (val: string | number | boolean) => boolean;
|
|
98
|
+
change: (val: string | number | boolean) => boolean;
|
|
99
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
+
options: {
|
|
101
|
+
type: import("vue").PropType<import("../../../shared/types/form").RadioProps[]>;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
type: {
|
|
105
|
+
type: import("vue").PropType<"default" | "button">;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
109
|
+
size: {
|
|
110
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
111
|
+
readonly required: false;
|
|
112
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
113
|
+
__epPropKey: true;
|
|
114
|
+
};
|
|
115
|
+
disabled: BooleanConstructor;
|
|
116
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
117
|
+
fill: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
118
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
119
|
+
textColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
120
|
+
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
121
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
122
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
123
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
124
|
+
prop: {
|
|
125
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
126
|
+
readonly required: false;
|
|
127
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
128
|
+
__epPropKey: true;
|
|
129
|
+
};
|
|
130
|
+
rules: {
|
|
131
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
132
|
+
readonly required: false;
|
|
133
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
|
+
__epPropKey: true;
|
|
135
|
+
};
|
|
136
|
+
error: StringConstructor;
|
|
137
|
+
validateStatus: {
|
|
138
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
139
|
+
readonly required: false;
|
|
140
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
141
|
+
__epPropKey: true;
|
|
142
|
+
};
|
|
143
|
+
for: StringConstructor;
|
|
144
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
145
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
146
|
+
formItemSize: {
|
|
147
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
formItemSlots: {
|
|
151
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
152
|
+
default: undefined;
|
|
153
|
+
};
|
|
154
|
+
elRef: {
|
|
155
|
+
type: import("vue").PropType<any>;
|
|
156
|
+
required: boolean;
|
|
157
|
+
};
|
|
158
|
+
}>> & {
|
|
159
|
+
onChange?: ((val: string | number | boolean) => any) | undefined;
|
|
160
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
163
|
+
type: "default" | "button";
|
|
164
|
+
label: string;
|
|
165
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
166
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
167
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
168
|
+
formItemSize: "default" | "small" | "large";
|
|
169
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
170
|
+
fill: string;
|
|
171
|
+
name: string;
|
|
172
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
|
|
173
|
+
disabled: boolean;
|
|
174
|
+
id: string;
|
|
175
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
176
|
+
textColor: string;
|
|
177
|
+
options: import("../../../shared/types/form").RadioProps[];
|
|
178
|
+
}>;
|
|
179
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|