From ec9c3ddc2b439180204e8432fb805920ed0d11c1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 31 五月 2021 19:11:09 +0800
Subject: [PATCH] 2021-05-31

---
 src/mob/components/formdragelement/card.jsx |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/mob/components/formdragelement/card.jsx b/src/mob/components/formdragelement/card.jsx
index ba71189..31bed88 100644
--- a/src/mob/components/formdragelement/card.jsx
+++ b/src/mob/components/formdragelement/card.jsx
@@ -85,7 +85,17 @@
       </div>
     </div>)
   } else if (card.type === 'fileupload') {
-    formItem = (<Button style={{marginTop: '3px'}}><Icon type="upload" /> 鐐瑰嚮涓婁紶 </Button>)
+    formItem = (
+      <div className="am-list-item checkbox">
+        <div className="am-list-line">
+          <div className="am-input-label">{card.label}</div>
+          <div className="am-input-control" style={{textAlign: 'left'}}>
+            {card.fileType !== 'picture-card' ? <Icon type="upload" style={{position: 'absolute', right: '10px', top: '10px'}} /> : null}
+            {card.fileType === 'picture-card' ? <Button style={{width: '100px', marginBottom: '10px', height: '100px', fontSize: '50px', color: '#d9d9d9'}}><Icon type="plus" /></Button> : null}
+          </div>
+        </div>
+      </div>
+    )
   } else if (card.type === 'funcvar') {
     formItem = (<div className="am-list-item"><div className="am-list-line"><div className="am-input-label">{card.label}</div><div className="am-input-control">{card.linkfield}</div></div></div>)
   } else if (card.type === 'switch') {

--
Gitblit v1.8.0