| | |
| | | '': '', |
| | | '': '', |
| | | 'map.settings.sub.copy.rule': 'Copy Rule', |
| | | 'map.settings.sub.copy.dire': 'Direction', |
| | | '': '', |
| | | '': '', |
| | | '': '', |
| | |
| | | label={intl.formatMessage({ id: 'map.settings.type', defaultMessage: '类型' })} |
| | | labelCol={{ span: 4 }} |
| | | > |
| | | <span className="ant-form-text">China</span> |
| | | <span>China</span> |
| | | </Form.Item> |
| | | </Col> |
| | | </Row> |
| | |
| | | |
| | | useEffect(() => { |
| | | console.log(props.values); |
| | | console.log(curSprite); |
| | | form.resetFields(); |
| | | form.setFieldsValue({ |
| | | |
| | | }); |
| | | if (curSprite && props) { |
| | | form.setFieldsValue({ |
| | | ...props.values.data, |
| | | copyDire: props.values.copyDire |
| | | }); |
| | | } |
| | | }, [form, props]); |
| | | |
| | | const handleCancel = () => { |
| | |
| | | maxWidth: 300, |
| | | }} |
| | | size='default' |
| | | variant='filled' |
| | | variant='borderless' |
| | | labelWrap |
| | | disabled={false} |
| | | layout='horizontal' |
| | |
| | | |
| | | |
| | | <Col span={24}> |
| | | |
| | | <Row gutter={24}> |
| | | <Col span={24}> |
| | | <Form.Item |
| | | label={intl.formatMessage({ id: 'map.settings.sub.copy.dire', defaultMessage: '方向' })} |
| | | labelCol={{ span: 8 }} |
| | | > |
| | | <Input |
| | | name='copyDire' |
| | | disabled |
| | | /> |
| | | </Form.Item> |
| | | </Col> |
| | | </Row> |
| | | </Col> |
| | | |
| | | |