1 | import { type ComponentPublicInstance, type PropType, type ExtractPropTypes } from 'vue';
|
2 | export type DatePickerColumnType = 'year' | 'month' | 'day';
|
3 | export declare const datePickerProps: {
|
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 | columnsType: {
|
39 | type: PropType<DatePickerColumnType[]>;
|
40 | default: () => string[];
|
41 | };
|
42 | minDate: {
|
43 | type: DateConstructor;
|
44 | default: () => Date;
|
45 | validator: (val: unknown) => val is Date;
|
46 | };
|
47 | maxDate: {
|
48 | type: DateConstructor;
|
49 | default: () => Date;
|
50 | validator: (val: unknown) => val is Date;
|
51 | };
|
52 | };
|
53 | export type DatePickerExpose = {
|
54 | confirm: () => void;
|
55 | getSelectedDate: () => string[];
|
56 | };
|
57 | export type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
|
58 | export type DatePickerInstance = ComponentPublicInstance<DatePickerProps, DatePickerExpose>;
|
59 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
60 | loading: BooleanConstructor;
|
61 | readonly: BooleanConstructor;
|
62 | allowHtml: BooleanConstructor;
|
63 | optionHeight: {
|
64 | type: (NumberConstructor | StringConstructor)[];
|
65 | default: number;
|
66 | };
|
67 | showToolbar: {
|
68 | type: BooleanConstructor;
|
69 | default: true;
|
70 | };
|
71 | swipeDuration: {
|
72 | type: (NumberConstructor | StringConstructor)[];
|
73 | default: number;
|
74 | };
|
75 | visibleOptionNum: {
|
76 | type: (NumberConstructor | StringConstructor)[];
|
77 | default: number;
|
78 | };
|
79 | } & {
|
80 | title: StringConstructor;
|
81 | cancelButtonText: StringConstructor;
|
82 | confirmButtonText: StringConstructor;
|
83 | } & {
|
84 | modelValue: {
|
85 | type: PropType<string[]>;
|
86 | default: () => never[];
|
87 | };
|
88 | filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
89 | formatter: {
|
90 | type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
91 | default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
92 | };
|
93 | } & {
|
94 | columnsType: {
|
95 | type: PropType<DatePickerColumnType[]>;
|
96 | default: () => string[];
|
97 | };
|
98 | minDate: {
|
99 | type: DateConstructor;
|
100 | default: () => Date;
|
101 | validator: (val: unknown) => val is Date;
|
102 | };
|
103 | maxDate: {
|
104 | type: DateConstructor;
|
105 | default: () => Date;
|
106 | validator: (val: unknown) => val is Date;
|
107 | };
|
108 | }>, () => 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<{
|
109 | loading: BooleanConstructor;
|
110 | readonly: BooleanConstructor;
|
111 | allowHtml: BooleanConstructor;
|
112 | optionHeight: {
|
113 | type: (NumberConstructor | StringConstructor)[];
|
114 | default: number;
|
115 | };
|
116 | showToolbar: {
|
117 | type: BooleanConstructor;
|
118 | default: true;
|
119 | };
|
120 | swipeDuration: {
|
121 | type: (NumberConstructor | StringConstructor)[];
|
122 | default: number;
|
123 | };
|
124 | visibleOptionNum: {
|
125 | type: (NumberConstructor | StringConstructor)[];
|
126 | default: number;
|
127 | };
|
128 | } & {
|
129 | title: StringConstructor;
|
130 | cancelButtonText: StringConstructor;
|
131 | confirmButtonText: StringConstructor;
|
132 | } & {
|
133 | modelValue: {
|
134 | type: PropType<string[]>;
|
135 | default: () => never[];
|
136 | };
|
137 | filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
138 | formatter: {
|
139 | type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
140 | default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
141 | };
|
142 | } & {
|
143 | columnsType: {
|
144 | type: PropType<DatePickerColumnType[]>;
|
145 | default: () => string[];
|
146 | };
|
147 | minDate: {
|
148 | type: DateConstructor;
|
149 | default: () => Date;
|
150 | validator: (val: unknown) => val is Date;
|
151 | };
|
152 | maxDate: {
|
153 | type: DateConstructor;
|
154 | default: () => Date;
|
155 | validator: (val: unknown) => val is Date;
|
156 | };
|
157 | }>> & Readonly<{
|
158 | onChange?: ((...args: any[]) => any) | undefined;
|
159 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
160 | onCancel?: ((...args: any[]) => any) | undefined;
|
161 | onConfirm?: ((...args: any[]) => any) | undefined;
|
162 | }>, {
|
163 | formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
164 | modelValue: string[];
|
165 | readonly: boolean;
|
166 | loading: boolean;
|
167 | allowHtml: boolean;
|
168 | optionHeight: string | number;
|
169 | showToolbar: boolean;
|
170 | swipeDuration: string | number;
|
171 | visibleOptionNum: string | number;
|
172 | minDate: Date;
|
173 | maxDate: Date;
|
174 | columnsType: DatePickerColumnType[];
|
175 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
176 | export default _default;
|