| | |
| | | const [form] = Form.useForm(); |
| | | |
| | | useEffect(() => { |
| | | console.log(props.values); |
| | | form.resetFields(); |
| | | if (curSprite && props) { |
| | | form.setFieldsValue({ |
| | |
| | | style={{ |
| | | width: '60%', |
| | | }} |
| | | changeOnWheel |
| | | min={0} |
| | | /> |
| | | </Form.Item> |
| | | </Col> |
| | | |
| | | {curSprite?.data?.type === 'AGV' && ( |
| | | <Col span={24}> |
| | | <Form.Item |
| | | name='copyGap1' |
| | | label={intl.formatMessage({ id: 'map.settings.sub.copy.gap', defaultMessage: '间距' })} |
| | | labelCol={{ span: 8 }} |
| | | > |
| | | <InputNumber |
| | | style={{ |
| | | width: '60%', |
| | | }} |
| | | changeOnWheel |
| | | min={0} |
| | | /> |
| | | </Form.Item> |
| | | </Col> |
| | | )} |
| | | |
| | | </Row> |
| | | </Form> |
| | | </Drawer> |
| | |
| | | const width = contentRef.current.offsetWidth; |
| | | const height = contentRef.current.offsetHeight; |
| | | app.renderer.resize(width, height); |
| | | if (model !== MapModel.OBSERVER_MODEL) { |
| | | player.hideGridlines(); |
| | | player.showGridlines(); |
| | | } |
| | | }, [app, mapContainer, windowSize]) |
| | | |
| | | // model |