Files
role-admin/src/layout/types.ts
T
湛兮 db3fd9bee1 feat(experiments): 拆分实验类型测试方案与用户管理入口
- 实验类型:新增独立创建、数据格式、默认值、调用示例和接入验收页

- 测试方案:按类型编辑 A/B 返回值,统一百分比并保留生命周期和效果审计

- 用户管理:新增分页查人、方案分组预览、人工指定和恢复自动分组

- 文档:同步菜单与组件职责,移除固定业务接入点场景弹窗
2026-10-27 11:40:28 +08:00

100 lines
2.0 KiB
TypeScript

import type { FunctionalComponent } from "vue";
/**
* 登录后默认打开的标签页。
*
* 这里要和 `src/router/modules/digital.ts` 的业务页面保持一致,
* 否则登出重置标签页或首次进入后台时会出现空标签/错入口。
*/
/** 数字人后台默认标签,旧业务路由保留但不自动打开。 */
export const routerArrays: Array<RouteConfigs> = [
{
path: "/digital/content",
name: "DigitalContent",
meta: { title: "角色与内容库", icon: "ep/collection" }
},
{
path: "/digital/experiments",
name: "DigitalExperiments",
meta: { title: "测试方案", icon: "ep/data-analysis" }
}
];
export type routeMetaType = {
title?: string;
icon?: string | FunctionalComponent;
showLink?: boolean;
savedPosition?: boolean;
permission?: string | Array<string>;
menuKey?: string;
};
export type RouteConfigs = {
path?: string;
query?: object;
params?: object;
meta?: routeMetaType;
children?: RouteConfigs[];
name?: string;
};
export type multiTagsType = {
tags: Array<RouteConfigs>;
};
export type tagsViewsType = {
icon: string | FunctionalComponent;
text: string;
divided: boolean;
disabled: boolean;
show: boolean;
};
export interface setType {
sidebar: {
opened: boolean;
withoutAnimation: boolean;
isClickCollapse: boolean;
};
device: string;
fixedHeader: boolean;
classes: {
hideSidebar: boolean;
openSidebar: boolean;
withoutAnimation: boolean;
mobile: boolean;
};
hideTabs: boolean;
}
export type menuType = {
id?: number;
name?: string;
path?: string;
noShowingChildren?: boolean;
children?: menuType[];
value: unknown;
meta?: {
icon?: string;
title?: string;
rank?: number;
showParent?: boolean;
extraIcon?: string;
};
showTooltip?: boolean;
parentId?: number;
pathList?: number[];
redirect?: string;
};
export type themeColorsType = {
color: string;
themeColor: string;
};
export interface scrollbarDomType extends HTMLElement {
wrap?: {
offsetWidth: number;
};
}