@vtj/renderer 0.9.0-alpha.5 → 0.9.0-alpha.50

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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@vtj/renderer",
3
3
  "private": false,
4
- "version": "0.9.0-alpha.5",
4
+ "version": "0.9.0-alpha.50",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
- "@vtj/utils": "~0.9.0-alpha.5",
9
- "@vtj/core": "~0.9.0-alpha.5"
8
+ "@vtj/utils": "~0.9.0-alpha.50",
9
+ "@vtj/core": "~0.9.0-alpha.50"
10
10
  },
11
11
  "devDependencies": {
12
12
  "vue": "~3.5.5",
13
- "vue-router": "~4.4.0",
14
- "@vtj/ui": "~0.9.0-alpha.5",
15
- "@vtj/icons": "~0.9.0-alpha.5",
16
- "@vtj/cli": "~0.9.0-alpha.1"
13
+ "vue-router": "~4.5.0",
14
+ "@vtj/ui": "~0.9.0-alpha.50",
15
+ "@vtj/cli": "~0.9.0-alpha.3",
16
+ "@vtj/icons": "~0.9.0-alpha.50"
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;
@@ -1,6 +1,11 @@
1
1
  import { MenuDataItem } from '@vtj/ui';
2
2
  import { Ref } from 'vue';
3
- export declare function useMask(): {
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;
@@ -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: Record<string, any> | undefined;
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
- routeParentName?: RouteRecordName;
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
  */
@@ -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
  }
@@ -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-alpha.4
5
+ * @version 0.9.0-alpha.49
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.9.0-alpha.4";
8
+ export declare const version = "0.9.0-alpha.49";