1.方法
修改element.js引用代码,在引用组件前修改默认属性.
import ElementUI from ‘element-ui’;
import ‘element-ui/lib/theme-chalk/index.css’;
Vue.use(ElementUI);
//配置 dialog组件 组件点击遮罩层不关闭
ElementUI.Dialog.props.closeOnClickModal.default = false;
Vue.prototype.$axios = axios
2.弹框外出弹框
handleClose(done) {
this.$confirm(“确认关闭?”)
.then(_ => {
done();
})
.catch(_ => {
});
},