@vtj/renderer 0.12.70 → 0.13.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/renderer",
3
3
  "private": false,
4
- "version": "0.12.70",
4
+ "version": "0.13.0",
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.70",
25
- "@vtj/utils": "~0.12.70"
24
+ "@vtj/core": "~0.13.0",
25
+ "@vtj/utils": "~0.13.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "vue": "~3.5.5",
29
29
  "vue-router": "~4.5.0",
30
30
  "@vtj/cli": "~0.12.10",
31
- "@vtj/ui": "~0.12.70",
32
- "@vtj/icons": "~0.12.70"
31
+ "@vtj/icons": "~0.13.0",
32
+ "@vtj/ui": "~0.13.0"
33
33
  },
34
34
  "exports": {
35
35
  ".": {
@@ -0,0 +1,12 @@
1
+ import { App } from 'vue';
2
+ import { GlobalConfig } from '@vtj/core';
3
+ import { ProvideAdapter } from './defaults';
4
+ import { ContextMode } from '../constants';
5
+ export interface InitGlobalsOptions {
6
+ app: App;
7
+ window: Window;
8
+ adapter: ProvideAdapter;
9
+ library: Record<string, any>;
10
+ mode: ContextMode;
11
+ }
12
+ export declare function initRuntimeGlobals(globals: GlobalConfig | undefined, options: InitGlobalsOptions): void;
@@ -1,9 +1,10 @@
1
1
  import { App, InjectionKey } from 'vue';
2
2
  import { Router, RouteRecordName, RouteMeta } from 'vue-router';
3
- import { ProjectSchema, PageFile, BlockFile, Service, BlockSchema, NodeFromPlugin, Base } from '@vtj/core';
3
+ import { ProjectSchema, PageFile, BlockFile, Service, BlockSchema, NodeFromPlugin, GlobalConfig, Base } from '@vtj/core';
4
4
  import { ContextMode } from '../constants';
5
5
  import { CreateRendererOptions } from '../render';
6
6
  import { ProvideAdapter } from './defaults';
7
+ import { InitGlobalsOptions } from './globals';
7
8
  import { MenuDataItem } from '@vtj/ui';
8
9
  import { Context } from '..';
9
10
  export declare const providerKey: InjectionKey<Provider>;
@@ -135,6 +136,12 @@ export declare class Provider extends Base {
135
136
  * @returns Vue异步组件
136
137
  */
137
138
  definePluginComponent(from: NodeFromPlugin): any;
139
+ /**
140
+ * 设置应用全局
141
+ * @param css
142
+ * @param win
143
+ */
144
+ initGlobals(globals: GlobalConfig, options: Partial<InitGlobalsOptions>): void;
138
145
  }
139
146
  /**
140
147
  * 创建 Provider 实例
@@ -1,6 +1,6 @@
1
1
  import { JSExpression, JSFunction } from '@vtj/core';
2
- export declare function parseExpression(str: JSExpression | JSFunction, self: any, thisRequired?: boolean, throwError?: boolean): any;
3
- export declare function parseFunction(str: JSFunction, self: any, thisRequired?: boolean, throwError?: boolean): Function;
2
+ export declare function parseExpression(str: JSExpression | JSFunction, self: any, thisRequired?: boolean, throwError?: boolean, noWith?: boolean): any;
3
+ export declare function parseFunction(str: JSFunction, self: any, thisRequired?: boolean, throwError?: boolean, noWith?: boolean): Function;
4
4
  export declare function isJSExpression(data: any): data is JSExpression;
5
5
  export declare function isJSFunction(x: any): x is JSFunction;
6
6
  export declare function isJSCode(data: unknown): data is JSExpression | JSFunction;
@@ -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.69
5
+ * @version 0.12.70
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.69";
8
+ export declare const version = "0.12.70";