UNPKG

5.92 kBTypeScriptView Raw
1import { TimePickerProps } from './TimePicker';
2export declare const TimePicker: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3 loading: BooleanConstructor;
4 readonly: BooleanConstructor;
5 allowHtml: BooleanConstructor;
6 optionHeight: {
7 type: (NumberConstructor | StringConstructor)[];
8 default: number;
9 };
10 showToolbar: {
11 type: BooleanConstructor;
12 default: true;
13 };
14 swipeDuration: {
15 type: (NumberConstructor | StringConstructor)[];
16 default: number;
17 };
18 visibleOptionNum: {
19 type: (NumberConstructor | StringConstructor)[];
20 default: number;
21 };
22} & {
23 title: StringConstructor;
24 cancelButtonText: StringConstructor;
25 confirmButtonText: StringConstructor;
26} & {
27 modelValue: {
28 type: import("vue").PropType<string[]>;
29 default: () => never[];
30 };
31 filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
32 formatter: {
33 type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
34 default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
35 };
36} & {
37 minHour: {
38 type: (NumberConstructor | StringConstructor)[];
39 default: number;
40 };
41 maxHour: {
42 type: (NumberConstructor | StringConstructor)[];
43 default: number;
44 };
45 minMinute: {
46 type: (NumberConstructor | StringConstructor)[];
47 default: number;
48 };
49 maxMinute: {
50 type: (NumberConstructor | StringConstructor)[];
51 default: number;
52 };
53 minSecond: {
54 type: (NumberConstructor | StringConstructor)[];
55 default: number;
56 };
57 maxSecond: {
58 type: (NumberConstructor | StringConstructor)[];
59 default: number;
60 };
61 minTime: {
62 type: StringConstructor;
63 validator: (val: string) => boolean;
64 };
65 maxTime: {
66 type: StringConstructor;
67 validator: (val: string) => boolean;
68 };
69 columnsType: {
70 type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
71 default: () => string[];
72 };
73}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
74 loading: BooleanConstructor;
75 readonly: BooleanConstructor;
76 allowHtml: BooleanConstructor;
77 optionHeight: {
78 type: (NumberConstructor | StringConstructor)[];
79 default: number;
80 };
81 showToolbar: {
82 type: BooleanConstructor;
83 default: true;
84 };
85 swipeDuration: {
86 type: (NumberConstructor | StringConstructor)[];
87 default: number;
88 };
89 visibleOptionNum: {
90 type: (NumberConstructor | StringConstructor)[];
91 default: number;
92 };
93} & {
94 title: StringConstructor;
95 cancelButtonText: StringConstructor;
96 confirmButtonText: StringConstructor;
97} & {
98 modelValue: {
99 type: import("vue").PropType<string[]>;
100 default: () => never[];
101 };
102 filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
103 formatter: {
104 type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
105 default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
106 };
107} & {
108 minHour: {
109 type: (NumberConstructor | StringConstructor)[];
110 default: number;
111 };
112 maxHour: {
113 type: (NumberConstructor | StringConstructor)[];
114 default: number;
115 };
116 minMinute: {
117 type: (NumberConstructor | StringConstructor)[];
118 default: number;
119 };
120 maxMinute: {
121 type: (NumberConstructor | StringConstructor)[];
122 default: number;
123 };
124 minSecond: {
125 type: (NumberConstructor | StringConstructor)[];
126 default: number;
127 };
128 maxSecond: {
129 type: (NumberConstructor | StringConstructor)[];
130 default: number;
131 };
132 minTime: {
133 type: StringConstructor;
134 validator: (val: string) => boolean;
135 };
136 maxTime: {
137 type: StringConstructor;
138 validator: (val: string) => boolean;
139 };
140 columnsType: {
141 type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
142 default: () => string[];
143 };
144}>> & Readonly<{
145 onChange?: ((...args: any[]) => any) | undefined;
146 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
147 onCancel?: ((...args: any[]) => any) | undefined;
148 onConfirm?: ((...args: any[]) => any) | undefined;
149}>, {
150 formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
151 modelValue: string[];
152 readonly: boolean;
153 loading: boolean;
154 allowHtml: boolean;
155 optionHeight: string | number;
156 showToolbar: boolean;
157 swipeDuration: string | number;
158 visibleOptionNum: string | number;
159 columnsType: import("./TimePicker").TimePickerColumnType[];
160 minHour: string | number;
161 maxHour: string | number;
162 minMinute: string | number;
163 maxMinute: string | number;
164 minSecond: string | number;
165 maxSecond: string | number;
166}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
167export default TimePicker;
168export { timePickerProps } from './TimePicker';
169export type { TimePickerProps };
170export type { TimePickerColumnType, TimePickerInstance } from './TimePicker';
171declare module 'vue' {
172 interface GlobalComponents {
173 VanTimePicker: typeof TimePicker;
174 }
175}