element-plus/packages/components/descriptions/index.ts
三咲智子 55348b30b6
style: use prettier (#3228)
* style: use prettier

* style: just prettier format, no code changes

* style: eslint fix
object-shorthand, prefer-const

* style: fix no-void

* style: no-console
2021-09-04 19:29:28 +08:00

23 lines
662 B
TypeScript

import Descriptions from './src/index.vue'
import DescriptionsItem from './src/description-item'
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
Descriptions.install = (app: App): void => {
app.component(Descriptions.name, Descriptions)
app.component(ElDescriptionsItem.name, ElDescriptionsItem)
}
Descriptions.DescriptionsItem = DescriptionsItem
const _Descriptions = Descriptions as any as SFCWithInstall<
typeof Descriptions
> & {
DescriptionsItem: typeof DescriptionsItem
}
export default _Descriptions
export const ElDescriptions = _Descriptions
export const ElDescriptionsItem = DescriptionsItem