@vtj/renderer 0.8.171 → 0.9.0-alpha.0
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/LICENSE +21 -21
- package/dist/index.cjs +70 -5
- package/dist/index.mjs +581 -451
- package/package.json +6 -6
- package/types/components/Startup.d.ts +12 -0
- package/types/components/index.d.ts +2 -0
- package/types/hooks/mask.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/plugins/access.d.ts +5 -0
- package/types/provider/page.d.ts +1 -0
- package/types/provider/provider.d.ts +9 -2
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/renderer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.9.0-alpha.0",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"mockjs": "~1.1.0",
|
8
|
-
"@vtj/
|
9
|
-
"@vtj/
|
10
|
-
"@vtj/ui": "~0.8.171",
|
11
|
-
"@vtj/utils": "~0.8.171"
|
8
|
+
"@vtj/utils": "~0.9.0-alpha.0",
|
9
|
+
"@vtj/core": "~0.9.0-alpha.0"
|
12
10
|
},
|
13
11
|
"devDependencies": {
|
14
12
|
"vue": "~3.5.5",
|
15
13
|
"vue-router": "~4.4.0",
|
16
|
-
"@vtj/
|
14
|
+
"@vtj/ui": "~0.9.0-alpha.0",
|
15
|
+
"@vtj/cli": "~0.9.0-alpha.0",
|
16
|
+
"@vtj/icons": "~0.9.0-alpha.0"
|
17
17
|
},
|
18
18
|
"exports": {
|
19
19
|
".": {
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
export interface Props {
|
3
|
+
name?: string;
|
4
|
+
tagline?: string;
|
5
|
+
actionText?: string;
|
6
|
+
}
|
7
|
+
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
8
|
+
name: string;
|
9
|
+
tagline: string;
|
10
|
+
actionText: string;
|
11
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
12
|
+
export default _default;
|
package/types/hooks/mask.d.ts
CHANGED
package/types/index.d.ts
CHANGED
@@ -55,6 +55,10 @@ export interface AccessOptions {
|
|
55
55
|
* 未登录提示文本
|
56
56
|
*/
|
57
57
|
unauthorizedMessage?: string;
|
58
|
+
/**
|
59
|
+
* 无权限提示
|
60
|
+
*/
|
61
|
+
noPermissionMessage?: string;
|
58
62
|
/**
|
59
63
|
* RSA解密私钥
|
60
64
|
*/
|
@@ -90,6 +94,7 @@ export declare class Access {
|
|
90
94
|
clear(): void;
|
91
95
|
logout(): void;
|
92
96
|
getData(): AccessData | null;
|
97
|
+
getToken(): string | undefined;
|
93
98
|
can(code: string | string[] | ((p: Record<string, boolean>) => boolean)): boolean;
|
94
99
|
some(code: string | string[]): boolean;
|
95
100
|
install(app: App): void;
|
package/types/provider/page.d.ts
CHANGED
@@ -7,4 +7,5 @@ export declare const PageContainer: DefineComponent<{}, {
|
|
7
7
|
component: any;
|
8
8
|
file: PageFile | null;
|
9
9
|
query: LocationQuery;
|
10
|
+
meta: Record<string, any> | undefined;
|
10
11
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { App, InjectionKey } from 'vue';
|
2
|
-
import { Router } from 'vue-router';
|
2
|
+
import { Router, RouteRecordName, RouteMeta } from 'vue-router';
|
3
3
|
import { ProjectSchema, PageFile, BlockFile, Service, BlockSchema, NodeFromPlugin, Base } from '@vtj/core';
|
4
4
|
import { IStaticRequest, Jsonp } from '@vtj/utils';
|
5
5
|
import { Access } from '../plugins';
|
@@ -20,6 +20,9 @@ export interface ProviderOptions {
|
|
20
20
|
materialPath?: string;
|
21
21
|
nodeEnv?: NodeEnv;
|
22
22
|
install?: (app: App) => void;
|
23
|
+
routeParentName?: RouteRecordName;
|
24
|
+
pageRouteName?: string;
|
25
|
+
routeMeta?: RouteMeta;
|
23
26
|
}
|
24
27
|
export declare enum NodeEnv {
|
25
28
|
Production = "production",
|
@@ -30,6 +33,10 @@ export interface ProvideAdapter {
|
|
30
33
|
jsonp: Jsonp;
|
31
34
|
metaQuery?: (...args: any[]) => Promise<any>;
|
32
35
|
access?: Access;
|
36
|
+
/**
|
37
|
+
* 远程服务 host
|
38
|
+
*/
|
39
|
+
remote?: string;
|
33
40
|
[index: string]: any;
|
34
41
|
}
|
35
42
|
export declare class Provider extends Base {
|
@@ -64,7 +71,7 @@ export declare class Provider extends Base {
|
|
64
71
|
renderer: any;
|
65
72
|
context: Context;
|
66
73
|
};
|
67
|
-
getRenderComponent(id: string): Promise<any>;
|
74
|
+
getRenderComponent(id: string, output?: (file: BlockFile | PageFile) => void): Promise<any>;
|
68
75
|
defineUrlSchemaComponent(url: string, name?: string): any;
|
69
76
|
definePluginComponent(from: NodeFromPlugin): any;
|
70
77
|
}
|
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.172
|
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.172";
|