fix: tabpane name error
parent
3ff4f6b926
commit
b645f827d0
|
@ -2,12 +2,12 @@ import type { App, Plugin } from 'vue';
|
||||||
import Tabs, { TabPane } from './src';
|
import Tabs, { TabPane } from './src';
|
||||||
export type { TabsProps, TabPaneProps } from './src';
|
export type { TabsProps, TabPaneProps } from './src';
|
||||||
|
|
||||||
Tabs.TabPane = { ...TabPane, name: 'ATabPane', __ANT_TAB_PANE: true };
|
Tabs.TabPane = TabPane;
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
Tabs.install = function (app: App) {
|
Tabs.install = function (app: App) {
|
||||||
app.component(Tabs.name, Tabs);
|
app.component(Tabs.name, Tabs);
|
||||||
app.component(Tabs.TabPane.name, Tabs.TabPane);
|
app.component(TabPane.name, TabPane);
|
||||||
return app;
|
return app;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,9 @@ export interface TabPaneProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'TabPane',
|
name: 'ATabPane',
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
|
__ANT_TAB_PANE: true,
|
||||||
props: {
|
props: {
|
||||||
tab: PropTypes.any,
|
tab: PropTypes.any,
|
||||||
disabled: { type: Boolean },
|
disabled: { type: Boolean },
|
||||||
|
|
Loading…
Reference in New Issue