mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
79938178dd
* build: use vue-tsc to generate dts * reduce inline type declaration * fix: type checking failed * apply suggestions from code review * address PR comments
23 lines
708 B
TypeScript
23 lines
708 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
|
|
import Breadcrumb from './src/breadcrumb.vue'
|
|
import BreadcrumbItem from './src/breadcrumb-item.vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElBreadcrumb: SFCWithInstall<typeof Breadcrumb> & {
|
|
BreadcrumbItem: typeof BreadcrumbItem
|
|
} = withInstall(Breadcrumb, {
|
|
BreadcrumbItem,
|
|
})
|
|
export const ElBreadcrumbItem: SFCWithInstall<typeof BreadcrumbItem> =
|
|
withNoopInstall(BreadcrumbItem)
|
|
export default ElBreadcrumb
|
|
|
|
export * from './src/breadcrumb'
|
|
export * from './src/breadcrumb-item'
|
|
export * from './src/constants'
|
|
export type {
|
|
BreadcrumbInstance,
|
|
BreadcrumbItemInstance,
|
|
} from './src/instances'
|