From c1f9e05741e64087ebbfa5e1185bfd0beeb4eeb5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 07 一月 2022 17:50:18 +0800 Subject: [PATCH] 2022-01-07 --- src/menu/components/card/cardcellcomponent/dragaction/action.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/dragaction/action.jsx b/src/menu/components/card/cardcellcomponent/dragaction/action.jsx index 346ad40..364400e 100644 --- a/src/menu/components/card/cardcellcomponent/dragaction/action.jsx +++ b/src/menu/components/card/cardcellcomponent/dragaction/action.jsx @@ -40,6 +40,7 @@ let btnElement = null let _style = resetStyle(card.style) + if (card.OpenType === 'form') { if (card.formType === 'switch') { btnElement = (<Switch style={_style} size={card.size} checkedChildren={card.openText || ''} unCheckedChildren={card.closeText || ''}/>) @@ -65,7 +66,7 @@ </div> } trigger="hover"> <div ref={node => drag(drop(node))} className={'ant-col card-button-cell ant-col-' + card.width} onDoubleClick={(e) => {e.stopPropagation(); doubleClickCard(id)}}> - <div style={{opacity: isDragging ? 0 : 1}}> + <div style={{opacity: isDragging ? 0 : 1, ...card.wrapStyle}}> {btnElement} </div> </div> -- Gitblit v1.8.0