From 5b991be4c2970376cdc47e92edcab307a914fc7a 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:23:20 +0000 Subject: [PATCH] =?UTF-8?q?!87=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=20*=20update=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=20el-dialog=20=E9=BB=98=E8=AE=A4=E7=82=B9=E5=87=BB=E9=81=AE?= =?UTF-8?q?=E7=85=A7=E4=B8=BA=E4=B8=8D=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index f40059e..29a5ee5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -32,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);