element-plus/packages/components/descriptions/index.ts

23 lines
662 B
TypeScript
Raw Normal View History

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