<template>
    <a-layout class="a-layout" >
      <a-layout >

        <SiderBar />
        <span>
          <Navbar />
          <div class="content" id="content"  >
            <RouterTravel />
            <div class="router-view" >
              <RouterView :key="useRouterTravel.keyCount" ></RouterView>
            </div>
          </div>
        </span>
      </a-layout>
    </a-layout>
</template>

<script  lang="ts" setup >
import Navbar from './navbar.vue'
import SiderBar from './components/Sidebar/index.vue'
import RouterTravel from './routerTravel.vue'
import { useRouterTravelStore } from '@/store'
import { onMounted } from 'vue'

const useRouterTravel = useRouterTravelStore()

onMounted(() => {

})

</script>

<style lang="less" scoped >

.a-layout {
  /* width: 100vw; */
  height: 100vh;
  overflow: hidden;
  .content {
    width: 100%;
    height: 100%;
    border-top-left-radius: 24px;
    position: relative;
    .router-view {
      width: 100%;
      height: 100%;
      padding: 0 24px 24px;
      padding-bottom: 160px;
      margin-top: 24px;
      // box-sizing: border-box;
      overflow: hidden;
      overflow-y: scroll;
    }
  }
}

#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>
