From eb7d8402b8c23bbdb06f3199a114592f0a5d94e8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 11 五月 2022 13:23:25 +0800 Subject: [PATCH] 2022-05-11 --- 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