update src/main.ts.
Signed-off-by: 这夏天依然平凡 <1822213252@qq.com>
This commit is contained in:
parent
37c2e51d24
commit
b76aa4bd72
@ -1,5 +1,4 @@
|
||||
import { createApp } from 'vue';
|
||||
import ElementPlus from 'element-plus';
|
||||
// global css
|
||||
import 'virtual:uno.css';
|
||||
import '@/assets/styles/index.scss';
|
||||
@ -33,6 +32,10 @@ VXETable.config({
|
||||
zIndex: 999999
|
||||
});
|
||||
|
||||
// 修改 el-dialog 默认点击遮照为不关闭
|
||||
import { ElDialog } from 'element-plus';
|
||||
ElDialog.props.closeOnClickModal.default = false;
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(ElementIcons);
|
||||
@ -44,8 +47,4 @@ 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