From 0254b3caa25819d038754baa58b03824303b5fa7 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期日, 07 四月 2024 08:35:55 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/index.jsx |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/index.jsx b/zy-asrs-flow/src/pages/map/drawer/index.jsx
index 1ffe3db..17ac267 100644
--- a/zy-asrs-flow/src/pages/map/drawer/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -15,7 +15,13 @@
 const MapDrawer = (props) => {
     const intl = useIntl();
     const { styles } = useStyles();
-    const { curSprite } = props;
+    const { curSprite, curFloor } = props;
+
+    const [drawerTitle, setDrawerTitle] = useState('');
+
+    useEffect(() => {
+
+    }, [props.curSprite]);
 
     const handleCancel = () => {
         props.onCancel();
@@ -24,12 +30,13 @@
     return (
         <>
             <Drawer
+                title={drawerTitle}
                 open={props.open}
                 onClose={handleCancel}
                 getContainer={props.refCurr}
                 rootStyle={{ position: "absolute" }}
                 mask={false}
-                width={600}
+                width={window.innerWidth * 0.35}
                 style={{
                     opacity: 1
                 }}
@@ -45,6 +52,8 @@
                     <>
                         <ShelfDrawer
                             curSprite={curSprite}
+                            curFloor={curFloor}
+                            setDrawerTitle={setDrawerTitle}
                         />
                     </>
                 )}
@@ -52,6 +61,8 @@
                     <>
                         <ShuttleDrawer
                             curSprite={curSprite}
+                            curFloor={curFloor}
+                            setDrawerTitle={setDrawerTitle}
                         />
                     </>
                 )}

--
Gitblit v1.9.1