From 282fd00654a0e777cdbca700fe6488d04fec6be8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 28 二月 2020 15:41:15 +0800 Subject: [PATCH] 2020-02-28 --- src/templates/formtabconfig/dragelement/card.jsx | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/templates/formtabconfig/dragelement/card.jsx b/src/templates/formtabconfig/dragelement/card.jsx index f6617d9..9bf2c1f 100644 --- a/src/templates/formtabconfig/dragelement/card.jsx +++ b/src/templates/formtabconfig/dragelement/card.jsx @@ -90,6 +90,8 @@ <div className="ant-row ant-form-item"> <div className={'ant-col ant-form-item-label ant-col-xs-24 ' + labelCol}> <label title={card.label}>{card.label}</label> + <Icon className="edit" title="缂栬緫" type="edit" onClick={edit} /> + <Icon className="edit close" title="鍒犻櫎" type="close" onClick={del} /> </div> <div className={'ant-col ant-form-item-control-wrapper ant-col-xs-24 ' + wrapCol}> {card.type === 'text' ? @@ -135,11 +137,11 @@ </Button> : null } </div> - <Icon className="edit" title="缂栬緫" type="edit" onClick={edit} /> + {type === 'action' ? <Icon className="edit" title="缂栬緫" type="edit" onClick={edit} /> : null} {type === 'action' && card.btnType === 'confirm' && card.intertype === 'inner' && !card.innerFunc ? <Icon className="edit profile" title="鏍¢獙瑙勫垯" type="profile" onClick={profile} /> : null } - {card.btnType !== 'confirm' && card.btnType !== 'cancel' && <Icon className="edit close" title="鍒犻櫎" type="close" onClick={del} />} + {type === 'action' && card.btnType !== 'confirm' && card.btnType !== 'cancel' && <Icon className="edit close" title="鍒犻櫎" type="close" onClick={del} />} </div> ) } -- Gitblit v1.8.0