1 | import { DatePickerProps } from './DatePicker';
|
2 | export declare const DatePicker: 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 | columnsType: {
|
38 | type: import("vue").PropType<import("./DatePicker").DatePickerColumnType[]>;
|
39 | default: () => string[];
|
40 | };
|
41 | minDate: {
|
42 | type: DateConstructor;
|
43 | default: () => Date;
|
44 | validator: (val: unknown) => val is Date;
|
45 | };
|
46 | maxDate: {
|
47 | type: DateConstructor;
|
48 | default: () => Date;
|
49 | validator: (val: unknown) => val is Date;
|
50 | };
|
51 | }>, () => 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<{
|
52 | loading: BooleanConstructor;
|
53 | readonly: BooleanConstructor;
|
54 | allowHtml: BooleanConstructor;
|
55 | optionHeight: {
|
56 | type: (NumberConstructor | StringConstructor)[];
|
57 | default: number;
|
58 | };
|
59 | showToolbar: {
|
60 | type: BooleanConstructor;
|
61 | default: true;
|
62 | };
|
63 | swipeDuration: {
|
64 | type: (NumberConstructor | StringConstructor)[];
|
65 | default: number;
|
66 | };
|
67 | visibleOptionNum: {
|
68 | type: (NumberConstructor | StringConstructor)[];
|
69 | default: number;
|
70 | };
|
71 | } & {
|
72 | title: StringConstructor;
|
73 | cancelButtonText: StringConstructor;
|
74 | confirmButtonText: StringConstructor;
|
75 | } & {
|
76 | modelValue: {
|
77 | type: import("vue").PropType<string[]>;
|
78 | default: () => never[];
|
79 | };
|
80 | filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
81 | formatter: {
|
82 | type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
83 | default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
84 | };
|
85 | } & {
|
86 | columnsType: {
|
87 | type: import("vue").PropType<import("./DatePicker").DatePickerColumnType[]>;
|
88 | default: () => string[];
|
89 | };
|
90 | minDate: {
|
91 | type: DateConstructor;
|
92 | default: () => Date;
|
93 | validator: (val: unknown) => val is Date;
|
94 | };
|
95 | maxDate: {
|
96 | type: DateConstructor;
|
97 | default: () => Date;
|
98 | validator: (val: unknown) => val is Date;
|
99 | };
|
100 | }>> & Readonly<{
|
101 | onChange?: ((...args: any[]) => any) | undefined;
|
102 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
103 | onCancel?: ((...args: any[]) => any) | undefined;
|
104 | onConfirm?: ((...args: any[]) => any) | undefined;
|
105 | }>, {
|
106 | formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
107 | modelValue: string[];
|
108 | readonly: boolean;
|
109 | loading: boolean;
|
110 | allowHtml: boolean;
|
111 | optionHeight: string | number;
|
112 | showToolbar: boolean;
|
113 | swipeDuration: string | number;
|
114 | visibleOptionNum: string | number;
|
115 | minDate: Date;
|
116 | maxDate: Date;
|
117 | columnsType: import("./DatePicker").DatePickerColumnType[];
|
118 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
119 | export default DatePicker;
|
120 | export { datePickerProps } from './DatePicker';
|
121 | export type { DatePickerProps };
|
122 | export type { DatePickerColumnType, DatePickerInstance } from './DatePicker';
|
123 | declare module 'vue' {
|
124 | interface GlobalComponents {
|
125 | VanDatePicker: typeof DatePicker;
|
126 | }
|
127 | }
|