From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx | 44 ++++++++------------------------------------ 1 files changed, 8 insertions(+), 36 deletions(-) diff --git a/src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx b/src/templates/sharecomponent/columncomponent/gridbtnform/index.jsx index b83a034..6d701af 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,62 +16,34 @@ { type: 'text', key: 'label', - label: this.props.dict['header.form.name'], + label: this.props.dict['model.name'], initVal: this.props.card.label, required: true }, { type: 'select', key: 'Align', - label: this.props.dict['header.form.align'], + label: this.props.dict['model.form.align'], initVal: this.props.card.Align, required: true, options: [{ MenuID: 'left', - text: this.props.dict['header.form.alignLeft'] + text: this.props.dict['model.form.alignLeft'] }, { MenuID: 'right', - text: this.props.dict['header.form.alignRight'] + text: this.props.dict['model.form.alignRight'] }, { MenuID: 'center', - text: this.props.dict['header.form.alignCenter'] + text: this.props.dict['model.form.alignCenter'] }] }, { 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, - required: true, - options: [{ - MenuID: 'button', - text: this.props.dict['header.form.button'] - }, { - 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'] - }] } ] } @@ -208,7 +180,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