|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
import { LaptopOutlined, NotificationOutlined, UserOutlined } from '@ant-design/icons';
|
|
|
import type { MenuProps } from 'antd';
|
|
|
import { ConfigProvider, Breadcrumb, Layout, Menu, theme } from 'antd';
|
|
|
+import { Outlet } from 'react-router-dom';
|
|
|
|
|
|
const { Header, Content, Sider } = Layout;
|
|
|
|
|
@@ -30,12 +31,12 @@ const items2: MenuProps['items'] = [UserOutlined, LaptopOutlined, NotificationOu
|
|
|
}
|
|
|
);
|
|
|
|
|
|
-const App: React.FC = () => {
|
|
|
+const Skeleton: React.FC = () => {
|
|
|
const {
|
|
|
token: { colorBgContainer, borderRadiusLG }
|
|
|
} = theme.useToken();
|
|
|
return (
|
|
|
- <ConfigProvider theme={{ token: { colorPrimary: '#00b96b' } }}>
|
|
|
+ <ConfigProvider theme={{ token: { colorPrimary: '#ff0000' } }}>
|
|
|
<Layout>
|
|
|
<Header style={{ display: 'flex', alignItems: 'center' }}>
|
|
|
<div className='demo-logo' />
|
|
@@ -47,7 +48,7 @@ const App: React.FC = () => {
|
|
|
style={{ flex: 1, minWidth: 0 }}
|
|
|
/>
|
|
|
</Header>
|
|
|
- <Layout style={{height: 'calc(100vh - 80px)'}}>
|
|
|
+ <Layout style={{ height: 'calc(100vh - 80px)' }}>
|
|
|
<Sider width={200} style={{ background: colorBgContainer }}>
|
|
|
<Menu
|
|
|
mode='inline'
|
|
@@ -61,8 +62,7 @@ const App: React.FC = () => {
|
|
|
<Breadcrumb
|
|
|
style={{ margin: '16px 0' }}
|
|
|
items={[{ title: 'Home' }, { title: 'List' }, { title: 'App' }]}
|
|
|
- >
|
|
|
- </Breadcrumb>
|
|
|
+ ></Breadcrumb>
|
|
|
<Content
|
|
|
style={{
|
|
|
padding: 24,
|
|
@@ -72,7 +72,9 @@ const App: React.FC = () => {
|
|
|
borderRadius: borderRadiusLG
|
|
|
}}
|
|
|
>
|
|
|
- Content
|
|
|
+ <div id='detail'>
|
|
|
+ <Outlet />
|
|
|
+ </div>
|
|
|
</Content>
|
|
|
</Layout>
|
|
|
</Layout>
|
|
@@ -81,4 +83,4 @@ const App: React.FC = () => {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
-export default App;
|
|
|
+export default Skeleton;
|