From e862d40a71508b2203b13dec9c1c79cf29ca02ec Mon Sep 17 00:00:00 2001 From: skycurtain Date: Thu, 31 Jul 2025 17:09:53 +0800 Subject: [PATCH] chore: base layout --- src/App.tsx | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index db1f037..10ef6c5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,73 @@ +import type { MenuTheme } from 'antd'; import type { FC } from 'react'; +import { AlertFilled, AreaChartOutlined, HomeFilled, VideoCameraFilled } from '@ant-design/icons'; +import { Button, Layout, Menu, theme, Typography } from 'antd'; +import { useState } from 'react'; + +const { Content, Footer, Header, Sider } = Layout; +const { Title } = Typography; + const App: FC = () => { - return
Hello World
; + const { token: { colorBgContainer } } = theme.useToken(); + const [menuTheme] = useState('light'); + const [count, setCount] = useState(0); + + return ( + +
+ 网络设备管理平台 +
+ + + , + theme: menuTheme, + }, + { + label: '实时设备状态', + key: 'device', + icon: , + theme: menuTheme, + }, + { + label: '设备告警记录', + key: 'alarm', + icon: , + theme: menuTheme, + }, + { + key: 'statistics', // analysis + icon: , + theme: menuTheme, + }, + ]} + > + + + + {/* 内容区域 */} + +
Content
+
Content
+
Content
+
Content
+
Content
+
Bottom
+
+
+ +
+ ); }; export default App;