fix: tabpane name error
parent
3ff4f6b926
commit
b645f827d0
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue