| | |
| | | |
| | | import StockCharts from './components/stock-charts'; |
| | | import TaskCharts from './components/task-charts'; |
| | | // import AgvCharts from './components/agv-charts'; |
| | | import AgvCharts from './components/agv-charts'; |
| | | 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); |
| | | }; |
| | |
| | | }} |
| | | className={`absolute top-2 left-2 bottom-2 w-[280px] ${styles.panel}`} |
| | | > |
| | | <div className="h-full overflow-auto"> |
| | | <div className="h-full overflow-hidden"> |
| | | <Panel title="库房情况"> |
| | | <StockCharts /> |
| | | </Panel> |
| | |
| | | <TaskCharts /> |
| | | </Panel> |
| | | <Panel title="AGV信息"> |
| | | {/* <AgvCharts /> */} |
| | | <CapacityCharts /> |
| | | <AgvCharts /> |
| | | {/* <CapacityCharts /> */} |
| | | </Panel> |
| | | </div> |
| | | <div |