feat: add @vant/compat package (#10806)

* feat: add @vant/compat package

* chore: remove prepare script
This commit is contained in:
neverland
2022-07-09 20:54:27 +08:00
committed by GitHub
parent 1ce400bb7f
commit e998c1be95
14 changed files with 270 additions and 70 deletions
+11
View File
@@ -0,0 +1,11 @@
import { ImagePreview as VanImagePreview, showImagePreview } from 'vant';
import type { App } from 'vue';
export const ImagePreview = (...args: Parameters<typeof showImagePreview>) =>
showImagePreview(...args);
ImagePreview.Component = VanImagePreview;
ImagePreview.install = (app: App) => {
app.use(ImagePreview.Component);
};