@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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@vtj/renderer",
3
3
  "private": false,
4
- "version": "0.9.0-alpha.9",
4
+ "version": "0.9.1",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
- "@vtj/utils": "~0.9.0-alpha.9",
9
- "@vtj/core": "~0.9.0-alpha.9"
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.4.0",
14
- "@vtj/cli": "~0.9.0-alpha.2",
15
- "@vtj/ui": "~0.9.0-alpha.9",
16
- "@vtj/icons": "~0.9.0-alpha.9"
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;
@@ -38,3 +38,5 @@ export declare const PAGE_ROUTE_NAME = "VtjPage";
38
38
  * 主页路由名称
39
39
  */
40
40
  export declare const HOMEPAGE_ROUTE_NAME = "VtjHomepage";
41
+ export declare const HTML_TAGS: string[];
42
+ export declare const BUILD_IN_TAGS: 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;
@@ -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
- private options;
92
+ options: AccessOptions;
89
93
  private data;
90
94
  private mode?;
91
95
  constructor(options: Partial<AccessOptions>);
@@ -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
  }
@@ -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;
@@ -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.8
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-alpha.8";
8
+ export declare const version = "0.9.0";