build(projects): update deps and fix type error [升级依赖并修复类型问题]

This commit is contained in:
Soybean
2023-05-04 19:02:20 +08:00
parent 5a4f842774
commit 34f023c4b1
7 changed files with 239 additions and 187 deletions

View File

@ -2,7 +2,7 @@
<n-breadcrumb class="px-12px">
<template v-for="breadcrumb in breadcrumbs" :key="breadcrumb.key">
<n-breadcrumb-item>
<n-dropdown v-if="breadcrumb.hasChildren" :options="breadcrumb.children" @select="dropdownSelect">
<n-dropdown v-if="breadcrumb.hasChildren" :options="breadcrumb.options" @select="dropdownSelect">
<span>
<component
:is="breadcrumb.icon"

View File

@ -17,7 +17,7 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { VNodeChild } from 'vue';
import type { Component } from 'vue';
import { useBoolean } from '@/hooks';
defineOptions({ name: 'MixMenuDetail' });
@ -30,7 +30,7 @@ interface Props {
/** 当前激活状态的理由名称 */
activeRouteName: string;
/** 路由图标 */
icon?: () => VNodeChild;
icon?: Component;
/** mini尺寸的路由 */
isMini?: boolean;
}