fix: tabpane name error

pull/5079/head
tangjinzhou 2021-12-24 16:08:51 +08:00
parent 3ff4f6b926
commit b645f827d0
2 changed files with 4 additions and 3 deletions

View File

@ -2,12 +2,12 @@ import type { App, Plugin } from 'vue';
import Tabs, { TabPane } from './src';
export type { TabsProps, TabPaneProps } from './src';
Tabs.TabPane = { ...TabPane, name: 'ATabPane', __ANT_TAB_PANE: true };
Tabs.TabPane = TabPane;
/* istanbul ignore next */
Tabs.install = function (app: App) {
app.component(Tabs.name, Tabs);
app.component(Tabs.TabPane.name, Tabs.TabPane);
app.component(TabPane.name, TabPane);
return app;
};

View File

@ -20,8 +20,9 @@ export interface TabPaneProps {
}
export default defineComponent({
name: 'TabPane',
name: 'ATabPane',
inheritAttrs: false,
__ANT_TAB_PANE: true,
props: {
tab: PropTypes.any,
disabled: { type: Boolean },