[Improment] add $toast/$dialog to Vue.prototype (#363)
This commit is contained in:
Vendored
+6
@@ -17,4 +17,10 @@ export interface Dialog {
|
||||
close(): void;
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$dialog: Dialog
|
||||
}
|
||||
}
|
||||
|
||||
export const Dialog: Dialog;
|
||||
|
||||
Vendored
+6
@@ -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