From 9ae47a72e8f73ad8105799801f7c0fbd72213374 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期日, 28 四月 2024 15:30:15 +0800 Subject: [PATCH] # --- src/pages/left/index.jsx | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/left/index.jsx b/src/pages/left/index.jsx index 7977331..6c5f3c7 100644 --- a/src/pages/left/index.jsx +++ b/src/pages/left/index.jsx @@ -11,14 +11,13 @@ import CapacityCharts from './components/capacity-charts'; const Left = () => { - const [isExpanded, setIsExpanded] = useState(true); - // 瀹氫箟鍔ㄧ敾灞炴�� + const [isExpanded, setIsExpanded] = useState(false); + const containerAnimation = useSpring({ transform: isExpanded ? 'translate(0%)' : 'translateX(-100%)', config: { precision: 0.01 }, }); - // 鍒囨崲瀹瑰櫒鐘舵�� const toggleContainer = () => { setIsExpanded(!isExpanded); }; -- Gitblit v1.9.1