#
luxiaotao1123
2024-04-10 f94994cc9b31934c9db5931af4c8ae46494396e4
zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -20,6 +20,9 @@
    const { curSprite, curFloor } = props;
    const [drawerTitle, setDrawerTitle] = useState('');
    const [drawerWidth, setDrawerWidth] = useState(() => {
        return window.innerWidth * 0.35;
    })
    useEffect(() => {
    }, [props.curSprite]);
@@ -37,7 +40,7 @@
                getContainer={props.refCurr}
                rootStyle={{ position: "absolute" }}
                mask={false}
                width={window.innerWidth * 0.35}
                width={drawerWidth}
                style={{
                    opacity: 1
                }}
@@ -64,6 +67,7 @@
                            curSprite={curSprite}
                            curFloor={curFloor}
                            setDrawerTitle={setDrawerTitle}
                            setDrawerWidth={setDrawerWidth}
                        />
                    </>
                )}
@@ -82,6 +86,7 @@
                            curSprite={curSprite}
                            curFloor={curFloor}
                            setDrawerTitle={setDrawerTitle}
                            setDrawerWidth={setDrawerWidth}
                        />
                    </>
                )}