@vunk/form 0.0.1-alpha.21 → 0.0.1-alpha.23
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/button/src/ctx.d.ts +4 -0
- package/components/button/src/index.vue.d.ts +10 -0
- package/components/checkbox/index.css +38 -0
- package/components/checkbox/index.js +13 -4
- package/components/checkbox/src/ctx.d.ts +4 -0
- package/components/checkbox/src/index.vue.d.ts +18 -8
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +13 -3
- package/components/date-picker/index.js +11 -5
- package/components/date-picker/src/ctx.d.ts +45 -42
- package/components/date-picker/src/ctx.js +1 -1
- package/components/date-picker/src/index.vue.d.ts +102 -96
- package/components/form/index.js +14 -5
- package/components/form/src/ctx.d.ts +4 -1
- package/components/form/src/ctx.js +5 -2
- package/components/form/src/index.vue.d.ts +7 -0
- package/components/form-item/index.js +9 -1
- package/components/form-item/src/ctx.d.ts +5 -1
- package/components/form-item/src/ctx.js +4 -0
- package/components/form-item/src/index.vue.d.ts +10 -0
- package/components/input/index.js +7 -4
- package/components/input/src/ctx.d.ts +46 -43
- package/components/input/src/ctx.js +1 -1
- package/components/input/src/index.vue.d.ts +96 -90
- package/components/input-number/index.css +14 -0
- package/components/input-number/index.js +12 -3
- package/components/input-number/src/ctx.d.ts +4 -0
- package/components/input-number/src/index.vue.d.ts +19 -9
- package/components/radio/index.css +29 -0
- package/components/radio/index.js +13 -4
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +15 -5
- package/components/select/index.css +11 -0
- package/components/select/index.js +12 -4
- package/components/select/src/ctx.d.ts +4 -0
- package/components/select/src/index.vue.d.ts +33 -23
- package/components/switch/index.css +11 -0
- package/components/switch/index.js +15 -4
- package/components/switch/src/ctx.d.ts +4 -0
- package/components/switch/src/index.vue.d.ts +14 -4
- package/components/upload/index.css +10 -0
- package/components/upload/index.js +14 -6
- package/components/upload/src/ctx.d.ts +4 -0
- package/components/upload/src/index.vue.d.ts +11 -1
- package/composables/index.d.ts +1 -0
- package/composables/index.js +318 -7
- package/composables/useForm.d.ts +9 -0
- package/composables/useSourceManager.d.ts +2 -0
- package/index.css +118 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +9 -9
- package/shared/infer-prop/index.d.ts +16 -0
- package/shared/infer-prop/index.js +29 -0
|
@@ -74,6 +74,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
type: BooleanConstructor;
|
|
75
75
|
default: boolean;
|
|
76
76
|
};
|
|
77
|
+
readonly: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
77
81
|
}, {
|
|
78
82
|
formBindProps: import("vue").ComputedRef<{
|
|
79
83
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -90,6 +94,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
94
|
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
91
95
|
elRef: any;
|
|
92
96
|
inline: boolean;
|
|
97
|
+
readonly: boolean | undefined;
|
|
93
98
|
}>;
|
|
94
99
|
coreBindProps: import("vue").ComputedRef<{
|
|
95
100
|
type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "success" | "text" | "primary" | "warning" | "info" | "danger", unknown>;
|
|
@@ -190,6 +195,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
195
|
type: BooleanConstructor;
|
|
191
196
|
default: boolean;
|
|
192
197
|
};
|
|
198
|
+
readonly: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: undefined;
|
|
201
|
+
};
|
|
193
202
|
}>> & {
|
|
194
203
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
195
204
|
}, {
|
|
@@ -201,6 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
210
|
formItemSize: "default" | "small" | "large";
|
|
202
211
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
203
212
|
inline: boolean;
|
|
213
|
+
readonly: boolean;
|
|
204
214
|
link: boolean;
|
|
205
215
|
validate: boolean;
|
|
206
216
|
disabled: boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
.el-checkbox-group.is-readonly .el-checkbox,
|
|
3
|
+
.el-checkbox-group.is-readonly{
|
|
4
|
+
--el-readonly-cursor: auto;
|
|
5
|
+
--el-disabled-text-color: var(--el-checkbox-text-color);
|
|
6
|
+
--el-checkbox-disabled-checked-input-fill: var(--el-checkbox-bg-color);
|
|
7
|
+
--el-checkbox-disabled-checked-icon-color: var(--el-checkbox-checked-icon-color);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
.el-checkbox-group.is-readonly .el-checkbox__input.is-checked+.el-checkbox__label {
|
|
12
|
+
color: var(--el-checkbox-checked-text-color);
|
|
13
|
+
}
|
|
14
|
+
.el-checkbox-group.is-readonly .el-checkbox__input.is-checked .el-checkbox__inner {
|
|
15
|
+
background-color: var(--el-checkbox-checked-bg-color);
|
|
16
|
+
border-color: var(--el-checkbox-checked-input-border-color);
|
|
17
|
+
}
|
|
18
|
+
.el-checkbox-group.is-readonly .el-checkbox__input.is-disabled+span.el-checkbox__label,
|
|
19
|
+
.el-checkbox-group.is-readonly .el-checkbox__input.is-disabled .el-checkbox__inner {
|
|
20
|
+
cursor: var(--el-readonly-cursor);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
.el-checkbox-group.is-readonly .el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{
|
|
26
|
+
border-left-color: var(--el-checkbox-button-checked-border-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.el-checkbox-group.is-readonly .el-checkbox-button.is-checked .el-checkbox-button__inner {
|
|
30
|
+
color: var(--el-checkbox-button-checked-text-color);
|
|
31
|
+
background-color: var(--el-checkbox-button-checked-bg-color);
|
|
32
|
+
border-color: var(--el-checkbox-button-checked-border-color);
|
|
33
|
+
box-shadow: -1px 0 0 0 var(--el-color-primary-light-7);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.el-checkbox-group.is-readonly .el-checkbox-button.is-disabled .el-checkbox-button__inner{
|
|
37
|
+
cursor: var(--el-readonly-cursor);
|
|
38
|
+
}
|
|
@@ -3,6 +3,7 @@ import { useCheckboxGroupProps, checkboxGroupEmits, ElCheckbox, ElCheckboxGroup,
|
|
|
3
3
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, Fragment, renderList, resolveDynamicComponent, createTextVNode, toDisplayString } from 'vue';
|
|
4
4
|
import { createCheckboxGroupBindProps, createCheckboxGroupOnEmits } from '@vunk/form/shared/element-plus';
|
|
5
5
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
6
|
+
import { useComputedReadonly } from '@vunk/form/composables';
|
|
6
7
|
|
|
7
8
|
var __defProp = Object.defineProperty;
|
|
8
9
|
var __defProps = Object.defineProperties;
|
|
@@ -55,18 +56,20 @@ var script = defineComponent({
|
|
|
55
56
|
props,
|
|
56
57
|
setup(props2, { emit }) {
|
|
57
58
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
58
|
-
const coreBindProps = createCheckboxGroupBindProps(props2);
|
|
59
|
+
const coreBindProps = createCheckboxGroupBindProps(props2, ["disabled"]);
|
|
59
60
|
const coreOnEmits = createCheckboxGroupOnEmits(emit);
|
|
60
61
|
const options = computed(() => {
|
|
61
62
|
return props2.options.filter((item) => item.value !== void 0 && item.value !== null);
|
|
62
63
|
});
|
|
63
64
|
!props2.modelValue && props2.defaultModelValue && emit("update:modelValue", props2.defaultModelValue);
|
|
65
|
+
const readonly = useComputedReadonly(props2);
|
|
64
66
|
return {
|
|
65
67
|
formItemBindProps,
|
|
66
68
|
coreBindProps,
|
|
67
69
|
coreOnEmits,
|
|
68
70
|
options,
|
|
69
|
-
pickObject
|
|
71
|
+
pickObject,
|
|
72
|
+
readonly
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
});
|
|
@@ -76,7 +79,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76
79
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
77
80
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
78
81
|
default: withCtx(() => [
|
|
79
|
-
createVNode(_component_ElCheckboxGroup, mergeProps(
|
|
82
|
+
createVNode(_component_ElCheckboxGroup, mergeProps({
|
|
83
|
+
class: {
|
|
84
|
+
"is-readonly": _ctx.readonly
|
|
85
|
+
}
|
|
86
|
+
}, _ctx.coreBindProps, toHandlers(_ctx.coreOnEmits), {
|
|
87
|
+
disabled: _ctx.readonly || _ctx.disabled
|
|
88
|
+
}), {
|
|
80
89
|
default: withCtx(() => [
|
|
81
90
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item) => {
|
|
82
91
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.type === "button" ? "ElCheckboxButton" : "ElCheckbox"), mergeProps({
|
|
@@ -96,7 +105,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
96
105
|
}), 128))
|
|
97
106
|
]),
|
|
98
107
|
_: 1
|
|
99
|
-
}, 16)
|
|
108
|
+
}, 16, ["class", "disabled"])
|
|
100
109
|
]),
|
|
101
110
|
_: 1
|
|
102
111
|
}, 16);
|
|
@@ -96,6 +96,10 @@ export declare const props: {
|
|
|
96
96
|
type: BooleanConstructor;
|
|
97
97
|
default: boolean;
|
|
98
98
|
};
|
|
99
|
+
readonly: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
99
103
|
};
|
|
100
104
|
export declare const emits: {
|
|
101
105
|
"update:modelValue": (val: import("element-plus").CheckboxValueType[]) => boolean;
|
|
@@ -94,6 +94,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
94
|
type: BooleanConstructor;
|
|
95
95
|
default: boolean;
|
|
96
96
|
};
|
|
97
|
+
readonly: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: undefined;
|
|
100
|
+
};
|
|
97
101
|
}, {
|
|
98
102
|
formItemBindProps: import("vue").ComputedRef<{
|
|
99
103
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -110,17 +114,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
114
|
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
111
115
|
elRef: any;
|
|
112
116
|
inline: boolean;
|
|
117
|
+
readonly: boolean | undefined;
|
|
113
118
|
}>;
|
|
114
119
|
coreBindProps: import("vue").ComputedRef<{
|
|
115
120
|
label: string | undefined;
|
|
116
121
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
117
122
|
fill: string | undefined;
|
|
118
|
-
disabled: boolean;
|
|
119
123
|
id: string | undefined;
|
|
120
|
-
modelValue: (string | number)[] | undefined;
|
|
121
124
|
validateEvent: boolean;
|
|
122
|
-
|
|
125
|
+
modelValue: (string | number)[] | undefined;
|
|
123
126
|
max: number | undefined;
|
|
127
|
+
min: number | undefined;
|
|
124
128
|
textColor: string | undefined;
|
|
125
129
|
tag: string;
|
|
126
130
|
}>;
|
|
@@ -133,6 +137,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
137
|
excludes?: EX | undefined;
|
|
134
138
|
includes?: KI[] | undefined;
|
|
135
139
|
} | undefined) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
140
|
+
readonly: import("vue").ComputedRef<boolean>;
|
|
136
141
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
137
142
|
"update:modelValue": (val: import("element-plus").CheckboxValueType[]) => boolean;
|
|
138
143
|
change: (val: import("element-plus").CheckboxValueType[]) => boolean;
|
|
@@ -232,9 +237,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
232
237
|
type: BooleanConstructor;
|
|
233
238
|
default: boolean;
|
|
234
239
|
};
|
|
240
|
+
readonly: {
|
|
241
|
+
type: BooleanConstructor;
|
|
242
|
+
default: undefined;
|
|
243
|
+
};
|
|
235
244
|
}>> & {
|
|
236
|
-
onChange?: ((val: import("element-plus").CheckboxValueType[]) => any) | undefined;
|
|
237
245
|
"onUpdate:modelValue"?: ((val: import("element-plus").CheckboxValueType[]) => any) | undefined;
|
|
246
|
+
onChange?: ((val: import("element-plus").CheckboxValueType[]) => any) | undefined;
|
|
238
247
|
}, {
|
|
239
248
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
240
249
|
type: "default" | "button";
|
|
@@ -245,16 +254,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
245
254
|
formItemSize: "default" | "small" | "large";
|
|
246
255
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
247
256
|
inline: boolean;
|
|
257
|
+
readonly: boolean;
|
|
248
258
|
fill: string;
|
|
249
259
|
disabled: boolean;
|
|
250
260
|
id: string;
|
|
251
|
-
modelValue: (string | number)[];
|
|
252
261
|
validateEvent: boolean;
|
|
253
|
-
|
|
262
|
+
modelValue: (string | number)[];
|
|
263
|
+
options: import("../../../shared/types/form").CheckboxProps[];
|
|
264
|
+
defaultModelValue: any[];
|
|
254
265
|
max: number;
|
|
266
|
+
min: number;
|
|
255
267
|
textColor: string;
|
|
256
268
|
tag: string;
|
|
257
|
-
options: import("../../../shared/types/form").CheckboxProps[];
|
|
258
|
-
defaultModelValue: any[];
|
|
259
269
|
}>;
|
|
260
270
|
export default _default;
|
|
@@ -62,6 +62,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
type: BooleanConstructor;
|
|
63
63
|
default: boolean;
|
|
64
64
|
};
|
|
65
|
+
readonly: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
65
69
|
}, {
|
|
66
70
|
formItemBindProps: import("vue").ComputedRef<{
|
|
67
71
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
@@ -78,18 +82,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
82
|
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
79
83
|
elRef: any;
|
|
80
84
|
inline: boolean;
|
|
85
|
+
readonly: boolean | undefined;
|
|
81
86
|
}>;
|
|
82
87
|
coreBindProps: import("vue").ComputedRef<{
|
|
83
88
|
label: string | undefined;
|
|
84
89
|
size: "" | "default" | "small" | "large" | undefined;
|
|
85
90
|
disabled: boolean;
|
|
86
91
|
id: string | undefined;
|
|
87
|
-
modelValue: string | undefined;
|
|
88
92
|
tabindex: string | number;
|
|
89
93
|
validateEvent: boolean;
|
|
94
|
+
popperClass: string | undefined;
|
|
95
|
+
modelValue: string | undefined;
|
|
90
96
|
showAlpha: boolean;
|
|
91
97
|
colorFormat: string | undefined;
|
|
92
|
-
popperClass: string | undefined;
|
|
93
98
|
predefine: unknown[] | undefined;
|
|
94
99
|
}>;
|
|
95
100
|
coreOnEmits: {
|
|
@@ -165,9 +170,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
165
170
|
type: BooleanConstructor;
|
|
166
171
|
default: boolean;
|
|
167
172
|
};
|
|
173
|
+
readonly: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: undefined;
|
|
176
|
+
};
|
|
168
177
|
}>> & {
|
|
169
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
170
178
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
171
180
|
"onActive-change"?: ((...args: any[]) => any) | undefined;
|
|
172
181
|
}, {
|
|
173
182
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -178,6 +187,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
187
|
formItemSize: "default" | "small" | "large";
|
|
179
188
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
180
189
|
inline: boolean;
|
|
190
|
+
readonly: boolean;
|
|
181
191
|
disabled: boolean;
|
|
182
192
|
tabindex: string | number;
|
|
183
193
|
validateEvent: boolean;
|
|
@@ -2,6 +2,7 @@ import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
|
2
2
|
import { datePickerProps, datePickerEmits as datePickerEmits$1, createDatePickerBindProps, createDatePickerOnEmits } from '@vunk/form/shared/element-plus';
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createSlots, renderList, resolveDynamicComponent } from 'vue';
|
|
4
4
|
import { ElDatePicker } from 'element-plus';
|
|
5
|
+
import { useComputedReadonly } from '@vunk/form/composables';
|
|
5
6
|
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __defProps = Object.defineProperties;
|
|
@@ -22,7 +23,7 @@ var __spreadValues = (a, b) => {
|
|
|
22
23
|
return a;
|
|
23
24
|
};
|
|
24
25
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
-
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props),
|
|
26
|
+
const props = __spreadProps(__spreadValues(__spreadValues({}, datePickerProps), _VkfFormItemCtx.props), {
|
|
26
27
|
datePickerSlots: {
|
|
27
28
|
type: Object,
|
|
28
29
|
default: void 0
|
|
@@ -40,12 +41,17 @@ var script = defineComponent({
|
|
|
40
41
|
props,
|
|
41
42
|
setup(props2, { emit }) {
|
|
42
43
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
43
|
-
const datePickerBindProps = createDatePickerBindProps(props2, [
|
|
44
|
+
const datePickerBindProps = createDatePickerBindProps(props2, [
|
|
45
|
+
"type",
|
|
46
|
+
"readonly"
|
|
47
|
+
]);
|
|
44
48
|
const datePickerOnEmits = createDatePickerOnEmits(emit);
|
|
49
|
+
const readonly = useComputedReadonly(props2);
|
|
45
50
|
return {
|
|
46
51
|
formItemBindProps,
|
|
47
52
|
datePickerBindProps,
|
|
48
|
-
datePickerOnEmits
|
|
53
|
+
datePickerOnEmits,
|
|
54
|
+
readonly
|
|
49
55
|
};
|
|
50
56
|
}
|
|
51
57
|
});
|
|
@@ -55,7 +61,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55
61
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
56
62
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
57
63
|
default: withCtx(() => [
|
|
58
|
-
createVNode(_component_ElDatePicker, mergeProps(_ctx.datePickerBindProps, { type: _ctx.type }, toHandlers(_ctx.datePickerOnEmits)), createSlots({ _: 2 }, [
|
|
64
|
+
createVNode(_component_ElDatePicker, mergeProps(_ctx.datePickerBindProps, { type: _ctx.type }, toHandlers(_ctx.datePickerOnEmits), { readonly: _ctx.readonly }), createSlots({ _: 2 }, [
|
|
59
65
|
renderList(_ctx.datePickerSlots, (item, key) => {
|
|
60
66
|
return {
|
|
61
67
|
name: key,
|
|
@@ -64,7 +70,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64
70
|
])
|
|
65
71
|
};
|
|
66
72
|
})
|
|
67
|
-
]), 1040, ["type"])
|
|
73
|
+
]), 1040, ["type", "readonly"])
|
|
68
74
|
]),
|
|
69
75
|
_: 1
|
|
70
76
|
}, 16);
|
|
@@ -5,6 +5,51 @@ export declare const props: {
|
|
|
5
5
|
type: PropType<DatePickerSlots>;
|
|
6
6
|
default: undefined;
|
|
7
7
|
};
|
|
8
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
9
|
+
label: StringConstructor;
|
|
10
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
11
|
+
prop: {
|
|
12
|
+
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>>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
+
__epPropKey: true;
|
|
16
|
+
};
|
|
17
|
+
rules: {
|
|
18
|
+
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>>;
|
|
19
|
+
readonly required: false;
|
|
20
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
21
|
+
__epPropKey: true;
|
|
22
|
+
};
|
|
23
|
+
error: StringConstructor;
|
|
24
|
+
validateStatus: {
|
|
25
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
|
+
__epPropKey: true;
|
|
29
|
+
};
|
|
30
|
+
for: StringConstructor;
|
|
31
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
32
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
33
|
+
formItemSize: {
|
|
34
|
+
type: PropType<"default" | "small" | "large">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
formItemSlots: {
|
|
38
|
+
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
elRef: {
|
|
42
|
+
type: PropType<any>;
|
|
43
|
+
required: boolean;
|
|
44
|
+
};
|
|
45
|
+
inline: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
readonly: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
8
53
|
type: {
|
|
9
54
|
type: PropType<"year" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
|
|
10
55
|
default: string;
|
|
@@ -23,7 +68,6 @@ export declare const props: {
|
|
|
23
68
|
};
|
|
24
69
|
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
25
70
|
arrowControl: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
26
|
-
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
27
71
|
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>;
|
|
28
72
|
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
73
|
unlinkPanels: BooleanConstructor;
|
|
@@ -65,7 +109,6 @@ export declare const props: {
|
|
|
65
109
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
110
|
__epPropKey: true;
|
|
67
111
|
};
|
|
68
|
-
readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
69
112
|
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
70
113
|
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
71
114
|
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>;
|
|
@@ -86,46 +129,6 @@ export declare const props: {
|
|
|
86
129
|
__epPropKey: true;
|
|
87
130
|
};
|
|
88
131
|
isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
89
|
-
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
90
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
91
|
-
prop: {
|
|
92
|
-
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>>;
|
|
93
|
-
readonly required: false;
|
|
94
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
-
__epPropKey: true;
|
|
96
|
-
};
|
|
97
|
-
rules: {
|
|
98
|
-
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>>;
|
|
99
|
-
readonly required: false;
|
|
100
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
101
|
-
__epPropKey: true;
|
|
102
|
-
};
|
|
103
|
-
error: StringConstructor;
|
|
104
|
-
validateStatus: {
|
|
105
|
-
readonly type: 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
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
112
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
113
|
-
formItemSize: {
|
|
114
|
-
type: PropType<"default" | "small" | "large">;
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
formItemSlots: {
|
|
118
|
-
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
119
|
-
default: undefined;
|
|
120
|
-
};
|
|
121
|
-
elRef: {
|
|
122
|
-
type: PropType<any>;
|
|
123
|
-
required: boolean;
|
|
124
|
-
};
|
|
125
|
-
inline: {
|
|
126
|
-
type: BooleanConstructor;
|
|
127
|
-
default: boolean;
|
|
128
|
-
};
|
|
129
132
|
};
|
|
130
133
|
export declare const emits: {
|
|
131
134
|
'update:modelValue': null;
|
|
@@ -20,7 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
22
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
-
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props),
|
|
23
|
+
const props = __spreadProps(__spreadValues(__spreadValues({}, datePickerProps), _VkfFormItemCtx.props), {
|
|
24
24
|
datePickerSlots: {
|
|
25
25
|
type: Object,
|
|
26
26
|
default: void 0
|