| | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { Layout, Button, Flex, Row, Col, FloatButton, Select, Spin, AutoComplete } from 'antd'; |
| | | import { FormattedMessage, useIntl, useModel } from '@umijs/max'; |
| | | import { |
| | | CloseOutlined |
| | | } from '@ant-design/icons'; |
| | | import { Select, AutoComplete } from 'antd'; |
| | | import { FormattedMessage, useIntl } from '@umijs/max'; |
| | | import { CloseOutlined } from '@ant-design/icons'; |
| | | import * as Utils from '../utils' |
| | | |
| | | const renderTitle = (title, uuid) => ( |
| | | <> |
| | | <span |
| | | style={{ |
| | | fontWeight: 'bold' |
| | | }} |
| | | > |
| | | {title} |
| | | </span> |
| | | <span |
| | | style={{ |
| | | float: 'right', |
| | | opacity: .3 |
| | | }} |
| | | > |
| | | {uuid} |
| | | </span> |
| | | <span style={{ fontWeight: 'bold' }} >{title}</span> |
| | | <span style={{ float: 'right', opacity: .3 }} >{uuid}</span> |
| | | </> |
| | | ); |
| | | |
| | |
| | | const uuid = option.label?.props?.children?.[1].props.children |
| | | setCurSensor(Utils.findSpriteByUuid(uuid)); |
| | | }} |
| | | onChange={setCurSensorLabel} |
| | | onChange={(value) => { |
| | | setCurSensorLabel(value) |
| | | }} |
| | | /> |
| | | </> |
| | | ) |