mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
0636e1e240
* style: add import lint * chore: apply eslint rules * chore: add stricter lint * chore: lint all files * auto fix * manually fix * restore build-indices.ts
20 lines
577 B
TypeScript
20 lines
577 B
TypeScript
import Collapse from './src/collapse.vue'
|
|
import CollapseItem from './src/collapse-item.vue'
|
|
import type { App } from 'vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
|
|
|
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
|