| | |
| | | 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 = { |
| | |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'select', |
| | | type: 'radio', |
| | | key: 'Align', |
| | | label: this.props.dict['model.form.align'], |
| | | initVal: this.props.card.Align, |
| | |
| | | initVal: this.props.card.Width, |
| | | required: true |
| | | }, |
| | | // { |
| | | // type: 'select', |
| | | // key: 'style', |
| | | // label: this.props.dict['model.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.href'] |
| | | // }] |
| | | // }, |
| | | // { |
| | | // 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'] |
| | | // }] |
| | | // } |
| | | { |
| | | type: 'radio', |
| | | key: 'position', |
| | | label: '显示位置', |
| | | initVal: this.props.card.position || 'right', |
| | | required: true, |
| | | options: [{ |
| | | MenuID: 'right', |
| | | text: '右侧' |
| | | }, { |
| | | MenuID: 'left', |
| | | text: '左侧' |
| | | }] |
| | | } |
| | | ] |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | return ( |
| | | <Form {...formItemLayout} className="commontable-gridbtn-column-form" id="gridbtncolumnwinter"> |
| | | <Form {...formItemLayout} style={{minHeight: '190px'}} id="gridbtncolumnwinter"> |
| | | <Row gutter={24}>{this.getFields()}</Row> |
| | | </Form> |
| | | ) |