perf: 优化代码
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { type FunctionalComponent } from "vue";
|
||||
import { type RouteComponent } from "vue-router";
|
||||
|
||||
export interface StorageConfigs {
|
||||
@@ -60,7 +61,7 @@ export interface RouteChildrenConfigsTable {
|
||||
/** 菜单名称(兼容国际化、非国际化,如何用国际化的写法就必须在根目录的`locales`文件夹下对应添加) `必填` */
|
||||
title: string;
|
||||
/** 菜单图标 `可选` */
|
||||
icon?: string;
|
||||
icon?: string | FunctionalComponent;
|
||||
/** 菜单名称右侧的额外图标,支持`fontawesome`、`iconfont`、`element-plus-icon` `可选` */
|
||||
extraIcon?: {
|
||||
svg?: boolean;
|
||||
@@ -118,7 +119,7 @@ export interface RouteConfigsTable {
|
||||
/** 菜单名称(兼容国际化、非国际化,如何用国际化的写法就必须在根目录的`locales`文件夹下对应添加)`必填` */
|
||||
title: string;
|
||||
/** 菜单图标 `可选` */
|
||||
icon?: string;
|
||||
icon?: string | FunctionalComponent;
|
||||
/** 是否在菜单中显示(默认`true`)`可选` */
|
||||
showLink?: boolean;
|
||||
/** 菜单升序排序,值越高排的越后(只针对顶级路由)`可选` */
|
||||
|
Reference in New Issue
Block a user