67 lines
1.4 KiB
TypeScript
67 lines
1.4 KiB
TypeScript
/*
|
||
* 声明.d.ts文件规范
|
||
* 导出的类型以大写开头
|
||
* 对象:config
|
||
* 数组:options
|
||
* 枚举:emu
|
||
* 函数:Fn
|
||
* 属性:props
|
||
* 实例:instance
|
||
* */
|
||
|
||
/*router*/
|
||
import type { RouteRecordRaw } from 'vue-router'
|
||
export interface rawConfig {
|
||
hidden?: boolean
|
||
alwaysShow?: boolean
|
||
code?: number
|
||
name?: string
|
||
fullPath?: string
|
||
path?: string
|
||
meta?: {
|
||
title: string
|
||
icon?: string
|
||
affix?: boolean
|
||
activeMenu?: string
|
||
breadcrumb?: boolean
|
||
roles?: Array<string>
|
||
elSvgIcon?: string
|
||
code?: number
|
||
cachePage?: boolean
|
||
leaveRmCachePage?: boolean
|
||
closeTabRmCache?: boolean
|
||
}
|
||
children?: RouterOptions
|
||
redirect?: string
|
||
}
|
||
export type RouteRawConfig = RouteRecordRaw & rawConfig
|
||
export type RouterTypes = Array<rawProp>
|
||
|
||
/*settings*/
|
||
export interface SettingsConfig {
|
||
title: string
|
||
sidebarLogo: boolean
|
||
showLeftMenu: boolean
|
||
ShowDropDown: boolean
|
||
showHamburger: boolean
|
||
isNeedLogin: boolean
|
||
isNeedNprogress: boolean
|
||
showTagsView: boolean
|
||
tagsViewNum: number
|
||
openProdMock: boolean
|
||
errorLog: string | Array<string>
|
||
permissionMode: string
|
||
delWindowHeight: string
|
||
tmpToken: string
|
||
showNavbarTitle: boolean
|
||
showTopNavbar: boolean
|
||
mainNeedAnimation: boolean
|
||
viteBasePath: string
|
||
defaultLanguage: string
|
||
defaultSize: string
|
||
defaultTheme: string
|
||
plateFormId: number
|
||
}
|
||
|
||
export {}
|