From c4b00b0268f35a7a9e016e818b0f6e27bc3876f0 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 28 三月 2024 08:56:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/Four-Way-Rack' into Four-Way-Rack

---
 zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
index a73216c..cda5f4f 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
+++ b/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>
         </>
     )
 }

--
Gitblit v1.9.1