@vtj/renderer 0.8.172 → 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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@vtj/renderer",
3
3
  "private": false,
4
- "version": "0.8.172",
4
+ "version": "0.9.0-alpha.0",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
- "@vtj/core": "~0.8.172",
9
- "@vtj/ui": "~0.8.172",
10
- "@vtj/utils": "~0.8.172",
11
- "@vtj/icons": "~0.8.172"
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/cli": "~0.8.39"
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;
@@ -0,0 +1,2 @@
1
+ import { default as Startup } from './Startup';
2
+ export { Startup };
@@ -6,4 +6,5 @@ export declare function useMask(): {
6
6
  themeSwitchable: boolean | undefined;
7
7
  title: string;
8
8
  menus: MenuDataItem[];
9
+ pure: Ref<boolean, boolean>;
9
10
  };
package/types/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export * from './render';
6
6
  export * from './services';
7
7
  export * from './hooks';
8
8
  export * from './plugins';
9
+ export * from './components';
@@ -94,6 +94,7 @@ export declare class Access {
94
94
  clear(): void;
95
95
  logout(): void;
96
96
  getData(): AccessData | null;
97
+ getToken(): string | undefined;
97
98
  can(code: string | string[] | ((p: Record<string, boolean>) => boolean)): boolean;
98
99
  some(code: string | string[]): boolean;
99
100
  install(app: App): void;
@@ -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
  }
@@ -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.171
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.171";
8
+ export declare const version = "0.8.172";