From 845dda551328404ec76dbeb7c3b5ad167c47c793 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期三, 03 四月 2024 11:05:24 +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 e1f0218..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={900}
+ 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