<template>
  <div class="layout">
    <NavBar></NavBar>
    <router-view> </router-view>
  </div>
  
</template>

<script setup>
import { ref } from "vue";
import { useRouter, useRoute } from "vue-router";
import NavBar from "./NavBar.vue";

const currentRoute = useRoute();
const showLoading = ref(false);

const startLoading = () => {
  showLoading.value = true;
};

const stopLoading = () => {
  showLoading.value = false;
};
</script>

<style lang="scss" scoped>
.layout{
  width: 100%;
  height: 100%;
  
}
.fade-enter-from,
.fade-leave-to {
  /*定义进入开始和离开结束的透明度为0*/
  opacity: 0;
}
.fade-leave-to {
  transform: translateX(20px);
}
.fade-enter-to {
  transform: translateX(-20px);
}
.fade-enter-to,
.fade-leave-from {
  /*定义进入结束和离开开始的透明度为1*/
  opacity: 1;
}
.fade-leave-active,
.fade-enter-active {
  transition: all 0.32s ease-out;
}
</style>
