feat(projects): add page function_tab

This commit is contained in:
Soybean
2024-01-25 01:45:00 +08:00
parent 7bd1e47af9
commit 6ff86e7777
13 changed files with 295 additions and 4 deletions

32
src/typings/app.d.ts vendored
View File

@ -185,6 +185,12 @@ declare namespace App {
* If set, the tab label will be replaced by this value
*/
newLabel?: string;
/**
* The old tab label
*
* when reset the tab label, the tab label will be replaced by this value
*/
oldLabel?: string;
/** The tab route key */
routeKey: LastLevelRouteKey;
/** The tab route path */
@ -396,6 +402,32 @@ declare namespace App {
};
creativity: string;
};
function: {
tab: {
tabOperate: {
title: string;
addTab: string;
addTabDesc: string;
closeTab: string;
closeCurrentTab: string;
closeAboutTab: string;
addMultiTab: string;
addMultiTabDesc1: string;
addMultiTabDesc2: string;
};
tabTitle: {
title: string;
changeTitle: string;
change: string;
resetTitle: string;
reset: string;
};
};
multiTab: {
routeParam: string;
backTab: string;
};
};
};
form: {
userName: FormMsg;

View File

@ -41,6 +41,7 @@ declare module 'vue' {
NGrid: typeof import('naive-ui')['NGrid']
NGridItem: typeof import('naive-ui')['NGridItem']
NInput: typeof import('naive-ui')['NInput']
NInputGroup: typeof import('naive-ui')['NInputGroup']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NList: typeof import('naive-ui')['NList']
NListItem: typeof import('naive-ui')['NListItem']

View File

@ -25,6 +25,9 @@ declare module "@elegant-router/types" {
"404": "/404";
"500": "/500";
"about": "/about";
"function": "/function";
"function_multi-tab": "/function/multi-tab";
"function_tab": "/function/tab";
"home": "/home";
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?";
"manage": "/manage";
@ -78,6 +81,7 @@ declare module "@elegant-router/types" {
| "404"
| "500"
| "about"
| "function"
| "home"
| "login"
| "manage"
@ -105,6 +109,8 @@ declare module "@elegant-router/types" {
| "500"
| "login"
| "about"
| "function_multi-tab"
| "function_tab"
| "home"
| "manage_role"
| "manage_route"