瀏覽代碼

feat(processing): add transfer area component to operationpanel

sw 1 月之前
父節點
當前提交
0bf8ef961b
共有 2 個文件被更改,包括 25 次插入11 次删除
  1. 13 6
      src/pages/view/components/OperationPanel.tsx
  2. 12 5
      src/pages/view/components/TransferArea.tsx

+ 13 - 6
src/pages/view/components/OperationPanel.tsx

@@ -1,14 +1,21 @@
 import React from 'react';
-import { Flex } from 'antd';
+import { Layout } from 'antd';
 import FunctionArea from './FunctionArea';
+import TransferArea from './TransferArea';
+
+const { Content, Footer } = Layout;
 
 const OperationPanel = () => {
   return (
-    <Flex className="h-full" vertical>
-      <FunctionArea />
-      <div>Image State Control</div>
-      <div>Transfer Area</div>
-    </Flex>
+    <Layout className="h-full">
+      <Content>
+        <FunctionArea />
+      </Content>
+      <Footer className="p-1">
+        <div>Image State Control</div>
+        <TransferArea />
+      </Footer>
+    </Layout>
   );
 };
 

+ 12 - 5
src/pages/view/components/TransferArea.tsx

@@ -1,12 +1,19 @@
 import React from 'react';
-import { Button, Space } from 'antd';
+import { Button } from 'antd';
 
 const TransferArea = () => {
   return (
-    <Space>
-      <Button>Send</Button>
-      <Button>Export</Button>
-    </Space>
+    <div className="transfer-area">
+      <Button
+        style={{
+          width: '1.5rem',
+          height: '1.5rem',
+          padding: 0,
+        }}
+      >
+        Send
+      </Button>
+    </div>
   );
 };