update 修改 el-dialog 默认点击遮照为不关闭
Signed-off-by: 这夏天依然平凡 <1822213252@qq.com>
This commit is contained in:
parent
b2f00c4b71
commit
37c2e51d24
@ -1,4 +1,5 @@
|
||||
import { createApp } from 'vue';
|
||||
import ElementPlus from 'element-plus';
|
||||
// global css
|
||||
import 'virtual:uno.css';
|
||||
import '@/assets/styles/index.scss';
|
||||
@ -43,4 +44,8 @@ app.use(plugins);
|
||||
// 自定义指令
|
||||
directive(app);
|
||||
|
||||
// 修改 el-dialog 默认点击遮照为不关闭
|
||||
app.use(ElementPlus, {});
|
||||
app._context.components.ElDialog.props.closeOnClickModal.default = false;
|
||||
|
||||
app.mount('#app');
|
||||
|
Loading…
x
Reference in New Issue
Block a user