mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-28 04:16:35 +08:00
types(Toast): fix missing global components type (#11033)
This commit is contained in:
parent
b29180933b
commit
e1670e27f6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user