From 12dd55d710cf151f68690deaa44dde9fc538a0f1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 四月 2022 16:29:21 +0800
Subject: [PATCH] 2022-04-21

---
 src/utils/utils-custom.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js
index 4ad2bfd..0d109b5 100644
--- a/src/utils/utils-custom.js
+++ b/src/utils/utils-custom.js
@@ -95,9 +95,16 @@
           children: null
         }
       } else if (item.switchable) { // 鏁版嵁鍙垏鎹�
+        let disabled = false
+        if (item.type === 'card') {
+          disabled = item.wrap.cardType === ''
+        } else if (item.type === 'table') {
+          disabled = item.wrap.tableType === ''
+        }
         return {
           value: item.uuid,
-          label: item.name
+          label: item.name,
+          disabled: disabled
         }
       } else if (item.type === 'form') { // 鏁版嵁鏍煎紡锛屽瓨鍦ㄦ暟鎹簮
         return {

--
Gitblit v1.8.0