lolosia-web/typings/basic.d.ts
2023-02-02 16:07:38 +08:00

67 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 声明.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 {}