@vtj/designer 0.8.28 → 0.8.29
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.mjs +7 -5
- package/package.json +7 -7
- package/types/framework/engine.d.ts +1 -1
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -12,10 +12,10 @@ import ms from "mockjs";
|
|
|
12
12
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
13
13
|
* @name @vtj/designer
|
|
14
14
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
15
|
-
* @version 0.8.
|
|
15
|
+
* @version 0.8.29
|
|
16
16
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
17
17
|
*/
|
|
18
|
-
const vs = "0.8.
|
|
18
|
+
const vs = "0.8.29", Rt = {
|
|
19
19
|
width: 390,
|
|
20
20
|
height: 844
|
|
21
21
|
}, Tt = {
|
|
@@ -8572,7 +8572,7 @@ class qi {
|
|
|
8572
8572
|
e.use(r);
|
|
8573
8573
|
}
|
|
8574
8574
|
const s = Object.entries(n);
|
|
8575
|
-
Object.assign(e.config.globalProperties, l), e.config.errorHandler = (r, i, v) => {
|
|
8575
|
+
Object.assign(e.config.globalProperties, l), this.provider.options.install && this.provider.options.install(e), e.config.errorHandler = (r, i, v) => {
|
|
8576
8576
|
const m = i?.$options.name, g = r?.message || r?.msg || "未知错误", y = `[ ${m} ] ${g}`;
|
|
8577
8577
|
console.error({
|
|
8578
8578
|
err: r,
|
|
@@ -8877,7 +8877,8 @@ class Bu extends sn {
|
|
|
8877
8877
|
dependencies: s,
|
|
8878
8878
|
materials: r,
|
|
8879
8879
|
materialPath: i = "./",
|
|
8880
|
-
adapter: v
|
|
8880
|
+
adapter: v,
|
|
8881
|
+
install: m
|
|
8881
8882
|
} = this.options;
|
|
8882
8883
|
this.container = n, this.service = l, this.provider = new El({
|
|
8883
8884
|
mode: on.Design,
|
|
@@ -8887,7 +8888,8 @@ class Bu extends sn {
|
|
|
8887
8888
|
dependencies: s,
|
|
8888
8889
|
materials: r,
|
|
8889
8890
|
materialPath: i,
|
|
8890
|
-
adapter: v
|
|
8891
|
+
adapter: v,
|
|
8892
|
+
install: m
|
|
8891
8893
|
}), this.assets = new Gi(this.service, this.provider), this.simulator = new Hi({
|
|
8892
8894
|
engine: this,
|
|
8893
8895
|
materialPath: i
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.29",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"mockjs": "~1.1.0",
|
|
8
8
|
"monaco-editor": "~0.48.0",
|
|
9
|
-
"@vtj/
|
|
10
|
-
"@vtj/
|
|
11
|
-
"@vtj/
|
|
12
|
-
"@vtj/ui": "~0.8.
|
|
13
|
-
"@vtj/
|
|
9
|
+
"@vtj/core": "~0.8.29",
|
|
10
|
+
"@vtj/icons": "~0.8.29",
|
|
11
|
+
"@vtj/renderer": "~0.8.29",
|
|
12
|
+
"@vtj/ui": "~0.8.29",
|
|
13
|
+
"@vtj/utils": "~0.8.29"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/mockjs": "~1.0.10",
|
|
17
17
|
"vue": "~3.4.15",
|
|
18
18
|
"vue-router": "~4.3.0",
|
|
19
|
-
"@vtj/cli": "~0.8.
|
|
19
|
+
"@vtj/cli": "~0.8.11"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
@@ -15,7 +15,7 @@ export interface EngineOptions {
|
|
|
15
15
|
materialPath?: string;
|
|
16
16
|
globals?: Record<string, any>;
|
|
17
17
|
adapter?: ProvideAdapter;
|
|
18
|
-
install?: (app: App, engine
|
|
18
|
+
install?: (app: App, engine?: Engine) => void;
|
|
19
19
|
}
|
|
20
20
|
export declare class Engine extends Base {
|
|
21
21
|
private options;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.28
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.28";
|