You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
577 B

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;