@vtj/renderer 0.8.170 → 0.8.172
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 +292 -270
- package/package.json +5 -5
- package/types/constants.d.ts +8 -0
- package/types/plugins/access.d.ts +8 -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.172",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"mockjs": "~1.1.0",
|
8
|
-
"@vtj/core": "~0.8.
|
9
|
-
"@vtj/
|
10
|
-
"@vtj/utils": "~0.8.
|
11
|
-
"@vtj/
|
8
|
+
"@vtj/core": "~0.8.172",
|
9
|
+
"@vtj/ui": "~0.8.172",
|
10
|
+
"@vtj/utils": "~0.8.172",
|
11
|
+
"@vtj/icons": "~0.8.172"
|
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,13 @@ export interface AccessOptions {
|
|
56
56
|
*/
|
57
57
|
unauthorizedMessage?: string;
|
58
58
|
/**
|
59
|
-
*
|
59
|
+
* 无权限提示
|
60
60
|
*/
|
61
|
-
|
61
|
+
noPermissionMessage?: string;
|
62
|
+
/**
|
63
|
+
* RSA解密私钥
|
64
|
+
*/
|
65
|
+
privateKey?: string;
|
62
66
|
}
|
63
67
|
export interface AccessData {
|
64
68
|
token: string;
|
@@ -86,7 +90,7 @@ export declare class Access {
|
|
86
90
|
private mode?;
|
87
91
|
constructor(options: Partial<AccessOptions>);
|
88
92
|
connect(params: AccessConnectParams): void;
|
89
|
-
login(data: AccessData | string): void;
|
93
|
+
login(data: AccessData | string | string[]): void;
|
90
94
|
clear(): void;
|
91
95
|
logout(): void;
|
92
96
|
getData(): AccessData | null;
|
@@ -104,6 +108,7 @@ export declare class Access {
|
|
104
108
|
private isWhiteList;
|
105
109
|
private isUnauthorized;
|
106
110
|
private showUnauthorizedAlert;
|
111
|
+
private showTip;
|
107
112
|
private setRequest;
|
108
113
|
}
|
109
114
|
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.171
|
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.171";
|