From fb64bcf1fab18b33d21470c83f28d4cda8d309ce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 26 十月 2022 12:15:59 +0800 Subject: [PATCH] 2022-10-26 --- src/menu/components/share/actioncomponent/dragaction/card.jsx | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/menu/components/share/actioncomponent/dragaction/card.jsx b/src/menu/components/share/actioncomponent/dragaction/card.jsx index 2e38f86..78a372c 100644 --- a/src/menu/components/share/actioncomponent/dragaction/card.jsx +++ b/src/menu/components/share/actioncomponent/dragaction/card.jsx @@ -28,7 +28,7 @@ moveCard(draggedId, overIndex) }, }) - const opacity = isDragging ? 0 : 1 + const opacity = isDragging ? 0.5 : 1 let hasProfile = false if (['pop', 'prompt', 'exec'].includes(card.OpenType)) { @@ -36,6 +36,8 @@ } else if (card.OpenType === 'excelIn' || card.OpenType === 'excelOut') { hasProfile = true } else if (card.funcType === 'print') { + hasProfile = true + } else if (card.funcType === 'megvii') { hasProfile = true } @@ -47,6 +49,9 @@ _style = null _class = 'swiper swiper-' + card.color show = 'button' + } + if (card.hidden === 'true') { + _class += ' mk-hidden' } let warning = null if (card.OpenType === 'innerpage' && !card.pageTemplate) { @@ -89,7 +94,7 @@ <EditOutlined className="edit" onClick={() => editCard(id)} /> <CopyOutlined className="copy" onClick={() => copyCard(id)} /> <CloseOutlined className="close" onClick={() => delCard(id)} /> - {type !== 'datacard' ? <FontColorsOutlined className="style" title="璋冩暣鏍峰紡" onClick={() => changeStyle(id)}/> : ''} + {type !== 'datacard' && type !== 'basetable' ? <FontColorsOutlined className="style" title="璋冩暣鏍峰紡" onClick={() => changeStyle(id)}/> : ''} {hasProfile ? <ProfileOutlined className="profile" title="楠岃瘉" onClick={() => profileCard(id)} /> : null} </div> } trigger="hover"> -- Gitblit v1.8.0