1 | import { type ExtractPropTypes, type PropType, type ComponentPublicInstance } from 'vue';
|
2 | export type TimePickerColumnType = 'hour' | 'minute' | 'second';
|
3 | export declare const timePickerProps: {
|
4 | loading: BooleanConstructor;
|
5 | readonly: BooleanConstructor;
|
6 | allowHtml: BooleanConstructor;
|
7 | optionHeight: {
|
8 | type: (NumberConstructor | StringConstructor)[];
|
9 | default: number;
|
10 | };
|
11 | showToolbar: {
|
12 | type: BooleanConstructor;
|
13 | default: true;
|
14 | };
|
15 | swipeDuration: {
|
16 | type: (NumberConstructor | StringConstructor)[];
|
17 | default: number;
|
18 | };
|
19 | visibleOptionNum: {
|
20 | type: (NumberConstructor | StringConstructor)[];
|
21 | default: number;
|
22 | };
|
23 | } & {
|
24 | title: StringConstructor;
|
25 | cancelButtonText: StringConstructor;
|
26 | confirmButtonText: StringConstructor;
|
27 | } & {
|
28 | modelValue: {
|
29 | type: PropType<string[]>;
|
30 | default: () => never[];
|
31 | };
|
32 | filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
33 | formatter: {
|
34 | type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
35 | default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
36 | };
|
37 | } & {
|
38 | minHour: {
|
39 | type: (NumberConstructor | StringConstructor)[];
|
40 | default: number;
|
41 | };
|
42 | maxHour: {
|
43 | type: (NumberConstructor | StringConstructor)[];
|
44 | default: number;
|
45 | };
|
46 | minMinute: {
|
47 | type: (NumberConstructor | StringConstructor)[];
|
48 | default: number;
|
49 | };
|
50 | maxMinute: {
|
51 | type: (NumberConstructor | StringConstructor)[];
|
52 | default: number;
|
53 | };
|
54 | minSecond: {
|
55 | type: (NumberConstructor | StringConstructor)[];
|
56 | default: number;
|
57 | };
|
58 | maxSecond: {
|
59 | type: (NumberConstructor | StringConstructor)[];
|
60 | default: number;
|
61 | };
|
62 | minTime: {
|
63 | type: StringConstructor;
|
64 | validator: (val: string) => boolean;
|
65 | };
|
66 | maxTime: {
|
67 | type: StringConstructor;
|
68 | validator: (val: string) => boolean;
|
69 | };
|
70 | columnsType: {
|
71 | type: PropType<TimePickerColumnType[]>;
|
72 | default: () => string[];
|
73 | };
|
74 | };
|
75 | export type TimePickerProps = ExtractPropTypes<typeof timePickerProps>;
|
76 | export type TimePickerExpose = {
|
77 | confirm: () => void;
|
78 | getSelectedTime: () => string[];
|
79 | };
|
80 | export type TimePickerInstance = ComponentPublicInstance<TimePickerProps, TimePickerExpose>;
|
81 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
82 | loading: BooleanConstructor;
|
83 | readonly: BooleanConstructor;
|
84 | allowHtml: BooleanConstructor;
|
85 | optionHeight: {
|
86 | type: (NumberConstructor | StringConstructor)[];
|
87 | default: number;
|
88 | };
|
89 | showToolbar: {
|
90 | type: BooleanConstructor;
|
91 | default: true;
|
92 | };
|
93 | swipeDuration: {
|
94 | type: (NumberConstructor | StringConstructor)[];
|
95 | default: number;
|
96 | };
|
97 | visibleOptionNum: {
|
98 | type: (NumberConstructor | StringConstructor)[];
|
99 | default: number;
|
100 | };
|
101 | } & {
|
102 | title: StringConstructor;
|
103 | cancelButtonText: StringConstructor;
|
104 | confirmButtonText: StringConstructor;
|
105 | } & {
|
106 | modelValue: {
|
107 | type: PropType<string[]>;
|
108 | default: () => never[];
|
109 | };
|
110 | filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
111 | formatter: {
|
112 | type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
113 | default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
114 | };
|
115 | } & {
|
116 | minHour: {
|
117 | type: (NumberConstructor | StringConstructor)[];
|
118 | default: number;
|
119 | };
|
120 | maxHour: {
|
121 | type: (NumberConstructor | StringConstructor)[];
|
122 | default: number;
|
123 | };
|
124 | minMinute: {
|
125 | type: (NumberConstructor | StringConstructor)[];
|
126 | default: number;
|
127 | };
|
128 | maxMinute: {
|
129 | type: (NumberConstructor | StringConstructor)[];
|
130 | default: number;
|
131 | };
|
132 | minSecond: {
|
133 | type: (NumberConstructor | StringConstructor)[];
|
134 | default: number;
|
135 | };
|
136 | maxSecond: {
|
137 | type: (NumberConstructor | StringConstructor)[];
|
138 | default: number;
|
139 | };
|
140 | minTime: {
|
141 | type: StringConstructor;
|
142 | validator: (val: string) => boolean;
|
143 | };
|
144 | maxTime: {
|
145 | type: StringConstructor;
|
146 | validator: (val: string) => boolean;
|
147 | };
|
148 | columnsType: {
|
149 | type: PropType<TimePickerColumnType[]>;
|
150 | default: () => string[];
|
151 | };
|
152 | }>, () => 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<ExtractPropTypes<{
|
153 | loading: BooleanConstructor;
|
154 | readonly: BooleanConstructor;
|
155 | allowHtml: BooleanConstructor;
|
156 | optionHeight: {
|
157 | type: (NumberConstructor | StringConstructor)[];
|
158 | default: number;
|
159 | };
|
160 | showToolbar: {
|
161 | type: BooleanConstructor;
|
162 | default: true;
|
163 | };
|
164 | swipeDuration: {
|
165 | type: (NumberConstructor | StringConstructor)[];
|
166 | default: number;
|
167 | };
|
168 | visibleOptionNum: {
|
169 | type: (NumberConstructor | StringConstructor)[];
|
170 | default: number;
|
171 | };
|
172 | } & {
|
173 | title: StringConstructor;
|
174 | cancelButtonText: StringConstructor;
|
175 | confirmButtonText: StringConstructor;
|
176 | } & {
|
177 | modelValue: {
|
178 | type: PropType<string[]>;
|
179 | default: () => never[];
|
180 | };
|
181 | filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
182 | formatter: {
|
183 | type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
184 | default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
185 | };
|
186 | } & {
|
187 | minHour: {
|
188 | type: (NumberConstructor | StringConstructor)[];
|
189 | default: number;
|
190 | };
|
191 | maxHour: {
|
192 | type: (NumberConstructor | StringConstructor)[];
|
193 | default: number;
|
194 | };
|
195 | minMinute: {
|
196 | type: (NumberConstructor | StringConstructor)[];
|
197 | default: number;
|
198 | };
|
199 | maxMinute: {
|
200 | type: (NumberConstructor | StringConstructor)[];
|
201 | default: number;
|
202 | };
|
203 | minSecond: {
|
204 | type: (NumberConstructor | StringConstructor)[];
|
205 | default: number;
|
206 | };
|
207 | maxSecond: {
|
208 | type: (NumberConstructor | StringConstructor)[];
|
209 | default: number;
|
210 | };
|
211 | minTime: {
|
212 | type: StringConstructor;
|
213 | validator: (val: string) => boolean;
|
214 | };
|
215 | maxTime: {
|
216 | type: StringConstructor;
|
217 | validator: (val: string) => boolean;
|
218 | };
|
219 | columnsType: {
|
220 | type: PropType<TimePickerColumnType[]>;
|
221 | default: () => string[];
|
222 | };
|
223 | }>> & Readonly<{
|
224 | onChange?: ((...args: any[]) => any) | undefined;
|
225 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
226 | onCancel?: ((...args: any[]) => any) | undefined;
|
227 | onConfirm?: ((...args: any[]) => any) | undefined;
|
228 | }>, {
|
229 | formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
230 | modelValue: string[];
|
231 | readonly: boolean;
|
232 | loading: boolean;
|
233 | allowHtml: boolean;
|
234 | optionHeight: string | number;
|
235 | showToolbar: boolean;
|
236 | swipeDuration: string | number;
|
237 | visibleOptionNum: string | number;
|
238 | columnsType: TimePickerColumnType[];
|
239 | minHour: string | number;
|
240 | maxHour: string | number;
|
241 | minMinute: string | number;
|
242 | maxMinute: string | number;
|
243 | minSecond: string | number;
|
244 | maxSecond: string | number;
|
245 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
246 | export default _default;
|