types(Toast): fix missing global components type (#11033)

This commit is contained in:
neverland
2022-09-11 23:00:05 +08:00
committed by GitHub
parent b29180933b
commit e1670e27f6
3 changed files with 8 additions and 2 deletions

View File

@@ -16,6 +16,6 @@ export type {
declare module 'vue' {
export interface GlobalComponents {
VanImagePreview: typeof ImagePreview.Component;
VanImagePreview: typeof ImagePreview;
}
}

View File

@@ -16,6 +16,6 @@ export type { NotifyType, NotifyOptions } from './types';
declare module 'vue' {
export interface GlobalComponents {
VanNotify: typeof Notify.Component;
VanNotify: typeof Notify;
}
}

View File

@@ -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;
}
}