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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,6 @@ export type {
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { 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' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
VanNotify: typeof Notify.Component; VanNotify: typeof Notify;
} }
} }

View File

@ -17,3 +17,9 @@ export {
export type { ToastProps } from './Toast'; export type { ToastProps } from './Toast';
export type { ToastType, ToastOptions, ToastPosition } from './types'; export type { ToastType, ToastOptions, ToastPosition } from './types';
declare module 'vue' {
export interface GlobalComponents {
VanToast: typeof Toast;
}
}