ImageProcessingPageLarge.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { Layout } from 'antd';
  2. import ImageControl from './components/ImageControl';
  3. import OperationPanel from './components/OperationPanel';
  4. import BodyPositionList from '../exam/components/BodyPositionList';
  5. const { Content, Sider } = Layout;
  6. const ImageProcessingPageLarge = () => {
  7. return (
  8. <Layout className="h-full">
  9. <Sider width={200} className="custom-sider">
  10. {/**使用style注入方式修改Sider内部div的样式,使体位列表显示出体位信息 */}
  11. <style>{`
  12. .custom-sider > .ant-layout-sider-children {
  13. display: flex;
  14. flex-direction: column;
  15. height: 100%;
  16. }
  17. `}</style>
  18. <BodyPositionList layout="vertical" showAddButton={false} />
  19. </Sider>
  20. <Content>
  21. <ImageControl />
  22. </Content>
  23. <Sider width={300} className="operation-panel-sider">
  24. {/**使用style注入方式确保OperationPanel获得100%高度 */}
  25. <style>{`
  26. .operation-panel-sider > .ant-layout-sider-children {
  27. display: flex;
  28. flex-direction: column;
  29. height: 100%;
  30. }
  31. `}</style>
  32. <OperationPanel />
  33. </Sider>
  34. </Layout>
  35. );
  36. };
  37. export default ImageProcessingPageLarge;