From bd1dfc9e6c9b9f8076ca2783ce598e0936b4c664 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 22 十二月 2021 14:36:03 +0800
Subject: [PATCH] 2021-12-22

---
 src/templates/formtabconfig/dragelement/card.jsx |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/templates/formtabconfig/dragelement/card.jsx b/src/templates/formtabconfig/dragelement/card.jsx
index 7648091..db147f1 100644
--- a/src/templates/formtabconfig/dragelement/card.jsx
+++ b/src/templates/formtabconfig/dragelement/card.jsx
@@ -1,6 +1,7 @@
 import React from 'react'
 import { useDrag, useDrop } from 'react-dnd'
-import { Icon, Button, Select, DatePicker, Input, InputNumber, Popover } from 'antd'
+import { Button, Select, DatePicker, Input, InputNumber, Popover } from 'antd'
+import { EditOutlined, CopyOutlined, ProfileOutlined, CloseOutlined, UploadOutlined, TableOutlined } from '@ant-design/icons'
 import moment from 'moment'
 import ItemTypes from './itemtypes'
 import './index.scss'
@@ -95,12 +96,12 @@
   return (
     <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
       <div className="mk-popover-control">
-        <Icon className="edit" title="缂栬緫" type="edit" onClick={edit} />
-        {type === 'search' ? <Icon className="edit copy" title="澶嶅埗" type="copy" onClick={copy} /> : null}
+        <EditOutlined className="edit" title="缂栬緫" onClick={edit} />
+        {type === 'search' ? <CopyOutlined className="edit copy" title="澶嶅埗" onClick={copy} /> : null}
         {type === 'action' && card.btnType !== 'cancel' ?
-          <Icon className="edit profile" title="鏍¢獙瑙勫垯" type="profile" onClick={profile} /> : null
+          <ProfileOutlined className="edit profile" title="鏍¢獙瑙勫垯" onClick={profile} /> : null
         }
-        {type === 'search' || (type === 'action' && card.btnType !== 'confirm' && card.btnType !== 'cancel') ? <Icon className="edit close" title="鍒犻櫎" type="close" onClick={del} /> : null}
+        {type === 'search' || (type === 'action' && card.btnType !== 'confirm' && card.btnType !== 'cancel') ? <CloseOutlined className="edit close" title="鍒犻櫎" onClick={del} /> : null}
       </div>
     } trigger="hover">
       <div className="page-card" style={{ opacity: opacity}}>
@@ -137,7 +138,7 @@
                 }
                 {card.type === 'fileupload' ?
                   <Button>
-                    <Icon type="upload" /> 鐐瑰嚮涓婁紶
+                    <UploadOutlined /> 鐐瑰嚮涓婁紶
                   </Button> : null
                 }
               </div>
@@ -149,7 +150,7 @@
               icon={card.icon}
               key={card.uuid}
             >
-              {card.label}{card.position === 'grid' && <Icon type="table" />}
+              {card.label}{card.position === 'grid' && <TableOutlined />}
             </Button> : null
           }
         </div>

--
Gitblit v1.8.0