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