element-plus/packages/image-viewer/index.ts
jeremywu 54e4a4211c
fix(image-viewer): image-viewer export error (#2754)
- Fix image viewer image error.
2021-07-28 20:14:36 +08:00

12 lines
325 B
TypeScript

import { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
import ImageViewer from './src/index.vue'
ImageViewer.install = (app: App): void => {
app.component(ImageViewer.name, ImageViewer)
}
const _ImageViewer: SFCWithInstall<typeof ImageViewer> = ImageViewer
export default _ImageViewer