<template>
  <div id="regular-container">
    <TabBar />
    <div>
      <router-view v-slot="{ Component }">
        <keep-alive>
          <component :is="Component" />
        </keep-alive>
      </router-view>
    </div>
  </div>
</template>

<script setup lang="ts">
import TabBar from './components/Consumables/TabBar.vue'
</script>

<style scoped lang="less">
#regular-container {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;

  .main-top {
    display: flex;
    justify-self: space-between;
  }

  .main-bottom {
    width: 100%;

    .buffer-little-title {
      display: flex;
      margin: 5px 0 0 5px 0;

      .line {
        margin-right: 5px;
      }
    }

    .ball-area {
      display: flex;
      justify-self: space-between;
      flex-wrap: wrap;

      .ball-grid {
        margin: 5px;
      }
    }
  }

  .fade-slide-enter-active,
  .fade-slide-leave-active {
    transition:
      opacity 0.5s,
      transform 0.5s;
    /* 控制透明度和滑动的过渡时间 */
  }

  .fade-slide-enter-from {
    opacity: 0;
    transform: translateX(20px);
    /* 从右侧滑入 */
  }

  .fade-slide-leave-to {
    opacity: 0;
    transform: translateX(-20px);
    /* 向左滑出 */
  }
}
</style>
