UNPKG

3.53 kBTypeScriptView Raw
1import { PropType } from 'vue';
2declare const _default: import("vue").DefineComponent<{
3 prefixCls: import("vue-types").VueTypeValidableDef<string> & {
4 default: string;
5 };
6 activeKey: import("vue-types").VueTypeDef<import("../_util/type").Key>;
7 defaultActiveKey: import("vue-types").VueTypeDef<import("../_util/type").Key>;
8 hideAdd: import("vue-types").VueTypeValidableDef<boolean> & {
9 default: boolean;
10 };
11 centered: import("vue-types").VueTypeValidableDef<boolean> & {
12 default: boolean;
13 };
14 tabBarStyle: import("vue-types").VueTypeValidableDef<{
15 [key: string]: any;
16 }> & {
17 default: () => {
18 [key: string]: any;
19 };
20 };
21 tabBarExtraContent: import("vue-types").VueTypeValidableDef<any>;
22 destroyInactiveTabPane: import("vue-types").VueTypeValidableDef<boolean> & {
23 default: boolean;
24 };
25 type: import("vue-types").VueTypeDef<"line" | "card" | "editable-card">;
26 tabPosition: import("vue-types").VueTypeDef<string> & {
27 default: string;
28 };
29 size: import("vue-types").VueTypeDef<string>;
30 animated: import("vue-types").VueTypeDef<boolean | {
31 [key: string]: any;
32 }>;
33 tabBarGutter: import("vue-types").VueTypeValidableDef<number> & {
34 default: number;
35 };
36 renderTabBar: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
37 default: (...args: any[]) => any;
38 };
39 onChange: {
40 type: PropType<(activeKey: string) => void>;
41 };
42 onTabClick: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
43 default: (...args: any[]) => any;
44 };
45 onPrevClick: {
46 type: PropType<(e: MouseEvent) => void>;
47 };
48 onNextClick: {
49 type: PropType<(e: MouseEvent) => void>;
50 };
51 onEdit: {
52 type: PropType<(targetKey: string | MouseEvent, action: 'add' | 'remove') => void>;
53 };
54}, {
55 configProvider: import("../config-provider").ConfigConsumerProps;
56}, unknown, {}, {
57 removeTab(targetKey: string, e: MouseEvent): void;
58 handleChange(activeKey: string): void;
59 createNewTab(targetKey: MouseEvent): void;
60}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeKey" | "edit")[], "change" | "update:activeKey" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
61 prefixCls: string;
62 centered: boolean;
63 tabBarStyle: {
64 [key: string]: any;
65 };
66 tabPosition: string;
67 renderTabBar: (...args: any[]) => any;
68 tabBarGutter: number;
69 destroyInactiveTabPane: boolean;
70 hideAdd: boolean;
71 onTabClick: (...args: any[]) => any;
72} & {
73 onChange?: (activeKey: string) => void;
74 size?: string;
75 type?: "line" | "card" | "editable-card";
76 animated?: boolean | {
77 [key: string]: any;
78 };
79 activeKey?: import("../_util/type").Key;
80 tabBarExtraContent?: any;
81 defaultActiveKey?: import("../_util/type").Key;
82 onPrevClick?: (e: MouseEvent) => void;
83 onNextClick?: (e: MouseEvent) => void;
84 onEdit?: (targetKey: string | MouseEvent, action: 'add' | 'remove') => void;
85}>, {
86 prefixCls: string;
87 centered: boolean;
88 tabBarStyle: {
89 [key: string]: any;
90 };
91 tabPosition: string;
92 renderTabBar: (...args: any[]) => any;
93 tabBarGutter: number;
94 destroyInactiveTabPane: boolean;
95 hideAdd: boolean;
96 onTabClick: (...args: any[]) => any;
97}>;
98export default _default;