@vunk/form 2.16.11 → 2.17.0
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/templates-default/index.cjs +10 -0
- package/components/templates-default/index.mjs +10 -0
- package/components/templates-default/src/index.vue.d.ts +11 -0
- package/components/templates-default/src/types.d.ts +3 -1
- package/components/time-picker/index.cjs +114 -0
- package/components/time-picker/index.d.ts +5 -0
- package/components/time-picker/index.mjs +107 -0
- package/components/time-picker/src/ctx.d.ts +364 -0
- package/components/time-picker/src/index.vue.d.ts +1670 -0
- package/components/time-picker/src/types.d.ts +19 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/package.json +6 -1
- package/shared/const/index.d.ts +1 -1
- package/shared/element-plus/ctx.d.ts +9 -0
- package/shared/element-plus/index.cjs +17 -0
- package/shared/element-plus/index.mjs +14 -1
- package/shared/element-plus/instances.d.ts +260 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Func, VueComponentPropsType } from '@vunk/core';
|
|
2
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
3
|
+
import VkfTimePicker from './index.vue';
|
|
4
|
+
export type TimePickerSlots = {
|
|
5
|
+
default?: Func;
|
|
6
|
+
'range-separator'?: Func;
|
|
7
|
+
};
|
|
8
|
+
export declare const timePickerEmits: {
|
|
9
|
+
'update:modelValue': any;
|
|
10
|
+
change: any;
|
|
11
|
+
focus: any;
|
|
12
|
+
blur: any;
|
|
13
|
+
'visible-change': any;
|
|
14
|
+
keydown: any;
|
|
15
|
+
};
|
|
16
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof VkfTimePicker>, BasicSource {
|
|
17
|
+
prop?: P;
|
|
18
|
+
templateType: 'VkfTimePicker';
|
|
19
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from '@vunk/form/components/switch';
|
|
|
18
18
|
export * from '@vunk/form/components/color-picker';
|
|
19
19
|
export * from '@vunk/form/components/upload';
|
|
20
20
|
export * from '@vunk/form/components/date-picker';
|
|
21
|
+
export * from '@vunk/form/components/time-picker';
|
|
21
22
|
export * from '@vunk/form/components/button';
|
|
22
23
|
export * from '@vunk/form/components/cascader';
|
|
23
24
|
export * from '@vunk/form/components/input-link';
|
package/index.esm.js
CHANGED
|
@@ -19,6 +19,7 @@ export * from '@vunk/form/components/switch';
|
|
|
19
19
|
export * from '@vunk/form/components/color-picker';
|
|
20
20
|
export * from '@vunk/form/components/upload';
|
|
21
21
|
export * from '@vunk/form/components/date-picker';
|
|
22
|
+
export * from '@vunk/form/components/time-picker';
|
|
22
23
|
export * from '@vunk/form/components/button';
|
|
23
24
|
export * from '@vunk/form/components/cascader';
|
|
24
25
|
export * from '@vunk/form/components/input-link';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunk/form",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.esm.js",
|
|
6
6
|
"scripts": {
|
|
@@ -115,6 +115,11 @@
|
|
|
115
115
|
"types": "./components/upload/index.d.ts",
|
|
116
116
|
"require": "./components/upload/index.cjs"
|
|
117
117
|
},
|
|
118
|
+
"./components/time-picker": {
|
|
119
|
+
"import": "./components/time-picker/index.mjs",
|
|
120
|
+
"types": "./components/time-picker/index.d.ts",
|
|
121
|
+
"require": "./components/time-picker/index.cjs"
|
|
122
|
+
},
|
|
118
123
|
"./components/templates-variant": {
|
|
119
124
|
"import": "./components/templates-variant/index.mjs",
|
|
120
125
|
"types": "./components/templates-variant/index.d.ts",
|
package/shared/const/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Media } from '@vunk/core';
|
|
2
2
|
import { AllTemplatesSource } from '@vunk/form/shared';
|
|
3
3
|
export declare const CORE_FORM_TEMPLATE_OPTIONS: Media<AllTemplatesSource['templateType']>[];
|
|
4
|
-
export declare const CORE_FORM_TEMPLATE_REFLECT: Record<string, Media<"ElRow" | "ElCol" | "VkfFlex" | "ElDivider" | "ElLink" | "VkfEsriInputGeojson" | "VkfInput" | "VkfDatePickerRange" | "Component" | "VkfSwitch" | "VkfSelect" | "VkfDatePicker" | "VkfInputNumber" | "VkfRadio" | "VkfCheckbox" | "VkfUpload" | "VkfColorPicker" | "VkfButton" | "VkfCascader" | "VkfInputLink" | "VkfSlider" | "VkfInputTag">>;
|
|
4
|
+
export declare const CORE_FORM_TEMPLATE_REFLECT: Record<string, Media<"ElRow" | "ElCol" | "VkfFlex" | "ElDivider" | "ElLink" | "VkfEsriInputGeojson" | "VkfInput" | "VkfDatePickerRange" | "Component" | "VkfSwitch" | "VkfSelect" | "VkfDatePicker" | "VkfTimePicker" | "VkfInputNumber" | "VkfRadio" | "VkfCheckbox" | "VkfUpload" | "VkfColorPicker" | "VkfButton" | "VkfCascader" | "VkfInputLink" | "VkfSlider" | "VkfInputTag">>;
|
|
@@ -46,6 +46,15 @@ export declare const createDatePickerOnEmits: <T2 extends import("@vunk/core").A
|
|
|
46
46
|
'visible-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
47
47
|
keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
48
48
|
}[P]; };
|
|
49
|
+
export declare const createTimePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"readonly", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"placement", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"showNow", keyof T2> | Extract<"showConfirm", keyof T2> | Extract<"showFooter", keyof T2> | Extract<"showWeekNumber", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"placement", keyof T2>, KE> | Exclude<Extract<"emptyValues", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"popperStyle", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"fallbackPlacements", keyof T2>, KE> | Exclude<Extract<"showNow", keyof T2>, KE> | Exclude<Extract<"showConfirm", keyof T2>, KE> | Exclude<Extract<"showFooter", keyof T2>, KE> | Exclude<Extract<"showWeekNumber", keyof T2>, KE> | Exclude<Extract<"disabledDate", keyof T2>, KE> | Exclude<Extract<"cellClassName", keyof T2>, KE> | Exclude<Extract<"shortcuts", keyof T2>, KE> | Exclude<Extract<"arrowControl", keyof T2>, KE> | Exclude<Extract<"unlinkPanels", keyof T2>, KE> | Exclude<Extract<"disabledHours", keyof T2>, KE> | Exclude<Extract<"disabledMinutes", keyof T2>, KE> | Exclude<Extract<"disabledSeconds", keyof T2>, KE> | Exclude<Extract<"format", keyof T2>, KE> | Exclude<Extract<"valueFormat", keyof T2>, KE> | Exclude<Extract<"dateFormat", keyof T2>, KE> | Exclude<Extract<"timeFormat", keyof T2>, KE> | Exclude<Extract<"editable", keyof T2>, KE> | Exclude<Extract<"rangeSeparator", keyof T2>, KE> | Exclude<Extract<"startPlaceholder", keyof T2>, KE> | Exclude<Extract<"endPlaceholder", keyof T2>, KE> | Exclude<Extract<"defaultValue", keyof T2>, KE> | Exclude<Extract<"defaultTime", keyof T2>, KE> | Exclude<Extract<"isRange", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"readonly", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"placement", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"showNow", keyof T2> | Extract<"showConfirm", keyof T2> | Extract<"showFooter", keyof T2> | Extract<"showWeekNumber", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"readonly", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"placement", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"showNow", keyof T2> | Extract<"showConfirm", keyof T2> | Extract<"showFooter", keyof T2> | Extract<"showWeekNumber", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>]: T2[k]; }[P]; }>;
|
|
50
|
+
export declare const createTimePickerOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"keydown", KE> | Exclude<"visible-change", KE> : "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change"]: {
|
|
51
|
+
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
52
|
+
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
53
|
+
focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
54
|
+
blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
55
|
+
'visible-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
56
|
+
keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
57
|
+
}[P]; };
|
|
49
58
|
export declare const createInputNumberBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"align", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"readonly", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledScientific", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"align", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"min", keyof T2>, KE> | Exclude<Extract<"max", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"disabledScientific", keyof T2>, KE> | Exclude<Extract<"step", keyof T2>, KE> | Exclude<Extract<"stepStrictly", keyof T2>, KE> | Exclude<Extract<"controls", keyof T2>, KE> | Exclude<Extract<"controlsPosition", keyof T2>, KE> | Exclude<Extract<"precision", keyof T2>, KE> : Extract<"align", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"readonly", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledScientific", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2>]: { [k in Extract<"align", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"readonly", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledScientific", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2> | Extract<"precision", keyof T2>]: T2[k]; }[P]; }>;
|
|
50
59
|
export declare const createInputNumberOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change" | "focus" | "blur")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"input", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> : "update:modelValue" | "input" | "change" | "focus" | "blur"]: {
|
|
51
60
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -20,6 +20,17 @@ const datePickerEmits = {
|
|
|
20
20
|
"visible-change": null,
|
|
21
21
|
"keydown": null
|
|
22
22
|
};
|
|
23
|
+
const timePickerProps = {
|
|
24
|
+
...elementPlus.timePickerDefaultProps
|
|
25
|
+
};
|
|
26
|
+
const timePickerEmits = {
|
|
27
|
+
"update:modelValue": null,
|
|
28
|
+
"change": null,
|
|
29
|
+
"focus": null,
|
|
30
|
+
"blur": null,
|
|
31
|
+
"visible-change": null,
|
|
32
|
+
"keydown": null
|
|
33
|
+
};
|
|
23
34
|
|
|
24
35
|
const createInputBindProps = utilsVue.bindPropsFactory(elementPlus.inputProps);
|
|
25
36
|
const createInputOnEmits = utilsVue.onEmitsFactory(elementPlus.inputEmits);
|
|
@@ -32,6 +43,8 @@ const createSelectBindProps = utilsVue.bindPropsFactory(elementPlus.selectProps)
|
|
|
32
43
|
const createSelectOnEmits = utilsVue.onEmitsFactory(elementPlus.selectEmits);
|
|
33
44
|
const createDatePickerBindProps = utilsVue.bindPropsFactory(datePickerProps);
|
|
34
45
|
const createDatePickerOnEmits = utilsVue.onEmitsFactory(datePickerEmits);
|
|
46
|
+
const createTimePickerBindProps = utilsVue.bindPropsFactory(timePickerProps);
|
|
47
|
+
const createTimePickerOnEmits = utilsVue.onEmitsFactory(timePickerEmits);
|
|
35
48
|
const createInputNumberBindProps = utilsVue.bindPropsFactory(elementPlus.inputNumberProps);
|
|
36
49
|
const createInputNumberOnEmits = utilsVue.onEmitsFactory(elementPlus.inputNumberEmits);
|
|
37
50
|
const createRadioGroupBindProps = utilsVue.bindPropsFactory(elementPlus.radioGroupProps);
|
|
@@ -188,7 +201,11 @@ exports.createSwitchBindProps = createSwitchBindProps;
|
|
|
188
201
|
exports.createSwitchOnEmits = createSwitchOnEmits;
|
|
189
202
|
exports.createTagBindProps = createTagBindProps;
|
|
190
203
|
exports.createTagOnEmits = createTagOnEmits;
|
|
204
|
+
exports.createTimePickerBindProps = createTimePickerBindProps;
|
|
205
|
+
exports.createTimePickerOnEmits = createTimePickerOnEmits;
|
|
191
206
|
exports.createUploadBindProps = createUploadBindProps;
|
|
192
207
|
exports.datePickerEmits = datePickerEmits;
|
|
193
208
|
exports.datePickerProps = datePickerProps;
|
|
194
209
|
exports.isGte2_6_0 = isGte2_6_0;
|
|
210
|
+
exports.timePickerEmits = timePickerEmits;
|
|
211
|
+
exports.timePickerProps = timePickerProps;
|
|
@@ -18,6 +18,17 @@ const datePickerEmits = {
|
|
|
18
18
|
"visible-change": null,
|
|
19
19
|
"keydown": null
|
|
20
20
|
};
|
|
21
|
+
const timePickerProps = {
|
|
22
|
+
...timePickerDefaultProps
|
|
23
|
+
};
|
|
24
|
+
const timePickerEmits = {
|
|
25
|
+
"update:modelValue": null,
|
|
26
|
+
"change": null,
|
|
27
|
+
"focus": null,
|
|
28
|
+
"blur": null,
|
|
29
|
+
"visible-change": null,
|
|
30
|
+
"keydown": null
|
|
31
|
+
};
|
|
21
32
|
|
|
22
33
|
const createInputBindProps = bindPropsFactory(inputProps);
|
|
23
34
|
const createInputOnEmits = onEmitsFactory(inputEmits);
|
|
@@ -30,6 +41,8 @@ const createSelectBindProps = bindPropsFactory(selectProps);
|
|
|
30
41
|
const createSelectOnEmits = onEmitsFactory(selectEmits);
|
|
31
42
|
const createDatePickerBindProps = bindPropsFactory(datePickerProps);
|
|
32
43
|
const createDatePickerOnEmits = onEmitsFactory(datePickerEmits);
|
|
44
|
+
const createTimePickerBindProps = bindPropsFactory(timePickerProps);
|
|
45
|
+
const createTimePickerOnEmits = onEmitsFactory(timePickerEmits);
|
|
33
46
|
const createInputNumberBindProps = bindPropsFactory(inputNumberProps);
|
|
34
47
|
const createInputNumberOnEmits = onEmitsFactory(inputNumberEmits);
|
|
35
48
|
const createRadioGroupBindProps = bindPropsFactory(radioGroupProps);
|
|
@@ -157,4 +170,4 @@ const assertValidOperator = (op) => {
|
|
|
157
170
|
|
|
158
171
|
const isGte2_6_0 = compare(version, "2.6.0", ">=");
|
|
159
172
|
|
|
160
|
-
export { createButtonBindProps, createButtonOnEmits, createCascaderBindProps, createCascaderOnEmits, createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createColorPickerBindProps, createColorPickerOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createInputTagBindProps, createInputTagOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSliderBindProps, createSliderOnEmits, createSwitchBindProps, createSwitchOnEmits, createTagBindProps, createTagOnEmits, createUploadBindProps, datePickerEmits, datePickerProps, isGte2_6_0 };
|
|
173
|
+
export { createButtonBindProps, createButtonOnEmits, createCascaderBindProps, createCascaderOnEmits, createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createColorPickerBindProps, createColorPickerOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createInputTagBindProps, createInputTagOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSliderBindProps, createSliderOnEmits, createSwitchBindProps, createSwitchOnEmits, createTagBindProps, createTagOnEmits, createTimePickerBindProps, createTimePickerOnEmits, createUploadBindProps, datePickerEmits, datePickerProps, isGte2_6_0, timePickerEmits, timePickerProps };
|
|
@@ -258,3 +258,263 @@ export declare const datePickerEmits: {
|
|
|
258
258
|
'visible-change': any;
|
|
259
259
|
keydown: any;
|
|
260
260
|
};
|
|
261
|
+
export declare const timePickerProps: {
|
|
262
|
+
showNow: {
|
|
263
|
+
readonly type: PropType<boolean>;
|
|
264
|
+
readonly required: false;
|
|
265
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
266
|
+
__epPropKey: true;
|
|
267
|
+
} & {
|
|
268
|
+
readonly default: true;
|
|
269
|
+
};
|
|
270
|
+
showConfirm: {
|
|
271
|
+
readonly type: PropType<boolean>;
|
|
272
|
+
readonly required: false;
|
|
273
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
274
|
+
__epPropKey: true;
|
|
275
|
+
} & {
|
|
276
|
+
readonly default: true;
|
|
277
|
+
};
|
|
278
|
+
showFooter: {
|
|
279
|
+
readonly type: PropType<boolean>;
|
|
280
|
+
readonly required: false;
|
|
281
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
282
|
+
__epPropKey: true;
|
|
283
|
+
} & {
|
|
284
|
+
readonly default: true;
|
|
285
|
+
};
|
|
286
|
+
showWeekNumber: BooleanConstructor;
|
|
287
|
+
ariaLabel: StringConstructor;
|
|
288
|
+
emptyValues: ArrayConstructor;
|
|
289
|
+
valueOnClear: {
|
|
290
|
+
readonly type: PropType<string | number | boolean | Function>;
|
|
291
|
+
readonly required: false;
|
|
292
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
293
|
+
__epPropKey: true;
|
|
294
|
+
} & {
|
|
295
|
+
readonly default: undefined;
|
|
296
|
+
};
|
|
297
|
+
disabledDate: {
|
|
298
|
+
readonly type: PropType<Function>;
|
|
299
|
+
readonly required: false;
|
|
300
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
301
|
+
__epPropKey: true;
|
|
302
|
+
};
|
|
303
|
+
cellClassName: {
|
|
304
|
+
readonly type: PropType<Function>;
|
|
305
|
+
readonly required: false;
|
|
306
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
307
|
+
__epPropKey: true;
|
|
308
|
+
};
|
|
309
|
+
shortcuts: {
|
|
310
|
+
readonly type: PropType<unknown[]>;
|
|
311
|
+
readonly required: false;
|
|
312
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
313
|
+
__epPropKey: true;
|
|
314
|
+
} & {
|
|
315
|
+
readonly default: () => never[];
|
|
316
|
+
};
|
|
317
|
+
arrowControl: BooleanConstructor;
|
|
318
|
+
tabindex: {
|
|
319
|
+
readonly type: PropType<string | number>;
|
|
320
|
+
readonly required: false;
|
|
321
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
322
|
+
__epPropKey: true;
|
|
323
|
+
} & {
|
|
324
|
+
readonly default: 0;
|
|
325
|
+
};
|
|
326
|
+
validateEvent: {
|
|
327
|
+
readonly type: PropType<boolean>;
|
|
328
|
+
readonly required: false;
|
|
329
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
330
|
+
__epPropKey: true;
|
|
331
|
+
} & {
|
|
332
|
+
readonly default: true;
|
|
333
|
+
};
|
|
334
|
+
unlinkPanels: BooleanConstructor;
|
|
335
|
+
placement: {
|
|
336
|
+
readonly type: PropType<import("element-plus").Placement>;
|
|
337
|
+
readonly required: false;
|
|
338
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
339
|
+
__epPropKey: true;
|
|
340
|
+
} & {
|
|
341
|
+
readonly default: "bottom";
|
|
342
|
+
};
|
|
343
|
+
fallbackPlacements: {
|
|
344
|
+
readonly type: PropType<import("element-plus").Placement[]>;
|
|
345
|
+
readonly required: false;
|
|
346
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
347
|
+
__epPropKey: true;
|
|
348
|
+
} & {
|
|
349
|
+
readonly default: readonly ["bottom", "top", "right", "left"];
|
|
350
|
+
};
|
|
351
|
+
disabledHours: {
|
|
352
|
+
readonly type: PropType<import("element-plus").GetDisabledHours>;
|
|
353
|
+
readonly required: false;
|
|
354
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
355
|
+
__epPropKey: true;
|
|
356
|
+
};
|
|
357
|
+
disabledMinutes: {
|
|
358
|
+
readonly type: PropType<import("element-plus").GetDisabledMinutes>;
|
|
359
|
+
readonly required: false;
|
|
360
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
361
|
+
__epPropKey: true;
|
|
362
|
+
};
|
|
363
|
+
disabledSeconds: {
|
|
364
|
+
readonly type: PropType<import("element-plus").GetDisabledSeconds>;
|
|
365
|
+
readonly required: false;
|
|
366
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
367
|
+
__epPropKey: true;
|
|
368
|
+
};
|
|
369
|
+
id: {
|
|
370
|
+
readonly type: PropType<import("element-plus").SingleOrRange<string>>;
|
|
371
|
+
readonly required: false;
|
|
372
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
373
|
+
__epPropKey: true;
|
|
374
|
+
};
|
|
375
|
+
name: {
|
|
376
|
+
readonly type: PropType<import("element-plus").SingleOrRange<string>>;
|
|
377
|
+
readonly required: false;
|
|
378
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
379
|
+
__epPropKey: true;
|
|
380
|
+
};
|
|
381
|
+
popperClass: {
|
|
382
|
+
readonly type: PropType<string | {
|
|
383
|
+
[x: string]: boolean;
|
|
384
|
+
} | (string | {
|
|
385
|
+
[x: string]: boolean;
|
|
386
|
+
} | (string | {
|
|
387
|
+
[x: string]: boolean;
|
|
388
|
+
} | (string | {
|
|
389
|
+
[x: string]: boolean;
|
|
390
|
+
} | (string | {
|
|
391
|
+
[x: string]: boolean;
|
|
392
|
+
} | (string | {
|
|
393
|
+
[x: string]: boolean;
|
|
394
|
+
} | (string | {
|
|
395
|
+
[x: string]: boolean;
|
|
396
|
+
} | (string | {
|
|
397
|
+
[x: string]: boolean;
|
|
398
|
+
} | (string | {
|
|
399
|
+
[x: string]: boolean;
|
|
400
|
+
} | (string | {
|
|
401
|
+
[x: string]: boolean;
|
|
402
|
+
} | (string | any[] | {
|
|
403
|
+
[x: string]: boolean;
|
|
404
|
+
})[])[])[])[])[])[])[])[])[])[]>;
|
|
405
|
+
readonly required: false;
|
|
406
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
407
|
+
__epPropKey: true;
|
|
408
|
+
};
|
|
409
|
+
popperStyle: {
|
|
410
|
+
readonly type: PropType<import("vue").StyleValue>;
|
|
411
|
+
readonly required: false;
|
|
412
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
413
|
+
__epPropKey: true;
|
|
414
|
+
};
|
|
415
|
+
format: StringConstructor;
|
|
416
|
+
valueFormat: StringConstructor;
|
|
417
|
+
dateFormat: StringConstructor;
|
|
418
|
+
timeFormat: StringConstructor;
|
|
419
|
+
type: {
|
|
420
|
+
readonly type: PropType<string>;
|
|
421
|
+
readonly required: false;
|
|
422
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
423
|
+
__epPropKey: true;
|
|
424
|
+
} & {
|
|
425
|
+
readonly default: "";
|
|
426
|
+
};
|
|
427
|
+
clearable: {
|
|
428
|
+
readonly type: PropType<boolean>;
|
|
429
|
+
readonly required: false;
|
|
430
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
431
|
+
__epPropKey: true;
|
|
432
|
+
} & {
|
|
433
|
+
readonly default: true;
|
|
434
|
+
};
|
|
435
|
+
clearIcon: {
|
|
436
|
+
readonly type: PropType<unknown>;
|
|
437
|
+
readonly required: false;
|
|
438
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
439
|
+
__epPropKey: true;
|
|
440
|
+
};
|
|
441
|
+
editable: {
|
|
442
|
+
readonly type: PropType<boolean>;
|
|
443
|
+
readonly required: false;
|
|
444
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
445
|
+
__epPropKey: true;
|
|
446
|
+
} & {
|
|
447
|
+
readonly default: true;
|
|
448
|
+
};
|
|
449
|
+
prefixIcon: {
|
|
450
|
+
readonly type: PropType<unknown>;
|
|
451
|
+
readonly required: false;
|
|
452
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
453
|
+
__epPropKey: true;
|
|
454
|
+
} & {
|
|
455
|
+
readonly default: "";
|
|
456
|
+
};
|
|
457
|
+
size: {
|
|
458
|
+
readonly type: PropType<"" | "default" | "small" | "large">;
|
|
459
|
+
readonly required: false;
|
|
460
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
461
|
+
__epPropKey: true;
|
|
462
|
+
};
|
|
463
|
+
readonly: BooleanConstructor;
|
|
464
|
+
disabled: BooleanConstructor;
|
|
465
|
+
placeholder: {
|
|
466
|
+
readonly type: PropType<string>;
|
|
467
|
+
readonly required: false;
|
|
468
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
469
|
+
__epPropKey: true;
|
|
470
|
+
} & {
|
|
471
|
+
readonly default: "";
|
|
472
|
+
};
|
|
473
|
+
popperOptions: {
|
|
474
|
+
readonly type: PropType<Partial<import("element-plus").Options>>;
|
|
475
|
+
readonly required: false;
|
|
476
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
477
|
+
__epPropKey: true;
|
|
478
|
+
} & {
|
|
479
|
+
readonly default: () => {};
|
|
480
|
+
};
|
|
481
|
+
modelValue: {
|
|
482
|
+
readonly type: PropType<import("element-plus").ModelValueType>;
|
|
483
|
+
readonly required: false;
|
|
484
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
485
|
+
__epPropKey: true;
|
|
486
|
+
} & {
|
|
487
|
+
readonly default: "";
|
|
488
|
+
};
|
|
489
|
+
rangeSeparator: {
|
|
490
|
+
readonly type: PropType<string>;
|
|
491
|
+
readonly required: false;
|
|
492
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
493
|
+
__epPropKey: true;
|
|
494
|
+
} & {
|
|
495
|
+
readonly default: "-";
|
|
496
|
+
};
|
|
497
|
+
startPlaceholder: StringConstructor;
|
|
498
|
+
endPlaceholder: StringConstructor;
|
|
499
|
+
defaultValue: {
|
|
500
|
+
readonly type: PropType<import("element-plus").SingleOrRange<Date>>;
|
|
501
|
+
readonly required: false;
|
|
502
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
503
|
+
__epPropKey: true;
|
|
504
|
+
};
|
|
505
|
+
defaultTime: {
|
|
506
|
+
readonly type: PropType<import("element-plus").SingleOrRange<Date>>;
|
|
507
|
+
readonly required: false;
|
|
508
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
509
|
+
__epPropKey: true;
|
|
510
|
+
};
|
|
511
|
+
isRange: BooleanConstructor;
|
|
512
|
+
};
|
|
513
|
+
export declare const timePickerEmits: {
|
|
514
|
+
'update:modelValue': any;
|
|
515
|
+
change: any;
|
|
516
|
+
focus: any;
|
|
517
|
+
blur: any;
|
|
518
|
+
'visible-change': any;
|
|
519
|
+
keydown: any;
|
|
520
|
+
};
|