| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <a-layout class="a-layout" >
- <Navbar />
- <a-layout>
- <Sider :router="silders" />
- <a-layout style="padding: 0 24px 24px; margin-top: 20px;">
- <Breadcrumb />
- <a-layout-content
- :style="{ background: '#fff', padding: '24px', margin: 0, minHeight: '280px' }"
- >
- <RouterView></RouterView>
- </a-layout-content>
- </a-layout>
- </a-layout>
- </a-layout>
- </template>
- <script lang="ts" setup >
- import router from '@/router/index'
- import Navbar from './navbar.vue'
- import Sider from './sider.vue'
- import Breadcrumb from './breadcrumb.vue'
- const silders = router.options.routes.find(route => route.path === '/')?.children
- </script>
- <style>
- .a-layout {
- width: 100vw;
- height: 100vh;
- }
- #components-layout-demo-top-side-2 .logo {
- float: left;
- width: 120px;
- height: 31px;
- margin: 16px 24px 16px 0;
- background: rgba(255, 255, 255, 0.3);
- }
- .ant-row-rtl #components-layout-demo-top-side-2 .logo {
- float: right;
- margin: 16px 0 16px 24px;
- }
- .site-layout-background {
- background: #fff;
- }
- </style>
|