From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 八月 2022 11:42:43 +0800 Subject: [PATCH] Merge branch 'develop' --- src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx | 44 +++++++++++++++----------------------------- 1 files changed, 15 insertions(+), 29 deletions(-) diff --git a/src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx b/src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx index 601f01d..9fa3613 100644 --- a/src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx +++ b/src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx @@ -2,7 +2,7 @@ import PropTypes from 'prop-types' import { Form, Row, Col, Input, Select, InputNumber, Radio } from 'antd' import { formRule } from '@/utils/option.js' -import './index.scss' +// import './index.scss' class MainSearch extends Component { static propTpyes = { @@ -16,12 +16,12 @@ { type: 'text', key: 'label', - label: this.props.dict['model.form.name'], + label: this.props.dict['model.name'], initVal: this.props.card.label, required: true }, { - type: 'select', + type: 'radio', key: 'Align', label: this.props.dict['model.form.align'], initVal: this.props.card.Align, @@ -41,36 +41,22 @@ type: 'number', key: 'Width', decimal: 0, - label: this.props.dict['header.form.columnWidth'], + label: this.props.dict['model.form.columnWidth'], initVal: this.props.card.Width, required: true }, { - type: 'select', - key: 'style', - label: this.props.dict['header.form.style'], - initVal: this.props.card.style, + type: 'radio', + key: 'position', + label: '鏄剧ず浣嶇疆', + initVal: this.props.card.position || 'right', required: true, options: [{ - MenuID: 'button', - text: this.props.dict['header.form.button'] + MenuID: 'left', + text: '宸︿晶' }, { - MenuID: 'text', - text: this.props.dict['model.form.text'] - }] - }, - { - type: 'select', - key: 'show', - label: this.props.dict['header.form.order'], - initVal: this.props.card.show, - required: true, - options: [{ - MenuID: 'horizontal', - text: this.props.dict['header.form.horizontal'] - }, { - MenuID: 'vertical', - text: this.props.dict['header.form.vertical'] + MenuID: 'right', + text: '鍙充晶' }] } ] @@ -88,7 +74,7 @@ const { getFieldDecorator } = this.props.form const fields = [] this.state.formlist.forEach((item, index) => { - if (item.type === 'text') { // 鏂囨湰鎼滅储 + if (item.type === 'text') { fields.push( <Col span={12} key={index}> <Form.Item label={item.label}> @@ -108,7 +94,7 @@ </Form.Item> </Col> ) - } else if (item.type === 'number') { // 鏂囨湰鎼滅储 + } else if (item.type === 'number') { fields.push( <Col span={12} key={index}> <Form.Item label={item.label}> @@ -208,7 +194,7 @@ } } return ( - <Form {...formItemLayout} className="commontable-gridbtn-column-form" id="gridbtncolumnwinter"> + <Form {...formItemLayout} style={{minHeight: '190px'}} id="gridbtncolumnwinter"> <Row gutter={24}>{this.getFields()}</Row> </Form> ) -- Gitblit v1.8.0