mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Improvement] Toast: support Vue.use to register (#690)
This commit is contained in:
@@ -86,6 +86,10 @@ Toast.allowMultiple = (allow = true) => {
|
||||
singleton = !allow;
|
||||
};
|
||||
|
||||
Toast.install = () => {
|
||||
Vue.use(VueToast);
|
||||
};
|
||||
|
||||
Vue.prototype.$toast = Toast;
|
||||
|
||||
export default Toast;
|
||||
|
Reference in New Issue
Block a user