mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
21 lines
476 B
TypeScript
21 lines
476 B
TypeScript
|
import Tabs from './src/tabs'
|
||
|
import TabPane from './src/tab-pane.vue'
|
||
|
|
||
|
import type { App } from 'vue'
|
||
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
||
|
|
||
|
Tabs.install = (app: App): void => {
|
||
|
app.component(Tabs.name, Tabs)
|
||
|
app.component(TabPane.name, TabPane)
|
||
|
}
|
||
|
|
||
|
Tabs.TabPane = TabPane
|
||
|
|
||
|
const _Tabs = Tabs as any as SFCWithInstall<typeof Tabs> & {
|
||
|
TabPane: typeof TabPane
|
||
|
}
|
||
|
|
||
|
export default _Tabs
|
||
|
export const ElTabs = _Tabs
|
||
|
export const ElTabPane = TabPane
|