add global setting $IVIEW

This commit is contained in:
梁灏 2018-06-28 11:48:30 +08:00
parent e94e76435e
commit 517917a2ad
4 changed files with 48 additions and 957 deletions

View file

@ -164,6 +164,11 @@ const install = function(Vue, opts = {}) {
Vue.component(key, iview[key]);
});
Vue.prototype.$IVIEW = {
size: opts.size || '',
transfer: opts.transfer || ''
};
Vue.prototype.$Loading = LoadingBar;
Vue.prototype.$Message = Message;
Vue.prototype.$Modal = Modal;