2021-06-26 09:35:40 +08:00
|
|
|
import type { App, Plugin } from 'vue';
|
2021-10-07 09:23:36 +08:00
|
|
|
import Tabs, { TabPane } from './src';
|
|
|
|
export type { TabsProps, TabPaneProps } from './src';
|
2019-08-28 10:50:19 +08:00
|
|
|
|
2021-12-24 16:08:51 +08:00
|
|
|
Tabs.TabPane = TabPane;
|
2018-09-19 13:21:57 +08:00
|
|
|
|
|
|
|
/* istanbul ignore next */
|
2021-06-23 23:08:16 +08:00
|
|
|
Tabs.install = function (app: App) {
|
2020-06-23 22:34:08 +08:00
|
|
|
app.component(Tabs.name, Tabs);
|
2021-12-24 16:08:51 +08:00
|
|
|
app.component(TabPane.name, TabPane);
|
2020-10-13 19:14:56 +08:00
|
|
|
return app;
|
2019-01-12 11:33:27 +08:00
|
|
|
};
|
2018-09-19 13:21:57 +08:00
|
|
|
|
2020-11-01 15:03:33 +08:00
|
|
|
export default Tabs as typeof Tabs &
|
|
|
|
Plugin & {
|
|
|
|
readonly TabPane: typeof TabPane;
|
|
|
|
};
|
|
|
|
|
2021-10-07 09:23:36 +08:00
|
|
|
export { TabPane };
|