@vtj/designer 0.16.27 → 0.16.29
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var up = Object.defineProperty;
|
|
2
2
|
var dp = (e, t, n) => t in e ? up(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var fe = (e, t, n) => dp(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { computed as V, unref as i, ref as R, watch as ae, reactive as an, shallowRef as bt, shallowReadonly as pp, onMounted as ao, nextTick as
|
|
4
|
+
import { computed as V, unref as i, ref as R, watch as ae, reactive as an, shallowRef as bt, shallowReadonly as pp, onMounted as ao, nextTick as Bt, toValue as Mt, getCurrentScope as Gi, onScopeDispose as fp, getCurrentInstance as ms, toRef as gp, readonly as Zr, customRef as mp, hasInjectionContext as Ki, inject as hs, watchEffect as hp, toRaw as Na, onUnmounted as Tr, defineComponent as H, openBlock as h, createElementBlock as j, normalizeClass as _e, toDisplayString as re, createVNode as v, withCtx as w, createElementVNode as N, createBlock as T, createCommentVNode as U, createTextVNode as X, withModifiers as He, mergeProps as ut, h as eo, Fragment as ee, renderList as pe, defineAsyncComponent as vp, normalizeStyle as Kn, resolveDynamicComponent as Wi, createSlots as Va, renderSlot as Jt, withDirectives as Kt, vShow as Mn, normalizeProps as Pa, guardReactiveProps as Ma, isRef as to, provide as bp, createApp as ja, withKeys as Et, markRaw as fr, shallowReactive as yp, triggerRef as zn, KeepAlive as qi } from "vue";
|
|
5
5
|
import { ElMessage as St, ElNotification as La, ElMessageBox as rn, ElLoading as Qi, ElButton as he, ElDivider as st, ElInput as et, ElRadioGroup as Yi, ElRadioButton as nr, ElButtonGroup as _p, ElSwitch as gr, ElImage as Go, ElUpload as Ko, ElTag as vs, ElDropdown as ua, ElDropdownMenu as da, ElDropdownItem as yo, ElEmpty as rt, ElAlert as no, ElTooltip as Xi, ElTree as Ua, ElCollapse as bs, ElCollapseItem as ys, ElRow as es, ElCol as ts, ElCheckbox as jo, ElDrawer as Ba, ElForm as Ot, ElSelect as $a, ElOptionGroup as pa, ElOption as ns, ElFormItem as Ft, ElBreadcrumb as wp, ElBreadcrumbItem as Ep, ElBadge as kp, ElAvatar as _s, vLoading as za, ElLink as Zi, ElSegmented as Sp, ElText as xp, ElDialog as Cp, ElSteps as Ap, ElStep as Us, ElInputNumber as Tp, ElColorPicker as Op, ElSlider as Ip, ElTour as Rp, ElTourStep as Fn, ElConfigProvider as Dp, ElContainer as Ml, ElHeader as Np, ElAside as jl, ElMain as Vp, ElFooter as Pp } from "element-plus";
|
|
6
6
|
import Mp from "element-plus/es/locale/lang/zh-cn";
|
|
7
7
|
import { XDialogForm as Wt, XField as Y, XIcon as zt, createDialog as ec, XDialog as Xt, XPanel as ws, XAction as Ne, XTabs as Es, XContainer as Ie, XForm as Fa, XAttachment as jp, XGrid as Ha, XActionBar as tc, XInputUnit as nc, vResizable as Ll } from "@vtj/ui";
|
|
@@ -19,10 +19,10 @@ import { editor as zm } 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.16.
|
|
22
|
+
* @version 0.16.29
|
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
24
24
|
*/
|
|
25
|
-
const vr = "0.16.
|
|
25
|
+
const vr = "0.16.29", Fm = {
|
|
26
26
|
width: 390,
|
|
27
27
|
height: 844
|
|
28
28
|
}, Hm = {
|
|
@@ -220,7 +220,7 @@ function rh() {
|
|
|
220
220
|
searchResult: f
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function jt() {
|
|
224
224
|
const e = Le(), t = V(() => e.current.value), n = V(() => e.simulator.renderer?.context ?? null), o = V(() => e.isEmptyCurrent.value);
|
|
225
225
|
return {
|
|
226
226
|
engine: e,
|
|
@@ -317,7 +317,7 @@ function gh(e, t, n = {}) {
|
|
|
317
317
|
}
|
|
318
318
|
const mh = gh;
|
|
319
319
|
function ol(e, t = !0, n) {
|
|
320
|
-
ph() ? ao(e, n) : t ? e() :
|
|
320
|
+
ph() ? ao(e, n) : t ? e() : Bt(e);
|
|
321
321
|
}
|
|
322
322
|
function hh(e, t, n = {}) {
|
|
323
323
|
const { immediate: o = !0, immediateCallback: s = !1 } = n, r = bt(!1);
|
|
@@ -664,7 +664,7 @@ function Oh(e, t, n, o = {}) {
|
|
|
664
664
|
} catch (Q) {
|
|
665
665
|
g(Q);
|
|
666
666
|
} finally {
|
|
667
|
-
F ?
|
|
667
|
+
F ? Bt(A) : A();
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
}
|
|
@@ -826,7 +826,7 @@ function Vh(e, t, n, o = {}) {
|
|
|
826
826
|
const C = R(y());
|
|
827
827
|
let O = !1;
|
|
828
828
|
return ae(() => e[t], (k) => {
|
|
829
|
-
O || (O = !0, C.value = b(k),
|
|
829
|
+
O || (O = !0, C.value = b(k), Bt(() => O = !1));
|
|
830
830
|
}), ae(C, (k) => {
|
|
831
831
|
!O && (k !== e[t] || d) && _(k);
|
|
832
832
|
}, { deep: d }), C;
|
|
@@ -1715,7 +1715,7 @@ function tv(e) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
}), t;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function $t(e, t, n = !1) {
|
|
1719
1719
|
let o = !0;
|
|
1720
1720
|
const s = tv(t);
|
|
1721
1721
|
try {
|
|
@@ -8381,7 +8381,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8381
8381
|
link: {}
|
|
8382
8382
|
},
|
|
8383
8383
|
setup(e) {
|
|
8384
|
-
const { engine: t } =
|
|
8384
|
+
const { engine: t } = jt(), n = e, o = V(() => n.icon || t.project.value?.config?.logo || Bw), s = () => {
|
|
8385
8385
|
n.link && (location.href = n.link);
|
|
8386
8386
|
};
|
|
8387
8387
|
return (r, a) => (h(), j("div", {
|
|
@@ -8408,7 +8408,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8408
8408
|
__name: "index",
|
|
8409
8409
|
emits: ["click"],
|
|
8410
8410
|
setup(e, { emit: t }) {
|
|
8411
|
-
const n = t, { engine: o } =
|
|
8411
|
+
const n = t, { engine: o } = jt(), s = V(() => o.project.value?.config?.title || o.project.value?.name), r = V(() => o.project.value?.currentFile?.title), a = () => {
|
|
8412
8412
|
n("click", o.project.value);
|
|
8413
8413
|
};
|
|
8414
8414
|
return (l, c) => (h(), j("div", Gw, [
|
|
@@ -8460,12 +8460,12 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8460
8460
|
}, null, 8, ["modelValue"])
|
|
8461
8461
|
]));
|
|
8462
8462
|
}
|
|
8463
|
-
}),
|
|
8463
|
+
}), Lt = (e, t) => {
|
|
8464
8464
|
const n = e.__vccOpts || e;
|
|
8465
8465
|
for (const [o, s] of t)
|
|
8466
8466
|
n[o] = s;
|
|
8467
8467
|
return n;
|
|
8468
|
-
}, Yw = /* @__PURE__ */
|
|
8468
|
+
}, Yw = /* @__PURE__ */ Lt(Qw, [["__scopeId", "data-v-3f069bbf"]]), Xw = { class: "v-toolbar-widget" }, Zw = /* @__PURE__ */ H({
|
|
8469
8469
|
name: "ToolbarWidget",
|
|
8470
8470
|
inheritAttrs: !1,
|
|
8471
8471
|
__name: "index",
|
|
@@ -8773,7 +8773,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8773
8773
|
_: 1
|
|
8774
8774
|
}, 8, ["icon", "model"]));
|
|
8775
8775
|
}
|
|
8776
|
-
}), n0 = /* @__PURE__ */
|
|
8776
|
+
}), n0 = /* @__PURE__ */ Lt(t0, [["__scopeId", "data-v-91a1801a"]]), o0 = { class: "x-coder-result" }, r0 = ["href"], s0 = /* @__PURE__ */ H({
|
|
8777
8777
|
__name: "coder",
|
|
8778
8778
|
props: {
|
|
8779
8779
|
link: {}
|
|
@@ -8972,7 +8972,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8972
8972
|
_: 1
|
|
8973
8973
|
}, 8, ["modelValue", "icon", "model"])) : U("", !0);
|
|
8974
8974
|
}
|
|
8975
|
-
}), i0 = /* @__PURE__ */
|
|
8975
|
+
}), i0 = /* @__PURE__ */ Lt(l0, [["__scopeId", "data-v-8cf99775"]]), c0 = { class: "v-actions-widget" }, u0 = /* @__PURE__ */ H({
|
|
8976
8976
|
name: "ActionsWidget",
|
|
8977
8977
|
inheritAttrs: !1,
|
|
8978
8978
|
__name: "index",
|
|
@@ -9361,7 +9361,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
9361
9361
|
]));
|
|
9362
9362
|
}
|
|
9363
9363
|
}), Ze = vp({
|
|
9364
|
-
loader: () => import("./Editor-
|
|
9364
|
+
loader: () => import("./Editor-w-B0HwIS.js"),
|
|
9365
9365
|
loadingComponent: H({
|
|
9366
9366
|
render() {
|
|
9367
9367
|
return eo("div", "正在拼命加载...");
|
|
@@ -10336,7 +10336,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10336
10336
|
])
|
|
10337
10337
|
]));
|
|
10338
10338
|
}
|
|
10339
|
-
}), T0 = /* @__PURE__ */
|
|
10339
|
+
}), T0 = /* @__PURE__ */ Lt(A0, [["__scopeId", "data-v-2eb4f0f1"]]), vl = /* @__PURE__ */ H({
|
|
10340
10340
|
__name: "binder",
|
|
10341
10341
|
props: {
|
|
10342
10342
|
title: {},
|
|
@@ -10774,7 +10774,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10774
10774
|
name: "PagesWidget",
|
|
10775
10775
|
__name: "index",
|
|
10776
10776
|
setup(e) {
|
|
10777
|
-
const { project: t, engine: n } = hn(), o = V(() => t.value?.pages || []), { current: s } =
|
|
10777
|
+
const { project: t, engine: n } = hn(), o = V(() => t.value?.pages || []), { current: s } = jt(), r = R(!1), a = R(), l = R(), { chunkedData: c, isFullyLoaded: d, loadedCount: f, reset: u } = Uw(
|
|
10778
10778
|
o,
|
|
10779
10779
|
{ chunkSize: 50 }
|
|
10780
10780
|
), p = V(() => `(共 ${o.value.length} 项)`), g = V(() => {
|
|
@@ -10871,7 +10871,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
10871
10871
|
_: 1
|
|
10872
10872
|
}, 8, ["subtitle"]));
|
|
10873
10873
|
}
|
|
10874
|
-
}), V0 = /* @__PURE__ */
|
|
10874
|
+
}), V0 = /* @__PURE__ */ Lt(N0, [["__scopeId", "data-v-317dbfeb"]]), P0 = { class: "v-file-setter" }, bl = /* @__PURE__ */ H({
|
|
10875
10875
|
name: "FileSetter",
|
|
10876
10876
|
__name: "file",
|
|
10877
10877
|
props: {
|
|
@@ -11030,7 +11030,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
11030
11030
|
label: "插件",
|
|
11031
11031
|
type: "danger"
|
|
11032
11032
|
}
|
|
11033
|
-
}, p = R(void 0), { current: g } =
|
|
11033
|
+
}, p = R(void 0), { current: g } = jt(), m = R(!1), b = V(() => p.value?.id ? "编辑区块" : "新增区块"), y = V(() => `(共 ${n.value.length} 个)`), _ = () => ({
|
|
11034
11034
|
fromType: "Schema",
|
|
11035
11035
|
name: "",
|
|
11036
11036
|
title: "",
|
|
@@ -11332,7 +11332,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
11332
11332
|
name: "OutlineWidget",
|
|
11333
11333
|
__name: "index",
|
|
11334
11334
|
setup(e) {
|
|
11335
|
-
const { engine: t, designer: n, selected: o } = mn(), { current: s } =
|
|
11335
|
+
const { engine: t, designer: n, selected: o } = mn(), { current: s } = jt(), r = R([]), a = (E, x) => {
|
|
11336
11336
|
if (x === "slot") return [];
|
|
11337
11337
|
if (it(E))
|
|
11338
11338
|
return E.locked ? ["unlock"] : ["lock"];
|
|
@@ -11381,7 +11381,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
11381
11381
|
}
|
|
11382
11382
|
];
|
|
11383
11383
|
}, f = async () => {
|
|
11384
|
-
r.value = d(), o.value?.model && (await
|
|
11384
|
+
r.value = d(), o.value?.model && (await Bt(), n.value?.setSelected(o.value.model));
|
|
11385
11385
|
}, u = V(() => o.value?.model.id), p = async (E) => {
|
|
11386
11386
|
const x = E.data;
|
|
11387
11387
|
if (x.type === "slot" || it(x.model) || x.model.locked || x.model.name === "template")
|
|
@@ -16825,7 +16825,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
16825
16825
|
_: 1
|
|
16826
16826
|
}));
|
|
16827
16827
|
}
|
|
16828
|
-
}), tk = /* @__PURE__ */
|
|
16828
|
+
}), tk = /* @__PURE__ */ Lt(ek, [["__scopeId", "data-v-7e5243a6"]]), nk = /* @__PURE__ */ H({
|
|
16829
16829
|
name: "HistoryWidget",
|
|
16830
16830
|
__name: "index",
|
|
16831
16831
|
setup(e, { expose: t }) {
|
|
@@ -17006,7 +17006,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
17006
17006
|
_: 1
|
|
17007
17007
|
}, 8, ["subtitle", "remove"]));
|
|
17008
17008
|
}
|
|
17009
|
-
}), ok = /* @__PURE__ */
|
|
17009
|
+
}), ok = /* @__PURE__ */ Lt(nk, [["__scopeId", "data-v-8f53a4a3"]]), rk = /* @__PURE__ */ H({
|
|
17010
17010
|
__name: "base-info",
|
|
17011
17011
|
props: {
|
|
17012
17012
|
categories: {}
|
|
@@ -17277,7 +17277,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
17277
17277
|
}
|
|
17278
17278
|
), ae(s, async () => {
|
|
17279
17279
|
a.value?.formRef.validate(async (k) => {
|
|
17280
|
-
k || (await
|
|
17280
|
+
k || (await Bt(), s.value = "base");
|
|
17281
17281
|
});
|
|
17282
17282
|
});
|
|
17283
17283
|
const b = () => {
|
|
@@ -17287,7 +17287,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
17287
17287
|
}, _ = async (k) => n.project?.existApiName(
|
|
17288
17288
|
l.value.name,
|
|
17289
17289
|
n.model ? [l.value.id] : []
|
|
17290
|
-
) ? (ze(`API名称 [ ${l.value.name} ] 已存在`), !1) : l.value.headers &&
|
|
17290
|
+
) ? (ze(`API名称 [ ${l.value.name} ] 已存在`), !1) : l.value.headers && !$t(l.value.headers, window) || l.value.mockTemplate && !$t(l.value.mockTemplate, window) ? !1 : (n.project?.setApi(l.value), r.value?.close(), !0), C = () => {
|
|
17291
17291
|
if (l.value.mockTemplate) {
|
|
17292
17292
|
const k = Lo(
|
|
17293
17293
|
l.value.mockTemplate,
|
|
@@ -17768,7 +17768,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
17768
17768
|
_: 1
|
|
17769
17769
|
}));
|
|
17770
17770
|
}
|
|
17771
|
-
}), fk = /* @__PURE__ */
|
|
17771
|
+
}), fk = /* @__PURE__ */ Lt(pk, [["__scopeId", "data-v-4a3568a5"]]), gk = /* @__PURE__ */ H({
|
|
17772
17772
|
name: "DepsWidget",
|
|
17773
17773
|
__name: "index",
|
|
17774
17774
|
setup(e) {
|
|
@@ -17967,7 +17967,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
17967
17967
|
inheritAttrs: !1,
|
|
17968
17968
|
__name: "index",
|
|
17969
17969
|
setup(e, { expose: t }) {
|
|
17970
|
-
const n = R(), o = R(), s = R(), { width: r, height: a } = Bo(n), { dependencies: l, engine: c, apis: d, meta: f } = Tc(), { current: u, isEmpty: p } =
|
|
17970
|
+
const n = R(), o = R(), s = R(), { width: r, height: a } = Bo(n), { dependencies: l, engine: c, apis: d, meta: f } = Tc(), { current: u, isEmpty: p } = jt(), g = V(() => c.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), m = V(() => c.skeleton?.getWidget("Toolbar")?.widgetRef.customSize), b = V(() => c.project.value?.config || {}), y = V(() => c.project.value?.uniConfig || {}), _ = V(() => c.project.value?.globals || {}), C = V(() => c.project.value?.i18n || {}), { designer: O, hover: k, dropping: A, selected: E, lines: x } = Wh(
|
|
17971
17971
|
o,
|
|
17972
17972
|
l,
|
|
17973
17973
|
d,
|
|
@@ -18208,7 +18208,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18208
18208
|
type: "JSExpression",
|
|
18209
18209
|
value: d
|
|
18210
18210
|
};
|
|
18211
|
-
return
|
|
18211
|
+
return $t(f, t.context, !0) ? (t.current?.setState(c, f), !0) : !1;
|
|
18212
18212
|
};
|
|
18213
18213
|
return (a, l) => (h(), T(Rr, {
|
|
18214
18214
|
title: "状态数据",
|
|
@@ -18240,7 +18240,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18240
18240
|
type: "JSFunction",
|
|
18241
18241
|
value: d
|
|
18242
18242
|
};
|
|
18243
|
-
return
|
|
18243
|
+
return $t(f, t.context, !0) ? (t.current?.setFunction("computed", c, f), !0) : !1;
|
|
18244
18244
|
};
|
|
18245
18245
|
return (a, l) => (h(), T(Rr, {
|
|
18246
18246
|
title: "计算属性",
|
|
@@ -18272,7 +18272,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18272
18272
|
type: "JSFunction",
|
|
18273
18273
|
value: d
|
|
18274
18274
|
};
|
|
18275
|
-
return
|
|
18275
|
+
return $t(f, t.context, !0) ? (t.current?.setFunction("methods", c, f), !0) : !1;
|
|
18276
18276
|
};
|
|
18277
18277
|
return (a, l) => (h(), T(Rr, {
|
|
18278
18278
|
title: "组件方法",
|
|
@@ -18310,7 +18310,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18310
18310
|
type: "JSFunction",
|
|
18311
18311
|
value: u
|
|
18312
18312
|
};
|
|
18313
|
-
return
|
|
18313
|
+
return $t(p, n.context, !0) ? (n.current?.setFunction("lifeCycles", f, p), !0) : !1;
|
|
18314
18314
|
};
|
|
18315
18315
|
return (c, d) => (h(), T(Rr, {
|
|
18316
18316
|
title: "生命周期",
|
|
@@ -18377,7 +18377,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18377
18377
|
type: "JSFunction",
|
|
18378
18378
|
value: l.handler
|
|
18379
18379
|
};
|
|
18380
|
-
if (
|
|
18380
|
+
if (!$t(d, t.context, !0) || !$t(f, t.context, !0))
|
|
18381
18381
|
return !1;
|
|
18382
18382
|
const u = {
|
|
18383
18383
|
...l,
|
|
@@ -18453,7 +18453,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18453
18453
|
}), Sk = /* @__PURE__ */ H({
|
|
18454
18454
|
__name: "index",
|
|
18455
18455
|
setup(e) {
|
|
18456
|
-
const { current: t, context: n } =
|
|
18456
|
+
const { current: t, context: n } = jt();
|
|
18457
18457
|
return (o, s) => (h(), T(i(Ie), {
|
|
18458
18458
|
class: "v-scripts-widget",
|
|
18459
18459
|
direction: "column",
|
|
@@ -18539,7 +18539,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18539
18539
|
name: "PropertiesWidget",
|
|
18540
18540
|
__name: "index",
|
|
18541
18541
|
setup(e) {
|
|
18542
|
-
const { current: t, context: n } =
|
|
18542
|
+
const { current: t, context: n } = jt(), { selected: o } = mn(), {
|
|
18543
18543
|
node: s,
|
|
18544
18544
|
commonProps: r,
|
|
18545
18545
|
change: a,
|
|
@@ -18687,7 +18687,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18687
18687
|
...t.event,
|
|
18688
18688
|
modifiers: Object.keys(t.event?.modifiers || {}),
|
|
18689
18689
|
handler: {
|
|
18690
|
-
type: "
|
|
18690
|
+
type: "JSExpression",
|
|
18691
18691
|
value: t.event?.handler?.value || "() => {}"
|
|
18692
18692
|
}
|
|
18693
18693
|
}), r = qm.map((l) => ({
|
|
@@ -18714,7 +18714,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18714
18714
|
v(i(Y), {
|
|
18715
18715
|
class: "v-binder__editor",
|
|
18716
18716
|
name: "handler.value",
|
|
18717
|
-
label: "事件处理函数 [
|
|
18717
|
+
label: "事件处理函数 [ JSExpression ]",
|
|
18718
18718
|
required: ""
|
|
18719
18719
|
}, {
|
|
18720
18720
|
editor: w(() => [
|
|
@@ -18737,7 +18737,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18737
18737
|
name: "EventsWidget",
|
|
18738
18738
|
__name: "index",
|
|
18739
18739
|
setup(e) {
|
|
18740
|
-
const { current: t, context: n } =
|
|
18740
|
+
const { current: t, context: n } = jt(), { selected: o } = mn(), { mouseEventList: s, keyboardEventList: r, componentEventList: a } = rv(o), l = R({
|
|
18741
18741
|
name: "",
|
|
18742
18742
|
event: void 0
|
|
18743
18743
|
}), c = R(!1), d = (m) => {
|
|
@@ -18747,7 +18747,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18747
18747
|
...m,
|
|
18748
18748
|
modifiers: m.modifiers.reduce((_, C) => (_[C] = !0, _), {})
|
|
18749
18749
|
};
|
|
18750
|
-
return
|
|
18750
|
+
return (o.value?.model).setEvent(b), !0;
|
|
18751
18751
|
}, u = async (m) => {
|
|
18752
18752
|
const b = o.value?.model;
|
|
18753
18753
|
m.name && (b.removeEvent(m.name), c.value = !1);
|
|
@@ -18851,7 +18851,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18851
18851
|
name: "CssWidget",
|
|
18852
18852
|
__name: "index",
|
|
18853
18853
|
setup(e) {
|
|
18854
|
-
const { current: t } =
|
|
18854
|
+
const { current: t } = jt(), n = R(), o = V(() => t.value?.css || ""), s = (a) => {
|
|
18855
18855
|
t.value?.setCss(a);
|
|
18856
18856
|
}, r = () => {
|
|
18857
18857
|
const l = (n.value?.getEditor()).getValue();
|
|
@@ -18883,7 +18883,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
18883
18883
|
name: "DirectivesWidget",
|
|
18884
18884
|
__name: "index",
|
|
18885
18885
|
setup(e) {
|
|
18886
|
-
const { current: t, context: n } =
|
|
18886
|
+
const { current: t, context: n } = jt(), { selected: o } = mn(), {
|
|
18887
18887
|
vIf: s,
|
|
18888
18888
|
vElseIf: r,
|
|
18889
18889
|
vElse: a,
|
|
@@ -19196,7 +19196,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
19196
19196
|
value: a
|
|
19197
19197
|
})), r = async (a) => {
|
|
19198
19198
|
const l = a.default;
|
|
19199
|
-
return l &&
|
|
19199
|
+
return l && !$t(l, t.context, !0) ? !1 : (t.current.setProp(a), !0);
|
|
19200
19200
|
};
|
|
19201
19201
|
return (a, l) => (h(), T(i(Wt), {
|
|
19202
19202
|
title: n.value,
|
|
@@ -19374,7 +19374,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
19374
19374
|
)
|
|
19375
19375
|
), s = async (r) => {
|
|
19376
19376
|
const a = r.default;
|
|
19377
|
-
return a && (a.value = a.value || "null",
|
|
19377
|
+
return a && (a.value = a.value || "null", !$t(a, t.context, !0)) ? !1 : (t.current.setInject(r), !0);
|
|
19378
19378
|
};
|
|
19379
19379
|
return (r, a) => (h(), T(i(Wt), {
|
|
19380
19380
|
title: n.value,
|
|
@@ -19479,7 +19479,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
19479
19479
|
name: "DefinedWidget",
|
|
19480
19480
|
__name: "index",
|
|
19481
19481
|
setup(e) {
|
|
19482
|
-
const { current: t, context: n } =
|
|
19482
|
+
const { current: t, context: n } = jt(), o = V(() => (t.value?.props || []).map((F) => typeof F == "string" ? { name: F } : F)), s = V(() => (t.value?.emits || []).map((F) => typeof F == "string" ? { name: F, params: [] } : Object.assign({ params: [] }, F))), r = V(() => (t.value?.slots || []).map((F) => typeof F == "string" ? { name: F, params: [] } : Object.assign({ params: [] }, F))), a = V(() => t.value?.inject || []), l = V(() => {
|
|
19483
19483
|
const F = {};
|
|
19484
19484
|
if (!t.value) return F;
|
|
19485
19485
|
F.状态 = ["state"];
|
|
@@ -19752,12 +19752,12 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
19752
19752
|
if (!t.item && t.current.dataSources[x])
|
|
19753
19753
|
return ze(`名称【${x}】已经存在,请更换名称`), !1;
|
|
19754
19754
|
if (A?.value) {
|
|
19755
|
-
if (
|
|
19755
|
+
if (!$t(A, t.context, !0))
|
|
19756
19756
|
return !1;
|
|
19757
19757
|
} else
|
|
19758
19758
|
k.transform = void 0;
|
|
19759
19759
|
if (E?.value) {
|
|
19760
|
-
if (
|
|
19760
|
+
if (!$t(E, t.context, !0))
|
|
19761
19761
|
return !1;
|
|
19762
19762
|
} else
|
|
19763
19763
|
k.test = void 0;
|
|
@@ -19772,7 +19772,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
19772
19772
|
ze("请先填写测试用例");
|
|
19773
19773
|
return;
|
|
19774
19774
|
}
|
|
19775
|
-
if (
|
|
19775
|
+
if (!$t(c.value.test, t.context, !0))
|
|
19776
19776
|
return;
|
|
19777
19777
|
const A = async (...S) => {
|
|
19778
19778
|
if (c.value.type === "mock") {
|
|
@@ -19939,7 +19939,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
19939
19939
|
name: "DataSourcesWidget",
|
|
19940
19940
|
__name: "index",
|
|
19941
19941
|
setup(e) {
|
|
19942
|
-
const { current: t, context: n } =
|
|
19942
|
+
const { current: t, context: n } = jt(), o = R(!1), s = R(), r = V(() => Object.values(t.value?.dataSources || {}).filter(
|
|
19943
19943
|
(f) => ["meta", "api", "mock"].includes(f.type)
|
|
19944
19944
|
)), a = (f) => ({
|
|
19945
19945
|
api: "primary",
|
|
@@ -21634,7 +21634,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
21634
21634
|
path: { type: Function }
|
|
21635
21635
|
},
|
|
21636
21636
|
setup(e, { expose: t }) {
|
|
21637
|
-
const n = e, o = R(), s = R(Symbol()), { current: r, engine: a } =
|
|
21637
|
+
const n = e, o = R(), s = R(Symbol()), { current: r, engine: a } = jt(), { width: l, height: c } = Bo(o), d = V(() => r.value && n.path ? n.path(r.value, a.project.value) : null), f = V(() => a.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), u = V(() => a.skeleton?.getWidget("Toolbar")?.widgetRef.customSize);
|
|
21638
21638
|
return t({
|
|
21639
21639
|
refresh: () => {
|
|
21640
21640
|
s.value = Symbol();
|
|
@@ -21696,7 +21696,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
21696
21696
|
name: "SchemaWidget",
|
|
21697
21697
|
__name: "index",
|
|
21698
21698
|
setup(e) {
|
|
21699
|
-
const { current: t } =
|
|
21699
|
+
const { current: t } = jt(), n = R(), o = V(
|
|
21700
21700
|
() => JSON.stringify(t.value?.toDsl() || {}, null, 2)
|
|
21701
21701
|
), s = V(() => t.value ? t.value.name : ""), r = async () => {
|
|
21702
21702
|
const l = (n.value?.getEditor()).getValue();
|
|
@@ -21744,7 +21744,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
21744
21744
|
name: "RawWidget",
|
|
21745
21745
|
__name: "index",
|
|
21746
21746
|
setup(e) {
|
|
21747
|
-
const { current: t, engine: n } =
|
|
21747
|
+
const { current: t, engine: n } = jt(), o = R(), s = R(""), r = V(() => t.value ? `$vtj/vue/${t.value.id}.vue` : ""), a = V(() => t.value ? t.value.name : ""), l = async () => {
|
|
21748
21748
|
const d = (o.value?.getEditor()).getValue();
|
|
21749
21749
|
if (d) {
|
|
21750
21750
|
const f = await Tn(
|
|
@@ -22100,7 +22100,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
22100
22100
|
type: "JSFunction",
|
|
22101
22101
|
value: p
|
|
22102
22102
|
};
|
|
22103
|
-
|
|
22103
|
+
$t(g, {}) && (s.value = p, l("change", g), r.value = !1);
|
|
22104
22104
|
}
|
|
22105
22105
|
}, d = () => {
|
|
22106
22106
|
s.value = "", l("change", void 0), r.value = !1;
|
|
@@ -22531,7 +22531,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
22531
22531
|
[i(za), i(d)]
|
|
22532
22532
|
]);
|
|
22533
22533
|
}
|
|
22534
|
-
}), mx = /* @__PURE__ */
|
|
22534
|
+
}), mx = /* @__PURE__ */ Lt(gx, [["__scopeId", "data-v-146ae3c1"]]), hx = /* @__PURE__ */ H({
|
|
22535
22535
|
__name: "index",
|
|
22536
22536
|
setup(e) {
|
|
22537
22537
|
const t = Le(), { access: n } = t || {}, o = V(() => {
|
|
@@ -22550,7 +22550,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
22550
22550
|
size: 20
|
|
22551
22551
|
}, null, 8, ["icon"]));
|
|
22552
22552
|
}
|
|
22553
|
-
}), vx = /* @__PURE__ */
|
|
22553
|
+
}), vx = /* @__PURE__ */ Lt(hx, [["__scopeId", "data-v-03f3833f"]]), bx = { class: "v-ai-widget-record" }, yx = {
|
|
22554
22554
|
key: 0,
|
|
22555
22555
|
class: "v-ai-widget-record__list"
|
|
22556
22556
|
}, _x = /* @__PURE__ */ H({
|
|
@@ -22664,7 +22664,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
22664
22664
|
_: 1
|
|
22665
22665
|
}, 8, ["title", "model"]));
|
|
22666
22666
|
}
|
|
22667
|
-
}), Ex = /* @__PURE__ */
|
|
22667
|
+
}), Ex = /* @__PURE__ */ Lt(wx, [["__scopeId", "data-v-8fd3ad4c"]]), kx = { class: "v-ai-widget-input" }, Sx = { class: "v-ai-widget-input__footer" }, xx = { class: "v-ai-widget-input__llm-item" }, Cx = { class: "label" }, Ax = { class: "actions" }, jd = /* @__PURE__ */ H({
|
|
22668
22668
|
__name: "chat-input",
|
|
22669
22669
|
props: {
|
|
22670
22670
|
minRows: { default: 2 },
|
|
@@ -22858,7 +22858,7 @@ const ji = /* @__PURE__ */ Vd(R1, [["render", P1]]), M1 = ["theme"], j1 = {
|
|
|
22858
22858
|
src: o.value
|
|
22859
22859
|
}, null, 8, ["icon", "src"]));
|
|
22860
22860
|
}
|
|
22861
|
-
}), Ox = /* @__PURE__ */
|
|
22861
|
+
}), Ox = /* @__PURE__ */ Lt(Tx, [["__scopeId", "data-v-8432885d"]]);
|
|
22862
22862
|
function Ix(e) {
|
|
22863
22863
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
22864
22864
|
}
|
|
@@ -23566,9 +23566,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, We = ve), Pe
|
|
|
23566
23566
|
let me = Oe.keywordPatternRe.exec(qe), De = "";
|
|
23567
23567
|
for (; me; ) {
|
|
23568
23568
|
De += qe.substring(le, me.index);
|
|
23569
|
-
const Fe = wn.case_insensitive ? me[0].toLowerCase() : me[0],
|
|
23570
|
-
if (
|
|
23571
|
-
const [Rn, ip] =
|
|
23569
|
+
const Fe = wn.case_insensitive ? me[0].toLowerCase() : me[0], Ut = sn(Oe, Fe);
|
|
23570
|
+
if (Ut) {
|
|
23571
|
+
const [Rn, ip] = Ut;
|
|
23572
23572
|
if (Dt.addText(De), De = "", At[Fe] = (At[Fe] || 0) + 1, At[Fe] <= Jd && (jr += ip), Rn.startsWith("_"))
|
|
23573
23573
|
De += me[0];
|
|
23574
23574
|
else {
|
|
@@ -23609,8 +23609,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, We = ve), Pe
|
|
|
23609
23609
|
De++;
|
|
23610
23610
|
continue;
|
|
23611
23611
|
}
|
|
23612
|
-
const
|
|
23613
|
-
|
|
23612
|
+
const Ut = wn.classNameAliases[le[De]] || le[De], Rn = me[De];
|
|
23613
|
+
Ut ? _n(Rn, Ut) : (qe = Rn, $n(), qe = ""), De++;
|
|
23614
23614
|
}
|
|
23615
23615
|
}
|
|
23616
23616
|
function Dl(le, me) {
|
|
@@ -23620,8 +23620,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, We = ve), Pe
|
|
|
23620
23620
|
let Fe = O(le.endRe, De);
|
|
23621
23621
|
if (Fe) {
|
|
23622
23622
|
if (le["on:end"]) {
|
|
23623
|
-
const
|
|
23624
|
-
le["on:end"](me,
|
|
23623
|
+
const Ut = new t(le);
|
|
23624
|
+
le["on:end"](me, Ut), Ut.isMatchIgnored && (Fe = !1);
|
|
23625
23625
|
}
|
|
23626
23626
|
if (Fe) {
|
|
23627
23627
|
for (; le.endsParent && le.parent; )
|
|
@@ -23636,8 +23636,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, We = ve), Pe
|
|
|
23636
23636
|
return Oe.matcher.regexIndex === 0 ? (qe += le[0], 1) : (Ls = !0, 0);
|
|
23637
23637
|
}
|
|
23638
23638
|
function rp(le) {
|
|
23639
|
-
const me = le[0], De = le.rule, Fe = new t(De),
|
|
23640
|
-
for (const Rn of
|
|
23639
|
+
const me = le[0], De = le.rule, Fe = new t(De), Ut = [De.__beforeBegin, De["on:begin"]];
|
|
23640
|
+
for (const Rn of Ut)
|
|
23641
23641
|
if (Rn && (Rn(le, Fe), Fe.isMatchIgnored))
|
|
23642
23642
|
return op(me);
|
|
23643
23643
|
return De.skip ? qe += me : (De.excludeBegin && (qe += me), Qt(), !De.returnBegin && !De.excludeBegin && (qe = me)), Dl(De, le), De.returnBegin ? 0 : me.length;
|
|
@@ -23646,12 +23646,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, We = ve), Pe
|
|
|
23646
23646
|
const me = le[0], De = ve.substring(le.index), Fe = Nl(Oe, le, De);
|
|
23647
23647
|
if (!Fe)
|
|
23648
23648
|
return Cl;
|
|
23649
|
-
const
|
|
23650
|
-
Oe.endScope && Oe.endScope._wrap ? (Qt(), _n(me, Oe.endScope._wrap)) : Oe.endScope && Oe.endScope._multi ? (Qt(), Rl(Oe.endScope, le)) :
|
|
23649
|
+
const Ut = Oe;
|
|
23650
|
+
Oe.endScope && Oe.endScope._wrap ? (Qt(), _n(me, Oe.endScope._wrap)) : Oe.endScope && Oe.endScope._multi ? (Qt(), Rl(Oe.endScope, le)) : Ut.skip ? qe += me : (Ut.returnEnd || Ut.excludeEnd || (qe += me), Qt(), Ut.excludeEnd && (qe = me));
|
|
23651
23651
|
do
|
|
23652
23652
|
Oe.scope && Dt.closeNode(), !Oe.skip && !Oe.subLanguage && (jr += Oe.relevance), Oe = Oe.parent;
|
|
23653
23653
|
while (Oe !== Fe.parent);
|
|
23654
|
-
return Fe.starts && Dl(Fe.starts, le),
|
|
23654
|
+
return Fe.starts && Dl(Fe.starts, le), Ut.returnEnd ? 0 : me.length;
|
|
23655
23655
|
}
|
|
23656
23656
|
function ap() {
|
|
23657
23657
|
const le = [];
|
|
@@ -25832,7 +25832,7 @@ const Qx = ["innerHTML"], Bi = /* @__PURE__ */ H({
|
|
|
25832
25832
|
return `<div class="section-label section-${y}"><span>${_}</span></div>
|
|
25833
25833
|
${m}${b}`;
|
|
25834
25834
|
}
|
|
25835
|
-
), f = f.replace(/__CODE_BLOCK_(\d+)__/g, (p, g) => u[parseInt(g)]), a.value = await Jl(f), await
|
|
25835
|
+
), f = f.replace(/__CODE_BLOCK_(\d+)__/g, (p, g) => u[parseInt(g)]), a.value = await Jl(f), await Bt(), r.value?.querySelectorAll("pre code").forEach((p) => {
|
|
25836
25836
|
Ro.highlightElement(p);
|
|
25837
25837
|
});
|
|
25838
25838
|
}, 50, {
|
|
@@ -26084,7 +26084,7 @@ ${m}${b}`;
|
|
|
26084
26084
|
])
|
|
26085
26085
|
], 64));
|
|
26086
26086
|
}
|
|
26087
|
-
}), cC = /* @__PURE__ */
|
|
26087
|
+
}), cC = /* @__PURE__ */ Lt(iC, [["__scopeId", "data-v-60d66e6b"]]), uC = { class: "v-ai-widget-image-input" }, dC = {
|
|
26088
26088
|
key: 0,
|
|
26089
26089
|
class: "v-ai-widget-image-input__preview",
|
|
26090
26090
|
"element-loading-text": "正在分析..."
|
|
@@ -26207,7 +26207,7 @@ ${m}${b}`;
|
|
|
26207
26207
|
};
|
|
26208
26208
|
return a.value && k[a.value.toLowerCase()] || pr;
|
|
26209
26209
|
}), p = R(), g = bt(null), m = async (k) => {
|
|
26210
|
-
l.value = k, k ? (await
|
|
26210
|
+
l.value = k, k ? (await Bt(), c.value?.focus()) : (d.value = "", f.value = null);
|
|
26211
26211
|
}, b = async (k) => {
|
|
26212
26212
|
if (k.status === "ready" && k.raw) {
|
|
26213
26213
|
const A = await ov(k.raw);
|
|
@@ -26514,7 +26514,7 @@ ${m}${b}`;
|
|
|
26514
26514
|
}), a.onDidBlurEditorText(c);
|
|
26515
26515
|
};
|
|
26516
26516
|
return ao(() => {
|
|
26517
|
-
|
|
26517
|
+
Bt(d);
|
|
26518
26518
|
}), Tr(() => {
|
|
26519
26519
|
a && a.dispose();
|
|
26520
26520
|
}), ae(
|
|
@@ -26593,7 +26593,7 @@ ${m}${b}`;
|
|
|
26593
26593
|
_: 1
|
|
26594
26594
|
}));
|
|
26595
26595
|
}
|
|
26596
|
-
}), CC = /* @__PURE__ */
|
|
26596
|
+
}), CC = /* @__PURE__ */ Lt(xC, [["__scopeId", "data-v-3af93469"]]), AC = {
|
|
26597
26597
|
key: 0,
|
|
26598
26598
|
class: "v-ai-widget__mask is-limit"
|
|
26599
26599
|
}, TC = {
|
|
@@ -26630,7 +26630,7 @@ ${m}${b}`;
|
|
|
26630
26630
|
])) : U("", !0)
|
|
26631
26631
|
], 64));
|
|
26632
26632
|
}
|
|
26633
|
-
}), DC = /* @__PURE__ */
|
|
26633
|
+
}), DC = /* @__PURE__ */ Lt(RC, [["__scopeId", "data-v-f0a3b533"]]), NC = {
|
|
26634
26634
|
key: 0,
|
|
26635
26635
|
class: "v-ai-widget__mask is-limit"
|
|
26636
26636
|
}, VC = {
|
|
@@ -26858,7 +26858,7 @@ ${m}${b}`;
|
|
|
26858
26858
|
}, 8, ["modelValue"])
|
|
26859
26859
|
], 64));
|
|
26860
26860
|
}
|
|
26861
|
-
}), JC = /* @__PURE__ */
|
|
26861
|
+
}), JC = /* @__PURE__ */ Lt(HC, [["__scopeId", "data-v-5aac6f5d"]]), GC = { class: "v-ai-widget__input" }, KC = /* @__PURE__ */ H({
|
|
26862
26862
|
name: "AIWidget",
|
|
26863
26863
|
__name: "index",
|
|
26864
26864
|
setup(e, { expose: t }) {
|
|
@@ -28922,7 +28922,7 @@ ${m}${b}`;
|
|
|
28922
28922
|
const n = (c = "") => ({
|
|
28923
28923
|
type: "JSExpression",
|
|
28924
28924
|
value: Eo(c) ? c.value : c
|
|
28925
|
-
}), o = e, s = t, r = (c) =>
|
|
28925
|
+
}), o = e, s = t, r = (c) => $t(c, o.context, !0), a = R(n(o.modelValue).value);
|
|
28926
28926
|
ae(
|
|
28927
28927
|
() => o.modelValue,
|
|
28928
28928
|
(c) => {
|
|
@@ -29598,7 +29598,7 @@ ${m}${b}`;
|
|
|
29598
29598
|
}, 8, ["modelValue"])) : U("", !0)
|
|
29599
29599
|
]));
|
|
29600
29600
|
}
|
|
29601
|
-
}), BA = /* @__PURE__ */
|
|
29601
|
+
}), BA = /* @__PURE__ */ Lt(UA, [["__scopeId", "data-v-b0e9c57b"]]), Xe = {
|
|
29602
29602
|
StringSetter: hA,
|
|
29603
29603
|
BooleanSetter: vA,
|
|
29604
29604
|
ExpressionSetter: _A,
|
|
@@ -31451,7 +31451,7 @@ class BT {
|
|
|
31451
31451
|
this.draggingNode = t;
|
|
31452
31452
|
}
|
|
31453
31453
|
async setHover(t) {
|
|
31454
|
-
if (await
|
|
31454
|
+
if (await Bt(), t) {
|
|
31455
31455
|
const n = this.getElmenetByModel(t);
|
|
31456
31456
|
if (!n) return;
|
|
31457
31457
|
const o = n.getBoundingClientRect(), s = it(t) ? [] : this.findPathByNode(t);
|
|
@@ -31466,7 +31466,7 @@ class BT {
|
|
|
31466
31466
|
this.hover.value = null;
|
|
31467
31467
|
}
|
|
31468
31468
|
async setSelected(t) {
|
|
31469
|
-
if (await
|
|
31469
|
+
if (await Bt(), t) {
|
|
31470
31470
|
const n = this.getElmenetByModel(t) || this.document?.createElement("span");
|
|
31471
31471
|
if (!n) return;
|
|
31472
31472
|
const o = n.getBoundingClientRect(), s = it(t) ? [] : this.findPathByNode(t);
|
|
@@ -31481,7 +31481,7 @@ class BT {
|
|
|
31481
31481
|
this.selected.value = null;
|
|
31482
31482
|
}
|
|
31483
31483
|
async setDropping(t, n = "inner") {
|
|
31484
|
-
if (await
|
|
31484
|
+
if (await Bt(), t) {
|
|
31485
31485
|
const o = this.getElmenetByModel(t);
|
|
31486
31486
|
if (!o) return;
|
|
31487
31487
|
const s = o.getBoundingClientRect(), r = it(t) ? [] : this.findPathByNode(t);
|
|
@@ -32485,7 +32485,7 @@ class KO extends rc {
|
|
|
32485
32485
|
* @param e 项目模型事件
|
|
32486
32486
|
*/
|
|
32487
32487
|
async activeFile(n) {
|
|
32488
|
-
await
|
|
32488
|
+
await Bt();
|
|
32489
32489
|
const o = n.model, s = n.model.currentFile;
|
|
32490
32490
|
if (s) {
|
|
32491
32491
|
if (o.isPageFile(s) && s.raw)
|
|
@@ -32506,7 +32506,7 @@ class KO extends rc {
|
|
|
32506
32506
|
*/
|
|
32507
32507
|
async changeFile(n) {
|
|
32508
32508
|
if (this.checkLocked()) return;
|
|
32509
|
-
await
|
|
32509
|
+
await Bt();
|
|
32510
32510
|
const o = n.toDsl();
|
|
32511
32511
|
this.service.saveFile(o, this.project.value?.toDsl()), this.updateCurrent(n), this.state.autoHistory && (this.history.value?.add(o), zn(this.history));
|
|
32512
32512
|
}
|
|
@@ -32514,7 +32514,7 @@ class KO extends rc {
|
|
|
32514
32514
|
this.saveCurrentFile(), this.current.value && this.state.autoHistory && (this.history.value?.add(this.current.value.toDsl()), zn(this.history));
|
|
32515
32515
|
}
|
|
32516
32516
|
async updateCurrent(n, o = !0) {
|
|
32517
|
-
this.current.value = n, await
|
|
32517
|
+
this.current.value = n, await Bt(), this.context.value = this.simulator.renderer?.context || null, this.isEmptyCurrent.value = this.current.value?.nodes.length === 0, this.changed.value = Symbol(), o && zn(this.context);
|
|
32518
32518
|
}
|
|
32519
32519
|
/**
|
|
32520
32520
|
* 保存项目
|
|
@@ -32563,7 +32563,7 @@ class KO extends rc {
|
|
|
32563
32563
|
* 保存物料资源
|
|
32564
32564
|
*/
|
|
32565
32565
|
async saveMaterials() {
|
|
32566
|
-
await
|
|
32566
|
+
await Bt(), this.simulator.ready(() => {
|
|
32567
32567
|
const n = this.project.value;
|
|
32568
32568
|
if (n) {
|
|
32569
32569
|
const o = this.assets.componentMap;
|
|
@@ -33283,7 +33283,7 @@ const Hi = new qT(), QT = /* @__PURE__ */ H({
|
|
|
33283
33283
|
s.value = !0, r.value = Eo(l.value) ? l.value.value : "";
|
|
33284
33284
|
}, m = () => {
|
|
33285
33285
|
s.value = !1, r.value = "";
|
|
33286
|
-
}, b = async (_) =>
|
|
33286
|
+
}, b = async (_) => $t(_, n.context, !0) ? (d[a.value.name] = l.value, l.value = _, o("change", _), !0) : !1, y = async () => {
|
|
33287
33287
|
await Tn("确定要解除绑定吗?") && (m(), l.value = void 0, o("change", void 0));
|
|
33288
33288
|
};
|
|
33289
33289
|
return (_, C) => (h(), T(i(Ft), {
|
|
@@ -33590,7 +33590,7 @@ const Hi = new qT(), QT = /* @__PURE__ */ H({
|
|
|
33590
33590
|
}
|
|
33591
33591
|
}
|
|
33592
33592
|
}, y = async () => {
|
|
33593
|
-
g.value = !1, await
|
|
33593
|
+
g.value = !1, await Bt(), g.value = !0;
|
|
33594
33594
|
}, _ = () => c.value === "Designer", C = [
|
|
33595
33595
|
{
|
|
33596
33596
|
label: "关闭其他",
|
|
@@ -33660,7 +33660,7 @@ const Hi = new qT(), QT = /* @__PURE__ */ H({
|
|
|
33660
33660
|
region: {}
|
|
33661
33661
|
},
|
|
33662
33662
|
setup(e, { expose: t }) {
|
|
33663
|
-
const n = e, o = Le(), { current: s } =
|
|
33663
|
+
const n = e, o = Le(), { current: s } = jt(), { selected: r, isSelectBlock: a } = mn(), l = V(
|
|
33664
33664
|
() => a.value ? Nt.Block : Nt.Node
|
|
33665
33665
|
), { widgets: c, widgetsRef: d } = lo(n.region, l), f = R(), u = R(!1), p = V(() => c.value.map((y) => ({
|
|
33666
33666
|
name: y.name,
|
|
@@ -33912,7 +33912,7 @@ export {
|
|
|
33912
33912
|
$A as a7,
|
|
33913
33913
|
Fi as a8,
|
|
33914
33914
|
Hd as a9,
|
|
33915
|
-
|
|
33915
|
+
$t as aa,
|
|
33916
33916
|
nv as ab,
|
|
33917
33917
|
ev as ac,
|
|
33918
33918
|
Be as ad,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as E, b as r, c as t, d as n, C as i, D as S, e as _, E as o, f as I, g as T, h as O, G as l, H as d, i as p, j as g, K as V, M as R, k as A, l as D, N, m as P, O as L, P as M, n as c, R as u, o as K, p as m, q as Y, S as b, r as B, s as G, t as U, u as W, v as y, w as F, x as f, y as k, z as w, T as x, B as C, F as H, V as X, I as J, J as Z, L as h, Q as j, U as v, W as z, X as q, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as Ea, a3 as ra, a4 as ta, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as Oa, ad as la, ae as da, af as pa, ag as ga, ah as Va, ai as Ra, aj as Aa, ak as Da, al as Na, am as Pa, an as La, ao as Ma } from "./index-
|
|
1
|
+
import { A as e, a as E, b as r, c as t, d as n, C as i, D as S, e as _, E as o, f as I, g as T, h as O, G as l, H as d, i as p, j as g, K as V, M as R, k as A, l as D, N, m as P, O as L, P as M, n as c, R as u, o as K, p as m, q as Y, S as b, r as B, s as G, t as U, u as W, v as y, w as F, x as f, y as k, z as w, T as x, B as C, F as H, V as X, I as J, J as Z, L as h, Q as j, U as v, W as z, X as q, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as Ea, a3 as ra, a4 as ta, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as Oa, ad as la, ae as da, af as pa, ag as ga, ah as Va, ai as Ra, aj as Aa, ak as Da, al as Na, am as Pa, an as La, ao as Ma } from "./index-5e3Xrdp-.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.16.
|
|
4
|
+
"version": "0.16.29",
|
|
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.16.
|
|
33
|
-
"@vtj/icons": "~0.16.
|
|
34
|
-
"@vtj/renderer": "~0.16.
|
|
35
|
-
"@vtj/
|
|
36
|
-
"@vtj/
|
|
37
|
-
"@vtj/
|
|
32
|
+
"@vtj/core": "~0.16.29",
|
|
33
|
+
"@vtj/icons": "~0.16.29",
|
|
34
|
+
"@vtj/renderer": "~0.16.29",
|
|
35
|
+
"@vtj/uni": "~0.16.29",
|
|
36
|
+
"@vtj/utils": "~0.16.29",
|
|
37
|
+
"@vtj/ui": "~0.16.29"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/mockjs": "~1.0.10",
|
package/types/version.d.ts
CHANGED
|
@@ -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.16.
|
|
5
|
+
* @version 0.16.28
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.16.
|
|
8
|
+
export declare const version = "0.16.28";
|
package/dist/Editor-Cexcrr8z.js
DELETED