@vunk/form 0.0.1-alpha.1 → 0.0.1-alpha.12
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/date-picker/src/ctx.d.ts +23 -23
- package/components/date-picker/src/index.vue.d.ts +90 -76
- package/components/date-picker/src/types.d.ts +7 -7
- package/components/form/src/ctx.d.ts +69 -66
- package/components/form/src/index.vue.d.ts +193 -193
- package/components/form-item/src/ctx.d.ts +7 -7
- package/components/form-item/src/index.vue.d.ts +24 -13
- package/components/form-item-renderer/index.js +15 -1
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +8 -8
- package/components/form-item-renderer/src/types.d.ts +2 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
- package/components/form-item-renderer-template-default/index.js +38 -18
- package/components/form-item-renderer-template-default/src/index.vue.d.ts +6 -6
- package/components/form-item-renderer-template-layout/index.js +22 -13
- package/components/form-item-renderer-template-layout/src/ctx.d.ts +3 -2
- package/components/form-item-renderer-template-layout/src/ctx.js +1 -1
- package/components/form-item-renderer-template-layout/src/index.vue.d.ts +18 -6
- package/components/input/index.js +19 -3
- package/components/input/src/ctx.d.ts +39 -14
- package/components/input/src/ctx.js +12 -0
- package/components/input/src/index.vue.d.ts +118 -55
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/index.js +67 -0
- package/components/input-number/src/ctx.d.ts +71 -0
- package/components/input-number/src/ctx.js +23 -0
- package/components/input-number/src/index.vue.d.ts +198 -0
- package/components/input-number/src/types.d.ts +1 -0
- package/components/input-number/src/types.js +1 -0
- package/components/select/index.js +1 -2
- package/components/select/src/ctx.d.ts +25 -25
- package/components/select/src/index.vue.d.ts +146 -99
- package/components/switch/index.js +29 -12
- package/components/switch/src/ctx.d.ts +28 -9
- package/components/switch/src/ctx.js +15 -2
- package/components/switch/src/index.vue.d.ts +105 -29
- package/index.esm.js +3 -1
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +55 -11
- package/shared/element-plus/index.js +4 -2
- package/shared/element-plus/instances.d.ts +26 -26
- package/shared/types/basic-source/index.d.ts +5 -0
- package/shared/types/basic-source/index.js +1 -0
- package/shared/types/layout-source/index.d.ts +6 -4
- package/shared/types/renderer-source/compoent.d.ts +2 -0
- package/shared/types/renderer-source/date-picker.d.ts +3 -2
- package/shared/types/renderer-source/index.d.ts +3 -1
- package/shared/types/renderer-source/input-number.d.ts +8 -0
- package/shared/types/renderer-source/input.d.ts +3 -2
- package/shared/types/renderer-source/select.d.ts +3 -2
- package/shared/types/renderer-source/switch.d.ts +3 -2
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { InputSlots } from './types';
|
|
3
3
|
export declare const props: {
|
|
4
|
+
maxlength: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
minlength: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
4
12
|
inputSlots: {
|
|
5
13
|
type: PropType<InputSlots>;
|
|
6
|
-
default:
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
rows: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: undefined;
|
|
7
19
|
};
|
|
8
20
|
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
9
21
|
size: {
|
|
10
22
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
11
23
|
readonly required: false;
|
|
12
|
-
readonly validator: (val: unknown) => boolean;
|
|
24
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
25
|
__epPropKey: true;
|
|
14
26
|
};
|
|
15
27
|
disabled: BooleanConstructor;
|
|
16
|
-
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
28
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
17
29
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
18
30
|
resize: {
|
|
19
31
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "vertical" | "none" | "both" | "horizontal", unknown>>;
|
|
20
32
|
readonly required: false;
|
|
21
|
-
readonly validator: (val: unknown) => boolean;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
34
|
__epPropKey: true;
|
|
23
35
|
};
|
|
24
36
|
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
|
|
@@ -26,19 +38,19 @@ export declare const props: {
|
|
|
26
38
|
formatter: {
|
|
27
39
|
readonly type: PropType<Function>;
|
|
28
40
|
readonly required: false;
|
|
29
|
-
readonly validator: (val: unknown) => boolean;
|
|
41
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
42
|
__epPropKey: true;
|
|
31
43
|
};
|
|
32
44
|
parser: {
|
|
33
45
|
readonly type: PropType<Function>;
|
|
34
46
|
readonly required: false;
|
|
35
|
-
readonly validator: (val: unknown) => boolean;
|
|
47
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
48
|
__epPropKey: true;
|
|
37
49
|
};
|
|
38
50
|
placeholder: {
|
|
39
51
|
readonly type: PropType<string>;
|
|
40
52
|
readonly required: false;
|
|
41
|
-
readonly validator: (val: unknown) => boolean;
|
|
53
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
54
|
__epPropKey: true;
|
|
43
55
|
};
|
|
44
56
|
form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -58,20 +70,20 @@ export declare const props: {
|
|
|
58
70
|
prop: {
|
|
59
71
|
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>>;
|
|
60
72
|
readonly required: false;
|
|
61
|
-
readonly validator: (val: unknown) => boolean;
|
|
73
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
62
74
|
__epPropKey: true;
|
|
63
75
|
};
|
|
64
76
|
rules: {
|
|
65
|
-
readonly type: PropType<unknown
|
|
77
|
+
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>>;
|
|
66
78
|
readonly required: false;
|
|
67
|
-
readonly validator: (val: unknown) => boolean;
|
|
79
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
68
80
|
__epPropKey: true;
|
|
69
81
|
};
|
|
70
82
|
error: StringConstructor;
|
|
71
83
|
validateStatus: {
|
|
72
84
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
73
85
|
readonly required: false;
|
|
74
|
-
readonly validator: (val: unknown) => boolean;
|
|
86
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
75
87
|
__epPropKey: true;
|
|
76
88
|
};
|
|
77
89
|
for: StringConstructor;
|
|
@@ -83,14 +95,14 @@ export declare const props: {
|
|
|
83
95
|
};
|
|
84
96
|
formItemSlots: {
|
|
85
97
|
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
86
|
-
default:
|
|
98
|
+
default: undefined;
|
|
87
99
|
};
|
|
88
100
|
elRef: {
|
|
89
101
|
type: PropType<any>;
|
|
90
102
|
required: boolean;
|
|
91
103
|
};
|
|
92
104
|
};
|
|
93
|
-
export declare const createBindProps: <T2 extends
|
|
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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", 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<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"modelValue", 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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", 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<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", 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]; }>;
|
|
94
106
|
export declare const emits: {
|
|
95
107
|
"update:modelValue": (value: string) => boolean;
|
|
96
108
|
input: (value: string) => boolean;
|
|
@@ -105,4 +117,17 @@ export declare const emits: {
|
|
|
105
117
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
106
118
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
107
119
|
};
|
|
108
|
-
export declare const createOnEmits: <T2 extends
|
|
120
|
+
export declare const createOnEmits: <T2 extends AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "clear" | "mouseleave" | "mouseenter" | "compositionstart" | "compositionupdate" | "compositionend")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"keydown", KE> | Exclude<"input", KE> | Exclude<"clear", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> : "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "clear" | "mouseleave" | "mouseenter" | "compositionstart" | "compositionupdate" | "compositionend"]: {
|
|
121
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
122
|
+
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
123
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
124
|
+
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
125
|
+
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
126
|
+
clear: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
127
|
+
mouseleave: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
128
|
+
mouseenter: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
129
|
+
keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
130
|
+
compositionstart: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
131
|
+
compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
132
|
+
compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
133
|
+
}[P]; };
|
|
@@ -22,9 +22,21 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
24
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), inputProps), {
|
|
25
|
+
maxlength: {
|
|
26
|
+
type: Number,
|
|
27
|
+
required: false
|
|
28
|
+
},
|
|
29
|
+
minlength: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: false
|
|
32
|
+
},
|
|
25
33
|
inputSlots: {
|
|
26
34
|
type: Object,
|
|
27
35
|
default: void 0
|
|
36
|
+
},
|
|
37
|
+
rows: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: void 0
|
|
28
40
|
}
|
|
29
41
|
});
|
|
30
42
|
const createBindProps = bindPropsFactory(props);
|
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
maxlength: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
minlength: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
2
10
|
inputSlots: {
|
|
3
11
|
type: import("vue").PropType<import("./types").InputSlots>;
|
|
4
|
-
default:
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
rows: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: undefined;
|
|
5
17
|
};
|
|
6
18
|
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
7
19
|
size: {
|
|
8
20
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
9
21
|
readonly required: false;
|
|
10
|
-
readonly validator: (val: unknown) => boolean;
|
|
22
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
11
23
|
__epPropKey: true;
|
|
12
24
|
};
|
|
13
25
|
disabled: BooleanConstructor;
|
|
14
|
-
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
26
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
15
27
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
16
28
|
resize: {
|
|
17
29
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "vertical" | "none" | "both" | "horizontal", unknown>>;
|
|
18
30
|
readonly required: false;
|
|
19
|
-
readonly validator: (val: unknown) => boolean;
|
|
31
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
32
|
__epPropKey: true;
|
|
21
33
|
};
|
|
22
34
|
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
|
|
@@ -24,19 +36,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
36
|
formatter: {
|
|
25
37
|
readonly type: import("vue").PropType<Function>;
|
|
26
38
|
readonly required: false;
|
|
27
|
-
readonly validator: (val: unknown) => boolean;
|
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
40
|
__epPropKey: true;
|
|
29
41
|
};
|
|
30
42
|
parser: {
|
|
31
43
|
readonly type: import("vue").PropType<Function>;
|
|
32
44
|
readonly required: false;
|
|
33
|
-
readonly validator: (val: unknown) => boolean;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
46
|
__epPropKey: true;
|
|
35
47
|
};
|
|
36
48
|
placeholder: {
|
|
37
49
|
readonly type: import("vue").PropType<string>;
|
|
38
50
|
readonly required: false;
|
|
39
|
-
readonly validator: (val: unknown) => boolean;
|
|
51
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
52
|
__epPropKey: true;
|
|
41
53
|
};
|
|
42
54
|
form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -56,20 +68,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
68
|
prop: {
|
|
57
69
|
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>>;
|
|
58
70
|
readonly required: false;
|
|
59
|
-
readonly validator: (val: unknown) => boolean;
|
|
71
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
60
72
|
__epPropKey: true;
|
|
61
73
|
};
|
|
62
74
|
rules: {
|
|
63
|
-
readonly type: import("vue").PropType<unknown
|
|
75
|
+
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>>;
|
|
64
76
|
readonly required: false;
|
|
65
|
-
readonly validator: (val: unknown) => boolean;
|
|
77
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
78
|
__epPropKey: true;
|
|
67
79
|
};
|
|
68
80
|
error: StringConstructor;
|
|
69
81
|
validateStatus: {
|
|
70
82
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
71
83
|
readonly required: false;
|
|
72
|
-
readonly validator: (val: unknown) => boolean;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
85
|
__epPropKey: true;
|
|
74
86
|
};
|
|
75
87
|
for: StringConstructor;
|
|
@@ -81,28 +93,66 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
93
|
};
|
|
82
94
|
formItemSlots: {
|
|
83
95
|
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
84
|
-
default:
|
|
96
|
+
default: undefined;
|
|
85
97
|
};
|
|
86
98
|
elRef: {
|
|
87
99
|
type: import("vue").PropType<any>;
|
|
88
100
|
required: boolean;
|
|
89
101
|
};
|
|
90
102
|
}, {
|
|
91
|
-
inputBindProps: import("vue").ComputedRef<{
|
|
92
|
-
|
|
103
|
+
inputBindProps: import("vue").ComputedRef<{
|
|
104
|
+
type: string;
|
|
105
|
+
label: string | undefined;
|
|
106
|
+
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
107
|
+
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
108
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
109
|
+
id: string | undefined;
|
|
110
|
+
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
111
|
+
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
|
+
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
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
|
+
resize: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "vertical" | "none" | "both" | "horizontal", unknown> | undefined;
|
|
117
|
+
autosize: import("element-plus").InputAutoSize;
|
|
118
|
+
autocomplete: string;
|
|
119
|
+
formatter: Function | undefined;
|
|
120
|
+
parser: Function | undefined;
|
|
121
|
+
form: string;
|
|
122
|
+
showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
123
|
+
showWordLimit: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
124
|
+
suffixIcon: 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>;
|
|
125
|
+
containerRole: string | undefined;
|
|
126
|
+
inputStyle: import("vue").StyleValue;
|
|
127
|
+
}>;
|
|
128
|
+
formItemBindProps: import("vue").ComputedRef<{
|
|
129
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
130
|
+
label: string | undefined;
|
|
131
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
132
|
+
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;
|
|
133
|
+
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;
|
|
134
|
+
error: string | undefined;
|
|
135
|
+
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
136
|
+
for: string | undefined;
|
|
137
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
138
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
139
|
+
formItemSize: "default" | "small" | "large";
|
|
140
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
141
|
+
elRef: any;
|
|
142
|
+
}>;
|
|
93
143
|
inputOnEmits: {
|
|
94
|
-
"update:modelValue": (
|
|
95
|
-
change: (
|
|
96
|
-
focus: (
|
|
97
|
-
blur: (
|
|
98
|
-
keydown: (
|
|
99
|
-
input: (
|
|
100
|
-
clear: (
|
|
101
|
-
mouseleave: (
|
|
102
|
-
mouseenter: (
|
|
103
|
-
compositionstart: (
|
|
104
|
-
compositionupdate: (
|
|
105
|
-
compositionend: (
|
|
144
|
+
"update:modelValue": (evt: CompositionEvent) => void;
|
|
145
|
+
change: (evt: CompositionEvent) => void;
|
|
146
|
+
focus: (evt: CompositionEvent) => void;
|
|
147
|
+
blur: (evt: CompositionEvent) => void;
|
|
148
|
+
keydown: (evt: CompositionEvent) => void;
|
|
149
|
+
input: (evt: CompositionEvent) => void;
|
|
150
|
+
clear: (evt: CompositionEvent) => void;
|
|
151
|
+
mouseleave: (evt: CompositionEvent) => void;
|
|
152
|
+
mouseenter: (evt: CompositionEvent) => void;
|
|
153
|
+
compositionstart: (evt: CompositionEvent) => void;
|
|
154
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
|
155
|
+
compositionend: (evt: CompositionEvent) => void;
|
|
106
156
|
};
|
|
107
157
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
108
158
|
"update:modelValue": (value: string) => boolean;
|
|
@@ -118,24 +168,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
168
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
119
169
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
120
170
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
171
|
+
maxlength: {
|
|
172
|
+
type: NumberConstructor;
|
|
173
|
+
required: boolean;
|
|
174
|
+
};
|
|
175
|
+
minlength: {
|
|
176
|
+
type: NumberConstructor;
|
|
177
|
+
required: boolean;
|
|
178
|
+
};
|
|
121
179
|
inputSlots: {
|
|
122
180
|
type: import("vue").PropType<import("./types").InputSlots>;
|
|
123
|
-
default:
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
183
|
+
rows: {
|
|
184
|
+
type: NumberConstructor;
|
|
185
|
+
default: undefined;
|
|
124
186
|
};
|
|
125
187
|
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
126
188
|
size: {
|
|
127
189
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
128
190
|
readonly required: false;
|
|
129
|
-
readonly validator: (val: unknown) => boolean;
|
|
191
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
130
192
|
__epPropKey: true;
|
|
131
193
|
};
|
|
132
194
|
disabled: BooleanConstructor;
|
|
133
|
-
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
195
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
134
196
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
135
197
|
resize: {
|
|
136
198
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "vertical" | "none" | "both" | "horizontal", unknown>>;
|
|
137
199
|
readonly required: false;
|
|
138
|
-
readonly validator: (val: unknown) => boolean;
|
|
200
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
139
201
|
__epPropKey: true;
|
|
140
202
|
};
|
|
141
203
|
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
|
|
@@ -143,19 +205,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
205
|
formatter: {
|
|
144
206
|
readonly type: import("vue").PropType<Function>;
|
|
145
207
|
readonly required: false;
|
|
146
|
-
readonly validator: (val: unknown) => boolean;
|
|
208
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
147
209
|
__epPropKey: true;
|
|
148
210
|
};
|
|
149
211
|
parser: {
|
|
150
212
|
readonly type: import("vue").PropType<Function>;
|
|
151
213
|
readonly required: false;
|
|
152
|
-
readonly validator: (val: unknown) => boolean;
|
|
214
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
215
|
__epPropKey: true;
|
|
154
216
|
};
|
|
155
217
|
placeholder: {
|
|
156
218
|
readonly type: import("vue").PropType<string>;
|
|
157
219
|
readonly required: false;
|
|
158
|
-
readonly validator: (val: unknown) => boolean;
|
|
220
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
159
221
|
__epPropKey: true;
|
|
160
222
|
};
|
|
161
223
|
form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -175,20 +237,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
175
237
|
prop: {
|
|
176
238
|
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>>;
|
|
177
239
|
readonly required: false;
|
|
178
|
-
readonly validator: (val: unknown) => boolean;
|
|
240
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
179
241
|
__epPropKey: true;
|
|
180
242
|
};
|
|
181
243
|
rules: {
|
|
182
|
-
readonly type: import("vue").PropType<unknown
|
|
244
|
+
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>>;
|
|
183
245
|
readonly required: false;
|
|
184
|
-
readonly validator: (val: unknown) => boolean;
|
|
246
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
185
247
|
__epPropKey: true;
|
|
186
248
|
};
|
|
187
249
|
error: StringConstructor;
|
|
188
250
|
validateStatus: {
|
|
189
251
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
190
252
|
readonly required: false;
|
|
191
|
-
readonly validator: (val: unknown) => boolean;
|
|
253
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
192
254
|
__epPropKey: true;
|
|
193
255
|
};
|
|
194
256
|
for: StringConstructor;
|
|
@@ -200,25 +262,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
200
262
|
};
|
|
201
263
|
formItemSlots: {
|
|
202
264
|
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
203
|
-
default:
|
|
265
|
+
default: undefined;
|
|
204
266
|
};
|
|
205
267
|
elRef: {
|
|
206
268
|
type: import("vue").PropType<any>;
|
|
207
269
|
required: boolean;
|
|
208
270
|
};
|
|
209
271
|
}>> & {
|
|
210
|
-
"onUpdate:modelValue"?: (value: string) => any;
|
|
211
|
-
onChange?: (value: string) => any;
|
|
212
|
-
onFocus?: (evt: FocusEvent) => any;
|
|
213
|
-
onBlur?: (evt: FocusEvent) => any;
|
|
214
|
-
onKeydown?: (evt: Event | KeyboardEvent) => any;
|
|
215
|
-
onInput?: (value: string) => any;
|
|
216
|
-
onClear?: () => any;
|
|
217
|
-
onMouseleave?: (evt: MouseEvent) => any;
|
|
218
|
-
onMouseenter?: (evt: MouseEvent) => any;
|
|
219
|
-
onCompositionstart?: (evt: CompositionEvent) => any;
|
|
220
|
-
onCompositionupdate?: (evt: CompositionEvent) => any;
|
|
221
|
-
onCompositionend?: (evt: CompositionEvent) => any;
|
|
272
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
273
|
+
onChange?: ((value: string) => any) | undefined;
|
|
274
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
275
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
276
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
277
|
+
onInput?: ((value: string) => any) | undefined;
|
|
278
|
+
onClear?: (() => any) | undefined;
|
|
279
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
280
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
281
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
282
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
283
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
222
284
|
}, {
|
|
223
285
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
224
286
|
type: string;
|
|
@@ -232,18 +294,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
232
294
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
233
295
|
id: string;
|
|
234
296
|
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
235
|
-
prefixIcon: ""
|
|
297
|
+
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>;
|
|
236
298
|
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
237
299
|
disabled: boolean;
|
|
238
|
-
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>;
|
|
239
|
-
autosize:
|
|
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
|
+
autosize: import("element-plus").InputAutoSize;
|
|
240
302
|
autocomplete: string;
|
|
241
303
|
form: string;
|
|
242
304
|
showPassword: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
243
305
|
showWordLimit: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
244
|
-
suffixIcon: ""
|
|
306
|
+
suffixIcon: 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>;
|
|
245
307
|
containerRole: string;
|
|
246
308
|
inputStyle: import("vue").StyleValue;
|
|
247
|
-
inputSlots:
|
|
309
|
+
inputSlots: import("./types").InputSlots;
|
|
310
|
+
rows: number;
|
|
248
311
|
}>;
|
|
249
312
|
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
+
import { inputNumberProps, inputNumberEmits, ElInputNumber } from 'element-plus';
|
|
3
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers } from 'vue';
|
|
4
|
+
import { createInputNumberBindProps, createInputNumberOnEmits } from '@vunk/form/shared/element-plus';
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
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
|
+
const props = __spreadValues(__spreadValues({}, _VkfFormItemCtx.props), inputNumberProps);
|
|
23
|
+
const emits = __spreadValues({}, inputNumberEmits);
|
|
24
|
+
|
|
25
|
+
var script = defineComponent({
|
|
26
|
+
name: "VkfInputNumber",
|
|
27
|
+
components: {
|
|
28
|
+
VkfFormItem,
|
|
29
|
+
ElInputNumber
|
|
30
|
+
},
|
|
31
|
+
emits,
|
|
32
|
+
props,
|
|
33
|
+
setup(props2, { emit }) {
|
|
34
|
+
const iBindProps = createInputNumberBindProps(props2);
|
|
35
|
+
const iOnEmits = createInputNumberOnEmits(emit);
|
|
36
|
+
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
37
|
+
return {
|
|
38
|
+
formItemBindProps,
|
|
39
|
+
iBindProps,
|
|
40
|
+
iOnEmits
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46
|
+
const _component_ElInputNumber = resolveComponent("ElInputNumber");
|
|
47
|
+
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
48
|
+
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createVNode(_component_ElInputNumber, mergeProps(_ctx.iBindProps, toHandlers(_ctx.iOnEmits)), null, 16)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 16);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
script.render = render;
|
|
57
|
+
script.__file = "input-number/src/index.vue";
|
|
58
|
+
|
|
59
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
60
|
+
__proto__: null
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
script.install = (app) => {
|
|
64
|
+
app.component(script.name, script);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { script as VkfInputNumber, types as __VkfInputNumber, script as default };
|