@qian_cheng/demo-common
Version:
vue json schema form demo公共代码
26 lines (22 loc) • 593 B
JavaScript
/**
* Created by Liu.Jun on 2020/11/20 9:43.
*/
import './theme/index.css';
import ELEMENT from 'ELEMENT';
const {
Loading,
MessageBox,
Message
} = ELEMENT;
export default {
install(Vue) {
Vue.use(Loading.directive);
// 原型方法
Vue.prototype.$loading = Loading.service;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$message = Message;
}
};