@vtj/designer 0.19.7 → 0.19.8

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.
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./index-BG3Vcy3v.js";
2
+ export {
3
+ f as default
4
+ };
@@ -19,10 +19,10 @@ import { editor as th } from "monaco-editor";
19
19
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
20
20
  * @name @vtj/designer
21
21
  * @author CHC chenhuachun1549@dingtalk.com
22
- * @version 0.19.7
22
+ * @version 0.19.8
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const Vr = "0.19.7", nh = {
25
+ const Vr = "0.19.8", nh = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, oh = {
@@ -8912,7 +8912,7 @@ const zw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
8912
8912
  ]));
8913
8913
  }
8914
8914
  }), pt = Rp({
8915
- loader: () => import("./Editor-SBc0LANV.js"),
8915
+ loader: () => import("./Editor-CpeCjTXd.js"),
8916
8916
  loadingComponent: z({
8917
8917
  render() {
8918
8918
  return co("div", "正在拼命加载...");
@@ -34899,18 +34899,21 @@ class g2 extends Nc {
34899
34899
  async activeFile(n) {
34900
34900
  await zt();
34901
34901
  const o = n.model, s = n.model.currentFile;
34902
- if (s) {
34903
- if (o.isPageFile(s) && s.raw)
34904
- return;
34905
- const r = await this.service.getFile(s.id, o.toDsl());
34906
- r && (s.dsl = r);
34902
+ if (s?.id !== this.current.value?.id) {
34903
+ if (s) {
34904
+ if (o.isPageFile(s) && s.raw)
34905
+ return;
34906
+ const r = await this.service.getFile(s.id, o.toDsl());
34907
+ if (o.currentFile?.id !== s.id) return;
34908
+ r && (s.dsl = r);
34909
+ }
34910
+ if (s?.dsl) {
34911
+ const r = new aa(s.dsl);
34912
+ await this.updateCurrent(r), await this.initHistory(r);
34913
+ } else
34914
+ this.updateCurrent(null);
34915
+ hn(this.project);
34907
34916
  }
34908
- if (s?.dsl) {
34909
- const r = new aa(s.dsl);
34910
- this.updateCurrent(r), this.initHistory(r);
34911
- } else
34912
- this.updateCurrent(null);
34913
- hn(this.project);
34914
34917
  }
34915
34918
  /**
34916
34919
  * 处理文件变更
@@ -34995,6 +34998,7 @@ class g2 extends Nc {
34995
34998
  async initHistory(n) {
34996
34999
  if (n) {
34997
35000
  const o = await this.service.getHistory(n.id, this.project.value?.toDsl()).catch(() => null);
35001
+ if (this.current.value?.id !== n.id) return;
34998
35002
  this.history.value = new al({
34999
35003
  ...o,
35000
35004
  id: n.id,
@@ -36108,7 +36112,7 @@ const h2 = new hI(), vI = /* @__PURE__ */ z({
36108
36112
  ref_for: !0,
36109
36113
  ref_key: "widgetsRef",
36110
36114
  ref: s,
36111
- key: `${l(c)}_${l(i)}`,
36115
+ key: l(c),
36112
36116
  region: e.region,
36113
36117
  widget: { ...x, props: {} }
36114
36118
  }, null, 8, ["region", "widget"])) : j("", !0)
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, a as r, b as t, c as E, d as n, C as i, D as S, e as _, f as o, E as I, g as T, h as g, i as O, G as l, H as p, j as d, k as V, K as R, M as A, l as M, m as D, N, n as P, O as L, P as m, o as c, R as u, p as K, q as b, r as W, S as Y, s as B, t as G, u as U, v as y, w as C, x as F, y as f, z as k, B as w, F as x, T as H, I as X, J, V as Z, L as h, Q as j, U as q, W as v, X as z, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as ra, a3 as ta, a4 as Ea, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as ga, ad as Oa, ae as la, af as pa, ag as da, ah as Va, ai as Ra, aj as Aa, ak as Ma, al as Da, am as Na, an as Pa, ao as La, ap as ma, aq as ca, ar as ua, as as Ka } from "./index-Cnuenpji.js";
1
+ import { A as e, a as r, b as t, c as E, d as n, C as i, D as S, e as _, f as o, E as I, g as T, h as g, i as O, G as l, H as p, j as d, k as V, K as R, M as A, l as M, m as D, N, n as P, O as L, P as m, o as c, R as u, p as K, q as b, r as W, S as Y, s as B, t as G, u as U, v as y, w as C, x as F, y as f, z as k, B as w, F as x, T as H, I as X, J, V as Z, L as h, Q as j, U as q, W as v, X as z, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as ra, a3 as ta, a4 as Ea, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as ga, ad as Oa, ae as la, af as pa, ag as da, ah as Va, ai as Ra, aj as Aa, ak as Ma, al as Da, am as Na, an as Pa, ao as La, ap as ma, aq as ca, ar as ua, as as Ka } from "./index-BG3Vcy3v.js";
2
2
  export {
3
3
  e as API_METHOD_TYPES,
4
4
  r as ActionMenu,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.19.7",
4
+ "version": "0.19.8",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -29,12 +29,12 @@
29
29
  "marked": "~17.0.1",
30
30
  "mockjs": "~1.1.0",
31
31
  "monaco-editor": "~0.55.0",
32
- "@vtj/core": "~0.19.7",
33
- "@vtj/icons": "~0.19.7",
34
- "@vtj/renderer": "~0.19.7",
35
- "@vtj/uni": "~0.19.7",
36
- "@vtj/utils": "~0.19.7",
37
- "@vtj/ui": "~0.19.7"
32
+ "@vtj/core": "~0.19.8",
33
+ "@vtj/renderer": "~0.19.8",
34
+ "@vtj/ui": "~0.19.8",
35
+ "@vtj/uni": "~0.19.8",
36
+ "@vtj/icons": "~0.19.8",
37
+ "@vtj/utils": "~0.19.8"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/mockjs": "~1.0.10",
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.19.6
5
+ * @version 0.19.8
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.19.6";
8
+ export declare const version = "0.19.8";
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-Cnuenpji.js";
2
- export {
3
- f as default
4
- };