mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-22 22:31:31 +08:00
This reverts commit 0c0ba082b4
.
This commit is contained in:
parent
0c0ba082b4
commit
f1853ad3a8
|
@ -8,7 +8,7 @@
|
||||||
</template>
|
</template>
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
</t-menu-item>
|
</t-menu-item>
|
||||||
<t-menu-item v-else :name="item.path" :value="getPath(item)" :to="item.path" :router="router">
|
<t-menu-item v-else :name="item.path" :value="getPath(item)" :to="item.path">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<component :is="menuIcon(item)" class="t-icon"></component>
|
<component :is="menuIcon(item)" class="t-icon"></component>
|
||||||
</template>
|
</template>
|
||||||
|
@ -27,15 +27,12 @@
|
||||||
<script setup lang="tsx">
|
<script setup lang="tsx">
|
||||||
import type { PropType } from 'vue';
|
import type { PropType } from 'vue';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
|
||||||
|
|
||||||
import { getActive } from '@/router';
|
import { getActive } from '@/router';
|
||||||
import type { MenuRoute } from '@/types/interface';
|
import type { MenuRoute } from '@/types/interface';
|
||||||
|
|
||||||
type ListItemType = MenuRoute & { icon?: string };
|
type ListItemType = MenuRoute & { icon?: string };
|
||||||
|
|
||||||
const router = useRouter();
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
navData: {
|
navData: {
|
||||||
type: Array as PropType<MenuRoute[]>,
|
type: Array as PropType<MenuRoute[]>,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user