1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-27 20:06:36 +08:00

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

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
packages/vant/src
image-preview
notify
toast

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

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

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