Skip to content

Commit

Permalink
fix: tabpane name error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Dec 24, 2021
1 parent 3ff4f6b commit b645f82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
3 changes: 2 additions & 1 deletion components/tabs/src/TabPanelList/TabPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit b645f82

Please sign in to comment.