@vtj/designer 0.12.19 → 0.12.20
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/Editor-C5icbnkA.js +4 -0
- package/dist/{index-CjCbyQpe.js → index-Dk3wQ7we.js} +3426 -3319
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/types/framework/engine.d.ts +7 -1
- package/types/framework/renderer.d.ts +1 -1
- package/types/framework/simulator.d.ts +6 -2
- package/types/version.d.ts +2 -2
- package/dist/Editor-qrpS4FQY.js +0 -4
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-
|
1
|
+
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-Dk3wQ7we.js";
|
2
2
|
export {
|
3
3
|
e as ACCESS,
|
4
4
|
E as API_METHOD_TYPES,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/designer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.12.
|
4
|
+
"version": "0.12.20",
|
5
5
|
"type": "module",
|
6
6
|
"keywords": [
|
7
7
|
"低代码引擎",
|
@@ -26,12 +26,12 @@
|
|
26
26
|
"marked": "~15.0.8",
|
27
27
|
"mockjs": "~1.1.0",
|
28
28
|
"monaco-editor": "~0.52.0",
|
29
|
-
"@vtj/
|
30
|
-
"@vtj/
|
31
|
-
"@vtj/
|
32
|
-
"@vtj/
|
33
|
-
"@vtj/uni": "~0.12.
|
34
|
-
"@vtj/utils": "~0.12.
|
29
|
+
"@vtj/core": "~0.12.20",
|
30
|
+
"@vtj/renderer": "~0.12.20",
|
31
|
+
"@vtj/ui": "~0.12.20",
|
32
|
+
"@vtj/icons": "~0.12.20",
|
33
|
+
"@vtj/uni": "~0.12.20",
|
34
|
+
"@vtj/utils": "~0.12.20"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@types/mockjs": "~1.0.10",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ShallowReactive, InjectionKey, MaybeRef, App, Ref } from 'vue';
|
2
|
-
import { Base, ProjectModel, BlockModel, HistoryModel, Service, Emitter, ProjectSchema, ProjectModelEvent, BlockSchema } from '@vtj/core';
|
2
|
+
import { Base, ProjectModel, BlockModel, HistoryModel, Service, Emitter, ProjectSchema, ProjectModelEvent, BlockSchema, EnhanceConfig } from '@vtj/core';
|
3
3
|
import { Context, Provider, Access, ProvideAdapter } from '@vtj/renderer';
|
4
4
|
import { SkeletonWrapperInstance } from '../wrappers';
|
5
5
|
import { Simulator } from './simulator';
|
@@ -72,6 +72,10 @@ export interface EngineOptions {
|
|
72
72
|
* 适配远程接口
|
73
73
|
*/
|
74
74
|
openApi?: OpenApi;
|
75
|
+
/**
|
76
|
+
* 开启应用整强
|
77
|
+
*/
|
78
|
+
enhance?: boolean | EnhanceConfig;
|
75
79
|
}
|
76
80
|
export declare const SAVE_BLOCK_FILE_FINISH = "SAVE_BLOCK_FILE_FINISH";
|
77
81
|
export declare class Engine extends Base {
|
@@ -101,6 +105,8 @@ export declare class Engine extends Base {
|
|
101
105
|
openApi?: OpenApi;
|
102
106
|
constructor(options: EngineOptions);
|
103
107
|
private init;
|
108
|
+
private getEnhanceConfig;
|
109
|
+
private checkLocked;
|
104
110
|
private render;
|
105
111
|
private bindEvents;
|
106
112
|
private activeFile;
|
@@ -21,7 +21,7 @@ export declare class Renderer {
|
|
21
21
|
private install;
|
22
22
|
createUniApp(platform: PlatformType, file: PageFile | BlockFile, renderer: any): App<any>;
|
23
23
|
createApp(platform: PlatformType, file: PageFile | BlockFile, renderer: any): App<any>;
|
24
|
-
render(block: BlockModel, file?: PageFile | BlockFile | null):
|
24
|
+
render(block: BlockModel, file?: PageFile | BlockFile | null): App<any> | null | undefined;
|
25
25
|
dispose(): void;
|
26
26
|
updateChild(node: NodeSchema, parent: BlockSchema | NodeSchema): void;
|
27
27
|
private __onNodeChange;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { Ref, ShallowRef } from 'vue';
|
2
|
-
import { Dependencie, Material, ApiSchema, MetaSchema, ProjectConfig, UniConfig, Base } from '@vtj/core';
|
1
|
+
import { Ref, ShallowRef, App } from 'vue';
|
2
|
+
import { Dependencie, Material, ApiSchema, MetaSchema, ProjectConfig, UniConfig, EnhanceConfig, Base } from '@vtj/core';
|
3
|
+
import { Provider } from '@vtj/renderer';
|
3
4
|
import { Renderer } from './renderer';
|
4
5
|
import { Designer } from './designer';
|
5
6
|
import { Engine } from './engine';
|
@@ -24,10 +25,12 @@ export interface SimulatorEnv {
|
|
24
25
|
globals: Record<string, any>;
|
25
26
|
libraryLocaleMap: Record<string, any>;
|
26
27
|
locales: Record<string, any>;
|
28
|
+
enhance?: (app: App, provider: Provider) => void;
|
27
29
|
}
|
28
30
|
export interface SimulatorOptions {
|
29
31
|
engine: Engine;
|
30
32
|
materialPath: string;
|
33
|
+
enhance?: EnhanceConfig;
|
31
34
|
}
|
32
35
|
export declare class Simulator extends Base {
|
33
36
|
contentWindow: Window | null;
|
@@ -37,6 +40,7 @@ export declare class Simulator extends Base {
|
|
37
40
|
materialPath: string;
|
38
41
|
rendered: Ref<symbol>;
|
39
42
|
devtools: DevTools;
|
43
|
+
enhance?: EnhanceConfig;
|
40
44
|
constructor(options: SimulatorOptions);
|
41
45
|
init(iframe: Ref<HTMLIFrameElement | undefined>, deps: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, meta: Ref<MetaSchema[]>, config: Ref<ProjectConfig>, uniConfig: Ref<UniConfig>): void;
|
42
46
|
private createGlobalCss;
|
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/designer
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.12.
|
5
|
+
* @version 0.12.19
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.12.
|
8
|
+
export declare const version = "0.12.19";
|
package/dist/Editor-qrpS4FQY.js
DELETED