@vtj/designer 0.8.121 → 0.8.122
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.
- package/dist/index.mjs +78 -76
- package/package.json +6 -6
- package/types/version.d.ts +2 -2
- package/types/wrappers/setter.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as S, unref as n, ref as k, reactive as
|
|
2
|
-
import { ElNotification as Ct, ElMessageBox as Vt, ElMessage as
|
|
1
|
+
import { computed as S, unref as n, ref as k, reactive as He, watchEffect as Mn, watch as q, toValue as pt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as O, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as G, readonly as Ln, getCurrentScope as Un, onScopeDispose as qn, onMounted as tt, nextTick as we, getCurrentInstance as Zt, Fragment as T, renderList as W, normalizeClass as H, resolveDynamicComponent as en, createSlots as Hn, withDirectives as Ee, vShow as Ie, renderSlot as xe, withModifiers as Ne, toRaw as Gn, isRef as mt, mergeProps as re, normalizeStyle as Ke, defineAsyncComponent as Xn, h as Te, inject as xt, provide as Qn, normalizeProps as tn, guardReactiveProps as nn, withKeys as Ye, onUnmounted as ln, markRaw as vt, createApp as an, shallowRef as gt, shallowReactive as Kn, triggerRef as Ae, KeepAlive as sn } from "vue";
|
|
2
|
+
import { ElNotification as Ct, ElMessageBox as Vt, ElMessage as Ge, ElButton as ae, ElDivider as At, ElRadioGroup as on, ElRadioButton as Ze, ElButtonGroup as Yn, ElDropdown as rn, ElDropdownMenu as un, ElDropdownItem as ft, ElInput as ye, ElEmpty as se, ElAlert as jt, ElTooltip as cn, ElTag as Zn, ElSwitch as dn, ElTree as Et, ElRow as ht, ElCol as bt, ElCollapse as el, ElCollapseItem as tl, ElDrawer as pn, ElForm as ge, ElFormItem as mn, ElBreadcrumb as nl, ElBreadcrumbItem as ll, ElLoading as al, ElSelect as sl, ElOption as ol, ElInputNumber as rl, ElColorPicker as il, ElUpload as ul, ElSlider as cl, ElConfigProvider as dl, ElContainer as Ft, ElHeader as pl, ElAside as Wt, ElMain as ml, ElFooter as vl } from "element-plus";
|
|
3
3
|
import gl from "element-plus/es/locale/lang/zh-cn";
|
|
4
4
|
import { XIcon as ke, XDialog as Be, XDialogForm as Ve, XField as B, XPanel as nt, XAction as he, XTabs as Pt, XContainer as M, XForm as Dt, XAttachment as fl, XActionBar as hl, XInputUnit as vn, vResizable as Nt, createDialog as bl } from "@vtj/ui";
|
|
5
5
|
import { delay as gn, upperFirstCamelCase as fn, toRawType as ut, cloneDeep as lt, logger as Ce, isPlainObject as yl, fileToBase64 as _l, merge as It, arrayToMap as wl, toArray as kl } from "@vtj/utils";
|
|
6
|
-
import { isBlock as ee, DirectiveModel as hn, createNodeFrom as Sl, BUILT_IN_VUE as xl, BUILT_IN_VUE_ROUTER as Cl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as
|
|
7
|
-
import { parseExpression as
|
|
6
|
+
import { isBlock as ee, DirectiveModel as hn, createNodeFrom as Sl, BUILT_IN_VUE as xl, BUILT_IN_VUE_ROUTER as Cl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as Me, NodeModel as Jt, EVENT_BLOCK_CHANGE as wt, Base as bn, BUILT_IN_LIBRARAY_MAP as Vl, ProjectModel as Al, EVENT_PROJECT_CHANGE as jl, EVENT_PROJECT_BLOCKS_CHANGE as El, EVENT_PROJECT_PAGES_CHANGE as Pl, EVENT_PROJECT_DEPS_CHANGE as Dl, EVENT_PROJECT_PUBLISH as Il, EVENT_PROJECT_FILE_PUBLISH as Bl, EVENT_HISTORY_CHANGE as Rl, EVENT_HISTORY_LOAD as $l, BlockModel as Mt, HistoryModel as Tl } from "@vtj/core";
|
|
7
|
+
import { parseExpression as Le, parseFunction as zl, JSCodeToString as ze, LIFE_CYCLES_LIST as Ol, DATA_TYPES as Fl, isJSExpression as Ue, ContextMode as yn, parseDeps as Wl, createAssetsCss as Nl, createAssetScripts as Lt, getRawComponent as Ut, createSchemaApis as Jl, mockCleanup as Ml, mockApis as Ll, Provider as Ul, isJSFunction as ql } from "@vtj/renderer";
|
|
8
8
|
import { VtjIconBack as Hl, VtjIconPc as Gl, VtjIconPhone as Xl, VtjIconPad as Ql, VtjIconUndo as Kl, VtjIconRedo as Yl, VtjIconPreview as Zl, VtjIconRefresh as ea, VtjIconSetting as _n, icons as kt, ArrowDown as wn, Search as Bt, CopyDocument as ta, Back as na, VtjIconPlus as kn, EditPen as la, Delete as aa, VtjIconSave as sa, ArrowUp as oa, MoreFilled as Rt, VtjIconCheck as Sn, VtjIconCopy as xn, VtjIconEdit as Cn, VtjIconRemove as at, VtjIconLock as Vn, VtjIconUnlock as ra, VtjIconInvisible as An, VtjIconVisible as ia, VtjIconHome as ua, Files as ca, VtjIconSearch as da, VtjIconHelp as jn, VtjIconLayers as En, Rank as pa, VtjIconArrowUp as ma, VtjIconArrowDown as va, IconDisplayBlock as ga, IconDisplayFlex as fa, IconDisplayInlineBlock as ha, IconDisplayInline as ba, IconEyeInvisible as ya, IconFlexDirectionrow as _a, IconFlexDirectionrowReverse as wa, IconFlexDirectioncolumn as ka, IconFlexDirectioncolumnReverse as Sa, IconFlexJustifyflexStartrow as xa, IconFlexJustifyflexEndrow as Ca, IconFlexJustifycenterrow as Va, IconFlexJustifyspaceBetweenrow as Aa, IconFlexJustifyspaceAroundrow as ja, IconFlexAlignflexStartrow as Ea, IconFlexAlignflexEndrow as Pa, IconFlexAligncenterrow as Da, IconFlexAlignbaselinerow as Ia, IconFlexAlignstretchrow as Ba, IconPositionTopLeft as Ra, IconPositionTopRight as $a, IconPositionBottomLeft as Ta, IconPositionBottomRight as za, IconPositionLeft as Oa, IconPositionRight as Fa, IconPositionTop as Wa, IconPositionBottom as Na, IconPositionAll as Ja, IconTextAlignLeft as Ma, IconTextAlignCenter as La, IconTextAlignRight as Ua, IconTextAlignJustify as qa, IconFontStyleNone as Ha, IconFontStyleItalic as Ga, IconCross as Pn, IconTextDecorationUnderline as Xa, IconTextDecorationStrike as Qa, IconTextDecorationOverline as Ka, IconTileXy as Ya, IconTileX as Za, IconTileY as es, IconClose as ts, IconBorderAll as ns, IconBorderLeft as ls, IconBorderTop as as, IconBorderBottom as ss, IconBorderRight as os, IconBorderStyleSolid as rs, IconBorderStyleDashed as is, IconBorderStyleDotted as us, IconCursorAuto as cs, IconCursorPointer as ds, IconCursorNotAllowed as ps, IconCursorNone as ms, ArrowRight as vs, VtjIconDocument as gs, VtjIconComponents as fs, VtjIconBlock as hs, VtjIconOutline as bs, VtjIconHistory as ys, VtjIconApi as _s, VtjIconCategory as ws, VtjIconInfo as ks, HomeFilled as Ss, Plus as xs, Close as Cs, VtjIconVars as Vs, VtjIconSwitch as As, Switch as js } from "@vtj/icons";
|
|
9
9
|
import Es from "mockjs";
|
|
10
10
|
/**!
|
|
11
11
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
12
12
|
* @name @vtj/designer
|
|
13
13
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
14
|
-
* @version 0.8.
|
|
14
|
+
* @version 0.8.122
|
|
15
15
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
16
16
|
*/
|
|
17
|
-
const Ps = "0.8.
|
|
17
|
+
const Ps = "0.8.122", qt = {
|
|
18
18
|
width: 390,
|
|
19
19
|
height: 844
|
|
20
20
|
}, Ht = {
|
|
@@ -80,7 +80,7 @@ function Ts() {
|
|
|
80
80
|
}
|
|
81
81
|
const zs = (u = []) => u.map((e) => e.name);
|
|
82
82
|
function Os() {
|
|
83
|
-
const u = ce(), { components: e, groups: t, componentMap: l } = u.assets, a =
|
|
83
|
+
const u = ce(), { components: e, groups: t, componentMap: l } = u.assets, a = He({}), s = S(() => {
|
|
84
84
|
const m = {};
|
|
85
85
|
return t.value && t.value.forEach((f) => {
|
|
86
86
|
m[f.name] = f;
|
|
@@ -248,7 +248,7 @@ function Js(u, e) {
|
|
|
248
248
|
searchResult: r
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
const
|
|
251
|
+
const Qe = [
|
|
252
252
|
{
|
|
253
253
|
name: "StringSetter",
|
|
254
254
|
label: "文本"
|
|
@@ -273,25 +273,25 @@ function Ms(u) {
|
|
|
273
273
|
const a = S(() => t.value ? [
|
|
274
274
|
{
|
|
275
275
|
name: "key",
|
|
276
|
-
setters:
|
|
276
|
+
setters: Qe,
|
|
277
277
|
value: t.value.getPropValue("key")
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
name: "ref",
|
|
281
|
-
setters:
|
|
281
|
+
setters: Qe,
|
|
282
282
|
value: t.value.getPropValue("ref")
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
name: "class",
|
|
286
286
|
label: "class",
|
|
287
|
-
setters:
|
|
287
|
+
setters: Qe,
|
|
288
288
|
value: t.value.getPropValue("class")
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
name: "children",
|
|
292
292
|
label: "文本",
|
|
293
293
|
title: "如设置组件文本,将清空子组件",
|
|
294
|
-
setters:
|
|
294
|
+
setters: Qe,
|
|
295
295
|
value: Array.isArray(t.value.children) ? "" : t.value.children
|
|
296
296
|
}
|
|
297
297
|
] : []), s = S(() => {
|
|
@@ -335,7 +335,7 @@ async function Oe(u) {
|
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
337
|
function de(u, e = "success") {
|
|
338
|
-
return
|
|
338
|
+
return Ge({
|
|
339
339
|
message: u,
|
|
340
340
|
type: e
|
|
341
341
|
});
|
|
@@ -356,7 +356,7 @@ function oe(u, e, t = !1) {
|
|
|
356
356
|
let l = !0;
|
|
357
357
|
const a = Ls(e);
|
|
358
358
|
try {
|
|
359
|
-
u.type === "JSExpression" ?
|
|
359
|
+
u.type === "JSExpression" ? Le(u, a, t, !0) : zl(u, a, t, !0);
|
|
360
360
|
} catch (s) {
|
|
361
361
|
l = !1, Ct.error({
|
|
362
362
|
title: "代码错误",
|
|
@@ -594,7 +594,7 @@ const Ks = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
594
594
|
"onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
|
|
595
595
|
}, {
|
|
596
596
|
default: h(() => [
|
|
597
|
-
v(n(
|
|
597
|
+
v(n(Ze), {
|
|
598
598
|
label: "pc",
|
|
599
599
|
value: "pc"
|
|
600
600
|
}, {
|
|
@@ -603,7 +603,7 @@ const Ks = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
603
603
|
]),
|
|
604
604
|
_: 1
|
|
605
605
|
}),
|
|
606
|
-
v(n(
|
|
606
|
+
v(n(Ze), {
|
|
607
607
|
label: "mobile",
|
|
608
608
|
value: "mobile"
|
|
609
609
|
}, {
|
|
@@ -612,7 +612,7 @@ const Ks = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
612
612
|
]),
|
|
613
613
|
_: 1
|
|
614
614
|
}),
|
|
615
|
-
v(n(
|
|
615
|
+
v(n(Ze), {
|
|
616
616
|
label: "pad",
|
|
617
617
|
value: "pad"
|
|
618
618
|
}, {
|
|
@@ -762,7 +762,7 @@ function st(u) {
|
|
|
762
762
|
}
|
|
763
763
|
const ot = typeof window < "u" && typeof document < "u";
|
|
764
764
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
765
|
-
const po = Object.prototype.toString, mo = (u) => po.call(u) === "[object Object]",
|
|
765
|
+
const po = Object.prototype.toString, mo = (u) => po.call(u) === "[object Object]", et = () => {
|
|
766
766
|
}, vo = /* @__PURE__ */ go();
|
|
767
767
|
function go() {
|
|
768
768
|
var u, e;
|
|
@@ -812,10 +812,10 @@ function be(u) {
|
|
|
812
812
|
return (e = t?.$el) != null ? e : t;
|
|
813
813
|
}
|
|
814
814
|
const rt = ot ? window : void 0, Rn = ot ? window.navigator : void 0;
|
|
815
|
-
function
|
|
815
|
+
function Je(...u) {
|
|
816
816
|
let e, t, l, a;
|
|
817
817
|
if (typeof u[0] == "string" || Array.isArray(u[0]) ? ([t, l, a] = u, e = rt) : [e, t, l, a] = u, !e)
|
|
818
|
-
return
|
|
818
|
+
return et;
|
|
819
819
|
Array.isArray(t) || (t = [t]), Array.isArray(l) || (l = [l]);
|
|
820
820
|
const s = [], o = () => {
|
|
821
821
|
s.forEach((d) => d()), s.length = 0;
|
|
@@ -839,8 +839,8 @@ let Xt = !1;
|
|
|
839
839
|
function _o(u, e, t = {}) {
|
|
840
840
|
const { window: l = rt, ignore: a = [], capture: s = !0, detectIframe: o = !1 } = t;
|
|
841
841
|
if (!l)
|
|
842
|
-
return
|
|
843
|
-
vo && !Xt && (Xt = !0, Array.from(l.document.body.children).forEach((f) => f.addEventListener("click",
|
|
842
|
+
return et;
|
|
843
|
+
vo && !Xt && (Xt = !0, Array.from(l.document.body.children).forEach((f) => f.addEventListener("click", et)), l.document.documentElement.addEventListener("click", et));
|
|
844
844
|
let r = !0;
|
|
845
845
|
const i = (f) => a.some((b) => {
|
|
846
846
|
if (typeof b == "string")
|
|
@@ -850,7 +850,7 @@ function _o(u, e, t = {}) {
|
|
|
850
850
|
return c && (f.target === c || f.composedPath().includes(c));
|
|
851
851
|
}
|
|
852
852
|
}), d = [
|
|
853
|
-
|
|
853
|
+
Je(l, "click", (f) => {
|
|
854
854
|
const b = be(u);
|
|
855
855
|
if (!(!b || b === f.target || f.composedPath().includes(b))) {
|
|
856
856
|
if (f.detail === 0 && (r = !i(f)), !r) {
|
|
@@ -860,11 +860,11 @@ function _o(u, e, t = {}) {
|
|
|
860
860
|
e(f);
|
|
861
861
|
}
|
|
862
862
|
}, { passive: !0, capture: s }),
|
|
863
|
-
|
|
863
|
+
Je(l, "pointerdown", (f) => {
|
|
864
864
|
const b = be(u);
|
|
865
865
|
r = !i(f) && !!(b && !f.composedPath().includes(b));
|
|
866
866
|
}, { passive: !0 }),
|
|
867
|
-
o &&
|
|
867
|
+
o && Je(l, "blur", (f) => {
|
|
868
868
|
setTimeout(() => {
|
|
869
869
|
var b;
|
|
870
870
|
const c = be(u);
|
|
@@ -896,7 +896,7 @@ function Qt(u, e = {}) {
|
|
|
896
896
|
if (a.value) {
|
|
897
897
|
if (!s)
|
|
898
898
|
try {
|
|
899
|
-
s = await l.permissions.query(o),
|
|
899
|
+
s = await l.permissions.query(o), Je(s, "change", i), i();
|
|
900
900
|
} catch {
|
|
901
901
|
r.value = "prompt";
|
|
902
902
|
}
|
|
@@ -922,7 +922,7 @@ function $n(u = {}) {
|
|
|
922
922
|
d.value = C;
|
|
923
923
|
}) : d.value = w();
|
|
924
924
|
}
|
|
925
|
-
g.value && t &&
|
|
925
|
+
g.value && t && Je(["copy", "cut"], b);
|
|
926
926
|
async function c(C = st(l)) {
|
|
927
927
|
g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : _(C), d.value = C, m.value = !0, f.start());
|
|
928
928
|
}
|
|
@@ -967,7 +967,7 @@ function ko(u, e, t = {}) {
|
|
|
967
967
|
stop: d
|
|
968
968
|
};
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function qe(u, e = { width: 0, height: 0 }, t = {}) {
|
|
971
971
|
const { window: l = rt, box: a = "content-box" } = t, s = S(() => {
|
|
972
972
|
var m, f;
|
|
973
973
|
return (f = (m = be(u)) == null ? void 0 : m.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
@@ -1115,7 +1115,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
1115
1115
|
], r = (m) => {
|
|
1116
1116
|
s.value && (s.value.name = fn(m));
|
|
1117
1117
|
}, i = async (m) => t.value?.existPageName(m.name, [m.id]) ? (ne("页面名称已存在,请更换"), !1) : (e.item ? t.value?.updatePage(m) : t.value?.createPage(m, e.parentId), !0), { copy: g } = $n({}), d = (m) => {
|
|
1118
|
-
g(m),
|
|
1118
|
+
g(m), Ge.success({
|
|
1119
1119
|
message: "已经复制到粘贴板"
|
|
1120
1120
|
});
|
|
1121
1121
|
};
|
|
@@ -1586,7 +1586,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
1586
1586
|
}),
|
|
1587
1587
|
v(n(M), {
|
|
1588
1588
|
class: "v-item__actions",
|
|
1589
|
-
onClick: m[1] || (m[1] =
|
|
1589
|
+
onClick: m[1] || (m[1] = Ne(() => {
|
|
1590
1590
|
}, ["stop"]))
|
|
1591
1591
|
}, {
|
|
1592
1592
|
default: h(() => [
|
|
@@ -1793,7 +1793,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
1793
1793
|
}, _ = (x) => {
|
|
1794
1794
|
l("pick", x);
|
|
1795
1795
|
}, w = (x) => {
|
|
1796
|
-
o(x),
|
|
1796
|
+
o(x), Ge.success({
|
|
1797
1797
|
message: "已经复制到粘贴板"
|
|
1798
1798
|
});
|
|
1799
1799
|
};
|
|
@@ -2040,7 +2040,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
2040
2040
|
});
|
|
2041
2041
|
return (s, o) => (p(), j("div", {
|
|
2042
2042
|
class: H(["v-viewport", t.value]),
|
|
2043
|
-
style:
|
|
2043
|
+
style: Ke(a.value)
|
|
2044
2044
|
}, [
|
|
2045
2045
|
xe(s.$slots, "default")
|
|
2046
2046
|
], 6));
|
|
@@ -2598,7 +2598,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
2598
2598
|
F,
|
|
2599
2599
|
L
|
|
2600
2600
|
)) {
|
|
2601
|
-
t.value?.setDropping(null), d(),
|
|
2601
|
+
t.value?.setDropping(null), d(), Ge.warning({
|
|
2602
2602
|
message: `${X.model.name}不能放置到该位置`
|
|
2603
2603
|
}), t.value?.setDragging(null);
|
|
2604
2604
|
return;
|
|
@@ -2991,7 +2991,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
2991
2991
|
e.model ? [o.value.id] : []
|
|
2992
2992
|
) ? (ne(`API名称 [ ${o.value.name} ] 已存在`), !1) : o.value.headers && !oe(o.value.headers, window) || o.value.mockTemplate && !oe(o.value.mockTemplate, window) ? !1 : (e.project?.setApi(o.value), a.value?.close(), !0), c = () => {
|
|
2993
2993
|
if (o.value.mockTemplate) {
|
|
2994
|
-
const _ =
|
|
2994
|
+
const _ = Le(
|
|
2995
2995
|
o.value.mockTemplate,
|
|
2996
2996
|
{},
|
|
2997
2997
|
!0
|
|
@@ -3239,6 +3239,8 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3239
3239
|
}, b = (c, _) => {
|
|
3240
3240
|
_.name === "edit" && (s.value = {
|
|
3241
3241
|
...c,
|
|
3242
|
+
enabled: !0,
|
|
3243
|
+
official: !1,
|
|
3242
3244
|
urls: c.urls.join(`
|
|
3243
3245
|
`)
|
|
3244
3246
|
}, a.value = !1, l.value = !0), _.name === "remove" && t.project.value?.removeDeps(c);
|
|
@@ -3399,7 +3401,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3399
3401
|
inheritAttrs: !1,
|
|
3400
3402
|
__name: "index",
|
|
3401
3403
|
setup(u, { expose: e }) {
|
|
3402
|
-
const t = k(), l = k(), { width: a, height: s } =
|
|
3404
|
+
const t = k(), l = k(), { width: a, height: s } = qe(t), { dependencies: o, engine: r, apis: i, meta: g } = Dn(), { current: d, isEmpty: m } = ie(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = Fs(
|
|
3403
3405
|
l,
|
|
3404
3406
|
o,
|
|
3405
3407
|
i,
|
|
@@ -3459,12 +3461,12 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3459
3461
|
n(w) ? (p(), j("div", {
|
|
3460
3462
|
key: 0,
|
|
3461
3463
|
class: H(["v-designer__dropping", "is-inner"]),
|
|
3462
|
-
style:
|
|
3464
|
+
style: Ke(n(w).style)
|
|
3463
3465
|
}, null, 4)) : A("", !0),
|
|
3464
3466
|
n(_) ? (p(), j("div", {
|
|
3465
3467
|
key: 1,
|
|
3466
3468
|
class: "v-designer__hover",
|
|
3467
|
-
style:
|
|
3469
|
+
style: Ke(n(_).style)
|
|
3468
3470
|
}, [
|
|
3469
3471
|
V("span", {
|
|
3470
3472
|
class: H(`is-${n(_).position}`)
|
|
@@ -3476,7 +3478,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3476
3478
|
n(x) ? (p(), j("div", {
|
|
3477
3479
|
key: 2,
|
|
3478
3480
|
class: "v-designer__selected",
|
|
3479
|
-
style:
|
|
3481
|
+
style: Ke(n(x).style)
|
|
3480
3482
|
}, [
|
|
3481
3483
|
v(lr, {
|
|
3482
3484
|
position: n(x).position,
|
|
@@ -3497,7 +3499,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3497
3499
|
n(d) && n(m) ? (p(), j("div", ar, " 您可以拖拽组件放置到这里 ")) : A("", !0)
|
|
3498
3500
|
], 512));
|
|
3499
3501
|
}
|
|
3500
|
-
}),
|
|
3502
|
+
}), Xe = /* @__PURE__ */ E({
|
|
3501
3503
|
__name: "group",
|
|
3502
3504
|
props: {
|
|
3503
3505
|
context: {},
|
|
@@ -3621,7 +3623,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3621
3623
|
};
|
|
3622
3624
|
return oe(d, e.context, !0) ? (e.current?.setState(i, d), !0) : !1;
|
|
3623
3625
|
};
|
|
3624
|
-
return (o, r) => (p(), y(
|
|
3626
|
+
return (o, r) => (p(), y(Xe, {
|
|
3625
3627
|
title: "状态数据",
|
|
3626
3628
|
current: e.current,
|
|
3627
3629
|
context: e.context,
|
|
@@ -3653,7 +3655,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3653
3655
|
};
|
|
3654
3656
|
return oe(d, e.context, !0) ? (e.current?.setFunction("computed", i, d), !0) : !1;
|
|
3655
3657
|
};
|
|
3656
|
-
return (o, r) => (p(), y(
|
|
3658
|
+
return (o, r) => (p(), y(Xe, {
|
|
3657
3659
|
title: "计算属性",
|
|
3658
3660
|
current: e.current,
|
|
3659
3661
|
context: e.context,
|
|
@@ -3685,7 +3687,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3685
3687
|
};
|
|
3686
3688
|
return oe(d, e.context, !0) ? (e.current?.setFunction("methods", i, d), !0) : !1;
|
|
3687
3689
|
};
|
|
3688
|
-
return (o, r) => (p(), y(
|
|
3690
|
+
return (o, r) => (p(), y(Xe, {
|
|
3689
3691
|
title: "组件方法",
|
|
3690
3692
|
current: e.current,
|
|
3691
3693
|
context: e.context,
|
|
@@ -3720,7 +3722,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3720
3722
|
};
|
|
3721
3723
|
return oe(m, e.context, !0) ? (e.current?.setFunction("lifeCycles", g, m), !0) : !1;
|
|
3722
3724
|
};
|
|
3723
|
-
return (r, i) => (p(), y(
|
|
3725
|
+
return (r, i) => (p(), y(Xe, {
|
|
3724
3726
|
title: "生命周期",
|
|
3725
3727
|
current: e.current,
|
|
3726
3728
|
context: e.context,
|
|
@@ -3794,7 +3796,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3794
3796
|
};
|
|
3795
3797
|
return e.current?.setWatch(m), !0;
|
|
3796
3798
|
};
|
|
3797
|
-
return (r, i) => (p(), y(
|
|
3799
|
+
return (r, i) => (p(), y(Xe, {
|
|
3798
3800
|
title: "侦听器",
|
|
3799
3801
|
current: e.current,
|
|
3800
3802
|
context: e.context,
|
|
@@ -3924,7 +3926,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
3924
3926
|
size: "small",
|
|
3925
3927
|
"label-position": "right",
|
|
3926
3928
|
"label-width": r.value,
|
|
3927
|
-
onKeydown: g[0] || (g[0] =
|
|
3929
|
+
onKeydown: g[0] || (g[0] = Ye(Ne(() => {
|
|
3928
3930
|
}, ["prevent", "stop"]), ["enter"]))
|
|
3929
3931
|
}, {
|
|
3930
3932
|
default: h(() => [
|
|
@@ -4041,7 +4043,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
4041
4043
|
value: {}
|
|
4042
4044
|
},
|
|
4043
4045
|
setup(u) {
|
|
4044
|
-
const e = u, t = k(), l =
|
|
4046
|
+
const e = u, t = k(), l = He({
|
|
4045
4047
|
type: "JSExpression",
|
|
4046
4048
|
value: e.value
|
|
4047
4049
|
}), a = (s) => {
|
|
@@ -4088,7 +4090,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
4088
4090
|
event: {}
|
|
4089
4091
|
},
|
|
4090
4092
|
setup(u) {
|
|
4091
|
-
const e = u, t = k(), a =
|
|
4093
|
+
const e = u, t = k(), a = He({
|
|
4092
4094
|
name: e.name,
|
|
4093
4095
|
...e.event,
|
|
4094
4096
|
modifiers: Object.keys(e.event?.modifiers || {}),
|
|
@@ -4298,7 +4300,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
4298
4300
|
onValueChange: g,
|
|
4299
4301
|
onForChange: d,
|
|
4300
4302
|
onModelChange: m
|
|
4301
|
-
} = Xs(l), f = (b) => b.arg ? typeof b.arg == "string" ? b.arg :
|
|
4303
|
+
} = Xs(l), f = (b) => b.arg ? typeof b.arg == "string" ? b.arg : Le(b.arg, {}) : "modelValue";
|
|
4302
4304
|
return (b, c) => (p(), y(n(M), {
|
|
4303
4305
|
class: "v-directives-widget",
|
|
4304
4306
|
direction: "column",
|
|
@@ -4315,7 +4317,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
4315
4317
|
v(n(ge), {
|
|
4316
4318
|
size: "small",
|
|
4317
4319
|
"label-width": "80px",
|
|
4318
|
-
onKeydown: c[0] || (c[0] =
|
|
4320
|
+
onKeydown: c[0] || (c[0] = Ye(Ne(() => {
|
|
4319
4321
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4320
4322
|
}, {
|
|
4321
4323
|
default: h(() => [
|
|
@@ -4362,7 +4364,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
4362
4364
|
v(n(ge), {
|
|
4363
4365
|
size: "small",
|
|
4364
4366
|
"label-width": "80px",
|
|
4365
|
-
onKeydown: c[1] || (c[1] =
|
|
4367
|
+
onKeydown: c[1] || (c[1] = Ye(Ne(() => {
|
|
4366
4368
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4367
4369
|
}, {
|
|
4368
4370
|
default: h(() => [
|
|
@@ -4426,7 +4428,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
4426
4428
|
v(n(ge), {
|
|
4427
4429
|
size: "small",
|
|
4428
4430
|
"label-width": "60px",
|
|
4429
|
-
onKeydown: c[2] || (c[2] =
|
|
4431
|
+
onKeydown: c[2] || (c[2] = Ye(Ne(() => {
|
|
4430
4432
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4431
4433
|
}, {
|
|
4432
4434
|
default: h(() => [
|
|
@@ -4981,9 +4983,9 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
4981
4983
|
if ($)
|
|
4982
4984
|
return await $.apply($, z);
|
|
4983
4985
|
Ce.warn(`API【${o.value.ref}】不存在`);
|
|
4984
|
-
}, C =
|
|
4986
|
+
}, C = Le(o.value.test, {
|
|
4985
4987
|
runApi: x
|
|
4986
|
-
}), I = o.value.transform?.value ?
|
|
4988
|
+
}), I = o.value.transform?.value ? Le(o.value.transform, {}, !0) : (z) => z;
|
|
4987
4989
|
r.value = !0;
|
|
4988
4990
|
try {
|
|
4989
4991
|
const z = await C();
|
|
@@ -5559,7 +5561,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
5559
5561
|
setStyle: { type: Function }
|
|
5560
5562
|
},
|
|
5561
5563
|
setup(u) {
|
|
5562
|
-
const e = u, t = k(), l = k(), { width: a, height: s } =
|
|
5564
|
+
const e = u, t = k(), l = k(), { width: a, height: s } = qe(t), { width: o, height: r } = qe(l), i = k(!1), g = k(), d = k(), m = () => {
|
|
5563
5565
|
i.value = !1, g.value = void 0, d.value = void 0;
|
|
5564
5566
|
}, f = (b) => {
|
|
5565
5567
|
g.value = b, d.value = e.styleJson[b], i.value = !0;
|
|
@@ -5990,7 +5992,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
5990
5992
|
setStyle: { type: Function }
|
|
5991
5993
|
},
|
|
5992
5994
|
setup(u) {
|
|
5993
|
-
const e = u, t = k(), { width: l, height: a } =
|
|
5995
|
+
const e = u, t = k(), { width: l, height: a } = qe(t), s = k(!1), o = k(), r = k(), i = [
|
|
5994
5996
|
{ label: "静态", value: "static" },
|
|
5995
5997
|
{ label: "相对", value: "relative" },
|
|
5996
5998
|
{ label: "绝对", value: "absolute" },
|
|
@@ -6751,7 +6753,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
6751
6753
|
path: { type: Function }
|
|
6752
6754
|
},
|
|
6753
6755
|
setup(u, { expose: e }) {
|
|
6754
|
-
const t = u, l = k(), a = k(Symbol()), { current: s, engine: o } = ie(), { width: r, height: i } =
|
|
6756
|
+
const t = u, l = k(), a = k(Symbol()), { current: s, engine: o } = ie(), { width: r, height: i } = qe(l), g = S(() => s.value && t.path ? t.path(s.value) : null), d = S(() => o.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
|
|
6755
6757
|
return e({
|
|
6756
6758
|
refresh: () => {
|
|
6757
6759
|
a.value = Symbol();
|
|
@@ -7890,7 +7892,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
7890
7892
|
setup(u, { emit: e }) {
|
|
7891
7893
|
const t = (i = "") => ({
|
|
7892
7894
|
type: "JSExpression",
|
|
7893
|
-
value:
|
|
7895
|
+
value: Ue(i) ? i.value : i
|
|
7894
7896
|
}), l = u, a = e, s = (i) => oe(i, l.context, !0), o = k(t(l.modelValue).value);
|
|
7895
7897
|
q(
|
|
7896
7898
|
() => l.modelValue,
|
|
@@ -7949,7 +7951,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
7949
7951
|
},
|
|
7950
7952
|
emits: ["change"],
|
|
7951
7953
|
setup(u, { emit: e }) {
|
|
7952
|
-
const t = u, l = e, a = S(() =>
|
|
7954
|
+
const t = u, l = e, a = S(() => Ue(t.modelValue) ? void 0 : Number(t.modelValue || 0)), s = (o) => {
|
|
7953
7955
|
l("change", o);
|
|
7954
7956
|
};
|
|
7955
7957
|
return (o, r) => (p(), y(n(rl), re({
|
|
@@ -8136,7 +8138,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
8136
8138
|
size: "small"
|
|
8137
8139
|
}, t.$attrs), {
|
|
8138
8140
|
default: h(() => [
|
|
8139
|
-
(p(!0), j(T, null, W(e.options, (a) => (p(), y(n(
|
|
8141
|
+
(p(!0), j(T, null, W(e.options, (a) => (p(), y(n(Ze), {
|
|
8140
8142
|
label: a.label,
|
|
8141
8143
|
value: a.value,
|
|
8142
8144
|
title: a.label
|
|
@@ -8228,7 +8230,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
|
|
|
8228
8230
|
setup(u, { emit: e }) {
|
|
8229
8231
|
const t = u, l = e, a = k([]), s = S(() => a.value.length < t.limit), o = (i) => i.type.includes("image") ? (_l(i).then((g) => {
|
|
8230
8232
|
a.value = [{ name: i.name, url: g }];
|
|
8231
|
-
}), !1) : (
|
|
8233
|
+
}), !1) : (Ge.error("只能上传图片"), !1), r = () => {
|
|
8232
8234
|
a.value = [];
|
|
8233
8235
|
};
|
|
8234
8236
|
return q(
|
|
@@ -8635,7 +8637,7 @@ class bu {
|
|
|
8635
8637
|
return Object.values(this.setters).filter((l) => l.type === e).map((l) => l.name);
|
|
8636
8638
|
}
|
|
8637
8639
|
}
|
|
8638
|
-
const
|
|
8640
|
+
const We = new bu();
|
|
8639
8641
|
function yu(u) {
|
|
8640
8642
|
return new Promise((e, t) => {
|
|
8641
8643
|
const l = an(zo, {
|
|
@@ -8679,7 +8681,7 @@ class _u {
|
|
|
8679
8681
|
), te.on(
|
|
8680
8682
|
_t,
|
|
8681
8683
|
this.bind(this.onActiveChange, "onActiveChange")
|
|
8682
|
-
), te.on(
|
|
8684
|
+
), te.on(Me, this.bind(this.onViewChange, "onViewChange"));
|
|
8683
8685
|
}
|
|
8684
8686
|
unbindEvents(e, t) {
|
|
8685
8687
|
t.removeEventListener(
|
|
@@ -8698,7 +8700,7 @@ class _u {
|
|
|
8698
8700
|
_t,
|
|
8699
8701
|
this.bind(this.onActiveChange, "onActiveChange")
|
|
8700
8702
|
), te.off(
|
|
8701
|
-
|
|
8703
|
+
Me,
|
|
8702
8704
|
this.bind(this.onViewChange, "onViewChange")
|
|
8703
8705
|
);
|
|
8704
8706
|
}
|
|
@@ -8973,7 +8975,7 @@ class wu {
|
|
|
8973
8975
|
} catch (f) {
|
|
8974
8976
|
ne(f.message || "未知错误", "运行时错误"), console.error(f);
|
|
8975
8977
|
}
|
|
8976
|
-
this.context = d, te.on(
|
|
8978
|
+
this.context = d, te.on(Me, this.nodeChange), te.on(wt, this.blockChange);
|
|
8977
8979
|
}
|
|
8978
8980
|
dispose() {
|
|
8979
8981
|
if (this.app) {
|
|
@@ -8981,7 +8983,7 @@ class wu {
|
|
|
8981
8983
|
const e = this.app._container;
|
|
8982
8984
|
e && e.parentNode && (e.parentNode.removeChild(e), this.app._container = null), this.app = null;
|
|
8983
8985
|
}
|
|
8984
|
-
this.dsl = null, this.context = null, te.off(
|
|
8986
|
+
this.dsl = null, this.context = null, te.off(Me, this.nodeChange), te.off(wt, this.blockChange);
|
|
8985
8987
|
}
|
|
8986
8988
|
updateChild(e, t) {
|
|
8987
8989
|
const l = t.children || t.nodes || [];
|
|
@@ -9204,7 +9206,7 @@ class Su {
|
|
|
9204
9206
|
let b = [];
|
|
9205
9207
|
for (const c of f)
|
|
9206
9208
|
b = b.concat(
|
|
9207
|
-
|
|
9209
|
+
We.getByType(c)
|
|
9208
9210
|
);
|
|
9209
9211
|
return b;
|
|
9210
9212
|
}, d = {
|
|
@@ -9289,7 +9291,7 @@ class rc extends bn {
|
|
|
9289
9291
|
Ce.warn("VTJEngine constructor param [ container ] is undefined");
|
|
9290
9292
|
}
|
|
9291
9293
|
bindEvents() {
|
|
9292
|
-
te.on(jl, (e) => this.saveProject(e)), te.on(El, (e) => this.saveBlockFile(e)), te.on(Pl, (e) => this.saveBlockFile(e)), te.on(Dl, () => this.saveMaterials()), te.on(_t, (e) => this.activeFile(e)), te.on(Il, () => this.publish()), te.on(Bl, () => this.publishCurrent()), te.on(wt, (e) => this.changeFile(e)), te.on(
|
|
9294
|
+
te.on(jl, (e) => this.saveProject(e)), te.on(El, (e) => this.saveBlockFile(e)), te.on(Pl, (e) => this.saveBlockFile(e)), te.on(Dl, () => this.saveMaterials()), te.on(_t, (e) => this.activeFile(e)), te.on(Il, () => this.publish()), te.on(Bl, () => this.publishCurrent()), te.on(wt, (e) => this.changeFile(e)), te.on(Me, () => this.changeCurrentFile()), te.on(Rl, (e) => this.saveHistory(e)), te.on($l, (e) => this.loadHistory(e));
|
|
9293
9295
|
}
|
|
9294
9296
|
async activeFile(e) {
|
|
9295
9297
|
await we();
|
|
@@ -9559,7 +9561,7 @@ const je = E({
|
|
|
9559
9561
|
type: [String, Object, Array],
|
|
9560
9562
|
required: !0,
|
|
9561
9563
|
default() {
|
|
9562
|
-
return [];
|
|
9564
|
+
return [We.defaultSetter];
|
|
9563
9565
|
}
|
|
9564
9566
|
},
|
|
9565
9567
|
options: {
|
|
@@ -9608,8 +9610,8 @@ const je = E({
|
|
|
9608
9610
|
defaultSetter() {
|
|
9609
9611
|
const { value: u, computedSetters: e } = this;
|
|
9610
9612
|
let t = typeof u;
|
|
9611
|
-
t === "Object" && (Array.isArray(u) ? t = "Array" :
|
|
9612
|
-
const l =
|
|
9613
|
+
t === "Object" && (Array.isArray(u) ? t = "Array" : Ue(u) ? t = "Object" : ql(u) && (t = "Function"));
|
|
9614
|
+
const l = We.getByType(t) || [];
|
|
9613
9615
|
return l.length ? (e.find((a) => l.includes(a.name)) || e[0])?.name : e[0]?.name;
|
|
9614
9616
|
}
|
|
9615
9617
|
},
|
|
@@ -9648,7 +9650,7 @@ const je = E({
|
|
|
9648
9650
|
emits: ["change", "remove"],
|
|
9649
9651
|
methods: {
|
|
9650
9652
|
getSetter(u) {
|
|
9651
|
-
return typeof u == "string" ?
|
|
9653
|
+
return typeof u == "string" ? We.get(u) || We.defaultSetter : u;
|
|
9652
9654
|
},
|
|
9653
9655
|
changeValue(u) {
|
|
9654
9656
|
this.$emit("change", this.name, u);
|
|
@@ -9832,7 +9834,7 @@ const je = E({
|
|
|
9832
9834
|
setup(u, { emit: e }) {
|
|
9833
9835
|
const t = u, l = e, a = k(!1), s = k(""), o = k(
|
|
9834
9836
|
t.setters.find((x) => x.name === t.defaultSetter) || t.setters[0]
|
|
9835
|
-
), r = k(t.value), i = S(() => !!
|
|
9837
|
+
), r = k(t.value), i = S(() => !!Ue(r.value)), g = {
|
|
9836
9838
|
[o.value.name]: r.value
|
|
9837
9839
|
}, d = (x) => {
|
|
9838
9840
|
g[o.value.name] = r.value, o.value = x, r.value = g[x.name] ?? void 0, m(r.value);
|
|
@@ -9855,7 +9857,7 @@ const je = E({
|
|
|
9855
9857
|
}, f = () => {
|
|
9856
9858
|
l("remove", t.name);
|
|
9857
9859
|
}, b = () => {
|
|
9858
|
-
a.value = !0, s.value =
|
|
9860
|
+
a.value = !0, s.value = Ue(r.value) ? r.value.value : "";
|
|
9859
9861
|
}, c = () => {
|
|
9860
9862
|
a.value = !1, s.value = "";
|
|
9861
9863
|
}, _ = async (x) => oe(x, t.context, !0) ? (g[o.value.name] = r.value, r.value = x, l("change", x), !0) : !1, w = async () => {
|
|
@@ -10119,7 +10121,7 @@ const je = E({
|
|
|
10119
10121
|
region: {}
|
|
10120
10122
|
},
|
|
10121
10123
|
setup(u, { expose: e }) {
|
|
10122
|
-
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region), s =
|
|
10124
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region), s = He(
|
|
10123
10125
|
l.value.map((c) => ({
|
|
10124
10126
|
name: c.name,
|
|
10125
10127
|
command: c.name,
|
|
@@ -10346,7 +10348,7 @@ const je = E({
|
|
|
10346
10348
|
region: {}
|
|
10347
10349
|
},
|
|
10348
10350
|
setup(u, { expose: e }) {
|
|
10349
|
-
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region), s =
|
|
10351
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region), s = He(
|
|
10350
10352
|
l.value.map((i) => ({
|
|
10351
10353
|
name: i.name,
|
|
10352
10354
|
command: i.name,
|
|
@@ -10442,7 +10444,7 @@ export {
|
|
|
10442
10444
|
ne as notify,
|
|
10443
10445
|
Ls as proxyContext,
|
|
10444
10446
|
Yt as regions,
|
|
10445
|
-
|
|
10447
|
+
We as setterManager,
|
|
10446
10448
|
Z as setters,
|
|
10447
10449
|
ce as useEngine,
|
|
10448
10450
|
Nn as widgetManager,
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.122",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"mockjs": "~1.1.0",
|
|
8
8
|
"monaco-editor": "~0.48.0",
|
|
9
|
-
"@vtj/
|
|
10
|
-
"@vtj/
|
|
11
|
-
"@vtj/
|
|
12
|
-
"@vtj/
|
|
13
|
-
"@vtj/
|
|
9
|
+
"@vtj/icons": "~0.8.122",
|
|
10
|
+
"@vtj/core": "~0.8.122",
|
|
11
|
+
"@vtj/ui": "~0.8.122",
|
|
12
|
+
"@vtj/renderer": "~0.8.122",
|
|
13
|
+
"@vtj/utils": "~0.8.122"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/mockjs": "~1.0.10",
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.121
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.121";
|
|
@@ -22,7 +22,7 @@ export declare const SetterWrapper: DefineComponent<{
|
|
|
22
22
|
setters: {
|
|
23
23
|
type: PropType<string | MaterialSetter | Array<string | MaterialSetter>>;
|
|
24
24
|
required: true;
|
|
25
|
-
default():
|
|
25
|
+
default(): Setter[];
|
|
26
26
|
};
|
|
27
27
|
options: {
|
|
28
28
|
type: ArrayConstructor;
|
|
@@ -68,7 +68,7 @@ export declare const SetterWrapper: DefineComponent<{
|
|
|
68
68
|
setters: {
|
|
69
69
|
type: PropType<string | MaterialSetter | Array<string | MaterialSetter>>;
|
|
70
70
|
required: true;
|
|
71
|
-
default():
|
|
71
|
+
default(): Setter[];
|
|
72
72
|
};
|
|
73
73
|
options: {
|
|
74
74
|
type: ArrayConstructor;
|