diff --git a/packages/image-viewer/index.ts b/packages/image-viewer/index.ts index bf420fb902..91a2a2c577 100644 --- a/packages/image-viewer/index.ts +++ b/packages/image-viewer/index.ts @@ -3,7 +3,7 @@ import type { SFCWithInstall } from '@element-plus/utils/types' import ImageViewer from './src/index.vue' ImageViewer.install = (app: App): void => { - app.component(Image.name, Image) + app.component(ImageViewer.name, ImageViewer) } const _ImageViewer: SFCWithInstall = ImageViewer