xframelib 0.5.1 → 0.5.4
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/README.md +3 -0
- package/dist/controls/layoutcontainer/layout.vue.d.ts +6 -6
- package/dist/controls/layoutcontainer/{LayoutManager.d.ts → layoutManager.d.ts} +0 -0
- package/dist/index.cjs +4 -4
- package/dist/index.css +76 -76
- package/dist/index.js +4 -4
- package/dist/model/IRole.d.ts +76 -0
- package/package.json +8 -8
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 路由权限对象
|
|
3
|
+
*/
|
|
4
|
+
export interface IRoleRoute {
|
|
5
|
+
path: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: number;
|
|
8
|
+
title?: string;
|
|
9
|
+
index?: number;
|
|
10
|
+
children?: IRoleRoute[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Widget菜单控制
|
|
14
|
+
*/
|
|
15
|
+
export interface IRoleWidgetMenu {
|
|
16
|
+
name: string;
|
|
17
|
+
index?: number;
|
|
18
|
+
path?: string;
|
|
19
|
+
type?: number;
|
|
20
|
+
children?: Array<IRoleWidgetMenu>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Widget组件权限控制
|
|
24
|
+
*/
|
|
25
|
+
export interface IRoleWidget {
|
|
26
|
+
/**
|
|
27
|
+
* 唯一ID,与组件名一致
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* 标题或说明
|
|
32
|
+
*/
|
|
33
|
+
label?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 所属容器,top/bottom/left/right等
|
|
36
|
+
*/
|
|
37
|
+
container: number;
|
|
38
|
+
/**
|
|
39
|
+
* 是否初始化时,预加载
|
|
40
|
+
*/
|
|
41
|
+
preload?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 前置容器ID,一般也就是bindid
|
|
44
|
+
*/
|
|
45
|
+
afterid?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 绑定依赖容器ID,不一定有afterid
|
|
48
|
+
*/
|
|
49
|
+
bindid?: string;
|
|
50
|
+
/**
|
|
51
|
+
* 所属组,用于业务分类
|
|
52
|
+
*/
|
|
53
|
+
group?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 功能点列表,用于功能点上报和权限过滤
|
|
57
|
+
*/
|
|
58
|
+
export interface IRoleFunction {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
children?: Array<IRoleFunction>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 系统权限路由菜单-总对象
|
|
65
|
+
*/
|
|
66
|
+
export interface ISysRoleRight {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
group?: string;
|
|
70
|
+
product: string;
|
|
71
|
+
version: string;
|
|
72
|
+
routes?: IRoleRoute[];
|
|
73
|
+
widgetMenu?: IRoleWidgetMenu[];
|
|
74
|
+
widgets?: IRoleWidget[];
|
|
75
|
+
functions?: IRoleFunction[];
|
|
76
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xframelib",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "积累的前端开发基础库",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"common": "dist/index.cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"spark-md5": "^3.0.2",
|
|
31
31
|
"streamsaver": "^2.0.6",
|
|
32
32
|
"xhr": "^2.6.0",
|
|
33
|
-
"axios": "^0.26.
|
|
33
|
+
"axios": "^0.26.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@rollup/plugin-alias": "^3.1.9",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
40
40
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
41
41
|
"@types/streamsaver": "^2.0.1",
|
|
42
|
-
"@vitejs/plugin-vue": "^2.2.
|
|
42
|
+
"@vitejs/plugin-vue": "^2.2.4",
|
|
43
43
|
"@vue/compiler-sfc": "^3.2.31",
|
|
44
|
-
"esbuild": "^0.14.
|
|
44
|
+
"esbuild": "^0.14.27",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"rollup-plugin-copy": "^3.4.0",
|
|
47
47
|
"rollup-plugin-esbuild": "^4.8.2",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
51
51
|
"rollup-plugin-vue": "^6.0.0",
|
|
52
52
|
"sass": "^1.49.9",
|
|
53
|
-
"typescript": "^4.
|
|
54
|
-
"vite": "^2.8.
|
|
53
|
+
"typescript": "^4.6.2",
|
|
54
|
+
"vite": "^2.8.6",
|
|
55
55
|
"vue": "^3.2.31",
|
|
56
|
-
"vue-router": "^4.0.
|
|
57
|
-
"vue-tsc": "^0.
|
|
56
|
+
"vue-router": "^4.0.14",
|
|
57
|
+
"vue-tsc": "^0.33.2"
|
|
58
58
|
}
|
|
59
59
|
}
|