UNPKG

15.7 kBTypeScriptView Raw
1import { App } from 'vue';
2import TabPane from '../vc-tabs/src/TabPane';
3import TabContent from '../vc-tabs/src/TabContent';
4declare const _default: ({
5 new (...args: any[]): {
6 $: import("vue").ComponentInternalInstance;
7 $data: {};
8 $props: Partial<{
9 prefixCls: string;
10 centered: boolean;
11 tabBarStyle: {
12 [key: string]: any;
13 };
14 tabPosition: string;
15 renderTabBar: (...args: any[]) => any;
16 tabBarGutter: number;
17 destroyInactiveTabPane: boolean;
18 hideAdd: boolean;
19 onTabClick: (...args: any[]) => any;
20 }> & Pick<Readonly<{
21 prefixCls: string;
22 centered: boolean;
23 tabBarStyle: {
24 [key: string]: any;
25 };
26 tabPosition: string;
27 renderTabBar: (...args: any[]) => any;
28 tabBarGutter: number;
29 destroyInactiveTabPane: boolean;
30 hideAdd: boolean;
31 onTabClick: (...args: any[]) => any;
32 } & {
33 onChange?: (activeKey: string) => void;
34 size?: string;
35 type?: "line" | "card" | "editable-card";
36 animated?: boolean | {
37 [key: string]: any;
38 };
39 activeKey?: import("../_util/type").Key;
40 tabBarExtraContent?: any;
41 defaultActiveKey?: import("../_util/type").Key;
42 onPrevClick?: (e: MouseEvent) => void;
43 onNextClick?: (e: MouseEvent) => void;
44 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
45 }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "class" | "onChange" | "key" | "ref" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "size" | "type" | "animated" | "activeKey" | "tabBarExtraContent" | "defaultActiveKey" | "onPrevClick" | "onNextClick" | "onEdit">;
46 $attrs: Record<string, unknown>;
47 $refs: Record<string, unknown>;
48 $slots: Readonly<{
49 [name: string]: import("vue").Slot;
50 }>;
51 $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
52 $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
53 $emit: (event: "change" | "update:activeKey" | "edit", ...args: any[]) => void;
54 $el: any;
55 $options: import("vue").ComponentOptionsBase<Readonly<{
56 prefixCls: string;
57 centered: boolean;
58 tabBarStyle: {
59 [key: string]: any;
60 };
61 tabPosition: string;
62 renderTabBar: (...args: any[]) => any;
63 tabBarGutter: number;
64 destroyInactiveTabPane: boolean;
65 hideAdd: boolean;
66 onTabClick: (...args: any[]) => any;
67 } & {
68 onChange?: (activeKey: string) => void;
69 size?: string;
70 type?: "line" | "card" | "editable-card";
71 animated?: boolean | {
72 [key: string]: any;
73 };
74 activeKey?: import("../_util/type").Key;
75 tabBarExtraContent?: any;
76 defaultActiveKey?: import("../_util/type").Key;
77 onPrevClick?: (e: MouseEvent) => void;
78 onNextClick?: (e: MouseEvent) => void;
79 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
80 }>, {
81 configProvider: import("../config-provider").ConfigConsumerProps;
82 }, unknown, {}, {
83 removeTab(targetKey: string, e: MouseEvent): void;
84 handleChange(activeKey: string): void;
85 createNewTab(targetKey: MouseEvent): void;
86 }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeKey" | "edit")[], string, {
87 prefixCls: string;
88 centered: boolean;
89 tabBarStyle: {
90 [key: string]: any;
91 };
92 tabPosition: string;
93 renderTabBar: (...args: any[]) => any;
94 tabBarGutter: number;
95 destroyInactiveTabPane: boolean;
96 hideAdd: boolean;
97 onTabClick: (...args: any[]) => any;
98 }>;
99 $forceUpdate: import("vue").ReactiveEffect<any>;
100 $nextTick: typeof import("vue").nextTick;
101 $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
102 } & Readonly<{
103 prefixCls: string;
104 centered: boolean;
105 tabBarStyle: {
106 [key: string]: any;
107 };
108 tabPosition: string;
109 renderTabBar: (...args: any[]) => any;
110 tabBarGutter: number;
111 destroyInactiveTabPane: boolean;
112 hideAdd: boolean;
113 onTabClick: (...args: any[]) => any;
114 } & {
115 onChange?: (activeKey: string) => void;
116 size?: string;
117 type?: "line" | "card" | "editable-card";
118 animated?: boolean | {
119 [key: string]: any;
120 };
121 activeKey?: import("../_util/type").Key;
122 tabBarExtraContent?: any;
123 defaultActiveKey?: import("../_util/type").Key;
124 onPrevClick?: (e: MouseEvent) => void;
125 onNextClick?: (e: MouseEvent) => void;
126 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
127 }> & import("vue").ShallowUnwrapRef<{
128 configProvider: import("../config-provider").ConfigConsumerProps;
129 }> & {} & {
130 removeTab(targetKey: string, e: MouseEvent): void;
131 handleChange(activeKey: string): void;
132 createNewTab(targetKey: MouseEvent): void;
133 } & import("vue").ComponentCustomProperties;
134 __isFragment?: never;
135 __isTeleport?: never;
136 __isSuspense?: never;
137} & import("vue").ComponentOptionsBase<Readonly<{
138 prefixCls: string;
139 centered: boolean;
140 tabBarStyle: {
141 [key: string]: any;
142 };
143 tabPosition: string;
144 renderTabBar: (...args: any[]) => any;
145 tabBarGutter: number;
146 destroyInactiveTabPane: boolean;
147 hideAdd: boolean;
148 onTabClick: (...args: any[]) => any;
149} & {
150 onChange?: (activeKey: string) => void;
151 size?: string;
152 type?: "line" | "card" | "editable-card";
153 animated?: boolean | {
154 [key: string]: any;
155 };
156 activeKey?: import("../_util/type").Key;
157 tabBarExtraContent?: any;
158 defaultActiveKey?: import("../_util/type").Key;
159 onPrevClick?: (e: MouseEvent) => void;
160 onNextClick?: (e: MouseEvent) => void;
161 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
162}>, {
163 configProvider: import("../config-provider").ConfigConsumerProps;
164}, unknown, {}, {
165 removeTab(targetKey: string, e: MouseEvent): void;
166 handleChange(activeKey: string): void;
167 createNewTab(targetKey: MouseEvent): void;
168}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeKey" | "edit")[], "change" | "update:activeKey" | "edit", {
169 prefixCls: string;
170 centered: boolean;
171 tabBarStyle: {
172 [key: string]: any;
173 };
174 tabPosition: string;
175 renderTabBar: (...args: any[]) => any;
176 tabBarGutter: number;
177 destroyInactiveTabPane: boolean;
178 hideAdd: boolean;
179 onTabClick: (...args: any[]) => any;
180}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ((app: App<any>, ...options: any[]) => any) & {
181 install?: (app: App<any>, ...options: any[]) => any;
182} & {
183 readonly TabPane: typeof TabPane;
184 readonly TabContent: typeof TabContent;
185}) | ({
186 new (...args: any[]): {
187 $: import("vue").ComponentInternalInstance;
188 $data: {};
189 $props: Partial<{
190 prefixCls: string;
191 centered: boolean;
192 tabBarStyle: {
193 [key: string]: any;
194 };
195 tabPosition: string;
196 renderTabBar: (...args: any[]) => any;
197 tabBarGutter: number;
198 destroyInactiveTabPane: boolean;
199 hideAdd: boolean;
200 onTabClick: (...args: any[]) => any;
201 }> & Pick<Readonly<{
202 prefixCls: string;
203 centered: boolean;
204 tabBarStyle: {
205 [key: string]: any;
206 };
207 tabPosition: string;
208 renderTabBar: (...args: any[]) => any;
209 tabBarGutter: number;
210 destroyInactiveTabPane: boolean;
211 hideAdd: boolean;
212 onTabClick: (...args: any[]) => any;
213 } & {
214 onChange?: (activeKey: string) => void;
215 size?: string;
216 type?: "line" | "card" | "editable-card";
217 animated?: boolean | {
218 [key: string]: any;
219 };
220 activeKey?: import("../_util/type").Key;
221 tabBarExtraContent?: any;
222 defaultActiveKey?: import("../_util/type").Key;
223 onPrevClick?: (e: MouseEvent) => void;
224 onNextClick?: (e: MouseEvent) => void;
225 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
226 }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "class" | "onChange" | "key" | "ref" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "size" | "type" | "animated" | "activeKey" | "tabBarExtraContent" | "defaultActiveKey" | "onPrevClick" | "onNextClick" | "onEdit">;
227 $attrs: Record<string, unknown>;
228 $refs: Record<string, unknown>;
229 $slots: Readonly<{
230 [name: string]: import("vue").Slot;
231 }>;
232 $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
233 $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
234 $emit: (event: "change" | "update:activeKey" | "edit", ...args: any[]) => void;
235 $el: any;
236 $options: import("vue").ComponentOptionsBase<Readonly<{
237 prefixCls: string;
238 centered: boolean;
239 tabBarStyle: {
240 [key: string]: any;
241 };
242 tabPosition: string;
243 renderTabBar: (...args: any[]) => any;
244 tabBarGutter: number;
245 destroyInactiveTabPane: boolean;
246 hideAdd: boolean;
247 onTabClick: (...args: any[]) => any;
248 } & {
249 onChange?: (activeKey: string) => void;
250 size?: string;
251 type?: "line" | "card" | "editable-card";
252 animated?: boolean | {
253 [key: string]: any;
254 };
255 activeKey?: import("../_util/type").Key;
256 tabBarExtraContent?: any;
257 defaultActiveKey?: import("../_util/type").Key;
258 onPrevClick?: (e: MouseEvent) => void;
259 onNextClick?: (e: MouseEvent) => void;
260 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
261 }>, {
262 configProvider: import("../config-provider").ConfigConsumerProps;
263 }, unknown, {}, {
264 removeTab(targetKey: string, e: MouseEvent): void;
265 handleChange(activeKey: string): void;
266 createNewTab(targetKey: MouseEvent): void;
267 }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeKey" | "edit")[], string, {
268 prefixCls: string;
269 centered: boolean;
270 tabBarStyle: {
271 [key: string]: any;
272 };
273 tabPosition: string;
274 renderTabBar: (...args: any[]) => any;
275 tabBarGutter: number;
276 destroyInactiveTabPane: boolean;
277 hideAdd: boolean;
278 onTabClick: (...args: any[]) => any;
279 }>;
280 $forceUpdate: import("vue").ReactiveEffect<any>;
281 $nextTick: typeof import("vue").nextTick;
282 $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
283 } & Readonly<{
284 prefixCls: string;
285 centered: boolean;
286 tabBarStyle: {
287 [key: string]: any;
288 };
289 tabPosition: string;
290 renderTabBar: (...args: any[]) => any;
291 tabBarGutter: number;
292 destroyInactiveTabPane: boolean;
293 hideAdd: boolean;
294 onTabClick: (...args: any[]) => any;
295 } & {
296 onChange?: (activeKey: string) => void;
297 size?: string;
298 type?: "line" | "card" | "editable-card";
299 animated?: boolean | {
300 [key: string]: any;
301 };
302 activeKey?: import("../_util/type").Key;
303 tabBarExtraContent?: any;
304 defaultActiveKey?: import("../_util/type").Key;
305 onPrevClick?: (e: MouseEvent) => void;
306 onNextClick?: (e: MouseEvent) => void;
307 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
308 }> & import("vue").ShallowUnwrapRef<{
309 configProvider: import("../config-provider").ConfigConsumerProps;
310 }> & {} & {
311 removeTab(targetKey: string, e: MouseEvent): void;
312 handleChange(activeKey: string): void;
313 createNewTab(targetKey: MouseEvent): void;
314 } & import("vue").ComponentCustomProperties;
315 __isFragment?: never;
316 __isTeleport?: never;
317 __isSuspense?: never;
318} & import("vue").ComponentOptionsBase<Readonly<{
319 prefixCls: string;
320 centered: boolean;
321 tabBarStyle: {
322 [key: string]: any;
323 };
324 tabPosition: string;
325 renderTabBar: (...args: any[]) => any;
326 tabBarGutter: number;
327 destroyInactiveTabPane: boolean;
328 hideAdd: boolean;
329 onTabClick: (...args: any[]) => any;
330} & {
331 onChange?: (activeKey: string) => void;
332 size?: string;
333 type?: "line" | "card" | "editable-card";
334 animated?: boolean | {
335 [key: string]: any;
336 };
337 activeKey?: import("../_util/type").Key;
338 tabBarExtraContent?: any;
339 defaultActiveKey?: import("../_util/type").Key;
340 onPrevClick?: (e: MouseEvent) => void;
341 onNextClick?: (e: MouseEvent) => void;
342 onEdit?: (targetKey: string | MouseEvent, action: "add" | "remove") => void;
343}>, {
344 configProvider: import("../config-provider").ConfigConsumerProps;
345}, unknown, {}, {
346 removeTab(targetKey: string, e: MouseEvent): void;
347 handleChange(activeKey: string): void;
348 createNewTab(targetKey: MouseEvent): void;
349}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeKey" | "edit")[], "change" | "update:activeKey" | "edit", {
350 prefixCls: string;
351 centered: boolean;
352 tabBarStyle: {
353 [key: string]: any;
354 };
355 tabPosition: string;
356 renderTabBar: (...args: any[]) => any;
357 tabBarGutter: number;
358 destroyInactiveTabPane: boolean;
359 hideAdd: boolean;
360 onTabClick: (...args: any[]) => any;
361}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
362 install: (app: App<any>, ...options: any[]) => any;
363} & {
364 readonly TabPane: typeof TabPane;
365 readonly TabContent: typeof TabContent;
366});
367export default _default;
368export { TabPane, TabContent };