mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
22 lines
659 B
TypeScript
22 lines
659 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
|