Files
element-plus/packages/components/tabs/index.ts
dopamine 79938178dd build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00

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'