index.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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").CreateComponentPublicInstanceWithMixins<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. }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
  94. size: import("../config-provider").SizeType;
  95. type: import("./src/Tabs").TabsType;
  96. onChange: (activeKey: import("../_util/type").Key) => void;
  97. direction: "rtl" | "ltr";
  98. getPopupContainer: (triggerNode?: HTMLElement) => HTMLElement;
  99. locale: import("./src/interface").TabsLocale;
  100. 'onUpdate:activeKey': (activeKey: import("../_util/type").Key) => void;
  101. animated: boolean | import("./src/interface").AnimatedConfig;
  102. destroyInactiveTabPane: boolean;
  103. onTabClick: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  104. tabPosition: import("./src/interface").TabPosition;
  105. renderTabBar: import("./src/interface").RenderTabBar;
  106. onTabScroll: import("./src/interface").OnTabScroll;
  107. tabBarStyle: import("vue").CSSProperties;
  108. hideAdd: boolean;
  109. centered: boolean;
  110. onEdit: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  111. onPrevClick: import("../_util/EventInterface").MouseEventHandler;
  112. onNextClick: import("../_util/EventInterface").MouseEventHandler;
  113. }, true, {}, import("../_util/type").CustomSlotsType<{
  114. tabBarExtraContent?: any;
  115. leftExtra?: any;
  116. rightExtra?: any;
  117. moreIcon?: any;
  118. addIcon?: any;
  119. removeIcon?: any;
  120. renderTabBar?: any;
  121. default?: any;
  122. }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
  123. P: {};
  124. B: {};
  125. D: {};
  126. C: {};
  127. M: {};
  128. Defaults: {};
  129. }, Readonly<import("vue").ExtractPropTypes<{
  130. prefixCls: {
  131. type: StringConstructor;
  132. };
  133. id: {
  134. type: StringConstructor;
  135. };
  136. popupClassName: StringConstructor;
  137. getPopupContainer: {
  138. type: import("vue").PropType<(triggerNode?: HTMLElement) => HTMLElement>;
  139. default: (triggerNode?: HTMLElement) => HTMLElement;
  140. };
  141. activeKey: {
  142. type: (StringConstructor | NumberConstructor)[];
  143. };
  144. defaultActiveKey: {
  145. type: (StringConstructor | NumberConstructor)[];
  146. };
  147. direction: {
  148. type: import("vue").PropType<"rtl" | "ltr">;
  149. default: "rtl" | "ltr";
  150. };
  151. animated: {
  152. type: import("vue").PropType<boolean | import("./src/interface").AnimatedConfig>;
  153. default: boolean | import("./src/interface").AnimatedConfig;
  154. };
  155. renderTabBar: {
  156. type: import("vue").PropType<import("./src/interface").RenderTabBar>;
  157. default: import("./src/interface").RenderTabBar;
  158. };
  159. tabBarGutter: {
  160. type: NumberConstructor;
  161. };
  162. tabBarStyle: {
  163. type: import("vue").PropType<import("vue").CSSProperties>;
  164. default: import("vue").CSSProperties;
  165. };
  166. tabPosition: {
  167. type: import("vue").PropType<import("./src/interface").TabPosition>;
  168. default: import("./src/interface").TabPosition;
  169. };
  170. destroyInactiveTabPane: {
  171. type: BooleanConstructor;
  172. default: boolean;
  173. };
  174. hideAdd: BooleanConstructor;
  175. type: {
  176. type: import("vue").PropType<import("./src/Tabs").TabsType>;
  177. default: import("./src/Tabs").TabsType;
  178. };
  179. size: {
  180. type: import("vue").PropType<import("../config-provider").SizeType>;
  181. default: import("../config-provider").SizeType;
  182. };
  183. centered: BooleanConstructor;
  184. onEdit: {
  185. type: import("vue").PropType<(e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void>;
  186. default: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  187. };
  188. onChange: {
  189. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  190. default: (activeKey: import("../_util/type").Key) => void;
  191. };
  192. onTabClick: {
  193. type: import("vue").PropType<(activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void>;
  194. default: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  195. };
  196. onTabScroll: {
  197. type: import("vue").PropType<import("./src/interface").OnTabScroll>;
  198. default: import("./src/interface").OnTabScroll;
  199. };
  200. 'onUpdate:activeKey': {
  201. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  202. default: (activeKey: import("../_util/type").Key) => void;
  203. };
  204. locale: {
  205. type: import("vue").PropType<import("./src/interface").TabsLocale>;
  206. default: import("./src/interface").TabsLocale;
  207. };
  208. onPrevClick: {
  209. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  210. default: import("../_util/EventInterface").MouseEventHandler;
  211. };
  212. onNextClick: {
  213. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  214. default: import("../_util/EventInterface").MouseEventHandler;
  215. };
  216. tabBarExtraContent: import("vue-types").VueTypeValidableDef<any>;
  217. }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
  218. size: import("../config-provider").SizeType;
  219. type: import("./src/Tabs").TabsType;
  220. onChange: (activeKey: import("../_util/type").Key) => void;
  221. direction: "rtl" | "ltr";
  222. getPopupContainer: (triggerNode?: HTMLElement) => HTMLElement;
  223. locale: import("./src/interface").TabsLocale;
  224. 'onUpdate:activeKey': (activeKey: import("../_util/type").Key) => void;
  225. animated: boolean | import("./src/interface").AnimatedConfig;
  226. destroyInactiveTabPane: boolean;
  227. onTabClick: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  228. tabPosition: import("./src/interface").TabPosition;
  229. renderTabBar: import("./src/interface").RenderTabBar;
  230. onTabScroll: import("./src/interface").OnTabScroll;
  231. tabBarStyle: import("vue").CSSProperties;
  232. hideAdd: boolean;
  233. centered: boolean;
  234. onEdit: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  235. onPrevClick: import("../_util/EventInterface").MouseEventHandler;
  236. onNextClick: import("../_util/EventInterface").MouseEventHandler;
  237. }>;
  238. __isFragment?: never;
  239. __isTeleport?: never;
  240. __isSuspense?: never;
  241. } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
  242. prefixCls: {
  243. type: StringConstructor;
  244. };
  245. id: {
  246. type: StringConstructor;
  247. };
  248. popupClassName: StringConstructor;
  249. getPopupContainer: {
  250. type: import("vue").PropType<(triggerNode?: HTMLElement) => HTMLElement>;
  251. default: (triggerNode?: HTMLElement) => HTMLElement;
  252. };
  253. activeKey: {
  254. type: (StringConstructor | NumberConstructor)[];
  255. };
  256. defaultActiveKey: {
  257. type: (StringConstructor | NumberConstructor)[];
  258. };
  259. direction: {
  260. type: import("vue").PropType<"rtl" | "ltr">;
  261. default: "rtl" | "ltr";
  262. };
  263. animated: {
  264. type: import("vue").PropType<boolean | import("./src/interface").AnimatedConfig>;
  265. default: boolean | import("./src/interface").AnimatedConfig;
  266. };
  267. renderTabBar: {
  268. type: import("vue").PropType<import("./src/interface").RenderTabBar>;
  269. default: import("./src/interface").RenderTabBar;
  270. };
  271. tabBarGutter: {
  272. type: NumberConstructor;
  273. };
  274. tabBarStyle: {
  275. type: import("vue").PropType<import("vue").CSSProperties>;
  276. default: import("vue").CSSProperties;
  277. };
  278. tabPosition: {
  279. type: import("vue").PropType<import("./src/interface").TabPosition>;
  280. default: import("./src/interface").TabPosition;
  281. };
  282. destroyInactiveTabPane: {
  283. type: BooleanConstructor;
  284. default: boolean;
  285. };
  286. hideAdd: BooleanConstructor;
  287. type: {
  288. type: import("vue").PropType<import("./src/Tabs").TabsType>;
  289. default: import("./src/Tabs").TabsType;
  290. };
  291. size: {
  292. type: import("vue").PropType<import("../config-provider").SizeType>;
  293. default: import("../config-provider").SizeType;
  294. };
  295. centered: BooleanConstructor;
  296. onEdit: {
  297. type: import("vue").PropType<(e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void>;
  298. default: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  299. };
  300. onChange: {
  301. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  302. default: (activeKey: import("../_util/type").Key) => void;
  303. };
  304. onTabClick: {
  305. type: import("vue").PropType<(activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void>;
  306. default: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  307. };
  308. onTabScroll: {
  309. type: import("vue").PropType<import("./src/interface").OnTabScroll>;
  310. default: import("./src/interface").OnTabScroll;
  311. };
  312. 'onUpdate:activeKey': {
  313. type: import("vue").PropType<(activeKey: import("../_util/type").Key) => void>;
  314. default: (activeKey: import("../_util/type").Key) => void;
  315. };
  316. locale: {
  317. type: import("vue").PropType<import("./src/interface").TabsLocale>;
  318. default: import("./src/interface").TabsLocale;
  319. };
  320. onPrevClick: {
  321. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  322. default: import("../_util/EventInterface").MouseEventHandler;
  323. };
  324. onNextClick: {
  325. type: import("vue").PropType<import("../_util/EventInterface").MouseEventHandler>;
  326. default: import("../_util/EventInterface").MouseEventHandler;
  327. };
  328. tabBarExtraContent: import("vue-types").VueTypeValidableDef<any>;
  329. }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
  330. size: import("../config-provider").SizeType;
  331. type: import("./src/Tabs").TabsType;
  332. onChange: (activeKey: import("../_util/type").Key) => void;
  333. direction: "rtl" | "ltr";
  334. getPopupContainer: (triggerNode?: HTMLElement) => HTMLElement;
  335. locale: import("./src/interface").TabsLocale;
  336. 'onUpdate:activeKey': (activeKey: import("../_util/type").Key) => void;
  337. animated: boolean | import("./src/interface").AnimatedConfig;
  338. destroyInactiveTabPane: boolean;
  339. onTabClick: (activeKey: import("../_util/type").Key, e: MouseEvent | KeyboardEvent) => void;
  340. tabPosition: import("./src/interface").TabPosition;
  341. renderTabBar: import("./src/interface").RenderTabBar;
  342. onTabScroll: import("./src/interface").OnTabScroll;
  343. tabBarStyle: import("vue").CSSProperties;
  344. hideAdd: boolean;
  345. centered: boolean;
  346. onEdit: (e: import("../_util/type").Key | MouseEvent | KeyboardEvent, action: "add" | "remove") => void;
  347. onPrevClick: import("../_util/EventInterface").MouseEventHandler;
  348. onNextClick: import("../_util/EventInterface").MouseEventHandler;
  349. }, {}, string, import("../_util/type").CustomSlotsType<{
  350. tabBarExtraContent?: any;
  351. leftExtra?: any;
  352. rightExtra?: any;
  353. moreIcon?: any;
  354. addIcon?: any;
  355. removeIcon?: any;
  356. renderTabBar?: any;
  357. default?: any;
  358. }>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin<any[]> & {
  359. readonly TabPane: typeof TabPane;
  360. };
  361. export default _default;
  362. export { TabPane };