|
@@ -0,0 +1,92 @@
|
|
|
+import React, { useState } from 'react';
|
|
|
+import { Layout, Button, Checkbox, Typography, List, Space } from 'antd';
|
|
|
+import {
|
|
|
+ ArrowLeftOutlined,
|
|
|
+ CheckSquareOutlined,
|
|
|
+ CloseSquareOutlined,
|
|
|
+ PictureOutlined,
|
|
|
+} from '@ant-design/icons';
|
|
|
+import { useDispatch } from 'react-redux';
|
|
|
+import { switchToOperationPanel } from '../../states/panelSwitchSliceForView';
|
|
|
+
|
|
|
+const { Header, Content, Footer } = Layout;
|
|
|
+const { Title } = Typography;
|
|
|
+
|
|
|
+const SendImagePage = () => {
|
|
|
+ const [checked, setChecked] = useState(false);
|
|
|
+ const dispatch = useDispatch();
|
|
|
+
|
|
|
+ const handleReturn = () => {
|
|
|
+ dispatch(switchToOperationPanel());
|
|
|
+ };
|
|
|
+
|
|
|
+ return (
|
|
|
+ <Layout className="h-full">
|
|
|
+ {/* 顶部导航栏 */}
|
|
|
+ <Header
|
|
|
+ style={{
|
|
|
+ display: 'flex',
|
|
|
+ alignItems: 'center',
|
|
|
+ padding: '0 16px',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ type="text"
|
|
|
+ icon={<ArrowLeftOutlined />}
|
|
|
+ onClick={handleReturn}
|
|
|
+ />
|
|
|
+ <Title level={5} style={{ margin: 0, lineHeight: '48px' }}>
|
|
|
+ 发送图像
|
|
|
+ </Title>
|
|
|
+ </Header>
|
|
|
+
|
|
|
+ {/* 主体内容 */}
|
|
|
+ <Content
|
|
|
+ style={{ padding: '16px', maxHeight: '100%', overflowY: 'auto' }}
|
|
|
+ >
|
|
|
+ <Space style={{ marginBottom: '16px' }}>
|
|
|
+ <Button icon={<PictureOutlined />} />
|
|
|
+ <Button icon={<CheckSquareOutlined />} />
|
|
|
+ <Button icon={<CloseSquareOutlined />} />
|
|
|
+ </Space>
|
|
|
+ <List
|
|
|
+ dataSource={[
|
|
|
+ { label: 'DVTKSTR SCP' },
|
|
|
+ ...Array.from({ length: 20 }, (_, i) => ({
|
|
|
+ label: `Checkbox ${i + 1}`,
|
|
|
+ })),
|
|
|
+ ]}
|
|
|
+ renderItem={(item) => (
|
|
|
+ <List.Item>
|
|
|
+ <Checkbox
|
|
|
+ checked={checked}
|
|
|
+ onChange={(e) => setChecked(e.target.checked)}
|
|
|
+ >
|
|
|
+ {item.label}
|
|
|
+ </Checkbox>
|
|
|
+ </List.Item>
|
|
|
+ )}
|
|
|
+ />
|
|
|
+ </Content>
|
|
|
+
|
|
|
+ {/* 底部按钮 */}
|
|
|
+ <Footer
|
|
|
+ style={{
|
|
|
+ padding: '16px',
|
|
|
+ display: 'flex',
|
|
|
+ justifyContent: 'center',
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ width: '100%', maxWidth: '400px' }}
|
|
|
+ onClick={() => alert('发送图像')}
|
|
|
+ >
|
|
|
+ 发送图像
|
|
|
+ </Button>
|
|
|
+ </Footer>
|
|
|
+ </Layout>
|
|
|
+ );
|
|
|
+};
|
|
|
+
|
|
|
+export default SendImagePage;
|