forked from Tencent/tdesign-vue-next-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.d.ts
More file actions
53 lines (46 loc) · 1.21 KB
/
interface.d.ts
File metadata and controls
53 lines (46 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import type { TabValue } from 'tdesign-vue-next';
import type { Component, DefineComponent, FunctionalComponent } from 'vue';
import type { LocationQueryRaw, RouteMeta, RouteRecordName } from 'vue-router';
export interface MenuRoute {
// TODO: menuitem 组件实际支持 string 类型但是类型错误,暂时使用 any 类型避免打包错误待组件类型修复
path: any;
title?: string | Record<string, string>;
name?: string;
icon?: string | Component | FunctionalComponent | DefineComponent;
redirect?: string;
children: MenuRoute[];
meta: RouteMeta;
}
export type ModeType = 'dark' | 'light';
export interface UserInfo {
name: string;
roles: string[];
}
export interface NotificationItem {
id: string;
content: string;
type: string;
status: boolean;
collected: boolean;
date: string;
quality: string;
}
export interface TRouterInfo {
path: string;
query?: LocationQueryRaw;
routeIdx?: number;
title?: string;
name?: RouteRecordName;
isAlive?: boolean;
isHome?: boolean;
meta?: any;
}
export interface TTabRouterType {
isRefreshing: boolean;
tabRouterList: Array<TRouterInfo>;
}
export interface TTabRemoveOptions {
value: TabValue;
index: number;
e: MouseEvent;
}