@vunk/form 0.0.1-alpha.1 → 0.0.1-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/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/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +8 -8
- package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
- package/components/form-item-renderer-template-default/index.js +19 -4
- package/components/form-item-renderer-template-default/src/index.vue.d.ts +6 -6
- package/components/form-item-renderer-template-layout/index.js +3 -3
- package/components/form-item-renderer-template-layout/src/index.vue.d.ts +4 -4
- package/components/input/index.js +14 -3
- package/components/input/src/ctx.d.ts +35 -14
- package/components/input/src/ctx.js +8 -0
- package/components/input/src/index.vue.d.ts +109 -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/layout-source/index.d.ts +2 -1
- package/shared/types/renderer-source/index.d.ts +3 -1
- package/shared/types/renderer-source/input-number.d.ts +7 -0
|
@@ -7,7 +7,7 @@ export declare const props: Omit<{
|
|
|
7
7
|
};
|
|
8
8
|
formItemSlots: {
|
|
9
9
|
type: PropType<FormItemSlots>;
|
|
10
|
-
default:
|
|
10
|
+
default: undefined;
|
|
11
11
|
};
|
|
12
12
|
elRef: {
|
|
13
13
|
type: PropType<any>;
|
|
@@ -18,21 +18,21 @@ export declare const props: Omit<{
|
|
|
18
18
|
prop: {
|
|
19
19
|
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>>;
|
|
20
20
|
readonly required: false;
|
|
21
|
-
readonly validator: (val: unknown) => boolean;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
22
|
__epPropKey: true;
|
|
23
23
|
};
|
|
24
24
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
25
25
|
rules: {
|
|
26
|
-
readonly type: PropType<unknown
|
|
26
|
+
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>>;
|
|
27
27
|
readonly required: false;
|
|
28
|
-
readonly validator: (val: unknown) => boolean;
|
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
29
|
__epPropKey: true;
|
|
30
30
|
};
|
|
31
31
|
error: StringConstructor;
|
|
32
32
|
validateStatus: {
|
|
33
33
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
34
34
|
readonly required: false;
|
|
35
|
-
readonly validator: (val: unknown) => boolean;
|
|
35
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
36
|
__epPropKey: true;
|
|
37
37
|
};
|
|
38
38
|
for: StringConstructor;
|
|
@@ -41,8 +41,8 @@ export declare const props: Omit<{
|
|
|
41
41
|
size: {
|
|
42
42
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
43
43
|
readonly required: false;
|
|
44
|
-
readonly validator: (val: unknown) => boolean;
|
|
44
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
45
|
__epPropKey: true;
|
|
46
46
|
};
|
|
47
47
|
}, "size">;
|
|
48
|
-
export declare const createBindProps: <T2 extends
|
|
48
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", 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<"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<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> : Extract<"required", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2>]: { [k in Extract<"required", 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<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2>]: T2[k]; }[P]; }>;
|
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
5
5
|
};
|
|
6
6
|
formItemSlots: {
|
|
7
7
|
type: import("vue").PropType<import("./types").FormItemSlots>;
|
|
8
|
-
default:
|
|
8
|
+
default: undefined;
|
|
9
9
|
};
|
|
10
10
|
elRef: {
|
|
11
11
|
type: import("vue").PropType<any>;
|
|
@@ -16,21 +16,21 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
16
16
|
prop: {
|
|
17
17
|
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>>;
|
|
18
18
|
readonly required: false;
|
|
19
|
-
readonly validator: (val: unknown) => boolean;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
20
|
__epPropKey: true;
|
|
21
21
|
};
|
|
22
22
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
23
23
|
rules: {
|
|
24
|
-
readonly type: import("vue").PropType<unknown
|
|
24
|
+
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>>;
|
|
25
25
|
readonly required: false;
|
|
26
|
-
readonly validator: (val: unknown) => boolean;
|
|
26
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
27
|
__epPropKey: true;
|
|
28
28
|
};
|
|
29
29
|
error: StringConstructor;
|
|
30
30
|
validateStatus: {
|
|
31
31
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
32
32
|
readonly required: false;
|
|
33
|
-
readonly validator: (val: unknown) => boolean;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
34
|
__epPropKey: true;
|
|
35
35
|
};
|
|
36
36
|
for: StringConstructor;
|
|
@@ -39,11 +39,22 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
39
39
|
size: {
|
|
40
40
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
41
41
|
readonly required: false;
|
|
42
|
-
readonly validator: (val: unknown) => boolean;
|
|
42
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
43
|
__epPropKey: true;
|
|
44
44
|
};
|
|
45
45
|
}, "size">, {
|
|
46
|
-
formItemBindProps: import("vue").ComputedRef<{
|
|
46
|
+
formItemBindProps: import("vue").ComputedRef<{
|
|
47
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
48
|
+
label: string | undefined;
|
|
49
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
50
|
+
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;
|
|
51
|
+
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;
|
|
52
|
+
error: string | undefined;
|
|
53
|
+
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
54
|
+
for: string | undefined;
|
|
55
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
56
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
57
|
+
}>;
|
|
47
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Omit<{
|
|
48
59
|
formItemSize: {
|
|
49
60
|
type: import("vue").PropType<"default" | "small" | "large">;
|
|
@@ -51,7 +62,7 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
51
62
|
};
|
|
52
63
|
formItemSlots: {
|
|
53
64
|
type: import("vue").PropType<import("./types").FormItemSlots>;
|
|
54
|
-
default:
|
|
65
|
+
default: undefined;
|
|
55
66
|
};
|
|
56
67
|
elRef: {
|
|
57
68
|
type: import("vue").PropType<any>;
|
|
@@ -62,21 +73,21 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
62
73
|
prop: {
|
|
63
74
|
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>>;
|
|
64
75
|
readonly required: false;
|
|
65
|
-
readonly validator: (val: unknown) => boolean;
|
|
76
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
77
|
__epPropKey: true;
|
|
67
78
|
};
|
|
68
79
|
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
69
80
|
rules: {
|
|
70
|
-
readonly type: import("vue").PropType<unknown
|
|
81
|
+
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>>;
|
|
71
82
|
readonly required: false;
|
|
72
|
-
readonly validator: (val: unknown) => boolean;
|
|
83
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
84
|
__epPropKey: true;
|
|
74
85
|
};
|
|
75
86
|
error: StringConstructor;
|
|
76
87
|
validateStatus: {
|
|
77
88
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
78
89
|
readonly required: false;
|
|
79
|
-
readonly validator: (val: unknown) => boolean;
|
|
90
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
91
|
__epPropKey: true;
|
|
81
92
|
};
|
|
82
93
|
for: StringConstructor;
|
|
@@ -85,7 +96,7 @@ declare const _default: import("vue").DefineComponent<Omit<{
|
|
|
85
96
|
size: {
|
|
86
97
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
87
98
|
readonly required: false;
|
|
88
|
-
readonly validator: (val: unknown) => boolean;
|
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
89
100
|
__epPropKey: true;
|
|
90
101
|
};
|
|
91
102
|
}, "size">>>, {
|
|
@@ -3,14 +3,14 @@ import { RendererTreeData } from './types';
|
|
|
3
3
|
export declare const props: {
|
|
4
4
|
source: {
|
|
5
5
|
type: PropType<RendererTreeData[]>;
|
|
6
|
-
default: () =>
|
|
6
|
+
default: () => never[];
|
|
7
7
|
};
|
|
8
8
|
templateInstances: {
|
|
9
9
|
type: PropType<Record<string, ComponentInternalInstance>>;
|
|
10
|
-
default:
|
|
10
|
+
default: undefined;
|
|
11
11
|
};
|
|
12
12
|
k: {
|
|
13
13
|
type: PropType<(string | number)[]>;
|
|
14
|
-
default: () =>
|
|
14
|
+
default: () => never[];
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -3,32 +3,32 @@ import { RendererTreeData } from './types';
|
|
|
3
3
|
declare const VkfFormItemRenderer: import("vue").DefineComponent<{
|
|
4
4
|
source: {
|
|
5
5
|
type: import("vue").PropType<RendererTreeData[]>;
|
|
6
|
-
default: () =>
|
|
6
|
+
default: () => never[];
|
|
7
7
|
};
|
|
8
8
|
templateInstances: {
|
|
9
9
|
type: import("vue").PropType<Record<string, ComponentInternalInstance>>;
|
|
10
|
-
default:
|
|
10
|
+
default: undefined;
|
|
11
11
|
};
|
|
12
12
|
k: {
|
|
13
13
|
type: import("vue").PropType<(string | number)[]>;
|
|
14
|
-
default: () =>
|
|
14
|
+
default: () => never[];
|
|
15
15
|
};
|
|
16
16
|
}, () => (VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
17
|
[key: string]: any;
|
|
18
|
-
}>[] | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
}>[] | (VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
19
|
[key: string]: any;
|
|
20
|
-
}>[][])[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
}> | undefined)[][] | undefined)[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
source: {
|
|
22
22
|
type: import("vue").PropType<RendererTreeData[]>;
|
|
23
|
-
default: () =>
|
|
23
|
+
default: () => never[];
|
|
24
24
|
};
|
|
25
25
|
templateInstances: {
|
|
26
26
|
type: import("vue").PropType<Record<string, ComponentInternalInstance>>;
|
|
27
|
-
default:
|
|
27
|
+
default: undefined;
|
|
28
28
|
};
|
|
29
29
|
k: {
|
|
30
30
|
type: import("vue").PropType<(string | number)[]>;
|
|
31
|
-
default: () =>
|
|
31
|
+
default: () => never[];
|
|
32
32
|
};
|
|
33
33
|
}>>, {
|
|
34
34
|
templateInstances: Record<string, ComponentInternalInstance>;
|
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
required: boolean;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
-
}, () =>
|
|
7
|
+
}, () => null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
8
|
type: {
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
required: boolean;
|
|
@@ -5,7 +5,8 @@ import { VkfSwitch } from '@vunk/form/components/switch';
|
|
|
5
5
|
import { VkfSelect } from '@vunk/form/components/select';
|
|
6
6
|
import { VkfDatePicker } from '@vunk/form/components/date-picker';
|
|
7
7
|
import { getValue } from '@vunk/core/shared/helper';
|
|
8
|
-
import {
|
|
8
|
+
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
9
|
+
import { VkfInputNumber } from '@vunk/form/components/input-number';
|
|
9
10
|
|
|
10
11
|
const props = {
|
|
11
12
|
data: {
|
|
@@ -24,13 +25,14 @@ var script = defineComponent({
|
|
|
24
25
|
VkfInput,
|
|
25
26
|
VkfSwitch,
|
|
26
27
|
VkfSelect,
|
|
27
|
-
VkfDatePicker
|
|
28
|
+
VkfDatePicker,
|
|
29
|
+
VkfInputNumber
|
|
28
30
|
},
|
|
29
31
|
emits,
|
|
30
32
|
props,
|
|
31
33
|
setup() {
|
|
32
34
|
return {
|
|
33
|
-
|
|
35
|
+
pickObject,
|
|
34
36
|
getValue
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -42,6 +44,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42
44
|
const _component_VkfSwitch = resolveComponent("VkfSwitch");
|
|
43
45
|
const _component_VkfSelect = resolveComponent("VkfSelect");
|
|
44
46
|
const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
|
|
47
|
+
const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
|
|
45
48
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
46
49
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
|
|
47
50
|
default: withCtx(({ data: sourceData }) => [
|
|
@@ -91,9 +94,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
91
94
|
]),
|
|
92
95
|
_: 1
|
|
93
96
|
}),
|
|
97
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
|
|
98
|
+
default: withCtx(({ data: sourceData }) => [
|
|
99
|
+
createVNode(_component_VkfInputNumber, mergeProps({
|
|
100
|
+
modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
|
|
101
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
102
|
+
k: sourceData.prop,
|
|
103
|
+
v: $event
|
|
104
|
+
})
|
|
105
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}),
|
|
94
109
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
|
|
95
110
|
default: withCtx(({ data, raw }) => [
|
|
96
|
-
(openBlock(), createBlock(resolveDynamicComponent(typeof data.is === "function" ? data.is(raw) : data.is), normalizeProps(guardReactiveProps(_ctx.
|
|
111
|
+
(openBlock(), createBlock(resolveDynamicComponent(typeof data.is === "function" ? data.is(raw) : data.is), normalizeProps(guardReactiveProps(_ctx.pickObject(data, { excludes: ["is"] }))), null, 16))
|
|
97
112
|
]),
|
|
98
113
|
_: 1
|
|
99
114
|
})
|
|
@@ -4,10 +4,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
}, {
|
|
7
|
-
|
|
8
|
-
excludes?: EX;
|
|
9
|
-
includes?: KI[];
|
|
10
|
-
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
7
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
|
|
8
|
+
excludes?: EX | undefined;
|
|
9
|
+
includes?: KI[] | undefined;
|
|
10
|
+
} | undefined) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
11
11
|
getValue: (obj: any, k: string | number | any[]) => any;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
setData: (e: import("@vunk/core").SetDataEvent<any>) => import("@vunk/core").SetDataEvent<any>;
|
|
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
default: () => {};
|
|
18
18
|
};
|
|
19
19
|
}>> & {
|
|
20
|
-
onSetData?: (e: import("@vunk/core").SetDataEvent<any>) => any;
|
|
20
|
+
onSetData?: ((e: import("@vunk/core").SetDataEvent<any>) => any) | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
data:
|
|
22
|
+
data: Record<string, any>;
|
|
23
23
|
}>;
|
|
24
24
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, normalizeProps, guardReactiveProps, createBlock, resolveDynamicComponent, createElementVNode, mergeProps } from 'vue';
|
|
2
2
|
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
3
|
import { ElRow, ElCol } from 'element-plus';
|
|
4
|
-
import {
|
|
4
|
+
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
5
5
|
|
|
6
6
|
var script = defineComponent({
|
|
7
7
|
name: "VkfFormItemRendererTemplateLayout",
|
|
@@ -12,7 +12,7 @@ var script = defineComponent({
|
|
|
12
12
|
},
|
|
13
13
|
setup() {
|
|
14
14
|
return {
|
|
15
|
-
|
|
15
|
+
pickObject
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -63,7 +63,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63
63
|
"flex-shrink": data.shrink,
|
|
64
64
|
"flex-basis": data.basis
|
|
65
65
|
}
|
|
66
|
-
}, _ctx.
|
|
66
|
+
}, _ctx.pickObject(data, {
|
|
67
67
|
excludes: ["justify", "direction", "align", "overflow", "grow", "shrink", "basis"]
|
|
68
68
|
})), [
|
|
69
69
|
(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
|
|
3
|
-
excludes?: EX;
|
|
4
|
-
includes?: KI[];
|
|
5
|
-
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
2
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
|
|
3
|
+
excludes?: EX | undefined;
|
|
4
|
+
includes?: KI[] | undefined;
|
|
5
|
+
} | undefined) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
6
6
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
7
7
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { inputProps, inputEmits, ElInput } from 'element-plus';
|
|
|
2
2
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
3
3
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
4
4
|
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createSlots, renderSlot, renderList, resolveDynamicComponent } from 'vue';
|
|
5
|
-
import { createInputBindProps, createInputOnEmits } from '@vunk/form/shared/element-plus
|
|
5
|
+
import { createInputBindProps, createInputOnEmits } from '@vunk/form/shared/element-plus';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __defProps = Object.defineProperties;
|
|
@@ -24,6 +24,14 @@ var __spreadValues = (a, b) => {
|
|
|
24
24
|
};
|
|
25
25
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
26
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), inputProps), {
|
|
27
|
+
maxlength: {
|
|
28
|
+
type: Number,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
minlength: {
|
|
32
|
+
type: Number,
|
|
33
|
+
required: false
|
|
34
|
+
},
|
|
27
35
|
inputSlots: {
|
|
28
36
|
type: Object,
|
|
29
37
|
default: void 0
|
|
@@ -66,7 +74,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66
74
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
67
75
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
68
76
|
default: withCtx(() => [
|
|
69
|
-
createVNode(_component_ElInput, mergeProps(
|
|
77
|
+
createVNode(_component_ElInput, mergeProps({
|
|
78
|
+
maxlength: _ctx.maxlength,
|
|
79
|
+
minlength: _ctx.minlength
|
|
80
|
+
}, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits)), createSlots({
|
|
70
81
|
default: withCtx(() => [
|
|
71
82
|
renderSlot(_ctx.$slots, "default")
|
|
72
83
|
]),
|
|
@@ -80,7 +91,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
80
91
|
])
|
|
81
92
|
};
|
|
82
93
|
})
|
|
83
|
-
]), 1040)
|
|
94
|
+
]), 1040, ["maxlength", "minlength"])
|
|
84
95
|
]),
|
|
85
96
|
_: 3
|
|
86
97
|
}, 16);
|
|
@@ -1,24 +1,32 @@
|
|
|
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;
|
|
7
15
|
};
|
|
8
16
|
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
9
17
|
size: {
|
|
10
18
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
11
19
|
readonly required: false;
|
|
12
|
-
readonly validator: (val: unknown) => boolean;
|
|
20
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
21
|
__epPropKey: true;
|
|
14
22
|
};
|
|
15
23
|
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>;
|
|
24
|
+
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
25
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
18
26
|
resize: {
|
|
19
27
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "vertical" | "none" | "both" | "horizontal", unknown>>;
|
|
20
28
|
readonly required: false;
|
|
21
|
-
readonly validator: (val: unknown) => boolean;
|
|
29
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
30
|
__epPropKey: true;
|
|
23
31
|
};
|
|
24
32
|
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 +34,19 @@ export declare const props: {
|
|
|
26
34
|
formatter: {
|
|
27
35
|
readonly type: PropType<Function>;
|
|
28
36
|
readonly required: false;
|
|
29
|
-
readonly validator: (val: unknown) => boolean;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
38
|
__epPropKey: true;
|
|
31
39
|
};
|
|
32
40
|
parser: {
|
|
33
41
|
readonly type: PropType<Function>;
|
|
34
42
|
readonly required: false;
|
|
35
|
-
readonly validator: (val: unknown) => boolean;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
44
|
__epPropKey: true;
|
|
37
45
|
};
|
|
38
46
|
placeholder: {
|
|
39
47
|
readonly type: PropType<string>;
|
|
40
48
|
readonly required: false;
|
|
41
|
-
readonly validator: (val: unknown) => boolean;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
50
|
__epPropKey: true;
|
|
43
51
|
};
|
|
44
52
|
form: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -58,20 +66,20 @@ export declare const props: {
|
|
|
58
66
|
prop: {
|
|
59
67
|
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
68
|
readonly required: false;
|
|
61
|
-
readonly validator: (val: unknown) => boolean;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
62
70
|
__epPropKey: true;
|
|
63
71
|
};
|
|
64
72
|
rules: {
|
|
65
|
-
readonly type: PropType<unknown
|
|
73
|
+
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
74
|
readonly required: false;
|
|
67
|
-
readonly validator: (val: unknown) => boolean;
|
|
75
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
68
76
|
__epPropKey: true;
|
|
69
77
|
};
|
|
70
78
|
error: StringConstructor;
|
|
71
79
|
validateStatus: {
|
|
72
80
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
73
81
|
readonly required: false;
|
|
74
|
-
readonly validator: (val: unknown) => boolean;
|
|
82
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
75
83
|
__epPropKey: true;
|
|
76
84
|
};
|
|
77
85
|
for: StringConstructor;
|
|
@@ -83,14 +91,14 @@ export declare const props: {
|
|
|
83
91
|
};
|
|
84
92
|
formItemSlots: {
|
|
85
93
|
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
86
|
-
default:
|
|
94
|
+
default: undefined;
|
|
87
95
|
};
|
|
88
96
|
elRef: {
|
|
89
97
|
type: PropType<any>;
|
|
90
98
|
required: boolean;
|
|
91
99
|
};
|
|
92
100
|
};
|
|
93
|
-
export declare const createBindProps: <T2 extends
|
|
101
|
+
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>)[] | 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> : 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>]: { [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>]: T2[k]; }[P]; }>;
|
|
94
102
|
export declare const emits: {
|
|
95
103
|
"update:modelValue": (value: string) => boolean;
|
|
96
104
|
input: (value: string) => boolean;
|
|
@@ -105,4 +113,17 @@ export declare const emits: {
|
|
|
105
113
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
106
114
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
107
115
|
};
|
|
108
|
-
export declare const createOnEmits: <T2 extends
|
|
116
|
+
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"]: {
|
|
117
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
118
|
+
input: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
119
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
120
|
+
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
121
|
+
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
122
|
+
clear: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
123
|
+
mouseleave: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
124
|
+
mouseenter: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
125
|
+
keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
126
|
+
compositionstart: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
127
|
+
compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
128
|
+
compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
129
|
+
}[P]; };
|
|
@@ -22,6 +22,14 @@ 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
|