refactor(projects): 抽离格式化相关依赖配置

This commit is contained in:
Soybean
2022-08-10 21:31:59 +08:00
parent 16dce9a4ce
commit f4d37cf7f0
78 changed files with 324 additions and 437 deletions

View File

@ -79,7 +79,7 @@ declare namespace AuthRoute {
type RouteComponent = 'basic' | 'blank' | 'multi' | 'self';
/** 路由描述 */
type RouteMeta = {
interface RouteMeta {
/** 路由标题(可用来作document.title或者菜单的名称) */
title: string;
/** 路由的动态路径(需要动态路径的页面需要将path添加进范型参数) */
@ -111,7 +111,7 @@ declare namespace AuthRoute {
activeMenu?: RouteKey;
/** 表示是否是多级路由的中间级路由(用于转换路由数据时筛选多级路由的标识,定义路由时不用填写) */
multi?: boolean;
};
}
/** 单个路由的类型结构(动态路由模式:后端返回此类型结构的路由) */
interface Route {

View File

@ -265,7 +265,7 @@ interface GlobalHeaderProps {
}
/** 菜单项配置 */
type GlobalMenuOption = {
type GlobalMenuOption = import('naive-ui').MenuOption & {
key: string;
label: string;
routeName: string;