mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
55348b30b6
* style: use prettier * style: just prettier format, no code changes * style: eslint fix object-shorthand, prefer-const * style: fix no-void * style: no-console
23 lines
662 B
TypeScript
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
|