@vtj/designer 0.8.145 → 0.8.146
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 +132 -129
- package/package.json +6 -6
- package/types/framework/designer.d.ts +1 -0
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
var Hn = Object.defineProperty;
|
2
2
|
var qn = (u, e, t) => e in u ? Hn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
|
3
3
|
var $ = (u, e, t) => qn(u, typeof e != "symbol" ? e + "" : e, t);
|
4
|
-
import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as b, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as
|
5
|
-
import { ElNotification as Vt, ElMessageBox as At, ElMessage as Qe, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Dt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as
|
4
|
+
import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as b, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as W, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as De, vShow as Te, renderSlot as Ce, withModifiers as Je, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
|
5
|
+
import { ElNotification as Vt, ElMessageBox as At, ElMessage as Qe, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Dt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as Wt, ElHeader as fl, ElAside as Nt, ElMain as hl, ElFooter as bl } from "element-plus";
|
6
6
|
import yl from "element-plus/es/locale/lang/zh-cn";
|
7
7
|
import { XIcon as Se, XDialog as Be, XDialogForm as Ae, XField as T, XPanel as at, XAction as be, XTabs as Pt, XContainer as U, XForm as It, XAttachment as _l, XActionBar as wl, XInputUnit as bn, vResizable as Jt, createDialog as kl } from "@vtj/ui";
|
8
8
|
import { delay as Tt, upperFirstCamelCase as yn, toRawType as dt, cloneDeep as ot, logger as Ve, isPlainObject as Sl, fileToBase64 as xl, merge as Bt, debounce as Cl, arrayToMap as Vl, toArray as Al } from "@vtj/utils";
|
9
|
-
import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Dl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as He, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Pl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Tl, EVENT_PROJECT_BLOCKS_CHANGE as Bl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as
|
9
|
+
import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Dl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as He, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Pl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Tl, EVENT_PROJECT_BLOCKS_CHANGE as Bl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as Ll, BlockModel as Ut, HistoryModel as Wl } from "@vtj/core";
|
10
10
|
import { parseExpression as qe, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as Ge, ContextMode as kn, parseDeps as Ul, createAssetsCss as Hl, createAssetScripts as Ht, getRawComponent as qt, createSchemaApis as ql, mockCleanup as Gl, mockApis as Xl, Provider as Kl, isJSFunction as Ql } from "@vtj/renderer";
|
11
|
-
import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Dn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Pn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ds, IconFlexJustifycenterrow as Ps, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Ts, IconFlexAlignflexStartrow as Bs, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as
|
11
|
+
import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Dn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Pn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ds, IconFlexJustifycenterrow as Ps, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Ts, IconFlexAlignflexStartrow as Bs, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as Ls, IconPositionBottomLeft as Ws, IconPositionBottomRight as Ns, IconPositionLeft as Js, IconPositionRight as Ms, IconPositionTop as Us, IconPositionBottom as Hs, IconPositionAll as qs, IconTextAlignLeft as Gs, IconTextAlignCenter as Xs, IconTextAlignRight as Ks, IconTextAlignJustify as Qs, IconFontStyleNone as Ys, IconFontStyleItalic as Zs, IconCross as Tn, IconTextDecorationUnderline as ea, IconTextDecorationStrike as ta, IconTextDecorationOverline as na, IconTileXy as la, IconTileX as sa, IconTileY as aa, IconClose as oa, IconBorderAll as ra, IconBorderLeft as ia, IconBorderTop as ua, IconBorderBottom as ca, IconBorderRight as da, IconBorderStyleSolid as pa, IconBorderStyleDashed as ma, IconBorderStyleDotted as va, IconCursorAuto as ga, IconCursorPointer as fa, IconCursorNotAllowed as ha, IconCursorNone as ba, ArrowRight as ya, VtjIconDocument as _a, VtjIconComponents as wa, VtjIconBlock as ka, VtjIconOutline as Sa, VtjIconHistory as xa, VtjIconApi as Ca, VtjIconCategory as Va, VtjIconInfo as Aa, HomeFilled as ja, Plus as Ea, Close as Da, VtjIconVars as Pa, VtjIconSwitch as Ia, Switch as Ta } from "@vtj/icons";
|
12
12
|
import Ba from "mockjs";
|
13
13
|
/**!
|
14
14
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
15
15
|
* @name @vtj/designer
|
16
16
|
* @author CHC chenhuachun1549@dingtalk.com
|
17
|
-
* @version 0.8.
|
17
|
+
* @version 0.8.146
|
18
18
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
19
19
|
*/
|
20
|
-
const Ra = "0.8.
|
20
|
+
const Ra = "0.8.146", Gt = {
|
21
21
|
width: 390,
|
22
22
|
height: 844
|
23
23
|
}, Xt = {
|
@@ -46,7 +46,7 @@ const Ra = "0.8.145", Gt = {
|
|
46
46
|
"self",
|
47
47
|
"once",
|
48
48
|
"passive"
|
49
|
-
], Kt = "__vue-devtools-frame-state__",
|
49
|
+
], Kt = "__vue-devtools-frame-state__", La = "@id/virtual:vue-devtools-path:overlay.js", Wa = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs";
|
50
50
|
var he = /* @__PURE__ */ ((u) => (u.Block = "block", u.Node = "node", u))(he || {}), Na = /* @__PURE__ */ ((u) => (u.Brand = "Brand", u.Toolbar = "Toolbar", u.Actions = "Actions", u.Apps = "Apps", u.Workspace = "Workspace", u.Settings = "Settings", u.Status = "Status", u.Preview = "Preview", u))(Na || {});
|
51
51
|
function Bn() {
|
52
52
|
const u = de(), e = S(() => u.project.value?.dependencies ?? []), t = S(() => u.project.value?.apis ?? []), l = S(() => u.project.value?.meta ?? []);
|
@@ -760,7 +760,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
760
760
|
function Ot(u) {
|
761
761
|
return Kn() ? (Qn(u), !0) : !1;
|
762
762
|
}
|
763
|
-
function
|
763
|
+
function Le(u) {
|
764
764
|
return typeof u == "function" ? u() : n(u);
|
765
765
|
}
|
766
766
|
const it = typeof window < "u" && typeof document < "u";
|
@@ -801,7 +801,7 @@ function Co(u, e, t = {}) {
|
|
801
801
|
function i(...g) {
|
802
802
|
o(), s.value = !0, a = setTimeout(() => {
|
803
803
|
s.value = !1, a = null, u(...g);
|
804
|
-
},
|
804
|
+
}, Le(e));
|
805
805
|
}
|
806
806
|
return l && (s.value = !0, it && i()), Ot(r), {
|
807
807
|
isPending: Xn(s),
|
@@ -812,7 +812,7 @@ function Co(u, e, t = {}) {
|
|
812
812
|
const ut = it ? window : void 0, On = it ? window.navigator : void 0;
|
813
813
|
function ye(u) {
|
814
814
|
var e;
|
815
|
-
const t =
|
815
|
+
const t = Le(u);
|
816
816
|
return (e = t?.$el) != null ? e : t;
|
817
817
|
}
|
818
818
|
function Me(...u) {
|
@@ -823,7 +823,7 @@ function Me(...u) {
|
|
823
823
|
const a = [], o = () => {
|
824
824
|
a.forEach((d) => d()), a.length = 0;
|
825
825
|
}, r = (d, m, f, h) => (d.addEventListener(m, f, h), () => d.removeEventListener(m, f, h)), i = J(
|
826
|
-
() => [ye(e),
|
826
|
+
() => [ye(e), Le(s)],
|
827
827
|
([d, m]) => {
|
828
828
|
if (o(), !d)
|
829
829
|
return;
|
@@ -845,7 +845,7 @@ function Vo(u, e, t = {}) {
|
|
845
845
|
return lt;
|
846
846
|
_o && !Yt && (Yt = !0, Array.from(l.document.body.children).forEach((h) => h.addEventListener("click", lt)), l.document.documentElement.addEventListener("click", lt));
|
847
847
|
let r = !0;
|
848
|
-
const i = (h) =>
|
848
|
+
const i = (h) => Le(s).some((c) => {
|
849
849
|
if (typeof c == "string")
|
850
850
|
return Array.from(l.document.querySelectorAll(c)).some((_) => _ === h.target || h.composedPath().includes(_));
|
851
851
|
{
|
@@ -936,7 +936,7 @@ function zn(u = {}) {
|
|
936
936
|
}) : d.value = w();
|
937
937
|
}
|
938
938
|
g.value && t && Me(["copy", "cut"], h);
|
939
|
-
async function c(C =
|
939
|
+
async function c(C = Le(l)) {
|
940
940
|
g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : _(C), d.value = C, m.value = !0, f.start());
|
941
941
|
}
|
942
942
|
function _(C) {
|
@@ -963,7 +963,7 @@ function jo(u, e, t = {}) {
|
|
963
963
|
const o = zt(() => l && "ResizeObserver" in l), r = () => {
|
964
964
|
a && (a.disconnect(), a = void 0);
|
965
965
|
}, i = S(() => {
|
966
|
-
const m =
|
966
|
+
const m = Le(u);
|
967
967
|
return Array.isArray(m) ? m.map((f) => ye(f)) : [ye(m)];
|
968
968
|
}), g = J(
|
969
969
|
i,
|
@@ -1096,7 +1096,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
1096
1096
|
placeholder: "请输入查询关键字"
|
1097
1097
|
}, null, 8, ["size", "prefix-icon", "modelValue"]),
|
1098
1098
|
V("div", Po, [
|
1099
|
-
(p(!0), j(O, null,
|
1099
|
+
(p(!0), j(O, null, W(i.value, (_) => (p(), y(n(Se), {
|
1100
1100
|
icon: _[1],
|
1101
1101
|
onClick: (w) => g(_[0]),
|
1102
1102
|
class: X({ "is-active": a.value === _[0] })
|
@@ -1606,7 +1606,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
1606
1606
|
}, ["stop"]))
|
1607
1607
|
}, {
|
1608
1608
|
default: b(() => [
|
1609
|
-
(p(!0), j(O, null,
|
1609
|
+
(p(!0), j(O, null, W(o.value, (f) => (p(), y(n(be), {
|
1610
1610
|
name: f.name,
|
1611
1611
|
title: f.label,
|
1612
1612
|
mode: "icon",
|
@@ -1700,7 +1700,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
1700
1700
|
}, F(t.tag), 3)) : A("", !0)
|
1701
1701
|
], 42, Oo));
|
1702
1702
|
}
|
1703
|
-
}),
|
1703
|
+
}), Lo = { class: "v-context-viewer" }, Wo = /* @__PURE__ */ E({
|
1704
1704
|
__name: "viewer",
|
1705
1705
|
props: {
|
1706
1706
|
context: {}
|
@@ -1740,7 +1740,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
1740
1740
|
}, g = (d) => {
|
1741
1741
|
l("pick", d.path);
|
1742
1742
|
};
|
1743
|
-
return (d, m) => (p(), j("div",
|
1743
|
+
return (d, m) => (p(), j("div", Lo, [
|
1744
1744
|
d.context ? (p(), y(n(Dt), {
|
1745
1745
|
key: 0,
|
1746
1746
|
lazy: "",
|
@@ -1860,14 +1860,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
1860
1860
|
"prefix-icon": n(Rt),
|
1861
1861
|
placeholder: "筛选可用项"
|
1862
1862
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
1863
|
-
(p(!0), j(O, null,
|
1863
|
+
(p(!0), j(O, null, W(n(s), (I) => (p(), j("div", null, [
|
1864
1864
|
v(n(jt), { "border-style": "dotted" }, {
|
1865
1865
|
default: b(() => [
|
1866
1866
|
K(F(I.title), 1)
|
1867
1867
|
]),
|
1868
1868
|
_: 2
|
1869
1869
|
}, 1024),
|
1870
|
-
(p(!0), j(O, null,
|
1870
|
+
(p(!0), j(O, null, W(I.items, (z) => (p(), y(ce, {
|
1871
1871
|
title: z,
|
1872
1872
|
background: "",
|
1873
1873
|
actions: ["copy"],
|
@@ -1880,7 +1880,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
1880
1880
|
], 512), [
|
1881
1881
|
[Te, i.value === "normal"]
|
1882
1882
|
]),
|
1883
|
-
De(v(
|
1883
|
+
De(v(Wo, {
|
1884
1884
|
context: t.context,
|
1885
1885
|
onCopy: w,
|
1886
1886
|
onPick: _
|
@@ -2011,7 +2011,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2011
2011
|
wrap: "wrap"
|
2012
2012
|
}, {
|
2013
2013
|
default: b(() => [
|
2014
|
-
(p(!0), j(O, null,
|
2014
|
+
(p(!0), j(O, null, W(t.slots, (d, m) => (p(), y(n(U), {
|
2015
2015
|
class: X(["v-slots-picker__item", { "is-active": d.name === s.value?.name }]),
|
2016
2016
|
grow: "",
|
2017
2017
|
flex: !1,
|
@@ -2030,7 +2030,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2030
2030
|
_: 1
|
2031
2031
|
}, 16, ["height"]));
|
2032
2032
|
}
|
2033
|
-
}),
|
2033
|
+
}), Ln = /* @__PURE__ */ E({
|
2034
2034
|
name: "Viewport",
|
2035
2035
|
__name: "viewport",
|
2036
2036
|
props: {
|
@@ -2139,7 +2139,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2139
2139
|
_: 1
|
2140
2140
|
}));
|
2141
2141
|
}
|
2142
|
-
}), Uo = { class: "v-file-setter" },
|
2142
|
+
}), Uo = { class: "v-file-setter" }, Lt = /* @__PURE__ */ E({
|
2143
2143
|
name: "FileSetter",
|
2144
2144
|
__name: "file",
|
2145
2145
|
props: {
|
@@ -2322,7 +2322,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2322
2322
|
gutter: 5
|
2323
2323
|
}, {
|
2324
2324
|
default: b(() => [
|
2325
|
-
(p(!0), j(O, null,
|
2325
|
+
(p(!0), j(O, null, W(n(t), (D) => (p(), y(n(yt), {
|
2326
2326
|
key: D.id,
|
2327
2327
|
span: n(e)
|
2328
2328
|
}, {
|
@@ -2394,7 +2394,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2394
2394
|
name: "urls",
|
2395
2395
|
label: "资源文件",
|
2396
2396
|
required: "",
|
2397
|
-
editor:
|
2397
|
+
editor: Lt,
|
2398
2398
|
props: { attachment: { accept: f.value, multiple: h.value } }
|
2399
2399
|
}, null, 8, ["props"])) : A("", !0)
|
2400
2400
|
]),
|
@@ -2444,7 +2444,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2444
2444
|
gutter: 5
|
2445
2445
|
}, {
|
2446
2446
|
default: b(() => [
|
2447
|
-
(p(!0), j(O, null,
|
2447
|
+
(p(!0), j(O, null, W(n(i), (h) => (p(), y(n(yt), {
|
2448
2448
|
span: n(e),
|
2449
2449
|
key: h.name
|
2450
2450
|
}, {
|
@@ -2477,7 +2477,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2477
2477
|
"onUpdate:modelValue": f[1] || (f[1] = (h) => n(o)[n(s)] = h)
|
2478
2478
|
}, {
|
2479
2479
|
default: b(() => [
|
2480
|
-
(p(!0), j(O, null,
|
2480
|
+
(p(!0), j(O, null, W(n(a).children, (h) => (p(), y(n(al), {
|
2481
2481
|
key: h.name,
|
2482
2482
|
name: h.name,
|
2483
2483
|
title: `${h.label} (${h.count})`
|
@@ -2489,7 +2489,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2489
2489
|
gutter: 5
|
2490
2490
|
}, {
|
2491
2491
|
default: b(() => [
|
2492
|
-
(p(!0), j(O, null,
|
2492
|
+
(p(!0), j(O, null, W(h.components, (c) => (p(), y(n(yt), {
|
2493
2493
|
span: n(e),
|
2494
2494
|
key: c.name
|
2495
2495
|
}, {
|
@@ -2533,16 +2533,16 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2533
2533
|
return D && (D.locked || D.invisible) ? [] : s.value?.locked ? [] : P.locked ? ["unlock"] : P.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
|
2534
2534
|
}, r = (P, B) => {
|
2535
2535
|
const D = {};
|
2536
|
-
if (!P.some((
|
2537
|
-
for (const
|
2538
|
-
const H =
|
2539
|
-
D[H] || (D[H] = []), D[H].push(
|
2536
|
+
if (!P.some((L) => L.slot)) return i(P);
|
2537
|
+
for (const L of P) {
|
2538
|
+
const H = L.slot?.name || "default";
|
2539
|
+
D[H] || (D[H] = []), D[H].push(L);
|
2540
2540
|
}
|
2541
2541
|
const me = [];
|
2542
|
-
for (const [
|
2542
|
+
for (const [L, H] of Object.entries(D))
|
2543
2543
|
me.push({
|
2544
|
-
id: `${B.id}-${
|
2545
|
-
label: `#${
|
2544
|
+
id: `${B.id}-${L}`,
|
2545
|
+
label: `#${L}`,
|
2546
2546
|
type: "slot",
|
2547
2547
|
model: B,
|
2548
2548
|
disabled: !0,
|
@@ -2582,7 +2582,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2582
2582
|
const D = e.assets.componentMap.get(B.model.name);
|
2583
2583
|
return D ? (t.value?.setDragging(D), !0) : !1;
|
2584
2584
|
}, h = async (P, B, D) => {
|
2585
|
-
const G = B.data,
|
2585
|
+
const G = B.data, L = {
|
2586
2586
|
prev: "top",
|
2587
2587
|
next: "bottom",
|
2588
2588
|
inner: "inner"
|
@@ -2592,7 +2592,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2592
2592
|
H = D === "inner", t.value?.setDropping(H ? G.model : null, "inner");
|
2593
2593
|
else {
|
2594
2594
|
const N = G.model;
|
2595
|
-
H = !!await t.value?.allowDrop(N,
|
2595
|
+
H = !!await t.value?.allowDrop(N, L), t.value?.setDropping(H ? N : null, "inner");
|
2596
2596
|
}
|
2597
2597
|
return H;
|
2598
2598
|
}, c = (P) => {
|
@@ -2605,13 +2605,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2605
2605
|
}, _ = async (P, B, D) => {
|
2606
2606
|
const G = P.data, me = B.data;
|
2607
2607
|
if (te(me.model)) {
|
2608
|
-
const
|
2609
|
-
delete
|
2608
|
+
const We = G.model;
|
2609
|
+
delete We.slot, s.value?.move(We, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
|
2610
2610
|
return;
|
2611
2611
|
}
|
2612
|
-
const
|
2612
|
+
const L = me.model, H = { before: "left", after: "right" }[D] || "inner";
|
2613
2613
|
if (!await t.value?.allowDrop(
|
2614
|
-
|
2614
|
+
L,
|
2615
2615
|
H
|
2616
2616
|
)) {
|
2617
2617
|
t.value?.setDropping(null), d(), Qe.warning({
|
@@ -2620,11 +2620,11 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2620
2620
|
return;
|
2621
2621
|
}
|
2622
2622
|
const $e = await t.value?.getDropSlot(
|
2623
|
-
D === "inner" ?
|
2623
|
+
D === "inner" ? L : L.parent
|
2624
2624
|
);
|
2625
2625
|
if ($e !== null) {
|
2626
|
-
const
|
2627
|
-
|
2626
|
+
const We = G.model;
|
2627
|
+
We.slot = $e, s.value?.move(We, L, H);
|
2628
2628
|
} else
|
2629
2629
|
d();
|
2630
2630
|
t.value?.setDropping(null), t.value?.setDragging(null), e.simulator.refresh();
|
@@ -2742,7 +2742,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
2742
2742
|
key: 0,
|
2743
2743
|
"image-size": 50
|
2744
2744
|
})) : A("", !0),
|
2745
|
-
n(e) ? (p(!0), j(O, { key: 1 },
|
2745
|
+
n(e) ? (p(!0), j(O, { key: 1 }, W(n(e).items, (g, d) => (p(), y(n(ce), {
|
2746
2746
|
index: d + 1,
|
2747
2747
|
title: g.label,
|
2748
2748
|
"model-value": g,
|
@@ -3210,7 +3210,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
3210
3210
|
clearable: ""
|
3211
3211
|
}, null, 8, ["modelValue", "prefix-icon"])
|
3212
3212
|
]),
|
3213
|
-
(p(!0), j(O, null,
|
3213
|
+
(p(!0), j(O, null, W(a.value, (c) => (p(), y(n(ce), {
|
3214
3214
|
key: c.id,
|
3215
3215
|
small: "",
|
3216
3216
|
title: c.name,
|
@@ -3268,7 +3268,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
3268
3268
|
onPlus: m
|
3269
3269
|
}, {
|
3270
3270
|
default: b(() => [
|
3271
|
-
(p(!0), j(O, null,
|
3271
|
+
(p(!0), j(O, null, W(n(e), (w) => (p(), y(n(ce), {
|
3272
3272
|
key: w.package,
|
3273
3273
|
title: w.package,
|
3274
3274
|
subtitle: w.version,
|
@@ -3463,7 +3463,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
3463
3463
|
ref: t,
|
3464
3464
|
class: "v-designer"
|
3465
3465
|
}, [
|
3466
|
-
v(n(
|
3466
|
+
v(n(Ln), {
|
3467
3467
|
mode: f.value,
|
3468
3468
|
width: n(s),
|
3469
3469
|
height: n(a)
|
@@ -3561,7 +3561,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
3561
3561
|
onPlus: i
|
3562
3562
|
}, {
|
3563
3563
|
default: b(() => [
|
3564
|
-
(p(!0), j(O, null,
|
3564
|
+
(p(!0), j(O, null, W(c.list, (w) => (p(), y(n(ce), {
|
3565
3565
|
title: e.itemTitle(w),
|
3566
3566
|
border: "",
|
3567
3567
|
actions: ["edit", "remove"],
|
@@ -3946,7 +3946,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
3946
3946
|
}, ["prevent", "stop"]), ["enter"]))
|
3947
3947
|
}, {
|
3948
3948
|
default: b(() => [
|
3949
|
-
(p(!0), j(O, null,
|
3949
|
+
(p(!0), j(O, null, W(t.items, (d) => (p(), y(n(M), ie({ ref_for: !0 }, d, {
|
3950
3950
|
key: `${d.name}_${t.node.id}`,
|
3951
3951
|
current: t.current,
|
3952
3952
|
context: t.context,
|
@@ -4199,7 +4199,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4199
4199
|
"image-size": 50,
|
4200
4200
|
description: "该组件无自带事件"
|
4201
4201
|
})),
|
4202
|
-
(p(!0), j(O, null,
|
4202
|
+
(p(!0), j(O, null, W(n(o), (w) => (p(), y(n(ce), {
|
4203
4203
|
key: `component_${w.name}`,
|
4204
4204
|
title: w.name,
|
4205
4205
|
"model-value": w,
|
@@ -4220,7 +4220,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4220
4220
|
fit: !1
|
4221
4221
|
}, {
|
4222
4222
|
default: b(() => [
|
4223
|
-
(p(!0), j(O, null,
|
4223
|
+
(p(!0), j(O, null, W(n(s), (w) => (p(), y(n(ce), {
|
4224
4224
|
key: `mouse_${w.name}`,
|
4225
4225
|
title: w.name,
|
4226
4226
|
"model-value": w,
|
@@ -4242,7 +4242,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4242
4242
|
fit: !1
|
4243
4243
|
}, {
|
4244
4244
|
default: b(() => [
|
4245
|
-
(p(!0), j(O, null,
|
4245
|
+
(p(!0), j(O, null, W(n(a), (w) => (p(), y(n(ce), {
|
4246
4246
|
key: `keyboard_${w.name}`,
|
4247
4247
|
title: w.name,
|
4248
4248
|
"model-value": w,
|
@@ -4431,7 +4431,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4431
4431
|
grow: ""
|
4432
4432
|
}, {
|
4433
4433
|
default: b(() => [
|
4434
|
-
(p(!0), j(O, null,
|
4434
|
+
(p(!0), j(O, null, W(n(i), (_, w) => (p(), y(n(q), {
|
4435
4435
|
card: "",
|
4436
4436
|
border: "",
|
4437
4437
|
class: "v-sub-panel",
|
@@ -4733,36 +4733,36 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4733
4733
|
name: "DefinedWidget",
|
4734
4734
|
__name: "index",
|
4735
4735
|
setup(u) {
|
4736
|
-
const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((
|
4736
|
+
const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((L) => typeof L == "string" ? { name: L } : L)), s = S(() => (e.value?.emits || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), a = S(() => (e.value?.slots || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), h = k(!1), c = k(), _ = () => {
|
4737
4737
|
i.value = void 0, r.value = !0;
|
4738
|
-
}, w = (
|
4739
|
-
const { name: H, modelValue: N } =
|
4738
|
+
}, w = (L) => {
|
4739
|
+
const { name: H, modelValue: N } = L;
|
4740
4740
|
H === "edit" && x(N), H === "remove" && e.value?.removeProp(N);
|
4741
|
-
}, x = (
|
4742
|
-
i.value =
|
4741
|
+
}, x = (L) => {
|
4742
|
+
i.value = L, r.value = !0;
|
4743
4743
|
}, C = () => {
|
4744
4744
|
d.value = void 0, g.value = !0;
|
4745
|
-
}, I = (
|
4746
|
-
d.value = { ...
|
4747
|
-
}, z = (
|
4748
|
-
const { name: H, modelValue: N } =
|
4745
|
+
}, I = (L) => {
|
4746
|
+
d.value = { ...L }, g.value = !0;
|
4747
|
+
}, z = (L) => {
|
4748
|
+
const { name: H, modelValue: N } = L;
|
4749
4749
|
H === "edit" && I(N), H === "remove" && e.value?.removeEmit(N.name);
|
4750
4750
|
}, R = () => {
|
4751
4751
|
f.value = void 0, m.value = !0;
|
4752
|
-
}, P = (
|
4753
|
-
f.value = { ...
|
4754
|
-
}, B = (
|
4755
|
-
const { name: H, modelValue: N } =
|
4752
|
+
}, P = (L) => {
|
4753
|
+
f.value = { ...L }, m.value = !0;
|
4754
|
+
}, B = (L) => {
|
4755
|
+
const { name: H, modelValue: N } = L;
|
4756
4756
|
H === "edit" && P(N), H === "remove" && e.value?.removeSlot(N.name);
|
4757
4757
|
}, D = () => {
|
4758
4758
|
c.value = void 0, h.value = !0;
|
4759
|
-
}, G = (
|
4760
|
-
c.value =
|
4761
|
-
}, me = (
|
4762
|
-
const { name: H, modelValue: N } =
|
4759
|
+
}, G = (L) => {
|
4760
|
+
c.value = L, h.value = !0;
|
4761
|
+
}, me = (L) => {
|
4762
|
+
const { name: H, modelValue: N } = L;
|
4763
4763
|
H === "edit" && G(N), H === "remove" && e.value?.removeInject(N);
|
4764
4764
|
};
|
4765
|
-
return (
|
4765
|
+
return (L, H) => n(e) && n(t) ? (p(), y(n(U), {
|
4766
4766
|
key: 0,
|
4767
4767
|
class: "v-defined-widget",
|
4768
4768
|
direction: "column",
|
@@ -4778,7 +4778,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4778
4778
|
onPlus: _
|
4779
4779
|
}, {
|
4780
4780
|
default: b(() => [
|
4781
|
-
(p(!0), j(O, null,
|
4781
|
+
(p(!0), j(O, null, W(l.value, (N) => (p(), y(n(ce), {
|
4782
4782
|
"model-value": N,
|
4783
4783
|
title: N.name,
|
4784
4784
|
border: "",
|
@@ -4810,7 +4810,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4810
4810
|
onPlus: C
|
4811
4811
|
}, {
|
4812
4812
|
default: b(() => [
|
4813
|
-
(p(!0), j(O, null,
|
4813
|
+
(p(!0), j(O, null, W(s.value, (N) => (p(), y(n(ce), {
|
4814
4814
|
"model-value": N,
|
4815
4815
|
title: N.name,
|
4816
4816
|
border: "",
|
@@ -4842,7 +4842,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4842
4842
|
onPlus: R
|
4843
4843
|
}, {
|
4844
4844
|
default: b(() => [
|
4845
|
-
(p(!0), j(O, null,
|
4845
|
+
(p(!0), j(O, null, W(a.value, (N) => (p(), y(n(ce), {
|
4846
4846
|
"model-value": N,
|
4847
4847
|
title: N.name,
|
4848
4848
|
border: "",
|
@@ -4875,7 +4875,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
4875
4875
|
onPlus: D
|
4876
4876
|
}, {
|
4877
4877
|
default: b(() => [
|
4878
|
-
(p(!0), j(O, null,
|
4878
|
+
(p(!0), j(O, null, W(o.value, (N) => (p(), y(n(ce), {
|
4879
4879
|
"model-value": N,
|
4880
4880
|
title: N.name,
|
4881
4881
|
border: "",
|
@@ -5161,7 +5161,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5161
5161
|
onPlus: r
|
5162
5162
|
}, {
|
5163
5163
|
default: b(() => [
|
5164
|
-
(p(!0), j(O, null,
|
5164
|
+
(p(!0), j(O, null, W(a.value, (f) => (p(), y(n(ce), {
|
5165
5165
|
border: "",
|
5166
5166
|
title: f.name,
|
5167
5167
|
subtitle: f.label,
|
@@ -5430,7 +5430,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5430
5430
|
_: 1
|
5431
5431
|
}));
|
5432
5432
|
}
|
5433
|
-
}), Ir = { class: "v-spacing-input" }, Tr = { class: "v-spacing-input__content" }, Br = ["onClick"],
|
5433
|
+
}), Ir = { class: "v-spacing-input" }, Tr = { class: "v-spacing-input__content" }, Br = ["onClick"], Wn = /* @__PURE__ */ E({
|
5434
5434
|
__name: "spacing-input",
|
5435
5435
|
props: {
|
5436
5436
|
name: {},
|
@@ -5497,7 +5497,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5497
5497
|
wrap: "wrap"
|
5498
5498
|
}, {
|
5499
5499
|
default: b(() => [
|
5500
|
-
(p(), j(O, null,
|
5500
|
+
(p(), j(O, null, W(t, (_) => V("span", {
|
5501
5501
|
onClick: (w) => g(_)
|
5502
5502
|
}, F(_), 9, Br)), 64))
|
5503
5503
|
]),
|
@@ -5540,7 +5540,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5540
5540
|
])
|
5541
5541
|
]));
|
5542
5542
|
}
|
5543
|
-
}), Rr = { class: "spacing-wrap" }, $r = { class: "spacing-max-icon" }, Or = ["width", "height"], zr = ["d"], Fr = ["d"],
|
5543
|
+
}), Rr = { class: "spacing-wrap" }, $r = { class: "spacing-max-icon" }, Or = ["width", "height"], zr = ["d"], Fr = ["d"], Lr = ["d"], Wr = ["d"], Nr = { id: "margin-outer" }, Jr = ["width", "height"], Mr = ["width", "height"], Ur = { id: "margin-inner" }, Hr = ["width", "height"], qr = ["width", "height"], Gr = ["width", "height"], Xr = ["d"], Kr = ["d"], Qr = ["d"], Yr = ["d"], Zr = { id: "padding-outer" }, ei = ["width", "height"], ti = ["width", "height"], ni = { id: "padding-inner" }, li = ["width", "height"], si = ["width", "height"], ai = {
|
5544
5544
|
xmlns: "http://www.w3.org/2000/svg",
|
5545
5545
|
width: "100%",
|
5546
5546
|
height: "100%",
|
@@ -5635,7 +5635,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5635
5635
|
"aria-label": "Margin bottom button",
|
5636
5636
|
class: "tb-path-color",
|
5637
5637
|
onClick: c[2] || (c[2] = (_) => f("margin-bottom"))
|
5638
|
-
}, null, 8,
|
5638
|
+
}, null, 8, Lr)
|
5639
5639
|
])
|
5640
5640
|
]),
|
5641
5641
|
V("g", null, [
|
@@ -5653,7 +5653,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5653
5653
|
"aria-label": "Margin left button",
|
5654
5654
|
class: "lr-path-color",
|
5655
5655
|
onClick: c[3] || (c[3] = (_) => f("margin-left"))
|
5656
|
-
}, null, 8,
|
5656
|
+
}, null, 8, Wr)
|
5657
5657
|
])
|
5658
5658
|
]),
|
5659
5659
|
V("clipPath", Nr, [
|
@@ -5895,7 +5895,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5895
5895
|
}, " margin ", -1)
|
5896
5896
|
])))
|
5897
5897
|
]),
|
5898
|
-
i.value ? (p(), y(
|
5898
|
+
i.value ? (p(), y(Wn, {
|
5899
5899
|
key: 0,
|
5900
5900
|
name: g.value,
|
5901
5901
|
modelValue: d.value,
|
@@ -5985,7 +5985,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
5985
5985
|
inline: ""
|
5986
5986
|
}, {
|
5987
5987
|
default: b(() => [
|
5988
|
-
(p(), j(O, null,
|
5988
|
+
(p(), j(O, null, W(s, (r) => v(n(M), {
|
5989
5989
|
name: r.name,
|
5990
5990
|
label: r.label,
|
5991
5991
|
setters: { name: r.setter },
|
@@ -6016,8 +6016,8 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
6016
6016
|
{ label: "粘性", value: "sticky" }
|
6017
6017
|
], g = [
|
6018
6018
|
{ label: "左上", svg: Fs, value: "0% auto auto 0%" },
|
6019
|
-
{ label: "右上", svg:
|
6020
|
-
{ label: "左下", svg:
|
6019
|
+
{ label: "右上", svg: Ls, value: "0% 0% auto auto" },
|
6020
|
+
{ label: "左下", svg: Ws, value: "auto auto 0% 0%" },
|
6021
6021
|
{ label: "右下", svg: Ns, value: "auto 0% 0% auto" },
|
6022
6022
|
{ label: "左", svg: Js, value: "0% auto 0% 0%" },
|
6023
6023
|
{ label: "右", svg: Ms, value: "0% 0% 0% auto" },
|
@@ -6214,7 +6214,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
6214
6214
|
onClick: c[7] || (c[7] = (_) => m("left"))
|
6215
6215
|
}, F(e.styleJson.left || d.value[3] || "-"), 3)
|
6216
6216
|
], 512),
|
6217
|
-
a.value ? (p(), y(
|
6217
|
+
a.value ? (p(), y(Wn, {
|
6218
6218
|
key: 0,
|
6219
6219
|
auto: "",
|
6220
6220
|
name: o.value,
|
@@ -6327,7 +6327,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
6327
6327
|
inline: ""
|
6328
6328
|
}, {
|
6329
6329
|
default: b(() => [
|
6330
|
-
(p(), j(O, null,
|
6330
|
+
(p(), j(O, null, W(t, (i) => v(n(M), {
|
6331
6331
|
name: i.name,
|
6332
6332
|
label: i.label,
|
6333
6333
|
setters: { name: i.setter },
|
@@ -6780,7 +6780,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
6780
6780
|
class: "v-previewer",
|
6781
6781
|
key: s.value
|
6782
6782
|
}, [
|
6783
|
-
v(n(
|
6783
|
+
v(n(Ln), {
|
6784
6784
|
mode: d.value,
|
6785
6785
|
width: n(r),
|
6786
6786
|
height: n(i)
|
@@ -6813,7 +6813,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
6813
6813
|
"separator-icon": n(ya)
|
6814
6814
|
}, {
|
6815
6815
|
default: b(() => [
|
6816
|
-
(p(!0), j(O, null,
|
6816
|
+
(p(!0), j(O, null, W(l.value, (i) => (p(), y(n(rl), {
|
6817
6817
|
onClick: (g) => s(i),
|
6818
6818
|
onMouseover: (g) => a(i)
|
6819
6819
|
}, {
|
@@ -6957,7 +6957,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
6957
6957
|
V("div", zi, "版本:" + F(n(Ra)), 1)
|
6958
6958
|
]));
|
6959
6959
|
}
|
6960
|
-
}),
|
6960
|
+
}), Li = /* @__PURE__ */ E({
|
6961
6961
|
name: "ProjectConfigWidget",
|
6962
6962
|
__name: "index",
|
6963
6963
|
setup(u) {
|
@@ -6985,7 +6985,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
6985
6985
|
v(n(T), {
|
6986
6986
|
label: "Logo",
|
6987
6987
|
name: "logo",
|
6988
|
-
editor:
|
6988
|
+
editor: Lt,
|
6989
6989
|
props: { attachment: { accept: ".png,.jpg,.jpeg" } }
|
6990
6990
|
}),
|
6991
6991
|
v(n(T), {
|
@@ -7033,8 +7033,8 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
7033
7033
|
Raw: Ii,
|
7034
7034
|
Docs: Bi,
|
7035
7035
|
About: Fi,
|
7036
|
-
ProjectConfig:
|
7037
|
-
},
|
7036
|
+
ProjectConfig: Li
|
7037
|
+
}, Wi = [
|
7038
7038
|
{
|
7039
7039
|
name: "Logo",
|
7040
7040
|
region: "Brand",
|
@@ -7945,7 +7945,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
7945
7945
|
const e = u;
|
7946
7946
|
return (t, l) => (p(), y(n(ul), ie({ clearable: "" }, t.$attrs), {
|
7947
7947
|
default: b(() => [
|
7948
|
-
(p(!0), j(O, null,
|
7948
|
+
(p(!0), j(O, null, W(e.options, (s) => (p(), y(n(cl), ie({
|
7949
7949
|
key: s.label,
|
7950
7950
|
ref_for: !0
|
7951
7951
|
}, s), null, 16))), 128))
|
@@ -8148,7 +8148,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
8148
8148
|
size: "small"
|
8149
8149
|
}, t.$attrs), {
|
8150
8150
|
default: b(() => [
|
8151
|
-
(p(!0), j(O, null,
|
8151
|
+
(p(!0), j(O, null, W(e.options, (s) => (p(), y(n(nt), {
|
8152
8152
|
label: s.label,
|
8153
8153
|
value: s.value,
|
8154
8154
|
title: s.label
|
@@ -8183,7 +8183,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
8183
8183
|
class: "v-tag-setter",
|
8184
8184
|
size: "small"
|
8185
8185
|
}, a.$attrs), [
|
8186
|
-
(p(!0), j(O, null,
|
8186
|
+
(p(!0), j(O, null, W(t.options, (r) => (p(), j("span", {
|
8187
8187
|
label: r.value,
|
8188
8188
|
title: r.label,
|
8189
8189
|
class: X({
|
@@ -8294,7 +8294,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
8294
8294
|
l("change", s.value.join(" ").trim());
|
8295
8295
|
};
|
8296
8296
|
return (o, r) => (p(), j("div", iu, [
|
8297
|
-
(p(!0), j(O, null,
|
8297
|
+
(p(!0), j(O, null, W(t.sections, (i) => (p(), y(Jn, {
|
8298
8298
|
name: i - 1,
|
8299
8299
|
modelValue: s.value[i - 1],
|
8300
8300
|
"onUpdate:modelValue": (g) => s.value[i - 1] = g,
|
@@ -8353,7 +8353,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
|
|
8353
8353
|
ImageSetter: ru,
|
8354
8354
|
SectionSetter: uu,
|
8355
8355
|
SliderSetter: du,
|
8356
|
-
FileSetter:
|
8356
|
+
FileSetter: Lt
|
8357
8357
|
}, pu = {
|
8358
8358
|
name: "StringSetter",
|
8359
8359
|
component: ee.StringSetter,
|
@@ -8498,7 +8498,7 @@ class vu {
|
|
8498
8498
|
}
|
8499
8499
|
createWidgets() {
|
8500
8500
|
const e = {};
|
8501
|
-
for (const t of
|
8501
|
+
for (const t of Wi)
|
8502
8502
|
e[t.name] = t;
|
8503
8503
|
return e;
|
8504
8504
|
}
|
@@ -8665,9 +8665,9 @@ class bu {
|
|
8665
8665
|
s.type = "module", s.src = t, s.onload = () => l && l(), e.document.head.appendChild(s);
|
8666
8666
|
}
|
8667
8667
|
async loadScripts(e, t) {
|
8668
|
-
const l = this.engine?.project.value, { __BASE_PATH__: s = "/" } = l || {}, a = "", o = Date.now(), r = `${a}${s}${
|
8668
|
+
const l = this.engine?.project.value, { __BASE_PATH__: s = "/" } = l || {}, a = "", o = Date.now(), r = `${a}${s}${La}?t=${o}`;
|
8669
8669
|
this.enabled === void 0 && (this.enabled = await this.checkDevtools(r)), this.enabled && this.createScript(e, r, () => {
|
8670
|
-
const i = `${a}${s}${
|
8670
|
+
const i = `${a}${s}${Wa}?t=${o}`;
|
8671
8671
|
this.isInited ? this.createScript(e, i, t) : t();
|
8672
8672
|
});
|
8673
8673
|
}
|
@@ -8759,7 +8759,7 @@ class _u {
|
|
8759
8759
|
), e.addEventListener("resize", this.bind(this.onViewChange, "onViewChange")), t.addEventListener("mouseleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragover", this.bind(this.onDragOver, "onDragOver")), t.addEventListener(
|
8760
8760
|
"dragstart",
|
8761
8761
|
this.bind(this.onDragStart, "onDragStart")
|
8762
|
-
), t.addEventListener("drop", this.bind(this.onDrop, "onDrop")), t.addEventListener(
|
8762
|
+
), t.addEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), t.addEventListener("drop", this.bind(this.onDrop, "onDrop")), t.addEventListener(
|
8763
8763
|
"click",
|
8764
8764
|
this.bind(this.onSelected, "onSelected"),
|
8765
8765
|
!0
|
@@ -8790,7 +8790,7 @@ class _u {
|
|
8790
8790
|
), t.removeEventListener(
|
8791
8791
|
"dragstart",
|
8792
8792
|
this.bind(this.onDragStart, "onDragStart")
|
8793
|
-
), t.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), t.removeEventListener("click", this.bind(this.onSelected, "onSelected")), ne.off(
|
8793
|
+
), t.removeEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), t.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), t.removeEventListener("click", this.bind(this.onSelected, "onSelected")), ne.off(
|
8794
8794
|
wt,
|
8795
8795
|
this.bind(this.onActiveChange, "onActiveChange")
|
8796
8796
|
), ne.off(
|
@@ -8877,6 +8877,9 @@ class _u {
|
|
8877
8877
|
const { model: l } = t, s = this.engine.assets.componentMap.get(l.name);
|
8878
8878
|
s && this.setDragging(s), this.setDraggingNode(l);
|
8879
8879
|
}
|
8880
|
+
onDragEnd() {
|
8881
|
+
this.setDraggingNode(null), this.setDragging(null);
|
8882
|
+
}
|
8880
8883
|
isVtjElement(e) {
|
8881
8884
|
return !!e.__vtj__ && !!e.__context__;
|
8882
8885
|
}
|
@@ -9400,7 +9403,7 @@ class ic extends wn {
|
|
9400
9403
|
Ve.warn("VTJEngine constructor param [ container ] is undefined");
|
9401
9404
|
}
|
9402
9405
|
bindEvents() {
|
9403
|
-
ne.on(Tl, (t) => this.saveProject(t)), ne.on(Bl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(He, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(
|
9406
|
+
ne.on(Tl, (t) => this.saveProject(t)), ne.on(Bl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(He, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Ll, (t) => this.loadHistory(t));
|
9404
9407
|
}
|
9405
9408
|
async activeFile(t) {
|
9406
9409
|
await ke();
|
@@ -9472,7 +9475,7 @@ class ic extends wn {
|
|
9472
9475
|
async initHistory(t) {
|
9473
9476
|
if (t) {
|
9474
9477
|
const l = await this.service.getHistory(t.id).catch(() => null);
|
9475
|
-
this.history.value = new
|
9478
|
+
this.history.value = new Wl(
|
9476
9479
|
Object.assign(l || {}, { id: t.id })
|
9477
9480
|
);
|
9478
9481
|
} else
|
@@ -9817,7 +9820,7 @@ const Ee = E({
|
|
9817
9820
|
isPreview: l
|
9818
9821
|
}), (C, I) => (p(), y(n(gl), { locale: n(yl) }, {
|
9819
9822
|
default: b(() => [
|
9820
|
-
v(n(
|
9823
|
+
v(n(Wt), { class: "v-skeleton" }, {
|
9821
9824
|
default: b(() => [
|
9822
9825
|
v(n(fl), {
|
9823
9826
|
class: "v-skeleton__header",
|
@@ -9843,7 +9846,7 @@ const Ee = E({
|
|
9843
9846
|
]),
|
9844
9847
|
_: 1
|
9845
9848
|
}, 8, ["height"]),
|
9846
|
-
v(n(
|
9849
|
+
v(n(Wt), { class: "v-skeleton__wrapper" }, {
|
9847
9850
|
default: b(() => [
|
9848
9851
|
l.value ? A("", !0) : De((p(), y(n(Nt), {
|
9849
9852
|
key: 0,
|
@@ -10040,7 +10043,7 @@ const Ee = E({
|
|
10040
10043
|
dropdown: b(() => [
|
10041
10044
|
v(n(mn), null, {
|
10042
10045
|
default: b(() => [
|
10043
|
-
(p(!0), j(O, null,
|
10046
|
+
(p(!0), j(O, null, W(t.setters, (I) => (p(), y(n(ht), {
|
10044
10047
|
command: I,
|
10045
10048
|
key: I.name
|
10046
10049
|
}, {
|
@@ -10106,7 +10109,7 @@ const Ee = E({
|
|
10106
10109
|
widgets: l,
|
10107
10110
|
widgetsRef: s
|
10108
10111
|
}), (a, o) => (p(), j("div", Ru, [
|
10109
|
-
(p(!0), j(O, null,
|
10112
|
+
(p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
|
10110
10113
|
ref_for: !0,
|
10111
10114
|
ref_key: "widgetsRef",
|
10112
10115
|
ref: s,
|
@@ -10128,7 +10131,7 @@ const Ee = E({
|
|
10128
10131
|
widgets: l,
|
10129
10132
|
widgetsRef: s
|
10130
10133
|
}), (a, o) => (p(), j("div", Ou, [
|
10131
|
-
(p(!0), j(O, null,
|
10134
|
+
(p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
|
10132
10135
|
ref_for: !0,
|
10133
10136
|
ref_key: "widgetsRef",
|
10134
10137
|
ref: s,
|
@@ -10138,7 +10141,7 @@ const Ee = E({
|
|
10138
10141
|
}, null, 8, ["region", "widget", "preview"]))), 256))
|
10139
10142
|
]));
|
10140
10143
|
}
|
10141
|
-
}), Fu = { class: "v-actions-region" },
|
10144
|
+
}), Fu = { class: "v-actions-region" }, Lu = /* @__PURE__ */ E({
|
10142
10145
|
name: "ActionsRegion",
|
10143
10146
|
inheritAttrs: !1,
|
10144
10147
|
__name: "actions",
|
@@ -10151,7 +10154,7 @@ const Ee = E({
|
|
10151
10154
|
widgets: l,
|
10152
10155
|
widgetsRef: s
|
10153
10156
|
}), (a, o) => (p(), j("div", Fu, [
|
10154
|
-
(p(!0), j(O, null,
|
10157
|
+
(p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
|
10155
10158
|
ref_for: !0,
|
10156
10159
|
ref_key: "widgetsRef",
|
10157
10160
|
ref: s,
|
@@ -10160,7 +10163,7 @@ const Ee = E({
|
|
10160
10163
|
}, null, 8, ["region", "widget"]))), 256))
|
10161
10164
|
]));
|
10162
10165
|
}
|
10163
|
-
}),
|
10166
|
+
}), Wu = { class: "v-apps-region" }, Nu = { class: "v-apps-region__header" }, Ju = { class: "v-apps-region__top" }, Mu = { class: "v-apps-region__bottom" }, Uu = { class: "v-apps-region__panels" }, Hu = /* @__PURE__ */ E({
|
10164
10167
|
name: "AppsRegion",
|
10165
10168
|
inheritAttrs: !1,
|
10166
10169
|
__name: "apps",
|
@@ -10188,10 +10191,10 @@ const Ee = E({
|
|
10188
10191
|
const _ = o.value.find((w) => w.name === c);
|
10189
10192
|
g.value = _, d.value = _;
|
10190
10193
|
}
|
10191
|
-
}), (c, _) => (p(), j("div",
|
10194
|
+
}), (c, _) => (p(), j("div", Wu, [
|
10192
10195
|
V("div", Nu, [
|
10193
10196
|
V("div", Ju, [
|
10194
|
-
(p(!0), j(O, null,
|
10197
|
+
(p(!0), j(O, null, W(o.value, (w) => (p(), y(n(en), {
|
10195
10198
|
key: `icon-${w.name}`,
|
10196
10199
|
icon: w.icon,
|
10197
10200
|
label: w.label,
|
@@ -10201,7 +10204,7 @@ const Ee = E({
|
|
10201
10204
|
}, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
|
10202
10205
|
]),
|
10203
10206
|
V("div", Mu, [
|
10204
|
-
(p(!0), j(O, null,
|
10207
|
+
(p(!0), j(O, null, W(r.value, (w) => (p(), y(n(en), {
|
10205
10208
|
key: `icon-${w.name}`,
|
10206
10209
|
icon: w.icon,
|
10207
10210
|
label: w.label,
|
@@ -10210,7 +10213,7 @@ const Ee = E({
|
|
10210
10213
|
])
|
10211
10214
|
]),
|
10212
10215
|
V("div", Uu, [
|
10213
|
-
(p(!0), j(O, null,
|
10216
|
+
(p(!0), j(O, null, W(o.value, (w) => (p(), y(cn, {
|
10214
10217
|
key: w.name
|
10215
10218
|
}, [
|
10216
10219
|
g.value?.name === w.name ? (p(), y(n(Ie), {
|
@@ -10282,7 +10285,7 @@ const Ee = E({
|
|
10282
10285
|
onActionClick: h
|
10283
10286
|
}, {
|
10284
10287
|
default: b(() => [
|
10285
|
-
(p(!0), j(O, null,
|
10288
|
+
(p(!0), j(O, null, W(n(l), (w) => (p(), j(O, {
|
10286
10289
|
key: w.name
|
10287
10290
|
}, [
|
10288
10291
|
i.value === w.name ? (p(), y(n(Ie), {
|
@@ -10399,7 +10402,7 @@ const Ee = E({
|
|
10399
10402
|
onActionClick: _
|
10400
10403
|
}, {
|
10401
10404
|
default: b(() => [
|
10402
|
-
(p(!0), j(O, null,
|
10405
|
+
(p(!0), j(O, null, W(n(i), (C) => (p(), j(O, {
|
10403
10406
|
key: C.name
|
10404
10407
|
}, [
|
10405
10408
|
d.value === C.name ? (p(), y(n(Ie), {
|
@@ -10443,7 +10446,7 @@ const Ee = E({
|
|
10443
10446
|
widgets: l,
|
10444
10447
|
widgetsRef: s
|
10445
10448
|
}), (a, o) => (p(), j("div", Xu, [
|
10446
|
-
(p(!0), j(O, null,
|
10449
|
+
(p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
|
10447
10450
|
ref_for: !0,
|
10448
10451
|
ref_key: "widgetsRef",
|
10449
10452
|
ref: s,
|
@@ -10479,7 +10482,7 @@ const Ee = E({
|
|
10479
10482
|
"onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
|
10480
10483
|
}, {
|
10481
10484
|
default: b(() => [
|
10482
|
-
(p(!0), j(O, null,
|
10485
|
+
(p(!0), j(O, null, W(n(l), (d) => (p(), y(cn, {
|
10483
10486
|
key: d.name
|
10484
10487
|
}, [
|
10485
10488
|
r.value === d.name ? (p(), y(n(Ie), {
|
@@ -10499,7 +10502,7 @@ const Ee = E({
|
|
10499
10502
|
EmptyRegion: Bu,
|
10500
10503
|
Brand: $u,
|
10501
10504
|
Toolbar: zu,
|
10502
|
-
Actions:
|
10505
|
+
Actions: Lu,
|
10503
10506
|
Apps: Hu,
|
10504
10507
|
Workspace: qu,
|
10505
10508
|
Settings: Gu,
|
@@ -10537,17 +10540,17 @@ export {
|
|
10537
10540
|
ct as Tabs,
|
10538
10541
|
Ra as VTJ_DESIGNER_VERSION,
|
10539
10542
|
Kt as VUE_DEVTOOLS_FRAME_STATE_KEY,
|
10540
|
-
|
10541
|
-
|
10543
|
+
Wa as VUE_DEVTOOLS_OVERLAY_PATH,
|
10544
|
+
La as VUE_DEVTOOLS_PATH,
|
10542
10545
|
br as VariableBinder,
|
10543
|
-
|
10544
|
-
|
10546
|
+
Wo as Viewer,
|
10547
|
+
Ln as Viewport,
|
10545
10548
|
he as WidgetGroup,
|
10546
10549
|
Ie as WidgetWrapper,
|
10547
10550
|
Ni as builtInDeps,
|
10548
10551
|
Hi as builtInMaterials,
|
10549
10552
|
mu as builtInSetters,
|
10550
|
-
|
10553
|
+
Wi as builtInWidgets,
|
10551
10554
|
Fe as confirm,
|
10552
10555
|
yu as createSlotsPicker,
|
10553
10556
|
pu as defaultSetter,
|
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.146",
|
5
5
|
"type": "module",
|
6
6
|
"dependencies": {
|
7
7
|
"mockjs": "~1.1.0",
|
8
8
|
"monaco-editor": "~0.51.0",
|
9
|
-
"@vtj/core": "~0.8.
|
10
|
-
"@vtj/
|
11
|
-
"@vtj/
|
12
|
-
"@vtj/
|
13
|
-
"@vtj/utils": "~0.8.
|
9
|
+
"@vtj/core": "~0.8.146",
|
10
|
+
"@vtj/icons": "~0.8.146",
|
11
|
+
"@vtj/ui": "~0.8.146",
|
12
|
+
"@vtj/renderer": "~0.8.146",
|
13
|
+
"@vtj/utils": "~0.8.146"
|
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.145
|
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.145";
|