@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _VkConfigRendererCtx, VkfConfigRenderer } from '@vunk/form/components/config-renderer';
|
|
2
2
|
import { bindPropsFactory, onEmitsFactory } from 'vunk/shared/utils-vue';
|
|
3
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx,
|
|
3
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, renderSlot } from 'vue';
|
|
4
4
|
import { VkfConfigRendererTemplate } from '@vunk/form/components/config-renderer-template';
|
|
5
5
|
import { VkfInputConfig } from '@vunk/form/components/input-config';
|
|
6
6
|
|
|
@@ -44,24 +44,9 @@ var script = defineComponent({
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
47
|
-
const _component_VkfInputConfig = resolveComponent("VkfInputConfig");
|
|
48
|
-
const _component_VkfConfigRendererTemplate = resolveComponent("VkfConfigRendererTemplate");
|
|
49
47
|
const _component_VkfConfigRenderer = resolveComponent("VkfConfigRenderer");
|
|
50
48
|
return openBlock(), createBlock(_component_VkfConfigRenderer, normalizeProps(guardReactiveProps(_ctx.configRendererProps)), {
|
|
51
49
|
default: withCtx(() => [
|
|
52
|
-
createVNode(_component_VkfConfigRendererTemplate, { type: "VkfInput" }, {
|
|
53
|
-
default: withCtx(({ data: sourceData }) => [
|
|
54
|
-
createVNode(_component_VkfInputConfig, mergeProps(sourceData, {
|
|
55
|
-
data: _ctx.data,
|
|
56
|
-
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event)),
|
|
57
|
-
"onUpdate:propDisabled": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("setData:source", {
|
|
58
|
-
k: "propDisabled",
|
|
59
|
-
v: $event
|
|
60
|
-
}))
|
|
61
|
-
}), null, 16, ["data"])
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}),
|
|
65
50
|
renderSlot(_ctx.$slots, "rendererTemplate")
|
|
66
51
|
]),
|
|
67
52
|
_: 3
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
.vkf-confirm-input .el-input-group__append {
|
|
3
|
-
cursor: initial;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.vkf-confirm-input .vkf-confirm-input-icon {
|
|
7
|
-
color: var(--el-color-primary);
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
1
|
+
|
|
2
|
+
.vkf-confirm-input .el-input-group__append {
|
|
3
|
+
cursor: initial;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.vkf-confirm-input .vkf-confirm-input-icon {
|
|
7
|
+
color: var(--el-color-primary);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _VkfInputCtx, VkfInput } from '@vunk/form/components/input';
|
|
2
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, ref, watch, h, resolveComponent, createBlock, mergeProps, toHandlers } from 'vue';
|
|
2
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, ref, watch, computed, h, resolveComponent, createBlock, mergeProps, toHandlers } from 'vue';
|
|
3
3
|
import { ElButton, ElIcon } from 'element-plus';
|
|
4
4
|
|
|
5
5
|
const props = {
|
|
@@ -7,6 +7,14 @@ const props = {
|
|
|
7
7
|
inputSlot: {
|
|
8
8
|
type: Object,
|
|
9
9
|
default: () => ({})
|
|
10
|
+
},
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
validateUpdate: {
|
|
16
|
+
type: Function,
|
|
17
|
+
default: () => () => true
|
|
10
18
|
}
|
|
11
19
|
};
|
|
12
20
|
const emits = {
|
|
@@ -79,21 +87,39 @@ var script = defineComponent({
|
|
|
79
87
|
watch(() => props2.modelValue, (v) => {
|
|
80
88
|
inputValue.value = v;
|
|
81
89
|
});
|
|
90
|
+
const _disabled = ref(true);
|
|
91
|
+
const disabled = computed({
|
|
92
|
+
get() {
|
|
93
|
+
return props2.disabled ?? _disabled.value;
|
|
94
|
+
},
|
|
95
|
+
set(v) {
|
|
96
|
+
_disabled.value = v;
|
|
97
|
+
emit("update:disabled", v);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
82
100
|
const appendEl = () => h(ElButton, {
|
|
83
101
|
onClick: () => {
|
|
84
|
-
if (!
|
|
85
|
-
|
|
102
|
+
if (!disabled.value) {
|
|
103
|
+
if (inputValue.value === props2.modelValue) {
|
|
104
|
+
disabled.value = true;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (props2.validateUpdate(inputValue.value)) {
|
|
108
|
+
emit("update:modelValue", inputValue.value);
|
|
109
|
+
disabled.value = true;
|
|
110
|
+
}
|
|
86
111
|
} else {
|
|
87
|
-
|
|
112
|
+
disabled.value = false;
|
|
88
113
|
}
|
|
89
114
|
}
|
|
90
115
|
}, () => h(ElIcon, {
|
|
91
116
|
class: "vkf-confirm-input-icon",
|
|
92
117
|
size: 16
|
|
93
|
-
}, () => h(
|
|
118
|
+
}, () => h(disabled.value ? edit : check)));
|
|
94
119
|
return {
|
|
95
120
|
inputProps,
|
|
96
121
|
appendEl,
|
|
122
|
+
disabled,
|
|
97
123
|
inputEmits,
|
|
98
124
|
inputValue
|
|
99
125
|
};
|
|
@@ -109,9 +135,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
109
135
|
inputSlots: {
|
|
110
136
|
append: _ctx.appendEl,
|
|
111
137
|
..._ctx.inputSlot
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
}, _ctx.inputProps, toHandlers(_ctx.inputEmits)), null, 16, ["modelValue", "inputSlots", "disabled"]);
|
|
138
|
+
}
|
|
139
|
+
}, _ctx.inputProps, toHandlers(_ctx.inputEmits), { disabled: _ctx.disabled }), null, 16, ["modelValue", "inputSlots", "disabled"]);
|
|
115
140
|
}
|
|
116
141
|
|
|
117
142
|
script.render = render;
|
|
@@ -7,6 +7,14 @@ export declare const props: {
|
|
|
7
7
|
}>;
|
|
8
8
|
default: () => {};
|
|
9
9
|
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
validateUpdate: {
|
|
15
|
+
type: PropType<(v?: any) => boolean | undefined>;
|
|
16
|
+
default: () => () => boolean;
|
|
17
|
+
};
|
|
10
18
|
inputSlots: {
|
|
11
19
|
type: PropType<import("../../input/src/types").InputSlots>;
|
|
12
20
|
default: undefined;
|
|
@@ -18,7 +26,6 @@ export declare const props: {
|
|
|
18
26
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
27
|
__epPropKey: true;
|
|
20
28
|
};
|
|
21
|
-
disabled: BooleanConstructor;
|
|
22
29
|
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>;
|
|
23
30
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
24
31
|
resize: {
|
|
@@ -6,6 +6,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
}>;
|
|
7
7
|
default: () => {};
|
|
8
8
|
};
|
|
9
|
+
disabled: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
validateUpdate: {
|
|
14
|
+
type: import("vue").PropType<(v?: any) => boolean | undefined>;
|
|
15
|
+
default: () => () => boolean;
|
|
16
|
+
};
|
|
9
17
|
inputSlots: {
|
|
10
18
|
type: import("vue").PropType<import("../../input/src/types").InputSlots>;
|
|
11
19
|
default: undefined;
|
|
@@ -17,7 +25,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
25
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
18
26
|
__epPropKey: true;
|
|
19
27
|
};
|
|
20
|
-
disabled: BooleanConstructor;
|
|
21
28
|
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
22
29
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
23
30
|
resize: {
|
|
@@ -128,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
135
|
appendEl: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
129
136
|
[key: string]: any;
|
|
130
137
|
}>;
|
|
138
|
+
disabled: import("vue").WritableComputedRef<boolean>;
|
|
131
139
|
inputEmits: {
|
|
132
140
|
"update:modelValue": ((event: "update:modelValue", value: string) => void) & ((event: "input", value: string) => void) & ((event: "change", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "update:disabled", e: boolean) => void);
|
|
133
141
|
input: ((event: "update:modelValue", value: string) => void) & ((event: "input", value: string) => void) & ((event: "change", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "update:disabled", e: boolean) => void);
|
|
@@ -165,6 +173,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
165
173
|
}>;
|
|
166
174
|
default: () => {};
|
|
167
175
|
};
|
|
176
|
+
disabled: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
validateUpdate: {
|
|
181
|
+
type: import("vue").PropType<(v?: any) => boolean | undefined>;
|
|
182
|
+
default: () => () => boolean;
|
|
183
|
+
};
|
|
168
184
|
inputSlots: {
|
|
169
185
|
type: import("vue").PropType<import("../../input/src/types").InputSlots>;
|
|
170
186
|
default: undefined;
|
|
@@ -176,7 +192,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
176
192
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
177
193
|
__epPropKey: true;
|
|
178
194
|
};
|
|
179
|
-
disabled: BooleanConstructor;
|
|
180
195
|
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
|
|
181
196
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
182
197
|
resize: {
|
|
@@ -293,5 +308,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
308
|
type: import("vue").PropType<import("../../input/src/types").InputSlots>;
|
|
294
309
|
default: undefined;
|
|
295
310
|
};
|
|
311
|
+
validateUpdate: (v?: any) => boolean | undefined;
|
|
296
312
|
}>;
|
|
297
313
|
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
+
import { datePickerProps, datePickerEmits as datePickerEmits$1 } from '@vunk/form/shared/element-plus/instances/date-picker';
|
|
3
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createSlots, renderList, resolveDynamicComponent } from 'vue';
|
|
4
|
+
import { ElDatePicker } from 'element-plus';
|
|
5
|
+
import { createDatePickerBindProps, createDatePickerOnEmits } from '@vunk/form/shared/element-plus/ctx';
|
|
6
|
+
|
|
7
|
+
const props = {
|
|
8
|
+
..._VkfFormItemCtx.props,
|
|
9
|
+
...datePickerProps,
|
|
10
|
+
datePickerSlots: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: void 0
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const emits = {
|
|
16
|
+
...datePickerEmits$1
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var script = defineComponent({
|
|
20
|
+
name: "VkfDatePicker",
|
|
21
|
+
components: {
|
|
22
|
+
VkfFormItem,
|
|
23
|
+
ElDatePicker
|
|
24
|
+
},
|
|
25
|
+
emits,
|
|
26
|
+
props,
|
|
27
|
+
setup(props2, { emit }) {
|
|
28
|
+
const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
|
|
29
|
+
const datePickerBindProps = createDatePickerBindProps(props2, ["type"]);
|
|
30
|
+
const datePickerOnEmits = createDatePickerOnEmits(emit);
|
|
31
|
+
return {
|
|
32
|
+
formItemBindProps,
|
|
33
|
+
datePickerBindProps,
|
|
34
|
+
datePickerOnEmits
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
40
|
+
const _component_ElDatePicker = resolveComponent("ElDatePicker");
|
|
41
|
+
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
42
|
+
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
43
|
+
default: withCtx(() => [
|
|
44
|
+
createVNode(_component_ElDatePicker, mergeProps(_ctx.datePickerBindProps, { type: _ctx.type }, toHandlers(_ctx.datePickerOnEmits)), createSlots({ _: 2 }, [
|
|
45
|
+
renderList(_ctx.datePickerSlots, (item, key) => {
|
|
46
|
+
return {
|
|
47
|
+
name: key,
|
|
48
|
+
fn: withCtx((e) => [
|
|
49
|
+
(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))
|
|
50
|
+
])
|
|
51
|
+
};
|
|
52
|
+
})
|
|
53
|
+
]), 1040, ["type"])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 16);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
script.render = render;
|
|
60
|
+
script.__file = "date-picker/src/index.vue";
|
|
61
|
+
|
|
62
|
+
const datePickerEmits = {
|
|
63
|
+
"update:modelValue": null,
|
|
64
|
+
"change": null,
|
|
65
|
+
"focus": null,
|
|
66
|
+
"blur": null,
|
|
67
|
+
"calendar-change": null,
|
|
68
|
+
"panel-change": null,
|
|
69
|
+
"visible-change": null
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
73
|
+
__proto__: null,
|
|
74
|
+
datePickerEmits: datePickerEmits
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
script.install = (app) => {
|
|
78
|
+
app.component(script.name, script);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { script as VkfDatePicker, types as __VkfDatePicker, script as default };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DatePickerSlots } from './types';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
datePickerSlots: {
|
|
5
|
+
type: PropType<DatePickerSlots>;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: PropType<"date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
id: {
|
|
13
|
+
readonly type: 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>>;
|
|
14
|
+
readonly required: false;
|
|
15
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
16
|
+
__epPropKey: true;
|
|
17
|
+
};
|
|
18
|
+
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>;
|
|
19
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
20
|
+
format: StringConstructor;
|
|
21
|
+
valueFormat: StringConstructor;
|
|
22
|
+
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
23
|
+
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>;
|
|
24
|
+
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
25
|
+
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>;
|
|
26
|
+
size: {
|
|
27
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
28
|
+
readonly required: false;
|
|
29
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
|
+
__epPropKey: true;
|
|
31
|
+
};
|
|
32
|
+
readonly: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
33
|
+
disabled: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
34
|
+
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
35
|
+
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>;
|
|
36
|
+
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>;
|
|
37
|
+
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
38
|
+
startPlaceholder: StringConstructor;
|
|
39
|
+
endPlaceholder: StringConstructor;
|
|
40
|
+
defaultValue: {
|
|
41
|
+
readonly type: 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>>;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
+
__epPropKey: true;
|
|
45
|
+
};
|
|
46
|
+
defaultTime: {
|
|
47
|
+
readonly type: 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>>;
|
|
48
|
+
readonly required: false;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
+
__epPropKey: true;
|
|
51
|
+
};
|
|
52
|
+
isRange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
53
|
+
disabledHours: {
|
|
54
|
+
readonly type: PropType<Function>;
|
|
55
|
+
readonly required: false;
|
|
56
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
57
|
+
__epPropKey: true;
|
|
58
|
+
};
|
|
59
|
+
disabledMinutes: {
|
|
60
|
+
readonly type: PropType<Function>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
+
__epPropKey: true;
|
|
64
|
+
};
|
|
65
|
+
disabledSeconds: {
|
|
66
|
+
readonly type: PropType<Function>;
|
|
67
|
+
readonly required: false;
|
|
68
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
|
+
__epPropKey: true;
|
|
70
|
+
};
|
|
71
|
+
disabledDate: {
|
|
72
|
+
readonly type: PropType<Function>;
|
|
73
|
+
readonly required: false;
|
|
74
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
75
|
+
__epPropKey: true;
|
|
76
|
+
};
|
|
77
|
+
cellClassName: {
|
|
78
|
+
readonly type: PropType<Function>;
|
|
79
|
+
readonly required: false;
|
|
80
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
|
+
__epPropKey: true;
|
|
82
|
+
};
|
|
83
|
+
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
84
|
+
arrowControl: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
85
|
+
label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
86
|
+
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>;
|
|
87
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
88
|
+
unlinkPanels: BooleanConstructor;
|
|
89
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
90
|
+
rules: {
|
|
91
|
+
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>>;
|
|
92
|
+
readonly required: false;
|
|
93
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
94
|
+
__epPropKey: true;
|
|
95
|
+
};
|
|
96
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
97
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
98
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
99
|
+
prop: {
|
|
100
|
+
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>>;
|
|
101
|
+
readonly required: false;
|
|
102
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
|
+
__epPropKey: true;
|
|
104
|
+
};
|
|
105
|
+
error: StringConstructor;
|
|
106
|
+
validateStatus: {
|
|
107
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
108
|
+
readonly required: false;
|
|
109
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
110
|
+
__epPropKey: true;
|
|
111
|
+
};
|
|
112
|
+
for: StringConstructor;
|
|
113
|
+
formItemSize: {
|
|
114
|
+
type: PropType<"small" | "default" | "large">;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
formItemSlots: {
|
|
118
|
+
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
119
|
+
default: undefined;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export declare const emits: {
|
|
123
|
+
'update:modelValue': null;
|
|
124
|
+
change: null;
|
|
125
|
+
focus: null;
|
|
126
|
+
blur: null;
|
|
127
|
+
'calendar-change': null;
|
|
128
|
+
'panel-change': null;
|
|
129
|
+
'visible-change': null;
|
|
130
|
+
keydown: null;
|
|
131
|
+
};
|