@vtj/renderer 0.12.43 → 0.12.45

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/renderer",
3
3
  "private": false,
4
- "version": "0.12.43",
4
+ "version": "0.12.45",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -21,15 +21,15 @@
21
21
  "author": "chenhuachun",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.12.43",
25
- "@vtj/utils": "~0.12.43"
24
+ "@vtj/utils": "~0.12.45",
25
+ "@vtj/core": "~0.12.45"
26
26
  },
27
27
  "devDependencies": {
28
28
  "vue": "~3.5.5",
29
29
  "vue-router": "~4.5.0",
30
- "@vtj/cli": "~0.12.5",
31
- "@vtj/ui": "~0.12.43",
32
- "@vtj/icons": "~0.12.43"
30
+ "@vtj/icons": "~0.12.45",
31
+ "@vtj/cli": "~0.12.6",
32
+ "@vtj/ui": "~0.12.45"
33
33
  },
34
34
  "exports": {
35
35
  ".": {
@@ -40,3 +40,9 @@ export declare const PAGE_ROUTE_NAME = "VtjPage";
40
40
  export declare const HOMEPAGE_ROUTE_NAME = "VtjHomepage";
41
41
  export declare const HTML_TAGS: string[];
42
42
  export declare const BUILD_IN_TAGS: string[];
43
+ export declare const REMOTE: string;
44
+ export declare const ACCESS: {
45
+ auth: string;
46
+ storageKey: string;
47
+ privateKey: string;
48
+ };
@@ -1,10 +1,14 @@
1
1
  import { MenuDataItem } from '@vtj/ui';
2
+ import { PageFile } from '@vtj/core';
3
+ import { Access } from '../plugins';
2
4
  import { Ref } from 'vue';
3
5
  export interface UseMaskOptions {
4
6
  pageRouteName?: string;
5
7
  menuPathPrefix?: string;
6
8
  disableMenusFilter?: boolean;
7
9
  }
10
+ export declare function createMenus(menuPathPrefix: string, pageRouteName: string, pages?: PageFile[]): MenuDataItem[];
11
+ export declare function menusFilter(menus: MenuDataItem[], access?: Access): MenuDataItem[];
8
12
  export declare function useMask(options?: UseMaskOptions): {
9
13
  disabled: Ref<boolean, boolean>;
10
14
  logo: string | undefined;
@@ -110,17 +110,17 @@ export declare class Access {
110
110
  some(code: string | string[]): boolean;
111
111
  install(app: App): void;
112
112
  private isAuthPath;
113
- private toLogin;
113
+ toLogin(): void;
114
114
  private setData;
115
115
  private loadData;
116
- private isLogined;
116
+ isLogined(): boolean;
117
117
  private hasRoutePermission;
118
118
  private setGuard;
119
119
  private guard;
120
120
  private isWhiteList;
121
121
  private isUnauthorized;
122
122
  private showUnauthorizedAlert;
123
- private showTip;
123
+ showTip(content: string): Promise<any>;
124
124
  private setRequest;
125
125
  }
126
126
  export declare function useAccess(): Access;
@@ -4,6 +4,7 @@ import { ProjectSchema, PageFile, BlockFile, Service, BlockSchema, NodeFromPlugi
4
4
  import { ContextMode } from '../constants';
5
5
  import { CreateRendererOptions } from '../render';
6
6
  import { ProvideAdapter } from './defaults';
7
+ import { MenuDataItem } from '@vtj/ui';
7
8
  import { Context } from '..';
8
9
  export declare const providerKey: InjectionKey<Provider>;
9
10
  export interface ProviderOptions {
@@ -85,6 +86,7 @@ export declare class Provider extends Base {
85
86
  install(app: App): void;
86
87
  getFile(id: string): PageFile | BlockFile | null;
87
88
  getPage(id: string): PageFile | null;
89
+ getMenus(name?: string, prefix?: string): MenuDataItem[];
88
90
  getHomepage(): PageFile | null;
89
91
  getDsl(id: string): Promise<BlockSchema | null>;
90
92
  getDslByUrl(url: string): Promise<BlockSchema | null>;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/renderer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.12.42
5
+ * @version 0.12.44
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.42";
8
+ export declare const version = "0.12.44";