element-plus/packages/components/tabs/index.ts

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