mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
20 lines
572 B
TypeScript
20 lines
572 B
TypeScript
import { App } from 'vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
|
import Collapse from './src/collapse.vue'
|
|
import CollapseItem from './src/collapse-item.vue'
|
|
|
|
Collapse.install = (app: App): void => {
|
|
app.component(Collapse.name, Collapse)
|
|
app.component(CollapseItem.name, CollapseItem)
|
|
}
|
|
|
|
Collapse.CollapseItem = CollapseItem
|
|
|
|
const _Collapse = Collapse as any as SFCWithInstall<typeof Collapse> & {
|
|
CollapseItem: typeof CollapseItem
|
|
}
|
|
|
|
export default _Collapse
|
|
export const ElCollapse = _Collapse
|
|
export const ElCollapseItem = CollapseItem
|