1 | import { type PropType, type TeleportProps, type ExtractPropTypes } from 'vue';
|
2 | import { PopupPosition } from '../popup';
|
3 | import type { CalendarType, CalendarSwitchMode, CalendarDayItem } from './types';
|
4 | export declare const calendarProps: {
|
5 | show: BooleanConstructor;
|
6 | type: {
|
7 | type: PropType<CalendarType>;
|
8 | default: CalendarType;
|
9 | };
|
10 | switchMode: {
|
11 | type: PropType<CalendarSwitchMode>;
|
12 | default: CalendarSwitchMode;
|
13 | };
|
14 | title: StringConstructor;
|
15 | color: StringConstructor;
|
16 | round: {
|
17 | type: BooleanConstructor;
|
18 | default: true;
|
19 | };
|
20 | readonly: BooleanConstructor;
|
21 | poppable: {
|
22 | type: BooleanConstructor;
|
23 | default: true;
|
24 | };
|
25 | maxRange: {
|
26 | type: (NumberConstructor | StringConstructor)[];
|
27 | default: null;
|
28 | };
|
29 | position: {
|
30 | type: PropType<PopupPosition>;
|
31 | default: PopupPosition;
|
32 | };
|
33 | teleport: PropType<TeleportProps["to"]>;
|
34 | showMark: {
|
35 | type: BooleanConstructor;
|
36 | default: true;
|
37 | };
|
38 | showTitle: {
|
39 | type: BooleanConstructor;
|
40 | default: true;
|
41 | };
|
42 | formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
43 | rowHeight: (NumberConstructor | StringConstructor)[];
|
44 | confirmText: StringConstructor;
|
45 | rangePrompt: StringConstructor;
|
46 | lazyRender: {
|
47 | type: BooleanConstructor;
|
48 | default: true;
|
49 | };
|
50 | showConfirm: {
|
51 | type: BooleanConstructor;
|
52 | default: true;
|
53 | };
|
54 | defaultDate: PropType<Date | Date[] | null>;
|
55 | allowSameDay: BooleanConstructor;
|
56 | showSubtitle: {
|
57 | type: BooleanConstructor;
|
58 | default: true;
|
59 | };
|
60 | closeOnPopstate: {
|
61 | type: BooleanConstructor;
|
62 | default: true;
|
63 | };
|
64 | showRangePrompt: {
|
65 | type: BooleanConstructor;
|
66 | default: true;
|
67 | };
|
68 | confirmDisabledText: StringConstructor;
|
69 | closeOnClickOverlay: {
|
70 | type: BooleanConstructor;
|
71 | default: true;
|
72 | };
|
73 | safeAreaInsetTop: BooleanConstructor;
|
74 | safeAreaInsetBottom: {
|
75 | type: BooleanConstructor;
|
76 | default: true;
|
77 | };
|
78 | minDate: {
|
79 | type: DateConstructor;
|
80 | validator: (val: unknown) => val is Date;
|
81 | };
|
82 | maxDate: {
|
83 | type: DateConstructor;
|
84 | validator: (val: unknown) => val is Date;
|
85 | };
|
86 | firstDayOfWeek: {
|
87 | type: (NumberConstructor | StringConstructor)[];
|
88 | default: number;
|
89 | validator: (val: number) => boolean;
|
90 | };
|
91 | };
|
92 | export type CalendarProps = ExtractPropTypes<typeof calendarProps>;
|
93 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
94 | show: BooleanConstructor;
|
95 | type: {
|
96 | type: PropType<CalendarType>;
|
97 | default: CalendarType;
|
98 | };
|
99 | switchMode: {
|
100 | type: PropType<CalendarSwitchMode>;
|
101 | default: CalendarSwitchMode;
|
102 | };
|
103 | title: StringConstructor;
|
104 | color: StringConstructor;
|
105 | round: {
|
106 | type: BooleanConstructor;
|
107 | default: true;
|
108 | };
|
109 | readonly: BooleanConstructor;
|
110 | poppable: {
|
111 | type: BooleanConstructor;
|
112 | default: true;
|
113 | };
|
114 | maxRange: {
|
115 | type: (NumberConstructor | StringConstructor)[];
|
116 | default: null;
|
117 | };
|
118 | position: {
|
119 | type: PropType<PopupPosition>;
|
120 | default: PopupPosition;
|
121 | };
|
122 | teleport: PropType<TeleportProps["to"]>;
|
123 | showMark: {
|
124 | type: BooleanConstructor;
|
125 | default: true;
|
126 | };
|
127 | showTitle: {
|
128 | type: BooleanConstructor;
|
129 | default: true;
|
130 | };
|
131 | formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
132 | rowHeight: (NumberConstructor | StringConstructor)[];
|
133 | confirmText: StringConstructor;
|
134 | rangePrompt: StringConstructor;
|
135 | lazyRender: {
|
136 | type: BooleanConstructor;
|
137 | default: true;
|
138 | };
|
139 | showConfirm: {
|
140 | type: BooleanConstructor;
|
141 | default: true;
|
142 | };
|
143 | defaultDate: PropType<Date | Date[] | null>;
|
144 | allowSameDay: BooleanConstructor;
|
145 | showSubtitle: {
|
146 | type: BooleanConstructor;
|
147 | default: true;
|
148 | };
|
149 | closeOnPopstate: {
|
150 | type: BooleanConstructor;
|
151 | default: true;
|
152 | };
|
153 | showRangePrompt: {
|
154 | type: BooleanConstructor;
|
155 | default: true;
|
156 | };
|
157 | confirmDisabledText: StringConstructor;
|
158 | closeOnClickOverlay: {
|
159 | type: BooleanConstructor;
|
160 | default: true;
|
161 | };
|
162 | safeAreaInsetTop: BooleanConstructor;
|
163 | safeAreaInsetBottom: {
|
164 | type: BooleanConstructor;
|
165 | default: true;
|
166 | };
|
167 | minDate: {
|
168 | type: DateConstructor;
|
169 | validator: (val: unknown) => val is Date;
|
170 | };
|
171 | maxDate: {
|
172 | type: DateConstructor;
|
173 | validator: (val: unknown) => val is Date;
|
174 | };
|
175 | firstDayOfWeek: {
|
176 | type: (NumberConstructor | StringConstructor)[];
|
177 | default: number;
|
178 | validator: (val: number) => boolean;
|
179 | };
|
180 | }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
181 | show: BooleanConstructor;
|
182 | type: {
|
183 | type: PropType<CalendarType>;
|
184 | default: CalendarType;
|
185 | };
|
186 | switchMode: {
|
187 | type: PropType<CalendarSwitchMode>;
|
188 | default: CalendarSwitchMode;
|
189 | };
|
190 | title: StringConstructor;
|
191 | color: StringConstructor;
|
192 | round: {
|
193 | type: BooleanConstructor;
|
194 | default: true;
|
195 | };
|
196 | readonly: BooleanConstructor;
|
197 | poppable: {
|
198 | type: BooleanConstructor;
|
199 | default: true;
|
200 | };
|
201 | maxRange: {
|
202 | type: (NumberConstructor | StringConstructor)[];
|
203 | default: null;
|
204 | };
|
205 | position: {
|
206 | type: PropType<PopupPosition>;
|
207 | default: PopupPosition;
|
208 | };
|
209 | teleport: PropType<TeleportProps["to"]>;
|
210 | showMark: {
|
211 | type: BooleanConstructor;
|
212 | default: true;
|
213 | };
|
214 | showTitle: {
|
215 | type: BooleanConstructor;
|
216 | default: true;
|
217 | };
|
218 | formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
219 | rowHeight: (NumberConstructor | StringConstructor)[];
|
220 | confirmText: StringConstructor;
|
221 | rangePrompt: StringConstructor;
|
222 | lazyRender: {
|
223 | type: BooleanConstructor;
|
224 | default: true;
|
225 | };
|
226 | showConfirm: {
|
227 | type: BooleanConstructor;
|
228 | default: true;
|
229 | };
|
230 | defaultDate: PropType<Date | Date[] | null>;
|
231 | allowSameDay: BooleanConstructor;
|
232 | showSubtitle: {
|
233 | type: BooleanConstructor;
|
234 | default: true;
|
235 | };
|
236 | closeOnPopstate: {
|
237 | type: BooleanConstructor;
|
238 | default: true;
|
239 | };
|
240 | showRangePrompt: {
|
241 | type: BooleanConstructor;
|
242 | default: true;
|
243 | };
|
244 | confirmDisabledText: StringConstructor;
|
245 | closeOnClickOverlay: {
|
246 | type: BooleanConstructor;
|
247 | default: true;
|
248 | };
|
249 | safeAreaInsetTop: BooleanConstructor;
|
250 | safeAreaInsetBottom: {
|
251 | type: BooleanConstructor;
|
252 | default: true;
|
253 | };
|
254 | minDate: {
|
255 | type: DateConstructor;
|
256 | validator: (val: unknown) => val is Date;
|
257 | };
|
258 | maxDate: {
|
259 | type: DateConstructor;
|
260 | validator: (val: unknown) => val is Date;
|
261 | };
|
262 | firstDayOfWeek: {
|
263 | type: (NumberConstructor | StringConstructor)[];
|
264 | default: number;
|
265 | validator: (val: number) => boolean;
|
266 | };
|
267 | }>> & Readonly<{
|
268 | onSelect?: ((...args: any[]) => any) | undefined;
|
269 | "onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
270 | onConfirm?: ((...args: any[]) => any) | undefined;
|
271 | onClickDisabledDate?: ((...args: any[]) => any) | undefined;
|
272 | onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
273 | onPanelChange?: ((...args: any[]) => any) | undefined;
|
274 | onUnselect?: ((...args: any[]) => any) | undefined;
|
275 | onMonthShow?: ((...args: any[]) => any) | undefined;
|
276 | onOverRange?: ((...args: any[]) => any) | undefined;
|
277 | }>, {
|
278 | type: CalendarType;
|
279 | position: PopupPosition;
|
280 | round: boolean;
|
281 | show: boolean;
|
282 | readonly: boolean;
|
283 | safeAreaInsetBottom: boolean;
|
284 | lazyRender: boolean;
|
285 | closeOnClickOverlay: boolean;
|
286 | closeOnPopstate: boolean;
|
287 | safeAreaInsetTop: boolean;
|
288 | switchMode: CalendarSwitchMode;
|
289 | poppable: boolean;
|
290 | maxRange: string | number;
|
291 | showMark: boolean;
|
292 | showTitle: boolean;
|
293 | showConfirm: boolean;
|
294 | allowSameDay: boolean;
|
295 | showSubtitle: boolean;
|
296 | showRangePrompt: boolean;
|
297 | firstDayOfWeek: string | number;
|
298 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
299 | export default _default;
|
300 |
|
\ | No newline at end of file |