From 34f78e1203a839592ca6764f88f1632088e07d2a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 10 二月 2020 13:41:43 +0800
Subject: [PATCH] 2020-02-10

---
 src/templates/formtabconfig/dragelement/card.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/templates/formtabconfig/dragelement/card.jsx b/src/templates/formtabconfig/dragelement/card.jsx
index ba7ecd8..169d396 100644
--- a/src/templates/formtabconfig/dragelement/card.jsx
+++ b/src/templates/formtabconfig/dragelement/card.jsx
@@ -133,10 +133,10 @@
         }
       </div>
       <Icon className="edit" title="缂栬緫" type="edit" onClick={edit} />
-      <Icon className="edit close" title="鍒犻櫎" type="close" onClick={del} />
-      {type === 'action' && ['pop', 'prompt', 'exec'].includes(card.OpenType) && card.intertype === 'inner' && !card.innerFunc ?
+      {type === 'action' && ['prompt', 'exec'].includes(card.OpenType) && 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} />}
     </div>
   )
 }

--
Gitblit v1.8.0