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/pcdesign/index.jsx | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx index d5519f2..735a34d 100644 --- a/src/views/pcdesign/index.jsx +++ b/src/views/pcdesign/index.jsx @@ -913,6 +913,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, @@ -925,6 +927,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, @@ -936,6 +940,8 @@ }) card.backElements && card.backElements.forEach(cell => { if (cell.eleType !== 'button') return + if (cell.hidden === 'true') return + this.checkBtn(cell) m.children.push({ key: cell.uuid, @@ -950,6 +956,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, @@ -963,6 +971,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, @@ -992,6 +1002,8 @@ }) } else if (item.type === 'table' && (item.subtype === 'normaltable' || item.subtype === 'editable')) { item.action && item.action.forEach(btn => { + if (btn.hidden === 'true') return + this.checkBtn(btn) m.children.push({ key: btn.uuid, @@ -1004,6 +1016,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