diff --git a/packages/vant/src/image-preview/index.ts b/packages/vant/src/image-preview/index.ts index a3d6d93f8..596135648 100644 --- a/packages/vant/src/image-preview/index.ts +++ b/packages/vant/src/image-preview/index.ts @@ -16,6 +16,6 @@ export type { declare module 'vue' { export interface GlobalComponents { - VanImagePreview: typeof ImagePreview.Component; + VanImagePreview: typeof ImagePreview; } } diff --git a/packages/vant/src/notify/index.ts b/packages/vant/src/notify/index.ts index a7df4abc9..27d49df7c 100644 --- a/packages/vant/src/notify/index.ts +++ b/packages/vant/src/notify/index.ts @@ -16,6 +16,6 @@ export type { NotifyType, NotifyOptions } from './types'; declare module 'vue' { export interface GlobalComponents { - VanNotify: typeof Notify.Component; + VanNotify: typeof Notify; } } diff --git a/packages/vant/src/toast/index.ts b/packages/vant/src/toast/index.ts index a43222c3f..3e799dd8d 100644 --- a/packages/vant/src/toast/index.ts +++ b/packages/vant/src/toast/index.ts @@ -17,3 +17,9 @@ export { export type { ToastProps } from './Toast'; export type { ToastType, ToastOptions, ToastPosition } from './types'; + +declare module 'vue' { + export interface GlobalComponents { + VanToast: typeof Toast; + } +}