| | |
| | | import PropTypes from 'prop-types' |
| | | import { Form, Row, Col, Input, Radio, InputNumber, Select, Tooltip, Icon } from 'antd' |
| | | import { formRule } from '@/utils/option.js' |
| | | import StyleInput from '@/menu/stylecontroller/styleInput' |
| | | import './index.scss' |
| | | |
| | | class SettingForm extends Component { |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {appType === 'mob' ? <Col span={12}> |
| | | <Form.Item label="左边距"> |
| | | {getFieldDecorator('paddingLeft', { |
| | | initialValue: config.setting.paddingLeft || '10px' |
| | | })( |
| | | <StyleInput options={['px', '%']} /> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {appType === 'mob' ? <Col span={12}> |
| | | <Form.Item label="右边距"> |
| | | {getFieldDecorator('paddingRight', { |
| | | initialValue: config.setting.paddingRight || '10px' |
| | | })( |
| | | <StyleInput options={['px', '%']} /> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | </Row> |
| | | </Form> |
| | | ) |