Browse Source

!87 修改 el-dialog 默认点击遮照为不关闭
* update 修改 el-dialog 默认点击遮照为不关闭

这夏天依然平凡 1 year ago
parent
commit
5b991be4c2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main.ts

+ 4 - 0
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);