Files
NSG_PORTAL_V2/components/dynamic-page/page-component/templates/navigations/tops/Default.vue
T

38 lines
808 B
Vue
Raw Normal View History

2024-06-28 15:39:26 +07:00
<script setup lang="ts">
import { buildTree } from "@/utils/recusive";
import RecusiveNavItem from "@/components/dynamic-page/page-component/templates/navigations/components/RecusiveNavItem.vue";
const _props = defineProps<{
content?: any[];
component?: any;
}>();
const SETTING_OPTIONS = {
MAX_ELEMENT: 10,
};
</script>
<template>
<nav>
2024-06-28 17:25:58 +07:00
<div class="flex gap-3 justify-end items-center">
2024-06-28 15:39:26 +07:00
<RecusiveNavItem :records="content && buildTree(content)" :component="_props.component" />
</div>
</nav>
</template>
<style lang="scss" scoped>
.empty {
width: 100px;
min-height: 20px;
border-radius: 4px;
background: #409eff;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-size: 18px;
color: white;
margin: 5px 0px;
}
</style>