diff --git a/src/assets/css/components/common/sidebar.scss b/src/assets/css/components/common/sidebar.scss index b94d972..3fd86f3 100644 --- a/src/assets/css/components/common/sidebar.scss +++ b/src/assets/css/components/common/sidebar.scss @@ -46,7 +46,7 @@ } } - .content { + .content, .bottom-fixed { display: flex; min-height: 0; flex-direction: column; diff --git a/src/assets/svg/setting.svg b/src/assets/svg/setting.svg new file mode 100644 index 0000000..ee8bd94 --- /dev/null +++ b/src/assets/svg/setting.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/common/sidebar/index.tsx b/src/components/common/sidebar/index.tsx index 41f1006..87dd435 100644 --- a/src/components/common/sidebar/index.tsx +++ b/src/components/common/sidebar/index.tsx @@ -9,6 +9,7 @@ interface SidebarProps extends React.PropsWithChildren { title: string width?: string onSidebarSwitch?: (hidden: boolean) => void + bottomFixed?: React.ReactNode } const Sidebar: React.FC = (props) => { @@ -34,6 +35,9 @@ const Sidebar: React.FC = (props) => {
{props.children}
+
+ {props.bottomFixed} +
diff --git a/src/pages/SystemFramework.tsx b/src/pages/SystemFramework.tsx new file mode 100644 index 0000000..2dc509d --- /dev/null +++ b/src/pages/SystemFramework.tsx @@ -0,0 +1,37 @@ +import React from 'react' +import system from '@/router/system' +import '@/assets/css/pages/tools-framework.scss' +import FitFullScreen from '@/components/common/FitFullScreen' +import Sidebar from '@/components/common/sidebar' +import SidebarItemList from '@/components/common/sidebar/SidebarItemList' +import SidebarItem from '@/components/common/sidebar/SidebarItem' + +const SystemFramework: React.FC = () => { + return ( + <> + +
+ + + {system.map((value) => { + return value.menu ? ( + + ) : undefined + })} + + +
+
+ +
+
+ + ) +} + +export default SystemFramework diff --git a/src/pages/UserFramework.tsx b/src/pages/UserFramework.tsx index 69ae406..d2a70e2 100644 --- a/src/pages/UserFramework.tsx +++ b/src/pages/UserFramework.tsx @@ -1,17 +1,28 @@ import React from 'react' -import FitFullScreen from '@/components/common/FitFullScreen' +import user from '@/router/user' import '@/assets/css/pages/tools-framework.scss' +import FitFullScreen from '@/components/common/FitFullScreen' import Sidebar from '@/components/common/sidebar' import SidebarItemList from '@/components/common/sidebar/SidebarItemList' import SidebarItem from '@/components/common/sidebar/SidebarItem' -import user from '@/router/user.tsx' const ToolsFramework: React.FC = () => { return ( <>
- + + + + } + > {user.map((value) => { return value.menu ? ( diff --git a/src/router/system.tsx b/src/router/system.tsx new file mode 100644 index 0000000..23ce4ae --- /dev/null +++ b/src/router/system.tsx @@ -0,0 +1,19 @@ +import React from 'react' + +const user: RouteJsonObject[] = [ + { + path: '', + absolutePath: '/system', + id: 'system', + name: '系统设置', + icon: React.lazy(() => import('~icons/fatweb/setting.jsx')), + menu: true + }, + { + path: '*', + absolutePath: '*', + element: + } +] + +export default user