| | |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Input, Radio, Tooltip, Icon, InputNumber, Select } from 'antd' |
| | | |
| | | import ColorSketch from '@/mob/colorsketch' |
| | | import './index.scss' |
| | | |
| | | class SettingForm extends Component { |
| | |
| | | initialValue: wrap.bordered || 'true' |
| | | })( |
| | | <Radio.Group style={{whiteSpace: 'nowrap'}}> |
| | | <Radio key="true" value={'true'}> 有 </Radio> |
| | | <Radio key="false" value={'false'}> 无 </Radio> |
| | | <Radio key="true" value="true"> 有 </Radio> |
| | | <Radio key="false" value="false"> 无 </Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={12}> |
| | | <Form.Item label="表头"> |
| | | {getFieldDecorator('tableHeader', { |
| | | initialValue: wrap.tableHeader || 'show' |
| | | })( |
| | | <Radio.Group style={{whiteSpace: 'nowrap'}}> |
| | | <Radio key="show" value="show"> 显示 </Radio> |
| | | <Radio key="hidden" value="hidden"> 隐藏 </Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={12}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="默认值 #e8e8e8。"> |
| | | <Icon type="question-circle" /> |
| | | 边框颜色 |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('borderColor', { |
| | | initialValue: wrap.borderColor || '#e8e8e8' |
| | | })( |
| | | <ColorSketch /> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={12}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="栅格布局,每行等分为24列。"> |
| | | <Icon type="question-circle" /> |