@minilo/types 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/index.ts +39 -0
- package/package.json +18 -0
package/CHANGELOG.md
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface MenuDataItem {
|
|
2
|
+
path: string
|
|
3
|
+
name: string
|
|
4
|
+
icon?: string
|
|
5
|
+
showInBreadcrumb?: boolean
|
|
6
|
+
showInTab?: boolean
|
|
7
|
+
showInMenu?: boolean
|
|
8
|
+
children: MenuDataItem[]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface BreadcrumbItem {
|
|
12
|
+
name?: string
|
|
13
|
+
path?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface TabItem {
|
|
17
|
+
name?: string
|
|
18
|
+
path?: string
|
|
19
|
+
fixed?: boolean
|
|
20
|
+
icon?: string
|
|
21
|
+
fullPath?: string
|
|
22
|
+
query?: {
|
|
23
|
+
[key: string]: any
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface OptionItem {
|
|
28
|
+
label: string
|
|
29
|
+
value: any
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 按钮权限响应类型
|
|
34
|
+
*/
|
|
35
|
+
export interface ButtonPermissionsResponse {
|
|
36
|
+
code: number
|
|
37
|
+
msg: string
|
|
38
|
+
data: string[]
|
|
39
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@minilo/types",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./index.ts",
|
|
9
|
+
"default": "./index.ts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"author": "",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"description": "公用类型声明子包",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
17
|
+
}
|
|
18
|
+
}
|