Skip to content

Commit b645f82

Browse files
committed
fix: tabpane name error
1 parent 3ff4f6b commit b645f82

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/tabs/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import type { App, Plugin } from 'vue';
22
import Tabs, { TabPane } from './src';
33
export type { TabsProps, TabPaneProps } from './src';
44

5-
Tabs.TabPane = { ...TabPane, name: 'ATabPane', __ANT_TAB_PANE: true };
5+
Tabs.TabPane = TabPane;
66

77
/* istanbul ignore next */
88
Tabs.install = function (app: App) {
99
app.component(Tabs.name, Tabs);
10-
app.component(Tabs.TabPane.name, Tabs.TabPane);
10+
app.component(TabPane.name, TabPane);
1111
return app;
1212
};
1313

components/tabs/src/TabPanelList/TabPane.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export interface TabPaneProps {
2020
}
2121

2222
export default defineComponent({
23-
name: 'TabPane',
23+
name: 'ATabPane',
2424
inheritAttrs: false,
25+
__ANT_TAB_PANE: true,
2526
props: {
2627
tab: PropTypes.any,
2728
disabled: { type: Boolean },

0 commit comments

Comments
 (0)