| | |
| | | let dark = token.colorBgBase === '#000'; |
| | | return { |
| | | layout: { |
| | | // overflow: 'hidden', |
| | | overflow: 'hidden', |
| | | }, |
| | | header: { |
| | | height: 64, |
| | |
| | | <Flex className={styles.flex} gap={'large'} justify={'flex-end'} align={'center'}> |
| | | <Button onClick={editHandle} size={'large'}><FormattedMessage id='map.edit' defaultMessage='编辑地图' /></Button> |
| | | </Flex> |
| | | |
| | | <Edit |
| | | open={editModalVisible} |
| | | onCancel={ |
| | | () => { |
| | | setEditModalVisible(false); |
| | | } |
| | | } |
| | | refCurr={mapRef.current} |
| | | /> |
| | | </Header> |
| | | <Content ref={contentRef} className={styles.content}> |
| | | <div ref={mapRef}></div> |
| | | <div ref={mapRef} style={{ position: "relative" }}> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </Content> |
| | | |
| | | |
| | | </Layout> |
| | | |
| | | <Edit |
| | | open={editModalVisible} |
| | | onCancel={ |
| | | () => { |
| | | setEditModalVisible(false); |
| | | } |
| | | } |
| | | /> |
| | | |
| | | </> |
| | | ) |
| | | } |