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

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.26
18
+ * @version 0.9.0-alpha.28
19
19
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
20
20
  */
21
- const eo = "0.9.0-alpha.26", un = {
21
+ const eo = "0.9.0-alpha.28", un = {
22
22
  width: 390,
23
23
  height: 844
24
24
  }, cn = {
@@ -7474,17 +7474,17 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
7474
7474
  }, 8, ["title"]));
7475
7475
  }
7476
7476
  }), iu = /* @__PURE__ */ E({
7477
- name: "SchemaWidget",
7477
+ name: "RawWidget",
7478
7478
  __name: "index",
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, 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()
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()
7488
7488
  ) : a.value = "";
7489
7489
  },
7490
7490
  {
@@ -10176,7 +10176,10 @@ class uc {
10176
10176
  async getBlockMaterial(t, e) {
10177
10177
  if (!t || typeof t == "string") return null;
10178
10178
  let l;
10179
- if (t.type === "Schema" && t.id && (l = this.caches[t.id] || await this.service.getFile(t.id), this.caches[t.id] = l), t.type === "UrlSchema" && t.url && (l = this.caches[t.url] || await this.provider.getDslByUrl(t.url), this.caches[t.url] = l), t.type === "Plugin") {
10179
+ if (t.type === "Schema" && t.id && (l = this.caches[t.id] || await this.service.getFile(
10180
+ t.id,
10181
+ this.provider.project || void 0
10182
+ ), this.caches[t.id] = l), t.type === "UrlSchema" && t.url && (l = this.caches[t.url] || await this.provider.getDslByUrl(t.url), this.caches[t.url] = l), t.type === "Plugin") {
10180
10183
  const v = await this.service.getPluginMaterial(t);
10181
10184
  return v ? (v.name = e || v.name, v.from = t, this.componentMap.set(v.name, v), v) : null;
10182
10185
  }
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.26",
4
+ "version": "0.9.0-alpha.28",
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/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"
10
+ "@vtj/core": "~0.9.0-alpha.28",
11
+ "@vtj/icons": "~0.9.0-alpha.28",
12
+ "@vtj/renderer": "~0.9.0-alpha.28",
13
+ "@vtj/utils": "~0.9.0-alpha.28",
14
+ "@vtj/ui": "~0.9.0-alpha.28"
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.25
5
+ * @version 0.9.0-alpha.27
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.9.0-alpha.25";
8
+ export declare const version = "0.9.0-alpha.27";