Junjie
2024-03-28 c4b00b0268f35a7a9e016e818b0f6e27bc3876f0
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -4,22 +4,36 @@
import { createStyles } from 'antd-style';
import * as Utils from '../../utils'
import Http from '@/utils/http';
import ShelfThree from './shelfThree'
const useStyles = createStyles(({ token, css }) => {
    return {
        threeContainer: {
            zIndex: 99,
            width: '500px',
            height: '600px',
        }
    }
})
let shelfThree;
const ShelfView = (props) => {
    const intl = useIntl();
    const { styles } = useStyles();
    useEffect(() => {
    console.log(props.data);
    const refContainer = useRef();
    useEffect(() => {
        shelfThree = new ShelfThree(refContainer);
        shelfThree.startup();
    }, []);
    return (
        <>
            <h1>HJdsa</h1>
            <div className={styles.threeContainer} ref={refContainer}></div>
        </>
    )
}