From 46f79b491173d284a4900d19e7aecf7509481438 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 21 一月 2022 17:21:25 +0800 Subject: [PATCH] 2022-01-21 --- src/templates/sharecomponent/columncomponent/markcolumn/index.jsx | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/templates/sharecomponent/columncomponent/markcolumn/index.jsx b/src/templates/sharecomponent/columncomponent/markcolumn/index.jsx index f98be64..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,15 +114,14 @@ render: (text, record) => ( <div> - <span className="operation-btn" title={this.props.dict['model.edit']} onClick={() => this.handleEdit(record)} style={{color: '#1890ff'}}><Icon type="edit" /></span> - <span className="operation-btn" title={this.props.dict['header.form.up']} onClick={() => this.handleUpDown(record, 'up')} style={{color: '#1890ff'}}><Icon type="arrow-up" /></span> - <span className="operation-btn" title={this.props.dict['header.form.down']} 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" - title={this.props.dict['model.query.delete']} 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