@vunk/form 0.0.0-alpha.5 → 0.0.0-alpha.8
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/config/index.js +1 -16
- package/components/config-renderer/index.js +1 -0
- package/components/confirm-input/index.css +9 -9
- package/components/confirm-input/index.js +33 -8
- package/components/confirm-input/src/ctx.d.ts +8 -1
- package/components/confirm-input/src/index.vue.d.ts +18 -2
- package/components/date-picker/index.d.ts +4 -0
- package/components/date-picker/index.js +81 -0
- package/components/date-picker/src/ctx.d.ts +131 -0
- package/components/date-picker/src/index.vue.d.ts +343 -0
- package/components/date-picker/src/types.d.ts +14 -0
- package/components/form/index.js +23 -2
- package/components/form/src/ctx.d.ts +277 -1
- package/components/form/src/index.vue.d.ts +825 -0
- package/components/form-item-renderer/index.js +1 -0
- package/components/ground/index.css +53 -53
- package/components/ground/index.js +140 -111
- package/components/ground/src/ground-config/src/index copy.vue.d.ts +72 -0
- package/components/ground/src/ground-config/src/index.vue.d.ts +953 -54
- package/components/ground/src/ground-main/src/index.vue.d.ts +10 -15
- package/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +13 -0
- package/components/ground/src/index.vue.d.ts +32 -10
- package/components/input/index.js +7 -7
- package/components/input-config/index.js +7 -4
- package/components/input-config/src/ctx.d.ts +600 -5
- package/components/input-config/src/index.vue.d.ts +2051 -2
- package/components/rules-config/src/ctx.d.ts +276 -0
- package/components/rules-config/src/index.vue.d.ts +1098 -0
- package/components/switch/src/ctx.d.ts +6 -0
- package/components/switch/src/index.vue.d.ts +13 -0
- package/full-entry/main.d.ts +1 -1
- package/index.css +62 -62
- package/index.d.ts +3 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
- package/shared/element-plus/ctx/index.d.ts +6 -4
- package/shared/element-plus/ctx/index.js +22 -2
- package/shared/element-plus/instances/date-picker.d.ts +94 -0
- package/shared/element-plus/instances/date-picker.js +21 -0
- package/shared/element-plus/instances/select.d.ts +1 -1
- package/shared/helper/index.d.ts +2 -1
- package/shared/helper/index.js +15 -1
- package/shared/types/form-item/confirm-input.d.ts +8 -0
- package/shared/types/form-item/confirm-input.js +1 -0
- package/shared/types/form-item/date-picker.d.ts +8 -0
- package/shared/types/form-item/date-picker.js +1 -0
- package/shared/types/form-item/index.d.ts +2 -0
- package/shared/types/form-item/input.d.ts +2 -6
- package/shared/types/form-item/select.d.ts +2 -2
- package/shared/types/form-item/switch.d.ts +2 -2
- package/shared/types/index.d.ts +2 -2
- package/shared/types/shared/index.d.ts +1 -1
- package/types/components/confirm-input/src/ctx.d.ts +8 -1
- package/types/components/confirm-input/src/index.vue.d.ts +18 -2
- package/types/components/date-picker/index.d.ts +4 -0
- package/types/components/date-picker/src/ctx.d.ts +131 -0
- package/types/components/date-picker/src/index.vue.d.ts +343 -0
- package/types/components/date-picker/src/types.d.ts +14 -0
- package/types/components/form/src/ctx.d.ts +277 -1
- package/types/components/form/src/index.vue.d.ts +825 -0
- package/types/components/ground/src/ground-config/src/index copy.vue.d.ts +72 -0
- package/types/components/ground/src/ground-config/src/index.vue.d.ts +953 -54
- package/types/components/ground/src/ground-main/src/index.vue.d.ts +10 -15
- package/types/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +13 -0
- package/types/components/ground/src/index.vue.d.ts +32 -10
- package/types/components/input-config/src/ctx.d.ts +600 -5
- package/types/components/input-config/src/index.vue.d.ts +2051 -2
- package/types/components/rules-config/src/ctx.d.ts +276 -0
- package/types/components/rules-config/src/index.vue.d.ts +1098 -0
- package/types/components/switch/src/ctx.d.ts +6 -0
- package/types/components/switch/src/index.vue.d.ts +13 -0
- package/types/full-entry/main.d.ts +1 -1
- package/types/shared/element-plus/ctx/index.d.ts +6 -4
- package/types/shared/element-plus/instances/date-picker.d.ts +94 -0
- package/types/shared/element-plus/instances/select.d.ts +1 -1
- package/types/shared/helper/index.d.ts +2 -1
- package/types/shared/types/form-item/confirm-input.d.ts +8 -0
- package/types/shared/types/form-item/date-picker.d.ts +8 -0
- package/types/shared/types/form-item/index.d.ts +2 -0
- package/types/shared/types/form-item/input.d.ts +2 -6
- package/types/shared/types/form-item/select.d.ts +2 -2
- package/types/shared/types/form-item/switch.d.ts +2 -2
- package/types/shared/types/index.d.ts +2 -2
- package/types/shared/types/shared/index.d.ts +1 -1
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
datePickerSlots: {
|
|
3
|
+
type: import("vue").PropType<import("./types").DatePickerSlots>;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
type: {
|
|
7
|
+
type: import("vue").PropType<"date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
id: {
|
|
11
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
|
+
__epPropKey: true;
|
|
15
|
+
};
|
|
16
|
+
name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
|
|
17
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
18
|
+
format: StringConstructor;
|
|
19
|
+
valueFormat: StringConstructor;
|
|
20
|
+
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
21
|
+
clearIcon: import("element-plus/es/utils").EpPropFinalized<(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, import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
|
|
22
|
+
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
23
|
+
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(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, "", boolean>;
|
|
24
|
+
size: {
|
|
25
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
|
+
__epPropKey: true;
|
|
29
|
+
};
|
|
30
|
+
readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
31
|
+
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
32
|
+
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
33
|
+
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
34
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
35
|
+
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
36
|
+
startPlaceholder: StringConstructor;
|
|
37
|
+
endPlaceholder: StringConstructor;
|
|
38
|
+
defaultValue: {
|
|
39
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
|
+
__epPropKey: true;
|
|
43
|
+
};
|
|
44
|
+
defaultTime: {
|
|
45
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
46
|
+
readonly required: false;
|
|
47
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
|
+
__epPropKey: true;
|
|
49
|
+
};
|
|
50
|
+
isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
51
|
+
disabledHours: {
|
|
52
|
+
readonly type: import("vue").PropType<Function>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
};
|
|
57
|
+
disabledMinutes: {
|
|
58
|
+
readonly type: import("vue").PropType<Function>;
|
|
59
|
+
readonly required: false;
|
|
60
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
|
+
__epPropKey: true;
|
|
62
|
+
};
|
|
63
|
+
disabledSeconds: {
|
|
64
|
+
readonly type: import("vue").PropType<Function>;
|
|
65
|
+
readonly required: false;
|
|
66
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
|
+
__epPropKey: true;
|
|
68
|
+
};
|
|
69
|
+
disabledDate: {
|
|
70
|
+
readonly type: import("vue").PropType<Function>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
74
|
+
};
|
|
75
|
+
cellClassName: {
|
|
76
|
+
readonly type: import("vue").PropType<Function>;
|
|
77
|
+
readonly required: false;
|
|
78
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
+
__epPropKey: true;
|
|
80
|
+
};
|
|
81
|
+
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
82
|
+
arrowControl: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
83
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
84
|
+
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
85
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
86
|
+
unlinkPanels: BooleanConstructor;
|
|
87
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
88
|
+
rules: {
|
|
89
|
+
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>>;
|
|
90
|
+
readonly required: false;
|
|
91
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
|
+
__epPropKey: true;
|
|
93
|
+
};
|
|
94
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
95
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
96
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
97
|
+
prop: {
|
|
98
|
+
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>>;
|
|
99
|
+
readonly required: false;
|
|
100
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
101
|
+
__epPropKey: true;
|
|
102
|
+
};
|
|
103
|
+
error: StringConstructor;
|
|
104
|
+
validateStatus: {
|
|
105
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
106
|
+
readonly required: false;
|
|
107
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
108
|
+
__epPropKey: true;
|
|
109
|
+
};
|
|
110
|
+
for: StringConstructor;
|
|
111
|
+
formItemSize: {
|
|
112
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
formItemSlots: {
|
|
116
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
}, {
|
|
120
|
+
formItemBindProps: import("vue").ComputedRef<{
|
|
121
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
122
|
+
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;
|
|
123
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
124
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
125
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
126
|
+
label: string | undefined;
|
|
127
|
+
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;
|
|
128
|
+
error: string | undefined;
|
|
129
|
+
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
130
|
+
for: string | undefined;
|
|
131
|
+
formItemSize: "small" | "default" | "large";
|
|
132
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
133
|
+
}>;
|
|
134
|
+
datePickerBindProps: import("vue").ComputedRef<{
|
|
135
|
+
name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
136
|
+
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never> | undefined;
|
|
137
|
+
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
138
|
+
id: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown> | undefined;
|
|
139
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
140
|
+
placeholder: string;
|
|
141
|
+
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
142
|
+
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
143
|
+
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>;
|
|
144
|
+
label: string | undefined;
|
|
145
|
+
tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>;
|
|
146
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
147
|
+
popperClass: string;
|
|
148
|
+
clearIcon: 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>;
|
|
149
|
+
format: string | undefined;
|
|
150
|
+
valueFormat: string | undefined;
|
|
151
|
+
editable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
152
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
153
|
+
rangeSeparator: string;
|
|
154
|
+
startPlaceholder: string | undefined;
|
|
155
|
+
endPlaceholder: string | undefined;
|
|
156
|
+
defaultValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown> | undefined;
|
|
157
|
+
defaultTime: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown> | undefined;
|
|
158
|
+
isRange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
159
|
+
disabledHours: Function | undefined;
|
|
160
|
+
disabledMinutes: Function | undefined;
|
|
161
|
+
disabledSeconds: Function | undefined;
|
|
162
|
+
disabledDate: Function | undefined;
|
|
163
|
+
cellClassName: Function | undefined;
|
|
164
|
+
shortcuts: unknown[];
|
|
165
|
+
arrowControl: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
166
|
+
unlinkPanels: boolean;
|
|
167
|
+
}>;
|
|
168
|
+
datePickerOnEmits: {
|
|
169
|
+
"update:modelValue": ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
170
|
+
change: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
171
|
+
focus: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
172
|
+
blur: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
173
|
+
keydown: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
174
|
+
"visible-change": ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
175
|
+
"calendar-change": ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
176
|
+
"panel-change": ((event: "update:modelValue", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "focus", ...args: any[]) => void) & ((event: "blur", ...args: any[]) => void) & ((event: "keydown", ...args: any[]) => void) & ((event: "visible-change", ...args: any[]) => void) & ((event: "calendar-change", ...args: any[]) => void) & ((event: "panel-change", ...args: any[]) => void);
|
|
177
|
+
};
|
|
178
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
179
|
+
'update:modelValue': null;
|
|
180
|
+
change: null;
|
|
181
|
+
focus: null;
|
|
182
|
+
blur: null;
|
|
183
|
+
'calendar-change': null;
|
|
184
|
+
'panel-change': null;
|
|
185
|
+
'visible-change': null;
|
|
186
|
+
keydown: null;
|
|
187
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
188
|
+
datePickerSlots: {
|
|
189
|
+
type: import("vue").PropType<import("./types").DatePickerSlots>;
|
|
190
|
+
default: undefined;
|
|
191
|
+
};
|
|
192
|
+
type: {
|
|
193
|
+
type: import("vue").PropType<"date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
id: {
|
|
197
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
198
|
+
readonly required: false;
|
|
199
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
200
|
+
__epPropKey: true;
|
|
201
|
+
};
|
|
202
|
+
name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
|
|
203
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
204
|
+
format: StringConstructor;
|
|
205
|
+
valueFormat: StringConstructor;
|
|
206
|
+
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
207
|
+
clearIcon: import("element-plus/es/utils").EpPropFinalized<(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, import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, boolean>;
|
|
208
|
+
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
209
|
+
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(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, "", boolean>;
|
|
210
|
+
size: {
|
|
211
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
212
|
+
readonly required: false;
|
|
213
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
214
|
+
__epPropKey: true;
|
|
215
|
+
};
|
|
216
|
+
readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
217
|
+
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
218
|
+
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
219
|
+
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
220
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
221
|
+
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
222
|
+
startPlaceholder: StringConstructor;
|
|
223
|
+
endPlaceholder: StringConstructor;
|
|
224
|
+
defaultValue: {
|
|
225
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
226
|
+
readonly required: false;
|
|
227
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
228
|
+
__epPropKey: true;
|
|
229
|
+
};
|
|
230
|
+
defaultTime: {
|
|
231
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
232
|
+
readonly required: false;
|
|
233
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
234
|
+
__epPropKey: true;
|
|
235
|
+
};
|
|
236
|
+
isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
237
|
+
disabledHours: {
|
|
238
|
+
readonly type: import("vue").PropType<Function>;
|
|
239
|
+
readonly required: false;
|
|
240
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
241
|
+
__epPropKey: true;
|
|
242
|
+
};
|
|
243
|
+
disabledMinutes: {
|
|
244
|
+
readonly type: import("vue").PropType<Function>;
|
|
245
|
+
readonly required: false;
|
|
246
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
247
|
+
__epPropKey: true;
|
|
248
|
+
};
|
|
249
|
+
disabledSeconds: {
|
|
250
|
+
readonly type: import("vue").PropType<Function>;
|
|
251
|
+
readonly required: false;
|
|
252
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
253
|
+
__epPropKey: true;
|
|
254
|
+
};
|
|
255
|
+
disabledDate: {
|
|
256
|
+
readonly type: import("vue").PropType<Function>;
|
|
257
|
+
readonly required: false;
|
|
258
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
259
|
+
__epPropKey: true;
|
|
260
|
+
};
|
|
261
|
+
cellClassName: {
|
|
262
|
+
readonly type: import("vue").PropType<Function>;
|
|
263
|
+
readonly required: false;
|
|
264
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
265
|
+
__epPropKey: true;
|
|
266
|
+
};
|
|
267
|
+
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
268
|
+
arrowControl: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
269
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
270
|
+
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
271
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
272
|
+
unlinkPanels: BooleanConstructor;
|
|
273
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
274
|
+
rules: {
|
|
275
|
+
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>>;
|
|
276
|
+
readonly required: false;
|
|
277
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
278
|
+
__epPropKey: true;
|
|
279
|
+
};
|
|
280
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
281
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
282
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
283
|
+
prop: {
|
|
284
|
+
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>>;
|
|
285
|
+
readonly required: false;
|
|
286
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
287
|
+
__epPropKey: true;
|
|
288
|
+
};
|
|
289
|
+
error: StringConstructor;
|
|
290
|
+
validateStatus: {
|
|
291
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
292
|
+
readonly required: false;
|
|
293
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
294
|
+
__epPropKey: true;
|
|
295
|
+
};
|
|
296
|
+
for: StringConstructor;
|
|
297
|
+
formItemSize: {
|
|
298
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
299
|
+
default: string;
|
|
300
|
+
};
|
|
301
|
+
formItemSlots: {
|
|
302
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
303
|
+
default: undefined;
|
|
304
|
+
};
|
|
305
|
+
}>> & {
|
|
306
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
307
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
308
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
309
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
310
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
311
|
+
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
312
|
+
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
313
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
316
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
317
|
+
type: "date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange";
|
|
318
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
319
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
320
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
321
|
+
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
322
|
+
modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
323
|
+
placeholder: string;
|
|
324
|
+
readonly: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
325
|
+
clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
326
|
+
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>;
|
|
327
|
+
label: string;
|
|
328
|
+
tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>;
|
|
329
|
+
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
330
|
+
formItemSize: "small" | "default" | "large";
|
|
331
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
332
|
+
popperClass: string;
|
|
333
|
+
clearIcon: 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>;
|
|
334
|
+
editable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
335
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
336
|
+
rangeSeparator: string;
|
|
337
|
+
isRange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
338
|
+
shortcuts: unknown[];
|
|
339
|
+
arrowControl: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
340
|
+
unlinkPanels: boolean;
|
|
341
|
+
datePickerSlots: import("./types").DatePickerSlots;
|
|
342
|
+
}>;
|
|
343
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Func } from '@vunk/form/shared/types';
|
|
2
|
+
export declare type DatePickerSlots = {
|
|
3
|
+
default?: Func;
|
|
4
|
+
'range-separator'?: Func;
|
|
5
|
+
};
|
|
6
|
+
export declare const datePickerEmits: {
|
|
7
|
+
'update:modelValue': null;
|
|
8
|
+
change: null;
|
|
9
|
+
focus: null;
|
|
10
|
+
blur: null;
|
|
11
|
+
'calendar-change': null;
|
|
12
|
+
'panel-change': null;
|
|
13
|
+
'visible-change': null;
|
|
14
|
+
};
|
package/components/form/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import { createFormBindProps, createFormOnEmits } from '@vunk/form/shared/elemen
|
|
|
8
8
|
import { getValue } from '@vunk/form/shared/helper';
|
|
9
9
|
import { VkfSwitch } from '@vunk/form/components/switch';
|
|
10
10
|
import { VkfSelect } from '@vunk/form/components/select';
|
|
11
|
+
import { VkfDatePicker } from '@vunk/form/components/date-picker';
|
|
11
12
|
|
|
12
13
|
const props = {
|
|
13
14
|
...formProps,
|
|
@@ -18,6 +19,11 @@ const props = {
|
|
|
18
19
|
formItems: {
|
|
19
20
|
type: Array,
|
|
20
21
|
default: () => []
|
|
22
|
+
},
|
|
23
|
+
elRef: {
|
|
24
|
+
type: Function,
|
|
25
|
+
default: () => () => {
|
|
26
|
+
}
|
|
21
27
|
}
|
|
22
28
|
};
|
|
23
29
|
const createBindProps = bindPropsFactory(props);
|
|
@@ -45,7 +51,8 @@ var script = defineComponent({
|
|
|
45
51
|
VkfFormItemRendererTemplate,
|
|
46
52
|
VkfInput,
|
|
47
53
|
VkfSwitch,
|
|
48
|
-
VkfSelect
|
|
54
|
+
VkfSelect,
|
|
55
|
+
VkfDatePicker
|
|
49
56
|
},
|
|
50
57
|
setup(props2, { emit }) {
|
|
51
58
|
const formProps = createFormBindProps(props2, ["model"]);
|
|
@@ -63,10 +70,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63
70
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
64
71
|
const _component_VkfSwitch = resolveComponent("VkfSwitch");
|
|
65
72
|
const _component_VkfSelect = resolveComponent("VkfSelect");
|
|
73
|
+
const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
|
|
66
74
|
const _component_VkfFormItemRenderer = resolveComponent("VkfFormItemRenderer");
|
|
67
75
|
const _component_ElForm = resolveComponent("ElForm");
|
|
68
76
|
return openBlock(), createBlock(_component_ElForm, mergeProps(_ctx.formProps, toHandlers(_ctx.formEmits), {
|
|
69
|
-
model: _ctx.model || _ctx.data
|
|
77
|
+
model: _ctx.model || _ctx.data,
|
|
78
|
+
ref: _ctx.elRef
|
|
70
79
|
}), {
|
|
71
80
|
default: withCtx(() => [
|
|
72
81
|
createVNode(_component_VkfFormItemRenderer, { source: _ctx.formItems }, {
|
|
@@ -107,6 +116,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
116
|
]),
|
|
108
117
|
_: 1
|
|
109
118
|
}),
|
|
119
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
|
|
120
|
+
default: withCtx(({ data: sourceData }) => [
|
|
121
|
+
createVNode(_component_VkfDatePicker, mergeProps({
|
|
122
|
+
modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
|
|
123
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
124
|
+
k: sourceData.prop,
|
|
125
|
+
v: $event
|
|
126
|
+
})
|
|
127
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}),
|
|
110
131
|
renderSlot(_ctx.$slots, "rendererTemplate")
|
|
111
132
|
]),
|
|
112
133
|
_: 3
|