element-plus/packages/components/collapse/index.ts
三咲智子 0636e1e240
style: add import and stricter lint (#3440)
* style: add import lint

* chore: apply eslint rules

* chore: add stricter lint

* chore: lint all files

* auto fix

* manually fix

* restore build-indices.ts
2021-09-17 15:27:31 +08:00

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