@vtj/designer 0.12.37 → 0.12.38

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-B4rGZarE.js";
2
+ export {
3
+ f as default
4
+ };
@@ -19,10 +19,10 @@ import { editor as Cc } from "monaco-editor";
19
19
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
20
20
  * @name @vtj/designer
21
21
  * @author CHC chenhuachun1549@dingtalk.com
22
- * @version 0.12.37
22
+ * @version 0.12.38
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const jn = "0.12.37", xc = {
25
+ const jn = "0.12.38", xc = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, Ac = {
@@ -2468,7 +2468,7 @@ const _u = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2468
2468
  ]));
2469
2469
  }
2470
2470
  }), Oe = wl({
2471
- loader: () => import("./Editor-BmppC8Mj.js"),
2471
+ loader: () => import("./Editor-CyNe60Cy.js"),
2472
2472
  loadingComponent: B({
2473
2473
  render() {
2474
2474
  return Zt("div", "正在拼命加载...");
@@ -16163,11 +16163,15 @@ class Bg {
16163
16163
  const { model: s, type: a } = e;
16164
16164
  s && await this.allowDrop(s, a) ? (t.preventDefault(), this.dropping.value = e) : this.dropping.value = null;
16165
16165
  }
16166
- onDragStart(t) {
16166
+ async onDragStart(t) {
16167
16167
  const e = this.getHelper(t);
16168
16168
  if (!e) return;
16169
- const { model: s } = e, a = this.engine.assets.componentMap.get(s.name);
16170
- a && this.setDragging(a), this.setDraggingNode(s);
16169
+ const { model: s } = e;
16170
+ let a = this.engine.assets.componentMap.get(s.name);
16171
+ const l = s.from;
16172
+ !a && l && (a = await this.engine.assets.getBlockMaterial(
16173
+ l
16174
+ )), a && this.setDragging(a), this.setDraggingNode(s);
16171
16175
  }
16172
16176
  onDragEnd() {
16173
16177
  this.setDraggingNode(null), this.setDragging(null);
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { f as e, A as E, I as r, q as t, p as i, Q as n, T as S, E as _, k as o, G as I, B as T, l as p, o as l, K as O, M as V, a as g, y as R, N as d, e as A, U as M, P as D, m as P, R as L, g as N, C as u, a5 as b, L as c, F as B, S as W, h as Y, j as m, a7 as K, J as f, i as w, a4 as x, u as y, n as C, V as F, v as G, b as U, d as k, c as H, z as v, t as J, x as X, W as Z, a6 as z, a8 as h, Y as j, Z as q, a0 as Q, X as $, aa, O as sa, $ as ea, a2 as Ea, D as ra, ad as ta, ae as ia, ab as na, af as Sa, a9 as _a, ac as oa, ag as Ia, r as Ta, a3 as pa, s as la, H as Oa, a1 as Va, w as ga } from "./index-Ca2e27vP.js";
1
+ import { f as e, A as E, I as r, q as t, p as i, Q as n, T as S, E as _, k as o, G as I, B as T, l as p, o as l, K as O, M as V, a as g, y as R, N as d, e as A, U as M, P as D, m as P, R as L, g as N, C as u, a5 as b, L as c, F as B, S as W, h as Y, j as m, a7 as K, J as f, i as w, a4 as x, u as y, n as C, V as F, v as G, b as U, d as k, c as H, z as v, t as J, x as X, W as Z, a6 as z, a8 as h, Y as j, Z as q, a0 as Q, X as $, aa, O as sa, $ as ea, a2 as Ea, D as ra, ad as ta, ae as ia, ab as na, af as Sa, a9 as _a, ac as oa, ag as Ia, r as Ta, a3 as pa, s as la, H as Oa, a1 as Va, w as ga } from "./index-B4rGZarE.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.37",
4
+ "version": "0.12.38",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -26,18 +26,18 @@
26
26
  "marked": "~15.0.8",
27
27
  "mockjs": "~1.1.0",
28
28
  "monaco-editor": "~0.52.0",
29
- "@vtj/core": "~0.12.37",
30
- "@vtj/icons": "~0.12.37",
31
- "@vtj/ui": "~0.12.37",
32
- "@vtj/uni": "~0.12.37",
33
- "@vtj/renderer": "~0.12.37",
34
- "@vtj/utils": "~0.12.37"
29
+ "@vtj/core": "~0.12.38",
30
+ "@vtj/icons": "~0.12.38",
31
+ "@vtj/renderer": "~0.12.38",
32
+ "@vtj/ui": "~0.12.38",
33
+ "@vtj/utils": "~0.12.38",
34
+ "@vtj/uni": "~0.12.38"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/mockjs": "~1.0.10",
38
38
  "vue": "~3.5.5",
39
39
  "vue-router": "~4.5.0",
40
- "@vtj/cli": "~0.12.3"
40
+ "@vtj/cli": "~0.12.4"
41
41
  },
42
42
  "files": [
43
43
  "dist",
@@ -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.36
5
+ * @version 0.12.37
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.36";
8
+ export declare const version = "0.12.37";
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-Ca2e27vP.js";
2
- export {
3
- f as default
4
- };