@vtj/designer 0.13.4 → 0.13.6
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,15 +1,15 @@
|
|
1
1
|
var Sl = Object.defineProperty;
|
2
2
|
var Cl = (r, t, e) => t in r ? Sl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
3
3
|
var ee = (r, t, e) => Cl(r, typeof t != "symbol" ? t + "" : t, e);
|
4
|
-
import { computed as I, unref as n, ref as E, watch as X, reactive as jt, toValue as yt, shallowRef as wt, shallowReadonly as Al, onMounted as
|
4
|
+
import { computed as I, unref as n, ref as E, watch as X, reactive as jt, toValue as yt, shallowRef as wt, shallowReadonly as Al, onMounted as fn, nextTick as mt, getCurrentScope as El, onScopeDispose as xl, getCurrentInstance as Ks, toRaw as Gs, defineComponent as M, createElementBlock as D, openBlock as d, normalizeClass as ge, toDisplayString as ne, createVNode as c, withCtx as h, createElementVNode as R, createBlock as y, createCommentVNode as B, createTextVNode as Q, mergeProps as We, h as rn, Fragment as Y, renderList as oe, defineAsyncComponent as Il, normalizeStyle as mn, resolveDynamicComponent as no, createSlots as $s, renderSlot as It, withDirectives as _t, vShow as ln, normalizeProps as qs, guardReactiveProps as Ys, withModifiers as Ie, isRef as Tn, inject as Xs, provide as Vl, withKeys as Ke, onUnmounted as Zs, markRaw as zs, createApp as so, shallowReactive as Rl, triggerRef as nn, KeepAlive as ao } from "vue";
|
5
5
|
import { ElNotification as ea, ElMessage as kt, ElMessageBox as Dt, ElButton as ue, ElDivider as et, ElInput as He, ElRadioGroup as oo, ElRadioButton as xn, ElButtonGroup as Tl, ElSwitch as Yn, ElImage as Mn, ElUpload as os, ElDropdown as lo, ElDropdownMenu as io, ElDropdownItem as Gn, ElEmpty as Pe, ElAlert as $t, ElTooltip as ro, ElTag as ta, ElTree as na, ElCollapse as ls, ElCollapseItem as is, ElRow as Xn, ElCol as Zn, ElDrawer as sa, ElForm as Ze, ElFormItem as pt, ElBreadcrumb as jl, ElBreadcrumbItem as Bl, ElLoading as Dl, ElBadge as Ol, ElAvatar as rs, vLoading as aa, ElSelect as uo, ElOptionGroup as Da, ElOption as Ls, ElCheckbox as oa, ElLink as co, ElSegmented as Ml, ElText as Nl, ElDialog as Pl, ElSteps as zl, ElStep as Vs, ElInputNumber as Ll, ElColorPicker as Ul, ElSlider as Fl, ElTour as Jl, ElTourStep as sn, ElConfigProvider as Wl, ElContainer as Oa, ElHeader as Hl, ElAside as Ma, ElMain as Ql, ElFooter as Kl } from "element-plus";
|
6
6
|
import Gl from "element-plus/es/locale/lang/zh-cn";
|
7
7
|
import { XDialogForm as Ot, XField as W, XIcon as ct, createDialog as po, XDialog as Wt, XPanel as us, XAction as Te, XTabs as cs, XContainer as be, XForm as la, XAttachment as $l, XActionBar as mo, XInputUnit as vo, vResizable as Na } from "@vtj/ui";
|
8
8
|
import { BUILT_IN_NAME as es, isBlock as ze, DirectiveModel as go, createNodeFrom as ql, BUILT_IN_VUE as Pa, BUILT_IN_VUE_ROUTER as Yl, emitter as Je, EVENT_PROJECT_ACTIVED as Us, EVENT_NODE_CHANGE as jn, NodeModel as Rs, EVENT_BLOCK_CHANGE as Fs, Base as fo, BUILT_IN_LIBRARAY_MAP as Xl, ProjectModel as Zl, EVENT_PROJECT_CHANGE as ei, EVENT_PROJECT_BLOCKS_CHANGE as ti, EVENT_PROJECT_PAGES_CHANGE as ni, EVENT_PROJECT_DEPS_CHANGE as si, EVENT_PROJECT_PUBLISH as ai, EVENT_PROJECT_FILE_PUBLISH as oi, EVENT_HISTORY_CHANGE as li, EVENT_HISTORY_LOAD as ii, EVENT_PROJECT_GEN_SOURCE as ri, BlockModel as Ts, HistoryModel as ui } from "@vtj/core";
|
9
|
-
import { parseExpression as Bn, parseFunction as ia, BUILT_IN_DIRECTIVES as ci, isJSFunction as ho, JSCodeToString as wn, LIFE_CYCLES_LIST as di, DATA_TYPES as pi, createMock as mi, isJSExpression as
|
9
|
+
import { parseExpression as Bn, parseFunction as ia, BUILT_IN_DIRECTIVES as ci, isJSFunction as ho, JSCodeToString as wn, LIFE_CYCLES_LIST as di, DATA_TYPES as pi, createMock as mi, isJSExpression as gn, REMOTE as bo, HTML_TAGS as vi, ContextMode as Js, clearLoaderCache as za, parseDeps as gi, parseUrls as fi, createAssetsCss as hi, createAssetScripts as La, getRawComponent as Ua, createSchemaApis as bi, mockCleanup as yi, mockApis as wi, Provider as _i, Access as ki, ACCESS as Si } from "@vtj/renderer";
|
10
10
|
import { kebabCase as Ci, jsonp as on, groupBy as Dn, storage as _n, delay as Jt, dataURLtoBlob as Ai, fileToBase64 as yo, upperFirstCamelCase as wo, toRawType as js, cloneDeep as Nn, logger as qt, isPlainObject as Ei, throttle as xi, merge as ra, toArray as ua, debounce as _o, uuid as Ii, getClientInfo as Vi, base64 as Ri, arrayToMap as Ti, uid as ji, isBoolean as Bi } from "@vtj/utils";
|
11
11
|
import * as Di from "@vtj/icons";
|
12
|
-
import { VtjIconBack as Oi, VtjIconPc as Mi, VtjIconPhone as Ni, VtjIconPad as Pi, VtjIconEdit as ca, VtjIconUndo as zi, VtjIconRedo as Li, VtjIconTemplate as ts, Upload as Ui, Lock as Fi, VtjIconPreview as Ji, VtjIconRefresh as ko, VtjIconSetting as Wi, VtjIconAi as da, Download as ns, VtjIconPublish as Hi, VtjIconProject as Qi, icons as Ws, ArrowDown as ds, Search as
|
12
|
+
import { VtjIconBack as Oi, VtjIconPc as Mi, VtjIconPhone as Ni, VtjIconPad as Pi, VtjIconEdit as ca, VtjIconUndo as zi, VtjIconRedo as Li, VtjIconTemplate as ts, Upload as Ui, Lock as Fi, VtjIconPreview as Ji, VtjIconRefresh as ko, VtjIconSetting as Wi, VtjIconAi as da, Download as ns, VtjIconPublish as Hi, VtjIconProject as Qi, icons as Ws, ArrowDown as ds, Search as hn, CopyDocument as So, Back as Ki, VtjIconPlus as Co, EditPen as Ao, Delete as pa, VtjIconSave as Gi, ArrowUp as Eo, MoreFilled as Sn, VtjIconCheck as ma, VtjIconComponents as xo, VtjIconShare as $i, VtjIconHome as qi, VtjIconVisible as Yi, VtjIconInvisible as Io, VtjIconUnlock as Xi, VtjIconLock as Vo, VtjIconRemove as ps, VtjIconCopy as va, Files as Zi, VtjIconSearch as er, VtjIconHelp as Ro, VtjIconLayers as To, Edit as tr, Rank as nr, VtjIconArrowUp as sr, VtjIconArrowDown as ar, IconDisplayBlock as or, IconDisplayFlex as lr, IconDisplayInlineBlock as ir, IconDisplayInline as rr, IconEyeInvisible as ur, IconFlexDirectionrow as cr, IconFlexDirectionrowReverse as dr, IconFlexDirectioncolumn as pr, IconFlexDirectioncolumnReverse as mr, IconFlexJustifyflexStartrow as vr, IconFlexJustifyflexEndrow as gr, IconFlexJustifycenterrow as fr, IconFlexJustifyspaceBetweenrow as hr, IconFlexJustifyspaceAroundrow as br, IconFlexAlignflexStartrow as yr, IconFlexAlignflexEndrow as wr, IconFlexAligncenterrow as _r, IconFlexAlignbaselinerow as kr, IconFlexAlignstretchrow as Sr, IconPositionTopLeft as Cr, IconPositionTopRight as Ar, IconPositionBottomLeft as Er, IconPositionBottomRight as xr, IconPositionLeft as Ir, IconPositionRight as Vr, IconPositionTop as Rr, IconPositionBottom as Tr, IconPositionAll as jr, IconTextAlignLeft as Br, IconTextAlignCenter as Dr, IconTextAlignRight as Or, IconTextAlignJustify as Mr, IconFontStyleNone as Nr, IconFontStyleItalic as Pr, IconCross as jo, IconTextDecorationUnderline as zr, IconTextDecorationStrike as Lr, IconTextDecorationOverline as Ur, IconTileXy as Fr, IconTileX as Jr, IconTileY as Wr, IconClose as Hr, IconBorderAll as Qr, IconBorderLeft as Kr, IconBorderTop as Gr, IconBorderBottom as $r, IconBorderRight as qr, IconBorderStyleSolid as Yr, IconBorderStyleDashed as Xr, IconBorderStyleDotted as Zr, IconCursorAuto as eu, IconCursorPointer as tu, IconCursorNotAllowed as nu, IconCursorNone as su, ArrowRight as au, UserFilled as ga, VtjIconInfo as ou, VtjIconNewChat as Bo, Plus as Do, Promotion as ss, ArrowDownBold as lu, ArrowUpBold as iu, Refresh as ru, View as Oo, VtjIconNpCancel as uu, UploadFilled as Mo, CloseBold as No, ShoppingCart as cu, Finished as du, Hide as pu, Top as mu, Bottom as vu, VtjIconChatRecord as gu, VtjIconClose as fu, VtjIconDocument as hu, VtjIconBlock as bu, VtjIconOutline as yu, VtjIconHistory as wu, VtjIconApi as _u, VtjIconCategory as ku, VtjIconUniapp as Su, VtjIconMaster as Cu, VtjIconGlobal as Au, HomeFilled as Eu, Close as xu, VtjIconVars as Iu, VtjIconSwitch as Vu, Switch as Ru } from "@vtj/icons";
|
13
13
|
import Tu from "html2canvas";
|
14
14
|
import Po from "mockjs";
|
15
15
|
import { PAGE_LIFE_CYCLES_LIST as ju, COMPONENT_LIFE_CYCLES_LIST as Bu, APP_LIFE_CYCLE as Du, createUniAppComponent as Ou, setupUniApp as Mu } from "@vtj/uni";
|
@@ -19,10 +19,10 @@ import { editor as Nu } from "monaco-editor";
|
|
19
19
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
20
20
|
* @name @vtj/designer
|
21
21
|
* @author CHC chenhuachun1549@dingtalk.com
|
22
|
-
* @version 0.13.
|
22
|
+
* @version 0.13.6
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
24
24
|
*/
|
25
|
-
const On = "0.13.
|
25
|
+
const On = "0.13.6", Pu = {
|
26
26
|
width: 390,
|
27
27
|
height: 844
|
28
28
|
}, zu = {
|
@@ -120,7 +120,7 @@ function zo() {
|
|
120
120
|
};
|
121
121
|
}
|
122
122
|
function un(r, t) {
|
123
|
-
const e = I(() =>
|
123
|
+
const e = I(() => vn.getWidgets(n(r), n(t)).filter((a) => !a.invisible)), s = E();
|
124
124
|
return {
|
125
125
|
widgets: e,
|
126
126
|
widgetsRef: s
|
@@ -1048,7 +1048,7 @@ function ha(r) {
|
|
1048
1048
|
}
|
1049
1049
|
const ms = typeof window < "u" && typeof document < "u";
|
1050
1050
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
1051
|
-
const hc = (r) => typeof r < "u", bc = Object.prototype.toString, yc = (r) => bc.call(r) === "[object Object]",
|
1051
|
+
const hc = (r) => typeof r < "u", bc = Object.prototype.toString, yc = (r) => bc.call(r) === "[object Object]", yn = () => {
|
1052
1052
|
}, wc = /* @__PURE__ */ _c();
|
1053
1053
|
function _c() {
|
1054
1054
|
var r, t;
|
@@ -1071,7 +1071,7 @@ function Sc(r) {
|
|
1071
1071
|
return Ks();
|
1072
1072
|
}
|
1073
1073
|
function Cc(r, t = !0, e) {
|
1074
|
-
Sc() ?
|
1074
|
+
Sc() ? fn(r, e) : t ? r() : mt(r);
|
1075
1075
|
}
|
1076
1076
|
function Ac(r, t, e = {}) {
|
1077
1077
|
const {
|
@@ -1151,11 +1151,11 @@ let Ha = !1;
|
|
1151
1151
|
function xc(r, t, e = {}) {
|
1152
1152
|
const { window: s = vs, ignore: a = [], capture: o = !0, detectIframe: l = !1, controls: i = !1 } = e;
|
1153
1153
|
if (!s)
|
1154
|
-
return i ? { stop:
|
1154
|
+
return i ? { stop: yn, cancel: yn, trigger: yn } : yn;
|
1155
1155
|
if (wc && !Ha) {
|
1156
1156
|
Ha = !0;
|
1157
1157
|
const w = { passive: !0 };
|
1158
|
-
Array.from(s.document.body.children).forEach((S) => S.addEventListener("click",
|
1158
|
+
Array.from(s.document.body.children).forEach((S) => S.addEventListener("click", yn, w)), s.document.documentElement.addEventListener("click", yn, w);
|
1159
1159
|
}
|
1160
1160
|
let u = !0;
|
1161
1161
|
const p = (w) => yt(a).some((S) => {
|
@@ -1215,7 +1215,7 @@ function xc(r, t, e = {}) {
|
|
1215
1215
|
}
|
1216
1216
|
function Ic() {
|
1217
1217
|
const r = wt(!1), t = Ks();
|
1218
|
-
return t &&
|
1218
|
+
return t && fn(() => {
|
1219
1219
|
r.value = !0;
|
1220
1220
|
}, t), r;
|
1221
1221
|
}
|
@@ -2444,7 +2444,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2444
2444
|
R("div", od, [
|
2445
2445
|
c(n(He), {
|
2446
2446
|
size: e.size,
|
2447
|
-
"prefix-icon": n(
|
2447
|
+
"prefix-icon": n(hn),
|
2448
2448
|
clearable: "",
|
2449
2449
|
modelValue: l.value,
|
2450
2450
|
"onUpdate:modelValue": g[0] || (g[0] = (k) => l.value = k),
|
@@ -2465,7 +2465,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2465
2465
|
]));
|
2466
2466
|
}
|
2467
2467
|
}), Me = Il({
|
2468
|
-
loader: () => import("./Editor-
|
2468
|
+
loader: () => import("./Editor-9YNjCbEl.js"),
|
2469
2469
|
loadingComponent: M({
|
2470
2470
|
render() {
|
2471
2471
|
return rn("div", "正在拼命加载...");
|
@@ -3393,7 +3393,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3393
3393
|
"onUpdate:modelValue": g[0] || (g[0] = (k) => o.value = k),
|
3394
3394
|
size: "small",
|
3395
3395
|
clearable: "",
|
3396
|
-
"prefix-icon": n(
|
3396
|
+
"prefix-icon": n(hn),
|
3397
3397
|
placeholder: "筛选可用项"
|
3398
3398
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
3399
3399
|
R("div", yd, [
|
@@ -3538,7 +3538,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3538
3538
|
"onUpdate:modelValue": A[0] || (A[0] = (T) => Tn(o) ? o.value = T : null),
|
3539
3539
|
size: "small",
|
3540
3540
|
clearable: "",
|
3541
|
-
"prefix-icon": n(
|
3541
|
+
"prefix-icon": n(hn),
|
3542
3542
|
placeholder: "筛选可用项"
|
3543
3543
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
3544
3544
|
(d(!0), D(Y, null, oe(n(a), (T) => (d(), D("div", null, [
|
@@ -3831,7 +3831,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3831
3831
|
return S === "uniapp";
|
3832
3832
|
}), f = (S) => {
|
3833
3833
|
const _ = [];
|
3834
|
-
return S.layout || (t.value?.homepage === S.id && _.push("主"), !p.value && S.mask && _.push("母"), !p.value && S.cache && _.push("缓"), !p.value && S.hidden && _.push("隐"),
|
3834
|
+
return S.layout || (t.value?.homepage === S.id && _.push("主"), !p.value && S.mask && _.push("母"), !p.value && S.cache && _.push("缓"), !p.value && S.hidden && _.push("隐"), S.raw && _.push("源")), _;
|
3835
3835
|
}, v = (S) => S.dir || S.layout ? ["add", "edit", "remove"] : S.raw ? ["home", "edit", "remove"] : ["home", "edit", "copy", "remove", "saveToBlock"], m = () => {
|
3836
3836
|
i.value = void 0, l.value = void 0, o.value = !0;
|
3837
3837
|
}, b = async (S) => {
|
@@ -4112,7 +4112,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4112
4112
|
size: "small",
|
4113
4113
|
modelValue: a.value,
|
4114
4114
|
"onUpdate:modelValue": ce[0] || (ce[0] = (N) => a.value = N),
|
4115
|
-
"prefix-icon": n(
|
4115
|
+
"prefix-icon": n(hn),
|
4116
4116
|
placeholder: "搜索区块",
|
4117
4117
|
clearable: ""
|
4118
4118
|
}, null, 8, ["modelValue", "prefix-icon"])
|
@@ -5043,7 +5043,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5043
5043
|
size: "small",
|
5044
5044
|
modelValue: a.value,
|
5045
5045
|
"onUpdate:modelValue": _[0] || (_[0] = (j) => a.value = j),
|
5046
|
-
"prefix-icon": n(
|
5046
|
+
"prefix-icon": n(hn),
|
5047
5047
|
placeholder: "搜索API",
|
5048
5048
|
clearable: ""
|
5049
5049
|
}, null, 8, ["modelValue", "prefix-icon"])
|
@@ -6918,7 +6918,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6918
6918
|
},
|
6919
6919
|
setup(r) {
|
6920
6920
|
const t = r, e = I(() => {
|
6921
|
-
const V = !!
|
6921
|
+
const V = !!vn.get("Meta"), O = [
|
6922
6922
|
{
|
6923
6923
|
label: "API",
|
6924
6924
|
value: "api",
|
@@ -7471,7 +7471,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7471
7471
|
const { selected: t } = Mt(), e = E(), s = I(() => {
|
7472
7472
|
const u = t.value?.model || null;
|
7473
7473
|
return ze(u) ? null : u;
|
7474
|
-
}), a = I(() => s.value?.getPropValue("style") || {}), o = I(() =>
|
7474
|
+
}), a = I(() => s.value?.getPropValue("style") || {}), o = I(() => gn(a.value) ? JSON.stringify({}) : JSON.stringify(Hs(a.value), null, 2)), l = (u) => {
|
7475
7475
|
try {
|
7476
7476
|
const p = Hs(JSON.parse(u));
|
7477
7477
|
s.value?.setProp("style", p);
|
@@ -8793,7 +8793,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8793
8793
|
const t = r, { selected: e } = Mt(), s = I(() => {
|
8794
8794
|
const u = e.value?.model || null;
|
8795
8795
|
return ze(u) ? null : u;
|
8796
|
-
}), a = I(() => s.value?.getPropValue("style") || {}), o = I(() => Hs(a.value)), l = I(() =>
|
8796
|
+
}), a = I(() => s.value?.getPropValue("style") || {}), o = I(() => Hs(a.value)), l = I(() => gn(a.value)), i = (u, p) => {
|
8797
8797
|
const f = s.value?.getPropValue("style") || {};
|
8798
8798
|
p !== void 0 && p !== "" ? f[u] = p : delete f[u], s.value?.setProp("style", f);
|
8799
8799
|
};
|
@@ -9046,7 +9046,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9046
9046
|
}, u = () => {
|
9047
9047
|
s.value = "//vtj.pro/help/index.html", i();
|
9048
9048
|
};
|
9049
|
-
|
9049
|
+
fn(() => {
|
9050
9050
|
o || (o = Dl.service({ target: a.value?.$el }));
|
9051
9051
|
}), Zs(() => {
|
9052
9052
|
p(), o = null;
|
@@ -9629,7 +9629,7 @@ const Mc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9629
9629
|
size: "small",
|
9630
9630
|
modelValue: v.value,
|
9631
9631
|
"onUpdate:modelValue": A[0] || (A[0] = (T) => v.value = T),
|
9632
|
-
"prefix-icon": n(
|
9632
|
+
"prefix-icon": n(hn),
|
9633
9633
|
placeholder: "搜索模板",
|
9634
9634
|
clearable: ""
|
9635
9635
|
}, null, 8, ["modelValue", "prefix-icon"])
|
@@ -11119,8 +11119,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
|
|
11119
11119
|
for (const J in At)
|
11120
11120
|
typeof At[J] == "object" && r(At[J]);
|
11121
11121
|
return Object.assign(C, At), C;
|
11122
|
-
},
|
11123
|
-
return
|
11122
|
+
}, bn = Aa({});
|
11123
|
+
return bn.newInstance = () => Aa({}), Ns = bn, bn.HighlightJS = bn, bn.default = bn, Ns;
|
11124
11124
|
}
|
11125
11125
|
var nv = /* @__PURE__ */ tv();
|
11126
11126
|
const Kn = /* @__PURE__ */ ev(nv);
|
@@ -13504,7 +13504,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
13504
13504
|
const w = o.state.llm || e.models[0].value, S = o.state.getLLMById(w);
|
13505
13505
|
s("jsonSend", { file: b, auto: g, model: w, content: k, llm: S });
|
13506
13506
|
};
|
13507
|
-
return
|
13507
|
+
return fn(async () => {
|
13508
13508
|
const b = await a();
|
13509
13509
|
b?.success && (l.value = b.data);
|
13510
13510
|
}), (b, g) => (d(), D("div", Jv, [
|
@@ -13620,7 +13620,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
13620
13620
|
a("change", l?.getValue(), v);
|
13621
13621
|
}), l.onDidBlurEditorText(u);
|
13622
13622
|
};
|
13623
|
-
return
|
13623
|
+
return fn(() => {
|
13624
13624
|
mt(p);
|
13625
13625
|
}), Zs(() => {
|
13626
13626
|
l && l.dispose();
|
@@ -14025,7 +14025,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
14025
14025
|
title: "隐藏代码块",
|
14026
14026
|
type: "default"
|
14027
14027
|
}), qe = I(() => !tt.value || Nt.value ? "hidden" : "auto");
|
14028
|
-
|
14028
|
+
fn(async () => {
|
14029
14029
|
tt.value = await e();
|
14030
14030
|
});
|
14031
14031
|
const vt = () => {
|
@@ -14276,7 +14276,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
14276
14276
|
// 定义状态
|
14277
14277
|
}
|
14278
14278
|
},
|
14279
|
-
|
14279
|
+
getters: {
|
14280
14280
|
|
14281
14281
|
},
|
14282
14282
|
actions: {
|
@@ -14287,9 +14287,9 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
14287
14287
|
// 在此添加增强代码
|
14288
14288
|
}`, wg = `(config, app) => {
|
14289
14289
|
return config;
|
14290
|
-
|
14290
|
+
}`, _g = `(res, app) => {
|
14291
14291
|
return res;
|
14292
|
-
|
14292
|
+
}`, kg = `(to, from, next, app) => {
|
14293
14293
|
next();
|
14294
14294
|
}`, Sg = `(to, from, failure, app) => {
|
14295
14295
|
|
@@ -14298,8 +14298,8 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
14298
14298
|
// session: false,
|
14299
14299
|
// authKey: 'Authorization',
|
14300
14300
|
// storageKey: 'ACCESS_STORAGE',
|
14301
|
-
// storagePrefix: '__VTJ_',
|
14302
14301
|
// auth: '/#/login',
|
14302
|
+
// whiteList: (to) => true
|
14303
14303
|
// redirectParam: 'r',
|
14304
14304
|
// unauthorizedCode: 401,
|
14305
14305
|
// unauthorizedMessage: '登录已经失效,请重新登录!',
|
@@ -15598,7 +15598,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
15598
15598
|
setup(r, { emit: t }) {
|
15599
15599
|
const e = (u = "") => ({
|
15600
15600
|
type: "JSExpression",
|
15601
|
-
value:
|
15601
|
+
value: gn(u) ? u.value : u
|
15602
15602
|
}), s = r, a = t, o = (u) => st(u, s.context, !0), l = E(e(s.modelValue).value);
|
15603
15603
|
X(
|
15604
15604
|
() => s.modelValue,
|
@@ -15656,7 +15656,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
15656
15656
|
},
|
15657
15657
|
emits: ["change"],
|
15658
15658
|
setup(r, { emit: t }) {
|
15659
|
-
const e = r, s = t, a = I(() =>
|
15659
|
+
const e = r, s = t, a = I(() => gn(e.modelValue) ? void 0 : Number(e.modelValue || 0)), o = (l) => {
|
15660
15660
|
s("change", l);
|
15661
15661
|
};
|
15662
15662
|
return (l, i) => (d(), y(n(Ll), We({
|
@@ -16238,7 +16238,7 @@ const bv = ["innerHTML"], yv = /* @__PURE__ */ M({
|
|
16238
16238
|
R("div", Xg, [
|
16239
16239
|
c(n(He), {
|
16240
16240
|
size: s.size,
|
16241
|
-
"prefix-icon": n(
|
16241
|
+
"prefix-icon": n(hn),
|
16242
16242
|
clearable: "",
|
16243
16243
|
modelValue: l.value,
|
16244
16244
|
"onUpdate:modelValue": g[0] || (g[0] = (k) => l.value = k),
|
@@ -16504,7 +16504,7 @@ class lf {
|
|
16504
16504
|
this.getRemoteWidgets().forEach((e) => this.unregister(e.name));
|
16505
16505
|
}
|
16506
16506
|
}
|
16507
|
-
const
|
16507
|
+
const vn = new lf();
|
16508
16508
|
class rf {
|
16509
16509
|
constructor(t = Ig) {
|
16510
16510
|
this.deps = t;
|
@@ -16673,7 +16673,7 @@ const In = new uf(), an = M({
|
|
16673
16673
|
name: "SkeletonWrapper",
|
16674
16674
|
setup() {
|
16675
16675
|
const r = E(), t = Ne(), e = E({});
|
16676
|
-
return t?.remote ||
|
16676
|
+
return t?.remote || vn.removeRemoteWidgets(), t.options.noMask && vn.unregister("ProjectConfig"), {
|
16677
16677
|
skeletonRef: r,
|
16678
16678
|
engine: t,
|
16679
16679
|
widgets: e
|
@@ -16728,7 +16728,7 @@ const In = new uf(), an = M({
|
|
16728
16728
|
* @returns
|
16729
16729
|
*/
|
16730
16730
|
getWidget(r) {
|
16731
|
-
const t =
|
16731
|
+
const t = vn.get(r);
|
16732
16732
|
if (!t) {
|
16733
16733
|
qt.warn(`widget [ ${r} ] is not exsit`);
|
16734
16734
|
return;
|
@@ -16817,7 +16817,7 @@ const In = new uf(), an = M({
|
|
16817
16817
|
defaultSetter() {
|
16818
16818
|
const { value: r, computedSetters: t } = this;
|
16819
16819
|
let e = typeof r;
|
16820
|
-
e === "object" && (Array.isArray(r) ? e = "array" :
|
16820
|
+
e === "object" && (Array.isArray(r) ? e = "array" : gn(r) ? e = "object" : ho(r) && (e = "function"));
|
16821
16821
|
const s = In.getByType(e) || [];
|
16822
16822
|
return s.length ? (t.find((a) => s.includes(a.name)) || t[0])?.name : t[0]?.name;
|
16823
16823
|
}
|
@@ -17480,7 +17480,7 @@ class ff {
|
|
17480
17480
|
}
|
17481
17481
|
}), f = l.createApp(p);
|
17482
17482
|
return this.install(f, t), Object.assign(
|
17483
|
-
f.config.globalProperties.$route
|
17483
|
+
f.config.globalProperties.$route?.meta || {},
|
17484
17484
|
e.meta || {}
|
17485
17485
|
), f.mount(i), f;
|
17486
17486
|
}
|
@@ -17987,9 +17987,11 @@ class ch extends fo {
|
|
17987
17987
|
s
|
17988
17988
|
);
|
17989
17989
|
const a = await this.service.init(e, !0).catch((o) => (qt.warn("VTJEngine service init fail.", o), null));
|
17990
|
-
a && (s === "uniapp" &&
|
17990
|
+
a && (s === "uniapp" && (vn.set("UniConfig", {
|
17991
17991
|
invisible: !1
|
17992
|
-
}),
|
17992
|
+
}), vn.set("Globals", {
|
17993
|
+
invisible: !0
|
17994
|
+
})), a.dependencies = eo.merge(a.dependencies || [], s), this.project.value = new Zl(a), this.provider.project = this.project.value, this.saveMaterials(), this.triggerReady(), this.report.setProject(this.project.value), this.report.init());
|
17993
17995
|
}
|
17994
17996
|
/**
|
17995
17997
|
* 获取增强配置
|
@@ -18293,7 +18295,7 @@ const wf = /* @__PURE__ */ M({
|
|
18293
18295
|
target: ".v-settings-region",
|
18294
18296
|
title: "组件设置区",
|
18295
18297
|
placement: "left",
|
18296
|
-
description: "
|
18298
|
+
description: "在这里可以对选中的页面或组件进行个性化设置"
|
18297
18299
|
}),
|
18298
18300
|
c(n(sn), {
|
18299
18301
|
target: ".v-toolbar-region",
|
@@ -18361,7 +18363,7 @@ const wf = /* @__PURE__ */ M({
|
|
18361
18363
|
u.value = T.elementWidth.value;
|
18362
18364
|
}
|
18363
18365
|
}, m = E(), b = E(), g = E(), k = E(), w = E(), S = E(), _ = E(), j = E(), V = E(!1), O = E(!1);
|
18364
|
-
return
|
18366
|
+
return fn(async () => {
|
18365
18367
|
s.remote && (await o() || await a()), p();
|
18366
18368
|
}), t({
|
18367
18369
|
brand: m,
|
@@ -18510,7 +18512,7 @@ const wf = /* @__PURE__ */ M({
|
|
18510
18512
|
setup(r, { emit: t }) {
|
18511
18513
|
const e = r, s = t, a = E(!1), o = E(""), l = E(
|
18512
18514
|
e.setters.find((S) => S.name === e.defaultSetter) || e.setters[0]
|
18513
|
-
), i = E(e.value), u = I(() => !!
|
18515
|
+
), i = E(e.value), u = I(() => !!gn(i.value)), p = {
|
18514
18516
|
[l.value.name]: i.value
|
18515
18517
|
}, f = (S) => {
|
18516
18518
|
p[l.value.name] = i.value, l.value = S, i.value = p[S.name] ?? void 0, v(i.value);
|
@@ -18533,7 +18535,7 @@ const wf = /* @__PURE__ */ M({
|
|
18533
18535
|
}, m = () => {
|
18534
18536
|
s("remove", e.name);
|
18535
18537
|
}, b = () => {
|
18536
|
-
a.value = !0, o.value =
|
18538
|
+
a.value = !0, o.value = gn(i.value) ? i.value.value : "";
|
18537
18539
|
}, g = () => {
|
18538
18540
|
a.value = !1, o.value = "";
|
18539
18541
|
}, k = async (S) => st(S, e.context, !0) ? (p[l.value.name] = i.value, i.value = S, s("change", S), !0) : !1, w = async () => {
|
@@ -19099,7 +19101,7 @@ export {
|
|
19099
19101
|
Uu as a,
|
19100
19102
|
af as a0,
|
19101
19103
|
of as a1,
|
19102
|
-
|
19104
|
+
vn as a2,
|
19103
19105
|
eo as a3,
|
19104
19106
|
In as a4,
|
19105
19107
|
cf as a5,
|
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { A as e, x as E, I as t, p as r, o as i, Q as n, T as S, E as _, j as o, F as I, z as T, G as l, k as O, n as p, K as V, g, M as R, a as d, N as A, e as M, U as N, P as D, l as P, R as L, B as u, a6 as K, L as b, D as c, S as B, f as W, i as Y, a8 as m, J as G, h as f, a5 as w, t as x, X as y, m as F, V as U, v as k, b as H, d as C, c as X, y as v, q as J, u as Z, W as h, a7 as z, a9 as j, Z as q, $ as Q, a1 as $, Y as aa, ab as sa, O as ea, a0 as Ea, a3 as ta, C as ra, ae as ia, af as na, ac as Sa, ag as _a, aa as oa, ad as Ia, ah as Ta, r as la, a4 as Oa, s as pa, H as Va, a2 as ga, w as Ra } from "./index-
|
1
|
+
import { A as e, x as E, I as t, p as r, o as i, Q as n, T as S, E as _, j as o, F as I, z as T, G as l, k as O, n as p, K as V, g, M as R, a as d, N as A, e as M, U as N, P as D, l as P, R as L, B as u, a6 as K, L as b, D as c, S as B, f as W, i as Y, a8 as m, J as G, h as f, a5 as w, t as x, X as y, m as F, V as U, v as k, b as H, d as C, c as X, y as v, q as J, u as Z, W as h, a7 as z, a9 as j, Z as q, $ as Q, a1 as $, Y as aa, ab as sa, O as ea, a0 as Ea, a3 as ta, C as ra, ae as ia, af as na, ac as Sa, ag as _a, aa as oa, ad as Ia, ah as Ta, r as la, a4 as Oa, s as pa, H as Va, a2 as ga, w as Ra } from "./index-Bv1s35P3.js";
|
2
2
|
export {
|
3
3
|
e as API_METHOD_TYPES,
|
4
4
|
E as ActionMenu,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/designer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.13.
|
4
|
+
"version": "0.13.6",
|
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/
|
30
|
-
"@vtj/
|
31
|
-
"@vtj/
|
32
|
-
"@vtj/
|
33
|
-
"@vtj/utils": "~0.13.
|
34
|
-
"@vtj/
|
29
|
+
"@vtj/core": "~0.13.6",
|
30
|
+
"@vtj/icons": "~0.13.6",
|
31
|
+
"@vtj/renderer": "~0.13.6",
|
32
|
+
"@vtj/ui": "~0.13.6",
|
33
|
+
"@vtj/utils": "~0.13.6",
|
34
|
+
"@vtj/uni": "~0.13.6"
|
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.13.
|
5
|
+
* @version 0.13.5
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.13.
|
8
|
+
export declare const version = "0.13.5";
|
package/dist/Editor-gUf1Ls8R.js
DELETED