index.d.ts 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. import type { Plugin } from 'vue';
  2. import { TabPane } from './src';
  3. export type { TabsProps, TabPaneProps } from './src';
  4. declare const _default: {
  5. new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
  6. prefixCls: {
  7. type: StringConstructor;
  8. };
  9. id: {
  10. type: StringConstructor;
  11. };
  12. popupClassName: StringConstructor;
  13. getPopupContainer: {
  14. type: import("vue").PropType<(triggerNode?: HTMLElement) => HTMLElement>;
  15. default: (triggerNode?: HTMLElement) => HTMLElement;
  16. };
  17. activeKey: {
  18. type: (StringConstructor | NumberConstructor)[];
  19. };
  20. defaultActiveKey: {
  21. type: (StringConstructor | NumberConstructor)[];
  22. };
  23. direction: {
  24. type: import("vue").PropType<"rtl" | "ltr">;
  25. default: "rtl" | "ltr";
  26. };
  27. animated: {
  28. type: import("vue").PropType<boolean | import("./src/interface").AnimatedConfig>;
  29. default: boolean | import("./src/interface").AnimatedConfig;
  30. };
  31. renderTabBar: {
  32. type: import("vue").PropType<import("./src/interface").RenderTabBar>;
  33. default: import("./src/interface").RenderTabBar;
  34. };
  35. tabBarGutter: {
  36. type: NumberConstructor;
  37. };
  38. tabBarStyle: {
  39. type: import("vue").PropType<import("vue").CSSProperties>;
  40. default: import("vue").CSSProperties;
  41. };
  42. tabPosition: {
  43. type: import("vue").PropType<import("./src/interface").TabPosition>;
  44. default: import("./src/interface").TabPosition;
  45. };
  46. destroyInactiveTabPane: {
  47. type: BooleanConstructor;
  48. default: boolean;
  49. };
  50. hideAdd: BooleanConstructor;
  51. type: {
  52. type: import("vue").PropType<import("./src/Tabs").TabsType>;
  53. default: import("./src/Tabs").TabsType;
  54. };
  55. size: {
  56. type: import("vue").PropType<import("../config-provider").SizeType>;
  57. default: import("../config-provider").SizeType;
  58. };
  59. centered: BooleanConstructor;
  60. onEdit: {
  61. type: import("vue").PropType<(e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void>;
  62. default: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  63. };
  64. onChange: {
  65. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  66. default: (activeKey: import("../_util/type").Key) => void;
  67. };
  68. onTabClick: {
  69. type: import("vue").PropType<(activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void>;
  70. default: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  71. };
  72. onTabScroll: {
  73. type: import("vue").PropType<import("./src/interface").OnTabScroll>;
  74. default: import("./src/interface").OnTabScroll;
  75. };
  76. 'onUpdate:activeKey': {
  77. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  78. default: (activeKey: import("../_util/type").Key) => void;
  79. };
  80. locale: {
  81. type: import("vue").PropType<import("./src/interface").TabsLocale>;
  82. default: import("./src/interface").TabsLocale;
  83. };
  84. onPrevClick: {
  85. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  86. default: import("../_util/EventInterface").MouseEventHandler;
  87. };
  88. onNextClick: {
  89. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  90. default: import("../_util/EventInterface").MouseEventHandler;
  91. };
  92. tabBarExtraContent: import("vue-types").VueTypeValidableDef<any>;
  93. }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
  94. prefixCls: {
  95. type: StringConstructor;
  96. };
  97. id: {
  98. type: StringConstructor;
  99. };
  100. popupClassName: StringConstructor;
  101. getPopupContainer: {
  102. type: import("vue").PropType<(triggerNode?: HTMLElement) => HTMLElement>;
  103. default: (triggerNode?: HTMLElement) => HTMLElement;
  104. };
  105. activeKey: {
  106. type: (StringConstructor | NumberConstructor)[];
  107. };
  108. defaultActiveKey: {
  109. type: (StringConstructor | NumberConstructor)[];
  110. };
  111. direction: {
  112. type: import("vue").PropType<"rtl" | "ltr">;
  113. default: "rtl" | "ltr";
  114. };
  115. animated: {
  116. type: import("vue").PropType<boolean | import("./src/interface").AnimatedConfig>;
  117. default: boolean | import("./src/interface").AnimatedConfig;
  118. };
  119. renderTabBar: {
  120. type: import("vue").PropType<import("./src/interface").RenderTabBar>;
  121. default: import("./src/interface").RenderTabBar;
  122. };
  123. tabBarGutter: {
  124. type: NumberConstructor;
  125. };
  126. tabBarStyle: {
  127. type: import("vue").PropType<import("vue").CSSProperties>;
  128. default: import("vue").CSSProperties;
  129. };
  130. tabPosition: {
  131. type: import("vue").PropType<import("./src/interface").TabPosition>;
  132. default: import("./src/interface").TabPosition;
  133. };
  134. destroyInactiveTabPane: {
  135. type: BooleanConstructor;
  136. default: boolean;
  137. };
  138. hideAdd: BooleanConstructor;
  139. type: {
  140. type: import("vue").PropType<import("./src/Tabs").TabsType>;
  141. default: import("./src/Tabs").TabsType;
  142. };
  143. size: {
  144. type: import("vue").PropType<import("../config-provider").SizeType>;
  145. default: import("../config-provider").SizeType;
  146. };
  147. centered: BooleanConstructor;
  148. onEdit: {
  149. type: import("vue").PropType<(e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void>;
  150. default: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  151. };
  152. onChange: {
  153. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  154. default: (activeKey: import("../_util/type").Key) => void;
  155. };
  156. onTabClick: {
  157. type: import("vue").PropType<(activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void>;
  158. default: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  159. };
  160. onTabScroll: {
  161. type: import("vue").PropType<import("./src/interface").OnTabScroll>;
  162. default: import("./src/interface").OnTabScroll;
  163. };
  164. 'onUpdate:activeKey': {
  165. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  166. default: (activeKey: import("../_util/type").Key) => void;
  167. };
  168. locale: {
  169. type: import("vue").PropType<import("./src/interface").TabsLocale>;
  170. default: import("./src/interface").TabsLocale;
  171. };
  172. onPrevClick: {
  173. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  174. default: import("../_util/EventInterface").MouseEventHandler;
  175. };
  176. onNextClick: {
  177. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  178. default: import("../_util/EventInterface").MouseEventHandler;
  179. };
  180. tabBarExtraContent: import("vue-types").VueTypeValidableDef<any>;
  181. }>>, {
  182. size: import("../config-provider").SizeType;
  183. type: import("./src/Tabs").TabsType;
  184. onChange: (activeKey: import("../_util/type").Key) => void;
  185. direction: "rtl" | "ltr";
  186. getPopupContainer: (triggerNode?: HTMLElement) => HTMLElement;
  187. locale: import("./src/interface").TabsLocale;
  188. 'onUpdate:activeKey': (activeKey: import("../_util/type").Key) => void;
  189. animated: boolean | import("./src/interface").AnimatedConfig;
  190. destroyInactiveTabPane: boolean;
  191. onTabClick: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  192. tabPosition: import("./src/interface").TabPosition;
  193. renderTabBar: import("./src/interface").RenderTabBar;
  194. onTabScroll: import("./src/interface").OnTabScroll;
  195. tabBarStyle: import("vue").CSSProperties;
  196. hideAdd: boolean;
  197. centered: boolean;
  198. onEdit: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  199. onPrevClick: import("../_util/EventInterface").MouseEventHandler;
  200. onNextClick: import("../_util/EventInterface").MouseEventHandler;
  201. }, true, {}, import("../_util/type").CustomSlotsType<{
  202. tabBarExtraContent?: any;
  203. leftExtra?: any;
  204. rightExtra?: any;
  205. moreIcon?: any;
  206. addIcon?: any;
  207. removeIcon?: any;
  208. renderTabBar?: any;
  209. default?: any;
  210. }>, {
  211. P: {};
  212. B: {};
  213. D: {};
  214. C: {};
  215. M: {};
  216. Defaults: {};
  217. }, Readonly<import("vue").ExtractPropTypes<{
  218. prefixCls: {
  219. type: StringConstructor;
  220. };
  221. id: {
  222. type: StringConstructor;
  223. };
  224. popupClassName: StringConstructor;
  225. getPopupContainer: {
  226. type: import("vue").PropType<(triggerNode?: HTMLElement) => HTMLElement>;
  227. default: (triggerNode?: HTMLElement) => HTMLElement;
  228. };
  229. activeKey: {
  230. type: (StringConstructor | NumberConstructor)[];
  231. };
  232. defaultActiveKey: {
  233. type: (StringConstructor | NumberConstructor)[];
  234. };
  235. direction: {
  236. type: import("vue").PropType<"rtl" | "ltr">;
  237. default: "rtl" | "ltr";
  238. };
  239. animated: {
  240. type: import("vue").PropType<boolean | import("./src/interface").AnimatedConfig>;
  241. default: boolean | import("./src/interface").AnimatedConfig;
  242. };
  243. renderTabBar: {
  244. type: import("vue").PropType<import("./src/interface").RenderTabBar>;
  245. default: import("./src/interface").RenderTabBar;
  246. };
  247. tabBarGutter: {
  248. type: NumberConstructor;
  249. };
  250. tabBarStyle: {
  251. type: import("vue").PropType<import("vue").CSSProperties>;
  252. default: import("vue").CSSProperties;
  253. };
  254. tabPosition: {
  255. type: import("vue").PropType<import("./src/interface").TabPosition>;
  256. default: import("./src/interface").TabPosition;
  257. };
  258. destroyInactiveTabPane: {
  259. type: BooleanConstructor;
  260. default: boolean;
  261. };
  262. hideAdd: BooleanConstructor;
  263. type: {
  264. type: import("vue").PropType<import("./src/Tabs").TabsType>;
  265. default: import("./src/Tabs").TabsType;
  266. };
  267. size: {
  268. type: import("vue").PropType<import("../config-provider").SizeType>;
  269. default: import("../config-provider").SizeType;
  270. };
  271. centered: BooleanConstructor;
  272. onEdit: {
  273. type: import("vue").PropType<(e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void>;
  274. default: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  275. };
  276. onChange: {
  277. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  278. default: (activeKey: import("../_util/type").Key) => void;
  279. };
  280. onTabClick: {
  281. type: import("vue").PropType<(activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void>;
  282. default: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  283. };
  284. onTabScroll: {
  285. type: import("vue").PropType<import("./src/interface").OnTabScroll>;
  286. default: import("./src/interface").OnTabScroll;
  287. };
  288. 'onUpdate:activeKey': {
  289. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  290. default: (activeKey: import("../_util/type").Key) => void;
  291. };
  292. locale: {
  293. type: import("vue").PropType<import("./src/interface").TabsLocale>;
  294. default: import("./src/interface").TabsLocale;
  295. };
  296. onPrevClick: {
  297. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  298. default: import("../_util/EventInterface").MouseEventHandler;
  299. };
  300. onNextClick: {
  301. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  302. default: import("../_util/EventInterface").MouseEventHandler;
  303. };
  304. tabBarExtraContent: import("vue-types").VueTypeValidableDef<any>;
  305. }>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
  306. size: import("../config-provider").SizeType;
  307. type: import("./src/Tabs").TabsType;
  308. onChange: (activeKey: import("../_util/type").Key) => void;
  309. direction: "rtl" | "ltr";
  310. getPopupContainer: (triggerNode?: HTMLElement) => HTMLElement;
  311. locale: import("./src/interface").TabsLocale;
  312. 'onUpdate:activeKey': (activeKey: import("../_util/type").Key) => void;
  313. animated: boolean | import("./src/interface").AnimatedConfig;
  314. destroyInactiveTabPane: boolean;
  315. onTabClick: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  316. tabPosition: import("./src/interface").TabPosition;
  317. renderTabBar: import("./src/interface").RenderTabBar;
  318. onTabScroll: import("./src/interface").OnTabScroll;
  319. tabBarStyle: import("vue").CSSProperties;
  320. hideAdd: boolean;
  321. centered: boolean;
  322. onEdit: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  323. onPrevClick: import("../_util/EventInterface").MouseEventHandler;
  324. onNextClick: import("../_util/EventInterface").MouseEventHandler;
  325. }>;
  326. __isFragment?: never;
  327. __isTeleport?: never;
  328. __isSuspense?: never;
  329. } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
  330. prefixCls: {
  331. type: StringConstructor;
  332. };
  333. id: {
  334. type: StringConstructor;
  335. };
  336. popupClassName: StringConstructor;
  337. getPopupContainer: {
  338. type: import("vue").PropType<(triggerNode?: HTMLElement) => HTMLElement>;
  339. default: (triggerNode?: HTMLElement) => HTMLElement;
  340. };
  341. activeKey: {
  342. type: (StringConstructor | NumberConstructor)[];
  343. };
  344. defaultActiveKey: {
  345. type: (StringConstructor | NumberConstructor)[];
  346. };
  347. direction: {
  348. type: import("vue").PropType<"rtl" | "ltr">;
  349. default: "rtl" | "ltr";
  350. };
  351. animated: {
  352. type: import("vue").PropType<boolean | import("./src/interface").AnimatedConfig>;
  353. default: boolean | import("./src/interface").AnimatedConfig;
  354. };
  355. renderTabBar: {
  356. type: import("vue").PropType<import("./src/interface").RenderTabBar>;
  357. default: import("./src/interface").RenderTabBar;
  358. };
  359. tabBarGutter: {
  360. type: NumberConstructor;
  361. };
  362. tabBarStyle: {
  363. type: import("vue").PropType<import("vue").CSSProperties>;
  364. default: import("vue").CSSProperties;
  365. };
  366. tabPosition: {
  367. type: import("vue").PropType<import("./src/interface").TabPosition>;
  368. default: import("./src/interface").TabPosition;
  369. };
  370. destroyInactiveTabPane: {
  371. type: BooleanConstructor;
  372. default: boolean;
  373. };
  374. hideAdd: BooleanConstructor;
  375. type: {
  376. type: import("vue").PropType<import("./src/Tabs").TabsType>;
  377. default: import("./src/Tabs").TabsType;
  378. };
  379. size: {
  380. type: import("vue").PropType<import("../config-provider").SizeType>;
  381. default: import("../config-provider").SizeType;
  382. };
  383. centered: BooleanConstructor;
  384. onEdit: {
  385. type: import("vue").PropType<(e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void>;
  386. default: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  387. };
  388. onChange: {
  389. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  390. default: (activeKey: import("../_util/type").Key) => void;
  391. };
  392. onTabClick: {
  393. type: import("vue").PropType<(activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void>;
  394. default: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  395. };
  396. onTabScroll: {
  397. type: import("vue").PropType<import("./src/interface").OnTabScroll>;
  398. default: import("./src/interface").OnTabScroll;
  399. };
  400. 'onUpdate:activeKey': {
  401. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  402. default: (activeKey: import("../_util/type").Key) => void;
  403. };
  404. locale: {
  405. type: import("vue").PropType<import("./src/interface").TabsLocale>;
  406. default: import("./src/interface").TabsLocale;
  407. };
  408. onPrevClick: {
  409. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  410. default: import("../_util/EventInterface").MouseEventHandler;
  411. };
  412. onNextClick: {
  413. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  414. default: import("../_util/EventInterface").MouseEventHandler;
  415. };
  416. tabBarExtraContent: import("vue-types").VueTypeValidableDef<any>;
  417. }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  418. size: import("../config-provider").SizeType;
  419. type: import("./src/Tabs").TabsType;
  420. onChange: (activeKey: import("../_util/type").Key) => void;
  421. direction: "rtl" | "ltr";
  422. getPopupContainer: (triggerNode?: HTMLElement) => HTMLElement;
  423. locale: import("./src/interface").TabsLocale;
  424. 'onUpdate:activeKey': (activeKey: import("../_util/type").Key) => void;
  425. animated: boolean | import("./src/interface").AnimatedConfig;
  426. destroyInactiveTabPane: boolean;
  427. onTabClick: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  428. tabPosition: import("./src/interface").TabPosition;
  429. renderTabBar: import("./src/interface").RenderTabBar;
  430. onTabScroll: import("./src/interface").OnTabScroll;
  431. tabBarStyle: import("vue").CSSProperties;
  432. hideAdd: boolean;
  433. centered: boolean;
  434. onEdit: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  435. onPrevClick: import("../_util/EventInterface").MouseEventHandler;
  436. onNextClick: import("../_util/EventInterface").MouseEventHandler;
  437. }, {}, string, import("../_util/type").CustomSlotsType<{
  438. tabBarExtraContent?: any;
  439. leftExtra?: any;
  440. rightExtra?: any;
  441. moreIcon?: any;
  442. addIcon?: any;
  443. removeIcon?: any;
  444. renderTabBar?: any;
  445. default?: any;
  446. }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin<any[]> & {
  447. readonly TabPane: typeof TabPane;
  448. };
  449. export default _default;
  450. export { TabPane };