From 2dc0ff994bb96eacc472442fde6cfb38b05959e9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 07 五月 2022 17:29:13 +0800 Subject: [PATCH] 2022-05-07 --- src/views/mobdesign/index.jsx | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index 7734346..99dab83 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -937,6 +937,8 @@ return null } else if (item.type === 'card' || (item.type === 'table' && item.subtype === 'tablecard')) { item.action && item.action.forEach(btn => { + if (btn.hidden === 'true') return + this.checkBtn(btn) m.children.push({ key: btn.uuid, @@ -946,6 +948,8 @@ item.subcards.forEach(card => { card.elements && card.elements.forEach(cell => { if (cell.eleType !== 'button') return + if (cell.hidden === 'true') return + this.checkBtn(cell) m.children.push({ key: cell.uuid, @@ -957,6 +961,8 @@ item.subcards.forEach(card => { card.elements && card.elements.forEach(cell => { if (cell.eleType !== 'button') return + if (cell.hidden === 'true') return + this.checkBtn(cell) m.children.push({ key: cell.uuid, @@ -967,6 +973,8 @@ } else if (item.type === 'balcony') { item.elements && item.elements.forEach(cell => { if (cell.eleType !== 'button') return + if (cell.hidden === 'true') return + this.checkBtn(cell) m.children.push({ key: cell.uuid, @@ -993,6 +1001,8 @@ }) } else if (item.type === 'table' && item.subtype === 'normaltable') { item.action && item.action.forEach(btn => { + if (btn.hidden === 'true') return + this.checkBtn(btn) m.children.push({ key: btn.uuid, @@ -1002,6 +1012,8 @@ item.cols && item.cols.forEach(col => { if (col.type !== 'action') return col.elements.forEach(btn => { + if (btn.hidden === 'true') return + this.checkBtn(btn) m.children.push({ key: btn.uuid, -- Gitblit v1.8.0