@vtj/designer 0.12.8 → 0.12.9
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,11 +1,11 @@
|
|
1
1
|
var il = Object.defineProperty;
|
2
2
|
var rl = (r, t, e) => t in r ? il(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
3
3
|
var Y = (r, t, e) => rl(r, typeof t != "symbol" ? t + "" : t, e);
|
4
|
-
import { computed as A, unref as n, ref as x, watch as te, reactive as Mt, toValue as it, shallowRef as vt, shallowReadonly as cl, onMounted as rn, nextTick as at, getCurrentScope as ul, onScopeDispose as dl, getCurrentInstance as Oo, toRaw as Rs, defineComponent as N, createElementBlock as R, openBlock as u, toDisplayString as oe, createVNode as d, withCtx as b, createElementVNode as T, createBlock as _, createCommentVNode as j, createTextVNode as Q, mergeProps as Me, h as
|
5
|
-
import { ElNotification as No, ElMessage as gt, ElMessageBox as Ot, ElButton as ue, ElDivider as rt, ElInput as ze, ElRadioGroup as Bs, ElRadioButton as _n, ElButtonGroup as gl, ElSwitch as Ln, ElImage as Kn, ElDropdown as Ms, ElDropdownMenu as zs, ElDropdownItem as Bn, ElEmpty as Oe, ElAlert as
|
4
|
+
import { computed as A, unref as n, ref as x, watch as te, reactive as Mt, toValue as it, shallowRef as vt, shallowReadonly as cl, onMounted as rn, nextTick as at, getCurrentScope as ul, onScopeDispose as dl, getCurrentInstance as Oo, toRaw as Rs, defineComponent as N, createElementBlock as R, openBlock as u, toDisplayString as oe, createVNode as d, withCtx as b, createElementVNode as T, createBlock as _, createCommentVNode as j, createTextVNode as Q, mergeProps as Me, h as qt, Fragment as q, renderList as se, normalizeClass as me, defineAsyncComponent as pl, resolveDynamicComponent as js, createSlots as Os, renderSlot as Rt, withDirectives as jt, vShow as an, withModifiers as lt, isRef as zn, normalizeStyle as vn, inject as Do, provide as ml, withKeys as _t, normalizeProps as Ds, guardReactiveProps as $s, onUnmounted as $o, markRaw as Ao, createApp as Ns, shallowReactive as vl, triggerRef as Jt, KeepAlive as Ps } from "vue";
|
5
|
+
import { ElNotification as No, ElMessage as gt, ElMessageBox as Ot, ElButton as ue, ElDivider as rt, ElInput as ze, ElRadioGroup as Bs, ElRadioButton as _n, ElButtonGroup as gl, ElSwitch as Ln, ElImage as Kn, ElDropdown as Ms, ElDropdownMenu as zs, ElDropdownItem as Bn, ElEmpty as Oe, ElAlert as Kt, ElTooltip as Ls, ElTag as Po, ElTree as Bo, ElCollapse as Xn, ElCollapseItem as Qn, ElRow as Un, ElCol as Fn, ElDrawer as Mo, ElForm as nt, ElFormItem as gn, ElBreadcrumb as fl, ElBreadcrumbItem as hl, ElLoading as bl, ElBadge as yl, ElAvatar as Yn, vLoading as Us, ElSelect as Fs, ElOption as Ws, ElCheckbox as Js, ElUpload as Hs, ElSegmented as _l, ElDialog as wl, ElSteps as kl, ElStep as bo, ElInputNumber as Sl, ElColorPicker as xl, ElSlider as Cl, ElConfigProvider as El, ElContainer as ds, ElHeader as Al, ElAside as ps, ElMain as Vl, ElFooter as Tl } from "element-plus";
|
6
6
|
import Il from "element-plus/es/locale/lang/zh-cn";
|
7
7
|
import { XDialogForm as Dt, XField as F, createDialog as Gs, XIcon as kt, XDialog as St, XPanel as Zn, XAction as Re, XTabs as eo, XContainer as pe, XForm as zo, XAttachment as Rl, XActionBar as qs, XInputUnit as Ks, vResizable as ms } from "@vtj/ui";
|
8
|
-
import { kebabCase as jl, jsonp as
|
8
|
+
import { kebabCase as jl, jsonp as Gt, groupBy as kn, storage as Xt, delay as zt, dataURLtoBlob as Ol, upperFirstCamelCase as Xs, toRawType as yo, cloneDeep as En, logger as Lt, isPlainObject as Dl, fileToBase64 as $l, merge as Lo, toArray as Uo, debounce as Qs, uuid as Nl, getClientInfo as Pl, base64 as Bl, arrayToMap as Ml } from "@vtj/utils";
|
9
9
|
import { BUILT_IN_NAME as Wn, isBlock as je, DirectiveModel as Ys, createNodeFrom as zl, BUILT_IN_VUE as vs, BUILT_IN_VUE_ROUTER as Ll, emitter as Ne, EVENT_PROJECT_ACTIVED as Vo, EVENT_NODE_CHANGE as Sn, NodeModel as _o, EVENT_BLOCK_CHANGE as To, Base as Zs, BUILT_IN_LIBRARAY_MAP as Ul, ProjectModel as Fl, EVENT_PROJECT_CHANGE as Wl, EVENT_PROJECT_BLOCKS_CHANGE as Jl, EVENT_PROJECT_PAGES_CHANGE as Hl, EVENT_PROJECT_DEPS_CHANGE as Gl, EVENT_PROJECT_PUBLISH as ql, EVENT_PROJECT_FILE_PUBLISH as Kl, EVENT_HISTORY_CHANGE as Xl, EVENT_HISTORY_LOAD as Ql, EVENT_PROJECT_GEN_SOURCE as Yl, BlockModel as wo, HistoryModel as Zl } from "@vtj/core";
|
10
10
|
import { parseExpression as xn, parseFunction as ea, BUILT_IN_DIRECTIVES as ei, JSCodeToString as fn, LIFE_CYCLES_LIST as ti, DATA_TYPES as ni, createMock as oi, isJSExpression as ln, ContextMode as ta, clearLoaderCache as si, parseDeps as ai, createAssetsCss as li, createAssetScripts as gs, getRawComponent as fs, createSchemaApis as ii, mockCleanup as ri, mockApis as ci, Provider as ui, Access as di, isJSFunction as pi } from "@vtj/renderer";
|
11
11
|
import { VtjIconBack as mi, VtjIconPc as vi, VtjIconPhone as gi, VtjIconPad as fi, VtjIconEdit as Fo, VtjIconUndo as hi, VtjIconRedo as bi, VtjIconTemplate as Jn, VtjIconPreview as yi, VtjIconRefresh as na, VtjIconSetting as oa, VtjIconAi as Wo, Download as Hn, VtjIconPublish as _i, VtjIconProject as wi, icons as Io, ArrowDown as to, Search as cn, CopyDocument as sa, Back as ki, VtjIconPlus as aa, EditPen as Si, Delete as la, VtjIconSave as xi, ArrowUp as ia, MoreFilled as bn, VtjIconCheck as ra, VtjIconComponents as ca, VtjIconShare as Ci, VtjIconHome as Ei, VtjIconVisible as Ai, VtjIconInvisible as ua, VtjIconUnlock as Vi, VtjIconLock as da, VtjIconRemove as no, VtjIconCopy as Jo, Files as Ti, VtjIconSearch as Ii, VtjIconHelp as pa, VtjIconLayers as ma, Rank as Ri, VtjIconArrowUp as ji, VtjIconArrowDown as Oi, IconDisplayBlock as Di, IconDisplayFlex as $i, IconDisplayInlineBlock as Ni, IconDisplayInline as Pi, IconEyeInvisible as Bi, IconFlexDirectionrow as Mi, IconFlexDirectionrowReverse as zi, IconFlexDirectioncolumn as Li, IconFlexDirectioncolumnReverse as Ui, IconFlexJustifyflexStartrow as Fi, IconFlexJustifyflexEndrow as Wi, IconFlexJustifycenterrow as Ji, IconFlexJustifyspaceBetweenrow as Hi, IconFlexJustifyspaceAroundrow as Gi, IconFlexAlignflexStartrow as qi, IconFlexAlignflexEndrow as Ki, IconFlexAligncenterrow as Xi, IconFlexAlignbaselinerow as Qi, IconFlexAlignstretchrow as Yi, IconPositionTopLeft as Zi, IconPositionTopRight as er, IconPositionBottomLeft as tr, IconPositionBottomRight as nr, IconPositionLeft as or, IconPositionRight as sr, IconPositionTop as ar, IconPositionBottom as lr, IconPositionAll as ir, IconTextAlignLeft as rr, IconTextAlignCenter as cr, IconTextAlignRight as ur, IconTextAlignJustify as dr, IconFontStyleNone as pr, IconFontStyleItalic as mr, IconCross as va, IconTextDecorationUnderline as vr, IconTextDecorationStrike as gr, IconTextDecorationOverline as fr, IconTileXy as hr, IconTileX as br, IconTileY as yr, IconClose as _r, IconBorderAll as wr, IconBorderLeft as kr, IconBorderTop as Sr, IconBorderBottom as xr, IconBorderRight as Cr, IconBorderStyleSolid as Er, IconBorderStyleDashed as Ar, IconBorderStyleDotted as Vr, IconCursorAuto as Tr, IconCursorPointer as Ir, IconCursorNotAllowed as Rr, IconCursorNone as jr, ArrowRight as Or, UserFilled as Ho, VtjIconInfo as Dr, VtjIconNewChat as ga, Promotion as fa, ArrowDownBold as $r, ArrowUpBold as Nr, Refresh as Pr, View as ha, UploadFilled as Br, CloseBold as Mr, ShoppingCart as zr, Finished as Lr, Hide as Ur, Top as Fr, Bottom as Wr, VtjIconChatRecord as Jr, VtjIconClose as Hr, VtjIconDocument as Gr, VtjIconBlock as qr, VtjIconOutline as Kr, VtjIconHistory as Xr, VtjIconApi as Qr, VtjIconCategory as Yr, VtjIconUniapp as Zr, HomeFilled as ec, Plus as tc, Close as nc, VtjIconVars as oc, VtjIconSwitch as sc, Switch as ac } from "@vtj/icons";
|
@@ -18,10 +18,10 @@ import { editor as dc } from "monaco-editor";
|
|
18
18
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
19
19
|
* @name @vtj/designer
|
20
20
|
* @author CHC chenhuachun1549@dingtalk.com
|
21
|
-
* @version 0.12.
|
21
|
+
* @version 0.12.9
|
22
22
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
23
23
|
*/
|
24
|
-
const Cn = "0.12.
|
24
|
+
const Cn = "0.12.9", pc = {
|
25
25
|
width: 390,
|
26
26
|
height: 844
|
27
27
|
}, mc = {
|
@@ -199,7 +199,7 @@ function ya() {
|
|
199
199
|
meta: o
|
200
200
|
};
|
201
201
|
}
|
202
|
-
function
|
202
|
+
function Qt(r, t) {
|
203
203
|
const e = A(() => qn.getWidgets(n(r), n(t)).filter((s) => !s.invisible)), o = x();
|
204
204
|
return {
|
205
205
|
widgets: e,
|
@@ -513,7 +513,7 @@ function $c(r) {
|
|
513
513
|
isExist: a
|
514
514
|
};
|
515
515
|
}
|
516
|
-
function
|
516
|
+
function sn(r, t) {
|
517
517
|
return Ot.alert(r, {
|
518
518
|
title: "提示",
|
519
519
|
type: "warning",
|
@@ -526,7 +526,7 @@ function Ae(r, t = "提示") {
|
|
526
526
|
message: r
|
527
527
|
});
|
528
528
|
}
|
529
|
-
async function
|
529
|
+
async function Yt(r, t) {
|
530
530
|
return await Ot.confirm(r, "提示", {
|
531
531
|
type: "warning",
|
532
532
|
...t
|
@@ -723,7 +723,7 @@ function Lc(r) {
|
|
723
723
|
e.value?.setDirective(E);
|
724
724
|
},
|
725
725
|
onRemoveCustom: async (E) => {
|
726
|
-
await
|
726
|
+
await Yt("确定删除指令?") && e.value?.removeDirective(E);
|
727
727
|
},
|
728
728
|
onCustomChange: (E) => (I, D) => {
|
729
729
|
E.update({ [I]: D }), e.value?.setDirective(E);
|
@@ -739,7 +739,7 @@ function Uc() {
|
|
739
739
|
meta: o
|
740
740
|
};
|
741
741
|
}
|
742
|
-
function
|
742
|
+
function Zt() {
|
743
743
|
const r = Le(), { access: t, remote: e, openApi: o } = r || {}, s = ($) => o?.getImage ? o?.getImage($) : $ ? `${e}/api/oss/file/${$}` : void 0, i = async () => {
|
744
744
|
const { auth: $ } = r.options;
|
745
745
|
if (t) {
|
@@ -750,7 +750,7 @@ function Yt() {
|
|
750
750
|
}
|
751
751
|
if (!(!e || !$)) {
|
752
752
|
if (typeof $ == "string") {
|
753
|
-
const O = `${e}/api/open/auth/${$}`, z = await
|
753
|
+
const O = `${e}/api/open/auth/${$}`, z = await Gt(O).catch(() => null);
|
754
754
|
z && z.data && t.login(z.data);
|
755
755
|
} else if (typeof $ == "function") {
|
756
756
|
const O = await $().catch(() => null);
|
@@ -772,7 +772,7 @@ function Yt() {
|
|
772
772
|
return await o?.isLogined();
|
773
773
|
const $ = t?.getData()?.token;
|
774
774
|
if ($) {
|
775
|
-
const O = `${e}/api/open/user/${$}`, z = await
|
775
|
+
const O = `${e}/api/open/user/${$}`, z = await Gt(O).catch(() => null);
|
776
776
|
return z && z.data ? (t?.login(z.data), !0) : !1;
|
777
777
|
}
|
778
778
|
return !1;
|
@@ -780,29 +780,29 @@ function Yt() {
|
|
780
780
|
if (o?.getTemplates)
|
781
781
|
return await o?.getTemplates($);
|
782
782
|
const O = `${e}/api/open/templates`, z = t?.getData()?.token;
|
783
|
-
return (await
|
783
|
+
return (await Gt(O, {
|
784
784
|
query: z ? { platform: $, token: z } : { platform: $ }
|
785
785
|
}))?.data || [];
|
786
786
|
}, m = async ($) => {
|
787
787
|
if (o?.getTemplateById)
|
788
788
|
return await o?.getTemplateById($);
|
789
789
|
const O = t?.getData()?.token, z = `${e}/api/open/template/${O}`;
|
790
|
-
return (await
|
790
|
+
return (await Gt(z, { query: { id: $ } }))?.data || null;
|
791
791
|
}, g = async ($) => {
|
792
792
|
if (o?.removeTemplate)
|
793
793
|
return await o?.removeTemplate($);
|
794
794
|
const O = t?.getData()?.token, z = `${e}/api/open/template/remove/${O}`;
|
795
|
-
return !!(await
|
795
|
+
return !!(await Gt(z, { query: { id: $ } }))?.data;
|
796
796
|
}, p = async ($) => {
|
797
797
|
if (o?.getTemplateDsl)
|
798
798
|
return await o?.getTemplateDsl($);
|
799
|
-
const O = t?.getData()?.token, z = `${e}/api/open/dsl/${O}`, H = await
|
799
|
+
const O = t?.getData()?.token, z = `${e}/api/open/dsl/${O}`, H = await Gt(z, { query: { id: $ } });
|
800
800
|
return H?.data ? H.data : null;
|
801
801
|
}, v = async ($) => {
|
802
802
|
if (o?.getDictOptions)
|
803
803
|
return await o?.getDictOptions($);
|
804
804
|
const O = `${e}/api/open/dict/${$}`;
|
805
|
-
return (await
|
805
|
+
return (await Gt(O).catch(() => null))?.data || [];
|
806
806
|
};
|
807
807
|
return {
|
808
808
|
engine: r,
|
@@ -838,7 +838,7 @@ function Yt() {
|
|
838
838
|
},
|
839
839
|
body: JSON.stringify($)
|
840
840
|
}).then((he) => he.json()).catch(() => null);
|
841
|
-
return H?.success || await
|
841
|
+
return H?.success || await sn(H.message || "未知错误"), H;
|
842
842
|
},
|
843
843
|
getChats: async ($) => {
|
844
844
|
if (o?.getChats)
|
@@ -866,7 +866,7 @@ function Yt() {
|
|
866
866
|
},
|
867
867
|
body: JSON.stringify($)
|
868
868
|
}).then((he) => he.json()).catch(() => null);
|
869
|
-
return H?.success || await
|
869
|
+
return H?.success || await sn(H.message || "未知错误"), H;
|
870
870
|
},
|
871
871
|
removeTopic: async ($) => {
|
872
872
|
if (o?.removeTopic)
|
@@ -945,7 +945,7 @@ function Yt() {
|
|
945
945
|
const $ = t?.getData()?.token, O = `${e}/api/open/order/${$}`, z = await window.fetch(O, {
|
946
946
|
method: "post"
|
947
947
|
}).then((H) => H.json()).catch(() => null);
|
948
|
-
return z?.success || await
|
948
|
+
return z?.success || await sn(z.message || "未知错误"), z;
|
949
949
|
},
|
950
950
|
cancelOrder: async ($) => {
|
951
951
|
if (o?.cancelOrder)
|
@@ -975,7 +975,7 @@ function Yt() {
|
|
975
975
|
method: "post",
|
976
976
|
body: H
|
977
977
|
}).then((ge) => ge.json()).catch((ge) => ge);
|
978
|
-
return he?.success || await
|
978
|
+
return he?.success || await sn(he.message || "未知错误"), he;
|
979
979
|
}
|
980
980
|
};
|
981
981
|
}
|
@@ -988,7 +988,7 @@ function Fc() {
|
|
988
988
|
getTemplates: s,
|
989
989
|
getTemplateDsl: i,
|
990
990
|
removeTemplate: a
|
991
|
-
} =
|
991
|
+
} = Zt(), l = x([]), c = x(!1), m = async (v) => {
|
992
992
|
const f = r.current.value, h = r.project.value;
|
993
993
|
if (!h) return;
|
994
994
|
if (!f) {
|
@@ -1114,7 +1114,7 @@ function wt(r) {
|
|
1114
1114
|
const e = it(r);
|
1115
1115
|
return (t = e?.$el) != null ? t : e;
|
1116
1116
|
}
|
1117
|
-
function
|
1117
|
+
function on(...r) {
|
1118
1118
|
const t = [], e = () => {
|
1119
1119
|
t.forEach((l) => l()), t.length = 0;
|
1120
1120
|
}, o = (l, c, m, g) => (l.addEventListener(c, m, g), () => l.removeEventListener(c, m, g)), s = A(() => {
|
@@ -1157,7 +1157,7 @@ function eu(r, t, e = {}) {
|
|
1157
1157
|
if (Gc && !_s) {
|
1158
1158
|
_s = !0;
|
1159
1159
|
const w = { passive: !0 };
|
1160
|
-
Array.from(o.document.body.children).forEach((C) =>
|
1160
|
+
Array.from(o.document.body.children).forEach((C) => on(C, "click", mn, w)), on(o.document.documentElement, "click", mn, w);
|
1161
1161
|
}
|
1162
1162
|
let c = !0;
|
1163
1163
|
const m = (w) => it(s).some((C) => {
|
@@ -1188,16 +1188,16 @@ function eu(r, t, e = {}) {
|
|
1188
1188
|
};
|
1189
1189
|
let f = !1;
|
1190
1190
|
const h = [
|
1191
|
-
|
1191
|
+
on(o, "click", (w) => {
|
1192
1192
|
f || (f = !0, setTimeout(() => {
|
1193
1193
|
f = !1;
|
1194
1194
|
}, 0), v(w));
|
1195
1195
|
}, { passive: !0, capture: i }),
|
1196
|
-
|
1196
|
+
on(o, "pointerdown", (w) => {
|
1197
1197
|
const C = wt(r);
|
1198
1198
|
c = !m(w) && !!(C && !w.composedPath().includes(C));
|
1199
1199
|
}, { passive: !0 }),
|
1200
|
-
a &&
|
1200
|
+
a && on(o, "blur", (w) => {
|
1201
1201
|
setTimeout(() => {
|
1202
1202
|
var C;
|
1203
1203
|
const y = wt(r);
|
@@ -1233,7 +1233,7 @@ function ws(r, t = {}) {
|
|
1233
1233
|
var g, p;
|
1234
1234
|
l.value = (p = (g = i.value) == null ? void 0 : g.state) != null ? p : "prompt";
|
1235
1235
|
};
|
1236
|
-
|
1236
|
+
on(i, "change", c, { passive: !0 });
|
1237
1237
|
const m = Kc(async () => {
|
1238
1238
|
if (s.value) {
|
1239
1239
|
if (!i.value)
|
@@ -1272,7 +1272,7 @@ function Xo(r = {}) {
|
|
1272
1272
|
}
|
1273
1273
|
y && (g.value = w());
|
1274
1274
|
}
|
1275
|
-
m.value && e &&
|
1275
|
+
m.value && e && on(["copy", "cut"], f, { passive: !0 });
|
1276
1276
|
async function h(y = it(o)) {
|
1277
1277
|
if (m.value && y != null) {
|
1278
1278
|
let V = !(a.value && C(c.value));
|
@@ -1466,7 +1466,7 @@ function ru() {
|
|
1466
1466
|
getOrder: h,
|
1467
1467
|
getImage: k,
|
1468
1468
|
postImageTopic: w
|
1469
|
-
} =
|
1469
|
+
} = Zt(), C = "CHAT_HIDE_CODE", y = t.skeleton?.getRegion("Apps").regionRef, V = x(!1), E = x(!1), I = x(!0), D = x(!1), M = au("LLM", e), P = x([]), G = x([]), Z = x(null), K = x(null), $ = x(), O = x(), z = x(!!Xt.get(C, { type: "local" })), H = x(""), he = x(), ge = A(() => G.value.some((U) => U.status === "Pending")), ye = A(() => he.value ? he.value.mode === 2 && !he.value.invited : !0), { height: He } = hn($), Xe = async (U) => {
|
1470
1470
|
const fe = await i(U);
|
1471
1471
|
if (fe && fe.success) {
|
1472
1472
|
const ke = fe.data || [];
|
@@ -1486,7 +1486,7 @@ function ru() {
|
|
1486
1486
|
const ot = Mt(_e);
|
1487
1487
|
G.value.push(ot), ut(ot, (ft) => {
|
1488
1488
|
U.auto && dn(ft);
|
1489
|
-
}), await
|
1489
|
+
}), await zt(0), O.value && O.value.scrollToBottom();
|
1490
1490
|
} else
|
1491
1491
|
await Qe(null);
|
1492
1492
|
return ke;
|
@@ -1499,7 +1499,7 @@ function ru() {
|
|
1499
1499
|
const ot = Mt(_e);
|
1500
1500
|
G.value.push(ot), ut(ot, (ft) => {
|
1501
1501
|
U.auto && dn(ft);
|
1502
|
-
}), await
|
1502
|
+
}), await zt(0), O.value && O.value.scrollToBottom();
|
1503
1503
|
} else
|
1504
1504
|
await Qe(null);
|
1505
1505
|
return ke;
|
@@ -1514,7 +1514,7 @@ function ru() {
|
|
1514
1514
|
const Ue = Mt(ke.data);
|
1515
1515
|
G.value.push(Ue), ut(Ue, (_e) => {
|
1516
1516
|
U.auto && dn(_e);
|
1517
|
-
}), await
|
1517
|
+
}), await zt(0), O.value && O.value.scrollToBottom();
|
1518
1518
|
} else
|
1519
1519
|
await Qe(null);
|
1520
1520
|
return ke;
|
@@ -1538,9 +1538,9 @@ function ru() {
|
|
1538
1538
|
U.topicId,
|
1539
1539
|
U.id,
|
1540
1540
|
async (_e, ot) => {
|
1541
|
-
const
|
1542
|
-
if (
|
1543
|
-
const Vt =
|
1541
|
+
const Ut = _e?.choices?.[0]?.delta;
|
1542
|
+
if (Ut) {
|
1543
|
+
const Vt = Ut.content || "", ht = Ut.reasoning_content || "";
|
1544
1544
|
Vt && (U.content += Vt), ht && (U.reasoning += ht, ke += Date.now() - Ue);
|
1545
1545
|
}
|
1546
1546
|
if (_e?.usage && (U.tokens = _e.usage.total_tokens || 0), ot && U.status === "Pending") {
|
@@ -1595,7 +1595,7 @@ function ru() {
|
|
1595
1595
|
I.value || ge.value || G.value.map((U) => {
|
1596
1596
|
U.collapsed = !1;
|
1597
1597
|
});
|
1598
|
-
},
|
1598
|
+
}, tn = () => {
|
1599
1599
|
I.value || ge.value || G.value.map((U) => {
|
1600
1600
|
U.collapsed = !0;
|
1601
1601
|
});
|
@@ -1615,7 +1615,7 @@ function ru() {
|
|
1615
1615
|
}, Tn = (U, fe) => {
|
1616
1616
|
H.value = U, fe && (I.value = fe);
|
1617
1617
|
}, co = () => {
|
1618
|
-
I.value || (z.value = !z.value,
|
1618
|
+
I.value || (z.value = !z.value, Xt.save(C, z.value, { type: "local" }));
|
1619
1619
|
};
|
1620
1620
|
return te(
|
1621
1621
|
() => y?.active,
|
@@ -1656,7 +1656,7 @@ function ru() {
|
|
1656
1656
|
scrollToTop: At,
|
1657
1657
|
scrollToBottom: dt,
|
1658
1658
|
expandAll: tt,
|
1659
|
-
collapseAll:
|
1659
|
+
collapseAll: tn,
|
1660
1660
|
isPending: ge,
|
1661
1661
|
toggleHideCode: co,
|
1662
1662
|
isHideCode: z,
|
@@ -1908,7 +1908,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1908
1908
|
dsl: {}
|
1909
1909
|
},
|
1910
1910
|
setup(r) {
|
1911
|
-
const t = r, { getTemplateCategories: e, publishTemplate: o, getTemplateById: s, engine: i } =
|
1911
|
+
const t = r, { getTemplateCategories: e, publishTemplate: o, getTemplateById: s, engine: i } = Zt(), a = Mt({
|
1912
1912
|
name: t.name,
|
1913
1913
|
label: t.label,
|
1914
1914
|
share: !1
|
@@ -2043,10 +2043,10 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2043
2043
|
coder: { type: Boolean, default: !1 }
|
2044
2044
|
},
|
2045
2045
|
setup(r) {
|
2046
|
-
const t = r, { engine: e, designer: o } = xt(), { isLogined: s, toRemoteAuth: i } =
|
2046
|
+
const t = r, { engine: e, designer: o } = xt(), { isLogined: s, toRemoteAuth: i } = Zt(), a = x(!1), l = x(!1), c = x(), m = () => {
|
2047
2047
|
e.current.value ? (a.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (o.value?.setSelected(null), e.simulator.refresh()), Be("刷新完成", "success")) : Be("请先打开文件", "warning");
|
2048
2048
|
}, g = async () => {
|
2049
|
-
e.current.value ? (a.value && (e.skeleton?.closePreview(), a.value = !1, await
|
2049
|
+
e.current.value ? (a.value && (e.skeleton?.closePreview(), a.value = !1, await zt(1e3)), o.value?.setSelected(e.current.value)) : Be("请先打开文件", "warning");
|
2050
2050
|
}, p = () => {
|
2051
2051
|
if (e.project.value)
|
2052
2052
|
if (e.current.value) {
|
@@ -2110,7 +2110,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2110
2110
|
height: "200px",
|
2111
2111
|
title: "出码",
|
2112
2112
|
icon: Hn,
|
2113
|
-
content:
|
2113
|
+
content: qt(Vu, { link: y })
|
2114
2114
|
});
|
2115
2115
|
}, w = async () => {
|
2116
2116
|
const C = e.skeleton?.getRegion("Apps");
|
@@ -2330,15 +2330,15 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2330
2330
|
]));
|
2331
2331
|
}
|
2332
2332
|
}), Ie = pl({
|
2333
|
-
loader: () => import("./Editor-
|
2333
|
+
loader: () => import("./Editor-DrUjSmqU.js"),
|
2334
2334
|
loadingComponent: N({
|
2335
2335
|
render() {
|
2336
|
-
return
|
2336
|
+
return qt("div", "正在拼命加载...");
|
2337
2337
|
}
|
2338
2338
|
}),
|
2339
2339
|
errorComponent: N({
|
2340
2340
|
render() {
|
2341
|
-
return
|
2341
|
+
return qt("div", "组件加载失败!");
|
2342
2342
|
}
|
2343
2343
|
})
|
2344
2344
|
}), Du = /* @__PURE__ */ N({
|
@@ -2426,7 +2426,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2426
2426
|
disabled: ""
|
2427
2427
|
}, {
|
2428
2428
|
editor: b(() => [
|
2429
|
-
d(n(
|
2429
|
+
d(n(Kt), { closable: !1 }, {
|
2430
2430
|
default: b(() => [
|
2431
2431
|
Q(oe(`${n(o).options.pageBasePath || ""}/${c.value}/${g.value.id}`) + " ", 1),
|
2432
2432
|
d(n(kt), {
|
@@ -3490,7 +3490,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3490
3490
|
onSubmit: l
|
3491
3491
|
}, c.$attrs), {
|
3492
3492
|
default: b(() => [
|
3493
|
-
d(n(
|
3493
|
+
d(n(Kt), {
|
3494
3494
|
title: `${e.name} 组件支持多个插槽,请选择放置到其中一个`,
|
3495
3495
|
type: "warning",
|
3496
3496
|
closable: !1
|
@@ -4299,7 +4299,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4299
4299
|
const { history: t, load: e, total: o } = _a(), s = A(() => `(共 ${o.value} 条)`), i = (l) => {
|
4300
4300
|
l.name === "remove" && t.value?.remove(l.modelValue.id);
|
4301
4301
|
}, a = async () => {
|
4302
|
-
await
|
4302
|
+
await Yt("确定要清空历史记录吗?") && t.value?.clear();
|
4303
4303
|
};
|
4304
4304
|
return (l, c) => (u(), _(n(de), {
|
4305
4305
|
class: "v-history-widget",
|
@@ -4970,7 +4970,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4970
4970
|
], c = (g) => {
|
4971
4971
|
o("action", { type: "selected", model: g.command });
|
4972
4972
|
}, m = async (g) => {
|
4973
|
-
g.name === "remove" ? await
|
4973
|
+
g.name === "remove" ? await Yt("确定删除?") && o("action", { type: g.name, model: e.model }) : o("action", { type: g.name, model: e.model });
|
4974
4974
|
};
|
4975
4975
|
return (g, p) => (u(), R("div", {
|
4976
4976
|
class: me(["v-actions", [`is-${e.position}`]])
|
@@ -5044,11 +5044,19 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5044
5044
|
}, G = () => {
|
5045
5045
|
y.value && (y.value.setDraggingNode(null), y.value.setDragging(null));
|
5046
5046
|
};
|
5047
|
-
return te(
|
5048
|
-
|
5049
|
-
|
5050
|
-
|
5051
|
-
|
5047
|
+
return te(
|
5048
|
+
h,
|
5049
|
+
async (Z) => {
|
5050
|
+
y.value && (await zt(100), y.value.outlineEnabled.value = Z);
|
5051
|
+
},
|
5052
|
+
{ immediate: !0 }
|
5053
|
+
), te(
|
5054
|
+
k,
|
5055
|
+
async (Z) => {
|
5056
|
+
y.value && (await zt(100), y.value.activeEvent.value = Z);
|
5057
|
+
},
|
5058
|
+
{ immediate: !0 }
|
5059
|
+
), t({
|
5052
5060
|
designer: y,
|
5053
5061
|
mode: v
|
5054
5062
|
}), (Z, K) => (u(), R("div", {
|
@@ -5584,7 +5592,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5584
5592
|
const y = Object.keys(s.value?.props || {});
|
5585
5593
|
return !p(C.name) && !y.includes(C.name) ? (m(C.name), !0) : (Ae("已存在该属性名称"), !1);
|
5586
5594
|
}, w = async (C) => {
|
5587
|
-
await
|
5595
|
+
await Yt("确定删除?") && g(C);
|
5588
5596
|
};
|
5589
5597
|
return (C, y) => n(t) ? (u(), _(n(pe), {
|
5590
5598
|
key: 0,
|
@@ -5778,7 +5786,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5778
5786
|
const k = o.value?.model;
|
5779
5787
|
h.name && (k.removeEvent(h.name), c.value = !1);
|
5780
5788
|
}, v = async () => {
|
5781
|
-
l.value.name && await
|
5789
|
+
l.value.name && await Yt("确定要删除该事件吗?") && p(l.value);
|
5782
5790
|
}, f = (h) => {
|
5783
5791
|
const { name: k, modelValue: w } = h;
|
5784
5792
|
k === "edit" && m(w), k === "remove" && p(w);
|
@@ -6702,7 +6710,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6702
6710
|
let G = t.context?.$apis[c.value.ref];
|
6703
6711
|
if (G)
|
6704
6712
|
return await G.apply(G, P);
|
6705
|
-
|
6713
|
+
Lt.warn(`API【${c.value.ref}】不存在`);
|
6706
6714
|
}
|
6707
6715
|
}, D = xn(c.value.test, {
|
6708
6716
|
runApi: I
|
@@ -6713,7 +6721,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6713
6721
|
const P = await D();
|
6714
6722
|
g.value = JSON.stringify(await M(P), null, 2), a?.enableIntercept();
|
6715
6723
|
} catch (P) {
|
6716
|
-
|
6724
|
+
Lt.error(P);
|
6717
6725
|
}
|
6718
6726
|
m.value = !1, p.value = !0;
|
6719
6727
|
};
|
@@ -8503,7 +8511,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8503
8511
|
_: 1
|
8504
8512
|
})),
|
8505
8513
|
a.value ? (u(), R("div", Pp, [
|
8506
|
-
d(n(
|
8514
|
+
d(n(Kt), {
|
8507
8515
|
type: "warning",
|
8508
8516
|
title: "样式已绑定了变量,需解除绑定才能编辑",
|
8509
8517
|
"show-icon": "",
|
@@ -8586,7 +8594,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8586
8594
|
() => JSON.stringify(t.value?.toDsl() || {}, null, 2)
|
8587
8595
|
), s = A(() => t.value ? t.value.name : ""), i = async () => {
|
8588
8596
|
const l = (e.value?.getEditor()).getValue();
|
8589
|
-
if (l && await
|
8597
|
+
if (l && await Yt(
|
8590
8598
|
"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"
|
8591
8599
|
))
|
8592
8600
|
try {
|
@@ -9442,7 +9450,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9442
9450
|
},
|
9443
9451
|
emits: ["update:modelValue", "send"],
|
9444
9452
|
setup(r, { expose: t, emit: e }) {
|
9445
|
-
const o = r, s = e, i =
|
9453
|
+
const o = r, s = e, i = Xt.get(Ss, { type: "local" }) ?? !0, a = x(""), l = x(i), c = x(o.model || "");
|
9446
9454
|
te(
|
9447
9455
|
() => o.models,
|
9448
9456
|
(p) => {
|
@@ -9458,7 +9466,7 @@ const cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9458
9466
|
immediate: !0
|
9459
9467
|
}
|
9460
9468
|
), te(l, (p) => {
|
9461
|
-
|
9469
|
+
Xt.save(Ss, p, { type: "local" }), gt.success({
|
9462
9470
|
message: p ? "已开启自动应用到页面功能" : "已经关闭自动应用到页面功能"
|
9463
9471
|
});
|
9464
9472
|
});
|
@@ -9971,7 +9979,7 @@ function xm() {
|
|
9971
9979
|
function tt(S, B) {
|
9972
9980
|
S.className !== void 0 && (S.scope = S.className, delete S.className);
|
9973
9981
|
}
|
9974
|
-
function
|
9982
|
+
function tn(S, B) {
|
9975
9983
|
B && S.beginKeywords && (S.begin = "\\b(" + S.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", S.__beforeBegin = dt, S.keywords = S.keywords || S.beginKeywords, delete S.beginKeywords, S.relevance === void 0 && (S.relevance = 0));
|
9976
9984
|
}
|
9977
9985
|
function lo(S, B) {
|
@@ -10041,7 +10049,7 @@ function xm() {
|
|
10041
10049
|
console.log(`WARN: ${S}`, ...B);
|
10042
10050
|
}, ft = (S, B) => {
|
10043
10051
|
Ue[`${S}/${B}`] || (console.log(`Deprecated as of ${S}. ${B}`), Ue[`${S}/${B}`] = !0);
|
10044
|
-
},
|
10052
|
+
}, Ut = new Error();
|
10045
10053
|
function Vt(S, B, { key: W }) {
|
10046
10054
|
let ie = 0;
|
10047
10055
|
const De = S[W], $e = {}, ee = {};
|
@@ -10052,18 +10060,18 @@ function xm() {
|
|
10052
10060
|
function ht(S) {
|
10053
10061
|
if (Array.isArray(S.begin)) {
|
10054
10062
|
if (S.skip || S.excludeBegin || S.returnBegin)
|
10055
|
-
throw _e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
10063
|
+
throw _e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ut;
|
10056
10064
|
if (typeof S.beginScope != "object" || S.beginScope === null)
|
10057
|
-
throw _e("beginScope must be object"),
|
10065
|
+
throw _e("beginScope must be object"), Ut;
|
10058
10066
|
Vt(S, S.begin, { key: "beginScope" }), S.begin = I(S.begin, { joinWith: "" });
|
10059
10067
|
}
|
10060
10068
|
}
|
10061
10069
|
function In(S) {
|
10062
10070
|
if (Array.isArray(S.end)) {
|
10063
10071
|
if (S.skip || S.excludeEnd || S.returnEnd)
|
10064
|
-
throw _e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
10072
|
+
throw _e("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ut;
|
10065
10073
|
if (typeof S.endScope != "object" || S.endScope === null)
|
10066
|
-
throw _e("endScope must be object"),
|
10074
|
+
throw _e("endScope must be object"), Ut;
|
10067
10075
|
Vt(S, S.end, { key: "endScope" }), S.end = I(S.end, { joinWith: "" });
|
10068
10076
|
}
|
10069
10077
|
}
|
@@ -10153,7 +10161,7 @@ function xm() {
|
|
10153
10161
|
Pa,
|
10154
10162
|
ro
|
10155
10163
|
].forEach((Pe) => Pe(ee, X)), S.compilerExtensions.forEach((Pe) => Pe(ee, X)), ee.__beforeBegin = null, [
|
10156
|
-
|
10164
|
+
tn,
|
10157
10165
|
// do this later so compiler extensions that come earlier have access to the
|
10158
10166
|
// raw array if they wanted to perhaps manipulate it, etc.
|
10159
10167
|
lo,
|
@@ -10219,10 +10227,10 @@ function xm() {
|
|
10219
10227
|
ae += L.parentNode ? L.parentNode.className : "";
|
10220
10228
|
const be = X.languageDetectRe.exec(ae);
|
10221
10229
|
if (be) {
|
10222
|
-
const xe =
|
10230
|
+
const xe = Ft(be[1]);
|
10223
10231
|
return xe || (ot($e.replace("{}", be[1])), ot("Falling back to no-highlight mode for this block.", L)), xe ? be[1] : "no-highlight";
|
10224
10232
|
}
|
10225
|
-
return ae.split(/\s+/).find((xe) => le(xe) ||
|
10233
|
+
return ae.split(/\s+/).find((xe) => le(xe) || Ft(xe));
|
10226
10234
|
}
|
10227
10235
|
function Pe(L, ae, be) {
|
10228
10236
|
let xe = "", Fe = "";
|
@@ -10233,15 +10241,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10233
10241
|
language: Fe
|
10234
10242
|
};
|
10235
10243
|
jn("before:highlight", bt);
|
10236
|
-
const
|
10237
|
-
return
|
10244
|
+
const Wt = bt.result ? bt.result : yn(bt.language, bt.code, be);
|
10245
|
+
return Wt.code = bt.code, jn("after:highlight", Wt), Wt;
|
10238
10246
|
}
|
10239
10247
|
function yn(L, ae, be, xe) {
|
10240
10248
|
const Fe = /* @__PURE__ */ Object.create(null);
|
10241
10249
|
function bt(J, ne) {
|
10242
10250
|
return J.keywords[ne];
|
10243
10251
|
}
|
10244
|
-
function
|
10252
|
+
function Wt() {
|
10245
10253
|
if (!re.keywords) {
|
10246
10254
|
Ge.addText(Ce);
|
10247
10255
|
return;
|
@@ -10281,7 +10289,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10281
10289
|
re.relevance > 0 && ($n += J.relevance), Ge.__addSublanguage(J._emitter, J.language);
|
10282
10290
|
}
|
10283
10291
|
function st() {
|
10284
|
-
re.subLanguage != null ? On() :
|
10292
|
+
re.subLanguage != null ? On() : Wt(), Ce = "";
|
10285
10293
|
}
|
10286
10294
|
function Tt(J, ne) {
|
10287
10295
|
J !== "" && (Ge.startScope(ne), Ge.addText(J), Ge.endScope());
|
@@ -10295,7 +10303,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10295
10303
|
continue;
|
10296
10304
|
}
|
10297
10305
|
const Ze = It.classNameAliases[J[ve]] || J[ve], Bt = ne[ve];
|
10298
|
-
Ze ? Tt(Bt, Ze) : (Ce = Bt,
|
10306
|
+
Ze ? Tt(Bt, Ze) : (Ce = Bt, Wt(), Ce = ""), ve++;
|
10299
10307
|
}
|
10300
10308
|
}
|
10301
10309
|
function is(J, ne) {
|
@@ -10373,26 +10381,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10373
10381
|
throw new Error("potential infinite loop, way more iterations than matches");
|
10374
10382
|
return Ce += ve, ve.length;
|
10375
10383
|
}
|
10376
|
-
const It =
|
10384
|
+
const It = Ft(L);
|
10377
10385
|
if (!It)
|
10378
10386
|
throw _e($e.replace("{}", L)), new Error('Unknown language: "' + L + '"');
|
10379
10387
|
const sl = Ba(It);
|
10380
10388
|
let go = "", re = xe || sl;
|
10381
10389
|
const us = {}, Ge = new X.__emitter(X);
|
10382
10390
|
ol();
|
10383
|
-
let Ce = "", $n = 0,
|
10391
|
+
let Ce = "", $n = 0, nn = 0, fo = 0, ho = !1;
|
10384
10392
|
try {
|
10385
10393
|
if (It.__emitTokens)
|
10386
10394
|
It.__emitTokens(ae, Ge);
|
10387
10395
|
else {
|
10388
10396
|
for (re.matcher.considerAll(); ; ) {
|
10389
|
-
fo++, ho ? ho = !1 : re.matcher.considerAll(), re.matcher.lastIndex =
|
10397
|
+
fo++, ho ? ho = !1 : re.matcher.considerAll(), re.matcher.lastIndex = nn;
|
10390
10398
|
const J = re.matcher.exec(ae);
|
10391
10399
|
if (!J) break;
|
10392
|
-
const ne = ae.substring(
|
10393
|
-
|
10400
|
+
const ne = ae.substring(nn, J.index), ve = cs(ne, J);
|
10401
|
+
nn = J.index + ve;
|
10394
10402
|
}
|
10395
|
-
cs(ae.substring(
|
10403
|
+
cs(ae.substring(nn));
|
10396
10404
|
}
|
10397
10405
|
return Ge.finalize(), go = Ge.toHTML(), {
|
10398
10406
|
language: L,
|
@@ -10411,8 +10419,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10411
10419
|
relevance: 0,
|
10412
10420
|
_illegalBy: {
|
10413
10421
|
message: J.message,
|
10414
|
-
index:
|
10415
|
-
context: ae.slice(
|
10422
|
+
index: nn,
|
10423
|
+
context: ae.slice(nn - 100, nn + 100),
|
10416
10424
|
mode: J.mode,
|
10417
10425
|
resultSoFar: go
|
10418
10426
|
},
|
@@ -10443,21 +10451,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10443
10451
|
}
|
10444
10452
|
function mo(L, ae) {
|
10445
10453
|
ae = ae || X.languages || Object.keys(B);
|
10446
|
-
const be = po(L), xe = ae.filter(
|
10454
|
+
const be = po(L), xe = ae.filter(Ft).filter(as).map(
|
10447
10455
|
(st) => yn(st, L, !1)
|
10448
10456
|
);
|
10449
10457
|
xe.unshift(be);
|
10450
10458
|
const Fe = xe.sort((st, Tt) => {
|
10451
10459
|
if (st.relevance !== Tt.relevance) return Tt.relevance - st.relevance;
|
10452
10460
|
if (st.language && Tt.language) {
|
10453
|
-
if (
|
10461
|
+
if (Ft(st.language).supersetOf === Tt.language)
|
10454
10462
|
return 1;
|
10455
|
-
if (
|
10463
|
+
if (Ft(Tt.language).supersetOf === st.language)
|
10456
10464
|
return -1;
|
10457
10465
|
}
|
10458
10466
|
return 0;
|
10459
|
-
}), [bt,
|
10460
|
-
return On.secondBest =
|
10467
|
+
}), [bt, Wt] = Fe, On = bt;
|
10468
|
+
return On.secondBest = Wt, On;
|
10461
10469
|
}
|
10462
10470
|
function Fa(L, ae, be) {
|
10463
10471
|
const xe = ae && W[ae] || be;
|
@@ -10532,7 +10540,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10532
10540
|
function Ka() {
|
10533
10541
|
return Object.keys(B);
|
10534
10542
|
}
|
10535
|
-
function
|
10543
|
+
function Ft(L) {
|
10536
10544
|
return L = (L || "").toLowerCase(), B[L] || B[W[L]];
|
10537
10545
|
}
|
10538
10546
|
function ss(L, { languageName: ae }) {
|
@@ -10541,7 +10549,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10541
10549
|
});
|
10542
10550
|
}
|
10543
10551
|
function as(L) {
|
10544
|
-
const ae =
|
10552
|
+
const ae = Ft(L);
|
10545
10553
|
return ae && !ae.disableAutodetect;
|
10546
10554
|
}
|
10547
10555
|
function Xa(L) {
|
@@ -10584,7 +10592,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = L, xe = ae), be
|
|
10584
10592
|
registerLanguage: Ga,
|
10585
10593
|
unregisterLanguage: qa,
|
10586
10594
|
listLanguages: Ka,
|
10587
|
-
getLanguage:
|
10595
|
+
getLanguage: Ft,
|
10588
10596
|
registerAliases: ss,
|
10589
10597
|
autoDetection: as,
|
10590
10598
|
inherit: es,
|
@@ -12583,11 +12591,11 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
12583
12591
|
}), Xm = { class: "login-tip" }, Qm = { class: "login-tip__content" }, Ym = /* @__PURE__ */ N({
|
12584
12592
|
__name: "login-tip",
|
12585
12593
|
setup(r) {
|
12586
|
-
const { toRemoteAuth: t } =
|
12594
|
+
const { toRemoteAuth: t } = Zt();
|
12587
12595
|
return (e, o) => (u(), R(q, null, [
|
12588
12596
|
o[2] || (o[2] = T("div", { class: "v-ai-widget__mask" }, null, -1)),
|
12589
12597
|
T("div", Xm, [
|
12590
|
-
d(n(
|
12598
|
+
d(n(Kt), {
|
12591
12599
|
type: "warning",
|
12592
12600
|
closable: !1,
|
12593
12601
|
title: "您未登录"
|
@@ -12627,13 +12635,13 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
12627
12635
|
},
|
12628
12636
|
emits: ["send"],
|
12629
12637
|
setup(r, { emit: t }) {
|
12630
|
-
const e = r, o = t, s = x(null), i =
|
12638
|
+
const e = r, o = t, s = x(null), i = Xt.get(As, { type: "local" }) ?? !0, a = x(i), l = x(), c = (v) => {
|
12631
12639
|
v.status === "ready" && v.raw && (s.value = URL.createObjectURL(v.raw));
|
12632
12640
|
}, m = () => {
|
12633
12641
|
s.value = null;
|
12634
12642
|
};
|
12635
12643
|
te(a, (v) => {
|
12636
|
-
|
12644
|
+
Xt.save(As, v, { type: "local" }), gt.success({
|
12637
12645
|
message: v ? "已开启自动应用到页面功能" : "已经关闭自动应用到页面功能"
|
12638
12646
|
});
|
12639
12647
|
});
|
@@ -12723,7 +12731,7 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
12723
12731
|
},
|
12724
12732
|
emits: ["send", "imageSend"],
|
12725
12733
|
setup(r, { emit: t }) {
|
12726
|
-
const e = r, o = t, { getHotTopics: s } =
|
12734
|
+
const e = r, o = t, { getHotTopics: s } = Zt(), i = x([]), a = [
|
12727
12735
|
{
|
12728
12736
|
label: "文字",
|
12729
12737
|
value: "text"
|
@@ -12796,7 +12804,7 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
12796
12804
|
return (t, e) => (u(), R(q, null, [
|
12797
12805
|
e[0] || (e[0] = T("div", { class: "v-ai-widget__mask" }, null, -1)),
|
12798
12806
|
T("div", iv, [
|
12799
|
-
d(n(
|
12807
|
+
d(n(Kt), {
|
12800
12808
|
title: "请新建或打开文件后再使用AI助手",
|
12801
12809
|
type: "warning",
|
12802
12810
|
"show-icon": "",
|
@@ -12943,7 +12951,7 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
12943
12951
|
return (o, s) => (u(), R(q, null, [
|
12944
12952
|
e.value ? (u(), R("div", pv)) : j("", !0),
|
12945
12953
|
e.value ? (u(), R("div", mv, [
|
12946
|
-
d(n(
|
12954
|
+
d(n(Kt), {
|
12947
12955
|
title: "仅限邀请",
|
12948
12956
|
type: "warning",
|
12949
12957
|
closable: !1
|
@@ -13000,12 +13008,12 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
13000
13008
|
const v = await t.createOrder();
|
13001
13009
|
v?.success && (o.value = !0, s.value = v.data);
|
13002
13010
|
}, g = async () => {
|
13003
|
-
((await t.getOrder(s.value?.id))?.data).status === "Completed" ? (await
|
13011
|
+
((await t.getOrder(s.value?.id))?.data).status === "Completed" ? (await sn("订单已经支付成功,你权限已经开通!").catch(() => null), location.reload()) : await sn("您的订单状态还没更新,支付后请与客服联系!", {
|
13004
13012
|
type: "success",
|
13005
13013
|
confirmButtonText: "再等等"
|
13006
13014
|
}).catch(() => null);
|
13007
13015
|
}, p = async () => {
|
13008
|
-
await
|
13016
|
+
await Yt("您确定取消该订单?", {
|
13009
13017
|
confirmButtonText: "确认取消",
|
13010
13018
|
cancelButtonText: "再想想"
|
13011
13019
|
}).catch(() => !1) && await t.cancelOrder(s.value?.id) && (o.value = !1);
|
@@ -13013,7 +13021,7 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
13013
13021
|
return (v, f) => (u(), R(q, null, [
|
13014
13022
|
e.value ? (u(), R("div", bv)) : j("", !0),
|
13015
13023
|
e.value ? (u(), R("div", yv, [
|
13016
|
-
d(n(
|
13024
|
+
d(n(Kt), {
|
13017
13025
|
title: "免费体验次数已用完",
|
13018
13026
|
type: "warning",
|
13019
13027
|
closable: !1
|
@@ -13085,7 +13093,7 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
13085
13093
|
})
|
13086
13094
|
]),
|
13087
13095
|
default: b(() => [
|
13088
|
-
d(n(
|
13096
|
+
d(n(Kt), {
|
13089
13097
|
type: "success",
|
13090
13098
|
closable: !1
|
13091
13099
|
}, {
|
@@ -13342,10 +13350,10 @@ const Lm = ["innerHTML"], Um = /* @__PURE__ */ N({
|
|
13342
13350
|
type: "ai",
|
13343
13351
|
data: tt,
|
13344
13352
|
code: !n(Z),
|
13345
|
-
onView: (
|
13346
|
-
onRefresh: (
|
13347
|
-
onApply: (
|
13348
|
-
onFix: (
|
13353
|
+
onView: (tn) => n(f)(tt),
|
13354
|
+
onRefresh: (tn) => n(h)(tt),
|
13355
|
+
onApply: (tn) => n(k)(tt),
|
13356
|
+
onFix: (tn) => n(K)(tt)
|
13349
13357
|
}, null, 8, ["data", "code", "onView", "onRefresh", "onApply", "onFix"])
|
13350
13358
|
], 64))), 128)),
|
13351
13359
|
n(l).length ? j("", !0) : (u(), _(n(Oe), { key: 0 }))
|
@@ -15316,7 +15324,7 @@ class cg {
|
|
15316
15324
|
set(t, e) {
|
15317
15325
|
const o = this.widgets[t];
|
15318
15326
|
if (!o) {
|
15319
|
-
|
15327
|
+
Lt.warn(`widget '${t}' is not found`);
|
15320
15328
|
return;
|
15321
15329
|
}
|
15322
15330
|
Lo(o, e), e.component && (o.component = e.component);
|
@@ -15457,7 +15465,7 @@ class pg {
|
|
15457
15465
|
set(t, e) {
|
15458
15466
|
const o = this.setters[t];
|
15459
15467
|
if (!o) {
|
15460
|
-
|
15468
|
+
Lt.warn(`setter '${t}' is not found`);
|
15461
15469
|
return;
|
15462
15470
|
}
|
15463
15471
|
Lo(o, e), e.component && (o.component = e.component);
|
@@ -15491,7 +15499,7 @@ class mg {
|
|
15491
15499
|
});
|
15492
15500
|
}
|
15493
15501
|
async load(t) {
|
15494
|
-
this.enabled && (await
|
15502
|
+
this.enabled && (await zt(200), this.window && this.appUnmount(this.window), t && this.appInit(t), this.isInited = !0);
|
15495
15503
|
}
|
15496
15504
|
updateState(t) {
|
15497
15505
|
t.key === bs && (this.isOpen.value = !!this.getState().open);
|
@@ -15772,7 +15780,7 @@ class gg {
|
|
15772
15780
|
this.setSelected(null), this.setHover(null), this.setDragging(null), this.setDropping(null);
|
15773
15781
|
}
|
15774
15782
|
async updateRect() {
|
15775
|
-
await
|
15783
|
+
await zt(100);
|
15776
15784
|
const t = n(this.selected), e = n(this.hover);
|
15777
15785
|
if (t) {
|
15778
15786
|
const o = t.el.getBoundingClientRect();
|
@@ -15794,7 +15802,7 @@ class gg {
|
|
15794
15802
|
this.lines.value = [];
|
15795
15803
|
return;
|
15796
15804
|
}
|
15797
|
-
await
|
15805
|
+
await zt(50);
|
15798
15806
|
const t = this.engine.simulator.renderer?.context?.__refs || {}, e = [], o = Object.keys(_o.nodes);
|
15799
15807
|
for (const s of o) {
|
15800
15808
|
const i = t[s];
|
@@ -15926,8 +15934,8 @@ class hg {
|
|
15926
15934
|
});
|
15927
15935
|
}
|
15928
15936
|
getSessionId() {
|
15929
|
-
let t =
|
15930
|
-
return t || (t = Nl(),
|
15937
|
+
let t = Xt.get(ys, { type: "session" });
|
15938
|
+
return t || (t = Nl(), Xt.save(ys, t, { type: "session" })), t;
|
15931
15939
|
}
|
15932
15940
|
send(t) {
|
15933
15941
|
const e = this.access.getData(), o = Pl(), { href: s, protocol: i, host: a } = location, l = document.referrer, c = Object.assign(
|
@@ -15950,7 +15958,7 @@ class hg {
|
|
15950
15958
|
body: g
|
15951
15959
|
}).catch(() => null);
|
15952
15960
|
} else
|
15953
|
-
|
15961
|
+
Gt(this.api, {
|
15954
15962
|
query: { data: m }
|
15955
15963
|
}).catch(() => null);
|
15956
15964
|
}
|
@@ -16194,7 +16202,7 @@ class yg extends Zs {
|
|
16194
16202
|
setup(e, o) {
|
16195
16203
|
const s = e.contentWindow;
|
16196
16204
|
if (!s) {
|
16197
|
-
|
16205
|
+
Lt.warn("Simulator contentWindow is null");
|
16198
16206
|
return;
|
16199
16207
|
}
|
16200
16208
|
s.__simulator__ = this;
|
@@ -16466,10 +16474,10 @@ class pf extends Zs {
|
|
16466
16474
|
}), this.assets = new _g(this.service, this.provider), this.simulator = new yg({
|
16467
16475
|
engine: this,
|
16468
16476
|
materialPath: m
|
16469
|
-
}), this.access = f || new di({ alert:
|
16477
|
+
}), this.access = f || new di({ alert: sn, ...Sc }), this.remote = h, this.report = new hg(this.remote, this.access, this.service), this.checkVersion = k, this.bindEvents(), this.init(i).then(this.render.bind(this)), $o(this.dispose.bind(this));
|
16470
16478
|
}
|
16471
16479
|
async init(e) {
|
16472
|
-
const o = await this.service.init(e).catch((s) => (
|
16480
|
+
const o = await this.service.init(e).catch((s) => (Lt.warn("VTJEngine service init fail.", s), null));
|
16473
16481
|
if (o) {
|
16474
16482
|
const s = o.platform || "web";
|
16475
16483
|
s === "uniapp" && qn.set("UniConfig", {
|
@@ -16483,7 +16491,7 @@ class pf extends Zs {
|
|
16483
16491
|
const o = Ns(wg);
|
16484
16492
|
this.options.install && o.use(this.options.install, this), o.provide($a, vl(this)), o.mount(e), this.app = o;
|
16485
16493
|
} else
|
16486
|
-
|
16494
|
+
Lt.warn("VTJEngine constructor param [ container ] is undefined");
|
16487
16495
|
}
|
16488
16496
|
bindEvents() {
|
16489
16497
|
Ne.on(Wl, (e) => this.saveProject(e)), Ne.on(Jl, (e) => this.saveBlockFile(e)), Ne.on(Hl, (e) => this.saveBlockFile(e)), Ne.on(Gl, () => this.saveMaterials()), Ne.on(Vo, (e) => this.activeFile(e)), Ne.on(ql, () => this.publish()), Ne.on(Kl, () => this.publishCurrent()), Ne.on(To, (e) => this.changeFile(e)), Ne.on(Sn, () => this.changeCurrentFile()), Ne.on(Xl, (e) => this.saveHistory(e)), Ne.on(Ql, (e) => this.loadHistory(e)), Ne.on(Yl, () => this.genSource());
|
@@ -16502,22 +16510,22 @@ class pf extends Zs {
|
|
16502
16510
|
this.updateCurrent(i), this.initHistory(i);
|
16503
16511
|
} else
|
16504
16512
|
this.updateCurrent(null);
|
16505
|
-
|
16513
|
+
Jt(this.project);
|
16506
16514
|
}
|
16507
16515
|
async changeFile(e) {
|
16508
16516
|
await at();
|
16509
16517
|
const o = e.toDsl();
|
16510
|
-
this.service.saveFile(o, this.project.value?.toDsl()), this.updateCurrent(e), this.history.value?.add(o),
|
16518
|
+
this.service.saveFile(o, this.project.value?.toDsl()), this.updateCurrent(e), this.history.value?.add(o), Jt(this.history);
|
16511
16519
|
}
|
16512
16520
|
changeCurrentFile() {
|
16513
|
-
this.saveCurrentFile(), this.current.value && (this.history.value?.add(this.current.value.toDsl()),
|
16521
|
+
this.saveCurrentFile(), this.current.value && (this.history.value?.add(this.current.value.toDsl()), Jt(this.history));
|
16514
16522
|
}
|
16515
16523
|
async updateCurrent(e, o = !0) {
|
16516
|
-
this.current.value = e, await at(), this.context.value = this.simulator.renderer?.context || null, this.isEmptyCurrent.value = this.current.value?.nodes.length === 0, this.changed.value = Symbol(), o &&
|
16524
|
+
this.current.value = e, await at(), this.context.value = this.simulator.renderer?.context || null, this.isEmptyCurrent.value = this.current.value?.nodes.length === 0, this.changed.value = Symbol(), o && Jt(this.context);
|
16517
16525
|
}
|
16518
16526
|
async saveProject(e) {
|
16519
16527
|
const s = e.model.toDsl();
|
16520
|
-
await this.service.saveProject(s, e.type),
|
16528
|
+
await this.service.saveProject(s, e.type), Jt(this.project);
|
16521
16529
|
}
|
16522
16530
|
async saveBlockFile(e) {
|
16523
16531
|
const o = e.type, s = e.model, i = s.toDsl();
|
@@ -16540,7 +16548,7 @@ class pf extends Zs {
|
|
16540
16548
|
const { source: a, target: l } = e.data, c = await this.service.getFile(a.id, i);
|
16541
16549
|
c && (c.id = l.id, c.name = l.name, await this.service.saveFile(c, i));
|
16542
16550
|
}
|
16543
|
-
|
16551
|
+
Jt(this.project), this.emitter.emit(Eo, e);
|
16544
16552
|
}
|
16545
16553
|
onSaveBlockFileFinish(e) {
|
16546
16554
|
const o = (s) => {
|
@@ -16586,7 +16594,7 @@ class pf extends Zs {
|
|
16586
16594
|
i
|
16587
16595
|
);
|
16588
16596
|
const a = s.toDsl();
|
16589
|
-
await this.service.saveHistory(a, i),
|
16597
|
+
await this.service.saveHistory(a, i), Jt(this.history);
|
16590
16598
|
}
|
16591
16599
|
async loadHistory(e) {
|
16592
16600
|
const o = e.model, s = e.data, i = this.project.value?.toDsl(), a = await this.service.getHistoryItem(
|
@@ -16596,7 +16604,7 @@ class pf extends Zs {
|
|
16596
16604
|
);
|
16597
16605
|
if (a && a.dsl) {
|
16598
16606
|
const l = new wo(a.dsl);
|
16599
|
-
await this.updateCurrent(l), this.service.saveFile(a.dsl, i),
|
16607
|
+
await this.updateCurrent(l), this.service.saveFile(a.dsl, i), Jt(this.history);
|
16600
16608
|
}
|
16601
16609
|
}
|
16602
16610
|
async publish() {
|
@@ -16650,9 +16658,9 @@ class pf extends Zs {
|
|
16650
16658
|
}
|
16651
16659
|
function Le() {
|
16652
16660
|
const r = Do($a, null);
|
16653
|
-
return r ||
|
16661
|
+
return r || Lt.error("VTJEngine is not exist"), r;
|
16654
16662
|
}
|
16655
|
-
const
|
16663
|
+
const Ht = N({
|
16656
16664
|
name: "RegionWrapper",
|
16657
16665
|
props: {
|
16658
16666
|
region: {
|
@@ -16667,9 +16675,9 @@ const Jt = N({
|
|
16667
16675
|
},
|
16668
16676
|
render() {
|
16669
16677
|
const { $props: r = {}, $attrs: t = {} } = this, e = Is[this.region] || Is.EmptyRegion;
|
16670
|
-
return
|
16678
|
+
return qt(e, { ...r, ...t, ref: "regionRef" });
|
16671
16679
|
}
|
16672
|
-
}),
|
16680
|
+
}), en = N({
|
16673
16681
|
name: "WidgetWrapper",
|
16674
16682
|
props: {
|
16675
16683
|
region: {
|
@@ -16688,7 +16696,7 @@ const Jt = N({
|
|
16688
16696
|
},
|
16689
16697
|
render() {
|
16690
16698
|
const { $props: r = {}, $attrs: t = {} } = this;
|
16691
|
-
return
|
16699
|
+
return qt(this.widget.component, {
|
16692
16700
|
...this.widget.props,
|
16693
16701
|
...r,
|
16694
16702
|
...t,
|
@@ -16710,7 +16718,7 @@ const Jt = N({
|
|
16710
16718
|
},
|
16711
16719
|
render() {
|
16712
16720
|
const { $props: r = {}, $attrs: t = {} } = this;
|
16713
|
-
return
|
16721
|
+
return qt(kg, { ...r, ...t, ref: "skeletonRef" });
|
16714
16722
|
},
|
16715
16723
|
methods: {
|
16716
16724
|
/**
|
@@ -16756,7 +16764,7 @@ const Jt = N({
|
|
16756
16764
|
getWidget(r) {
|
16757
16765
|
const t = qn.get(r);
|
16758
16766
|
if (!t) {
|
16759
|
-
|
16767
|
+
Lt.warn(`widget [ ${r} ] is not exsit`);
|
16760
16768
|
return;
|
16761
16769
|
}
|
16762
16770
|
return this.getWidgets(t.region).find((o) => o.widget.name === r);
|
@@ -16860,7 +16868,7 @@ const Jt = N({
|
|
16860
16868
|
removable: p,
|
16861
16869
|
onRemove: v
|
16862
16870
|
} = this;
|
16863
|
-
return
|
16871
|
+
return qt(Tg, {
|
16864
16872
|
context: r,
|
16865
16873
|
current: t,
|
16866
16874
|
name: e,
|
@@ -16898,7 +16906,7 @@ const Jt = N({
|
|
16898
16906
|
footerHeight: { default: "20px" }
|
16899
16907
|
},
|
16900
16908
|
setup(r, { expose: t }) {
|
16901
|
-
const e = r, { engine: o, loginBySign: s, isLogined: i } =
|
16909
|
+
const e = r, { engine: o, loginBySign: s, isLogined: i } = Zt(), a = x(!1), l = x(parseInt(e.leftWidth)), c = x(parseInt(e.rightWidth)), m = () => {
|
16902
16910
|
o.checkVersion && wa((M) => {
|
16903
16911
|
Ae(
|
16904
16912
|
`VTJ 发布了版本 ${M},您可以通过重新安装依赖更新到最新版本`,
|
@@ -16951,18 +16959,18 @@ const Jt = N({
|
|
16951
16959
|
height: M.headerHeight
|
16952
16960
|
}, {
|
16953
16961
|
default: b(() => [
|
16954
|
-
d(n(
|
16962
|
+
d(n(Ht), {
|
16955
16963
|
ref_key: "brand",
|
16956
16964
|
ref: v,
|
16957
16965
|
region: "Brand"
|
16958
16966
|
}, null, 512),
|
16959
|
-
d(n(
|
16967
|
+
d(n(Ht), {
|
16960
16968
|
ref_key: "toolbar",
|
16961
16969
|
ref: f,
|
16962
16970
|
region: "Toolbar",
|
16963
16971
|
preview: a.value
|
16964
16972
|
}, null, 8, ["preview"]),
|
16965
|
-
d(n(
|
16973
|
+
d(n(Ht), {
|
16966
16974
|
ref_key: "actions",
|
16967
16975
|
ref: h,
|
16968
16976
|
region: "Actions"
|
@@ -16980,7 +16988,7 @@ const Jt = N({
|
|
16980
16988
|
}])
|
16981
16989
|
}, {
|
16982
16990
|
default: b(() => [
|
16983
|
-
d(n(
|
16991
|
+
d(n(Ht), {
|
16984
16992
|
ref_key: "apps",
|
16985
16993
|
ref: k,
|
16986
16994
|
region: "Apps"
|
@@ -16992,14 +17000,14 @@ const Jt = N({
|
|
16992
17000
|
]),
|
16993
17001
|
d(n(Vl), { class: "v-skeleton__main" }, {
|
16994
17002
|
default: b(() => [
|
16995
|
-
a.value ? (u(), _(n(
|
17003
|
+
a.value ? (u(), _(n(Ht), {
|
16996
17004
|
key: 0,
|
16997
17005
|
ref_key: "preview",
|
16998
17006
|
ref: V,
|
16999
17007
|
region: "Preview",
|
17000
17008
|
preview: a.value
|
17001
17009
|
}, null, 8, ["preview"])) : j("", !0),
|
17002
|
-
jt(d(n(
|
17010
|
+
jt(d(n(Ht), {
|
17003
17011
|
ref_key: "workspace",
|
17004
17012
|
ref: w,
|
17005
17013
|
region: "Workspace"
|
@@ -17015,7 +17023,7 @@ const Jt = N({
|
|
17015
17023
|
class: "v-skeleton__right"
|
17016
17024
|
}, {
|
17017
17025
|
default: b(() => [
|
17018
|
-
d(n(
|
17026
|
+
d(n(Ht), {
|
17019
17027
|
ref_key: "settings",
|
17020
17028
|
ref: C,
|
17021
17029
|
region: "Settings"
|
@@ -17035,7 +17043,7 @@ const Jt = N({
|
|
17035
17043
|
height: M.footerHeight
|
17036
17044
|
}, {
|
17037
17045
|
default: b(() => [
|
17038
|
-
d(n(
|
17046
|
+
d(n(Ht), {
|
17039
17047
|
ref_key: "status",
|
17040
17048
|
ref: y,
|
17041
17049
|
region: "Status"
|
@@ -17100,7 +17108,7 @@ const Jt = N({
|
|
17100
17108
|
}, h = () => {
|
17101
17109
|
s.value = !1, i.value = "";
|
17102
17110
|
}, k = async (C) => qe(C, e.context, !0) ? (m[a.value.name] = l.value, l.value = C, o("change", C), !0) : !1, w = async () => {
|
17103
|
-
await
|
17111
|
+
await Yt("确定要解除绑定吗?") && (h(), l.value = void 0, o("change", void 0));
|
17104
17112
|
};
|
17105
17113
|
return (C, y) => (u(), _(n(gn), {
|
17106
17114
|
class: "v-setter",
|
@@ -17229,12 +17237,12 @@ const Jt = N({
|
|
17229
17237
|
region: {}
|
17230
17238
|
},
|
17231
17239
|
setup(r, { expose: t }) {
|
17232
|
-
const e = r, { widgets: o, widgetsRef: s } =
|
17240
|
+
const e = r, { widgets: o, widgetsRef: s } = Qt(e.region);
|
17233
17241
|
return t({
|
17234
17242
|
widgets: o,
|
17235
17243
|
widgetsRef: s
|
17236
17244
|
}), (i, a) => (u(), R("div", jg, [
|
17237
|
-
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(
|
17245
|
+
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(en), {
|
17238
17246
|
ref_for: !0,
|
17239
17247
|
ref_key: "widgetsRef",
|
17240
17248
|
ref: s,
|
@@ -17251,12 +17259,12 @@ const Jt = N({
|
|
17251
17259
|
preview: { type: Boolean }
|
17252
17260
|
},
|
17253
17261
|
setup(r, { expose: t }) {
|
17254
|
-
const e = r, { widgets: o, widgetsRef: s } =
|
17262
|
+
const e = r, { widgets: o, widgetsRef: s } = Qt(e.region);
|
17255
17263
|
return t({
|
17256
17264
|
widgets: o,
|
17257
17265
|
widgetsRef: s
|
17258
17266
|
}), (i, a) => (u(), R("div", Dg, [
|
17259
|
-
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(
|
17267
|
+
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(en), {
|
17260
17268
|
ref_for: !0,
|
17261
17269
|
ref_key: "widgetsRef",
|
17262
17270
|
ref: s,
|
@@ -17274,12 +17282,12 @@ const Jt = N({
|
|
17274
17282
|
region: {}
|
17275
17283
|
},
|
17276
17284
|
setup(r, { expose: t }) {
|
17277
|
-
const e = r, { widgets: o, widgetsRef: s } =
|
17285
|
+
const e = r, { widgets: o, widgetsRef: s } = Qt(e.region);
|
17278
17286
|
return t({
|
17279
17287
|
widgets: o,
|
17280
17288
|
widgetsRef: s
|
17281
17289
|
}), (i, a) => (u(), R("div", Ng, [
|
17282
|
-
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(
|
17290
|
+
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(en), {
|
17283
17291
|
ref_for: !0,
|
17284
17292
|
ref_key: "widgetsRef",
|
17285
17293
|
ref: s,
|
@@ -17297,14 +17305,14 @@ const Jt = N({
|
|
17297
17305
|
index: { default: 0 }
|
17298
17306
|
},
|
17299
17307
|
setup(r, { expose: t }) {
|
17300
|
-
const e = r, o = Le(), { isLogined: s, toRemoteAuth: i } =
|
17308
|
+
const e = r, o = Le(), { isLogined: s, toRemoteAuth: i } = Zt(), { widgets: a, widgetsRef: l } = Qt(e.region), c = A(() => a.value.filter((w) => w.openType === "panel")), m = A(() => a.value.filter((w) => w.openType !== "panel")), g = c.value[e.index], p = x(g), v = x(g), f = (w) => {
|
17301
17309
|
p.value = w, v.value = v.value?.name === w.name ? null : w;
|
17302
17310
|
}, h = (w) => {
|
17303
17311
|
w.openType === "link" && w.url && window.open(w.url), w.openType === "dialog" && Gs({
|
17304
17312
|
title: w.label,
|
17305
17313
|
// icon: item.icon,
|
17306
17314
|
...w.props,
|
17307
|
-
content:
|
17315
|
+
content: qt(w.component, { engine: o, isLogined: s, toRemoteAuth: i })
|
17308
17316
|
});
|
17309
17317
|
};
|
17310
17318
|
return te(v, (w) => {
|
@@ -17342,7 +17350,7 @@ const Jt = N({
|
|
17342
17350
|
(u(!0), R(q, null, se(c.value, (y) => (u(), _(Ps, {
|
17343
17351
|
key: y.name
|
17344
17352
|
}, [
|
17345
|
-
p.value?.name === y.name ? (u(), _(n(
|
17353
|
+
p.value?.name === y.name ? (u(), _(n(en), {
|
17346
17354
|
key: 0,
|
17347
17355
|
ref_for: !0,
|
17348
17356
|
ref_key: "widgetsRef",
|
@@ -17361,7 +17369,7 @@ const Jt = N({
|
|
17361
17369
|
region: {}
|
17362
17370
|
},
|
17363
17371
|
setup(r, { expose: t }) {
|
17364
|
-
const e = r, { widgets: o, widgetsRef: s } =
|
17372
|
+
const e = r, { widgets: o, widgetsRef: s } = Qt(e.region), i = x(Symbol()), a = Mt(
|
17365
17373
|
o.value.map((y) => ({
|
17366
17374
|
name: y.name,
|
17367
17375
|
command: y.name,
|
@@ -17421,7 +17429,7 @@ const Jt = N({
|
|
17421
17429
|
(u(!0), R(q, null, se(n(o), (E) => (u(), R(q, {
|
17422
17430
|
key: E.name
|
17423
17431
|
}, [
|
17424
|
-
m.value === E.name ? (u(), _(n(
|
17432
|
+
m.value === E.name ? (u(), _(n(en), {
|
17425
17433
|
ref_for: !0,
|
17426
17434
|
ref_key: "widgetsRef",
|
17427
17435
|
ref: s,
|
@@ -17443,7 +17451,7 @@ const Jt = N({
|
|
17443
17451
|
setup(r, { expose: t }) {
|
17444
17452
|
const e = r, o = Le(), { current: s } = Ke(), { selected: i, isSelectBlock: a } = xt(), l = A(
|
17445
17453
|
() => a.value ? yt.Block : yt.Node
|
17446
|
-
), { widgets: c, widgetsRef: m } =
|
17454
|
+
), { widgets: c, widgetsRef: m } = Qt(e.region, l), g = x(), p = x(!1), v = A(() => c.value.map((w) => ({
|
17447
17455
|
name: w.name,
|
17448
17456
|
label: w.label,
|
17449
17457
|
actions: w.name === "Style" ? [
|
@@ -17538,7 +17546,7 @@ const Jt = N({
|
|
17538
17546
|
(u(!0), R(q, null, se(n(c), (y) => (u(), R(q, {
|
17539
17547
|
key: y.name
|
17540
17548
|
}, [
|
17541
|
-
g.value === y.name ? (u(), _(n(
|
17549
|
+
g.value === y.name ? (u(), _(n(en), {
|
17542
17550
|
key: 0,
|
17543
17551
|
ref_for: !0,
|
17544
17552
|
ref_key: "widgetsRef",
|
@@ -17574,12 +17582,12 @@ const Jt = N({
|
|
17574
17582
|
region: {}
|
17575
17583
|
},
|
17576
17584
|
setup(r, { expose: t }) {
|
17577
|
-
const e = r, { widgets: o, widgetsRef: s } =
|
17585
|
+
const e = r, { widgets: o, widgetsRef: s } = Qt(e.region);
|
17578
17586
|
return t({
|
17579
17587
|
widgets: o,
|
17580
17588
|
widgetsRef: s
|
17581
17589
|
}), (i, a) => (u(), R("div", Hg, [
|
17582
|
-
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(
|
17590
|
+
(u(!0), R(q, null, se(n(o), (l) => (u(), _(n(en), {
|
17583
17591
|
ref_for: !0,
|
17584
17592
|
ref_key: "widgetsRef",
|
17585
17593
|
ref: s,
|
@@ -17595,7 +17603,7 @@ const Jt = N({
|
|
17595
17603
|
region: {}
|
17596
17604
|
},
|
17597
17605
|
setup(r, { expose: t }) {
|
17598
|
-
const e = r, { widgets: o, widgetsRef: s } =
|
17606
|
+
const e = r, { widgets: o, widgetsRef: s } = Qt(e.region), i = Mt(
|
17599
17607
|
o.value.map((c) => ({
|
17600
17608
|
name: c.name,
|
17601
17609
|
command: c.name,
|
@@ -17618,7 +17626,7 @@ const Jt = N({
|
|
17618
17626
|
(u(!0), R(q, null, se(n(o), (g) => (u(), _(Ps, {
|
17619
17627
|
key: g.name
|
17620
17628
|
}, [
|
17621
|
-
l.value === g.name ? (u(), _(n(
|
17629
|
+
l.value === g.name ? (u(), _(n(en), {
|
17622
17630
|
key: 0,
|
17623
17631
|
ref_for: !0,
|
17624
17632
|
ref_key: "widgetsRef",
|
@@ -17676,12 +17684,12 @@ export {
|
|
17676
17684
|
dg as a1,
|
17677
17685
|
wn as a2,
|
17678
17686
|
wg as a3,
|
17679
|
-
|
17680
|
-
|
17687
|
+
Ht as a4,
|
17688
|
+
en as a5,
|
17681
17689
|
ce as a6,
|
17682
|
-
|
17690
|
+
sn as a7,
|
17683
17691
|
Ae as a8,
|
17684
|
-
|
17692
|
+
Yt as a9,
|
17685
17693
|
Be as aa,
|
17686
17694
|
Nc as ab,
|
17687
17695
|
qe as ac,
|
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-
|
1
|
+
import { f as e, A as E, H as r, p as t, o as i, O as n, Q as S, E as _, j as o, F as I, z as p, k as T, n as l, K as O, M as V, a as R, x as g, N as d, e as A, T as M, P as D, l as P, R as L, g as N, B as u, a4 as b, J as c, D as B, S as W, i as m, a6 as Y, I as w, h as x, a3 as y, t as C, m as G, V as K, v as U, b as f, d as k, c as F, y as H, q as v, u as X, W as Z, a5 as z, a7 as J, X as h, Y as j, $ as q, U as Q, a9 as $, L as aa, Z as sa, a1 as ea, C as Ea, ac as ra, ad as ta, aa as ia, ae as na, a8 as Sa, ab as _a, r as oa, a2 as Ia, s as pa, G as Ta, a0 as la, w as Oa } from "./index-Gvgw247j.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.
|
4
|
+
"version": "0.12.9",
|
5
5
|
"type": "module",
|
6
6
|
"keywords": [
|
7
7
|
"低代码引擎",
|
@@ -26,12 +26,12 @@
|
|
26
26
|
"marked": "~15.0.8",
|
27
27
|
"mockjs": "~1.1.0",
|
28
28
|
"monaco-editor": "~0.52.0",
|
29
|
-
"@vtj/core": "~0.12.
|
30
|
-
"@vtj/
|
31
|
-
"@vtj/
|
32
|
-
"@vtj/
|
33
|
-
"@vtj/uni": "~0.12.
|
34
|
-
"@vtj/
|
29
|
+
"@vtj/core": "~0.12.9",
|
30
|
+
"@vtj/renderer": "~0.12.9",
|
31
|
+
"@vtj/icons": "~0.12.9",
|
32
|
+
"@vtj/ui": "~0.12.9",
|
33
|
+
"@vtj/uni": "~0.12.9",
|
34
|
+
"@vtj/utils": "~0.12.9"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@types/mockjs": "~1.0.10",
|
package/types/version.d.ts
CHANGED
@@ -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.
|
5
|
+
* @version 0.12.8
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.12.
|
8
|
+
export declare const version = "0.12.8";
|
package/dist/Editor-BnGvdhCu.js
DELETED