2021-08-24 13:36:48 +08:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2021-09-02 09:45:57 +08:00
|
|
|
Collapse.CollapseItem = CollapseItem
|
2021-08-24 13:36:48 +08:00
|
|
|
|
|
|
|
const _Collapse = Collapse as any as SFCWithInstall<typeof Collapse> & {
|
|
|
|
CollapseItem: typeof CollapseItem
|
|
|
|
}
|
|
|
|
|
|
|
|
export default _Collapse
|
|
|
|
export const ElCollapse = _Collapse
|
|
|
|
export const ElCollapseItem = CollapseItem
|