From 37c2e51d24f33925b511b0f3b467c4cef1d25fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=99=E5=A4=8F=E5=A4=A9=E4=BE=9D=E7=84=B6=E5=B9=B3?= =?UTF-8?q?=E5=87=A1?= <1822213252@qq.com> Date: Fri, 23 Feb 2024 06:15:18 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20=E4=BF=AE=E6=94=B9=20el-dialog=20?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=82=B9=E5=87=BB=E9=81=AE=E7=85=A7=E4=B8=BA?= =?UTF-8?q?=E4=B8=8D=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 这夏天依然平凡 <1822213252@qq.com> --- src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.ts b/src/main.ts index f40059e4..6bb2a864 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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'); -- Gitee From b76aa4bd7273b7fb6661a5298bc0d2a697b30be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=99=E5=A4=8F=E5=A4=A9=E4=BE=9D=E7=84=B6=E5=B9=B3?= =?UTF-8?q?=E5=87=A1?= <1822213252@qq.com> Date: Fri, 23 Feb 2024 07:12:44 +0000 Subject: [PATCH 2/2] update src/main.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 这夏天依然平凡 <1822213252@qq.com> --- src/main.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 6bb2a864..29a5ee57 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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'); -- Gitee