mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
[Improment] add $toast/$dialog to Vue.prototype (#363)
This commit is contained in:
6
types/toast.d.ts
vendored
6
types/toast.d.ts
vendored
@@ -15,4 +15,10 @@ export interface Toast {
|
||||
clear(): void;
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$toast: Toast
|
||||
}
|
||||
}
|
||||
|
||||
export const Toast: Toast;
|
||||
|
Reference in New Issue
Block a user