mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[Improvement] Toast: support Vue.use to register (#690)
This commit is contained in:
@@ -69,7 +69,7 @@ Dialog.resetDefaultOptions = () => {
|
||||
};
|
||||
|
||||
Dialog.install = () => {
|
||||
Vue.component(VanDialog.name, VanDialog);
|
||||
Vue.use(VanDialog);
|
||||
};
|
||||
|
||||
Vue.prototype.$dialog = Dialog;
|
||||
|
||||
Reference in New Issue
Block a user