| | |
| | | '': '', |
| | | 'map.sensor.type.shelf': 'Shelf', |
| | | 'map.sensor.type.agv': 'Agv', |
| | | 'map.sensor.type.point': 'Point', |
| | | '': '', |
| | | '': '', |
| | | '': '', |
| | |
| | | |
| | | import agv from '/public/img/map/agv.svg' |
| | | import shelf from '/public/img/map/shelf.png' |
| | | import { Util } from '@antv/g6'; |
| | | import point from '/public/img/map/point.png' |
| | | |
| | | const Device = (props) => { |
| | | const intl = useIntl(); |
| | |
| | | </Col> |
| | | <Col className={styles.mapCol} span={8} > |
| | | <Image |
| | | src={agv} |
| | | src={point} |
| | | width='50px' |
| | | preview={false} |
| | | draggable="true" |
| | | onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.AGV)} |
| | | onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.POINT)} |
| | | /> |
| | | <div className={styles.title}> |
| | | <FormattedMessage id='map.sensor.type.agv' defaultMessage='无人小车' /> |
| | | <FormattedMessage id='map.sensor.type.point' defaultMessage='定位点' /> |
| | | </div> |
| | | </Col> |
| | | </Row> |
| | |
| | | |
| | | export const SENSOR_TYPE = Object.freeze({ |
| | | SHELF: "SHELF", |
| | | POINT: "POINT", |
| | | AGV: "AGV", |
| | | }) |
| | | |