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/sharecomponent/columncomponent/markcolumn/index.jsx |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/templates/sharecomponent/columncomponent/markcolumn/index.jsx b/src/templates/sharecomponent/columncomponent/markcolumn/index.jsx
index 45662b3..a7ab159 100644
--- a/src/templates/sharecomponent/columncomponent/markcolumn/index.jsx
+++ b/src/templates/sharecomponent/columncomponent/markcolumn/index.jsx
@@ -1,11 +1,12 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { fromJS } from 'immutable'
-import { Table, Popconfirm, Icon } from 'antd'
+import { Table, Popconfirm } from 'antd'
+import { EditOutlined, DeleteOutlined, ArrowUpOutlined, ArrowDownOutlined } from '@ant-design/icons'
 
 import Utils from '@/utils/utils.js'
-
 import MarkForm from './markform'
+import MkIcon from '@/components/mk-icon'
 import './index.scss'
 import '@/assets/css/table.scss'
 
@@ -92,9 +93,9 @@
             content = '鏁堟灉鍦ㄥ崱鐗囦腑鍙'
           } else if (record.signType === 'icon') {
             if (record.position === 'front') {
-              content = <div><Icon className={'font ' + record.color[1]} type={record.icon} /> {content} </div>
+              content = <div><MkIcon className={'font ' + record.color[1]} type={record.icon} /> {content} </div>
             } else {
-              content = <div> {content} <Icon className={'font ' + record.color[1]} type={record.icon} /> </div>
+              content = <div> {content} <MkIcon className={'font ' + record.color[1]} type={record.icon} /> </div>
             }
           }
 
@@ -113,14 +114,14 @@
         render: (text, record) =>
           (
             <div>
-              <span className="operation-btn" onClick={() => this.handleEdit(record)} style={{color: '#1890ff'}}><Icon type="edit" /></span>
-              <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span>
-              <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><Icon type="arrow-down" /></span>
+              <span className="operation-btn" onClick={() => this.handleEdit(record)} style={{color: '#1890ff'}}><EditOutlined /></span>
+              <span className="operation-btn" onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><ArrowUpOutlined /></span>
+              <span className="operation-btn" onClick={() => this.handleUpDown(record, 'down')} style={{color: '#ff4d4f'}}><ArrowDownOutlined /></span>
               <Popconfirm
                 overlayClassName="popover-confirm"
                 onConfirm={() => this.handleDelete(record)
               }>
-                <span className="operation-btn" style={{color: '#ff4d4f'}}><Icon type="delete" /></span>
+                <span className="operation-btn" style={{color: '#ff4d4f'}}><DeleteOutlined /></span>
               </Popconfirm>
             </div>
           )

--
Gitblit v1.8.0