[Improment] add $toast/$dialog to Vue.prototype (#363)

This commit is contained in:
neverland
2017-11-30 14:52:19 +08:00
committed by GitHub
parent 121e2de375
commit c23762e08b
13 changed files with 153 additions and 86 deletions
+2
View File
@@ -61,6 +61,8 @@ Dialog.close = () => {
instance.value = false;
};
Vue.prototype.$dialog = Dialog;
export default Dialog;
export {
DialogComponent as Dialog
+2
View File
@@ -56,4 +56,6 @@ Toast.clear = () => {
instance && instance.clear();
};
Vue.prototype.$toast = Toast;
export default Toast;