UNPKG

4.14 kBTypeScriptView Raw
1import { PickerProps } from './Picker';
2export declare const Picker: 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 columns: {
28 type: import("vue").PropType<(import("./types").PickerColumn | import("./types").PickerOption)[]>;
29 default: () => never[];
30 };
31 modelValue: {
32 type: import("vue").PropType<import("../utils").Numeric[]>;
33 default: () => never[];
34 };
35 toolbarPosition: {
36 type: import("vue").PropType<import("./types").PickerToolbarPosition>;
37 default: import("./types").PickerToolbarPosition;
38 };
39 columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
40}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "scrollInto")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "scrollInto", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41 loading: BooleanConstructor;
42 readonly: BooleanConstructor;
43 allowHtml: BooleanConstructor;
44 optionHeight: {
45 type: (NumberConstructor | StringConstructor)[];
46 default: number;
47 };
48 showToolbar: {
49 type: BooleanConstructor;
50 default: true;
51 };
52 swipeDuration: {
53 type: (NumberConstructor | StringConstructor)[];
54 default: number;
55 };
56 visibleOptionNum: {
57 type: (NumberConstructor | StringConstructor)[];
58 default: number;
59 };
60} & {
61 title: StringConstructor;
62 cancelButtonText: StringConstructor;
63 confirmButtonText: StringConstructor;
64} & {
65 columns: {
66 type: import("vue").PropType<(import("./types").PickerColumn | import("./types").PickerOption)[]>;
67 default: () => never[];
68 };
69 modelValue: {
70 type: import("vue").PropType<import("../utils").Numeric[]>;
71 default: () => never[];
72 };
73 toolbarPosition: {
74 type: import("vue").PropType<import("./types").PickerToolbarPosition>;
75 default: import("./types").PickerToolbarPosition;
76 };
77 columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
78}>> & Readonly<{
79 onChange?: ((...args: any[]) => any) | undefined;
80 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81 onCancel?: ((...args: any[]) => any) | undefined;
82 onClickOption?: ((...args: any[]) => any) | undefined;
83 onScrollInto?: ((...args: any[]) => any) | undefined;
84 onConfirm?: ((...args: any[]) => any) | undefined;
85}>, {
86 modelValue: import("../utils").Numeric[];
87 readonly: boolean;
88 loading: boolean;
89 allowHtml: boolean;
90 optionHeight: string | number;
91 showToolbar: boolean;
92 swipeDuration: string | number;
93 visibleOptionNum: string | number;
94 columns: (import("./types").PickerColumn | import("./types").PickerOption)[];
95 toolbarPosition: import("./types").PickerToolbarPosition;
96}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
97export default Picker;
98export { pickerProps } from './Picker';
99export type { PickerProps };
100export type { PickerColumn, PickerOption, PickerInstance, PickerThemeVars, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, } from './types';
101declare module 'vue' {
102 interface GlobalComponents {
103 VanPicker: typeof Picker;
104 }
105}
106
\No newline at end of file