feat: add vue admin transition shell

This commit is contained in:
duanshuwen committed 2026-08-25 22:48:10 +08:00
1 parent 2cdf7f9d7a
commit f07a61f3a8
30 files changed
+2127 -7

No files matched your search

@@ -0,0 +1,17 @@
<script setup lang="ts">
import type { AdminMenu } from "@/types";
defineProps<{ menus: AdminMenu[] }>();
</script>
<template>
<template v-for="menu in menus" :key="menu.id">
<el-sub-menu v-if="menu.type === 'directory' && menu.children?.length" :index="menu.id">
<template #title><span>{{ menu.name }}</span></template>
<MenuTree :menus="menu.children" />
</el-sub-menu>
<el-menu-item v-else-if="menu.type !== 'button' && menu.path" :index="menu.path">
<span>{{ menu.name }}</span>
</el-menu-item>
</template>
</template>