From 4540e3923a79599171c4226d0c6a65c97e14b12b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B6=85=E5=87=A1?= <2508779859@qq.com>
Date: Mon, 19 May 2025 12:55:37 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20pageModal=20=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=BB=9A=E5=8A=A8=E6=9D=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/CURD/PageModal.vue | 100 +++++++++++++++---------------
1 file changed, 49 insertions(+), 51 deletions(-)
diff --git a/src/components/CURD/PageModal.vue b/src/components/CURD/PageModal.vue
index fe1fa5c9..637445cc 100644
--- a/src/components/CURD/PageModal.vue
+++ b/src/components/CURD/PageModal.vue
@@ -7,7 +7,6 @@
v-bind="{ destroyOnClose: true, ...modalConfig.drawer }"
@close="handleClose"
>
-
@@ -57,7 +56,7 @@
-
+
确 定
{{ !formDisable ? "取 消" : "关闭" }}
@@ -68,60 +67,60 @@
-
-
-
-
-
-
-
-
- {{ item?.label || "" }}
-
-
-
- :
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ item?.label || "" }}
+
+
+
+ :
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
确 定
{{ !formDisable ? "取 消" : "关闭" }}
@@ -144,7 +143,7 @@ const props = defineProps<{ modalConfig: IModalConfig }>();
// 自定义事件
const emit = defineEmits<{ submitClick: []; customSubmit: [queryParams: IObject] }>();
// 组件映射表
-/* eslint-disable */
+
const componentMap = new Map([
// @ts-ignore
["input", markRaw(ElInput)], // @ts-ignore
@@ -170,7 +169,6 @@ const childrenMap = new Map([
["radio", markRaw(ElRadio)], // @ts-ignore"
["checkbox", markRaw(ElCheckbox)],
]);
-/* eslint-enable */
const pk = props.modalConfig.pk ?? "id"; // 主键名,用于表单数据处理
const modalVisible = ref(false); // 弹窗显示状态