@vtj/renderer 0.8.169 → 0.8.171
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/dist/index.cjs +5 -5
- package/dist/index.mjs +280 -261
- package/package.json +5 -5
- package/types/constants.d.ts +8 -0
- package/types/plugins/access.d.ts +5 -3
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/renderer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.171",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"mockjs": "~1.1.0",
|
|
8
|
-
"@vtj/
|
|
9
|
-
"@vtj/
|
|
10
|
-
"@vtj/ui": "~0.8.
|
|
11
|
-
"@vtj/utils": "~0.8.
|
|
8
|
+
"@vtj/core": "~0.8.171",
|
|
9
|
+
"@vtj/icons": "~0.8.171",
|
|
10
|
+
"@vtj/ui": "~0.8.171",
|
|
11
|
+
"@vtj/utils": "~0.8.171"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"vue": "~3.5.5",
|
package/types/constants.d.ts
CHANGED
|
@@ -30,3 +30,11 @@ export declare const BUILT_IN_DIRECTIVES: string[];
|
|
|
30
30
|
* 数据类型
|
|
31
31
|
*/
|
|
32
32
|
export declare const DATA_TYPES: Record<BlockPropDataType, any>;
|
|
33
|
+
/**
|
|
34
|
+
* 页面路由名称
|
|
35
|
+
*/
|
|
36
|
+
export declare const PAGE_ROUTE_NAME = "VtjPage";
|
|
37
|
+
/**
|
|
38
|
+
* 主页路由名称
|
|
39
|
+
*/
|
|
40
|
+
export declare const HOMEPAGE_ROUTE_NAME = "VtjHomepage";
|
|
@@ -56,9 +56,9 @@ export interface AccessOptions {
|
|
|
56
56
|
*/
|
|
57
57
|
unauthorizedMessage?: string;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* RSA解密私钥
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
privateKey?: string;
|
|
62
62
|
}
|
|
63
63
|
export interface AccessData {
|
|
64
64
|
token: string;
|
|
@@ -86,7 +86,7 @@ export declare class Access {
|
|
|
86
86
|
private mode?;
|
|
87
87
|
constructor(options: Partial<AccessOptions>);
|
|
88
88
|
connect(params: AccessConnectParams): void;
|
|
89
|
-
login(data: AccessData | string): void;
|
|
89
|
+
login(data: AccessData | string | string[]): void;
|
|
90
90
|
clear(): void;
|
|
91
91
|
logout(): void;
|
|
92
92
|
getData(): AccessData | null;
|
|
@@ -98,11 +98,13 @@ export declare class Access {
|
|
|
98
98
|
private setData;
|
|
99
99
|
private loadData;
|
|
100
100
|
private isLogined;
|
|
101
|
+
private hasRoutePermission;
|
|
101
102
|
private setGuard;
|
|
102
103
|
private guard;
|
|
103
104
|
private isWhiteList;
|
|
104
105
|
private isUnauthorized;
|
|
105
106
|
private showUnauthorizedAlert;
|
|
107
|
+
private showTip;
|
|
106
108
|
private setRequest;
|
|
107
109
|
}
|
|
108
110
|
export declare function useAccess(): Access;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/renderer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.170
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.170";
|