#
luxiaotao1123
2024-03-13 d0fb2d77c9070d7a55551f13d9cbd83d61a819e0
zy-asrs-flow/src/pages/map/components/device.jsx
@@ -3,7 +3,7 @@
import { FormattedMessage, useIntl, useModel } from '@umijs/max';
import * as PIXI from 'pixi.js';
import { createStyles } from 'antd-style';
import './index.css'
import * as Utils from '../utils'
const useStyles = createStyles(({ token, css }) => {
    let dark = token.colorBgBase === '#000';
@@ -28,12 +28,16 @@
                transition: all 0.3s ease !important;
            }
        `,
        color: dark ? '#303030' : '#f0f0f0'
        color: dark ? '#303030' : '#f0f0f0',
        title: {
            color: dark ? '#f0f0f0' : '#303030'
        }
    };
});
import agv from '/public/img/map/agv.svg'
import shelf from '/public/img/map/shelf.png'
import { Util } from '@antv/g6';
const Device = (props) => {
    const { styles } = useStyles();
@@ -84,9 +88,9 @@
                            width='50px'
                            preview={false}
                            draggable="true"
                            onDragStart={(e) => onDragStart(e, 'AGV')}
                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.AGV)}
                        />
                        <div>AGV</div>
                        <div className={styles.title}>AGV</div>
                    </Col>
                    <Col className={styles.mapCol} span={8} >
                        <Image
@@ -94,9 +98,9 @@
                            width='35px'
                            preview={false}
                            draggable="true"
                            onDragStart={(e) => onDragStart(e, 'SHELF')}
                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.SHELF)}
                        />
                        <div>SHELF</div>
                        <div className={styles.title}>SHELF</div>
                    </Col>
                    <Col className={styles.mapCol} span={8} >
                        <Image