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
666 B
TypeScript
20 lines
666 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
|
|
import Collapse from './src/collapse.vue'
|
|
import CollapseItem from './src/collapse-item.vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElCollapse: SFCWithInstall<typeof Collapse> & {
|
|
CollapseItem: typeof CollapseItem
|
|
} = withInstall(Collapse, {
|
|
CollapseItem,
|
|
})
|
|
export default ElCollapse
|
|
export const ElCollapseItem: SFCWithInstall<typeof CollapseItem> =
|
|
withNoopInstall(CollapseItem)
|
|
|
|
export * from './src/collapse'
|
|
export * from './src/collapse-item'
|
|
export * from './src/constants'
|
|
export type { CollapseInstance, CollapseItemInstance } from './src/instance'
|