<template>
    <a-layout class="a-layout" >
      <Navbar />
      <a-layout>
      <Sider :router="silders" />

      <a-layout style="padding: 0 24px 24px; margin-top: 20px;overflow: hidden;overflow-y: scroll;padding-bottom: 40px;">
        <!-- <Breadcrumb /> -->
        <RouterView></RouterView>
          <!-- <a-layout-content
          :style="{ background: '#fff', padding: '24px', margin: 0, minHeight: '280px' }"
          >
          </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>
