@vunk/form 0.0.0-alpha.3 → 0.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/date-picker/index.d.ts +4 -0
- package/components/date-picker/index.js +81 -0
- package/components/date-picker/src/ctx.d.ts +163 -0
- package/components/date-picker/src/index.vue.d.ts +407 -0
- package/components/date-picker/src/types.d.ts +14 -0
- package/components/form/index.js +16 -1
- package/components/ground/index.css +6 -3
- package/components/ground/index.js +50 -22
- package/components/ground/src/ground-main/src/index.vue.d.ts +5 -1
- package/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +594 -0
- package/components/ground/src/index.vue.d.ts +30 -5
- package/components/select/index.js +20 -6
- package/components/select/src/ctx.d.ts +5 -0
- package/components/select/src/index.vue.d.ts +9 -0
- package/components/select/src/types.d.ts +5 -3
- package/full-entry/main.d.ts +1 -1
- package/index.css +6 -3
- package/index.d.ts +11 -9
- package/index.esm.js +1 -1
- package/package.json +1 -1
- package/shared/element-plus/ctx/index.d.ts +2 -0
- package/shared/element-plus/ctx/index.js +22 -2
- package/shared/element-plus/instances/date-picker.d.ts +126 -0
- package/shared/element-plus/instances/date-picker.js +21 -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 +1 -0
- package/shared/types/index.d.ts +2 -2
- package/shared/types/shared/index.d.ts +4 -0
- package/types/components/date-picker/index.d.ts +4 -0
- package/types/components/date-picker/src/ctx.d.ts +163 -0
- package/types/components/date-picker/src/index.vue.d.ts +407 -0
- package/types/components/date-picker/src/types.d.ts +14 -0
- package/types/components/ground/src/ground-main/src/index.vue.d.ts +5 -1
- package/types/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +594 -0
- package/types/components/ground/src/index.vue.d.ts +30 -5
- package/types/components/select/src/ctx.d.ts +5 -0
- package/types/components/select/src/index.vue.d.ts +9 -0
- package/types/components/select/src/types.d.ts +5 -3
- package/types/full-entry/main.d.ts +1 -1
- package/types/shared/element-plus/ctx/index.d.ts +2 -0
- package/types/shared/element-plus/instances/date-picker.d.ts +126 -0
- package/types/shared/types/form-item/date-picker.d.ts +8 -0
- package/types/shared/types/form-item/index.d.ts +1 -0
- package/types/shared/types/index.d.ts +2 -2
- package/types/shared/types/shared/index.d.ts +4 -0
|
@@ -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,163 @@
|
|
|
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
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
14
|
+
};
|
|
15
|
+
name: {
|
|
16
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
popperClass: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
format: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
valueFormat: {
|
|
27
|
+
type: PropType<string>;
|
|
28
|
+
};
|
|
29
|
+
clearable: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
clearIcon: {
|
|
34
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
35
|
+
default: 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<{}>>, {}>;
|
|
36
|
+
};
|
|
37
|
+
editable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
prefixIcon: {
|
|
42
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
size: {
|
|
46
|
+
type: PropType<"" | "small" | "default" | "large">;
|
|
47
|
+
validator: (val: string) => val is "" | "small" | "default" | "large";
|
|
48
|
+
};
|
|
49
|
+
readonly: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
disabled: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
placeholder: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
popperOptions: {
|
|
62
|
+
type: PropType<Partial<import("element-plus").Options>>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
|
+
modelValue: {
|
|
66
|
+
type: PropType<string | number | Date | (string | number | Date)[]>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
rangeSeparator: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
startPlaceholder: StringConstructor;
|
|
74
|
+
endPlaceholder: StringConstructor;
|
|
75
|
+
defaultValue: {
|
|
76
|
+
type: PropType<Date | Date[]>;
|
|
77
|
+
};
|
|
78
|
+
defaultTime: {
|
|
79
|
+
type: PropType<Date | Date[]>;
|
|
80
|
+
};
|
|
81
|
+
isRange: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
disabledHours: {
|
|
86
|
+
type: FunctionConstructor;
|
|
87
|
+
};
|
|
88
|
+
disabledMinutes: {
|
|
89
|
+
type: FunctionConstructor;
|
|
90
|
+
};
|
|
91
|
+
disabledSeconds: {
|
|
92
|
+
type: FunctionConstructor;
|
|
93
|
+
};
|
|
94
|
+
disabledDate: {
|
|
95
|
+
type: FunctionConstructor;
|
|
96
|
+
};
|
|
97
|
+
cellClassName: {
|
|
98
|
+
type: FunctionConstructor;
|
|
99
|
+
};
|
|
100
|
+
shortcuts: {
|
|
101
|
+
type: ArrayConstructor;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
arrowControl: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
label: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
tabindex: {
|
|
113
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
validateEvent: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
unlinkPanels: BooleanConstructor;
|
|
121
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
122
|
+
rules: {
|
|
123
|
+
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>>;
|
|
124
|
+
readonly required: false;
|
|
125
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
+
__epPropKey: true;
|
|
127
|
+
};
|
|
128
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
129
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
130
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
131
|
+
prop: {
|
|
132
|
+
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>>;
|
|
133
|
+
readonly required: false;
|
|
134
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
135
|
+
__epPropKey: true;
|
|
136
|
+
};
|
|
137
|
+
error: StringConstructor;
|
|
138
|
+
validateStatus: {
|
|
139
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
140
|
+
readonly required: false;
|
|
141
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
142
|
+
__epPropKey: true;
|
|
143
|
+
};
|
|
144
|
+
for: StringConstructor;
|
|
145
|
+
formItemSize: {
|
|
146
|
+
type: PropType<"small" | "default" | "large">;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
formItemSlots: {
|
|
150
|
+
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export declare const emits: {
|
|
155
|
+
'update:modelValue': null;
|
|
156
|
+
change: null;
|
|
157
|
+
focus: null;
|
|
158
|
+
blur: null;
|
|
159
|
+
'calendar-change': null;
|
|
160
|
+
'panel-change': null;
|
|
161
|
+
'visible-change': null;
|
|
162
|
+
keydown: null;
|
|
163
|
+
};
|
|
@@ -0,0 +1,407 @@
|
|
|
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
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
popperClass: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
format: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
valueFormat: {
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
|
+
};
|
|
27
|
+
clearable: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
clearIcon: {
|
|
32
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
33
|
+
default: 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<{}>>, {}>;
|
|
34
|
+
};
|
|
35
|
+
editable: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
prefixIcon: {
|
|
40
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
45
|
+
validator: (val: string) => val is "" | "small" | "default" | "large";
|
|
46
|
+
};
|
|
47
|
+
readonly: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
disabled: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
placeholder: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
popperOptions: {
|
|
60
|
+
type: import("vue").PropType<Partial<import("element-plus").Options>>;
|
|
61
|
+
default: () => {};
|
|
62
|
+
};
|
|
63
|
+
modelValue: {
|
|
64
|
+
type: import("vue").PropType<string | number | Date | (string | number | Date)[]>;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
rangeSeparator: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
startPlaceholder: StringConstructor;
|
|
72
|
+
endPlaceholder: StringConstructor;
|
|
73
|
+
defaultValue: {
|
|
74
|
+
type: import("vue").PropType<Date | Date[]>;
|
|
75
|
+
};
|
|
76
|
+
defaultTime: {
|
|
77
|
+
type: import("vue").PropType<Date | Date[]>;
|
|
78
|
+
};
|
|
79
|
+
isRange: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
disabledHours: {
|
|
84
|
+
type: FunctionConstructor;
|
|
85
|
+
};
|
|
86
|
+
disabledMinutes: {
|
|
87
|
+
type: FunctionConstructor;
|
|
88
|
+
};
|
|
89
|
+
disabledSeconds: {
|
|
90
|
+
type: FunctionConstructor;
|
|
91
|
+
};
|
|
92
|
+
disabledDate: {
|
|
93
|
+
type: FunctionConstructor;
|
|
94
|
+
};
|
|
95
|
+
cellClassName: {
|
|
96
|
+
type: FunctionConstructor;
|
|
97
|
+
};
|
|
98
|
+
shortcuts: {
|
|
99
|
+
type: ArrayConstructor;
|
|
100
|
+
default: () => never[];
|
|
101
|
+
};
|
|
102
|
+
arrowControl: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
label: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
tabindex: {
|
|
111
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
112
|
+
default: number;
|
|
113
|
+
};
|
|
114
|
+
validateEvent: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
unlinkPanels: BooleanConstructor;
|
|
119
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
120
|
+
rules: {
|
|
121
|
+
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>>;
|
|
122
|
+
readonly required: false;
|
|
123
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
124
|
+
__epPropKey: true;
|
|
125
|
+
};
|
|
126
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
127
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
128
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
129
|
+
prop: {
|
|
130
|
+
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>>;
|
|
131
|
+
readonly required: false;
|
|
132
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
133
|
+
__epPropKey: true;
|
|
134
|
+
};
|
|
135
|
+
error: StringConstructor;
|
|
136
|
+
validateStatus: {
|
|
137
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
138
|
+
readonly required: false;
|
|
139
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
140
|
+
__epPropKey: true;
|
|
141
|
+
};
|
|
142
|
+
for: StringConstructor;
|
|
143
|
+
formItemSize: {
|
|
144
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
formItemSlots: {
|
|
148
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
149
|
+
default: undefined;
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
formItemBindProps: import("vue").ComputedRef<{
|
|
153
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
154
|
+
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;
|
|
155
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
156
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
157
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
158
|
+
label: string | undefined;
|
|
159
|
+
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;
|
|
160
|
+
error: string | undefined;
|
|
161
|
+
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
162
|
+
for: string | undefined;
|
|
163
|
+
formItemSize: "small" | "default" | "large";
|
|
164
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots | undefined;
|
|
165
|
+
}>;
|
|
166
|
+
datePickerBindProps: import("vue").ComputedRef<{
|
|
167
|
+
name: string | unknown[];
|
|
168
|
+
size: "" | "small" | "default" | "large" | undefined;
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
id: string | unknown[] | undefined;
|
|
171
|
+
modelValue: string | number | Date | (string | number | Date)[];
|
|
172
|
+
placeholder: string;
|
|
173
|
+
readonly: boolean;
|
|
174
|
+
clearable: boolean;
|
|
175
|
+
prefixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
176
|
+
label: string | undefined;
|
|
177
|
+
tabindex: string | number;
|
|
178
|
+
validateEvent: boolean;
|
|
179
|
+
popperClass: string;
|
|
180
|
+
clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
181
|
+
format: string | undefined;
|
|
182
|
+
valueFormat: string | undefined;
|
|
183
|
+
editable: boolean;
|
|
184
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
185
|
+
rangeSeparator: string;
|
|
186
|
+
startPlaceholder: string | undefined;
|
|
187
|
+
endPlaceholder: string | undefined;
|
|
188
|
+
defaultValue: Date | Date[] | undefined;
|
|
189
|
+
defaultTime: Date | Date[] | undefined;
|
|
190
|
+
isRange: boolean;
|
|
191
|
+
disabledHours: Function | undefined;
|
|
192
|
+
disabledMinutes: Function | undefined;
|
|
193
|
+
disabledSeconds: Function | undefined;
|
|
194
|
+
disabledDate: Function | undefined;
|
|
195
|
+
cellClassName: Function | undefined;
|
|
196
|
+
shortcuts: unknown[];
|
|
197
|
+
arrowControl: boolean;
|
|
198
|
+
unlinkPanels: boolean;
|
|
199
|
+
}>;
|
|
200
|
+
datePickerOnEmits: {
|
|
201
|
+
"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);
|
|
202
|
+
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);
|
|
203
|
+
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);
|
|
204
|
+
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);
|
|
205
|
+
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);
|
|
206
|
+
"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);
|
|
207
|
+
"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);
|
|
208
|
+
"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);
|
|
209
|
+
};
|
|
210
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
211
|
+
'update:modelValue': null;
|
|
212
|
+
change: null;
|
|
213
|
+
focus: null;
|
|
214
|
+
blur: null;
|
|
215
|
+
'calendar-change': null;
|
|
216
|
+
'panel-change': null;
|
|
217
|
+
'visible-change': null;
|
|
218
|
+
keydown: null;
|
|
219
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
220
|
+
datePickerSlots: {
|
|
221
|
+
type: import("vue").PropType<import("./types").DatePickerSlots>;
|
|
222
|
+
default: undefined;
|
|
223
|
+
};
|
|
224
|
+
type: {
|
|
225
|
+
type: import("vue").PropType<"date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
|
|
226
|
+
default: string;
|
|
227
|
+
};
|
|
228
|
+
id: {
|
|
229
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
230
|
+
};
|
|
231
|
+
name: {
|
|
232
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
233
|
+
default: string;
|
|
234
|
+
};
|
|
235
|
+
popperClass: {
|
|
236
|
+
type: StringConstructor;
|
|
237
|
+
default: string;
|
|
238
|
+
};
|
|
239
|
+
format: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
};
|
|
242
|
+
valueFormat: {
|
|
243
|
+
type: import("vue").PropType<string>;
|
|
244
|
+
};
|
|
245
|
+
clearable: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: boolean;
|
|
248
|
+
};
|
|
249
|
+
clearIcon: {
|
|
250
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
251
|
+
default: 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<{}>>, {}>;
|
|
252
|
+
};
|
|
253
|
+
editable: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
prefixIcon: {
|
|
258
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
259
|
+
default: string;
|
|
260
|
+
};
|
|
261
|
+
size: {
|
|
262
|
+
type: import("vue").PropType<"" | "small" | "default" | "large">;
|
|
263
|
+
validator: (val: string) => val is "" | "small" | "default" | "large";
|
|
264
|
+
};
|
|
265
|
+
readonly: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: boolean;
|
|
268
|
+
};
|
|
269
|
+
disabled: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: boolean;
|
|
272
|
+
};
|
|
273
|
+
placeholder: {
|
|
274
|
+
type: StringConstructor;
|
|
275
|
+
default: string;
|
|
276
|
+
};
|
|
277
|
+
popperOptions: {
|
|
278
|
+
type: import("vue").PropType<Partial<import("element-plus").Options>>;
|
|
279
|
+
default: () => {};
|
|
280
|
+
};
|
|
281
|
+
modelValue: {
|
|
282
|
+
type: import("vue").PropType<string | number | Date | (string | number | Date)[]>;
|
|
283
|
+
default: string;
|
|
284
|
+
};
|
|
285
|
+
rangeSeparator: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
default: string;
|
|
288
|
+
};
|
|
289
|
+
startPlaceholder: StringConstructor;
|
|
290
|
+
endPlaceholder: StringConstructor;
|
|
291
|
+
defaultValue: {
|
|
292
|
+
type: import("vue").PropType<Date | Date[]>;
|
|
293
|
+
};
|
|
294
|
+
defaultTime: {
|
|
295
|
+
type: import("vue").PropType<Date | Date[]>;
|
|
296
|
+
};
|
|
297
|
+
isRange: {
|
|
298
|
+
type: BooleanConstructor;
|
|
299
|
+
default: boolean;
|
|
300
|
+
};
|
|
301
|
+
disabledHours: {
|
|
302
|
+
type: FunctionConstructor;
|
|
303
|
+
};
|
|
304
|
+
disabledMinutes: {
|
|
305
|
+
type: FunctionConstructor;
|
|
306
|
+
};
|
|
307
|
+
disabledSeconds: {
|
|
308
|
+
type: FunctionConstructor;
|
|
309
|
+
};
|
|
310
|
+
disabledDate: {
|
|
311
|
+
type: FunctionConstructor;
|
|
312
|
+
};
|
|
313
|
+
cellClassName: {
|
|
314
|
+
type: FunctionConstructor;
|
|
315
|
+
};
|
|
316
|
+
shortcuts: {
|
|
317
|
+
type: ArrayConstructor;
|
|
318
|
+
default: () => never[];
|
|
319
|
+
};
|
|
320
|
+
arrowControl: {
|
|
321
|
+
type: BooleanConstructor;
|
|
322
|
+
default: boolean;
|
|
323
|
+
};
|
|
324
|
+
label: {
|
|
325
|
+
type: StringConstructor;
|
|
326
|
+
default: undefined;
|
|
327
|
+
};
|
|
328
|
+
tabindex: {
|
|
329
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
330
|
+
default: number;
|
|
331
|
+
};
|
|
332
|
+
validateEvent: {
|
|
333
|
+
type: BooleanConstructor;
|
|
334
|
+
default: boolean;
|
|
335
|
+
};
|
|
336
|
+
unlinkPanels: BooleanConstructor;
|
|
337
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
338
|
+
rules: {
|
|
339
|
+
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>>;
|
|
340
|
+
readonly required: false;
|
|
341
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
342
|
+
__epPropKey: true;
|
|
343
|
+
};
|
|
344
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
345
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
346
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
347
|
+
prop: {
|
|
348
|
+
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>>;
|
|
349
|
+
readonly required: false;
|
|
350
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
351
|
+
__epPropKey: true;
|
|
352
|
+
};
|
|
353
|
+
error: StringConstructor;
|
|
354
|
+
validateStatus: {
|
|
355
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
356
|
+
readonly required: false;
|
|
357
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
358
|
+
__epPropKey: true;
|
|
359
|
+
};
|
|
360
|
+
for: StringConstructor;
|
|
361
|
+
formItemSize: {
|
|
362
|
+
type: import("vue").PropType<"small" | "default" | "large">;
|
|
363
|
+
default: string;
|
|
364
|
+
};
|
|
365
|
+
formItemSlots: {
|
|
366
|
+
type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
367
|
+
default: undefined;
|
|
368
|
+
};
|
|
369
|
+
}>> & {
|
|
370
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
371
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
372
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
373
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
374
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
375
|
+
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
376
|
+
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
377
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
name: string | unknown[];
|
|
380
|
+
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
381
|
+
type: "date" | "year" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange";
|
|
382
|
+
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
383
|
+
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
384
|
+
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
385
|
+
disabled: boolean;
|
|
386
|
+
modelValue: string | number | Date | (string | number | Date)[];
|
|
387
|
+
placeholder: string;
|
|
388
|
+
readonly: boolean;
|
|
389
|
+
clearable: boolean;
|
|
390
|
+
prefixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
391
|
+
label: string;
|
|
392
|
+
tabindex: string | number;
|
|
393
|
+
validateEvent: boolean;
|
|
394
|
+
formItemSize: "small" | "default" | "large";
|
|
395
|
+
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
396
|
+
popperClass: string;
|
|
397
|
+
clearIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
398
|
+
editable: boolean;
|
|
399
|
+
popperOptions: Partial<import("element-plus").Options>;
|
|
400
|
+
rangeSeparator: string;
|
|
401
|
+
isRange: boolean;
|
|
402
|
+
shortcuts: unknown[];
|
|
403
|
+
arrowControl: boolean;
|
|
404
|
+
unlinkPanels: boolean;
|
|
405
|
+
datePickerSlots: import("./types").DatePickerSlots;
|
|
406
|
+
}>;
|
|
407
|
+
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
|
+
};
|