mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* build: use vue-tsc to generate dts * reduce inline type declaration * fix: type checking failed * apply suggestions from code review * address PR comments
20 lines
571 B
TypeScript
20 lines
571 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
import Tabs from './src/tabs'
|
|
import TabPane from './src/tab-pane.vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElTabs: SFCWithInstall<typeof Tabs> & {
|
|
TabPane: typeof TabPane
|
|
} = withInstall(Tabs, {
|
|
TabPane,
|
|
})
|
|
export const ElTabPane: SFCWithInstall<typeof TabPane> =
|
|
withNoopInstall(TabPane)
|
|
export default ElTabs
|
|
|
|
export * from './src/tabs'
|
|
export * from './src/tab-bar'
|
|
export * from './src/tab-nav'
|
|
export * from './src/tab-pane'
|
|
export * from './src/constants'
|