| | |
| | | |
| | | const Base = (props) => { |
| | | return ( |
| | | <div style={{ height: '100%', width: '100%' }}> |
| | | <div style={{ height: '100%', width: '100%', position: 'relative', overflow: 'hidden' }}> |
| | | <Canvas |
| | | shadows |
| | | gl={{ |
| | |
| | | }} |
| | | 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> |
| | |
| | | |
| | | const Right = () => { |
| | | const [isExpanded, setIsExpanded] = useState(false); |
| | | |
| | | |
| | | const containerAnimation = useSpring({ |
| | | transform: isExpanded ? 'translate(0%)' : 'translateX(100%)', |
| | | config: { precision: 0.01 }, |
| | |
| | | }} |
| | | className={`absolute top-2 w-[280px] right-2 bottom-2 ${styles.panel}`} |
| | | > |
| | | <div className="overflow-auto h-full"> |
| | | <div className="overflow-hidden h-full"> |
| | | <Panel title="出入库信息"> |
| | | {/* <Allerway /> */} |
| | | </Panel> |