| | |
| | | </Row> |
| | | </Header> |
| | | <Content ref={contentRef} className={styles.content}> |
| | | <div ref={mapRef} style={{ position: "relative" }} /> |
| | | |
| | | <div ref={mapRef} style={{ position: "relative" }} > |
| | | <FloatButton.Group |
| | | shape="square" |
| | | style={{ |
| | |
| | | |
| | | <FloatButton.Group |
| | | hidden={model === MapModel.OBSERVER_MODEL} |
| | | trigger="hover" |
| | | // trigger="hover" |
| | | style={{ |
| | | right: 35, |
| | | bottom: 35 |
| | |
| | | icon={<AppstoreAddOutlined />} |
| | | > |
| | | <FloatButton |
| | | hidden={model === MapModel.OBSERVER_MODEL} |
| | | tooltip={<div><FormattedMessage id='map.device.add' defaultMessage='添加设备' /></div>} |
| | | icon={<FileAddOutlined />} |
| | | onClick={() => { |
| | |
| | | }} |
| | | /> |
| | | <FloatButton |
| | | hidden={model === MapModel.OBSERVER_MODEL} |
| | | type={model === MapModel.SETTINGS_MODEL ? 'primary' : 'default'} |
| | | tooltip={<div><FormattedMessage id='map.device.oper' defaultMessage='参数设置' /></div>} |
| | | icon={<SettingOutlined />} |
| | |
| | | }} |
| | | /> |
| | | </FloatButton.Group> |
| | | </div> |
| | | </Content> |
| | | </Layout> |
| | | |