From c7aece35a62b6e91fd98a625bf0e53f64bfbd18d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 17 八月 2023 16:22:15 +0800 Subject: [PATCH] 2023-08-17 --- src/templates/zshare/createinterface/mutilform/index.jsx | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/templates/zshare/createinterface/mutilform/index.jsx b/src/templates/zshare/createinterface/mutilform/index.jsx index 9d53447..78db75e 100644 --- a/src/templates/zshare/createinterface/mutilform/index.jsx +++ b/src/templates/zshare/createinterface/mutilform/index.jsx @@ -1,12 +1,13 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Row, Col, Input, Radio, Select, Tooltip, Icon } from 'antd' -import './index.scss' +import { Form, Row, Col, Input, Radio, Select, Tooltip } from 'antd' +import { QuestionCircleOutlined } from '@ant-design/icons' + +// import './index.scss' class MainSearch extends Component { static propTpyes = { formlist: PropTypes.array, // 鎸夐挳淇℃伅銆佽〃鍗曞垪琛� - dict: PropTypes.object // 瀛楀吀椤� } state = { @@ -34,7 +35,7 @@ <Col span={24} key={index}> <Form.Item label={item.tooltip ? <Tooltip placement="topLeft" title={item.tooltip}> - <Icon type="question-circle" /> + <QuestionCircleOutlined className="mk-form-tip" /> {item.label} </Tooltip> : item.label }> @@ -43,7 +44,7 @@ rules: [ { required: item.required, - message: this.props.dict['form.required.input'] + item.label + '!' + message: '璇疯緭鍏�' + item.label + '!' } ] })(<Input placeholder="" autoComplete="off"/>)} @@ -59,7 +60,7 @@ rules: [ { required: item.required, - message: this.props.dict['form.required.select'] + item.label + '!' + message: '璇烽�夋嫨' + item.label + '!' } ] })( @@ -80,7 +81,7 @@ <Col span={24} key={index}> <Form.Item label={item.tooltip ? <Tooltip placement="topLeft" title={item.tooltip}> - <Icon type="question-circle" /> + <QuestionCircleOutlined className="mk-form-tip" /> {item.label} </Tooltip> : item.label }> @@ -89,7 +90,7 @@ rules: [ { required: item.required, - message: this.props.dict['form.required.select'] + item.label + '!' + message: '璇烽�夋嫨' + item.label + '!' } ] })( @@ -133,7 +134,7 @@ } } return ( - <Form {...formItemLayout} className="create-Interface-setting-form"> + <Form {...formItemLayout}> <Row gutter={24}>{this.getFields()}</Row> </Form> ) -- Gitblit v1.8.0