@vtj/designer 0.9.0-alpha.24 → 0.9.0-alpha.26

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 CHANGED
@@ -15,10 +15,10 @@ import Zs from "mockjs";
15
15
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
16
16
  * @name @vtj/designer
17
17
  * @author CHC chenhuachun1549@dingtalk.com
18
- * @version 0.9.0-alpha.24
18
+ * @version 0.9.0-alpha.26
19
19
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
20
20
  */
21
- const eo = "0.9.0-alpha.24", un = {
21
+ const eo = "0.9.0-alpha.26", un = {
22
22
  width: 390,
23
23
  height: 844
24
24
  }, cn = {
@@ -7479,12 +7479,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
7479
7479
  setup(i) {
7480
7480
  const { current: t, engine: e } = me(), l = S(), a = S(""), o = C(() => t.value ? `$vtj/vue/${t.value.id}.vue` : ""), s = C(() => t.value ? t.value.name : "");
7481
7481
  return M(
7482
- t,
7483
- async (r) => {
7484
- const u = e.project.value;
7485
- u && r ? a.value = await e.service.genVueContent(
7486
- u.toDsl(),
7487
- r.toDsl()
7482
+ [t, e.changed],
7483
+ async () => {
7484
+ const r = e.project.value;
7485
+ r && t.value ? a.value = await e.service.genVueContent(
7486
+ r.toDsl(),
7487
+ t.value.toDsl()
7488
7488
  ) : a.value = "";
7489
7489
  },
7490
7490
  {
@@ -10398,8 +10398,14 @@ class Xc extends zn {
10398
10398
  }
10399
10399
  }
10400
10400
  async genSource() {
10401
- const e = this.project.value?.toDsl();
10402
- return e ? await this.service.genSource(e) : void 0;
10401
+ const e = this.project.value;
10402
+ if (e) {
10403
+ const l = {
10404
+ ...e.toDsl(),
10405
+ pages: e.getPages()
10406
+ };
10407
+ return l ? await this.service.genSource(l) : void 0;
10408
+ }
10403
10409
  }
10404
10410
  async publishCurrent() {
10405
10411
  const e = this.project.value, l = e?.currentFile;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.9.0-alpha.24",
4
+ "version": "0.9.0-alpha.26",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "html2canvas": "~1.4.1",
8
8
  "mockjs": "~1.1.0",
9
9
  "monaco-editor": "~0.51.0",
10
- "@vtj/icons": "~0.9.0-alpha.24",
11
- "@vtj/ui": "~0.9.0-alpha.24",
12
- "@vtj/utils": "~0.9.0-alpha.24",
13
- "@vtj/core": "~0.9.0-alpha.24",
14
- "@vtj/renderer": "~0.9.0-alpha.24"
10
+ "@vtj/core": "~0.9.0-alpha.26",
11
+ "@vtj/icons": "~0.9.0-alpha.26",
12
+ "@vtj/utils": "~0.9.0-alpha.26",
13
+ "@vtj/renderer": "~0.9.0-alpha.26",
14
+ "@vtj/ui": "~0.9.0-alpha.26"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/mockjs": "~1.0.10",
@@ -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.9.0-alpha.23
5
+ * @version 0.9.0-alpha.25
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.9.0-alpha.23";
8
+ export declare const version = "0.9.0-alpha.25";