@vtj/designer 0.13.26 → 0.13.27

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-BaMft5iS.js";
2
+ export {
3
+ f as default
4
+ };
@@ -19,10 +19,10 @@ import { editor as Im } 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.13.26
22
+ * @version 0.13.27
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const ls = "0.13.26", Rm = {
25
+ const ls = "0.13.27", Rm = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, Nm = {
@@ -8775,7 +8775,7 @@ const Ew = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8775
8775
  ]));
8776
8776
  }
8777
8777
  }), Xe = sf({
8778
- loader: () => import("./Editor-CDMLuXiC.js"),
8778
+ loader: () => import("./Editor-BWH9VDbK.js"),
8779
8779
  loadingComponent: H({
8780
8780
  render() {
8781
8781
  return eo("div", "正在拼命加载...");
@@ -26783,20 +26783,22 @@ const kx = ["innerHTML"], Sx = /* @__PURE__ */ H({
26783
26783
  inheritAttrs: !1,
26784
26784
  __name: "index",
26785
26785
  setup(e, { expose: t }) {
26786
- const { dialogRef: n, setupDevtools: o, destoryDevtools: r, visible: s } = ww(), a = R(""), l = () => {
26786
+ const { dialogRef: n, setupDevtools: o, destoryDevtools: r, visible: s, engine: a } = ww(), l = R(""), c = () => {
26787
26787
  s.value = !0;
26788
- }, c = (d) => {
26789
- a.value === d ? a.value = "" : a.value = d;
26790
- };
26788
+ }, d = (u) => {
26789
+ l.value === u ? l.value = "" : l.value = u;
26790
+ }, p = N(
26791
+ () => a.options.devtools || "__devtools__/index.html"
26792
+ );
26791
26793
  return t({
26792
26794
  visible: s
26793
- }), (d, p) => (h(), M(ne, null, [
26795
+ }), (u, f) => (h(), M(ne, null, [
26794
26796
  v(i(Re), {
26795
26797
  label: "开发工具",
26796
26798
  mode: "text",
26797
26799
  size: "small",
26798
26800
  icon: i(om),
26799
- onClick: l
26801
+ onClick: c
26800
26802
  }, null, 8, ["icon"]),
26801
26803
  i(s) ? (h(), T(i(Zt), {
26802
26804
  key: 0,
@@ -26804,15 +26806,15 @@ const kx = ["innerHTML"], Sx = /* @__PURE__ */ H({
26804
26806
  ref: n,
26805
26807
  title: "开发工具",
26806
26808
  subtitle: "DevTools",
26807
- class: _e(`v-devtools--${a.value}`),
26808
- src: "__devtools__/index.html",
26809
+ class: _e(`v-devtools--${l.value}`),
26810
+ src: p.value,
26809
26811
  width: "50%",
26810
26812
  height: "60%",
26811
26813
  maximizable: "",
26812
- resizable: !a.value,
26814
+ resizable: !l.value,
26813
26815
  "z-index": 3e3,
26814
26816
  modelValue: i(s),
26815
- "onUpdate:modelValue": p[3] || (p[3] = (u) => to(s) ? s.value = u : null),
26817
+ "onUpdate:modelValue": f[3] || (f[3] = (g) => to(s) ? s.value = g : null),
26816
26818
  modal: !1,
26817
26819
  onOpen: i(o),
26818
26820
  onClose: i(r)
@@ -26823,29 +26825,29 @@ const kx = ["innerHTML"], Sx = /* @__PURE__ */ H({
26823
26825
  mode: "icon",
26824
26826
  type: "primary",
26825
26827
  title: "靠左",
26826
- background: a.value === "left" ? "always" : "hover",
26827
- onClick: p[0] || (p[0] = (u) => c("left"))
26828
+ background: l.value === "left" ? "always" : "hover",
26829
+ onClick: f[0] || (f[0] = (g) => d("left"))
26828
26830
  }, null, 8, ["icon", "background"]),
26829
26831
  v(i(Re), {
26830
26832
  icon: i(rm),
26831
26833
  mode: "icon",
26832
26834
  type: "primary",
26833
26835
  title: "靠底",
26834
- background: a.value === "bottom" ? "always" : "hover",
26835
- onClick: p[1] || (p[1] = (u) => c("bottom"))
26836
+ background: l.value === "bottom" ? "always" : "hover",
26837
+ onClick: f[1] || (f[1] = (g) => d("bottom"))
26836
26838
  }, null, 8, ["icon", "background"]),
26837
26839
  v(i(Re), {
26838
26840
  icon: i(am),
26839
26841
  mode: "icon",
26840
26842
  type: "primary",
26841
26843
  title: "靠右",
26842
- background: a.value === "right" ? "always" : "hover",
26843
- onClick: p[2] || (p[2] = (u) => c("right"))
26844
+ background: l.value === "right" ? "always" : "hover",
26845
+ onClick: f[2] || (f[2] = (g) => d("right"))
26844
26846
  }, null, 8, ["icon", "background"]),
26845
26847
  v(i(ot), { direction: "vertical" })
26846
26848
  ]),
26847
26849
  _: 1
26848
- }, 8, ["class", "resizable", "modelValue", "onOpen", "onClose"])) : j("", !0)
26850
+ }, 8, ["class", "src", "resizable", "modelValue", "onOpen", "onClose"])) : j("", !0)
26849
26851
  ], 64));
26850
26852
  }
26851
26853
  }), Ve = {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, x as E, L as t, p as r, o as i, D as n, U as S, E as _, j as T, I as o, z as I, G as O, H as l, k as V, n as g, K as p, g as d, M as R, a as A, N as D, e as P, X as M, P as N, l as L, R as K, B as u, a7 as Y, Q as b, F as c, S as B, f as W, i as m, a9 as G, O as f, h as w, a6 as x, t as y, Y as F, m as H, V as U, v as k, b as C, d as X, c as J, y as Z, q as h, u as j, W as v, a8 as z, aa as q, $ as Q, a0 as $, a2 as aa, Z as sa, ad as ea, T as Ea, a1 as ta, a4 as ra, C as ia, ag as na, ah as Sa, ac as _a, ae as Ta, ai as oa, ab as Ia, af as Oa, aj as la, r as Va, a5 as ga, s as pa, J as da, a3 as Ra, w as Aa } from "./index-C-YTrhCA.js";
1
+ import { A as e, x as E, L as t, p as r, o as i, D as n, U as S, E as _, j as T, I as o, z as I, G as O, H as l, k as V, n as g, K as p, g as d, M as R, a as A, N as D, e as P, X as M, P as N, l as L, R as K, B as u, a7 as Y, Q as b, F as c, S as B, f as W, i as m, a9 as G, O as f, h as w, a6 as x, t as y, Y as F, m as H, V as U, v as k, b as C, d as X, c as J, y as Z, q as h, u as j, W as v, a8 as z, aa as q, $ as Q, a0 as $, a2 as aa, Z as sa, ad as ea, T as Ea, a1 as ta, a4 as ra, C as ia, ag as na, ah as Sa, ac as _a, ae as Ta, ai as oa, ab as Ia, af as Oa, aj as la, r as Va, a5 as ga, s as pa, J as da, a3 as Ra, w as Aa } from "./index-BaMft5iS.js";
2
2
  export {
3
3
  e as API_METHOD_TYPES,
4
4
  E as ActionMenu,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.13.26",
4
+ "version": "0.13.27",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -29,12 +29,12 @@
29
29
  "marked": "~15.0.8",
30
30
  "mockjs": "~1.1.0",
31
31
  "monaco-editor": "~0.52.0",
32
- "@vtj/renderer": "~0.13.26",
33
- "@vtj/core": "~0.13.26",
34
- "@vtj/icons": "~0.13.26",
35
- "@vtj/uni": "~0.13.26",
36
- "@vtj/utils": "~0.13.26",
37
- "@vtj/ui": "~0.13.26"
32
+ "@vtj/icons": "~0.13.27",
33
+ "@vtj/core": "~0.13.27",
34
+ "@vtj/uni": "~0.13.27",
35
+ "@vtj/ui": "~0.13.27",
36
+ "@vtj/utils": "~0.13.27",
37
+ "@vtj/renderer": "~0.13.27"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/mockjs": "~1.0.10",
@@ -84,6 +84,10 @@ export interface EngineOptions {
84
84
  * 关闭页面内嵌到母版功能
85
85
  */
86
86
  noMask?: boolean;
87
+ /**
88
+ * 开发工具路径
89
+ */
90
+ devtools?: string;
87
91
  }
88
92
  export declare const SAVE_BLOCK_FILE_FINISH = "SAVE_BLOCK_FILE_FINISH";
89
93
  /**
@@ -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.13.25
5
+ * @version 0.13.26
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.13.25";
8
+ export declare const version = "0.13.26";
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-C-YTrhCA.js";
2
- export {
3
- f as default
4
- };