@vtj/renderer 0.9.0-alpha.9 → 0.9.1
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 +6 -6
- package/dist/index.mjs +540 -481
- package/package.json +7 -7
- package/types/components/Startup.d.ts +1 -0
- package/types/constants.d.ts +2 -0
- package/types/hooks/mask.d.ts +6 -1
- package/types/plugins/access.d.ts +5 -1
- package/types/provider/page.d.ts +5 -3
- package/types/provider/provider.d.ts +2 -1
- package/types/services/base.d.ts +1 -0
- package/types/utils/util.d.ts +2 -0
- 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.9.
|
4
|
+
"version": "0.9.1",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"mockjs": "~1.1.0",
|
8
|
-
"@vtj/
|
9
|
-
"@vtj/
|
8
|
+
"@vtj/core": "~0.9.1",
|
9
|
+
"@vtj/utils": "~0.9.1"
|
10
10
|
},
|
11
11
|
"devDependencies": {
|
12
12
|
"vue": "~3.5.5",
|
13
|
-
"vue-router": "~4.
|
14
|
-
"@vtj/cli": "~0.9.
|
15
|
-
"@vtj/
|
16
|
-
"@vtj/
|
13
|
+
"vue-router": "~4.5.0",
|
14
|
+
"@vtj/cli": "~0.9.1",
|
15
|
+
"@vtj/icons": "~0.9.1",
|
16
|
+
"@vtj/ui": "~0.9.1"
|
17
17
|
},
|
18
18
|
"exports": {
|
19
19
|
".": {
|
@@ -3,6 +3,7 @@ export interface Props {
|
|
3
3
|
name?: string;
|
4
4
|
tagline?: string;
|
5
5
|
actionText?: string;
|
6
|
+
link?: string | (() => void);
|
6
7
|
}
|
7
8
|
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
8
9
|
name: string;
|
package/types/constants.d.ts
CHANGED
package/types/hooks/mask.d.ts
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
import { MenuDataItem } from '@vtj/ui';
|
2
2
|
import { Ref } from 'vue';
|
3
|
-
export
|
3
|
+
export interface UseMaskOptions {
|
4
|
+
pageRouteName?: string;
|
5
|
+
menuPathPrefix?: string;
|
6
|
+
disableMenusFilter?: boolean;
|
7
|
+
}
|
8
|
+
export declare function useMask(options?: UseMaskOptions): {
|
4
9
|
disabled: Ref<boolean, boolean>;
|
5
10
|
logo: string | undefined;
|
6
11
|
themeSwitchable: boolean | undefined;
|
@@ -63,6 +63,10 @@ export interface AccessOptions {
|
|
63
63
|
* RSA解密私钥
|
64
64
|
*/
|
65
65
|
privateKey?: string;
|
66
|
+
/**
|
67
|
+
* 应用编码
|
68
|
+
*/
|
69
|
+
appName?: string;
|
66
70
|
}
|
67
71
|
export interface AccessData {
|
68
72
|
token: string;
|
@@ -85,7 +89,7 @@ export interface AccessConnectParams {
|
|
85
89
|
}
|
86
90
|
export declare const ACCESS_KEY: InjectionKey<Access>;
|
87
91
|
export declare class Access {
|
88
|
-
|
92
|
+
options: AccessOptions;
|
89
93
|
private data;
|
90
94
|
private mode?;
|
91
95
|
constructor(options: Partial<AccessOptions>);
|
package/types/provider/page.d.ts
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
1
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { Provider } from './provider';
|
3
3
|
import { PageFile } from '@vtj/core';
|
4
|
-
import { LocationQuery } from 'vue-router';
|
4
|
+
import { LocationQuery, RouteMeta, RouteLocationNormalizedLoadedGeneric } from 'vue-router';
|
5
5
|
export declare const PageContainer: DefineComponent<{}, {
|
6
6
|
provider: Provider;
|
7
7
|
component: any;
|
8
8
|
file: PageFile | null;
|
9
9
|
query: LocationQuery;
|
10
|
-
meta:
|
10
|
+
meta: RouteMeta;
|
11
|
+
sid: Ref<symbol, symbol>;
|
12
|
+
route: RouteLocationNormalizedLoadedGeneric;
|
11
13
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
@@ -20,7 +20,7 @@ export interface ProviderOptions {
|
|
20
20
|
materialPath?: string;
|
21
21
|
nodeEnv?: NodeEnv;
|
22
22
|
install?: (app: App) => void;
|
23
|
-
|
23
|
+
routeAppendTo?: RouteRecordName;
|
24
24
|
pageRouteName?: string;
|
25
25
|
routeMeta?: RouteMeta;
|
26
26
|
}
|
@@ -33,6 +33,7 @@ export interface ProvideAdapter {
|
|
33
33
|
jsonp: Jsonp;
|
34
34
|
metaQuery?: (...args: any[]) => Promise<any>;
|
35
35
|
access?: Access;
|
36
|
+
startupComponent?: any;
|
36
37
|
/**
|
37
38
|
* 远程服务 host
|
38
39
|
*/
|
package/types/services/base.d.ts
CHANGED
@@ -27,4 +27,5 @@ export declare class BaseService implements Service {
|
|
27
27
|
removeStaticFile(name: string, projectId: string): Promise<boolean>;
|
28
28
|
clearStaticFiles(projectId: string): Promise<boolean>;
|
29
29
|
getPluginMaterial(from: NodeFromPlugin): Promise<MaterialDescription | null>;
|
30
|
+
genSource(project: ProjectSchema): Promise<string>;
|
30
31
|
}
|
package/types/utils/util.d.ts
CHANGED
@@ -5,3 +5,5 @@ export declare function loadCss(id: string, url: string): Promise<void>;
|
|
5
5
|
export declare function loadCssUrl(urls: string[], global?: any): void;
|
6
6
|
export declare function loadScriptUrl(urls: string[], library: string, global?: any): Promise<any>;
|
7
7
|
export declare function isVuePlugin(value: unknown): value is Plugin;
|
8
|
+
export declare function isBuiltInTag(tag: string): boolean;
|
9
|
+
export declare function isNativeTag(tag: string): boolean;
|
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.9.0
|
5
|
+
* @version 0.9.0
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.9.0
|
8
|
+
export declare const version = "0.9.0";
|