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/markform/index.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/templates/sharecomponent/columncomponent/markcolumn/markform/index.jsx b/src/templates/sharecomponent/columncomponent/markcolumn/markform/index.jsx index 5785dd4..e98fb1e 100644 --- a/src/templates/sharecomponent/columncomponent/markcolumn/markform/index.jsx +++ b/src/templates/sharecomponent/columncomponent/markcolumn/markform/index.jsx @@ -1,8 +1,9 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Row, Col, Select, Button, Input, Radio, Icon, Cascader } from 'antd' +import { Form, Row, Col, Select, Button, Input, Radio, Cascader } from 'antd' import { minkeColorSystem, minkeIconSystem } from '@/utils/option.js' +import MkIcon from '@/components/mk-icon' import './index.scss' class UniqueForm extends Component { @@ -53,7 +54,7 @@ selectIcon: record.icon || '', options: this.state.options.map(option => { option.children = option.children.map(cell => { - cell.label = <div className={_type + cell.value}>{record.icon ? <Icon type={record.icon} /> : cell.value}</div> + cell.label = <div className={_type + cell.value}>{record.icon ? <MkIcon type={record.icon} /> : cell.value}</div> return cell }) @@ -145,7 +146,7 @@ selectIcon: val, options: this.state.options.map(option => { option.children = option.children.map(cell => { - cell.label = <div className={'font ' + cell.value}><Icon type={val} /></div> + cell.label = <div className={'font ' + cell.value}><MkIcon type={val} /></div> return cell }) @@ -314,7 +315,6 @@ <Select.Option value="hint">鎻愮ず寤鸿鎬у浘鏍�</Select.Option> <Select.Option value="edit">缂栬緫绫诲浘鏍�</Select.Option> <Select.Option value="data">鏁版嵁绫诲浘鏍�</Select.Option> - <Select.Option value="trademark">鍝佺墝鍜屾爣璇�</Select.Option> <Select.Option value="normal">缃戠珯閫氱敤鍥炬爣</Select.Option> </Select> )} @@ -332,7 +332,7 @@ ] })( <Select onChange={this.changeIcon} getPopupContainer={() => document.getElementById('model-mark-form-box')}> - {icons.map(icon => <Select.Option key={icon} value={icon}><Icon type={icon} /></Select.Option>)} + {icons.map(icon => <Select.Option key={icon} value={icon}><MkIcon type={icon} /></Select.Option>)} </Select> )} </Form.Item> -- Gitblit v1.8.0