@vtj/renderer 0.13.35 → 0.13.37
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/dist/index.cjs +5 -5
- package/dist/index.mjs +327 -312
- package/package.json +6 -6
- package/types/plugins/access.d.ts +1 -0
- package/types/provider/provider.d.ts +3 -1
- package/types/render/context.d.ts +2 -0
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/renderer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.37",
|
|
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.13.
|
|
25
|
-
"@vtj/utils": "~0.13.
|
|
24
|
+
"@vtj/core": "~0.13.37",
|
|
25
|
+
"@vtj/utils": "~0.13.37"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"vue": "~3.5.5",
|
|
29
29
|
"vue-router": "~4.6.0",
|
|
30
|
-
"@vtj/
|
|
31
|
-
"@vtj/ui": "~0.13.
|
|
32
|
-
"@vtj/
|
|
30
|
+
"@vtj/cli": "~0.12.17",
|
|
31
|
+
"@vtj/ui": "~0.13.37",
|
|
32
|
+
"@vtj/icons": "~0.13.37"
|
|
33
33
|
},
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App, InjectionKey } from 'vue';
|
|
2
2
|
import { Router, RouteRecordName, RouteMeta } from 'vue-router';
|
|
3
|
-
import { ProjectSchema, PageFile, BlockFile, Service, BlockSchema, NodeFromPlugin, GlobalConfig, I18nConfig, Base } from '@vtj/core';
|
|
3
|
+
import { ProjectSchema, PageFile, BlockFile, Service, BlockSchema, NodeFromPlugin, GlobalConfig, I18nConfig, EnvConfig, Base } from '@vtj/core';
|
|
4
4
|
import { ContextMode } from '../constants';
|
|
5
5
|
import { CreateRendererOptions } from '../render';
|
|
6
6
|
import { ProvideAdapter } from './defaults';
|
|
@@ -56,6 +56,7 @@ export declare class Provider extends Base {
|
|
|
56
56
|
project: ProjectSchema | null;
|
|
57
57
|
components: Record<string, any>;
|
|
58
58
|
nodeEnv: NodeEnv;
|
|
59
|
+
env: Record<string, string>;
|
|
59
60
|
private router;
|
|
60
61
|
private materialPath;
|
|
61
62
|
private urlDslCaches;
|
|
@@ -145,6 +146,7 @@ export declare class Provider extends Base {
|
|
|
145
146
|
*/
|
|
146
147
|
initGlobals(globals: GlobalConfig, options: Partial<InitGlobalsOptions>): void;
|
|
147
148
|
initI18n(app: App, libs: Record<string, any>, i18n?: I18nConfig): void;
|
|
149
|
+
initEnv(envConfig?: EnvConfig[]): void;
|
|
148
150
|
}
|
|
149
151
|
/**
|
|
150
152
|
* 创建 Provider 实例
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContextMode } from '../constants';
|
|
2
2
|
import { BlockSchema, JSFunction, JSExpression } from '@vtj/core';
|
|
3
|
+
import { Provider } from '../provider';
|
|
3
4
|
export interface ContextOptions {
|
|
4
5
|
mode: ContextMode;
|
|
5
6
|
dsl?: BlockSchema;
|
|
@@ -35,6 +36,7 @@ export declare class Context {
|
|
|
35
36
|
$components: Record<string, any>;
|
|
36
37
|
$libs: Record<string, any>;
|
|
37
38
|
$apis: Record<string, any>;
|
|
39
|
+
$provider: Provider | null;
|
|
38
40
|
private __transform;
|
|
39
41
|
constructor(options: ContextOptions);
|
|
40
42
|
setup(attrs: Record<string, any>, Vue?: any): void;
|
package/types/version.d.ts
CHANGED
|
@@ -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.13.
|
|
5
|
+
* @version 0.13.36
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.13.
|
|
8
|
+
export declare const version = "0.13.36";
|