vxe-pc-ui
Version:
A vue based PC component library
15 lines (14 loc) • 569 B
JavaScript
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.component(VxeImagePreviewComponent.name, VxeImagePreviewComponent);
}
});
VxeUI.previewImage = openPreviewImage;
dynamicApp.use(VxeImagePreview);
VxeUI.component(VxeImagePreviewComponent);
export const ImagePreview = VxeImagePreview;
export default VxeImagePreview;