| | |
| | | } |
| | | |
| | | const formValuesChange = (changeList) => { |
| | | if (changeList && changeList.length > 0) { |
| | | if (curSprite && changeList && changeList.length > 0) { |
| | | changeList.forEach(change => { |
| | | const { name: nameList, value } = change; |
| | | nameList.forEach(name => { |
| | |
| | | </Row> |
| | | </Col> |
| | | |
| | | {/* rotation */} |
| | | {/* more */} |
| | | <Col span={24}> |
| | | <Row gutter={24}> |
| | | <Col span={18}> |
| | |
| | | danger |
| | | onClick={() => { |
| | | Utils.getMapContainer().removeChild(curSprite); |
| | | props.setSpriteBySettings(null); |
| | | Utils.removeSelectedEffect(); |
| | | form.resetFields(); |
| | | }} |
| | |
| | | </Col> |
| | | </Row> |
| | | </Col> |
| | | |
| | | {/* <Col span={12}> |
| | | <Form.Item |
| | | label="Username" |
| | | name="username" |
| | | hasFeedback |
| | | validateTrigger="onBlur" |
| | | validateDebounce={1000} |
| | | rules={[ |
| | | { |
| | | required: false, |
| | | } |
| | | ]} |
| | | > |
| | | <Input disabled={false} /> |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item |
| | | label="Switch" |
| | | valuePropName="checked" |
| | | > |
| | | <Switch /> |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label="Memo"> |
| | | <Input.TextArea /> |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label="Address"> |
| | | <Space.Compact> |
| | | <Form.Item |
| | | name={['address', 'province']} |
| | | noStyle |
| | | rules={[ |
| | | { |
| | | required: false, |
| | | message: 'Province is required', |
| | | }, |
| | | ]} |
| | | > |
| | | <Select placeholder="Select province"> |
| | | <Option value="Zhejiang">Zhejiang</Option> |
| | | <Option value="Jiangsu">Jiangsu</Option> |
| | | </Select> |
| | | </Form.Item> |
| | | <Form.Item |
| | | name={['address', 'street']} |
| | | noStyle |
| | | rules={[ |
| | | { |
| | | required: false, |
| | | message: 'Street is required', |
| | | }, |
| | | ]} |
| | | > |
| | | <Input |
| | | style={{ |
| | | width: '50%', |
| | | }} |
| | | placeholder="Input street" |
| | | /> |
| | | </Form.Item> |
| | | </Space.Compact> |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item |
| | | name="phone" |
| | | label="Phone Number" |
| | | rules={[ |
| | | { |
| | | required: false, |
| | | message: 'Please input your phone number!', |
| | | }, |
| | | ]} |
| | | > |
| | | <Input |
| | | addonBefore={prefixSelector} |
| | | style={{ |
| | | width: '100%', |
| | | }} |
| | | /> |
| | | </Form.Item> |
| | | </Col> */} |
| | | |
| | | |
| | | |
| | | </Row> |
| | | </Form> |