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

13 lines
319 B
TypeScript
Raw Normal View History

2020-08-02 18:27:46 +08:00
import { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
2020-08-02 18:27:46 +08:00
import Avatar from './src/index.vue'
2020-10-29 17:28:26 +08:00
Avatar.install = (app: App): void => {
2020-08-02 18:27:46 +08:00
app.component(Avatar.name, Avatar)
}
2020-10-29 17:28:26 +08:00
const _Avatar = Avatar as SFCWithInstall<typeof Avatar>
export default _Avatar
export const ElAvatar = _Avatar