[Improment] add $toast/$dialog to Vue.prototype (#363)
This commit is contained in:
@@ -61,6 +61,8 @@ Dialog.close = () => {
|
||||
instance.value = false;
|
||||
};
|
||||
|
||||
Vue.prototype.$dialog = Dialog;
|
||||
|
||||
export default Dialog;
|
||||
export {
|
||||
DialogComponent as Dialog
|
||||
|
||||
@@ -56,4 +56,6 @@ Toast.clear = () => {
|
||||
instance && instance.clear();
|
||||
};
|
||||
|
||||
Vue.prototype.$toast = Toast;
|
||||
|
||||
export default Toast;
|
||||
|
||||
Reference in New Issue
Block a user