django-vue3-admin-web/node_modules/vxe-pc-ui/packages/image-preview/index.ts
2025-10-20 21:21:14 +08:00

20 lines
615 B
TypeScript

import { App } from 'vue'
import VxeImagePreviewComponent from '../image/src/preview'
import { VxeUI } from '@vxe-ui/core'
import { dynamicApp } from '../dynamics'
import { openPreviewImage } from '../image/src/util'
export const VxeImagePreview = Object.assign(VxeImagePreviewComponent, {
install (app: App) {
app.component(VxeImagePreviewComponent.name as string, VxeImagePreviewComponent)
}
})
VxeUI.previewImage = openPreviewImage
dynamicApp.use(VxeImagePreview)
VxeUI.component(VxeImagePreviewComponent)
export const ImagePreview = VxeImagePreview
export default VxeImagePreview