UNPKG

2.71 kBTypeScriptView Raw
1export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2 title: StringConstructor;
3 options: {
4 type: import("vue").PropType<import("./types").CascaderOption[]>;
5 default: () => never[];
6 };
7 closeable: {
8 type: BooleanConstructor;
9 default: true;
10 };
11 swipeable: {
12 type: BooleanConstructor;
13 default: true;
14 };
15 closeIcon: {
16 type: import("vue").PropType<string>;
17 default: string;
18 };
19 showHeader: {
20 type: BooleanConstructor;
21 default: true;
22 };
23 modelValue: (NumberConstructor | StringConstructor)[];
24 fieldNames: import("vue").PropType<import("./types").CascaderFieldNames>;
25 placeholder: StringConstructor;
26 activeColor: StringConstructor;
27}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "clickTab" | "finish")[], "update:modelValue" | "change" | "close" | "clickTab" | "finish", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28 title: StringConstructor;
29 options: {
30 type: import("vue").PropType<import("./types").CascaderOption[]>;
31 default: () => never[];
32 };
33 closeable: {
34 type: BooleanConstructor;
35 default: true;
36 };
37 swipeable: {
38 type: BooleanConstructor;
39 default: true;
40 };
41 closeIcon: {
42 type: import("vue").PropType<string>;
43 default: string;
44 };
45 showHeader: {
46 type: BooleanConstructor;
47 default: true;
48 };
49 modelValue: (NumberConstructor | StringConstructor)[];
50 fieldNames: import("vue").PropType<import("./types").CascaderFieldNames>;
51 placeholder: StringConstructor;
52 activeColor: StringConstructor;
53}>> & Readonly<{
54 onChange?: ((...args: any[]) => any) | undefined;
55 onClose?: ((...args: any[]) => any) | undefined;
56 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57 onClickTab?: ((...args: any[]) => any) | undefined;
58 onFinish?: ((...args: any[]) => any) | undefined;
59}>, {
60 closeIcon: string;
61 closeable: boolean;
62 options: import("./types").CascaderOption[];
63 swipeable: boolean;
64 showHeader: boolean;
65}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
66export default Cascader;
67export { cascaderProps } from './Cascader';
68export type { CascaderProps } from './Cascader';
69export type { CascaderOption, CascaderThemeVars, CascaderFieldNames, } from './types';
70declare module 'vue' {
71 interface GlobalComponents {
72 VanCascader: typeof Cascader;
73 }
74}
75
\No newline at end of file