项目初始化
This commit is contained in:
39
src/module/menu.ts
Normal file
39
src/module/menu.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
export interface MenuType {
|
||||
name: string,
|
||||
title: string,
|
||||
icon: string,
|
||||
type: string,
|
||||
children: MenuType[],
|
||||
open: boolean,
|
||||
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
export enum Language {
|
||||
zh = 'zh', // 中文
|
||||
en = 'en' // 英文
|
||||
}
|
||||
|
||||
export interface DialogConfig {
|
||||
show: boolean
|
||||
template: string,
|
||||
width: string,
|
||||
height: string,
|
||||
who: string
|
||||
header: {
|
||||
title: string,
|
||||
hasIcon: boolean,
|
||||
iconSrc: string,
|
||||
hasMin: boolean,
|
||||
hasMax: boolean
|
||||
},
|
||||
position: {
|
||||
top: string,
|
||||
left: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface DialogAllConfig {
|
||||
dialog: DialogConfig,
|
||||
info: any
|
||||
}
|
||||
Reference in New Issue
Block a user