feat(ImagePreview): support local registration (#6031)

This commit is contained in:
neverland
2020-04-11 10:57:44 +08:00
committed by GitHub
parent baefc6b212
commit 456fc99017
7 changed files with 62 additions and 11 deletions
+2
View File
@@ -73,6 +73,8 @@ const ImagePreview = (images, startPosition = 0) => {
return instance;
};
ImagePreview.Component = VueImagePreview;
ImagePreview.install = () => {
Vue.use(VueImagePreview);
};