<template>
  <div class="<%= data.pageName %>">
    <%= data.pageName %>
    <% if (data.children.length>0) { %>
    <router-view v-slot="{ Component }">
      <transition name="fade" mode="out-in">
        <component :is="Component" />
      </transition>
    </router-view>
    <% } %>
  </div>
</template>

<script lang="ts" setup></script>

<style scoped >
.<%= data.pageName %> {
  width: 100%;
  height: 100%;
}
</style>
