mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
types(Toast): fix missing global components type (#11033)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user