@vtj/designer 0.8.99 → 0.8.100
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 +843 -832
- package/package.json +6 -6
- package/types/version.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 qe, watchEffect as Jn, watch as q, toValue as pt, defineComponent as E, openBlock as d, createElementBlock as A, toDisplayString as z, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as j, createTextVNode as G, Fragment as T, renderList as
|
|
1
|
+
import { computed as S, unref as n, ref as k, reactive as qe, watchEffect as Jn, watch as q, toValue as pt, defineComponent as E, openBlock as d, createElementBlock as A, toDisplayString as z, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as j, createTextVNode as G, Fragment as T, renderList as W, normalizeClass as H, resolveDynamicComponent as Yt, createSlots as Mn, withDirectives as Ee, vShow as Ie, renderSlot as Se, withModifiers as We, readonly as Ln, getCurrentScope as Un, onScopeDispose as qn, onMounted as et, nextTick as we, getCurrentInstance as Zt, toRaw as Hn, isRef as mt, mergeProps as re, normalizeStyle as Xe, defineAsyncComponent as Gn, h as Te, inject as xt, provide as Xn, normalizeProps as en, guardReactiveProps as tn, withKeys as Qe, onUnmounted as nn, markRaw as vt, createApp as ln, shallowRef as gt, shallowReactive as Qn, triggerRef as Ae, KeepAlive as an } from "vue";
|
|
2
2
|
import { ElNotification as Ct, ElMessageBox as Vt, ElMessage as tt, ElButton as ae, ElDivider as At, ElRadioGroup as sn, ElRadioButton as Ke, ElButtonGroup as Kn, ElDropdown as on, ElDropdownMenu as rn, ElDropdownItem as ft, ElInput as ye, ElEmpty as se, ElTooltip as un, ElTag as Yn, ElSwitch as cn, ElTree as jt, ElAlert as dn, ElRow as ht, ElCol as bt, ElCollapse as Zn, ElCollapseItem as el, ElDrawer as pn, ElForm as ge, ElFormItem as mn, ElBreadcrumb as tl, ElBreadcrumbItem as nl, ElLoading as ll, ElSelect as al, ElOption as sl, ElInputNumber as ol, ElColorPicker as rl, ElUpload as il, ElSlider as ul, ElConfigProvider as cl, ElContainer as Ot, ElHeader as dl, ElAside as Ft, ElMain as pl, ElFooter as ml } from "element-plus";
|
|
3
3
|
import vl from "element-plus/es/locale/lang/zh-cn";
|
|
4
|
-
import { XIcon as xe, XDialog as Be, XDialogForm as Ve, XField as B, XPanel as nt, XAction as he, XTabs as Et, XContainer as M, XForm as Pt, XAttachment as gl, XActionBar as fl, XInputUnit as vn, vResizable as
|
|
5
|
-
import { delay as gn, upperFirstCamelCase as fn, toRawType as ut, cloneDeep as lt, logger as Ce, isPlainObject as bl, fileToBase64 as yl, merge as
|
|
6
|
-
import { isBlock as ee, DirectiveModel as hn, createNodeFrom as kl, BUILT_IN_VUE as Sl, BUILT_IN_VUE_ROUTER as xl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as Je, NodeModel as
|
|
7
|
-
import { parseExpression as Me, parseFunction as Tl, JSCodeToString as ze, LIFE_CYCLES_LIST as zl, DATA_TYPES as Ol, isJSExpression as Le, ContextMode as yn, parseDeps as Fl, createAssetsCss as
|
|
8
|
-
import { VtjIconBack as ql, VtjIconPc as Hl, VtjIconPhone as Gl, VtjIconPad as Xl, VtjIconUndo as Ql, VtjIconRedo as Kl, VtjIconPreview as Yl, VtjIconRefresh as Zl, VtjIconSetting as _n, icons as kt, ArrowDown as wn, Search as
|
|
4
|
+
import { XIcon as xe, XDialog as Be, XDialogForm as Ve, XField as B, XPanel as nt, XAction as he, XTabs as Et, XContainer as M, XForm as Pt, XAttachment as gl, XActionBar as fl, XInputUnit as vn, vResizable as Wt, createDialog as hl } from "@vtj/ui";
|
|
5
|
+
import { delay as gn, upperFirstCamelCase as fn, toRawType as ut, cloneDeep as lt, logger as Ce, isPlainObject as bl, fileToBase64 as yl, merge as Dt, arrayToMap as _l, toArray as wl } from "@vtj/utils";
|
|
6
|
+
import { isBlock as ee, DirectiveModel as hn, createNodeFrom as kl, BUILT_IN_VUE as Sl, BUILT_IN_VUE_ROUTER as xl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as Je, NodeModel as Nt, EVENT_BLOCK_CHANGE as wt, Base as bn, BUILT_IN_LIBRARAY_MAP as Cl, ProjectModel as Vl, EVENT_PROJECT_CHANGE as Al, EVENT_PROJECT_BLOCKS_CHANGE as jl, EVENT_PROJECT_PAGES_CHANGE as El, EVENT_PROJECT_DEPS_CHANGE as Pl, EVENT_PROJECT_PUBLISH as Dl, EVENT_PROJECT_FILE_PUBLISH as Il, EVENT_HISTORY_CHANGE as Bl, EVENT_HISTORY_LOAD as Rl, BlockModel as Jt, HistoryModel as $l } from "@vtj/core";
|
|
7
|
+
import { parseExpression as Me, parseFunction as Tl, JSCodeToString as ze, LIFE_CYCLES_LIST as zl, DATA_TYPES as Ol, isJSExpression as Le, ContextMode as yn, parseDeps as Fl, createAssetsCss as Wl, createAssetScripts as Mt, getRawComponent as Lt, createSchemaApis as Nl, mockCleanup as Jl, mockApis as Ml, Provider as Ll, isJSFunction as Ul } from "@vtj/renderer";
|
|
8
|
+
import { VtjIconBack as ql, VtjIconPc as Hl, VtjIconPhone as Gl, VtjIconPad as Xl, VtjIconUndo as Ql, VtjIconRedo as Kl, VtjIconPreview as Yl, VtjIconRefresh as Zl, VtjIconSetting as _n, icons as kt, ArrowDown as wn, Search as It, Back as ea, VtjIconPlus as kn, EditPen as ta, Delete as na, VtjIconSave as la, ArrowUp as aa, MoreFilled as Bt, VtjIconCheck as Sn, VtjIconCopy as xn, VtjIconEdit as Cn, VtjIconRemove as at, VtjIconLock as Vn, VtjIconUnlock as sa, VtjIconInvisible as An, VtjIconVisible as oa, VtjIconHome as ra, Files as ia, VtjIconSearch as ua, VtjIconHelp as jn, VtjIconLayers as En, Rank as ca, VtjIconArrowUp as da, VtjIconArrowDown as pa, IconDisplayBlock as ma, IconDisplayFlex as va, IconDisplayInlineBlock as ga, IconDisplayInline as fa, IconEyeInvisible as ha, IconFlexDirectionrow as ba, IconFlexDirectionrowReverse as ya, IconFlexDirectioncolumn as _a, IconFlexDirectioncolumnReverse as wa, IconFlexJustifyflexStartrow as ka, IconFlexJustifyflexEndrow as Sa, IconFlexJustifycenterrow as xa, IconFlexJustifyspaceBetweenrow as Ca, IconFlexJustifyspaceAroundrow as Va, IconFlexAlignflexStartrow as Aa, IconFlexAlignflexEndrow as ja, IconFlexAligncenterrow as Ea, IconFlexAlignbaselinerow as Pa, IconFlexAlignstretchrow as Da, IconPositionTopLeft as Ia, IconPositionTopRight as Ba, IconPositionBottomLeft as Ra, IconPositionBottomRight as $a, IconPositionLeft as Ta, IconPositionRight as za, IconPositionTop as Oa, IconPositionBottom as Fa, IconPositionAll as Wa, IconTextAlignLeft as Na, IconTextAlignCenter as Ja, IconTextAlignRight as Ma, IconTextAlignJustify as La, IconFontStyleNone as Ua, IconFontStyleItalic as qa, IconCross as Pn, IconTextDecorationUnderline as Ha, IconTextDecorationStrike as Ga, IconTextDecorationOverline as Xa, IconTileXy as Qa, IconTileX as Ka, IconTileY as Ya, IconClose as Za, IconBorderAll as es, IconBorderLeft as ts, IconBorderTop as ns, IconBorderBottom as ls, IconBorderRight as as, IconBorderStyleSolid as ss, IconBorderStyleDashed as os, IconBorderStyleDotted as rs, IconCursorAuto as is, IconCursorPointer as us, IconCursorNotAllowed as cs, IconCursorNone as ds, ArrowRight as ps, VtjIconDocument as ms, VtjIconComponents as vs, VtjIconBlock as gs, VtjIconOutline as fs, VtjIconHistory as hs, VtjIconApi as bs, VtjIconCategory as ys, VtjIconInfo as _s, HomeFilled as ws, Plus as ks, Close as Ss, VtjIconVars as xs, VtjIconSwitch as Cs, Switch as Vs } from "@vtj/icons";
|
|
9
9
|
import As 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.100
|
|
15
15
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
16
16
|
*/
|
|
17
|
-
const js = "0.8.
|
|
17
|
+
const js = "0.8.100", Ut = {
|
|
18
18
|
width: 390,
|
|
19
19
|
height: 844
|
|
20
20
|
}, qt = {
|
|
@@ -29,14 +29,14 @@ const js = "0.8.99", Ut = {
|
|
|
29
29
|
"mouseup",
|
|
30
30
|
"mouseover",
|
|
31
31
|
"contextmenu"
|
|
32
|
-
], Ps = ["keydown", "keyup", "keypress"],
|
|
32
|
+
], Ps = ["keydown", "keyup", "keypress"], Ds = [
|
|
33
33
|
"GET",
|
|
34
34
|
"POST",
|
|
35
35
|
"PUT",
|
|
36
36
|
"PATCH",
|
|
37
37
|
"DELETE",
|
|
38
38
|
"JSONP"
|
|
39
|
-
],
|
|
39
|
+
], Is = [
|
|
40
40
|
"stop",
|
|
41
41
|
"prevent",
|
|
42
42
|
"capture",
|
|
@@ -44,43 +44,43 @@ const js = "0.8.99", Ut = {
|
|
|
44
44
|
"once",
|
|
45
45
|
"passive"
|
|
46
46
|
];
|
|
47
|
-
var fe = /* @__PURE__ */ ((
|
|
48
|
-
function
|
|
49
|
-
const
|
|
47
|
+
var fe = /* @__PURE__ */ ((u) => (u.Block = "block", u.Node = "node", u))(fe || {}), Bs = /* @__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))(Bs || {});
|
|
48
|
+
function Dn() {
|
|
49
|
+
const u = ce(), e = S(() => u.project.value?.dependencies ?? []), t = S(() => u.project.value?.apis ?? []), l = S(() => u.project.value?.meta ?? []);
|
|
50
50
|
return {
|
|
51
|
-
engine:
|
|
51
|
+
engine: u,
|
|
52
52
|
dependencies: e,
|
|
53
53
|
apis: t,
|
|
54
54
|
meta: l
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function Pe(
|
|
58
|
-
const t = S(() =>
|
|
57
|
+
function Pe(u, e) {
|
|
58
|
+
const t = S(() => Wn.getWidgets(n(u), n(e)).filter((a) => !a.invisible)), l = k();
|
|
59
59
|
return {
|
|
60
60
|
widgets: t,
|
|
61
61
|
widgetsRef: l
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
64
|
+
function In() {
|
|
65
|
+
const u = ce();
|
|
66
66
|
return {
|
|
67
67
|
span: S(() => {
|
|
68
|
-
const a =
|
|
68
|
+
const a = u.skeleton?.skeletonRef.leftWidth || 400, o = Math.min(Math.floor((a - 50) / 120), 24);
|
|
69
69
|
return Math.floor(24 / o);
|
|
70
70
|
}),
|
|
71
|
-
engine:
|
|
71
|
+
engine: u
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
function Rs() {
|
|
75
|
-
const
|
|
75
|
+
const u = ce(), e = S(() => u.project.value?.blocks ?? []);
|
|
76
76
|
return {
|
|
77
|
-
engine:
|
|
77
|
+
engine: u,
|
|
78
78
|
blocks: e
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
const $s = (
|
|
81
|
+
const $s = (u = []) => u.map((e) => e.name);
|
|
82
82
|
function Ts() {
|
|
83
|
-
const
|
|
83
|
+
const u = ce(), { components: e, groups: t, componentMap: l } = u.assets, a = qe({}), o = S(() => {
|
|
84
84
|
const m = {};
|
|
85
85
|
return t.value && t.value.forEach((f) => {
|
|
86
86
|
m[f.name] = f;
|
|
@@ -89,7 +89,7 @@ function Ts() {
|
|
|
89
89
|
label: `${m.label} (${m.count})`,
|
|
90
90
|
name: m.name,
|
|
91
91
|
disabled: !m.children?.length
|
|
92
|
-
})) : []), r = k(s.value[0]?.name),
|
|
92
|
+
})) : []), r = k(s.value[0]?.name), i = k(""), g = S(() => o.value[r.value]);
|
|
93
93
|
Jn(() => {
|
|
94
94
|
const m = s.value.reduce(
|
|
95
95
|
(f, b) => (f[b.name] = $s(
|
|
@@ -106,7 +106,7 @@ function Ts() {
|
|
|
106
106
|
{ immediate: !0 }
|
|
107
107
|
);
|
|
108
108
|
const p = S(() => {
|
|
109
|
-
const m =
|
|
109
|
+
const m = i.value.toLowerCase();
|
|
110
110
|
return !m || !e ? [] : e.filter((f) => f.name.toLowerCase().includes(m) || f.label?.toLowerCase().includes(m));
|
|
111
111
|
});
|
|
112
112
|
return {
|
|
@@ -118,25 +118,25 @@ function Ts() {
|
|
|
118
118
|
model: a,
|
|
119
119
|
currentTab: r,
|
|
120
120
|
currentGroup: g,
|
|
121
|
-
searchKey:
|
|
121
|
+
searchKey: i,
|
|
122
122
|
searchResult: p
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
function ie() {
|
|
126
|
-
const
|
|
126
|
+
const u = ce(), e = S(() => u.current.value), t = S(() => u.simulator.renderer?.context ?? null), l = S(() => u.isEmptyCurrent.value);
|
|
127
127
|
return {
|
|
128
|
-
engine:
|
|
128
|
+
engine: u,
|
|
129
129
|
current: e,
|
|
130
130
|
isEmpty: l,
|
|
131
131
|
context: t
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function zs(
|
|
134
|
+
function zs(u, e, t, l, a) {
|
|
135
135
|
const o = ce();
|
|
136
|
-
o.simulator.init(
|
|
136
|
+
o.simulator.init(u, e, t, l, a);
|
|
137
137
|
const s = S(() => o.simulator.designer.value), r = S(
|
|
138
138
|
() => ct("hover", s.value?.hover.value)
|
|
139
|
-
),
|
|
139
|
+
), i = S(
|
|
140
140
|
() => ct("dropping", s.value?.dropping.value)
|
|
141
141
|
), g = S(
|
|
142
142
|
() => ct("selected", s.value?.selected.value)
|
|
@@ -145,20 +145,20 @@ function zs(i, e, t, l, a) {
|
|
|
145
145
|
s.value?.updateRect();
|
|
146
146
|
}), {
|
|
147
147
|
designer: s,
|
|
148
|
-
dropping:
|
|
148
|
+
dropping: i,
|
|
149
149
|
hover: r,
|
|
150
150
|
selected: g
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function Os(
|
|
154
|
-
const { top: t, height: l, width: a, left: o } =
|
|
153
|
+
function Os(u, e = !0) {
|
|
154
|
+
const { top: t, height: l, width: a, left: o } = u || {};
|
|
155
155
|
if (l > 100 && a > 200)
|
|
156
156
|
return "inner";
|
|
157
157
|
let s, r;
|
|
158
158
|
return r = t > 30 ? "top" : "bottom", s = e || o < 300 && a < 300 ? "left" : "right", [s, r].join("-");
|
|
159
159
|
}
|
|
160
|
-
function Fs(
|
|
161
|
-
const { rect: e, type: t } =
|
|
160
|
+
function Fs(u) {
|
|
161
|
+
const { rect: e, type: t } = u, { left: l, width: a, top: o, height: s } = e, r = { left: l, width: a, top: o, height: s };
|
|
162
162
|
switch (t) {
|
|
163
163
|
case "left":
|
|
164
164
|
r.left = 0, r.width = 0;
|
|
@@ -175,9 +175,9 @@ function Fs(i) {
|
|
|
175
175
|
}
|
|
176
176
|
return r;
|
|
177
177
|
}
|
|
178
|
-
function ct(
|
|
178
|
+
function ct(u, e) {
|
|
179
179
|
if (!e) return null;
|
|
180
|
-
const { left: t, top: l, width: a, height: o } =
|
|
180
|
+
const { left: t, top: l, width: a, height: o } = u === "dropping" ? Fs(e) : e.rect, s = {
|
|
181
181
|
left: `${t}px`,
|
|
182
182
|
top: `${l}px`,
|
|
183
183
|
width: `${a}px`,
|
|
@@ -187,54 +187,54 @@ function ct(i, e) {
|
|
|
187
187
|
return {
|
|
188
188
|
...e,
|
|
189
189
|
style: s,
|
|
190
|
-
position: Os(e.rect,
|
|
190
|
+
position: Os(e.rect, u !== "selected")
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
function ke() {
|
|
194
|
-
const
|
|
195
|
-
() =>
|
|
194
|
+
const u = ce(), e = S(
|
|
195
|
+
() => u.simulator.designer.value
|
|
196
196
|
), t = S(() => e.value?.selected.value), l = S(() => ee(t.value?.model));
|
|
197
197
|
return {
|
|
198
|
-
engine:
|
|
198
|
+
engine: u,
|
|
199
199
|
designer: e,
|
|
200
200
|
selected: t,
|
|
201
201
|
isSelectBlock: l
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Ws(u, e) {
|
|
205
205
|
const t = k(""), { selected: l, isSelectBlock: a } = ke(), o = S(() => l.value?.model.id), s = S(() => {
|
|
206
|
-
const
|
|
207
|
-
if (!
|
|
206
|
+
const i = pt(u), g = pt(e), p = [];
|
|
207
|
+
if (!i) return p;
|
|
208
208
|
const m = g?.__contextRefs[o.value || ""], b = g === m || a.value ? [] : Object.keys(m?.context || {}).filter(($) => !["context", "ref"].includes($)).map(($) => `this.context.${$}`);
|
|
209
209
|
b.length && p.push({ title: "上下文", items: b });
|
|
210
|
-
const c =
|
|
210
|
+
const c = i.inject.map(($) => `this.${$.name}`);
|
|
211
211
|
c.length && p.push({ title: "注入", items: c });
|
|
212
|
-
const _ =
|
|
212
|
+
const _ = i.props.map(
|
|
213
213
|
($) => typeof $ == "string" ? `this.props.${$}` : `this.props.${$.name}`
|
|
214
214
|
);
|
|
215
215
|
_.length && p.push({ title: "属性", items: _ });
|
|
216
|
-
const w = Object.keys(
|
|
216
|
+
const w = Object.keys(i.state).map(($) => `this.state.${$}`);
|
|
217
217
|
w.length && p.push({ title: "状态", items: w });
|
|
218
|
-
const x = Object.keys(
|
|
218
|
+
const x = Object.keys(i.computed).map(
|
|
219
219
|
($) => `this.${$}.value`
|
|
220
220
|
);
|
|
221
221
|
x.length && p.push({ title: "计算属性", items: x });
|
|
222
|
-
const C = Object.keys(
|
|
222
|
+
const C = Object.keys(i.methods).map(($) => `this.${$}`);
|
|
223
223
|
C.length && p.push({ title: "方法", items: C });
|
|
224
|
-
const
|
|
224
|
+
const I = Object.keys(i.dataSources).map(
|
|
225
225
|
($) => `this.${$}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
I.length && p.push({ title: "数据源", items: I });
|
|
228
228
|
const O = Object.keys(g?.$refs || {}).map(
|
|
229
229
|
($) => `this.$refs.${$}`
|
|
230
230
|
);
|
|
231
231
|
return O.length && p.push({ title: "refs", items: O }), p;
|
|
232
232
|
}), r = S(() => {
|
|
233
233
|
if (!t.value) return s.value;
|
|
234
|
-
const
|
|
234
|
+
const i = t.value.toLowerCase(), g = [];
|
|
235
235
|
return s.value.forEach((p) => {
|
|
236
236
|
const m = p.items.filter(
|
|
237
|
-
(f) => f.toLowerCase().includes(
|
|
237
|
+
(f) => f.toLowerCase().includes(i)
|
|
238
238
|
);
|
|
239
239
|
m.length && g.push({
|
|
240
240
|
title: p.title,
|
|
@@ -258,9 +258,9 @@ const Ge = [
|
|
|
258
258
|
label: "表达式"
|
|
259
259
|
}
|
|
260
260
|
];
|
|
261
|
-
function
|
|
261
|
+
function Ns(u) {
|
|
262
262
|
const e = ce(), t = S(() => {
|
|
263
|
-
const m =
|
|
263
|
+
const m = u.value?.model || null;
|
|
264
264
|
return ee(m) ? null : m;
|
|
265
265
|
}), l = k();
|
|
266
266
|
q(
|
|
@@ -323,36 +323,36 @@ function Ws(i) {
|
|
|
323
323
|
isExist: s
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
function ne(
|
|
326
|
+
function ne(u, e = "提示") {
|
|
327
327
|
return Ct.warning({
|
|
328
328
|
title: e,
|
|
329
|
-
message:
|
|
329
|
+
message: u
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
async function Oe(
|
|
333
|
-
return await Vt.confirm(
|
|
332
|
+
async function Oe(u) {
|
|
333
|
+
return await Vt.confirm(u, "提示", { type: "warning" }).catch(
|
|
334
334
|
() => !1
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
function de(
|
|
337
|
+
function de(u, e = "success") {
|
|
338
338
|
return tt({
|
|
339
|
-
message:
|
|
339
|
+
message: u,
|
|
340
340
|
type: e
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
function Js(
|
|
344
|
-
const e =
|
|
343
|
+
function Js(u) {
|
|
344
|
+
const e = u ? { ...u } : {};
|
|
345
345
|
return e.context = new Proxy(e.context || {}, {
|
|
346
346
|
get(t, l) {
|
|
347
347
|
return t[l] ?? {};
|
|
348
348
|
}
|
|
349
349
|
}), e;
|
|
350
350
|
}
|
|
351
|
-
function oe(
|
|
351
|
+
function oe(u, e, t = !1) {
|
|
352
352
|
let l = !0;
|
|
353
353
|
const a = Js(e);
|
|
354
354
|
try {
|
|
355
|
-
|
|
355
|
+
u.type === "JSExpression" ? Me(u, a, t, !0) : Tl(u, a, t, !0);
|
|
356
356
|
} catch (o) {
|
|
357
357
|
l = !1, Ct.error({
|
|
358
358
|
title: "代码错误",
|
|
@@ -361,42 +361,42 @@ function oe(i, e, t = !1) {
|
|
|
361
361
|
}
|
|
362
362
|
return l;
|
|
363
363
|
}
|
|
364
|
-
function Ms(
|
|
365
|
-
return Object.keys(
|
|
364
|
+
function Ms(u) {
|
|
365
|
+
return Object.keys(u).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(u))).filter((e) => !["constructor"].includes(e));
|
|
366
366
|
}
|
|
367
367
|
function Bn() {
|
|
368
|
-
const
|
|
369
|
-
() =>
|
|
368
|
+
const u = ce(), e = S(
|
|
369
|
+
() => u.simulator.designer.value
|
|
370
370
|
), t = S(
|
|
371
|
-
() =>
|
|
371
|
+
() => u.current.value ? u.history.value : null
|
|
372
372
|
), l = S(() => t.value?.items.length || 0), a = () => {
|
|
373
373
|
e.value?.cleanHelper(), t.value?.forward();
|
|
374
374
|
}, o = () => {
|
|
375
375
|
t.value?.backward(), e.value?.cleanHelper();
|
|
376
376
|
}, s = (g) => {
|
|
377
377
|
e.value?.cleanHelper(), t.value?.load(g), de("已载入历史记录", "success");
|
|
378
|
-
}, r = S(() => l.value <= 1 ? !0 : (t.value?.index || -1) <= 0),
|
|
378
|
+
}, r = S(() => l.value <= 1 ? !0 : (t.value?.index || -1) <= 0), i = S(() => l.value <= 1 ? !0 : (t.value?.index || -1) >= l.value - 1);
|
|
379
379
|
return {
|
|
380
|
-
engine:
|
|
380
|
+
engine: u,
|
|
381
381
|
history: t,
|
|
382
382
|
total: l,
|
|
383
383
|
forward: a,
|
|
384
384
|
backward: o,
|
|
385
385
|
load: s,
|
|
386
386
|
forwardDisabled: r,
|
|
387
|
-
backwardDisabled:
|
|
387
|
+
backwardDisabled: i
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
function Re() {
|
|
391
|
-
const
|
|
391
|
+
const u = ce(), e = S(() => u.project.value);
|
|
392
392
|
return {
|
|
393
|
-
engine:
|
|
393
|
+
engine: u,
|
|
394
394
|
project: e
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
function Ls(
|
|
397
|
+
function Ls(u) {
|
|
398
398
|
const e = ce(), t = S(() => {
|
|
399
|
-
const r =
|
|
399
|
+
const r = u.value?.model || null;
|
|
400
400
|
return !r || ee(r) ? null : r;
|
|
401
401
|
}), l = k();
|
|
402
402
|
q(
|
|
@@ -411,16 +411,16 @@ function Ls(i) {
|
|
|
411
411
|
const a = S(() => {
|
|
412
412
|
if (ee(t.value)) return [];
|
|
413
413
|
const r = t.value?.events || {};
|
|
414
|
-
return Es.map((
|
|
415
|
-
name:
|
|
416
|
-
event: r[
|
|
414
|
+
return Es.map((i) => ({
|
|
415
|
+
name: i,
|
|
416
|
+
event: r[i]
|
|
417
417
|
}));
|
|
418
418
|
}), o = S(() => {
|
|
419
419
|
if (ee(t.value)) return [];
|
|
420
420
|
const r = t.value?.events || {};
|
|
421
|
-
return Ps.map((
|
|
422
|
-
name:
|
|
423
|
-
event: r[
|
|
421
|
+
return Ps.map((i) => ({
|
|
422
|
+
name: i,
|
|
423
|
+
event: r[i]
|
|
424
424
|
}));
|
|
425
425
|
}), s = S(() => {
|
|
426
426
|
if (!t.value || ee(t.value)) return [];
|
|
@@ -439,27 +439,27 @@ function Ls(i) {
|
|
|
439
439
|
componentEventList: s
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
const Ht = (
|
|
443
|
-
name:
|
|
442
|
+
const Ht = (u, e) => new hn({
|
|
443
|
+
name: u,
|
|
444
444
|
value: void 0,
|
|
445
445
|
iterator: e
|
|
446
|
-
}), Us = (
|
|
446
|
+
}), Us = (u = "modelValue") => new hn({
|
|
447
447
|
name: "vModel",
|
|
448
448
|
value: void 0,
|
|
449
|
-
arg:
|
|
449
|
+
arg: u
|
|
450
450
|
});
|
|
451
|
-
function qs(
|
|
452
|
-
if (!
|
|
453
|
-
const { props: e = [], events: t = [] } =
|
|
451
|
+
function qs(u) {
|
|
452
|
+
if (!u) return [];
|
|
453
|
+
const { props: e = [], events: t = [] } = u;
|
|
454
454
|
if (e.length && t.length) {
|
|
455
455
|
const l = t.filter((a) => (typeof a == "string" ? a : a.name).startsWith("update:")).map((a) => a = typeof a == "string" ? a : a.name);
|
|
456
456
|
return l.length ? e.filter((a) => l.some((o) => o.endsWith(":" + a.name))) : [];
|
|
457
457
|
}
|
|
458
458
|
return [];
|
|
459
459
|
}
|
|
460
|
-
function Hs(
|
|
460
|
+
function Hs(u) {
|
|
461
461
|
const e = ce(), t = S(() => {
|
|
462
|
-
const c =
|
|
462
|
+
const c = u.value?.model || null;
|
|
463
463
|
return ee(c) ? null : c;
|
|
464
464
|
}), l = (c) => S(() => t.value && (t.value.directives || []).find((_) => _.name === c) || Ht(c)), a = () => S(() => {
|
|
465
465
|
if (!t.value) return [];
|
|
@@ -467,11 +467,11 @@ function Hs(i) {
|
|
|
467
467
|
return (c ? qs(c) : []).map((w) => (t.value?.directives || []).find(
|
|
468
468
|
(x) => x.name === "vModel" && x.arg == w.name
|
|
469
469
|
) || Us(w.name));
|
|
470
|
-
}), o = l("vIf"), s = l("vShow"), r = l("vBind"),
|
|
470
|
+
}), o = l("vIf"), s = l("vShow"), r = l("vBind"), i = l("vFor"), g = a(), p = {
|
|
471
471
|
vIf: o,
|
|
472
472
|
vShow: s,
|
|
473
473
|
vBind: r,
|
|
474
|
-
vFor:
|
|
474
|
+
vFor: i
|
|
475
475
|
};
|
|
476
476
|
return {
|
|
477
477
|
engine: e,
|
|
@@ -479,7 +479,7 @@ function Hs(i) {
|
|
|
479
479
|
vIf: o,
|
|
480
480
|
vShow: s,
|
|
481
481
|
vBind: r,
|
|
482
|
-
vFor:
|
|
482
|
+
vFor: i,
|
|
483
483
|
vModels: g,
|
|
484
484
|
onValueChange: (c, _) => {
|
|
485
485
|
const w = p[c];
|
|
@@ -488,13 +488,13 @@ function Hs(i) {
|
|
|
488
488
|
onForChange: (c, _) => {
|
|
489
489
|
if (t.value) {
|
|
490
490
|
if (c === "value") {
|
|
491
|
-
_ ? (
|
|
491
|
+
_ ? (i.value.value = _, t.value.setDirective(i.value)) : t.value.removeDirective(i.value);
|
|
492
492
|
return;
|
|
493
493
|
}
|
|
494
|
-
(c === "item" || c === "index") && (
|
|
495
|
-
...
|
|
494
|
+
(c === "item" || c === "index") && (i.value.iterator = {
|
|
495
|
+
...i.value.iterator,
|
|
496
496
|
[c]: _ || void 0
|
|
497
|
-
}, t.value.setDirective(
|
|
497
|
+
}, t.value.setDirective(i.value));
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
onModelChange: (c, _) => {
|
|
@@ -505,9 +505,9 @@ function Hs(i) {
|
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
function Gs() {
|
|
508
|
-
const { engine:
|
|
508
|
+
const { engine: u, project: e } = Re(), t = S(() => e.value?.apis || []), l = S(() => e.value?.meta || []);
|
|
509
509
|
return {
|
|
510
|
-
engine:
|
|
510
|
+
engine: u,
|
|
511
511
|
project: e,
|
|
512
512
|
apis: t,
|
|
513
513
|
meta: l
|
|
@@ -522,8 +522,8 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
522
522
|
text: { default: "VTJ" },
|
|
523
523
|
link: {}
|
|
524
524
|
},
|
|
525
|
-
setup(
|
|
526
|
-
const { engine: e } = ie(), t =
|
|
525
|
+
setup(u) {
|
|
526
|
+
const { engine: e } = ie(), t = u, l = S(() => t.icon || e.project.value?.config?.logo || Xs), a = () => {
|
|
527
527
|
t.link && (location.href = t.link);
|
|
528
528
|
};
|
|
529
529
|
return (o, s) => (d(), A("div", {
|
|
@@ -541,7 +541,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
541
541
|
}), Zs = { class: "v-empty-widget" }, eo = /* @__PURE__ */ E({
|
|
542
542
|
name: "EmptyWidget",
|
|
543
543
|
__name: "index",
|
|
544
|
-
setup(
|
|
544
|
+
setup(u) {
|
|
545
545
|
return (e, t) => (d(), A("div", Zs, "EmptyWidget"));
|
|
546
546
|
}
|
|
547
547
|
}), to = { class: "v-switcher-widget" }, no = { key: 1 }, lo = /* @__PURE__ */ E({
|
|
@@ -549,11 +549,11 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
549
549
|
inheritAttrs: !1,
|
|
550
550
|
__name: "index",
|
|
551
551
|
emits: ["click"],
|
|
552
|
-
setup(
|
|
552
|
+
setup(u, { emit: e }) {
|
|
553
553
|
const t = e, { engine: l } = ie(), a = S(() => l.project.value?.config?.title || l.project.value?.name), o = S(() => l.project.value?.currentFile?.title), s = () => {
|
|
554
554
|
t("click", l.project.value);
|
|
555
555
|
};
|
|
556
|
-
return (r,
|
|
556
|
+
return (r, i) => (d(), A("div", to, [
|
|
557
557
|
v(n(ae), {
|
|
558
558
|
size: "small",
|
|
559
559
|
round: "",
|
|
@@ -579,11 +579,11 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
579
579
|
props: {
|
|
580
580
|
preview: { type: Boolean }
|
|
581
581
|
},
|
|
582
|
-
setup(
|
|
583
|
-
const t =
|
|
582
|
+
setup(u, { expose: e }) {
|
|
583
|
+
const t = u, { forward: l, backward: a, forwardDisabled: o, backwardDisabled: s } = Bn(), r = k("pc");
|
|
584
584
|
return e({
|
|
585
585
|
mode: r
|
|
586
|
-
}), (
|
|
586
|
+
}), (i, g) => (d(), A("div", ao, [
|
|
587
587
|
v(n(sn), {
|
|
588
588
|
size: "small",
|
|
589
589
|
modelValue: r.value,
|
|
@@ -657,7 +657,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
657
657
|
props: {
|
|
658
658
|
coder: { type: Boolean, default: !0 }
|
|
659
659
|
},
|
|
660
|
-
setup(
|
|
660
|
+
setup(u) {
|
|
661
661
|
const { engine: e, designer: t } = ke(), l = k(!1), a = () => {
|
|
662
662
|
e.current.value ? (l.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (t.value?.setSelected(null), e.simulator.refresh()), de("刷新完成", "success")) : de("请先打开文件", "warning");
|
|
663
663
|
}, o = async () => {
|
|
@@ -675,7 +675,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
675
675
|
}, r = () => {
|
|
676
676
|
const g = e.project.value;
|
|
677
677
|
g && (g.currentFile ? g.publish(g.currentFile) : de("请先打开文件", "warning"));
|
|
678
|
-
},
|
|
678
|
+
}, i = (g) => {
|
|
679
679
|
const p = e.project.value;
|
|
680
680
|
p && (g === "current" ? r() : p.publish());
|
|
681
681
|
};
|
|
@@ -721,7 +721,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
721
721
|
type: "primary",
|
|
722
722
|
size: "small",
|
|
723
723
|
onClick: r,
|
|
724
|
-
onCommand:
|
|
724
|
+
onCommand: i
|
|
725
725
|
}, {
|
|
726
726
|
dropdown: h(() => [
|
|
727
727
|
v(n(rn), null, {
|
|
@@ -757,10 +757,10 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
757
757
|
size: { default: "small" }
|
|
758
758
|
},
|
|
759
759
|
emits: ["change", "update:modelValue"],
|
|
760
|
-
setup(
|
|
761
|
-
const t =
|
|
760
|
+
setup(u, { emit: e }) {
|
|
761
|
+
const t = u, l = e, a = k(!1), o = k(t.modelValue), s = k(""), r = S(
|
|
762
762
|
() => kt[t.modelValue] || t.modelValue
|
|
763
|
-
),
|
|
763
|
+
), i = S(() => {
|
|
764
764
|
const b = Object.entries(kt);
|
|
765
765
|
return s.value ? b.filter((c) => c[0].toLowerCase().includes(s.value)) : b;
|
|
766
766
|
}), g = (b) => {
|
|
@@ -814,19 +814,19 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
814
814
|
V("div", co, [
|
|
815
815
|
v(n(ye), {
|
|
816
816
|
size: t.size,
|
|
817
|
-
"prefix-icon": n(
|
|
817
|
+
"prefix-icon": n(It),
|
|
818
818
|
clearable: "",
|
|
819
819
|
modelValue: s.value,
|
|
820
820
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => s.value = _),
|
|
821
821
|
placeholder: "请输入查询关键字"
|
|
822
822
|
}, null, 8, ["size", "prefix-icon", "modelValue"]),
|
|
823
823
|
V("div", po, [
|
|
824
|
-
(d(!0), A(T, null,
|
|
824
|
+
(d(!0), A(T, null, W(i.value, (_) => (d(), y(n(xe), {
|
|
825
825
|
icon: _[1],
|
|
826
826
|
onClick: (w) => g(_[0]),
|
|
827
827
|
class: H({ "is-active": o.value === _[0] })
|
|
828
828
|
}, null, 8, ["icon", "onClick", "class"]))), 256)),
|
|
829
|
-
|
|
829
|
+
i.value.length === 0 ? (d(), y(n(se), { key: 0 })) : j("", !0)
|
|
830
830
|
])
|
|
831
831
|
])
|
|
832
832
|
]),
|
|
@@ -841,8 +841,8 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
841
841
|
item: {},
|
|
842
842
|
parentId: {}
|
|
843
843
|
},
|
|
844
|
-
setup(
|
|
845
|
-
const e =
|
|
844
|
+
setup(u) {
|
|
845
|
+
const e = u, { project: t } = Re(), l = S(() => e.item ? "编辑页面" : "新增页面"), a = () => ({
|
|
846
846
|
dir: !1,
|
|
847
847
|
name: "",
|
|
848
848
|
title: "",
|
|
@@ -855,14 +855,14 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
855
855
|
{ label: "目录", value: !0 }
|
|
856
856
|
], r = (g) => {
|
|
857
857
|
o.value && (o.value.name = fn(g));
|
|
858
|
-
},
|
|
858
|
+
}, i = async (g) => t.value?.existPageName(g.name, [g.id]) ? (ne("页面名称已存在,请更换"), !1) : (e.item ? t.value?.updatePage(g) : t.value?.createPage(g, e.parentId), !0);
|
|
859
859
|
return (g, p) => (d(), y(n(Ve), {
|
|
860
860
|
title: l.value,
|
|
861
861
|
width: "800px",
|
|
862
862
|
height: "500px",
|
|
863
863
|
"form-props": { tooltipMessage: !1 },
|
|
864
864
|
model: o.value,
|
|
865
|
-
"submit-method":
|
|
865
|
+
"submit-method": i
|
|
866
866
|
}, {
|
|
867
867
|
default: h(() => [
|
|
868
868
|
v(n(B), {
|
|
@@ -934,8 +934,8 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
934
934
|
open: { type: Boolean, default: !1 }
|
|
935
935
|
},
|
|
936
936
|
emits: ["click"],
|
|
937
|
-
setup(
|
|
938
|
-
const t =
|
|
937
|
+
setup(u, { emit: e }) {
|
|
938
|
+
const t = u, l = e, a = S(() => ({
|
|
939
939
|
"is-active": t.active,
|
|
940
940
|
"is-open": t.open
|
|
941
941
|
})), o = () => {
|
|
@@ -973,14 +973,14 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
973
973
|
collapsable: { type: Boolean }
|
|
974
974
|
},
|
|
975
975
|
emits: ["plus", "back", "remove", "save", "edit"],
|
|
976
|
-
setup(
|
|
977
|
-
const t =
|
|
976
|
+
setup(u, { emit: e }) {
|
|
977
|
+
const t = u, l = e, a = k(!1), o = S(() => ({
|
|
978
978
|
"is-collapsed": !!a.value
|
|
979
979
|
})), s = () => {
|
|
980
980
|
l("plus");
|
|
981
981
|
}, r = () => {
|
|
982
982
|
l("edit");
|
|
983
|
-
},
|
|
983
|
+
}, i = () => {
|
|
984
984
|
l("back");
|
|
985
985
|
}, g = () => {
|
|
986
986
|
l("remove");
|
|
@@ -990,7 +990,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
990
990
|
content: t.title,
|
|
991
991
|
subtitle: t.subtitle,
|
|
992
992
|
icon: t.back ? ea : void 0,
|
|
993
|
-
onClickBack: t.back ?
|
|
993
|
+
onClickBack: t.back ? i : void 0,
|
|
994
994
|
onClick: t.collapsable ? () => {
|
|
995
995
|
a.value = !a.value;
|
|
996
996
|
} : void 0
|
|
@@ -1049,7 +1049,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1049
1049
|
title: "展开",
|
|
1050
1050
|
onClick: c[0] || (c[0] = (_) => f(!1))
|
|
1051
1051
|
}, null, 8, ["size", "icon"])), [
|
|
1052
|
-
[
|
|
1052
|
+
[Ie, a.value]
|
|
1053
1053
|
]) : j("", !0),
|
|
1054
1054
|
t.collapsable ? Ee((d(), y(n(he), {
|
|
1055
1055
|
key: 5,
|
|
@@ -1060,7 +1060,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1060
1060
|
title: "收起",
|
|
1061
1061
|
onClick: c[1] || (c[1] = (_) => f(!0))
|
|
1062
1062
|
}, null, 8, ["size", "icon"])), [
|
|
1063
|
-
[
|
|
1063
|
+
[Ie, !a.value]
|
|
1064
1064
|
]) : j("", !0),
|
|
1065
1065
|
Se(b.$slots, "actions")
|
|
1066
1066
|
]),
|
|
@@ -1096,26 +1096,26 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1096
1096
|
"remove",
|
|
1097
1097
|
"action-click"
|
|
1098
1098
|
],
|
|
1099
|
-
setup(
|
|
1100
|
-
const t =
|
|
1099
|
+
setup(u, { emit: e }) {
|
|
1100
|
+
const t = u, l = e, a = k(
|
|
1101
1101
|
(t.modelValue || t.items[0]?.name) ?? ""
|
|
1102
1102
|
);
|
|
1103
1103
|
q(a, () => {
|
|
1104
1104
|
l("update:modelValue", a.value);
|
|
1105
1105
|
}), q(
|
|
1106
1106
|
() => t.modelValue,
|
|
1107
|
-
(
|
|
1108
|
-
a.value =
|
|
1107
|
+
(i) => {
|
|
1108
|
+
a.value = i;
|
|
1109
1109
|
}
|
|
1110
1110
|
);
|
|
1111
|
-
const o = (
|
|
1112
|
-
l("command",
|
|
1113
|
-
}, s = (
|
|
1114
|
-
l("remove",
|
|
1115
|
-
}, r = (
|
|
1116
|
-
l("action-click",
|
|
1111
|
+
const o = (i) => {
|
|
1112
|
+
l("command", i);
|
|
1113
|
+
}, s = (i) => {
|
|
1114
|
+
l("remove", i);
|
|
1115
|
+
}, r = (i) => {
|
|
1116
|
+
l("action-click", i);
|
|
1117
1117
|
};
|
|
1118
|
-
return (
|
|
1118
|
+
return (i, g) => (d(), y(n(nt), {
|
|
1119
1119
|
class: "v-tabs",
|
|
1120
1120
|
border: !1,
|
|
1121
1121
|
fit: "",
|
|
@@ -1165,7 +1165,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1165
1165
|
])
|
|
1166
1166
|
]),
|
|
1167
1167
|
default: h(() => [
|
|
1168
|
-
Se(
|
|
1168
|
+
Se(i.$slots, "default")
|
|
1169
1169
|
]),
|
|
1170
1170
|
_: 3
|
|
1171
1171
|
}));
|
|
@@ -1194,7 +1194,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1194
1194
|
small: { type: Boolean }
|
|
1195
1195
|
},
|
|
1196
1196
|
emits: ["click", "action", "update:modelValue", "switch"],
|
|
1197
|
-
setup(
|
|
1197
|
+
setup(u, { emit: e }) {
|
|
1198
1198
|
const t = {
|
|
1199
1199
|
add: {
|
|
1200
1200
|
label: "创建",
|
|
@@ -1232,7 +1232,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1232
1232
|
label: "主页",
|
|
1233
1233
|
icon: ra
|
|
1234
1234
|
}
|
|
1235
|
-
}, l =
|
|
1235
|
+
}, l = u, a = e, o = k(!!l.modelValue), s = S(() => l.actions.map((p) => {
|
|
1236
1236
|
const m = t[p];
|
|
1237
1237
|
return {
|
|
1238
1238
|
name: p,
|
|
@@ -1244,7 +1244,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1244
1244
|
"is-active": l.active,
|
|
1245
1245
|
"is-hover": l.hover,
|
|
1246
1246
|
"is-small": l.small
|
|
1247
|
-
})),
|
|
1247
|
+
})), i = () => {
|
|
1248
1248
|
a("click", l.modelValue);
|
|
1249
1249
|
}, g = async (p) => {
|
|
1250
1250
|
p === "remove" ? await Vt.confirm("确定删除吗?", "提示", {
|
|
@@ -1268,7 +1268,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1268
1268
|
class: H(["v-item", r.value]),
|
|
1269
1269
|
justify: "space-between",
|
|
1270
1270
|
align: "center",
|
|
1271
|
-
onClick:
|
|
1271
|
+
onClick: i
|
|
1272
1272
|
}, {
|
|
1273
1273
|
default: h(() => [
|
|
1274
1274
|
v(n(M), {
|
|
@@ -1304,11 +1304,11 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1304
1304
|
}),
|
|
1305
1305
|
v(n(M), {
|
|
1306
1306
|
class: "v-item__actions",
|
|
1307
|
-
onClick: m[1] || (m[1] =
|
|
1307
|
+
onClick: m[1] || (m[1] = We(() => {
|
|
1308
1308
|
}, ["stop"]))
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: h(() => [
|
|
1311
|
-
(d(!0), A(T, null,
|
|
1311
|
+
(d(!0), A(T, null, W(s.value, (f) => (d(), y(n(he), {
|
|
1312
1312
|
name: f.name,
|
|
1313
1313
|
title: f.label,
|
|
1314
1314
|
mode: "icon",
|
|
@@ -1346,8 +1346,8 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1346
1346
|
tagType: {}
|
|
1347
1347
|
},
|
|
1348
1348
|
emits: ["edit", "remove", "dragstart", "dragend"],
|
|
1349
|
-
setup(
|
|
1350
|
-
const t =
|
|
1349
|
+
setup(u, { emit: e }) {
|
|
1350
|
+
const t = u, l = e, a = () => {
|
|
1351
1351
|
l("edit");
|
|
1352
1352
|
}, o = async () => {
|
|
1353
1353
|
await Vt.confirm("确认删除?", "提示", {
|
|
@@ -1358,14 +1358,14 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1358
1358
|
"is-draggable": t.draggable
|
|
1359
1359
|
})), r = () => {
|
|
1360
1360
|
l("dragstart", t);
|
|
1361
|
-
},
|
|
1361
|
+
}, i = () => {
|
|
1362
1362
|
l("dragend", t);
|
|
1363
1363
|
};
|
|
1364
1364
|
return (g, p) => (d(), A("div", {
|
|
1365
1365
|
class: H(["v-box", s.value]),
|
|
1366
1366
|
draggable: g.draggable,
|
|
1367
1367
|
onDragstart: r,
|
|
1368
|
-
onDragend:
|
|
1368
|
+
onDragend: i
|
|
1369
1369
|
}, [
|
|
1370
1370
|
v(n(M), {
|
|
1371
1371
|
direction: "column",
|
|
@@ -1403,37 +1403,37 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1403
1403
|
], 42, bo));
|
|
1404
1404
|
}
|
|
1405
1405
|
});
|
|
1406
|
-
function Rt(
|
|
1407
|
-
return Un() ? (qn(
|
|
1406
|
+
function Rt(u) {
|
|
1407
|
+
return Un() ? (qn(u), !0) : !1;
|
|
1408
1408
|
}
|
|
1409
|
-
function ot(
|
|
1410
|
-
return typeof
|
|
1409
|
+
function ot(u) {
|
|
1410
|
+
return typeof u == "function" ? u() : n(u);
|
|
1411
1411
|
}
|
|
1412
1412
|
const rt = typeof window < "u" && typeof document < "u";
|
|
1413
1413
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1414
|
-
const wo = Object.prototype.toString, ko = (
|
|
1414
|
+
const wo = Object.prototype.toString, ko = (u) => wo.call(u) === "[object Object]", Ye = () => {
|
|
1415
1415
|
}, So = /* @__PURE__ */ xo();
|
|
1416
1416
|
function xo() {
|
|
1417
|
-
var
|
|
1418
|
-
return rt && ((
|
|
1417
|
+
var u, e;
|
|
1418
|
+
return rt && ((u = window?.navigator) == null ? void 0 : u.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
1419
1419
|
}
|
|
1420
|
-
function Co(
|
|
1420
|
+
function Co(u) {
|
|
1421
1421
|
let e;
|
|
1422
1422
|
function t() {
|
|
1423
|
-
return e || (e =
|
|
1423
|
+
return e || (e = u()), e;
|
|
1424
1424
|
}
|
|
1425
1425
|
return t.reset = async () => {
|
|
1426
1426
|
const l = e;
|
|
1427
1427
|
e = void 0, l && await l;
|
|
1428
1428
|
}, t;
|
|
1429
1429
|
}
|
|
1430
|
-
function Vo(
|
|
1430
|
+
function Vo(u) {
|
|
1431
1431
|
return Zt();
|
|
1432
1432
|
}
|
|
1433
|
-
function Ao(
|
|
1434
|
-
Vo() ? et(
|
|
1433
|
+
function Ao(u, e = !0, t) {
|
|
1434
|
+
Vo() ? et(u, t) : e ? u() : we(u);
|
|
1435
1435
|
}
|
|
1436
|
-
function jo(
|
|
1436
|
+
function jo(u, e, t = {}) {
|
|
1437
1437
|
const {
|
|
1438
1438
|
immediate: l = !0
|
|
1439
1439
|
} = t, a = k(!1);
|
|
@@ -1444,31 +1444,31 @@ function jo(i, e, t = {}) {
|
|
|
1444
1444
|
function r() {
|
|
1445
1445
|
a.value = !1, s();
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function i(...g) {
|
|
1448
1448
|
s(), a.value = !0, o = setTimeout(() => {
|
|
1449
|
-
a.value = !1, o = null,
|
|
1449
|
+
a.value = !1, o = null, u(...g);
|
|
1450
1450
|
}, ot(e));
|
|
1451
1451
|
}
|
|
1452
|
-
return l && (a.value = !0, rt &&
|
|
1452
|
+
return l && (a.value = !0, rt && i()), Rt(r), {
|
|
1453
1453
|
isPending: Ln(a),
|
|
1454
|
-
start:
|
|
1454
|
+
start: i,
|
|
1455
1455
|
stop: r
|
|
1456
1456
|
};
|
|
1457
1457
|
}
|
|
1458
|
-
function be(
|
|
1458
|
+
function be(u) {
|
|
1459
1459
|
var e;
|
|
1460
|
-
const t = ot(
|
|
1460
|
+
const t = ot(u);
|
|
1461
1461
|
return (e = t?.$el) != null ? e : t;
|
|
1462
1462
|
}
|
|
1463
1463
|
const it = rt ? window : void 0, $n = rt ? window.navigator : void 0;
|
|
1464
|
-
function
|
|
1464
|
+
function Ne(...u) {
|
|
1465
1465
|
let e, t, l, a;
|
|
1466
|
-
if (typeof
|
|
1466
|
+
if (typeof u[0] == "string" || Array.isArray(u[0]) ? ([t, l, a] = u, e = it) : [e, t, l, a] = u, !e)
|
|
1467
1467
|
return Ye;
|
|
1468
1468
|
Array.isArray(t) || (t = [t]), Array.isArray(l) || (l = [l]);
|
|
1469
1469
|
const o = [], s = () => {
|
|
1470
1470
|
o.forEach((p) => p()), o.length = 0;
|
|
1471
|
-
}, r = (p, m, f, b) => (p.addEventListener(m, f, b), () => p.removeEventListener(m, f, b)),
|
|
1471
|
+
}, r = (p, m, f, b) => (p.addEventListener(m, f, b), () => p.removeEventListener(m, f, b)), i = q(
|
|
1472
1472
|
() => [be(e), ot(a)],
|
|
1473
1473
|
([p, m]) => {
|
|
1474
1474
|
if (s(), !p)
|
|
@@ -1480,18 +1480,18 @@ function We(...i) {
|
|
|
1480
1480
|
},
|
|
1481
1481
|
{ immediate: !0, flush: "post" }
|
|
1482
1482
|
), g = () => {
|
|
1483
|
-
|
|
1483
|
+
i(), s();
|
|
1484
1484
|
};
|
|
1485
1485
|
return Rt(g), g;
|
|
1486
1486
|
}
|
|
1487
1487
|
let Xt = !1;
|
|
1488
|
-
function Eo(
|
|
1488
|
+
function Eo(u, e, t = {}) {
|
|
1489
1489
|
const { window: l = it, ignore: a = [], capture: o = !0, detectIframe: s = !1 } = t;
|
|
1490
1490
|
if (!l)
|
|
1491
1491
|
return Ye;
|
|
1492
1492
|
So && !Xt && (Xt = !0, Array.from(l.document.body.children).forEach((f) => f.addEventListener("click", Ye)), l.document.documentElement.addEventListener("click", Ye));
|
|
1493
1493
|
let r = !0;
|
|
1494
|
-
const
|
|
1494
|
+
const i = (f) => a.some((b) => {
|
|
1495
1495
|
if (typeof b == "string")
|
|
1496
1496
|
return Array.from(l.document.querySelectorAll(b)).some((c) => c === f.target || f.composedPath().includes(c));
|
|
1497
1497
|
{
|
|
@@ -1499,24 +1499,24 @@ function Eo(i, e, t = {}) {
|
|
|
1499
1499
|
return c && (f.target === c || f.composedPath().includes(c));
|
|
1500
1500
|
}
|
|
1501
1501
|
}), p = [
|
|
1502
|
-
|
|
1503
|
-
const b = be(
|
|
1502
|
+
Ne(l, "click", (f) => {
|
|
1503
|
+
const b = be(u);
|
|
1504
1504
|
if (!(!b || b === f.target || f.composedPath().includes(b))) {
|
|
1505
|
-
if (f.detail === 0 && (r = !
|
|
1505
|
+
if (f.detail === 0 && (r = !i(f)), !r) {
|
|
1506
1506
|
r = !0;
|
|
1507
1507
|
return;
|
|
1508
1508
|
}
|
|
1509
1509
|
e(f);
|
|
1510
1510
|
}
|
|
1511
1511
|
}, { passive: !0, capture: o }),
|
|
1512
|
-
|
|
1513
|
-
const b = be(
|
|
1514
|
-
r = !
|
|
1512
|
+
Ne(l, "pointerdown", (f) => {
|
|
1513
|
+
const b = be(u);
|
|
1514
|
+
r = !i(f) && !!(b && !f.composedPath().includes(b));
|
|
1515
1515
|
}, { passive: !0 }),
|
|
1516
|
-
s &&
|
|
1516
|
+
s && Ne(l, "blur", (f) => {
|
|
1517
1517
|
setTimeout(() => {
|
|
1518
1518
|
var b;
|
|
1519
|
-
const c = be(
|
|
1519
|
+
const c = be(u);
|
|
1520
1520
|
((b = l.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !c?.contains(l.document.activeElement) && e(f);
|
|
1521
1521
|
}, 0);
|
|
1522
1522
|
})
|
|
@@ -1524,28 +1524,28 @@ function Eo(i, e, t = {}) {
|
|
|
1524
1524
|
return () => p.forEach((f) => f());
|
|
1525
1525
|
}
|
|
1526
1526
|
function Po() {
|
|
1527
|
-
const
|
|
1527
|
+
const u = k(!1), e = Zt();
|
|
1528
1528
|
return e && et(() => {
|
|
1529
|
-
|
|
1530
|
-
}, e),
|
|
1529
|
+
u.value = !0;
|
|
1530
|
+
}, e), u;
|
|
1531
1531
|
}
|
|
1532
|
-
function $t(
|
|
1532
|
+
function $t(u) {
|
|
1533
1533
|
const e = Po();
|
|
1534
|
-
return S(() => (e.value, !!
|
|
1534
|
+
return S(() => (e.value, !!u()));
|
|
1535
1535
|
}
|
|
1536
|
-
function Qt(
|
|
1536
|
+
function Qt(u, e = {}) {
|
|
1537
1537
|
const {
|
|
1538
1538
|
controls: t = !1,
|
|
1539
1539
|
navigator: l = $n
|
|
1540
1540
|
} = e, a = $t(() => l && "permissions" in l);
|
|
1541
1541
|
let o;
|
|
1542
|
-
const s = typeof
|
|
1542
|
+
const s = typeof u == "string" ? { name: u } : u, r = k(), i = () => {
|
|
1543
1543
|
o && (r.value = o.state);
|
|
1544
1544
|
}, g = Co(async () => {
|
|
1545
1545
|
if (a.value) {
|
|
1546
1546
|
if (!o)
|
|
1547
1547
|
try {
|
|
1548
|
-
o = await l.permissions.query(s),
|
|
1548
|
+
o = await l.permissions.query(s), Ne(o, "change", i), i();
|
|
1549
1549
|
} catch {
|
|
1550
1550
|
r.value = "prompt";
|
|
1551
1551
|
}
|
|
@@ -1558,30 +1558,30 @@ function Qt(i, e = {}) {
|
|
|
1558
1558
|
query: g
|
|
1559
1559
|
} : r;
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function Do(u = {}) {
|
|
1562
1562
|
const {
|
|
1563
1563
|
navigator: e = $n,
|
|
1564
1564
|
read: t = !1,
|
|
1565
1565
|
source: l,
|
|
1566
1566
|
copiedDuring: a = 1500,
|
|
1567
1567
|
legacy: o = !1
|
|
1568
|
-
} =
|
|
1568
|
+
} = u, s = $t(() => e && "clipboard" in e), r = Qt("clipboard-read"), i = Qt("clipboard-write"), g = S(() => s.value || o), p = k(""), m = k(!1), f = jo(() => m.value = !1, a);
|
|
1569
1569
|
function b() {
|
|
1570
1570
|
s.value && x(r.value) ? e.clipboard.readText().then((C) => {
|
|
1571
1571
|
p.value = C;
|
|
1572
1572
|
}) : p.value = w();
|
|
1573
1573
|
}
|
|
1574
|
-
g.value && t &&
|
|
1574
|
+
g.value && t && Ne(["copy", "cut"], b);
|
|
1575
1575
|
async function c(C = ot(l)) {
|
|
1576
|
-
g.value && C != null && (s.value && x(
|
|
1576
|
+
g.value && C != null && (s.value && x(i.value) ? await e.clipboard.writeText(C) : _(C), p.value = C, m.value = !0, f.start());
|
|
1577
1577
|
}
|
|
1578
1578
|
function _(C) {
|
|
1579
|
-
const
|
|
1580
|
-
|
|
1579
|
+
const I = document.createElement("textarea");
|
|
1580
|
+
I.value = C ?? "", I.style.position = "absolute", I.style.opacity = "0", document.body.appendChild(I), I.select(), document.execCommand("copy"), I.remove();
|
|
1581
1581
|
}
|
|
1582
1582
|
function w() {
|
|
1583
|
-
var C,
|
|
1584
|
-
return (O = (
|
|
1583
|
+
var C, I, O;
|
|
1584
|
+
return (O = (I = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : I.toString()) != null ? O : "";
|
|
1585
1585
|
}
|
|
1586
1586
|
function x(C) {
|
|
1587
1587
|
return C === "granted" || C === "prompt";
|
|
@@ -1593,13 +1593,13 @@ function Io(i = {}) {
|
|
|
1593
1593
|
copy: c
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function Io(u, e, t = {}) {
|
|
1597
1597
|
const { window: l = it, ...a } = t;
|
|
1598
1598
|
let o;
|
|
1599
1599
|
const s = $t(() => l && "ResizeObserver" in l), r = () => {
|
|
1600
1600
|
o && (o.disconnect(), o = void 0);
|
|
1601
|
-
},
|
|
1602
|
-
|
|
1601
|
+
}, i = S(() => Array.isArray(u) ? u.map((m) => be(m)) : [be(u)]), g = q(
|
|
1602
|
+
i,
|
|
1603
1603
|
(m) => {
|
|
1604
1604
|
if (r(), s.value && l) {
|
|
1605
1605
|
o = new ResizeObserver(e);
|
|
@@ -1616,16 +1616,16 @@ function Do(i, e, t = {}) {
|
|
|
1616
1616
|
stop: p
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
|
-
function Ue(
|
|
1619
|
+
function Ue(u, e = { width: 0, height: 0 }, t = {}) {
|
|
1620
1620
|
const { window: l = it, box: a = "content-box" } = t, o = S(() => {
|
|
1621
1621
|
var m, f;
|
|
1622
|
-
return (f = (m = be(
|
|
1623
|
-
}), s = k(e.width), r = k(e.height), { stop:
|
|
1624
|
-
|
|
1622
|
+
return (f = (m = be(u)) == null ? void 0 : m.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
1623
|
+
}), s = k(e.width), r = k(e.height), { stop: i } = Io(
|
|
1624
|
+
u,
|
|
1625
1625
|
([m]) => {
|
|
1626
1626
|
const f = a === "border-box" ? m.borderBoxSize : a === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
|
|
1627
1627
|
if (l && o.value) {
|
|
1628
|
-
const b = be(
|
|
1628
|
+
const b = be(u);
|
|
1629
1629
|
if (b) {
|
|
1630
1630
|
const c = b.getBoundingClientRect();
|
|
1631
1631
|
s.value = c.width, r.value = c.height;
|
|
@@ -1639,17 +1639,17 @@ function Ue(i, e = { width: 0, height: 0 }, t = {}) {
|
|
|
1639
1639
|
t
|
|
1640
1640
|
);
|
|
1641
1641
|
Ao(() => {
|
|
1642
|
-
const m = be(
|
|
1642
|
+
const m = be(u);
|
|
1643
1643
|
m && (s.value = "offsetWidth" in m ? m.offsetWidth : e.width, r.value = "offsetHeight" in m ? m.offsetHeight : e.height);
|
|
1644
1644
|
});
|
|
1645
1645
|
const g = q(
|
|
1646
|
-
() => be(
|
|
1646
|
+
() => be(u),
|
|
1647
1647
|
(m) => {
|
|
1648
1648
|
s.value = m ? e.width : 0, r.value = m ? e.height : 0;
|
|
1649
1649
|
}
|
|
1650
1650
|
);
|
|
1651
1651
|
function p() {
|
|
1652
|
-
|
|
1652
|
+
i(), g();
|
|
1653
1653
|
}
|
|
1654
1654
|
return {
|
|
1655
1655
|
width: s,
|
|
@@ -1663,8 +1663,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1663
1663
|
context: {}
|
|
1664
1664
|
},
|
|
1665
1665
|
emits: ["pick", "copy"],
|
|
1666
|
-
setup(
|
|
1667
|
-
const t =
|
|
1666
|
+
setup(u, { emit: e }) {
|
|
1667
|
+
const t = u, l = e, a = ["$provider", "$apis", "$components", "context"], o = (p) => {
|
|
1668
1668
|
const m = p.value, f = ut(m);
|
|
1669
1669
|
return f === "Object" || f === "Module" ? Object.keys(m || {}).length === 0 : f === "Array" ? m.length === 0 : !0;
|
|
1670
1670
|
}, s = (p, m = "this") => typeof p == "object" ? Array.isArray(p) ? p.map((b, c) => {
|
|
@@ -1692,7 +1692,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1692
1692
|
const f = Hn(p.data.value);
|
|
1693
1693
|
m(s(f, p.data.path));
|
|
1694
1694
|
}
|
|
1695
|
-
},
|
|
1695
|
+
}, i = (p) => {
|
|
1696
1696
|
l("copy", p.path);
|
|
1697
1697
|
}, g = (p) => {
|
|
1698
1698
|
l("pick", p.path);
|
|
@@ -1714,7 +1714,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1714
1714
|
onClick: (b) => g(f),
|
|
1715
1715
|
background: "",
|
|
1716
1716
|
actions: ["copy"],
|
|
1717
|
-
onAction: (b) =>
|
|
1717
|
+
onAction: (b) => i(f),
|
|
1718
1718
|
grow: "",
|
|
1719
1719
|
small: ""
|
|
1720
1720
|
}, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
|
|
@@ -1743,8 +1743,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1743
1743
|
"update:modelValue",
|
|
1744
1744
|
"close"
|
|
1745
1745
|
],
|
|
1746
|
-
setup(
|
|
1747
|
-
const t =
|
|
1746
|
+
setup(u, { emit: e }) {
|
|
1747
|
+
const t = u, l = e, { searchResult: a, keyword: o } = Ws(t.block, t.context), { copy: s } = Do({}), r = [
|
|
1748
1748
|
{
|
|
1749
1749
|
name: "normal",
|
|
1750
1750
|
label: "常用"
|
|
@@ -1753,7 +1753,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1753
1753
|
name: "viewer",
|
|
1754
1754
|
label: "高级"
|
|
1755
1755
|
}
|
|
1756
|
-
],
|
|
1756
|
+
], i = k("normal"), g = k(), p = async (x) => {
|
|
1757
1757
|
l("submit", x), t.submitMethod ? await t.submitMethod(x) && m() : m();
|
|
1758
1758
|
}, m = () => {
|
|
1759
1759
|
l("update:modelValue", !1), l("close");
|
|
@@ -1797,8 +1797,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1797
1797
|
v(st, {
|
|
1798
1798
|
class: "v-binder__tabs",
|
|
1799
1799
|
items: r,
|
|
1800
|
-
modelValue:
|
|
1801
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
1800
|
+
modelValue: i.value,
|
|
1801
|
+
"onUpdate:modelValue": C[1] || (C[1] = (I) => i.value = I)
|
|
1802
1802
|
}, {
|
|
1803
1803
|
default: h(() => [
|
|
1804
1804
|
v(n(M), {
|
|
@@ -1811,20 +1811,20 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1811
1811
|
Ee(V("div", null, [
|
|
1812
1812
|
v(n(ye), {
|
|
1813
1813
|
modelValue: n(o),
|
|
1814
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
1814
|
+
"onUpdate:modelValue": C[0] || (C[0] = (I) => mt(o) ? o.value = I : null),
|
|
1815
1815
|
size: "small",
|
|
1816
1816
|
clearable: "",
|
|
1817
|
-
"prefix-icon": n(
|
|
1817
|
+
"prefix-icon": n(It),
|
|
1818
1818
|
placeholder: "筛选可用项"
|
|
1819
1819
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
|
1820
|
-
(d(!0), A(T, null,
|
|
1820
|
+
(d(!0), A(T, null, W(n(a), (I) => (d(), A("div", null, [
|
|
1821
1821
|
v(n(At), { "border-style": "dotted" }, {
|
|
1822
1822
|
default: h(() => [
|
|
1823
|
-
G(z(
|
|
1823
|
+
G(z(I.title), 1)
|
|
1824
1824
|
]),
|
|
1825
1825
|
_: 2
|
|
1826
1826
|
}, 1024),
|
|
1827
|
-
(d(!0), A(T, null,
|
|
1827
|
+
(d(!0), A(T, null, W(I.items, (O) => (d(), y(ue, {
|
|
1828
1828
|
title: O,
|
|
1829
1829
|
background: "",
|
|
1830
1830
|
actions: ["copy"],
|
|
@@ -1835,14 +1835,14 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1835
1835
|
]))), 256)),
|
|
1836
1836
|
n(a).length ? j("", !0) : (d(), y(n(se), { key: 0 }))
|
|
1837
1837
|
], 512), [
|
|
1838
|
-
[
|
|
1838
|
+
[Ie, i.value === "normal"]
|
|
1839
1839
|
]),
|
|
1840
1840
|
Ee(v(Ro, {
|
|
1841
1841
|
context: t.context,
|
|
1842
1842
|
onCopy: w,
|
|
1843
1843
|
onPick: _
|
|
1844
1844
|
}, null, 8, ["context"]), [
|
|
1845
|
-
[
|
|
1845
|
+
[Ie, i.value === "viewer"]
|
|
1846
1846
|
])
|
|
1847
1847
|
]),
|
|
1848
1848
|
_: 1
|
|
@@ -1939,13 +1939,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1939
1939
|
slots: { default: () => [] }
|
|
1940
1940
|
},
|
|
1941
1941
|
emits: ["submit", "update:modelValue"],
|
|
1942
|
-
setup(
|
|
1943
|
-
const t =
|
|
1944
|
-
a.value =
|
|
1942
|
+
setup(u, { emit: e }) {
|
|
1943
|
+
const t = u, l = e, a = k(), o = S(() => `${50 * Math.ceil(t.slots.length / 4) + 180}px`), s = (i) => {
|
|
1944
|
+
a.value = i;
|
|
1945
1945
|
}, r = () => {
|
|
1946
1946
|
a.value ? (l("submit", a.value), l("update:modelValue", !1)) : ne("请选择插槽");
|
|
1947
1947
|
};
|
|
1948
|
-
return (
|
|
1948
|
+
return (i, g) => (d(), y(n(Be), re({
|
|
1949
1949
|
class: "v-slots-picker",
|
|
1950
1950
|
title: "选择插槽",
|
|
1951
1951
|
width: "600px",
|
|
@@ -1953,7 +1953,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1953
1953
|
submit: "",
|
|
1954
1954
|
cancel: "",
|
|
1955
1955
|
onSubmit: r
|
|
1956
|
-
},
|
|
1956
|
+
}, i.$attrs), {
|
|
1957
1957
|
default: h(() => [
|
|
1958
1958
|
v(n(dn), {
|
|
1959
1959
|
title: "该组件支持多个插槽,请选择放置到其中一个",
|
|
@@ -1968,7 +1968,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1968
1968
|
wrap: "wrap"
|
|
1969
1969
|
}, {
|
|
1970
1970
|
default: h(() => [
|
|
1971
|
-
(d(!0), A(T, null,
|
|
1971
|
+
(d(!0), A(T, null, W(t.slots, (p, m) => (d(), y(n(M), {
|
|
1972
1972
|
class: H(["v-slots-picker__item", { "is-active": p.name === a.value?.name }]),
|
|
1973
1973
|
grow: "",
|
|
1974
1974
|
flex: !1,
|
|
@@ -1995,11 +1995,11 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
1995
1995
|
width: {},
|
|
1996
1996
|
height: {}
|
|
1997
1997
|
},
|
|
1998
|
-
setup(
|
|
1999
|
-
const e =
|
|
1998
|
+
setup(u) {
|
|
1999
|
+
const e = u, t = S(() => [`is-${e.mode}`]), l = S(() => {
|
|
2000
2000
|
if (e.mode === "pc") return 1;
|
|
2001
|
-
const o = e.mode === "mobile" ? Ut : qt, { width: s, height: r } = o,
|
|
2002
|
-
return Math.min(
|
|
2001
|
+
const o = e.mode === "mobile" ? Ut : qt, { width: s, height: r } = o, i = s > 0 ? (e.width || 0) / s : 1, g = r > 0 ? (e.height || 0) / r : 1;
|
|
2002
|
+
return Math.min(i, g);
|
|
2003
2003
|
}), a = S(() => {
|
|
2004
2004
|
if (e.mode === "pc") return {};
|
|
2005
2005
|
const o = e.mode === "mobile" ? Ut : qt, { width: s, height: r } = o;
|
|
@@ -2021,8 +2021,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2021
2021
|
}), zo = /* @__PURE__ */ E({
|
|
2022
2022
|
name: "PagesWidget",
|
|
2023
2023
|
__name: "index",
|
|
2024
|
-
setup(
|
|
2025
|
-
const { project: e, engine: t } = Re(), l = S(() => e.value?.pages || []), { current: a } = ie(), o = k(!1), s = k(), r = k(),
|
|
2024
|
+
setup(u) {
|
|
2025
|
+
const { project: e, engine: t } = Re(), l = S(() => e.value?.pages || []), { current: a } = ie(), o = k(!1), s = k(), r = k(), i = () => {
|
|
2026
2026
|
r.value = void 0, s.value = void 0, o.value = !0;
|
|
2027
2027
|
}, g = async (b) => {
|
|
2028
2028
|
const { name: c, modelValue: _ } = b, { data: w, node: x } = _;
|
|
@@ -2053,7 +2053,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2053
2053
|
title: "页面管理",
|
|
2054
2054
|
plus: "",
|
|
2055
2055
|
subtitle: "(共 0 条)",
|
|
2056
|
-
onPlus:
|
|
2056
|
+
onPlus: i
|
|
2057
2057
|
}, {
|
|
2058
2058
|
default: h(() => [
|
|
2059
2059
|
v(n(jt), {
|
|
@@ -2104,14 +2104,14 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2104
2104
|
attachment: {}
|
|
2105
2105
|
},
|
|
2106
2106
|
emits: ["change", "update:modelValue"],
|
|
2107
|
-
setup(
|
|
2108
|
-
const t =
|
|
2109
|
-
name:
|
|
2110
|
-
url:
|
|
2107
|
+
setup(u, { emit: e }) {
|
|
2108
|
+
const t = u, l = e, { engine: a, project: o } = Re(), s = k([]), r = k(!1), i = (C) => Array.isArray(C) ? C.map((I) => ({
|
|
2109
|
+
name: I.filename,
|
|
2110
|
+
url: I.filepath
|
|
2111
2111
|
})) : C ? { name: C.filename, url: C.filepath } : null, g = async (C) => {
|
|
2112
2112
|
if (a && o.value) {
|
|
2113
|
-
const
|
|
2114
|
-
return
|
|
2113
|
+
const I = await a.service.uploadStaticFile(C, o.value.id);
|
|
2114
|
+
return i(I);
|
|
2115
2115
|
}
|
|
2116
2116
|
return null;
|
|
2117
2117
|
}, p = (C) => C ? (C || "").split(",").map((O) => ({ url: O })) : [], m = k(
|
|
@@ -2124,8 +2124,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2124
2124
|
}
|
|
2125
2125
|
), q(r, async (C) => {
|
|
2126
2126
|
if (C) {
|
|
2127
|
-
const
|
|
2128
|
-
s.value =
|
|
2127
|
+
const I = await a.service.getStaticFiles(o.value?.id).catch(() => null);
|
|
2128
|
+
s.value = i(I);
|
|
2129
2129
|
}
|
|
2130
2130
|
});
|
|
2131
2131
|
const b = () => {
|
|
@@ -2133,7 +2133,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2133
2133
|
return ne("请选择文件"), !1;
|
|
2134
2134
|
const C = (t.attachment?.accept || "").toLowerCase().split(",");
|
|
2135
2135
|
return C.length > 0 ? [].concat(m.value).every(($) => {
|
|
2136
|
-
const
|
|
2136
|
+
const D = $.name || $.url.split("?")[0], R = D.substring(D.lastIndexOf(".")).toLowerCase();
|
|
2137
2137
|
return C.includes(R);
|
|
2138
2138
|
}) ? !0 : (ne(`只支持 ${C.join(",")} 文件`), !1) : !0;
|
|
2139
2139
|
}, c = () => {
|
|
@@ -2145,7 +2145,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2145
2145
|
}, x = (C) => {
|
|
2146
2146
|
C.name && o.value?.id && a.service.removeStaticFile(C.name, o.value?.id);
|
|
2147
2147
|
};
|
|
2148
|
-
return (C,
|
|
2148
|
+
return (C, I) => (d(), A("div", Oo, [
|
|
2149
2149
|
v(n(ye), re({
|
|
2150
2150
|
readonly: "",
|
|
2151
2151
|
onFocus: w,
|
|
@@ -2155,7 +2155,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2155
2155
|
r.value ? (d(), y(n(Be), {
|
|
2156
2156
|
key: 0,
|
|
2157
2157
|
modelValue: r.value,
|
|
2158
|
-
"onUpdate:modelValue":
|
|
2158
|
+
"onUpdate:modelValue": I[1] || (I[1] = (O) => r.value = O),
|
|
2159
2159
|
title: "文件选择器",
|
|
2160
2160
|
width: "600px",
|
|
2161
2161
|
height: "400px",
|
|
@@ -2183,7 +2183,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2183
2183
|
uploader: g,
|
|
2184
2184
|
"model-value": s.value,
|
|
2185
2185
|
"select-value": m.value,
|
|
2186
|
-
"onUpdate:selectValue":
|
|
2186
|
+
"onUpdate:selectValue": I[0] || (I[0] = (O) => m.value = O)
|
|
2187
2187
|
}, t.attachment, { onRemove: x }), null, 16, ["model-value", "select-value"])
|
|
2188
2188
|
]),
|
|
2189
2189
|
_: 1
|
|
@@ -2193,8 +2193,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2193
2193
|
}), Fo = /* @__PURE__ */ E({
|
|
2194
2194
|
name: "BlocksWidget",
|
|
2195
2195
|
__name: "index",
|
|
2196
|
-
setup(
|
|
2197
|
-
const { span: e } =
|
|
2196
|
+
setup(u) {
|
|
2197
|
+
const { span: e } = In(), { blocks: t, engine: l } = Rs(), a = [
|
|
2198
2198
|
{
|
|
2199
2199
|
label: "设计",
|
|
2200
2200
|
value: "Schema",
|
|
@@ -2223,7 +2223,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2223
2223
|
label: "插件",
|
|
2224
2224
|
type: "danger"
|
|
2225
2225
|
}
|
|
2226
|
-
}, s = k(void 0), { current: r } = ie(),
|
|
2226
|
+
}, s = k(void 0), { current: r } = ie(), i = k(!1), g = S(() => s.value?.id ? "编辑区块" : "新增区块"), p = S(() => `(共 ${t.value.length} 个)`), m = () => ({
|
|
2227
2227
|
fromType: "Schema",
|
|
2228
2228
|
name: "",
|
|
2229
2229
|
title: "",
|
|
@@ -2235,10 +2235,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2235
2235
|
return ".json";
|
|
2236
2236
|
if (s.value?.fromType === "Plugin")
|
|
2237
2237
|
return ".js,.css,.json";
|
|
2238
|
-
}), b = S(() => s.value?.fromType === "Plugin"), c = async (
|
|
2239
|
-
const R =
|
|
2238
|
+
}), b = S(() => s.value?.fromType === "Plugin"), c = async (D) => {
|
|
2239
|
+
const R = D, P = l.project.value;
|
|
2240
2240
|
if (!P) return !1;
|
|
2241
|
-
if (
|
|
2241
|
+
if (D.id)
|
|
2242
2242
|
if (!P.existBlockName(R.name, [R.id]))
|
|
2243
2243
|
P.updateBlock(R);
|
|
2244
2244
|
else
|
|
@@ -2249,23 +2249,23 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2249
2249
|
return ne(`名称【${R.name}】已经存在,请更换名称`), !1;
|
|
2250
2250
|
return !0;
|
|
2251
2251
|
}, _ = () => {
|
|
2252
|
-
s.value = m(),
|
|
2253
|
-
}, w = (
|
|
2254
|
-
s.value = lt(
|
|
2255
|
-
}, x = (
|
|
2256
|
-
l.project.value?.removeBlock(
|
|
2257
|
-
}, C = (
|
|
2258
|
-
s.value && (s.value.name = fn(
|
|
2259
|
-
},
|
|
2260
|
-
(!
|
|
2261
|
-
}, O = async (
|
|
2262
|
-
const R = kl(
|
|
2252
|
+
s.value = m(), i.value = !0;
|
|
2253
|
+
}, w = (D) => {
|
|
2254
|
+
s.value = lt(D), i.value = !0;
|
|
2255
|
+
}, x = (D) => {
|
|
2256
|
+
l.project.value?.removeBlock(D.id);
|
|
2257
|
+
}, C = (D) => {
|
|
2258
|
+
s.value && (s.value.name = fn(D));
|
|
2259
|
+
}, I = async (D) => {
|
|
2260
|
+
(!D.fromType || D.fromType === "Schema") && l.project.value?.active(D);
|
|
2261
|
+
}, O = async (D) => {
|
|
2262
|
+
const R = kl(D), P = await l.assets.getBlockMaterial(R, D.name), X = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
2263
2263
|
X && P && X.setDragging(P);
|
|
2264
2264
|
}, $ = () => {
|
|
2265
|
-
const
|
|
2266
|
-
|
|
2265
|
+
const D = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
2266
|
+
D && D.setDragging(null);
|
|
2267
2267
|
};
|
|
2268
|
-
return (
|
|
2268
|
+
return (D, R) => (d(), y(n(U), {
|
|
2269
2269
|
class: "v-blocks-widget",
|
|
2270
2270
|
title: "区块管理",
|
|
2271
2271
|
subtitle: p.value,
|
|
@@ -2278,7 +2278,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2278
2278
|
gutter: 5
|
|
2279
2279
|
}, {
|
|
2280
2280
|
default: h(() => [
|
|
2281
|
-
(d(!0), A(T, null,
|
|
2281
|
+
(d(!0), A(T, null, W(n(t), (P) => (d(), y(n(bt), {
|
|
2282
2282
|
key: P.id,
|
|
2283
2283
|
span: n(e)
|
|
2284
2284
|
}, {
|
|
@@ -2292,7 +2292,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2292
2292
|
tagType: o[P.fromType || "Schema"]?.type,
|
|
2293
2293
|
onEdit: (X) => w(P),
|
|
2294
2294
|
onRemove: (X) => x(P),
|
|
2295
|
-
onClick: (X) =>
|
|
2295
|
+
onClick: (X) => I(P),
|
|
2296
2296
|
draggable: n(r)?.id !== P.id,
|
|
2297
2297
|
onDragstart: (X) => O(P),
|
|
2298
2298
|
onDragend: $
|
|
@@ -2305,8 +2305,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2305
2305
|
}),
|
|
2306
2306
|
n(t).length ? j("", !0) : (d(), y(n(se), { key: 0 })),
|
|
2307
2307
|
v(n(Ve), {
|
|
2308
|
-
modelValue:
|
|
2309
|
-
"onUpdate:modelValue": R[0] || (R[0] = (P) =>
|
|
2308
|
+
modelValue: i.value,
|
|
2309
|
+
"onUpdate:modelValue": R[0] || (R[0] = (P) => i.value = P),
|
|
2310
2310
|
title: g.value,
|
|
2311
2311
|
model: s.value,
|
|
2312
2312
|
width: "600px",
|
|
@@ -2360,14 +2360,14 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2360
2360
|
_: 1
|
|
2361
2361
|
}, 8, ["subtitle"]));
|
|
2362
2362
|
}
|
|
2363
|
-
}),
|
|
2363
|
+
}), Wo = { class: "v-components-widget__search" }, No = {
|
|
2364
2364
|
key: 0,
|
|
2365
2365
|
class: "v-components-widget__result"
|
|
2366
2366
|
}, Jo = { class: "v-components-widget__list" }, Mo = /* @__PURE__ */ E({
|
|
2367
2367
|
name: "ComponentsWidget",
|
|
2368
2368
|
__name: "index",
|
|
2369
|
-
setup(
|
|
2370
|
-
const { span: e, engine: t } =
|
|
2369
|
+
setup(u) {
|
|
2370
|
+
const { span: e, engine: t } = In(), { tabs: l, currentTab: a, currentGroup: o, model: s, searchKey: r, searchResult: i } = Ts(), g = (m) => {
|
|
2371
2371
|
const f = t.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
2372
2372
|
f && f.setDragging(m);
|
|
2373
2373
|
}, p = () => {
|
|
@@ -2380,7 +2380,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2380
2380
|
body: { flex: !0, direction: "column" }
|
|
2381
2381
|
}, {
|
|
2382
2382
|
default: h(() => [
|
|
2383
|
-
V("div",
|
|
2383
|
+
V("div", Wo, [
|
|
2384
2384
|
v(n(ye), {
|
|
2385
2385
|
modelValue: n(r),
|
|
2386
2386
|
"onUpdate:modelValue": f[0] || (f[0] = (b) => mt(r) ? r.value = b : null),
|
|
@@ -2394,13 +2394,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2394
2394
|
_: 1
|
|
2395
2395
|
}, 8, ["modelValue"])
|
|
2396
2396
|
]),
|
|
2397
|
-
n(r) ? (d(), A("div",
|
|
2397
|
+
n(r) ? (d(), A("div", No, [
|
|
2398
2398
|
v(n(ht), {
|
|
2399
2399
|
wrap: "wrap",
|
|
2400
2400
|
gutter: 5
|
|
2401
2401
|
}, {
|
|
2402
2402
|
default: h(() => [
|
|
2403
|
-
(d(!0), A(T, null,
|
|
2403
|
+
(d(!0), A(T, null, W(n(i), (b) => (d(), y(n(bt), {
|
|
2404
2404
|
span: n(e),
|
|
2405
2405
|
key: b.name
|
|
2406
2406
|
}, {
|
|
@@ -2418,7 +2418,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2418
2418
|
]),
|
|
2419
2419
|
_: 1
|
|
2420
2420
|
}),
|
|
2421
|
-
n(
|
|
2421
|
+
n(i).length ? j("", !0) : (d(), y(n(se), { key: 0 }))
|
|
2422
2422
|
])) : (d(), y(n(Et), {
|
|
2423
2423
|
key: 1,
|
|
2424
2424
|
items: n(l),
|
|
@@ -2433,7 +2433,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2433
2433
|
"onUpdate:modelValue": f[1] || (f[1] = (b) => n(s)[n(a)] = b)
|
|
2434
2434
|
}, {
|
|
2435
2435
|
default: h(() => [
|
|
2436
|
-
(d(!0), A(T, null,
|
|
2436
|
+
(d(!0), A(T, null, W(n(o).children, (b) => (d(), y(n(el), {
|
|
2437
2437
|
key: b.name,
|
|
2438
2438
|
name: b.name,
|
|
2439
2439
|
title: `${b.label} (${b.count})`
|
|
@@ -2445,7 +2445,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2445
2445
|
gutter: 5
|
|
2446
2446
|
}, {
|
|
2447
2447
|
default: h(() => [
|
|
2448
|
-
(d(!0), A(T, null,
|
|
2448
|
+
(d(!0), A(T, null, W(b.components, (c) => (d(), y(n(bt), {
|
|
2449
2449
|
span: n(e),
|
|
2450
2450
|
key: c.name
|
|
2451
2451
|
}, {
|
|
@@ -2480,17 +2480,17 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2480
2480
|
}), Lo = /* @__PURE__ */ E({
|
|
2481
2481
|
name: "OutlineWidget",
|
|
2482
2482
|
__name: "index",
|
|
2483
|
-
setup(
|
|
2484
|
-
const { engine: e, designer: t, selected: l } = ke(), { current: a } = ie(), o = k([]), s = (
|
|
2483
|
+
setup(u) {
|
|
2484
|
+
const { engine: e, designer: t, selected: l } = ke(), { current: a } = ie(), o = k([]), s = (D, R) => {
|
|
2485
2485
|
if (R === "slot") return [];
|
|
2486
|
-
if (ee(
|
|
2487
|
-
return
|
|
2488
|
-
const P =
|
|
2489
|
-
return P && (P.locked || P.invisible) ? [] : a.value?.locked ? [] :
|
|
2490
|
-
}, r = (
|
|
2486
|
+
if (ee(D))
|
|
2487
|
+
return D.locked ? ["unlock"] : ["lock"];
|
|
2488
|
+
const P = D.parent;
|
|
2489
|
+
return P && (P.locked || P.invisible) ? [] : a.value?.locked ? [] : D.locked ? ["unlock"] : D.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
|
|
2490
|
+
}, r = (D, R) => {
|
|
2491
2491
|
const P = {};
|
|
2492
|
-
if (!
|
|
2493
|
-
for (const F of
|
|
2492
|
+
if (!D.some((F) => F.slot)) return i(D);
|
|
2493
|
+
for (const F of D) {
|
|
2494
2494
|
const L = F.slot?.name || "default";
|
|
2495
2495
|
P[L] || (P[L] = []), P[L].push(F);
|
|
2496
2496
|
}
|
|
@@ -2502,12 +2502,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2502
2502
|
type: "slot",
|
|
2503
2503
|
model: R,
|
|
2504
2504
|
disabled: !0,
|
|
2505
|
-
children:
|
|
2505
|
+
children: i(L)
|
|
2506
2506
|
});
|
|
2507
2507
|
return pe;
|
|
2508
|
-
},
|
|
2508
|
+
}, i = (D) => {
|
|
2509
2509
|
const R = [];
|
|
2510
|
-
return
|
|
2510
|
+
return D.forEach((P) => {
|
|
2511
2511
|
const X = {
|
|
2512
2512
|
id: P.id,
|
|
2513
2513
|
label: P.name,
|
|
@@ -2519,25 +2519,25 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2519
2519
|
}), R;
|
|
2520
2520
|
}, g = () => {
|
|
2521
2521
|
if (!a.value) return [];
|
|
2522
|
-
const { id:
|
|
2522
|
+
const { id: D, name: R, nodes: P } = a.value;
|
|
2523
2523
|
return [
|
|
2524
2524
|
{
|
|
2525
|
-
id:
|
|
2525
|
+
id: D,
|
|
2526
2526
|
label: R,
|
|
2527
|
-
type:
|
|
2527
|
+
type: D,
|
|
2528
2528
|
model: a.value,
|
|
2529
|
-
children:
|
|
2529
|
+
children: i(P)
|
|
2530
2530
|
}
|
|
2531
2531
|
];
|
|
2532
2532
|
}, p = async () => {
|
|
2533
2533
|
o.value = g(), l.value?.model && (await we(), t.value?.setSelected(l.value.model));
|
|
2534
|
-
}, m = S(() => l.value?.model.id), f = (
|
|
2535
|
-
const R =
|
|
2534
|
+
}, m = S(() => l.value?.model.id), f = (D) => {
|
|
2535
|
+
const R = D.data;
|
|
2536
2536
|
if (R.type === "slot" || ee(R.model) || R.model.locked || R.model.name === "template")
|
|
2537
2537
|
return !1;
|
|
2538
2538
|
const P = e.assets.componentMap.get(R.model.name);
|
|
2539
2539
|
return P ? (t.value?.setDragging(P), !0) : !1;
|
|
2540
|
-
}, b = async (
|
|
2540
|
+
}, b = async (D, R, P) => {
|
|
2541
2541
|
const X = R.data, F = {
|
|
2542
2542
|
prev: "top",
|
|
2543
2543
|
next: "bottom",
|
|
@@ -2547,19 +2547,19 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2547
2547
|
if (ee(X.model))
|
|
2548
2548
|
L = P === "inner", t.value?.setDropping(L ? X.model : null, "inner");
|
|
2549
2549
|
else {
|
|
2550
|
-
const
|
|
2551
|
-
L = !!await t.value?.allowDrop(
|
|
2550
|
+
const N = X.model;
|
|
2551
|
+
L = !!await t.value?.allowDrop(N, F), t.value?.setDropping(L ? N : null, "inner");
|
|
2552
2552
|
}
|
|
2553
2553
|
return L;
|
|
2554
|
-
}, c = (
|
|
2555
|
-
const R =
|
|
2556
|
-
if (!R || R.invisible ||
|
|
2554
|
+
}, c = (D) => {
|
|
2555
|
+
const R = D?.model;
|
|
2556
|
+
if (!R || R.invisible || D.type === "slot") {
|
|
2557
2557
|
t.value?.setSelected(null), t.value?.setHover(null);
|
|
2558
2558
|
return;
|
|
2559
2559
|
}
|
|
2560
2560
|
t.value?.setSelected(R), t.value?.setHover(null);
|
|
2561
|
-
}, _ = async (
|
|
2562
|
-
const X =
|
|
2561
|
+
}, _ = async (D, R, P) => {
|
|
2562
|
+
const X = D.data, pe = R.data;
|
|
2563
2563
|
if (ee(pe.model)) {
|
|
2564
2564
|
const Fe = X.model;
|
|
2565
2565
|
delete Fe.slot, a.value?.move(Fe, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
|
|
@@ -2584,26 +2584,26 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2584
2584
|
} else
|
|
2585
2585
|
p();
|
|
2586
2586
|
t.value?.setDropping(null), t.value?.setDragging(null), e.simulator.refresh();
|
|
2587
|
-
}, w = (
|
|
2588
|
-
if (
|
|
2587
|
+
}, w = (D) => {
|
|
2588
|
+
if (D.type === "slot") {
|
|
2589
2589
|
t.value?.setHover(null);
|
|
2590
2590
|
return;
|
|
2591
2591
|
}
|
|
2592
|
-
ee(
|
|
2592
|
+
ee(D.model) ? t.value?.setHover(D.model) : (t.value?.setHover(D.model), D.model.invisible && t.value?.setHover(null), D.model.name === "slot" && t.value?.setHover(null));
|
|
2593
2593
|
}, x = () => {
|
|
2594
2594
|
t.value?.setHover(null);
|
|
2595
|
-
}, C = (
|
|
2596
|
-
const R =
|
|
2595
|
+
}, C = (D) => {
|
|
2596
|
+
const R = D.data;
|
|
2597
2597
|
R.dragging = !0;
|
|
2598
2598
|
const P = e.assets.componentMap.get(R.model.name);
|
|
2599
2599
|
P && t.value?.setDragging(P);
|
|
2600
|
-
},
|
|
2601
|
-
const R =
|
|
2600
|
+
}, I = async (D) => {
|
|
2601
|
+
const R = D.data;
|
|
2602
2602
|
R.dragging = !1;
|
|
2603
|
-
}, O = (
|
|
2604
|
-
|
|
2605
|
-
}, $ = (
|
|
2606
|
-
const { name: R, modelValue: P } =
|
|
2603
|
+
}, O = (D, R) => {
|
|
2604
|
+
D && ((D.id === R.id || !ee(D) && R.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
|
|
2605
|
+
}, $ = (D) => {
|
|
2606
|
+
const { name: R, modelValue: P } = D, X = l.value?.model;
|
|
2607
2607
|
switch (R) {
|
|
2608
2608
|
case "lock":
|
|
2609
2609
|
O(X, P), P.lock();
|
|
@@ -2626,7 +2626,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2626
2626
|
break;
|
|
2627
2627
|
}
|
|
2628
2628
|
};
|
|
2629
|
-
return q(e.changed, p, { immediate: !0 }), (
|
|
2629
|
+
return q(e.changed, p, { immediate: !0 }), (D, R) => (d(), y(n(U), {
|
|
2630
2630
|
class: "v-outline-widget",
|
|
2631
2631
|
title: "大纲树"
|
|
2632
2632
|
}, {
|
|
@@ -2646,7 +2646,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2646
2646
|
onCurrentChange: c,
|
|
2647
2647
|
onNodeDrop: _,
|
|
2648
2648
|
onNodeDragStart: C,
|
|
2649
|
-
onNodeDragEnd:
|
|
2649
|
+
onNodeDragEnd: I
|
|
2650
2650
|
}, {
|
|
2651
2651
|
default: h(({ data: P, node: X }) => [
|
|
2652
2652
|
v(n(ue), {
|
|
@@ -2680,13 +2680,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2680
2680
|
}), Uo = /* @__PURE__ */ E({
|
|
2681
2681
|
name: "HistoryWidget",
|
|
2682
2682
|
__name: "index",
|
|
2683
|
-
setup(
|
|
2683
|
+
setup(u) {
|
|
2684
2684
|
const { history: e, load: t, total: l } = Bn(), a = S(() => `(共 ${l.value} 条)`), o = (r) => {
|
|
2685
2685
|
r.name === "remove" && e.value?.remove(r.modelValue.id);
|
|
2686
2686
|
}, s = async () => {
|
|
2687
2687
|
await Oe("确定要清空历史记录吗?") && e.value?.clear();
|
|
2688
2688
|
};
|
|
2689
|
-
return (r,
|
|
2689
|
+
return (r, i) => (d(), y(n(U), {
|
|
2690
2690
|
class: "v-history-widget",
|
|
2691
2691
|
title: "历史记录",
|
|
2692
2692
|
subtitle: a.value,
|
|
@@ -2698,7 +2698,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2698
2698
|
key: 0,
|
|
2699
2699
|
"image-size": 50
|
|
2700
2700
|
})) : j("", !0),
|
|
2701
|
-
n(e) ? (d(!0), A(T, { key: 1 },
|
|
2701
|
+
n(e) ? (d(!0), A(T, { key: 1 }, W(n(e).items, (g, p) => (d(), y(n(ue), {
|
|
2702
2702
|
index: p + 1,
|
|
2703
2703
|
title: g.label,
|
|
2704
2704
|
"model-value": g,
|
|
@@ -2715,8 +2715,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2715
2715
|
}
|
|
2716
2716
|
}), qo = /* @__PURE__ */ E({
|
|
2717
2717
|
__name: "base-info",
|
|
2718
|
-
setup(
|
|
2719
|
-
const e =
|
|
2718
|
+
setup(u) {
|
|
2719
|
+
const e = Ds.map((t) => ({
|
|
2720
2720
|
label: t,
|
|
2721
2721
|
value: t.toLowerCase()
|
|
2722
2722
|
}));
|
|
@@ -2760,7 +2760,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2760
2760
|
})
|
|
2761
2761
|
}), Ho = /* @__PURE__ */ E({
|
|
2762
2762
|
__name: "request-settings",
|
|
2763
|
-
setup(
|
|
2763
|
+
setup(u) {
|
|
2764
2764
|
const e = [
|
|
2765
2765
|
{
|
|
2766
2766
|
label: "表单",
|
|
@@ -2839,7 +2839,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2839
2839
|
}
|
|
2840
2840
|
}), Go = /* @__PURE__ */ E({
|
|
2841
2841
|
__name: "jsonp-options",
|
|
2842
|
-
setup(
|
|
2842
|
+
setup(u) {
|
|
2843
2843
|
return (e, t) => (d(), A("div", null, [
|
|
2844
2844
|
v(n(B), {
|
|
2845
2845
|
name: "jsonpOptions.jsonpCallback",
|
|
@@ -2867,7 +2867,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2867
2867
|
}
|
|
2868
2868
|
}), Xo = /* @__PURE__ */ V("span", null, "模拟数据模板", -1), Qo = /* @__PURE__ */ E({
|
|
2869
2869
|
__name: "mock-template",
|
|
2870
|
-
setup(
|
|
2870
|
+
setup(u) {
|
|
2871
2871
|
const e = xt("currentModel", null), { project: t } = Re(), l = S(() => t.value?.config || {}), a = () => {
|
|
2872
2872
|
window.open("https://vtj.pro/help/mock.html");
|
|
2873
2873
|
};
|
|
@@ -2924,8 +2924,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2924
2924
|
model: {},
|
|
2925
2925
|
project: {}
|
|
2926
2926
|
},
|
|
2927
|
-
setup(
|
|
2928
|
-
const e =
|
|
2927
|
+
setup(u) {
|
|
2928
|
+
const e = u, t = S(() => e.model ? "编辑API" : "新增API"), l = k("base"), a = k(), o = k(), s = k(e.model || {}), r = k(!1), i = k(""), g = [
|
|
2929
2929
|
{
|
|
2930
2930
|
label: "基础信息",
|
|
2931
2931
|
value: "base"
|
|
@@ -2973,7 +2973,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
2973
2973
|
type: x
|
|
2974
2974
|
})
|
|
2975
2975
|
);
|
|
2976
|
-
|
|
2976
|
+
i.value = JSON.stringify(C, null, 2), r.value = !0;
|
|
2977
2977
|
}
|
|
2978
2978
|
};
|
|
2979
2979
|
return (_, w) => (d(), y(n(Be), {
|
|
@@ -3059,7 +3059,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3059
3059
|
}, {
|
|
3060
3060
|
default: h(() => [
|
|
3061
3061
|
Ee(v(qo, null, null, 512), [
|
|
3062
|
-
[
|
|
3062
|
+
[Ie, l.value === "base"]
|
|
3063
3063
|
]),
|
|
3064
3064
|
l.value === "settings" ? (d(), A("div", Ko, [
|
|
3065
3065
|
p.value ? (d(), y(Go, { key: 0 })) : (d(), y(Ho, { key: 1 }))
|
|
@@ -3086,7 +3086,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3086
3086
|
}, {
|
|
3087
3087
|
default: h(() => [
|
|
3088
3088
|
v(n(le), {
|
|
3089
|
-
"model-value":
|
|
3089
|
+
"model-value": i.value,
|
|
3090
3090
|
border: "",
|
|
3091
3091
|
dark: "",
|
|
3092
3092
|
height: "100%",
|
|
@@ -3102,7 +3102,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3102
3102
|
}), Zo = { class: "v-apis__search" }, er = /* @__PURE__ */ E({
|
|
3103
3103
|
name: "ApisWidget",
|
|
3104
3104
|
__name: "index",
|
|
3105
|
-
setup(
|
|
3105
|
+
setup(u) {
|
|
3106
3106
|
const e = k(!1), t = k(null), l = k(""), a = k(!1), o = S(() => {
|
|
3107
3107
|
const f = s.value?.apis || [];
|
|
3108
3108
|
return l.value ? f.filter((b) => b.name.includes(l.value) || b.label?.includes(l.value) || b.url.includes(l.value)) : f;
|
|
@@ -3135,7 +3135,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3135
3135
|
}
|
|
3136
3136
|
}`
|
|
3137
3137
|
}
|
|
3138
|
-
}),
|
|
3138
|
+
}), i = () => {
|
|
3139
3139
|
e.value = !0, a.value = !1, t.value = r();
|
|
3140
3140
|
}, g = {
|
|
3141
3141
|
get: "success",
|
|
@@ -3153,7 +3153,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3153
3153
|
class: "v-apis-widget",
|
|
3154
3154
|
title: "API管理",
|
|
3155
3155
|
plus: "",
|
|
3156
|
-
onPlus:
|
|
3156
|
+
onPlus: i
|
|
3157
3157
|
}, {
|
|
3158
3158
|
default: h(() => [
|
|
3159
3159
|
V("div", Zo, [
|
|
@@ -3161,12 +3161,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3161
3161
|
size: "small",
|
|
3162
3162
|
modelValue: l.value,
|
|
3163
3163
|
"onUpdate:modelValue": b[0] || (b[0] = (c) => l.value = c),
|
|
3164
|
-
"prefix-icon": n(
|
|
3164
|
+
"prefix-icon": n(It),
|
|
3165
3165
|
placeholder: "搜索API",
|
|
3166
3166
|
clearable: ""
|
|
3167
3167
|
}, null, 8, ["modelValue", "prefix-icon"])
|
|
3168
3168
|
]),
|
|
3169
|
-
(d(!0), A(T, null,
|
|
3169
|
+
(d(!0), A(T, null, W(o.value, (c) => (d(), y(n(ue), {
|
|
3170
3170
|
key: c.id,
|
|
3171
3171
|
small: "",
|
|
3172
3172
|
title: c.name,
|
|
@@ -3196,8 +3196,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3196
3196
|
}), tr = /* @__PURE__ */ E({
|
|
3197
3197
|
name: "DepsWidget",
|
|
3198
3198
|
__name: "index",
|
|
3199
|
-
setup(
|
|
3200
|
-
const { dependencies: e, engine: t } =
|
|
3199
|
+
setup(u) {
|
|
3200
|
+
const { dependencies: e, engine: t } = Dn(), l = k(!1), a = k(!1), o = k({}), s = S(() => a.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], i = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
|
|
3201
3201
|
`), t.project.value?.setDeps(c), !0), p = (c) => {
|
|
3202
3202
|
t.project.value?.setDeps(c);
|
|
3203
3203
|
}, m = () => {
|
|
@@ -3222,13 +3222,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3222
3222
|
onPlus: m
|
|
3223
3223
|
}, {
|
|
3224
3224
|
default: h(() => [
|
|
3225
|
-
(d(!0), A(T, null,
|
|
3225
|
+
(d(!0), A(T, null, W(n(e), (w) => (d(), y(n(ue), {
|
|
3226
3226
|
key: w.package,
|
|
3227
3227
|
title: w.package,
|
|
3228
3228
|
subtitle: w.version,
|
|
3229
3229
|
actions: r(w),
|
|
3230
3230
|
background: "",
|
|
3231
|
-
switch:
|
|
3231
|
+
switch: i(w),
|
|
3232
3232
|
modelValue: w.enabled,
|
|
3233
3233
|
"onUpdate:modelValue": (x) => w.enabled = x,
|
|
3234
3234
|
onSwitch: (x) => p(w),
|
|
@@ -3296,8 +3296,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3296
3296
|
path: { default: () => [] }
|
|
3297
3297
|
},
|
|
3298
3298
|
emits: ["action", "dragstart", "dragend"],
|
|
3299
|
-
setup(
|
|
3300
|
-
const t =
|
|
3299
|
+
setup(u, { emit: e }) {
|
|
3300
|
+
const t = u, l = e, a = S(() => t.model.name), o = S(() => !ee(t.model) && !t.model.locked), s = S(() => t.path.map((p) => ({
|
|
3301
3301
|
command: p,
|
|
3302
3302
|
label: p.name,
|
|
3303
3303
|
onMouseenter: () => {
|
|
@@ -3336,7 +3336,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3336
3336
|
icon: at,
|
|
3337
3337
|
title: "删除"
|
|
3338
3338
|
}
|
|
3339
|
-
],
|
|
3339
|
+
], i = (p) => {
|
|
3340
3340
|
l("action", { type: "selected", model: p.command });
|
|
3341
3341
|
}, g = async (p) => {
|
|
3342
3342
|
p.name === "remove" ? await Oe("确定删除?") && l("action", { type: p.name, model: t.model }) : l("action", { type: p.name, model: t.model });
|
|
@@ -3351,7 +3351,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3351
3351
|
label: a.value,
|
|
3352
3352
|
menus: s.value,
|
|
3353
3353
|
background: "none",
|
|
3354
|
-
onCommand:
|
|
3354
|
+
onCommand: i
|
|
3355
3355
|
}, null, 8, ["icon", "label", "menus"]),
|
|
3356
3356
|
v(n(fl), {
|
|
3357
3357
|
disabled: !o.value,
|
|
@@ -3370,17 +3370,17 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3370
3370
|
name: "VDesigner",
|
|
3371
3371
|
inheritAttrs: !1,
|
|
3372
3372
|
__name: "index",
|
|
3373
|
-
setup(
|
|
3374
|
-
const t = k(), l = k(), { width: a, height: o } = Ue(t), { dependencies: s, engine: r, apis:
|
|
3373
|
+
setup(u, { expose: e }) {
|
|
3374
|
+
const t = k(), l = k(), { width: a, height: o } = Ue(t), { dependencies: s, engine: r, apis: i, meta: g } = Dn(), { current: p, 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 } = zs(
|
|
3375
3375
|
l,
|
|
3376
3376
|
s,
|
|
3377
|
-
|
|
3377
|
+
i,
|
|
3378
3378
|
g,
|
|
3379
3379
|
b
|
|
3380
3380
|
), C = ($) => {
|
|
3381
|
-
const
|
|
3381
|
+
const D = $.type, R = $.model;
|
|
3382
3382
|
if (p.value)
|
|
3383
|
-
switch (
|
|
3383
|
+
switch (D) {
|
|
3384
3384
|
case "remove":
|
|
3385
3385
|
p.value.removeNode(R), c.value?.setSelected(null);
|
|
3386
3386
|
break;
|
|
@@ -3401,10 +3401,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3401
3401
|
c.value?.setSelected(R);
|
|
3402
3402
|
break;
|
|
3403
3403
|
}
|
|
3404
|
-
},
|
|
3404
|
+
}, I = ($) => {
|
|
3405
3405
|
if ($ && c.value) {
|
|
3406
|
-
const
|
|
3407
|
-
|
|
3406
|
+
const D = r.assets.componentMap.get($.name);
|
|
3407
|
+
D && c.value.setDragging(D), c.value.setDraggingNode($);
|
|
3408
3408
|
}
|
|
3409
3409
|
}, O = () => {
|
|
3410
3410
|
c.value && (c.value.setDraggingNode(null), c.value.setDragging(null));
|
|
@@ -3412,7 +3412,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3412
3412
|
return e({
|
|
3413
3413
|
designer: c,
|
|
3414
3414
|
mode: f
|
|
3415
|
-
}), ($,
|
|
3415
|
+
}), ($, D) => (d(), A("div", {
|
|
3416
3416
|
ref_key: "container",
|
|
3417
3417
|
ref: t,
|
|
3418
3418
|
class: "v-designer"
|
|
@@ -3455,7 +3455,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3455
3455
|
model: n(x).model,
|
|
3456
3456
|
path: n(x).path,
|
|
3457
3457
|
onAction: C,
|
|
3458
|
-
onDragstart:
|
|
3458
|
+
onDragstart: I,
|
|
3459
3459
|
onDragend: O
|
|
3460
3460
|
}, null, 8, ["position", "model", "path"])
|
|
3461
3461
|
], 4)) : j("", !0)
|
|
@@ -3481,12 +3481,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3481
3481
|
list: {},
|
|
3482
3482
|
remove: {},
|
|
3483
3483
|
submit: {},
|
|
3484
|
-
itemTitle: { type: Function, default: (
|
|
3484
|
+
itemTitle: { type: Function, default: (u) => u.name }
|
|
3485
3485
|
},
|
|
3486
|
-
setup(
|
|
3487
|
-
const e =
|
|
3486
|
+
setup(u) {
|
|
3487
|
+
const e = u, t = k(), l = k(), a = k(!1), o = k(e.createEmpty()), s = k(!1), r = S(
|
|
3488
3488
|
() => s.value ? `编辑${e.title}` : `新增${e.title}`
|
|
3489
|
-
),
|
|
3489
|
+
), i = () => {
|
|
3490
3490
|
s.value = !1, o.value = e.createEmpty(), a.value = !0;
|
|
3491
3491
|
}, g = (c, _) => {
|
|
3492
3492
|
switch (_.name) {
|
|
@@ -3512,10 +3512,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3512
3512
|
size: "small",
|
|
3513
3513
|
fit: !1,
|
|
3514
3514
|
plus: "",
|
|
3515
|
-
onPlus:
|
|
3515
|
+
onPlus: i
|
|
3516
3516
|
}, {
|
|
3517
3517
|
default: h(() => [
|
|
3518
|
-
(d(!0), A(T, null,
|
|
3518
|
+
(d(!0), A(T, null, W(c.list, (w) => (d(), y(n(ue), {
|
|
3519
3519
|
title: e.itemTitle(w),
|
|
3520
3520
|
border: "",
|
|
3521
3521
|
actions: ["edit", "remove"],
|
|
@@ -3579,19 +3579,19 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3579
3579
|
context: {},
|
|
3580
3580
|
current: {}
|
|
3581
3581
|
},
|
|
3582
|
-
setup(
|
|
3583
|
-
const e =
|
|
3582
|
+
setup(u) {
|
|
3583
|
+
const e = u, t = S(() => Object.entries(e.current?.state || {}).map(([r, i]) => ({ name: r, value: ze(i) }))), l = () => ({
|
|
3584
3584
|
name: "",
|
|
3585
3585
|
value: ""
|
|
3586
3586
|
}), a = (s) => e.current?.removeState(s.name), o = async (s, r) => {
|
|
3587
|
-
const { name:
|
|
3588
|
-
if (!r && e.current?.state[
|
|
3589
|
-
return ne(`名称 ${
|
|
3587
|
+
const { name: i, value: g } = s;
|
|
3588
|
+
if (!r && e.current?.state[i])
|
|
3589
|
+
return ne(`名称 ${i} 已存在,请更换!`), !1;
|
|
3590
3590
|
const p = {
|
|
3591
3591
|
type: "JSExpression",
|
|
3592
3592
|
value: g
|
|
3593
3593
|
};
|
|
3594
|
-
return oe(p, e.context, !0) ? (e.current?.setState(
|
|
3594
|
+
return oe(p, e.context, !0) ? (e.current?.setState(i, p), !0) : !1;
|
|
3595
3595
|
};
|
|
3596
3596
|
return (s, r) => (d(), y(He, {
|
|
3597
3597
|
title: "状态数据",
|
|
@@ -3611,19 +3611,19 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3611
3611
|
context: {},
|
|
3612
3612
|
current: {}
|
|
3613
3613
|
},
|
|
3614
|
-
setup(
|
|
3615
|
-
const e =
|
|
3614
|
+
setup(u) {
|
|
3615
|
+
const e = u, t = S(() => Object.entries(e.current?.computed || {}).map(([r, i]) => ({ name: r, value: ze(i) }))), l = () => ({
|
|
3616
3616
|
name: "",
|
|
3617
3617
|
value: "() => { }"
|
|
3618
3618
|
}), a = (s) => e.current?.removeFunction("computed", s.name), o = async (s, r) => {
|
|
3619
|
-
const { name:
|
|
3620
|
-
if (!r && e.current?.computed[
|
|
3621
|
-
return ne(`名称 ${
|
|
3619
|
+
const { name: i, value: g } = s;
|
|
3620
|
+
if (!r && e.current?.computed[i])
|
|
3621
|
+
return ne(`名称 ${i} 已存在,请更换!`), !1;
|
|
3622
3622
|
const p = {
|
|
3623
3623
|
type: "JSFunction",
|
|
3624
3624
|
value: g
|
|
3625
3625
|
};
|
|
3626
|
-
return oe(p, e.context, !0) ? (e.current?.setFunction("computed",
|
|
3626
|
+
return oe(p, e.context, !0) ? (e.current?.setFunction("computed", i, p), !0) : !1;
|
|
3627
3627
|
};
|
|
3628
3628
|
return (s, r) => (d(), y(He, {
|
|
3629
3629
|
title: "计算属性",
|
|
@@ -3643,19 +3643,19 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3643
3643
|
context: {},
|
|
3644
3644
|
current: {}
|
|
3645
3645
|
},
|
|
3646
|
-
setup(
|
|
3647
|
-
const e =
|
|
3646
|
+
setup(u) {
|
|
3647
|
+
const e = u, t = S(() => Object.entries(e.current?.methods || {}).map(([r, i]) => ({ name: r, value: ze(i) }))), l = () => ({
|
|
3648
3648
|
name: "",
|
|
3649
3649
|
value: "() => { }"
|
|
3650
3650
|
}), a = (s) => e.current?.removeFunction("methods", s.name), o = async (s, r) => {
|
|
3651
|
-
const { name:
|
|
3652
|
-
if (!r && e.current?.methods[
|
|
3653
|
-
return ne(`名称 ${
|
|
3651
|
+
const { name: i, value: g } = s;
|
|
3652
|
+
if (!r && e.current?.methods[i])
|
|
3653
|
+
return ne(`名称 ${i} 已存在,请更换!`), !1;
|
|
3654
3654
|
const p = {
|
|
3655
3655
|
type: "JSFunction",
|
|
3656
3656
|
value: g
|
|
3657
3657
|
};
|
|
3658
|
-
return oe(p, e.context, !0) ? (e.current?.setFunction("methods",
|
|
3658
|
+
return oe(p, e.context, !0) ? (e.current?.setFunction("methods", i, p), !0) : !1;
|
|
3659
3659
|
};
|
|
3660
3660
|
return (s, r) => (d(), y(He, {
|
|
3661
3661
|
title: "组件方法",
|
|
@@ -3675,16 +3675,16 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3675
3675
|
context: {},
|
|
3676
3676
|
current: {}
|
|
3677
3677
|
},
|
|
3678
|
-
setup(
|
|
3679
|
-
const e =
|
|
3678
|
+
setup(u) {
|
|
3679
|
+
const e = u, t = S(() => zl.map((r) => ({
|
|
3680
3680
|
label: r,
|
|
3681
3681
|
value: r
|
|
3682
|
-
}))), l = S(() => Object.entries(e.current?.lifeCycles || {}).map(([
|
|
3682
|
+
}))), l = S(() => Object.entries(e.current?.lifeCycles || {}).map(([i, g]) => ({ name: i, value: ze(g) }))), a = () => ({
|
|
3683
3683
|
name: "",
|
|
3684
3684
|
value: "() => { }"
|
|
3685
|
-
}), o = (r) => e.current?.removeFunction("lifeCycles", r.name), s = async (r,
|
|
3685
|
+
}), o = (r) => e.current?.removeFunction("lifeCycles", r.name), s = async (r, i) => {
|
|
3686
3686
|
const { name: g, value: p } = r;
|
|
3687
|
-
if (!
|
|
3687
|
+
if (!i && e.current?.lifeCycles[g])
|
|
3688
3688
|
return ne(`名称 ${g} 已存在,请更换!`), !1;
|
|
3689
3689
|
const m = {
|
|
3690
3690
|
type: "JSFunction",
|
|
@@ -3692,7 +3692,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3692
3692
|
};
|
|
3693
3693
|
return oe(m, e.context, !0) ? (e.current?.setFunction("lifeCycles", g, m), !0) : !1;
|
|
3694
3694
|
};
|
|
3695
|
-
return (r,
|
|
3695
|
+
return (r, i) => (d(), y(He, {
|
|
3696
3696
|
title: "生命周期",
|
|
3697
3697
|
current: e.current,
|
|
3698
3698
|
context: e.context,
|
|
@@ -3739,8 +3739,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3739
3739
|
context: {},
|
|
3740
3740
|
current: {}
|
|
3741
3741
|
},
|
|
3742
|
-
setup(
|
|
3743
|
-
const e =
|
|
3742
|
+
setup(u) {
|
|
3743
|
+
const e = u, t = S(() => (e.current?.watch || []).map((r) => ({
|
|
3744
3744
|
...r,
|
|
3745
3745
|
source: ze(r.source),
|
|
3746
3746
|
handler: ze(r.handler)
|
|
@@ -3749,7 +3749,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3749
3749
|
deep: !1,
|
|
3750
3750
|
immediate: !1,
|
|
3751
3751
|
handler: "() => { }"
|
|
3752
|
-
}), a = (r) => r.source, o = (r) => e.current?.removeWatch(r), s = async (r,
|
|
3752
|
+
}), a = (r) => r.source, o = (r) => e.current?.removeWatch(r), s = async (r, i) => {
|
|
3753
3753
|
const g = {
|
|
3754
3754
|
type: "JSFunction",
|
|
3755
3755
|
value: r.source
|
|
@@ -3766,7 +3766,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3766
3766
|
};
|
|
3767
3767
|
return e.current?.setWatch(m), !0;
|
|
3768
3768
|
};
|
|
3769
|
-
return (r,
|
|
3769
|
+
return (r, i) => (d(), y(He, {
|
|
3770
3770
|
title: "侦听器",
|
|
3771
3771
|
current: e.current,
|
|
3772
3772
|
context: e.context,
|
|
@@ -3832,7 +3832,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3832
3832
|
}
|
|
3833
3833
|
}), cr = /* @__PURE__ */ E({
|
|
3834
3834
|
__name: "index",
|
|
3835
|
-
setup(
|
|
3835
|
+
setup(u) {
|
|
3836
3836
|
const { current: e, context: t } = ie();
|
|
3837
3837
|
return (l, a) => (d(), y(n(M), {
|
|
3838
3838
|
class: "v-scripts-widget",
|
|
@@ -3875,8 +3875,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3875
3875
|
removable: { type: Boolean }
|
|
3876
3876
|
},
|
|
3877
3877
|
emits: ["change", "remove"],
|
|
3878
|
-
setup(
|
|
3879
|
-
const t =
|
|
3878
|
+
setup(u, { emit: e }) {
|
|
3879
|
+
const t = u, l = e, a = (s, r) => {
|
|
3880
3880
|
l("change", s, r);
|
|
3881
3881
|
}, o = (s) => {
|
|
3882
3882
|
l("remove", s);
|
|
@@ -3892,12 +3892,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3892
3892
|
class: "v-properties-widget__form",
|
|
3893
3893
|
size: "small",
|
|
3894
3894
|
"label-width": "90px",
|
|
3895
|
-
onKeydown: r[0] || (r[0] = Qe(
|
|
3895
|
+
onKeydown: r[0] || (r[0] = Qe(We(() => {
|
|
3896
3896
|
}, ["prevent", "stop"]), ["enter"]))
|
|
3897
3897
|
}, {
|
|
3898
3898
|
default: h(() => [
|
|
3899
|
-
(d(!0), A(T, null,
|
|
3900
|
-
key: `${
|
|
3899
|
+
(d(!0), A(T, null, W(t.items, (i) => (d(), y(n(J), re({ ref_for: !0 }, i, {
|
|
3900
|
+
key: `${i.name}_${t.node.id}`,
|
|
3901
3901
|
current: t.current,
|
|
3902
3902
|
context: t.context,
|
|
3903
3903
|
removable: t.removable,
|
|
@@ -3914,17 +3914,17 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3914
3914
|
}), dr = /* @__PURE__ */ E({
|
|
3915
3915
|
name: "PropertiesWidget",
|
|
3916
3916
|
__name: "index",
|
|
3917
|
-
setup(
|
|
3917
|
+
setup(u) {
|
|
3918
3918
|
const { current: e, context: t } = ie(), { selected: l } = ke(), {
|
|
3919
3919
|
node: a,
|
|
3920
3920
|
commonProps: o,
|
|
3921
3921
|
change: s,
|
|
3922
3922
|
componentProps: r,
|
|
3923
|
-
customProps:
|
|
3923
|
+
customProps: i,
|
|
3924
3924
|
addCustom: g,
|
|
3925
3925
|
removeCustom: p,
|
|
3926
3926
|
isExist: m
|
|
3927
|
-
} =
|
|
3927
|
+
} = Ns(l), f = k(!1), b = k(), c = () => {
|
|
3928
3928
|
f.value = !0, b.value = {
|
|
3929
3929
|
name: ""
|
|
3930
3930
|
};
|
|
@@ -3965,7 +3965,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3965
3965
|
current: n(e),
|
|
3966
3966
|
context: n(t),
|
|
3967
3967
|
node: n(a),
|
|
3968
|
-
items: n(
|
|
3968
|
+
items: n(i),
|
|
3969
3969
|
onChange: n(s),
|
|
3970
3970
|
removable: "",
|
|
3971
3971
|
plus: "",
|
|
@@ -3975,7 +3975,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
3975
3975
|
}, null, 8, ["current", "context", "node", "items", "onChange"])) : j("", !0),
|
|
3976
3976
|
v(n(Ve), {
|
|
3977
3977
|
modelValue: f.value,
|
|
3978
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
3978
|
+
"onUpdate:modelValue": C[0] || (C[0] = (I) => f.value = I),
|
|
3979
3979
|
title: "新增自定义属性",
|
|
3980
3980
|
width: "400px",
|
|
3981
3981
|
height: "150px",
|
|
@@ -4008,8 +4008,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4008
4008
|
current: {},
|
|
4009
4009
|
value: {}
|
|
4010
4010
|
},
|
|
4011
|
-
setup(
|
|
4012
|
-
const e =
|
|
4011
|
+
setup(u) {
|
|
4012
|
+
const e = u, t = k(), l = qe({
|
|
4013
4013
|
type: "JSExpression",
|
|
4014
4014
|
value: e.value
|
|
4015
4015
|
}), a = (o) => {
|
|
@@ -4055,8 +4055,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4055
4055
|
name: {},
|
|
4056
4056
|
event: {}
|
|
4057
4057
|
},
|
|
4058
|
-
setup(
|
|
4059
|
-
const e =
|
|
4058
|
+
setup(u) {
|
|
4059
|
+
const e = u, t = k(), a = qe({
|
|
4060
4060
|
name: e.name,
|
|
4061
4061
|
...e.event,
|
|
4062
4062
|
modifiers: Object.keys(e.event?.modifiers || {}),
|
|
@@ -4064,13 +4064,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4064
4064
|
type: "JSFunction",
|
|
4065
4065
|
value: e.event?.handler?.value || "() => {}"
|
|
4066
4066
|
}
|
|
4067
|
-
}), o =
|
|
4067
|
+
}), o = Is.map((r) => ({
|
|
4068
4068
|
label: r,
|
|
4069
4069
|
value: r
|
|
4070
4070
|
})), s = (r) => {
|
|
4071
4071
|
t.value.getEditor().setValue(r), a.handler.value = r;
|
|
4072
4072
|
};
|
|
4073
|
-
return (r,
|
|
4073
|
+
return (r, i) => (d(), y(n(Tt), {
|
|
4074
4074
|
title: "绑定事件",
|
|
4075
4075
|
"unbind-enabled": "",
|
|
4076
4076
|
block: e.current,
|
|
@@ -4096,7 +4096,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4096
4096
|
ref_key: "editorRef",
|
|
4097
4097
|
ref: t,
|
|
4098
4098
|
modelValue: a.handler.value,
|
|
4099
|
-
"onUpdate:modelValue":
|
|
4099
|
+
"onUpdate:modelValue": i[0] || (i[0] = (g) => a.handler.value = g),
|
|
4100
4100
|
dark: "",
|
|
4101
4101
|
height: "100%"
|
|
4102
4102
|
}, null, 8, ["modelValue"])
|
|
@@ -4110,12 +4110,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4110
4110
|
}), vr = /* @__PURE__ */ E({
|
|
4111
4111
|
name: "EventsWidget",
|
|
4112
4112
|
__name: "index",
|
|
4113
|
-
setup(
|
|
4113
|
+
setup(u) {
|
|
4114
4114
|
const { current: e, context: t } = ie(), { selected: l } = ke(), { mouseEventList: a, keyboardEventList: o, componentEventList: s } = Ls(l), r = k({
|
|
4115
4115
|
name: "",
|
|
4116
4116
|
event: void 0
|
|
4117
|
-
}),
|
|
4118
|
-
r.value = lt(c),
|
|
4117
|
+
}), i = k(!1), g = (c) => {
|
|
4118
|
+
r.value = lt(c), i.value = !0;
|
|
4119
4119
|
}, p = async (c) => {
|
|
4120
4120
|
const _ = {
|
|
4121
4121
|
...c,
|
|
@@ -4124,7 +4124,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4124
4124
|
return oe(_.handler, t.value, !0) ? ((l.value?.model).setEvent(_), !0) : !1;
|
|
4125
4125
|
}, m = async (c) => {
|
|
4126
4126
|
const _ = l.value?.model;
|
|
4127
|
-
c.name && (_.removeEvent(c.name),
|
|
4127
|
+
c.name && (_.removeEvent(c.name), i.value = !1);
|
|
4128
4128
|
}, f = async () => {
|
|
4129
4129
|
r.value.name && await Oe("确定要删除该事件吗?") && m(r.value);
|
|
4130
4130
|
}, b = (c) => {
|
|
@@ -4149,7 +4149,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4149
4149
|
"image-size": 50,
|
|
4150
4150
|
description: "该组件无自带事件"
|
|
4151
4151
|
})),
|
|
4152
|
-
(d(!0), A(T, null,
|
|
4152
|
+
(d(!0), A(T, null, W(n(s), (w) => (d(), y(n(ue), {
|
|
4153
4153
|
key: `component_${w.name}`,
|
|
4154
4154
|
title: w.name,
|
|
4155
4155
|
"model-value": w,
|
|
@@ -4170,7 +4170,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4170
4170
|
fit: !1
|
|
4171
4171
|
}, {
|
|
4172
4172
|
default: h(() => [
|
|
4173
|
-
(d(!0), A(T, null,
|
|
4173
|
+
(d(!0), A(T, null, W(n(a), (w) => (d(), y(n(ue), {
|
|
4174
4174
|
key: `mouse_${w.name}`,
|
|
4175
4175
|
title: w.name,
|
|
4176
4176
|
"model-value": w,
|
|
@@ -4192,7 +4192,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4192
4192
|
fit: !1
|
|
4193
4193
|
}, {
|
|
4194
4194
|
default: h(() => [
|
|
4195
|
-
(d(!0), A(T, null,
|
|
4195
|
+
(d(!0), A(T, null, W(n(o), (w) => (d(), y(n(ue), {
|
|
4196
4196
|
key: `keyboard_${w.name}`,
|
|
4197
4197
|
title: w.name,
|
|
4198
4198
|
"model-value": w,
|
|
@@ -4206,10 +4206,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4206
4206
|
]),
|
|
4207
4207
|
_: 1
|
|
4208
4208
|
}),
|
|
4209
|
-
|
|
4209
|
+
i.value ? (d(), y(n(mr), {
|
|
4210
4210
|
key: 0,
|
|
4211
|
-
modelValue:
|
|
4212
|
-
"onUpdate:modelValue": _[0] || (_[0] = (w) =>
|
|
4211
|
+
modelValue: i.value,
|
|
4212
|
+
"onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
|
|
4213
4213
|
context: n(t),
|
|
4214
4214
|
current: n(e),
|
|
4215
4215
|
name: r.value.name,
|
|
@@ -4224,7 +4224,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4224
4224
|
}), gr = /* @__PURE__ */ E({
|
|
4225
4225
|
name: "CssWidget",
|
|
4226
4226
|
__name: "index",
|
|
4227
|
-
setup(
|
|
4227
|
+
setup(u) {
|
|
4228
4228
|
const { current: e } = ie(), t = k(), l = S(() => e.value?.css || ""), a = (s) => {
|
|
4229
4229
|
e.value?.setCss(s);
|
|
4230
4230
|
}, o = () => {
|
|
@@ -4256,13 +4256,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4256
4256
|
}), fr = /* @__PURE__ */ E({
|
|
4257
4257
|
name: "DirectivesWidget",
|
|
4258
4258
|
__name: "index",
|
|
4259
|
-
setup(
|
|
4259
|
+
setup(u) {
|
|
4260
4260
|
const { current: e, context: t } = ie(), { selected: l } = ke(), {
|
|
4261
4261
|
vIf: a,
|
|
4262
4262
|
vShow: o,
|
|
4263
4263
|
vBind: s,
|
|
4264
4264
|
vFor: r,
|
|
4265
|
-
vModels:
|
|
4265
|
+
vModels: i,
|
|
4266
4266
|
onValueChange: g,
|
|
4267
4267
|
onForChange: p,
|
|
4268
4268
|
onModelChange: m
|
|
@@ -4283,7 +4283,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4283
4283
|
v(n(ge), {
|
|
4284
4284
|
size: "small",
|
|
4285
4285
|
"label-width": "80px",
|
|
4286
|
-
onKeydown: c[0] || (c[0] = Qe(
|
|
4286
|
+
onKeydown: c[0] || (c[0] = Qe(We(() => {
|
|
4287
4287
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4288
4288
|
}, {
|
|
4289
4289
|
default: h(() => [
|
|
@@ -4330,7 +4330,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4330
4330
|
v(n(ge), {
|
|
4331
4331
|
size: "small",
|
|
4332
4332
|
"label-width": "80px",
|
|
4333
|
-
onKeydown: c[1] || (c[1] = Qe(
|
|
4333
|
+
onKeydown: c[1] || (c[1] = Qe(We(() => {
|
|
4334
4334
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4335
4335
|
}, {
|
|
4336
4336
|
default: h(() => [
|
|
@@ -4381,7 +4381,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4381
4381
|
grow: ""
|
|
4382
4382
|
}, {
|
|
4383
4383
|
default: h(() => [
|
|
4384
|
-
(d(!0), A(T, null,
|
|
4384
|
+
(d(!0), A(T, null, W(n(i), (_, w) => (d(), y(n(U), {
|
|
4385
4385
|
card: "",
|
|
4386
4386
|
border: "",
|
|
4387
4387
|
class: "v-sub-panel",
|
|
@@ -4394,7 +4394,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4394
4394
|
v(n(ge), {
|
|
4395
4395
|
size: "small",
|
|
4396
4396
|
"label-width": "60px",
|
|
4397
|
-
onKeydown: c[2] || (c[2] = Qe(
|
|
4397
|
+
onKeydown: c[2] || (c[2] = Qe(We(() => {
|
|
4398
4398
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4399
4399
|
}, {
|
|
4400
4400
|
default: h(() => [
|
|
@@ -4413,7 +4413,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4413
4413
|
]),
|
|
4414
4414
|
_: 2
|
|
4415
4415
|
}, 1032, ["title"]))), 256)),
|
|
4416
|
-
n(
|
|
4416
|
+
n(i).length ? j("", !0) : (d(), y(n(se), {
|
|
4417
4417
|
key: 0,
|
|
4418
4418
|
description: "当前组件没有双向绑定属性",
|
|
4419
4419
|
"image-size": 50
|
|
@@ -4433,8 +4433,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4433
4433
|
current: {},
|
|
4434
4434
|
context: {}
|
|
4435
4435
|
},
|
|
4436
|
-
setup(
|
|
4437
|
-
const e =
|
|
4436
|
+
setup(u) {
|
|
4437
|
+
const e = u, t = S(() => e.item ? "编辑定义属性" : "新增定义属性"), l = k(
|
|
4438
4438
|
Object.assign(
|
|
4439
4439
|
{
|
|
4440
4440
|
default: {
|
|
@@ -4492,7 +4492,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4492
4492
|
default: h(() => [
|
|
4493
4493
|
v(n(le), {
|
|
4494
4494
|
modelValue: l.value.default.value,
|
|
4495
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
4495
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => l.value.default.value = i),
|
|
4496
4496
|
height: "200px",
|
|
4497
4497
|
dark: ""
|
|
4498
4498
|
}, null, 8, ["modelValue"])
|
|
@@ -4511,9 +4511,9 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4511
4511
|
current: {},
|
|
4512
4512
|
context: {}
|
|
4513
4513
|
},
|
|
4514
|
-
setup(
|
|
4515
|
-
const e =
|
|
4516
|
-
Array.isArray(r) ? r.every((p) => _e.test(p)) ?
|
|
4514
|
+
setup(u) {
|
|
4515
|
+
const e = u, t = S(() => e.item ? "编辑定义事件" : "新增定义事件"), l = k(e.item), a = (s, r, i) => {
|
|
4516
|
+
Array.isArray(r) ? r.every((p) => _e.test(p)) ? i() : i(new Error("参数名称格式错误")) : i(new Error("参数名称必须是数组形式"));
|
|
4517
4517
|
}, o = async (s) => (e.item && e.current.removeEmit(e.item.name, !0), e.current.setEmit(s), !0);
|
|
4518
4518
|
return (s, r) => (d(), y(n(Ve), {
|
|
4519
4519
|
title: t.value,
|
|
@@ -4566,9 +4566,9 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4566
4566
|
current: {},
|
|
4567
4567
|
context: {}
|
|
4568
4568
|
},
|
|
4569
|
-
setup(
|
|
4570
|
-
const e =
|
|
4571
|
-
Array.isArray(r) ? r.every((p) => _e.test(p)) ?
|
|
4569
|
+
setup(u) {
|
|
4570
|
+
const e = u, t = S(() => e.item ? "编辑定义插槽" : "新增定义插槽"), l = k(e.item), a = (s, r, i) => {
|
|
4571
|
+
Array.isArray(r) ? r.every((p) => _e.test(p)) ? i() : i(new Error("参数名称格式错误")) : i(new Error("参数名称必须是数组形式"));
|
|
4572
4572
|
}, o = async (s) => (e.item && e.current.removeSlot(e.item.name, !0), e.current.setSlot(s), !0);
|
|
4573
4573
|
return (s, r) => (d(), y(n(Ve), {
|
|
4574
4574
|
title: t.value,
|
|
@@ -4620,8 +4620,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4620
4620
|
current: {},
|
|
4621
4621
|
context: {}
|
|
4622
4622
|
},
|
|
4623
|
-
setup(
|
|
4624
|
-
const e =
|
|
4623
|
+
setup(u) {
|
|
4624
|
+
const e = u, t = S(() => e.item ? "编辑注入" : "新增注入"), l = k(
|
|
4625
4625
|
Object.assign(
|
|
4626
4626
|
{
|
|
4627
4627
|
default: {
|
|
@@ -4682,35 +4682,35 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4682
4682
|
}), wr = /* @__PURE__ */ E({
|
|
4683
4683
|
name: "DefinedWidget",
|
|
4684
4684
|
__name: "index",
|
|
4685
|
-
setup(
|
|
4686
|
-
const { current: e, context: t } = ie(), l = S(() => (e.value?.props || []).map((F) => typeof F == "string" ? { name: F } : F)), a = S(() => (e.value?.emits || []).map((F) => typeof F == "string" ? { name: F, params: [] } : F)), o = S(() => (e.value?.slots || []).map((F) => typeof F == "string" ? { name: F, params: [] } : F)), s = S(() => e.value?.inject || []), r = k(!1),
|
|
4687
|
-
|
|
4685
|
+
setup(u) {
|
|
4686
|
+
const { current: e, context: t } = ie(), l = S(() => (e.value?.props || []).map((F) => typeof F == "string" ? { name: F } : F)), a = S(() => (e.value?.emits || []).map((F) => typeof F == "string" ? { name: F, params: [] } : F)), o = S(() => (e.value?.slots || []).map((F) => typeof F == "string" ? { name: F, params: [] } : F)), s = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), p = k(), m = k(!1), f = k(), b = k(!1), c = k(), _ = () => {
|
|
4687
|
+
i.value = void 0, r.value = !0;
|
|
4688
4688
|
}, w = (F) => {
|
|
4689
|
-
const { name: L, modelValue:
|
|
4690
|
-
L === "edit" && x(
|
|
4689
|
+
const { name: L, modelValue: N } = F;
|
|
4690
|
+
L === "edit" && x(N), L === "remove" && e.value?.removeProp(N);
|
|
4691
4691
|
}, x = (F) => {
|
|
4692
|
-
|
|
4692
|
+
i.value = F, r.value = !0;
|
|
4693
4693
|
}, C = () => {
|
|
4694
4694
|
p.value = void 0, g.value = !0;
|
|
4695
|
-
},
|
|
4695
|
+
}, I = (F) => {
|
|
4696
4696
|
p.value = { ...F }, g.value = !0;
|
|
4697
4697
|
}, O = (F) => {
|
|
4698
|
-
const { name: L, modelValue:
|
|
4699
|
-
L === "edit" &&
|
|
4698
|
+
const { name: L, modelValue: N } = F;
|
|
4699
|
+
L === "edit" && I(N), L === "remove" && e.value?.removeEmit(N.name);
|
|
4700
4700
|
}, $ = () => {
|
|
4701
4701
|
f.value = void 0, m.value = !0;
|
|
4702
|
-
},
|
|
4702
|
+
}, D = (F) => {
|
|
4703
4703
|
f.value = { ...F }, m.value = !0;
|
|
4704
4704
|
}, R = (F) => {
|
|
4705
|
-
const { name: L, modelValue:
|
|
4706
|
-
L === "edit" &&
|
|
4705
|
+
const { name: L, modelValue: N } = F;
|
|
4706
|
+
L === "edit" && D(N), L === "remove" && e.value?.removeSlot(N.name);
|
|
4707
4707
|
}, P = () => {
|
|
4708
4708
|
c.value = void 0, b.value = !0;
|
|
4709
4709
|
}, X = (F) => {
|
|
4710
4710
|
c.value = F, b.value = !0;
|
|
4711
4711
|
}, pe = (F) => {
|
|
4712
|
-
const { name: L, modelValue:
|
|
4713
|
-
L === "edit" && X(
|
|
4712
|
+
const { name: L, modelValue: N } = F;
|
|
4713
|
+
L === "edit" && X(N), L === "remove" && e.value?.removeInject(N);
|
|
4714
4714
|
};
|
|
4715
4715
|
return (F, L) => n(e) && n(t) ? (d(), y(n(M), {
|
|
4716
4716
|
key: 0,
|
|
@@ -4728,12 +4728,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4728
4728
|
onPlus: _
|
|
4729
4729
|
}, {
|
|
4730
4730
|
default: h(() => [
|
|
4731
|
-
(d(!0), A(T, null,
|
|
4732
|
-
"model-value":
|
|
4733
|
-
title:
|
|
4731
|
+
(d(!0), A(T, null, W(l.value, (N) => (d(), y(n(ue), {
|
|
4732
|
+
"model-value": N,
|
|
4733
|
+
title: N.name,
|
|
4734
4734
|
border: "",
|
|
4735
4735
|
actions: ["edit", "remove"],
|
|
4736
|
-
onClick: ($e) => x(
|
|
4736
|
+
onClick: ($e) => x(N),
|
|
4737
4737
|
onAction: w
|
|
4738
4738
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
|
4739
4739
|
l.value.length ? j("", !0) : (d(), y(n(se), {
|
|
@@ -4745,8 +4745,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4745
4745
|
current: n(e),
|
|
4746
4746
|
context: n(t),
|
|
4747
4747
|
modelValue: r.value,
|
|
4748
|
-
"onUpdate:modelValue": L[0] || (L[0] = (
|
|
4749
|
-
item:
|
|
4748
|
+
"onUpdate:modelValue": L[0] || (L[0] = (N) => r.value = N),
|
|
4749
|
+
item: i.value
|
|
4750
4750
|
}, null, 8, ["current", "context", "modelValue", "item"])) : j("", !0)
|
|
4751
4751
|
]),
|
|
4752
4752
|
_: 1
|
|
@@ -4760,12 +4760,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4760
4760
|
onPlus: C
|
|
4761
4761
|
}, {
|
|
4762
4762
|
default: h(() => [
|
|
4763
|
-
(d(!0), A(T, null,
|
|
4764
|
-
"model-value":
|
|
4765
|
-
title:
|
|
4763
|
+
(d(!0), A(T, null, W(a.value, (N) => (d(), y(n(ue), {
|
|
4764
|
+
"model-value": N,
|
|
4765
|
+
title: N.name,
|
|
4766
4766
|
border: "",
|
|
4767
4767
|
actions: ["remove"],
|
|
4768
|
-
onClick: ($e) =>
|
|
4768
|
+
onClick: ($e) => I(N),
|
|
4769
4769
|
onAction: O
|
|
4770
4770
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
|
4771
4771
|
a.value.length ? j("", !0) : (d(), y(n(se), {
|
|
@@ -4775,7 +4775,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4775
4775
|
g.value ? (d(), y(br, {
|
|
4776
4776
|
key: 1,
|
|
4777
4777
|
modelValue: g.value,
|
|
4778
|
-
"onUpdate:modelValue": L[1] || (L[1] = (
|
|
4778
|
+
"onUpdate:modelValue": L[1] || (L[1] = (N) => g.value = N),
|
|
4779
4779
|
current: n(e),
|
|
4780
4780
|
context: n(t),
|
|
4781
4781
|
item: p.value
|
|
@@ -4792,12 +4792,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4792
4792
|
onPlus: $
|
|
4793
4793
|
}, {
|
|
4794
4794
|
default: h(() => [
|
|
4795
|
-
(d(!0), A(T, null,
|
|
4796
|
-
"model-value":
|
|
4797
|
-
title:
|
|
4795
|
+
(d(!0), A(T, null, W(o.value, (N) => (d(), y(n(ue), {
|
|
4796
|
+
"model-value": N,
|
|
4797
|
+
title: N.name,
|
|
4798
4798
|
border: "",
|
|
4799
4799
|
actions: ["remove"],
|
|
4800
|
-
onClick: ($e) =>
|
|
4800
|
+
onClick: ($e) => D(N),
|
|
4801
4801
|
onAction: R
|
|
4802
4802
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
|
4803
4803
|
o.value.length ? j("", !0) : (d(), y(n(se), {
|
|
@@ -4807,7 +4807,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4807
4807
|
m.value ? (d(), y(yr, {
|
|
4808
4808
|
key: 1,
|
|
4809
4809
|
modelValue: m.value,
|
|
4810
|
-
"onUpdate:modelValue": L[2] || (L[2] = (
|
|
4810
|
+
"onUpdate:modelValue": L[2] || (L[2] = (N) => m.value = N),
|
|
4811
4811
|
current: n(e),
|
|
4812
4812
|
context: n(t),
|
|
4813
4813
|
item: f.value
|
|
@@ -4825,12 +4825,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4825
4825
|
onPlus: P
|
|
4826
4826
|
}, {
|
|
4827
4827
|
default: h(() => [
|
|
4828
|
-
(d(!0), A(T, null,
|
|
4829
|
-
"model-value":
|
|
4830
|
-
title:
|
|
4828
|
+
(d(!0), A(T, null, W(s.value, (N) => (d(), y(n(ue), {
|
|
4829
|
+
"model-value": N,
|
|
4830
|
+
title: N.name,
|
|
4831
4831
|
border: "",
|
|
4832
4832
|
actions: ["remove"],
|
|
4833
|
-
onClick: ($e) => X(
|
|
4833
|
+
onClick: ($e) => X(N),
|
|
4834
4834
|
onAction: pe
|
|
4835
4835
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
|
4836
4836
|
s.value.length ? j("", !0) : (d(), y(n(se), {
|
|
@@ -4840,7 +4840,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4840
4840
|
b.value ? (d(), y(_r, {
|
|
4841
4841
|
key: 1,
|
|
4842
4842
|
modelValue: b.value,
|
|
4843
|
-
"onUpdate:modelValue": L[3] || (L[3] = (
|
|
4843
|
+
"onUpdate:modelValue": L[3] || (L[3] = (N) => b.value = N),
|
|
4844
4844
|
current: n(e),
|
|
4845
4845
|
context: n(t),
|
|
4846
4846
|
item: c.value
|
|
@@ -4860,8 +4860,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4860
4860
|
current: {},
|
|
4861
4861
|
item: {}
|
|
4862
4862
|
},
|
|
4863
|
-
setup(
|
|
4864
|
-
const e =
|
|
4863
|
+
setup(u) {
|
|
4864
|
+
const e = u, t = [
|
|
4865
4865
|
{
|
|
4866
4866
|
label: "API",
|
|
4867
4867
|
value: "api",
|
|
@@ -4897,7 +4897,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4897
4897
|
})`
|
|
4898
4898
|
}
|
|
4899
4899
|
}, e.item)
|
|
4900
|
-
), r = k(!1),
|
|
4900
|
+
), r = k(!1), i = k(""), g = k(!1), p = S(() => s.value.type === "api" ? l.value.map((w) => ({
|
|
4901
4901
|
label: w.label || "",
|
|
4902
4902
|
value: w.id,
|
|
4903
4903
|
data: w
|
|
@@ -4917,10 +4917,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4917
4917
|
x && (s.value.name = x.code, s.value.label = x.title || "");
|
|
4918
4918
|
}
|
|
4919
4919
|
}, c = async (w) => {
|
|
4920
|
-
const { transform: x, test: C, name:
|
|
4920
|
+
const { transform: x, test: C, name: I } = w;
|
|
4921
4921
|
if (!e.current) return !1;
|
|
4922
|
-
if (!e.item && e.current.dataSources[
|
|
4923
|
-
return ne(`名称【${
|
|
4922
|
+
if (!e.item && e.current.dataSources[I])
|
|
4923
|
+
return ne(`名称【${I}】已经存在,请更换名称`), !1;
|
|
4924
4924
|
if (x?.value) {
|
|
4925
4925
|
if (!oe(x, e.context, !0))
|
|
4926
4926
|
return !1;
|
|
@@ -4951,11 +4951,11 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
4951
4951
|
Ce.warn(`API【${s.value.ref}】不存在`);
|
|
4952
4952
|
}, C = Me(s.value.test, {
|
|
4953
4953
|
runApi: x
|
|
4954
|
-
}),
|
|
4954
|
+
}), I = s.value.transform?.value ? Me(s.value.transform, {}, !0) : (O) => O;
|
|
4955
4955
|
r.value = !0;
|
|
4956
4956
|
try {
|
|
4957
4957
|
const O = await C();
|
|
4958
|
-
|
|
4958
|
+
i.value = JSON.stringify(await I(O), null, 2);
|
|
4959
4959
|
} catch (O) {
|
|
4960
4960
|
Ce.error(O);
|
|
4961
4961
|
}
|
|
@@ -5066,7 +5066,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5066
5066
|
}, {
|
|
5067
5067
|
default: h(() => [
|
|
5068
5068
|
v(n(le), {
|
|
5069
|
-
"model-value":
|
|
5069
|
+
"model-value": i.value,
|
|
5070
5070
|
border: "",
|
|
5071
5071
|
dark: "",
|
|
5072
5072
|
height: "100%",
|
|
@@ -5082,7 +5082,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5082
5082
|
}), Sr = /* @__PURE__ */ E({
|
|
5083
5083
|
name: "DataSourcesWidget",
|
|
5084
5084
|
__name: "index",
|
|
5085
|
-
setup(
|
|
5085
|
+
setup(u) {
|
|
5086
5086
|
const { current: e, context: t } = ie(), l = k(!1), a = k(), o = S(() => Object.values(e.value?.dataSources || {}).filter(
|
|
5087
5087
|
(p) => ["meta", "api"].includes(p.type)
|
|
5088
5088
|
)), s = (p) => ({
|
|
@@ -5091,11 +5091,11 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5091
5091
|
cube: "warning"
|
|
5092
5092
|
})[p], r = () => {
|
|
5093
5093
|
a.value = void 0, l.value = !0;
|
|
5094
|
-
},
|
|
5094
|
+
}, i = (p) => {
|
|
5095
5095
|
a.value = p, l.value = !0;
|
|
5096
5096
|
}, g = (p) => {
|
|
5097
5097
|
const { name: m, modelValue: f } = p;
|
|
5098
|
-
m === "edit" &&
|
|
5098
|
+
m === "edit" && i(f), m === "remove" && e.value?.removeDataSource(f.name);
|
|
5099
5099
|
};
|
|
5100
5100
|
return (p, m) => (d(), y(n(M), {
|
|
5101
5101
|
class: "v-data-sources-widget",
|
|
@@ -5111,7 +5111,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5111
5111
|
onPlus: r
|
|
5112
5112
|
}, {
|
|
5113
5113
|
default: h(() => [
|
|
5114
|
-
(d(!0), A(T, null,
|
|
5114
|
+
(d(!0), A(T, null, W(o.value, (f) => (d(), y(n(ue), {
|
|
5115
5115
|
border: "",
|
|
5116
5116
|
title: f.name,
|
|
5117
5117
|
subtitle: f.label,
|
|
@@ -5120,7 +5120,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5120
5120
|
tag: f.type.toUpperCase(),
|
|
5121
5121
|
"tag-type": s(f.type),
|
|
5122
5122
|
onAction: g,
|
|
5123
|
-
onClick: (b) =>
|
|
5123
|
+
onClick: (b) => i(f)
|
|
5124
5124
|
}, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
|
|
5125
5125
|
o.value.length ? j("", !0) : (d(), y(n(se), {
|
|
5126
5126
|
key: 0,
|
|
@@ -5147,8 +5147,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5147
5147
|
styleJson: {},
|
|
5148
5148
|
setStyle: { type: Function }
|
|
5149
5149
|
},
|
|
5150
|
-
setup(
|
|
5151
|
-
const e =
|
|
5150
|
+
setup(u) {
|
|
5151
|
+
const e = u, t = k();
|
|
5152
5152
|
q(
|
|
5153
5153
|
() => e.styleJson.display,
|
|
5154
5154
|
(g) => {
|
|
@@ -5266,9 +5266,9 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5266
5266
|
{
|
|
5267
5267
|
label: "stretch",
|
|
5268
5268
|
value: "stretch",
|
|
5269
|
-
svg:
|
|
5269
|
+
svg: Da
|
|
5270
5270
|
}
|
|
5271
|
-
],
|
|
5271
|
+
], i = (g, p) => {
|
|
5272
5272
|
t.value = p === "flex", e.setStyle("display", p), t.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
|
|
5273
5273
|
};
|
|
5274
5274
|
return (g, p) => (d(), y(n(U), {
|
|
@@ -5291,7 +5291,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5291
5291
|
options: l,
|
|
5292
5292
|
variable: !1,
|
|
5293
5293
|
value: e.styleJson.display,
|
|
5294
|
-
onChange:
|
|
5294
|
+
onChange: i
|
|
5295
5295
|
}, null, 8, ["value"]),
|
|
5296
5296
|
t.value ? (d(), A(T, { key: 0 }, [
|
|
5297
5297
|
v(n(J), {
|
|
@@ -5341,7 +5341,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5341
5341
|
}), Cr = /* @__PURE__ */ E({
|
|
5342
5342
|
name: "StyleWidget",
|
|
5343
5343
|
__name: "JsonMode",
|
|
5344
|
-
setup(
|
|
5344
|
+
setup(u) {
|
|
5345
5345
|
const { selected: e } = ke(), t = k(), l = S(() => {
|
|
5346
5346
|
const r = e.value?.model || null;
|
|
5347
5347
|
return ee(r) ? null : r;
|
|
@@ -5349,16 +5349,16 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5349
5349
|
() => JSON.stringify(l.value?.getPropValue("style") || {}, null, 2)
|
|
5350
5350
|
), o = (r) => {
|
|
5351
5351
|
try {
|
|
5352
|
-
const
|
|
5353
|
-
l.value?.setProp("style",
|
|
5352
|
+
const i = JSON.parse(r);
|
|
5353
|
+
l.value?.setProp("style", i);
|
|
5354
5354
|
} catch {
|
|
5355
5355
|
ne("JSON格式错误");
|
|
5356
5356
|
}
|
|
5357
5357
|
}, s = () => {
|
|
5358
|
-
const
|
|
5359
|
-
o(
|
|
5358
|
+
const i = (t.value?.getEditor()).getValue();
|
|
5359
|
+
o(i), de("保存成功");
|
|
5360
5360
|
};
|
|
5361
|
-
return (r,
|
|
5361
|
+
return (r, i) => (d(), y(n(U), {
|
|
5362
5362
|
class: "v-css-widget v-sub-panel",
|
|
5363
5363
|
title: "JSON",
|
|
5364
5364
|
size: "small",
|
|
@@ -5388,15 +5388,15 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5388
5388
|
auto: { type: Boolean }
|
|
5389
5389
|
},
|
|
5390
5390
|
emits: ["close", "update:modelValue", "submit"],
|
|
5391
|
-
setup(
|
|
5392
|
-
const t = [0, 10, 20, 40, 60, 100, 140, 220], l =
|
|
5391
|
+
setup(u, { emit: e }) {
|
|
5392
|
+
const t = [0, 10, 20, 40, 60, 100, 140, 220], l = u, a = e, o = S(() => l.auto || l.name.includes("margin")), s = k(), r = k(l.modelValue), i = k("px");
|
|
5393
5393
|
Eo(s, () => {
|
|
5394
5394
|
a("close");
|
|
5395
5395
|
});
|
|
5396
5396
|
const g = (b) => {
|
|
5397
5397
|
r.value = typeof b == "number" ? `${b}px` : "auto", p(r.value);
|
|
5398
5398
|
}, p = (b) => {
|
|
5399
|
-
|
|
5399
|
+
i.value = b === "auto" ? void 0 : "px";
|
|
5400
5400
|
}, m = () => {
|
|
5401
5401
|
r.value ? (a("update:modelValue", r.value), a("submit", l.name, r.value), a("close")) : ne("请输入有效值", "提示");
|
|
5402
5402
|
}, f = () => {
|
|
@@ -5418,9 +5418,9 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5418
5418
|
modelValue: r.value,
|
|
5419
5419
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => r.value = _),
|
|
5420
5420
|
size: "small",
|
|
5421
|
-
"with-unit": !!
|
|
5422
|
-
unit:
|
|
5423
|
-
format:
|
|
5421
|
+
"with-unit": !!i.value,
|
|
5422
|
+
unit: i.value,
|
|
5423
|
+
format: i.value ? "0" : void 0,
|
|
5424
5424
|
onChange: p
|
|
5425
5425
|
}, null, 8, ["modelValue", "with-unit", "unit", "format"])
|
|
5426
5426
|
]),
|
|
@@ -5447,7 +5447,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5447
5447
|
wrap: "wrap"
|
|
5448
5448
|
}, {
|
|
5449
5449
|
default: h(() => [
|
|
5450
|
-
(d(), A(T, null,
|
|
5450
|
+
(d(), A(T, null, W(t, (_) => V("span", {
|
|
5451
5451
|
onClick: (w) => g(_)
|
|
5452
5452
|
}, z(_), 9, Er)), 64))
|
|
5453
5453
|
]),
|
|
@@ -5490,7 +5490,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5490
5490
|
])
|
|
5491
5491
|
]));
|
|
5492
5492
|
}
|
|
5493
|
-
}), Pr = { class: "spacing-wrap" },
|
|
5493
|
+
}), Pr = { class: "spacing-wrap" }, Dr = { class: "spacing-max-icon" }, Ir = ["width", "height"], Br = ["d"], Rr = ["d"], $r = ["d"], Tr = ["d"], zr = { id: "margin-outer" }, Or = ["width", "height"], Fr = ["width", "height"], Wr = { id: "margin-inner" }, Nr = ["width", "height"], Jr = ["width", "height"], Mr = ["width", "height"], Lr = ["d"], Ur = ["d"], qr = ["d"], Hr = ["d"], Gr = { id: "padding-outer" }, Xr = ["width", "height"], Qr = ["width", "height"], Kr = { id: "padding-inner" }, Yr = ["width", "height"], Zr = ["width", "height"], ei = {
|
|
5494
5494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5495
5495
|
width: "100%",
|
|
5496
5496
|
height: "100%",
|
|
@@ -5526,11 +5526,11 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5526
5526
|
styleJson: {},
|
|
5527
5527
|
setStyle: { type: Function }
|
|
5528
5528
|
},
|
|
5529
|
-
setup(
|
|
5530
|
-
const e =
|
|
5531
|
-
|
|
5529
|
+
setup(u) {
|
|
5530
|
+
const e = u, t = k(), l = k(), { width: a, height: o } = Ue(t), { width: s, height: r } = Ue(l), i = k(!1), g = k(), p = k(), m = () => {
|
|
5531
|
+
i.value = !1, g.value = void 0, p.value = void 0;
|
|
5532
5532
|
}, f = (b) => {
|
|
5533
|
-
g.value = b, p.value = e.styleJson[b],
|
|
5533
|
+
g.value = b, p.value = e.styleJson[b], i.value = !0;
|
|
5534
5534
|
};
|
|
5535
5535
|
return (b, c) => (d(), y(n(U), {
|
|
5536
5536
|
title: "间距",
|
|
@@ -5546,7 +5546,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5546
5546
|
ref: t
|
|
5547
5547
|
}, [
|
|
5548
5548
|
V("div", Pr, [
|
|
5549
|
-
V("div",
|
|
5549
|
+
V("div", Dr, [
|
|
5550
5550
|
n(a) && n(o) ? (d(), A("svg", {
|
|
5551
5551
|
key: 0,
|
|
5552
5552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5650,7 +5650,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5650
5650
|
ry: "2",
|
|
5651
5651
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
|
5652
5652
|
}, null, 8, Fr),
|
|
5653
|
-
V("clipPath",
|
|
5653
|
+
V("clipPath", Wr, [
|
|
5654
5654
|
V("rect", {
|
|
5655
5655
|
x: "36",
|
|
5656
5656
|
y: "24",
|
|
@@ -5660,7 +5660,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5660
5660
|
rx: "2",
|
|
5661
5661
|
ry: "2",
|
|
5662
5662
|
style: { "pointer-events": "none" }
|
|
5663
|
-
}, null, 8,
|
|
5663
|
+
}, null, 8, Nr)
|
|
5664
5664
|
]),
|
|
5665
5665
|
V("rect", {
|
|
5666
5666
|
class: "stroke",
|
|
@@ -5674,7 +5674,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5674
5674
|
ry: "2",
|
|
5675
5675
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
|
5676
5676
|
}, null, 8, Jr)
|
|
5677
|
-
], 8,
|
|
5677
|
+
], 8, Ir)) : j("", !0),
|
|
5678
5678
|
V("div", {
|
|
5679
5679
|
class: H(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
|
|
5680
5680
|
onClick: c[4] || (c[4] = (_) => f("margin-top"))
|
|
@@ -5845,7 +5845,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5845
5845
|
(d(), A("svg", ei, ni)),
|
|
5846
5846
|
(d(), A("svg", li, si))
|
|
5847
5847
|
]),
|
|
5848
|
-
|
|
5848
|
+
i.value ? (d(), y(zn, {
|
|
5849
5849
|
key: 0,
|
|
5850
5850
|
name: g.value,
|
|
5851
5851
|
modelValue: p.value,
|
|
@@ -5864,8 +5864,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5864
5864
|
styleJson: {},
|
|
5865
5865
|
setStyle: { type: Function }
|
|
5866
5866
|
},
|
|
5867
|
-
setup(
|
|
5868
|
-
const e =
|
|
5867
|
+
setup(u) {
|
|
5868
|
+
const e = u, a = [
|
|
5869
5869
|
{
|
|
5870
5870
|
name: "width",
|
|
5871
5871
|
label: "宽(W)",
|
|
@@ -5935,7 +5935,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5935
5935
|
inline: ""
|
|
5936
5936
|
}, {
|
|
5937
5937
|
default: h(() => [
|
|
5938
|
-
(d(), A(T, null,
|
|
5938
|
+
(d(), A(T, null, W(a, (r) => v(n(J), {
|
|
5939
5939
|
name: r.name,
|
|
5940
5940
|
label: r.label,
|
|
5941
5941
|
setters: { name: r.setter },
|
|
@@ -5957,15 +5957,15 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5957
5957
|
styleJson: {},
|
|
5958
5958
|
setStyle: { type: Function }
|
|
5959
5959
|
},
|
|
5960
|
-
setup(
|
|
5961
|
-
const e =
|
|
5960
|
+
setup(u) {
|
|
5961
|
+
const e = u, t = k(), { width: l, height: a } = Ue(t), o = k(!1), s = k(), r = k(), i = [
|
|
5962
5962
|
{ label: "静态", value: "static" },
|
|
5963
5963
|
{ label: "相对", value: "relative" },
|
|
5964
5964
|
{ label: "绝对", value: "absolute" },
|
|
5965
5965
|
{ label: "固定", value: "fixed" },
|
|
5966
5966
|
{ label: "粘性", value: "sticky" }
|
|
5967
5967
|
], g = [
|
|
5968
|
-
{ label: "左上", svg:
|
|
5968
|
+
{ label: "左上", svg: Ia, value: "0% auto auto 0%" },
|
|
5969
5969
|
{ label: "右上", svg: Ba, value: "0% 0% auto auto" },
|
|
5970
5970
|
{ label: "左下", svg: Ra, value: "auto auto 0% 0%" },
|
|
5971
5971
|
{ label: "右下", svg: $a, value: "auto 0% 0% auto" },
|
|
@@ -5973,7 +5973,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5973
5973
|
{ label: "右", svg: za, value: "0% 0% 0% auto" },
|
|
5974
5974
|
{ label: "上", svg: Oa, value: "auto 0% 0% 0%" },
|
|
5975
5975
|
{ label: "下", svg: Fa, value: "0% 0% auto 0%" },
|
|
5976
|
-
{ label: "填充", svg:
|
|
5976
|
+
{ label: "填充", svg: Wa, value: "0% 0% 0% 0%" }
|
|
5977
5977
|
], p = S(() => (e.styleJson.inset || "").split(" ")), m = (b) => {
|
|
5978
5978
|
s.value = b, r.value = e.styleJson[b], o.value = !0;
|
|
5979
5979
|
}, f = () => {
|
|
@@ -5997,7 +5997,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
5997
5997
|
name: "position",
|
|
5998
5998
|
label: "定位",
|
|
5999
5999
|
setters: { name: "SelectSetter" },
|
|
6000
|
-
options:
|
|
6000
|
+
options: i,
|
|
6001
6001
|
variable: !1,
|
|
6002
6002
|
value: e.styleJson.position,
|
|
6003
6003
|
onChange: e.setStyle
|
|
@@ -6199,8 +6199,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6199
6199
|
styleJson: {},
|
|
6200
6200
|
setStyle: { type: Function }
|
|
6201
6201
|
},
|
|
6202
|
-
setup(
|
|
6203
|
-
const e =
|
|
6202
|
+
setup(u) {
|
|
6203
|
+
const e = u, t = [
|
|
6204
6204
|
{
|
|
6205
6205
|
name: "font-size",
|
|
6206
6206
|
label: "字号",
|
|
@@ -6249,7 +6249,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6249
6249
|
]
|
|
6250
6250
|
}
|
|
6251
6251
|
], l = [
|
|
6252
|
-
{ label: "左", value: "left", svg:
|
|
6252
|
+
{ label: "左", value: "left", svg: Na },
|
|
6253
6253
|
{ label: "中", value: "center", svg: Ja },
|
|
6254
6254
|
{ label: "右", value: "right", svg: Ma },
|
|
6255
6255
|
{ label: "两端", value: "justify", svg: La }
|
|
@@ -6277,13 +6277,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6277
6277
|
inline: ""
|
|
6278
6278
|
}, {
|
|
6279
6279
|
default: h(() => [
|
|
6280
|
-
(d(), A(T, null,
|
|
6281
|
-
name:
|
|
6282
|
-
label:
|
|
6283
|
-
setters: { name:
|
|
6284
|
-
options:
|
|
6280
|
+
(d(), A(T, null, W(t, (i) => v(n(J), {
|
|
6281
|
+
name: i.name,
|
|
6282
|
+
label: i.label,
|
|
6283
|
+
setters: { name: i.setter },
|
|
6284
|
+
options: i.options,
|
|
6285
6285
|
variable: !1,
|
|
6286
|
-
value: e.styleJson[
|
|
6286
|
+
value: e.styleJson[i.name],
|
|
6287
6287
|
onChange: s.setStyle
|
|
6288
6288
|
}, null, 8, ["name", "label", "setters", "options", "value", "onChange"])), 64))
|
|
6289
6289
|
]),
|
|
@@ -6342,12 +6342,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6342
6342
|
styleJson: {},
|
|
6343
6343
|
setStyle: { type: Function }
|
|
6344
6344
|
},
|
|
6345
|
-
setup(
|
|
6346
|
-
const e =
|
|
6345
|
+
setup(u) {
|
|
6346
|
+
const e = u, t = (i, g) => {
|
|
6347
6347
|
g ? e.setStyle("background-image", `url(${g})`) : e.setStyle("background-image", void 0);
|
|
6348
|
-
}, l = (
|
|
6348
|
+
}, l = (i) => {
|
|
6349
6349
|
const g = /^url\(([\w\W]+)\)$/;
|
|
6350
|
-
return
|
|
6350
|
+
return i?.match(g)?.[1];
|
|
6351
6351
|
}, a = [
|
|
6352
6352
|
{ label: "重复", value: "repeat", svg: Qa },
|
|
6353
6353
|
{ label: "水平重复", value: "repeat-x", svg: Ka },
|
|
@@ -6367,7 +6367,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6367
6367
|
{ label: "覆盖", value: "cover" },
|
|
6368
6368
|
{ label: "填充", value: "contain" }
|
|
6369
6369
|
];
|
|
6370
|
-
return (
|
|
6370
|
+
return (i, g) => (d(), y(n(U), {
|
|
6371
6371
|
title: "背景",
|
|
6372
6372
|
class: "v-sub-panel",
|
|
6373
6373
|
size: "small",
|
|
@@ -6453,22 +6453,33 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6453
6453
|
styleJson: {},
|
|
6454
6454
|
setStyle: { type: Function }
|
|
6455
6455
|
},
|
|
6456
|
-
setup(
|
|
6457
|
-
const e =
|
|
6456
|
+
setup(u) {
|
|
6457
|
+
const e = u, t = () => {
|
|
6458
|
+
const r = Object.keys(e.styleJson || {});
|
|
6459
|
+
return r.find((f) => f.startsWith("border-left")) ? "border-left" : r.find((f) => f.startsWith("border-top")) ? "border-top" : r.find((f) => f.startsWith("border-bottom")) ? "border-bottom" : r.find((f) => f.startsWith("border-right")) ? "border-right" : "border";
|
|
6460
|
+
}, l = k("border"), a = [
|
|
6458
6461
|
{ label: "全边框", svg: es, value: "border" },
|
|
6459
6462
|
{ label: "左边框", svg: ts, value: "border-left" },
|
|
6460
6463
|
{ label: "上边框", svg: ns, value: "border-top" },
|
|
6461
6464
|
{ label: "下边框", svg: ls, value: "border-bottom" },
|
|
6462
6465
|
{ label: "右边框", svg: as, value: "border-right" }
|
|
6463
|
-
],
|
|
6466
|
+
], o = [
|
|
6464
6467
|
{ label: "无", value: "none", svg: Pn },
|
|
6465
6468
|
{ label: "实线", value: "solid", svg: ss },
|
|
6466
6469
|
{ label: "虚线", value: "dashed", svg: os },
|
|
6467
6470
|
{ label: "点线", value: "dotted", svg: rs }
|
|
6468
|
-
],
|
|
6469
|
-
|
|
6471
|
+
], s = (r, i) => {
|
|
6472
|
+
l.value = i;
|
|
6470
6473
|
};
|
|
6471
|
-
return (
|
|
6474
|
+
return q(
|
|
6475
|
+
() => e.styleJson,
|
|
6476
|
+
() => {
|
|
6477
|
+
l.value = t();
|
|
6478
|
+
},
|
|
6479
|
+
{
|
|
6480
|
+
immediate: !0
|
|
6481
|
+
}
|
|
6482
|
+
), (r, i) => (d(), y(n(U), {
|
|
6472
6483
|
title: "边框",
|
|
6473
6484
|
class: "v-sub-panel",
|
|
6474
6485
|
size: "small",
|
|
@@ -6494,37 +6505,37 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6494
6505
|
label: "边框",
|
|
6495
6506
|
setters: { name: "TagSetter" },
|
|
6496
6507
|
variable: !1,
|
|
6497
|
-
options:
|
|
6498
|
-
value:
|
|
6499
|
-
onChange:
|
|
6508
|
+
options: a,
|
|
6509
|
+
value: l.value,
|
|
6510
|
+
onChange: s
|
|
6500
6511
|
}, null, 8, ["value"]),
|
|
6501
|
-
|
|
6512
|
+
l.value ? (d(), A(T, { key: 0 }, [
|
|
6502
6513
|
(d(), y(n(J), {
|
|
6503
|
-
name: `${
|
|
6504
|
-
key: `${
|
|
6514
|
+
name: `${l.value}-width`,
|
|
6515
|
+
key: `${l.value}-width`,
|
|
6505
6516
|
label: "宽度",
|
|
6506
6517
|
setters: { name: "SizeSetter" },
|
|
6507
6518
|
variable: !1,
|
|
6508
|
-
value: e.styleJson[`${
|
|
6519
|
+
value: e.styleJson[`${l.value}-width`],
|
|
6509
6520
|
onChange: e.setStyle
|
|
6510
6521
|
}, null, 8, ["name", "value", "onChange"])),
|
|
6511
6522
|
(d(), y(n(J), {
|
|
6512
|
-
name: `${
|
|
6513
|
-
key: `${
|
|
6523
|
+
name: `${l.value}-style`,
|
|
6524
|
+
key: `${l.value}-style`,
|
|
6514
6525
|
label: "样式",
|
|
6515
6526
|
setters: { name: "TagSetter" },
|
|
6516
|
-
options:
|
|
6527
|
+
options: o,
|
|
6517
6528
|
variable: !1,
|
|
6518
|
-
value: e.styleJson[`${
|
|
6529
|
+
value: e.styleJson[`${l.value}-style`],
|
|
6519
6530
|
onChange: e.setStyle
|
|
6520
6531
|
}, null, 8, ["name", "value", "onChange"])),
|
|
6521
6532
|
(d(), y(n(J), {
|
|
6522
|
-
name: `${
|
|
6523
|
-
key: `${
|
|
6533
|
+
name: `${l.value}-color`,
|
|
6534
|
+
key: `${l.value}-color`,
|
|
6524
6535
|
label: "颜色",
|
|
6525
6536
|
setters: { name: "ColorSetter" },
|
|
6526
6537
|
variable: !1,
|
|
6527
|
-
value: e.styleJson[`${
|
|
6538
|
+
value: e.styleJson[`${l.value}-color`],
|
|
6528
6539
|
onChange: e.setStyle
|
|
6529
6540
|
}, null, 8, ["name", "value", "onChange"]))
|
|
6530
6541
|
], 64)) : j("", !0)
|
|
@@ -6541,8 +6552,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6541
6552
|
styleJson: {},
|
|
6542
6553
|
setStyle: { type: Function }
|
|
6543
6554
|
},
|
|
6544
|
-
setup(
|
|
6545
|
-
const e =
|
|
6555
|
+
setup(u) {
|
|
6556
|
+
const e = u, t = [
|
|
6546
6557
|
{
|
|
6547
6558
|
label: "自动",
|
|
6548
6559
|
value: "auto",
|
|
@@ -6640,15 +6651,15 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6640
6651
|
props: {
|
|
6641
6652
|
isStyleCodeMode: { type: Boolean }
|
|
6642
6653
|
},
|
|
6643
|
-
setup(
|
|
6644
|
-
const e =
|
|
6654
|
+
setup(u) {
|
|
6655
|
+
const e = u, { selected: t } = ke(), l = S(() => {
|
|
6645
6656
|
const s = t.value?.model || null;
|
|
6646
6657
|
return ee(s) ? null : s;
|
|
6647
6658
|
}), a = S(
|
|
6648
6659
|
() => l.value?.getPropValue("style") || {}
|
|
6649
6660
|
), o = (s, r) => {
|
|
6650
|
-
const
|
|
6651
|
-
r !== void 0 ?
|
|
6661
|
+
const i = l.value?.getPropValue("style") || {};
|
|
6662
|
+
r !== void 0 ? i[s] = r : delete i[s], l.value?.setProp("style", i);
|
|
6652
6663
|
};
|
|
6653
6664
|
return (s, r) => e.isStyleCodeMode ? (d(), y(Cr, { key: 0 })) : (d(), y(n(M), {
|
|
6654
6665
|
key: `widget-style-${l.value?.id}`,
|
|
@@ -6707,8 +6718,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6707
6718
|
props: {
|
|
6708
6719
|
path: { type: Function }
|
|
6709
6720
|
},
|
|
6710
|
-
setup(
|
|
6711
|
-
const t =
|
|
6721
|
+
setup(u, { expose: e }) {
|
|
6722
|
+
const t = u, l = k(), a = k(Symbol()), { current: o, engine: s } = ie(), { width: r, height: i } = Ue(l), g = S(() => o.value && t.path ? t.path(o.value) : null), p = S(() => s.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
|
|
6712
6723
|
return e({
|
|
6713
6724
|
refresh: () => {
|
|
6714
6725
|
a.value = Symbol();
|
|
@@ -6722,7 +6733,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6722
6733
|
v(n(Tn), {
|
|
6723
6734
|
mode: p.value,
|
|
6724
6735
|
width: n(r),
|
|
6725
|
-
height: n(
|
|
6736
|
+
height: n(i)
|
|
6726
6737
|
}, {
|
|
6727
6738
|
default: h(() => [
|
|
6728
6739
|
g.value ? (d(), A("iframe", {
|
|
@@ -6740,7 +6751,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6740
6751
|
name: "NodePathWidget",
|
|
6741
6752
|
inheritAttrs: !1,
|
|
6742
6753
|
__name: "index",
|
|
6743
|
-
setup(
|
|
6754
|
+
setup(u) {
|
|
6744
6755
|
const { selected: e, designer: t } = ke(), l = S(() => (e.value?.path || []).slice(0).reverse()), a = (s) => {
|
|
6745
6756
|
t.value?.setSelected(s);
|
|
6746
6757
|
}, o = (s) => {
|
|
@@ -6752,12 +6763,12 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6752
6763
|
"separator-icon": n(ps)
|
|
6753
6764
|
}, {
|
|
6754
6765
|
default: h(() => [
|
|
6755
|
-
(d(!0), A(T, null,
|
|
6756
|
-
onClick: (g) => a(
|
|
6757
|
-
onMouseover: (g) => o(
|
|
6766
|
+
(d(!0), A(T, null, W(l.value, (i) => (d(), y(n(nl), {
|
|
6767
|
+
onClick: (g) => a(i),
|
|
6768
|
+
onMouseover: (g) => o(i)
|
|
6758
6769
|
}, {
|
|
6759
6770
|
default: h(() => [
|
|
6760
|
-
G(z(
|
|
6771
|
+
G(z(i.name), 1)
|
|
6761
6772
|
]),
|
|
6762
6773
|
_: 2
|
|
6763
6774
|
}, 1032, ["onClick", "onMouseover"]))), 256))
|
|
@@ -6768,7 +6779,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6768
6779
|
}), Pi = /* @__PURE__ */ E({
|
|
6769
6780
|
name: "SchemaWidget",
|
|
6770
6781
|
__name: "index",
|
|
6771
|
-
setup(
|
|
6782
|
+
setup(u) {
|
|
6772
6783
|
const { current: e } = ie(), t = k(), l = S(
|
|
6773
6784
|
() => JSON.stringify(e.value?.toDsl() || {}, null, 2)
|
|
6774
6785
|
), a = S(() => e.value ? e.value.name : ""), o = async () => {
|
|
@@ -6805,17 +6816,17 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6805
6816
|
_: 1
|
|
6806
6817
|
}, 8, ["title"]));
|
|
6807
6818
|
}
|
|
6808
|
-
}),
|
|
6819
|
+
}), Di = /* @__PURE__ */ E({
|
|
6809
6820
|
name: "SchemaWidget",
|
|
6810
6821
|
__name: "index",
|
|
6811
|
-
setup(
|
|
6822
|
+
setup(u) {
|
|
6812
6823
|
const { current: e, engine: t } = ie(), l = k(), a = k(""), o = S(() => e.value ? `$vtj/vue/${e.value.id}.vue` : ""), s = S(() => e.value ? e.value.name : "");
|
|
6813
6824
|
return q(
|
|
6814
6825
|
e,
|
|
6815
6826
|
async (r) => {
|
|
6816
|
-
const
|
|
6817
|
-
|
|
6818
|
-
|
|
6827
|
+
const i = t.project.value;
|
|
6828
|
+
i && r ? a.value = await t.service.genVueContent(
|
|
6829
|
+
i.toDsl(),
|
|
6819
6830
|
r.toDsl()
|
|
6820
6831
|
) : a.value = "";
|
|
6821
6832
|
},
|
|
@@ -6823,7 +6834,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6823
6834
|
immediate: !0,
|
|
6824
6835
|
deep: !0
|
|
6825
6836
|
}
|
|
6826
|
-
), (r,
|
|
6837
|
+
), (r, i) => (d(), y(n(U), {
|
|
6827
6838
|
class: "v-raw-widget",
|
|
6828
6839
|
title: s.value,
|
|
6829
6840
|
subtitle: o.value,
|
|
@@ -6844,14 +6855,14 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6844
6855
|
_: 1
|
|
6845
6856
|
}, 8, ["title", "subtitle"]));
|
|
6846
6857
|
}
|
|
6847
|
-
}),
|
|
6858
|
+
}), Ii = ["src"], Bi = /* @__PURE__ */ E({
|
|
6848
6859
|
name: "DocsWidget",
|
|
6849
6860
|
__name: "index",
|
|
6850
6861
|
props: {
|
|
6851
6862
|
url: { default: "//vtj.pro/help/index.html" }
|
|
6852
6863
|
},
|
|
6853
|
-
setup(
|
|
6854
|
-
const t =
|
|
6864
|
+
setup(u, { expose: e }) {
|
|
6865
|
+
const t = u, l = k();
|
|
6855
6866
|
let a = null;
|
|
6856
6867
|
const o = k(Symbol()), s = () => {
|
|
6857
6868
|
o.value = Symbol();
|
|
@@ -6864,7 +6875,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6864
6875
|
const r = () => {
|
|
6865
6876
|
a?.close();
|
|
6866
6877
|
};
|
|
6867
|
-
return e({ refresh: s }), (
|
|
6878
|
+
return e({ refresh: s }), (i, g) => (d(), y(n(U), {
|
|
6868
6879
|
class: "v-docs-widget",
|
|
6869
6880
|
size: "small",
|
|
6870
6881
|
fit: "",
|
|
@@ -6879,7 +6890,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6879
6890
|
ref: "frame",
|
|
6880
6891
|
src: t.url,
|
|
6881
6892
|
onLoad: r
|
|
6882
|
-
}, null, 40,
|
|
6893
|
+
}, null, 40, Ii))
|
|
6883
6894
|
]),
|
|
6884
6895
|
_: 1
|
|
6885
6896
|
}, 512));
|
|
@@ -6887,7 +6898,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6887
6898
|
}), On = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAEACAYAAADCyK/GAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfWmgXFWZ7Vq7bgKCYCvdiGmgAbEVxREEobsDoZFBBYJQdSohARQIIi0CIhigNWmRgKiAAyBDEAO5deo6MDWgoAR4NpOtgiL6WhRlVhsHJknu2eu9UzdIxnur6oy7zj5/s/f61re+fVfqDPvbhL+8Aq4qUNdkGPwbpf1BvB3AwwAeEngdgOsR8ieupuZ556MA8wnjo3gFUlbgvdqUk3ERpL3GQf4NyeusxXV47rHv4Jopz6bMwsM5roA3QMcLWEn6db2UBrcCemuP+X+78+vQ4kaM8Kc9zvXDB1ABb4ADWNRBT8k0o9Mlzk2Y5y8oXWeN+TYmYQkW8ZmEeH66gwp4A3SwaJWm3NQWlH6VsgZR/MxQ0LcAs8Q/O0xZ3RLDeQMscXE8tTUoEIy+jzALM9bmPoI3WEW34C+1JbiaT2Ucz8MXpIA3wIKE92H7U8AEukzQwf3N7mvWc2O/DrkEBrdgmPf2heInlV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+kJboUlHC2Qgw/tFehaAW+AXUvlyMCmtofFbhz7ZRgbYm6fzxBaZMPawY4o5Wl6BfwzwIFeA3W9DCba26A2TbEhAq/JMl+B70fIS7OM4bG9Amkq4H8Bpqlm2bECvQ2wexNmWufZIWDSpCxyS7T4YJqYHssrkKUC3gCzVLfM2PtqA6wb7W3IvQTGZrhFErqkFthW7eQkGH6uVyBvBbwB5q14WeONvVnem4wPMNfU3mjyh7KYihE+3ds8P9orUKwC3gCL1b+c0WdrfTyPvQzt3gL3BjBl7UR5k4j3o8WHypmMZ+UVGGf1enG8AhMqMENvQhT/OuReADYDsCnImyVcDYtLMMKlE2L4AV6BEirw/wBT9ySzG22TjAAAAABJRU5ErkJggg==", Ri = { class: "v-about-widget" }, $i = { class: "v-about-widget__logo" }, Ti = ["src"], zi = /* @__PURE__ */ V("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1), Oi = { class: "v-about-widget__version" }, Fi = /* @__PURE__ */ E({
|
|
6888
6899
|
name: "AboutWidget",
|
|
6889
6900
|
__name: "index",
|
|
6890
|
-
setup(
|
|
6901
|
+
setup(u) {
|
|
6891
6902
|
return (e, t) => (d(), A("div", Ri, [
|
|
6892
6903
|
V("div", $i, [
|
|
6893
6904
|
V("img", { src: n(On) }, null, 8, Ti)
|
|
@@ -6896,10 +6907,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6896
6907
|
V("div", Oi, "版本:" + z(n(js)), 1)
|
|
6897
6908
|
]));
|
|
6898
6909
|
}
|
|
6899
|
-
}),
|
|
6910
|
+
}), Wi = /* @__PURE__ */ E({
|
|
6900
6911
|
name: "ProjectConfigWidget",
|
|
6901
6912
|
__name: "index",
|
|
6902
|
-
setup(
|
|
6913
|
+
setup(u) {
|
|
6903
6914
|
const { project: e } = Re(), t = (l) => {
|
|
6904
6915
|
e.value?.setConfig(l);
|
|
6905
6916
|
};
|
|
@@ -6969,11 +6980,11 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
6969
6980
|
Previewer: ji,
|
|
6970
6981
|
NodePath: Ei,
|
|
6971
6982
|
Schema: Pi,
|
|
6972
|
-
Raw:
|
|
6983
|
+
Raw: Di,
|
|
6973
6984
|
Docs: Bi,
|
|
6974
6985
|
About: Fi,
|
|
6975
|
-
ProjectConfig:
|
|
6976
|
-
},
|
|
6986
|
+
ProjectConfig: Wi
|
|
6987
|
+
}, Ni = [
|
|
6977
6988
|
{
|
|
6978
6989
|
name: "Logo",
|
|
6979
6990
|
region: "Brand",
|
|
@@ -7825,13 +7836,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
7825
7836
|
], Hi = /* @__PURE__ */ E({
|
|
7826
7837
|
name: "StringSetter",
|
|
7827
7838
|
__name: "string",
|
|
7828
|
-
setup(
|
|
7839
|
+
setup(u) {
|
|
7829
7840
|
return (e, t) => (d(), y(n(ye), re({ clearable: "" }, e.$attrs), null, 16));
|
|
7830
7841
|
}
|
|
7831
7842
|
}), Gi = /* @__PURE__ */ E({
|
|
7832
7843
|
name: "BooleanSetter",
|
|
7833
7844
|
__name: "boolean",
|
|
7834
|
-
setup(
|
|
7845
|
+
setup(u) {
|
|
7835
7846
|
return (e, t) => (d(), y(n(cn), re(e.$attrs, {
|
|
7836
7847
|
"model-value": !!e.$attrs.modelValue
|
|
7837
7848
|
}), null, 16, ["model-value"]));
|
|
@@ -7844,28 +7855,28 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
7844
7855
|
context: {}
|
|
7845
7856
|
},
|
|
7846
7857
|
emits: ["change"],
|
|
7847
|
-
setup(
|
|
7848
|
-
const t = (
|
|
7858
|
+
setup(u, { emit: e }) {
|
|
7859
|
+
const t = (i = "") => ({
|
|
7849
7860
|
type: "JSExpression",
|
|
7850
|
-
value: Le(
|
|
7851
|
-
}), l =
|
|
7861
|
+
value: Le(i) ? i.value : i
|
|
7862
|
+
}), l = u, a = e, o = (i) => oe(i, l.context, !0), s = k(t(l.modelValue).value);
|
|
7852
7863
|
q(
|
|
7853
7864
|
() => l.modelValue,
|
|
7854
|
-
(
|
|
7855
|
-
s.value = t(
|
|
7865
|
+
(i) => {
|
|
7866
|
+
s.value = t(i).value;
|
|
7856
7867
|
},
|
|
7857
7868
|
{
|
|
7858
7869
|
immediate: !0
|
|
7859
7870
|
}
|
|
7860
7871
|
);
|
|
7861
|
-
const r = (
|
|
7872
|
+
const r = (i) => {
|
|
7862
7873
|
const g = {
|
|
7863
7874
|
type: "JSExpression",
|
|
7864
|
-
value:
|
|
7875
|
+
value: i
|
|
7865
7876
|
};
|
|
7866
7877
|
o(g) && a("change", g);
|
|
7867
7878
|
};
|
|
7868
|
-
return (
|
|
7879
|
+
return (i, g) => (d(), y(n(ye), {
|
|
7869
7880
|
class: "v-expression-setter",
|
|
7870
7881
|
modelValue: s.value,
|
|
7871
7882
|
"onUpdate:modelValue": g[0] || (g[0] = (p) => s.value = p),
|
|
@@ -7886,11 +7897,11 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
7886
7897
|
props: {
|
|
7887
7898
|
options: { default: () => [] }
|
|
7888
7899
|
},
|
|
7889
|
-
setup(
|
|
7890
|
-
const e =
|
|
7900
|
+
setup(u) {
|
|
7901
|
+
const e = u;
|
|
7891
7902
|
return (t, l) => (d(), y(n(al), re({ clearable: "" }, t.$attrs), {
|
|
7892
7903
|
default: h(() => [
|
|
7893
|
-
(d(!0), A(T, null,
|
|
7904
|
+
(d(!0), A(T, null, W(e.options, (a) => (d(), y(n(sl), re({
|
|
7894
7905
|
key: a.label,
|
|
7895
7906
|
ref_for: !0
|
|
7896
7907
|
}, a), null, 16))), 128))
|
|
@@ -7905,8 +7916,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
7905
7916
|
modelValue: {}
|
|
7906
7917
|
},
|
|
7907
7918
|
emits: ["change"],
|
|
7908
|
-
setup(
|
|
7909
|
-
const t =
|
|
7919
|
+
setup(u, { emit: e }) {
|
|
7920
|
+
const t = u, l = e, a = S(() => Le(t.modelValue) ? void 0 : Number(t.modelValue || 0)), o = (s) => {
|
|
7910
7921
|
l("change", s);
|
|
7911
7922
|
};
|
|
7912
7923
|
return (s, r) => (d(), y(n(ol), re({
|
|
@@ -7918,7 +7929,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
7918
7929
|
}), eu = /* @__PURE__ */ E({
|
|
7919
7930
|
name: "ColorSetter",
|
|
7920
7931
|
__name: "color",
|
|
7921
|
-
setup(
|
|
7932
|
+
setup(u) {
|
|
7922
7933
|
return (e, t) => (d(), y(n(rl), en(tn(e.$attrs)), null, 16));
|
|
7923
7934
|
}
|
|
7924
7935
|
}), tu = /* @__PURE__ */ E({
|
|
@@ -7929,10 +7940,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
7929
7940
|
type: { default: "JSON" }
|
|
7930
7941
|
},
|
|
7931
7942
|
emits: ["change"],
|
|
7932
|
-
setup(
|
|
7933
|
-
const t =
|
|
7943
|
+
setup(u, { emit: e }) {
|
|
7944
|
+
const t = u, l = k(), a = k(
|
|
7934
7945
|
typeof t.modelValue == "object" ? JSON.stringify(t.modelValue, null, 2) : void 0
|
|
7935
|
-
), o = S(() => !!a.value), s = k(!1), r = e,
|
|
7946
|
+
), o = S(() => !!a.value), s = k(!1), r = e, i = (f) => {
|
|
7936
7947
|
let b = !0;
|
|
7937
7948
|
try {
|
|
7938
7949
|
const c = JSON.parse(f);
|
|
@@ -7953,7 +7964,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
7953
7964
|
const f = l.value?.getEditor();
|
|
7954
7965
|
if (f) {
|
|
7955
7966
|
const b = f.getValue();
|
|
7956
|
-
|
|
7967
|
+
i(b) && (a.value = b, r("change", JSON.parse(b)), s.value = !1);
|
|
7957
7968
|
}
|
|
7958
7969
|
}, p = () => {
|
|
7959
7970
|
a.value = "", r("change", void 0), s.value = !1;
|
|
@@ -8018,8 +8029,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8018
8029
|
}) }
|
|
8019
8030
|
},
|
|
8020
8031
|
emits: ["change"],
|
|
8021
|
-
setup(
|
|
8022
|
-
const t =
|
|
8032
|
+
setup(u, { emit: e }) {
|
|
8033
|
+
const t = u, l = k(), a = k(t.modelValue.value), o = k(!1), s = S(() => !!a.value), r = e, i = () => {
|
|
8023
8034
|
const m = l.value?.getEditor();
|
|
8024
8035
|
if (m) {
|
|
8025
8036
|
const f = m.getValue(), b = {
|
|
@@ -8052,7 +8063,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8052
8063
|
cancel: "",
|
|
8053
8064
|
submit: "",
|
|
8054
8065
|
clear: "",
|
|
8055
|
-
onSubmit:
|
|
8066
|
+
onSubmit: i,
|
|
8056
8067
|
onClear: g
|
|
8057
8068
|
}, {
|
|
8058
8069
|
extra: h(() => [
|
|
@@ -8086,14 +8097,14 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8086
8097
|
props: {
|
|
8087
8098
|
options: { default: () => [] }
|
|
8088
8099
|
},
|
|
8089
|
-
setup(
|
|
8090
|
-
const e =
|
|
8100
|
+
setup(u) {
|
|
8101
|
+
const e = u;
|
|
8091
8102
|
return (t, l) => (d(), y(n(sn), re({
|
|
8092
8103
|
class: "v-radio-setter",
|
|
8093
8104
|
size: "small"
|
|
8094
8105
|
}, t.$attrs), {
|
|
8095
8106
|
default: h(() => [
|
|
8096
|
-
(d(!0), A(T, null,
|
|
8107
|
+
(d(!0), A(T, null, W(e.options, (a) => (d(), y(n(Ke), {
|
|
8097
8108
|
label: a.label,
|
|
8098
8109
|
value: a.value,
|
|
8099
8110
|
title: a.label
|
|
@@ -8120,21 +8131,21 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8120
8131
|
modelValue: {}
|
|
8121
8132
|
},
|
|
8122
8133
|
emits: ["update:modelValue", "change"],
|
|
8123
|
-
setup(
|
|
8124
|
-
const t =
|
|
8134
|
+
setup(u, { emit: e }) {
|
|
8135
|
+
const t = u, l = e, a = (o) => {
|
|
8125
8136
|
o.value === t.modelValue ? (l("update:modelValue", void 0), l("change", void 0)) : (l("update:modelValue", o.value), l("change", o.value));
|
|
8126
8137
|
};
|
|
8127
8138
|
return (o, s) => (d(), A("div", re({
|
|
8128
8139
|
class: "v-tag-setter",
|
|
8129
8140
|
size: "small"
|
|
8130
8141
|
}, o.$attrs), [
|
|
8131
|
-
(d(!0), A(T, null,
|
|
8142
|
+
(d(!0), A(T, null, W(t.options, (r) => (d(), A("span", {
|
|
8132
8143
|
label: r.value,
|
|
8133
8144
|
title: r.label,
|
|
8134
8145
|
class: H({
|
|
8135
8146
|
"is-active": t.modelValue === r.value
|
|
8136
8147
|
}),
|
|
8137
|
-
onClick: (
|
|
8148
|
+
onClick: (i) => a(r)
|
|
8138
8149
|
}, [
|
|
8139
8150
|
r.svg ? (d(), y(n(xe), {
|
|
8140
8151
|
key: 0,
|
|
@@ -8153,26 +8164,26 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8153
8164
|
modelValue: {}
|
|
8154
8165
|
},
|
|
8155
8166
|
emits: ["change"],
|
|
8156
|
-
setup(
|
|
8157
|
-
const t =
|
|
8158
|
-
a.value = !!Number(
|
|
8167
|
+
setup(u, { emit: e }) {
|
|
8168
|
+
const t = u, l = e, a = k(!0), o = S(() => a.value ? "px" : void 0), s = k(t.modelValue), r = (i) => {
|
|
8169
|
+
a.value = !!Number(i);
|
|
8159
8170
|
};
|
|
8160
|
-
return q(s, (
|
|
8161
|
-
l("change",
|
|
8171
|
+
return q(s, (i) => {
|
|
8172
|
+
l("change", i);
|
|
8162
8173
|
}), q(
|
|
8163
8174
|
() => t.modelValue,
|
|
8164
|
-
(
|
|
8165
|
-
|
|
8175
|
+
(i) => {
|
|
8176
|
+
i && (a.value = i.endsWith("px"), s.value = i);
|
|
8166
8177
|
},
|
|
8167
8178
|
{ immediate: !0 }
|
|
8168
|
-
), (
|
|
8179
|
+
), (i, g) => (d(), y(n(vn), re({
|
|
8169
8180
|
clearable: "",
|
|
8170
8181
|
unit: o.value,
|
|
8171
8182
|
"with-unit": !!o.value,
|
|
8172
8183
|
modelValue: s.value,
|
|
8173
8184
|
"onUpdate:modelValue": g[0] || (g[0] = (p) => s.value = p),
|
|
8174
8185
|
onChange: r
|
|
8175
|
-
},
|
|
8186
|
+
}, i.$attrs), null, 16, ["unit", "with-unit", "modelValue"]));
|
|
8176
8187
|
}
|
|
8177
8188
|
}), ou = { class: "v-image-setter__plus" }, ru = /* @__PURE__ */ E({
|
|
8178
8189
|
name: "ImageSetter",
|
|
@@ -8182,24 +8193,24 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8182
8193
|
limit: { default: 1 }
|
|
8183
8194
|
},
|
|
8184
8195
|
emits: ["change", "update:modelValue"],
|
|
8185
|
-
setup(
|
|
8186
|
-
const t =
|
|
8187
|
-
a.value = [{ name:
|
|
8196
|
+
setup(u, { emit: e }) {
|
|
8197
|
+
const t = u, l = e, a = k([]), o = S(() => a.value.length < t.limit), s = (i) => i.type.includes("image") ? (yl(i).then((g) => {
|
|
8198
|
+
a.value = [{ name: i.name, url: g }];
|
|
8188
8199
|
}), !1) : (tt.error("只能上传图片"), !1), r = () => {
|
|
8189
8200
|
a.value = [];
|
|
8190
8201
|
};
|
|
8191
8202
|
return q(
|
|
8192
8203
|
() => t.modelValue,
|
|
8193
|
-
(
|
|
8194
|
-
a.value =
|
|
8204
|
+
(i) => {
|
|
8205
|
+
a.value = i ? [{ name: "", url: i }] : [];
|
|
8195
8206
|
},
|
|
8196
8207
|
{
|
|
8197
8208
|
immediate: !0
|
|
8198
8209
|
}
|
|
8199
8210
|
), q(a, () => {
|
|
8200
|
-
const
|
|
8201
|
-
l("change",
|
|
8202
|
-
}), (
|
|
8211
|
+
const i = a.value[0]?.url;
|
|
8212
|
+
l("change", i), l("update:modelValue", i);
|
|
8213
|
+
}), (i, g) => (d(), y(n(il), re({
|
|
8203
8214
|
class: ["v-image-setter", { "v-image-setter--addable": o.value }],
|
|
8204
8215
|
"list-type": "picture-card",
|
|
8205
8216
|
limit: 1,
|
|
@@ -8209,7 +8220,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8209
8220
|
"before-upload": s,
|
|
8210
8221
|
"auto-upload": !0,
|
|
8211
8222
|
"on-remove": r
|
|
8212
|
-
},
|
|
8223
|
+
}, i.$attrs), {
|
|
8213
8224
|
default: h(() => [
|
|
8214
8225
|
V("span", ou, [
|
|
8215
8226
|
v(n(xe), { icon: n(ks) }, null, 8, ["icon"])
|
|
@@ -8226,8 +8237,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8226
8237
|
sections: { default: 4 }
|
|
8227
8238
|
},
|
|
8228
8239
|
emits: ["change"],
|
|
8229
|
-
setup(
|
|
8230
|
-
const t =
|
|
8240
|
+
setup(u, { emit: e }) {
|
|
8241
|
+
const t = u, l = e, a = k(new Array(t.sections).fill(""));
|
|
8231
8242
|
q(
|
|
8232
8243
|
() => t.modelValue,
|
|
8233
8244
|
(s) => {
|
|
@@ -8239,10 +8250,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8239
8250
|
l("change", a.value.join(" ").trim());
|
|
8240
8251
|
};
|
|
8241
8252
|
return (s, r) => (d(), A("div", iu, [
|
|
8242
|
-
(d(!0), A(T, null,
|
|
8243
|
-
name:
|
|
8244
|
-
modelValue: a.value[
|
|
8245
|
-
"onUpdate:modelValue": (g) => a.value[
|
|
8253
|
+
(d(!0), A(T, null, W(t.sections, (i) => (d(), y(Fn, {
|
|
8254
|
+
name: i - 1,
|
|
8255
|
+
modelValue: a.value[i - 1],
|
|
8256
|
+
"onUpdate:modelValue": (g) => a.value[i - 1] = g,
|
|
8246
8257
|
onChange: o,
|
|
8247
8258
|
class: "v-section-setter__item"
|
|
8248
8259
|
}, null, 8, ["name", "modelValue", "onUpdate:modelValue"]))), 256))
|
|
@@ -8255,8 +8266,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8255
8266
|
modelValue: { default: void 0 }
|
|
8256
8267
|
},
|
|
8257
8268
|
emits: ["change", "update:modelValue"],
|
|
8258
|
-
setup(
|
|
8259
|
-
const t =
|
|
8269
|
+
setup(u, { emit: e }) {
|
|
8270
|
+
const t = u, l = e, a = k();
|
|
8260
8271
|
q(
|
|
8261
8272
|
() => t.modelValue,
|
|
8262
8273
|
(s) => {
|
|
@@ -8272,7 +8283,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
|
|
|
8272
8283
|
return (s, r) => (d(), A("div", cu, [
|
|
8273
8284
|
v(n(ul), re({ size: "small" }, s.$attrs, {
|
|
8274
8285
|
modelValue: a.value,
|
|
8275
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
8286
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i)
|
|
8276
8287
|
}), null, 16, ["modelValue"]),
|
|
8277
8288
|
v(n(xe), {
|
|
8278
8289
|
onClick: o,
|
|
@@ -8443,7 +8454,7 @@ class vu {
|
|
|
8443
8454
|
}
|
|
8444
8455
|
createWidgets() {
|
|
8445
8456
|
const e = {};
|
|
8446
|
-
for (const t of
|
|
8457
|
+
for (const t of Ni)
|
|
8447
8458
|
e[t.name] = t;
|
|
8448
8459
|
return e;
|
|
8449
8460
|
}
|
|
@@ -8474,7 +8485,7 @@ class vu {
|
|
|
8474
8485
|
Ce.warn(`widget '${e}' is not found`);
|
|
8475
8486
|
return;
|
|
8476
8487
|
}
|
|
8477
|
-
|
|
8488
|
+
Dt(l, t), t.component && (l.component = t.component);
|
|
8478
8489
|
}
|
|
8479
8490
|
/**
|
|
8480
8491
|
* 根据区域名称获取区域内的器件配置
|
|
@@ -8489,7 +8500,7 @@ class vu {
|
|
|
8489
8500
|
).map((a, o) => (a.order = a.order ?? o, a)).sort((a, o) => (a.order ?? 0) - (o.order ?? 0)) : l;
|
|
8490
8501
|
}
|
|
8491
8502
|
}
|
|
8492
|
-
const
|
|
8503
|
+
const Wn = new vu();
|
|
8493
8504
|
class gu {
|
|
8494
8505
|
constructor(e = Ji) {
|
|
8495
8506
|
this.deps = e;
|
|
@@ -8586,17 +8597,17 @@ class hu {
|
|
|
8586
8597
|
Ce.warn(`setter '${e}' is not found`);
|
|
8587
8598
|
return;
|
|
8588
8599
|
}
|
|
8589
|
-
|
|
8600
|
+
Dt(l, t), t.component && (l.component = t.component);
|
|
8590
8601
|
}
|
|
8591
8602
|
getByType(e) {
|
|
8592
8603
|
return Object.values(this.setters).filter((l) => l.type === e).map((l) => l.name);
|
|
8593
8604
|
}
|
|
8594
8605
|
}
|
|
8595
8606
|
const Ze = new hu();
|
|
8596
|
-
function bu(
|
|
8607
|
+
function bu(u) {
|
|
8597
8608
|
return new Promise((e, t) => {
|
|
8598
8609
|
const l = ln(To, {
|
|
8599
|
-
slots:
|
|
8610
|
+
slots: u,
|
|
8600
8611
|
onClose: () => {
|
|
8601
8612
|
l.unmount(), t(null);
|
|
8602
8613
|
},
|
|
@@ -8674,9 +8685,9 @@ class yu {
|
|
|
8674
8685
|
}
|
|
8675
8686
|
async getDropSlot(e) {
|
|
8676
8687
|
if (!e) return;
|
|
8677
|
-
const { engine: t, dropping: l } = this, a = l.value ? this.getVueInstance(l.value, e.id) : null, o = a?.$vtjDynamicSlots ? a.$vtjDynamicSlots() : [], s = t.assets, r = s.componentMap,
|
|
8678
|
-
if (!
|
|
8679
|
-
const p = (
|
|
8688
|
+
const { engine: t, dropping: l } = this, a = l.value ? this.getVueInstance(l.value, e.id) : null, o = a?.$vtjDynamicSlots ? a.$vtjDynamicSlots() : [], s = t.assets, r = s.componentMap, i = await s.getBlockMaterial(e.from) || r.get(e.name);
|
|
8689
|
+
if (!i?.slots && o.length === 0) return;
|
|
8690
|
+
const p = (i?.slots || ["default"]).concat(o).map((f) => typeof f == "string" ? {
|
|
8680
8691
|
name: f,
|
|
8681
8692
|
params: []
|
|
8682
8693
|
} : {
|
|
@@ -8701,24 +8712,24 @@ class yu {
|
|
|
8701
8712
|
e.preventDefault();
|
|
8702
8713
|
const { engine: t, dragging: l, dropping: a, draggingNode: o } = this, s = t.current.value, r = this.getHelper(e);
|
|
8703
8714
|
if (!s || !l || !a.value || !r) return;
|
|
8704
|
-
const
|
|
8705
|
-
if (!await this.allowDrop(
|
|
8715
|
+
const i = r.model, g = a.value.type;
|
|
8716
|
+
if (!await this.allowDrop(i, g)) return;
|
|
8706
8717
|
let p;
|
|
8707
8718
|
if (o)
|
|
8708
8719
|
p = o;
|
|
8709
8720
|
else {
|
|
8710
8721
|
const m = this.createNodeDsl(l);
|
|
8711
|
-
p = new
|
|
8722
|
+
p = new Nt(m);
|
|
8712
8723
|
}
|
|
8713
|
-
if (ee(
|
|
8724
|
+
if (ee(i))
|
|
8714
8725
|
o ? (delete p.slot, s.move(p, void 0, "inner")) : s.addNode(p, void 0, g);
|
|
8715
8726
|
else {
|
|
8716
|
-
const m = await this.getDropSlot(g === "inner" ?
|
|
8727
|
+
const m = await this.getDropSlot(g === "inner" ? i : i.parent);
|
|
8717
8728
|
if (m === null) {
|
|
8718
8729
|
this.dropping.value = null;
|
|
8719
8730
|
return;
|
|
8720
8731
|
}
|
|
8721
|
-
p.slot = m, o ? s.move(p,
|
|
8732
|
+
p.slot = m, o ? s.move(p, i, g) : s.addNode(p, i, g);
|
|
8722
8733
|
}
|
|
8723
8734
|
this.dropping.value = null, t.simulator.refresh(), t.assets.clearCaches();
|
|
8724
8735
|
}
|
|
@@ -8739,7 +8750,7 @@ class yu {
|
|
|
8739
8750
|
}
|
|
8740
8751
|
getNodeByElement(e) {
|
|
8741
8752
|
const t = e.__vtj__ ?? "";
|
|
8742
|
-
return
|
|
8753
|
+
return Nt.nodes[t] || null;
|
|
8743
8754
|
}
|
|
8744
8755
|
getDropType(e, t, l) {
|
|
8745
8756
|
const { left: a, top: o, width: s, height: r } = e;
|
|
@@ -8870,9 +8881,9 @@ class yu {
|
|
|
8870
8881
|
if (ee(e)) return !0;
|
|
8871
8882
|
if (o && e.id === o.id || o && o.isChild(e))
|
|
8872
8883
|
return !1;
|
|
8873
|
-
const r = a.assets.componentMap,
|
|
8884
|
+
const r = a.assets.componentMap, i = t !== "inner" && e.parent || e, g = await a.assets.getBlockMaterial(i.from) || r.get(i.name);
|
|
8874
8885
|
if (!g) return !1;
|
|
8875
|
-
const { parentIncludes: p = !0, name: m } = l, { childIncludes: f = !0 } = g, b = p === !0 || Array.isArray(p) && p.includes(
|
|
8886
|
+
const { parentIncludes: p = !0, name: m } = l, { childIncludes: f = !0 } = g, b = p === !0 || Array.isArray(p) && p.includes(i.name), c = f === !0 || Array.isArray(f) && f.includes(m);
|
|
8876
8887
|
return b && c;
|
|
8877
8888
|
}
|
|
8878
8889
|
dispose() {
|
|
@@ -8901,17 +8912,17 @@ class _u {
|
|
|
8901
8912
|
}
|
|
8902
8913
|
e.use(this.provider);
|
|
8903
8914
|
const s = Object.entries(t);
|
|
8904
|
-
Object.assign(e.config.globalProperties, l), s.forEach(([r,
|
|
8905
|
-
if (typeof
|
|
8915
|
+
Object.assign(e.config.globalProperties, l), s.forEach(([r, i]) => {
|
|
8916
|
+
if (typeof i == "function" || typeof i.install == "function") {
|
|
8906
8917
|
let g = {};
|
|
8907
8918
|
const p = o[r];
|
|
8908
|
-
p && (g.locale = p), e?.use(
|
|
8919
|
+
p && (g.locale = p), e?.use(i, g);
|
|
8909
8920
|
}
|
|
8910
8921
|
});
|
|
8911
8922
|
}
|
|
8912
8923
|
render(e) {
|
|
8913
|
-
const { window: t, container: l, library: a, Vue: o, components: s, apis: r } = this.env,
|
|
8914
|
-
|
|
8924
|
+
const { window: t, container: l, library: a, Vue: o, components: s, apis: r } = this.env, i = t.document.createElement("div");
|
|
8925
|
+
i.id = "app", l.appendChild(i), this.dsl = o.reactive(e.toDsl());
|
|
8915
8926
|
const { renderer: g, context: p } = this.provider.createDslRenderer(this.dsl, {
|
|
8916
8927
|
window: t,
|
|
8917
8928
|
mode: yn.Design,
|
|
@@ -8926,7 +8937,7 @@ class _u {
|
|
|
8926
8937
|
});
|
|
8927
8938
|
this.app = o.createApp(m), this.install(this.app);
|
|
8928
8939
|
try {
|
|
8929
|
-
this.app.mount(
|
|
8940
|
+
this.app.mount(i);
|
|
8930
8941
|
} catch (f) {
|
|
8931
8942
|
ne(f.message || "未知错误", "运行时错误"), console.error(f);
|
|
8932
8943
|
}
|
|
@@ -8998,7 +9009,7 @@ class wu extends bn {
|
|
|
8998
9009
|
scripts: o,
|
|
8999
9010
|
css: s,
|
|
9000
9011
|
materials: r,
|
|
9001
|
-
libraryExports:
|
|
9012
|
+
libraryExports: i,
|
|
9002
9013
|
materialExports: g,
|
|
9003
9014
|
materialMapLibrary: p,
|
|
9004
9015
|
libraryLocaleMap: m
|
|
@@ -9020,14 +9031,14 @@ class wu extends bn {
|
|
|
9020
9031
|
background: #fff;
|
|
9021
9032
|
}
|
|
9022
9033
|
</style>
|
|
9023
|
-
${
|
|
9034
|
+
${Wl(s)}
|
|
9024
9035
|
${Mt(o)}
|
|
9025
9036
|
${Mt(r)}
|
|
9026
9037
|
</head>
|
|
9027
9038
|
<body>
|
|
9028
9039
|
</body>
|
|
9029
9040
|
<script>
|
|
9030
|
-
__simulator__.emitReady(${JSON.stringify(
|
|
9041
|
+
__simulator__.emitReady(${JSON.stringify(i)},
|
|
9031
9042
|
${JSON.stringify(g)},
|
|
9032
9043
|
${JSON.stringify(p)},
|
|
9033
9044
|
${JSON.stringify(m)}
|
|
@@ -9038,7 +9049,7 @@ class wu extends bn {
|
|
|
9038
9049
|
}
|
|
9039
9050
|
async emitReady(e = [], t = [], l = {}, a = {}) {
|
|
9040
9051
|
this.renderer?.dispose(), this.renderer = null;
|
|
9041
|
-
const o = this.contentWindow, { assets: s, service: r, current:
|
|
9052
|
+
const o = this.contentWindow, { assets: s, service: r, current: i, provider: g } = this.engine, p = g.materials || {}, m = [];
|
|
9042
9053
|
for (const b of t) {
|
|
9043
9054
|
const c = p[b] ? (await p[b]()).default : o[b];
|
|
9044
9055
|
m.push(c);
|
|
@@ -9050,30 +9061,30 @@ class wu extends bn {
|
|
|
9050
9061
|
m,
|
|
9051
9062
|
a
|
|
9052
9063
|
);
|
|
9053
|
-
this.renderer = new _u(f, r, g, this.designer.value),
|
|
9064
|
+
this.renderer = new _u(f, r, g, this.designer.value), i.value && this.renderer.render(i.value), this.triggerReady();
|
|
9054
9065
|
}
|
|
9055
9066
|
createEnv(e = [], t = {}, l = [], a = {}) {
|
|
9056
|
-
const o = this.contentWindow, { engine: s } = this, { project: r, assets:
|
|
9057
|
-
Object.entries(a).forEach(([C,
|
|
9058
|
-
m[C] = o[
|
|
9067
|
+
const o = this.contentWindow, { engine: s } = this, { project: r, assets: i, provider: g } = s, p = e.reduce((C, I) => (C[I] = o[I], C), {}), m = {};
|
|
9068
|
+
Object.entries(a).forEach(([C, I]) => {
|
|
9069
|
+
m[C] = o[I];
|
|
9059
9070
|
});
|
|
9060
|
-
const f = {}, { groups: b, componentMap: c } =
|
|
9071
|
+
const f = {}, { groups: b, componentMap: c } = i;
|
|
9061
9072
|
for (const C of b.value) {
|
|
9062
|
-
const
|
|
9073
|
+
const I = C.names || [];
|
|
9063
9074
|
if (C.name === yt)
|
|
9064
|
-
|
|
9065
|
-
const $ = c.get(O),
|
|
9075
|
+
I.forEach((O) => {
|
|
9076
|
+
const $ = c.get(O), D = $?.package || "", R = Cl[D], P = p[R];
|
|
9066
9077
|
P && $ && (f[O] = Lt($, P));
|
|
9067
9078
|
});
|
|
9068
9079
|
else {
|
|
9069
9080
|
const O = p[t[C.library || ""]];
|
|
9070
|
-
O &&
|
|
9071
|
-
const
|
|
9072
|
-
|
|
9081
|
+
O && I.forEach(($) => {
|
|
9082
|
+
const D = c.get($);
|
|
9083
|
+
D ? f[$] = Lt(D, O) : f[$] = O[$];
|
|
9073
9084
|
});
|
|
9074
9085
|
}
|
|
9075
9086
|
}
|
|
9076
|
-
const { adapter: _, globals: w } = g, x =
|
|
9087
|
+
const { adapter: _, globals: w } = g, x = Nl(
|
|
9077
9088
|
r.value?.apis,
|
|
9078
9089
|
r.value?.meta,
|
|
9079
9090
|
_
|
|
@@ -9123,7 +9134,7 @@ class ku {
|
|
|
9123
9134
|
parseGroups(e) {
|
|
9124
9135
|
const t = [];
|
|
9125
9136
|
for (let l of e) {
|
|
9126
|
-
const { categories: a, components: o, label: s, name: r, library:
|
|
9137
|
+
const { categories: a, components: o, label: s, name: r, library: i } = l;
|
|
9127
9138
|
if (!a || !o)
|
|
9128
9139
|
continue;
|
|
9129
9140
|
const g = o.filter((b) => !!b.package).map((b) => b.name), p = a.map(
|
|
@@ -9133,7 +9144,7 @@ class ku {
|
|
|
9133
9144
|
label: s || r,
|
|
9134
9145
|
count: m,
|
|
9135
9146
|
names: g,
|
|
9136
|
-
library:
|
|
9147
|
+
library: i,
|
|
9137
9148
|
children: p
|
|
9138
9149
|
};
|
|
9139
9150
|
t.push(f);
|
|
@@ -9156,7 +9167,7 @@ class ku {
|
|
|
9156
9167
|
}
|
|
9157
9168
|
if (!l) return null;
|
|
9158
9169
|
l.name = t || l.name;
|
|
9159
|
-
const { id: a, name: o, slots: s, props: r, emits:
|
|
9170
|
+
const { id: a, name: o, slots: s, props: r, emits: i } = l, g = (m) => {
|
|
9160
9171
|
const f = Array.isArray(m) ? m : [m];
|
|
9161
9172
|
let b = [];
|
|
9162
9173
|
for (const c of f)
|
|
@@ -9176,7 +9187,7 @@ class ku {
|
|
|
9176
9187
|
type: m.type,
|
|
9177
9188
|
setters: g(m.type)
|
|
9178
9189
|
}),
|
|
9179
|
-
events:
|
|
9190
|
+
events: i,
|
|
9180
9191
|
slots: s,
|
|
9181
9192
|
from: e
|
|
9182
9193
|
};
|
|
@@ -9186,7 +9197,7 @@ class ku {
|
|
|
9186
9197
|
this.caches = {};
|
|
9187
9198
|
}
|
|
9188
9199
|
}
|
|
9189
|
-
const
|
|
9200
|
+
const Nn = Symbol("VtjEngine");
|
|
9190
9201
|
class oc extends bn {
|
|
9191
9202
|
constructor(e) {
|
|
9192
9203
|
super(), this.options = e;
|
|
@@ -9197,7 +9208,7 @@ class oc extends bn {
|
|
|
9197
9208
|
globals: o = {},
|
|
9198
9209
|
dependencies: s,
|
|
9199
9210
|
materials: r,
|
|
9200
|
-
materialPath:
|
|
9211
|
+
materialPath: i = "./",
|
|
9201
9212
|
adapter: g,
|
|
9202
9213
|
install: p
|
|
9203
9214
|
} = this.options;
|
|
@@ -9208,12 +9219,12 @@ class oc extends bn {
|
|
|
9208
9219
|
service: l,
|
|
9209
9220
|
dependencies: s,
|
|
9210
9221
|
materials: r,
|
|
9211
|
-
materialPath:
|
|
9222
|
+
materialPath: i,
|
|
9212
9223
|
adapter: g,
|
|
9213
9224
|
install: p
|
|
9214
9225
|
}), this.assets = new ku(this.service, this.provider), this.simulator = new wu({
|
|
9215
9226
|
engine: this,
|
|
9216
|
-
materialPath:
|
|
9227
|
+
materialPath: i
|
|
9217
9228
|
}), this.bindEvents(), this.init(a), et(this.render.bind(this)), nn(this.dispose.bind(this));
|
|
9218
9229
|
}
|
|
9219
9230
|
app;
|
|
@@ -9241,12 +9252,12 @@ class oc extends bn {
|
|
|
9241
9252
|
const e = n(this.container);
|
|
9242
9253
|
if (e) {
|
|
9243
9254
|
const t = ln(Su);
|
|
9244
|
-
this.options.install && t.use(this.options.install, this), t.provide(
|
|
9255
|
+
this.options.install && t.use(this.options.install, this), t.provide(Nn, Qn(this)), t.mount(e), this.app = t;
|
|
9245
9256
|
} else
|
|
9246
9257
|
Ce.warn("VTJEngine constructor param [ container ] is undefined");
|
|
9247
9258
|
}
|
|
9248
9259
|
bindEvents() {
|
|
9249
|
-
te.on(Al, (e) => this.saveProject(e)), te.on(jl, (e) => this.saveBlockFile(e)), te.on(El, (e) => this.saveBlockFile(e)), te.on(Pl, () => this.saveMaterials()), te.on(_t, (e) => this.activeFile(e)), te.on(
|
|
9260
|
+
te.on(Al, (e) => this.saveProject(e)), te.on(jl, (e) => this.saveBlockFile(e)), te.on(El, (e) => this.saveBlockFile(e)), te.on(Pl, () => this.saveMaterials()), te.on(_t, (e) => this.activeFile(e)), te.on(Dl, () => this.publish()), te.on(Il, () => this.publishCurrent()), te.on(wt, (e) => this.changeFile(e)), te.on(Je, () => this.changeCurrentFile()), te.on(Bl, (e) => this.saveHistory(e)), te.on(Rl, (e) => this.loadHistory(e));
|
|
9250
9261
|
}
|
|
9251
9262
|
async activeFile(e) {
|
|
9252
9263
|
await we();
|
|
@@ -9377,8 +9388,8 @@ class oc extends bn {
|
|
|
9377
9388
|
}
|
|
9378
9389
|
}
|
|
9379
9390
|
function ce() {
|
|
9380
|
-
const
|
|
9381
|
-
return
|
|
9391
|
+
const u = xt(Nn, null);
|
|
9392
|
+
return u || Ce.error("VTJEngine is not exist"), u;
|
|
9382
9393
|
}
|
|
9383
9394
|
const je = E({
|
|
9384
9395
|
name: "RegionWrapper",
|
|
@@ -9394,10 +9405,10 @@ const je = E({
|
|
|
9394
9405
|
};
|
|
9395
9406
|
},
|
|
9396
9407
|
render() {
|
|
9397
|
-
const
|
|
9398
|
-
return Te(
|
|
9408
|
+
const u = Kt[this.region] || Kt.EmptyRegion;
|
|
9409
|
+
return Te(u, { ...this.$props, ...this.$attrs, ref: "regionRef" });
|
|
9399
9410
|
}
|
|
9400
|
-
}),
|
|
9411
|
+
}), De = E({
|
|
9401
9412
|
name: "WidgetWrapper",
|
|
9402
9413
|
props: {
|
|
9403
9414
|
region: {
|
|
@@ -9425,9 +9436,9 @@ const je = E({
|
|
|
9425
9436
|
}), Su = E({
|
|
9426
9437
|
name: "SkeletonWrapper",
|
|
9427
9438
|
setup() {
|
|
9428
|
-
const
|
|
9439
|
+
const u = k(), e = ce(), t = k({});
|
|
9429
9440
|
return {
|
|
9430
|
-
skeletonRef:
|
|
9441
|
+
skeletonRef: u,
|
|
9431
9442
|
engine: e,
|
|
9432
9443
|
widgets: t
|
|
9433
9444
|
};
|
|
@@ -9444,32 +9455,32 @@ const je = E({
|
|
|
9444
9455
|
* @param region
|
|
9445
9456
|
* @returns
|
|
9446
9457
|
*/
|
|
9447
|
-
getRegion(
|
|
9448
|
-
return this.skeletonRef[
|
|
9458
|
+
getRegion(u) {
|
|
9459
|
+
return this.skeletonRef[u.toLowerCase()];
|
|
9449
9460
|
},
|
|
9450
9461
|
/**
|
|
9451
9462
|
* 切换应用区域折叠或展开
|
|
9452
9463
|
*/
|
|
9453
|
-
toggleCollapse(
|
|
9464
|
+
toggleCollapse(u) {
|
|
9454
9465
|
if (this.skeletonRef) {
|
|
9455
9466
|
const e = this.skeletonRef.collapsed;
|
|
9456
|
-
this.skeletonRef.collapsed =
|
|
9467
|
+
this.skeletonRef.collapsed = u ?? !e;
|
|
9457
9468
|
}
|
|
9458
9469
|
},
|
|
9459
9470
|
/**
|
|
9460
9471
|
* 控制设置区域隐藏或显示
|
|
9461
9472
|
* @param val
|
|
9462
9473
|
*/
|
|
9463
|
-
settable(
|
|
9464
|
-
this.skeletonRef && (this.skeletonRef.settable =
|
|
9474
|
+
settable(u) {
|
|
9475
|
+
this.skeletonRef && (this.skeletonRef.settable = u);
|
|
9465
9476
|
},
|
|
9466
9477
|
/**
|
|
9467
9478
|
* 获取区域内的 widget wrapper 实例数组
|
|
9468
9479
|
* @param region
|
|
9469
9480
|
* @returns
|
|
9470
9481
|
*/
|
|
9471
|
-
getWidgets(
|
|
9472
|
-
const e = this.getRegion(
|
|
9482
|
+
getWidgets(u) {
|
|
9483
|
+
const e = this.getRegion(u);
|
|
9473
9484
|
return e ? wl(
|
|
9474
9485
|
e.regionRef?.widgetsRef || []
|
|
9475
9486
|
) : [];
|
|
@@ -9479,15 +9490,15 @@ const je = E({
|
|
|
9479
9490
|
* @param name
|
|
9480
9491
|
* @returns
|
|
9481
9492
|
*/
|
|
9482
|
-
getWidget(
|
|
9483
|
-
const e =
|
|
9493
|
+
getWidget(u) {
|
|
9494
|
+
const e = Wn.get(u);
|
|
9484
9495
|
if (!e) {
|
|
9485
|
-
Ce.warn(`widget [ ${
|
|
9496
|
+
Ce.warn(`widget [ ${u} ] is not exsit`);
|
|
9486
9497
|
return;
|
|
9487
9498
|
}
|
|
9488
|
-
return this.getWidgets(e.region).find((l) => l.widget.name ===
|
|
9499
|
+
return this.getWidgets(e.region).find((l) => l.widget.name === u);
|
|
9489
9500
|
},
|
|
9490
|
-
openPreview(
|
|
9501
|
+
openPreview(u) {
|
|
9491
9502
|
this.skeletonRef && (this.skeletonRef.isPreview = !0);
|
|
9492
9503
|
},
|
|
9493
9504
|
closePreview() {
|
|
@@ -9563,16 +9574,16 @@ const je = E({
|
|
|
9563
9574
|
} : e);
|
|
9564
9575
|
},
|
|
9565
9576
|
defaultSetter() {
|
|
9566
|
-
const { value:
|
|
9567
|
-
let t = typeof
|
|
9568
|
-
t === "Object" && (Array.isArray(
|
|
9577
|
+
const { value: u, computedSetters: e } = this;
|
|
9578
|
+
let t = typeof u;
|
|
9579
|
+
t === "Object" && (Array.isArray(u) ? t = "Array" : Le(u) ? t = "Object" : Ul(u) && (t = "Function"));
|
|
9569
9580
|
const l = Ze.getByType(t) || [];
|
|
9570
9581
|
return l.length ? (e.find((a) => l.includes(a.name)) || e[0])?.name : e[0]?.name;
|
|
9571
9582
|
}
|
|
9572
9583
|
},
|
|
9573
9584
|
render() {
|
|
9574
9585
|
const {
|
|
9575
|
-
context:
|
|
9586
|
+
context: u,
|
|
9576
9587
|
current: e,
|
|
9577
9588
|
name: t,
|
|
9578
9589
|
label: l,
|
|
@@ -9580,21 +9591,21 @@ const je = E({
|
|
|
9580
9591
|
value: o,
|
|
9581
9592
|
computedSetters: s,
|
|
9582
9593
|
computedOptions: r,
|
|
9583
|
-
variable:
|
|
9594
|
+
variable: i,
|
|
9584
9595
|
changeValue: g,
|
|
9585
9596
|
defaultSetter: p,
|
|
9586
9597
|
removable: m,
|
|
9587
9598
|
onRemove: f
|
|
9588
9599
|
} = this;
|
|
9589
|
-
return Te(
|
|
9590
|
-
context:
|
|
9600
|
+
return Te(Du, {
|
|
9601
|
+
context: u,
|
|
9591
9602
|
current: e,
|
|
9592
9603
|
name: t,
|
|
9593
9604
|
label: l,
|
|
9594
9605
|
title: a,
|
|
9595
9606
|
setters: s,
|
|
9596
9607
|
defaultSetter: p,
|
|
9597
|
-
variable:
|
|
9608
|
+
variable: i,
|
|
9598
9609
|
value: o,
|
|
9599
9610
|
removable: m,
|
|
9600
9611
|
options: r,
|
|
@@ -9604,14 +9615,14 @@ const je = E({
|
|
|
9604
9615
|
},
|
|
9605
9616
|
emits: ["change", "remove"],
|
|
9606
9617
|
methods: {
|
|
9607
|
-
getSetter(
|
|
9608
|
-
return typeof
|
|
9618
|
+
getSetter(u) {
|
|
9619
|
+
return typeof u == "string" ? Ze.get(u) || Ze.defaultSetter : u;
|
|
9609
9620
|
},
|
|
9610
|
-
changeValue(
|
|
9611
|
-
this.$emit("change", this.name,
|
|
9621
|
+
changeValue(u) {
|
|
9622
|
+
this.$emit("change", this.name, u);
|
|
9612
9623
|
},
|
|
9613
|
-
onRemove(
|
|
9614
|
-
this.$emit("remove",
|
|
9624
|
+
onRemove(u) {
|
|
9625
|
+
this.$emit("remove", u);
|
|
9615
9626
|
}
|
|
9616
9627
|
}
|
|
9617
9628
|
}), xu = /* @__PURE__ */ E({
|
|
@@ -9623,30 +9634,30 @@ const je = E({
|
|
|
9623
9634
|
rightWidth: { default: "350px" },
|
|
9624
9635
|
footerHeight: { default: "20px" }
|
|
9625
9636
|
},
|
|
9626
|
-
setup(
|
|
9627
|
-
const t =
|
|
9637
|
+
setup(u, { expose: e }) {
|
|
9638
|
+
const t = u, l = k(!1), a = k(parseInt(t.leftWidth)), o = k(parseInt(t.rightWidth)), s = {
|
|
9628
9639
|
dirs: ["e"],
|
|
9629
9640
|
maxWidth: 600,
|
|
9630
9641
|
minWidth: 49,
|
|
9631
|
-
onResizing(C,
|
|
9632
|
-
a.value =
|
|
9642
|
+
onResizing(C, I) {
|
|
9643
|
+
a.value = I.elementWidth.value;
|
|
9633
9644
|
},
|
|
9634
|
-
onEnd(C,
|
|
9635
|
-
a.value =
|
|
9645
|
+
onEnd(C, I) {
|
|
9646
|
+
a.value = I.elementWidth.value;
|
|
9636
9647
|
}
|
|
9637
9648
|
}, r = {
|
|
9638
9649
|
dirs: ["w"],
|
|
9639
9650
|
maxWidth: 600,
|
|
9640
9651
|
minWidth: 2,
|
|
9641
|
-
onResizing(C,
|
|
9642
|
-
o.value =
|
|
9652
|
+
onResizing(C, I) {
|
|
9653
|
+
o.value = I.elementWidth.value;
|
|
9643
9654
|
},
|
|
9644
|
-
onEnd(C,
|
|
9645
|
-
o.value =
|
|
9655
|
+
onEnd(C, I) {
|
|
9656
|
+
o.value = I.elementWidth.value;
|
|
9646
9657
|
}
|
|
9647
|
-
},
|
|
9658
|
+
}, i = k(), g = k(), p = k(), m = k(), f = k(), b = k(), c = k(), _ = k(), w = k(!1), x = k(!1);
|
|
9648
9659
|
return e({
|
|
9649
|
-
brand:
|
|
9660
|
+
brand: i,
|
|
9650
9661
|
toolbar: g,
|
|
9651
9662
|
actions: p,
|
|
9652
9663
|
apps: m,
|
|
@@ -9659,7 +9670,7 @@ const je = E({
|
|
|
9659
9670
|
rightWidth: o,
|
|
9660
9671
|
preview: _,
|
|
9661
9672
|
isPreview: l
|
|
9662
|
-
}), (C,
|
|
9673
|
+
}), (C, I) => (d(), y(n(cl), { locale: n(vl) }, {
|
|
9663
9674
|
default: h(() => [
|
|
9664
9675
|
v(n(Ot), { class: "v-skeleton" }, {
|
|
9665
9676
|
default: h(() => [
|
|
@@ -9670,7 +9681,7 @@ const je = E({
|
|
|
9670
9681
|
default: h(() => [
|
|
9671
9682
|
v(n(je), {
|
|
9672
9683
|
ref_key: "brand",
|
|
9673
|
-
ref:
|
|
9684
|
+
ref: i,
|
|
9674
9685
|
region: "Brand"
|
|
9675
9686
|
}, null, 512),
|
|
9676
9687
|
v(n(je), {
|
|
@@ -9705,7 +9716,7 @@ const je = E({
|
|
|
9705
9716
|
]),
|
|
9706
9717
|
_: 1
|
|
9707
9718
|
}, 8, ["width", "class"])), [
|
|
9708
|
-
[n(
|
|
9719
|
+
[n(Wt), s]
|
|
9709
9720
|
]),
|
|
9710
9721
|
v(n(pl), { class: "v-skeleton__main" }, {
|
|
9711
9722
|
default: h(() => [
|
|
@@ -9721,7 +9732,7 @@ const je = E({
|
|
|
9721
9732
|
ref: f,
|
|
9722
9733
|
region: "Workspace"
|
|
9723
9734
|
}, null, 512), [
|
|
9724
|
-
[
|
|
9735
|
+
[Ie, !l.value]
|
|
9725
9736
|
])
|
|
9726
9737
|
]),
|
|
9727
9738
|
_: 1
|
|
@@ -9740,8 +9751,8 @@ const je = E({
|
|
|
9740
9751
|
]),
|
|
9741
9752
|
_: 1
|
|
9742
9753
|
}, 8, ["width"])), [
|
|
9743
|
-
[
|
|
9744
|
-
[n(
|
|
9754
|
+
[Ie, x.value],
|
|
9755
|
+
[n(Wt), r]
|
|
9745
9756
|
])
|
|
9746
9757
|
]),
|
|
9747
9758
|
_: 1
|
|
@@ -9770,7 +9781,7 @@ const je = E({
|
|
|
9770
9781
|
}), Cu = ["title"], Vu = { class: "v-setter__content" }, Au = {
|
|
9771
9782
|
key: 0,
|
|
9772
9783
|
class: "v-setter__input"
|
|
9773
|
-
}, ju = { class: "v-setter__action" }, Eu = "{{", Pu = "}}",
|
|
9784
|
+
}, ju = { class: "v-setter__action" }, Eu = "{{", Pu = "}}", Du = /* @__PURE__ */ E({
|
|
9774
9785
|
__name: "setter",
|
|
9775
9786
|
props: {
|
|
9776
9787
|
context: {},
|
|
@@ -9786,10 +9797,10 @@ const je = E({
|
|
|
9786
9797
|
removable: { type: Boolean }
|
|
9787
9798
|
},
|
|
9788
9799
|
emits: ["change", "remove"],
|
|
9789
|
-
setup(
|
|
9790
|
-
const t =
|
|
9800
|
+
setup(u, { emit: e }) {
|
|
9801
|
+
const t = u, l = e, a = k(!1), o = k(""), s = k(
|
|
9791
9802
|
t.setters.find((x) => x.name === t.defaultSetter) || t.setters[0]
|
|
9792
|
-
), r = k(t.value),
|
|
9803
|
+
), r = k(t.value), i = S(() => !!Le(r.value)), g = {
|
|
9793
9804
|
[s.value.name]: r.value
|
|
9794
9805
|
}, p = (x) => {
|
|
9795
9806
|
g[s.value.name] = r.value, s.value = x, r.value = g[x.name] ?? void 0, m(r.value);
|
|
@@ -9841,18 +9852,18 @@ const je = E({
|
|
|
9841
9852
|
default: h(() => [
|
|
9842
9853
|
V("div", Vu, [
|
|
9843
9854
|
s.value ? (d(), A("div", Au, [
|
|
9844
|
-
|
|
9855
|
+
i.value ? j("", !0) : (d(), y(Yt(s.value.component), re({
|
|
9845
9856
|
key: 0,
|
|
9846
9857
|
current: t.current,
|
|
9847
9858
|
context: t.context
|
|
9848
9859
|
}, s.value.props, {
|
|
9849
9860
|
options: t.options,
|
|
9850
9861
|
modelValue: r.value,
|
|
9851
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
9862
|
+
"onUpdate:modelValue": C[0] || (C[0] = (I) => r.value = I),
|
|
9852
9863
|
onChange: m,
|
|
9853
|
-
disabled:
|
|
9864
|
+
disabled: i.value
|
|
9854
9865
|
}), null, 16, ["current", "context", "options", "modelValue", "disabled"])),
|
|
9855
|
-
|
|
9866
|
+
i.value ? (d(), y(n(ye), {
|
|
9856
9867
|
key: 1,
|
|
9857
9868
|
class: "v-expression-setter",
|
|
9858
9869
|
disabled: "",
|
|
@@ -9871,12 +9882,12 @@ const je = E({
|
|
|
9871
9882
|
t.variable ? (d(), y(n(xs), {
|
|
9872
9883
|
key: 0,
|
|
9873
9884
|
onClick: b,
|
|
9874
|
-
class: H(["v-icon-vars", { "is-active":
|
|
9885
|
+
class: H(["v-icon-vars", { "is-active": i.value }]),
|
|
9875
9886
|
title: "绑定变量"
|
|
9876
9887
|
}, null, 8, ["class"])) : j("", !0),
|
|
9877
9888
|
t.setters.length > 1 ? (d(), y(n(on), {
|
|
9878
9889
|
key: 1,
|
|
9879
|
-
disabled:
|
|
9890
|
+
disabled: i.value,
|
|
9880
9891
|
size: "small",
|
|
9881
9892
|
"popper-class": "v-setter-switch",
|
|
9882
9893
|
onCommand: p
|
|
@@ -9884,17 +9895,17 @@ const je = E({
|
|
|
9884
9895
|
dropdown: h(() => [
|
|
9885
9896
|
v(n(rn), null, {
|
|
9886
9897
|
default: h(() => [
|
|
9887
|
-
(d(!0), A(T, null,
|
|
9888
|
-
command:
|
|
9889
|
-
key:
|
|
9898
|
+
(d(!0), A(T, null, W(t.setters, (I) => (d(), y(n(ft), {
|
|
9899
|
+
command: I,
|
|
9900
|
+
key: I.name
|
|
9890
9901
|
}, {
|
|
9891
9902
|
default: h(() => [
|
|
9892
9903
|
v(n(Sn), {
|
|
9893
9904
|
class: H({
|
|
9894
|
-
"is-placeholder":
|
|
9905
|
+
"is-placeholder": I.name !== s.value.name
|
|
9895
9906
|
})
|
|
9896
9907
|
}, null, 8, ["class"]),
|
|
9897
|
-
G(" " + z(
|
|
9908
|
+
G(" " + z(I.label), 1)
|
|
9898
9909
|
]),
|
|
9899
9910
|
_: 2
|
|
9900
9911
|
}, 1032, ["command"]))), 128))
|
|
@@ -9920,7 +9931,7 @@ const je = E({
|
|
|
9920
9931
|
context: t.context,
|
|
9921
9932
|
value: o.value,
|
|
9922
9933
|
modelValue: a.value,
|
|
9923
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
9934
|
+
"onUpdate:modelValue": C[1] || (C[1] = (I) => a.value = I),
|
|
9924
9935
|
submitMethod: _,
|
|
9925
9936
|
onUnbind: w
|
|
9926
9937
|
}, null, 8, ["current", "context", "value", "modelValue"])) : j("", !0)
|
|
@@ -9928,14 +9939,14 @@ const je = E({
|
|
|
9928
9939
|
_: 1
|
|
9929
9940
|
}));
|
|
9930
9941
|
}
|
|
9931
|
-
}),
|
|
9942
|
+
}), Iu = { class: "v-empty-region" }, Bu = /* @__PURE__ */ E({
|
|
9932
9943
|
name: "EmptyRegion",
|
|
9933
9944
|
__name: "empty",
|
|
9934
9945
|
props: {
|
|
9935
9946
|
region: {}
|
|
9936
9947
|
},
|
|
9937
|
-
setup(
|
|
9938
|
-
return (e, t) => (d(), A("div",
|
|
9948
|
+
setup(u) {
|
|
9949
|
+
return (e, t) => (d(), A("div", Iu, "找不到符合【" + z(e.region) + "】名称的区域组件", 1));
|
|
9939
9950
|
}
|
|
9940
9951
|
}), Ru = { class: "v-brand-region" }, $u = /* @__PURE__ */ E({
|
|
9941
9952
|
name: "BrandRegion",
|
|
@@ -9944,13 +9955,13 @@ const je = E({
|
|
|
9944
9955
|
props: {
|
|
9945
9956
|
region: {}
|
|
9946
9957
|
},
|
|
9947
|
-
setup(
|
|
9948
|
-
const t =
|
|
9958
|
+
setup(u, { expose: e }) {
|
|
9959
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region);
|
|
9949
9960
|
return e({
|
|
9950
9961
|
widgets: l,
|
|
9951
9962
|
widgetsRef: a
|
|
9952
9963
|
}), (o, s) => (d(), A("div", Ru, [
|
|
9953
|
-
(d(!0), A(T, null,
|
|
9964
|
+
(d(!0), A(T, null, W(n(l), (r) => (d(), y(n(De), {
|
|
9954
9965
|
ref_for: !0,
|
|
9955
9966
|
ref_key: "widgetsRef",
|
|
9956
9967
|
ref: a,
|
|
@@ -9966,13 +9977,13 @@ const je = E({
|
|
|
9966
9977
|
region: {},
|
|
9967
9978
|
preview: { type: Boolean }
|
|
9968
9979
|
},
|
|
9969
|
-
setup(
|
|
9970
|
-
const t =
|
|
9980
|
+
setup(u, { expose: e }) {
|
|
9981
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region);
|
|
9971
9982
|
return e({
|
|
9972
9983
|
widgets: l,
|
|
9973
9984
|
widgetsRef: a
|
|
9974
9985
|
}), (o, s) => (d(), A("div", Tu, [
|
|
9975
|
-
(d(!0), A(T, null,
|
|
9986
|
+
(d(!0), A(T, null, W(n(l), (r) => (d(), y(n(De), {
|
|
9976
9987
|
ref_for: !0,
|
|
9977
9988
|
ref_key: "widgetsRef",
|
|
9978
9989
|
ref: a,
|
|
@@ -9989,13 +10000,13 @@ const je = E({
|
|
|
9989
10000
|
props: {
|
|
9990
10001
|
region: {}
|
|
9991
10002
|
},
|
|
9992
|
-
setup(
|
|
9993
|
-
const t =
|
|
10003
|
+
setup(u, { expose: e }) {
|
|
10004
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region);
|
|
9994
10005
|
return e({
|
|
9995
10006
|
widgets: l,
|
|
9996
10007
|
widgetsRef: a
|
|
9997
10008
|
}), (o, s) => (d(), A("div", Ou, [
|
|
9998
|
-
(d(!0), A(T, null,
|
|
10009
|
+
(d(!0), A(T, null, W(n(l), (r) => (d(), y(n(De), {
|
|
9999
10010
|
ref_for: !0,
|
|
10000
10011
|
ref_key: "widgetsRef",
|
|
10001
10012
|
ref: a,
|
|
@@ -10004,7 +10015,7 @@ const je = E({
|
|
|
10004
10015
|
}, null, 8, ["region", "widget"]))), 256))
|
|
10005
10016
|
]));
|
|
10006
10017
|
}
|
|
10007
|
-
}),
|
|
10018
|
+
}), Wu = { class: "v-apps-region" }, Nu = { class: "v-apps-region__header" }, Ju = { class: "v-apps-region__top" }, Mu = { class: "v-apps-region__bottom" }, Lu = { class: "v-apps-region__panels" }, Uu = /* @__PURE__ */ E({
|
|
10008
10019
|
name: "AppsRegion",
|
|
10009
10020
|
inheritAttrs: !1,
|
|
10010
10021
|
__name: "apps",
|
|
@@ -10012,8 +10023,8 @@ const je = E({
|
|
|
10012
10023
|
region: {},
|
|
10013
10024
|
index: { default: 0 }
|
|
10014
10025
|
},
|
|
10015
|
-
setup(
|
|
10016
|
-
const t =
|
|
10026
|
+
setup(u, { expose: e }) {
|
|
10027
|
+
const t = u, l = ce(), { widgets: a, widgetsRef: o } = Pe(t.region), s = S(() => a.value.filter((c) => c.openType === "panel")), r = S(() => a.value.filter((c) => c.openType !== "panel")), i = s.value[t.index], g = k(i), p = k(i), m = (c) => {
|
|
10017
10028
|
g.value = c, p.value = p.value?.name === c.name ? null : c;
|
|
10018
10029
|
}, f = (c) => {
|
|
10019
10030
|
c.openType === "link" && c.url && window.open(c.url), c.openType === "dialog" && hl({
|
|
@@ -10032,10 +10043,10 @@ const je = E({
|
|
|
10032
10043
|
const _ = s.value.find((w) => w.name === c);
|
|
10033
10044
|
g.value = _, p.value = _;
|
|
10034
10045
|
}
|
|
10035
|
-
}), (c, _) => (d(), A("div",
|
|
10036
|
-
V("div",
|
|
10046
|
+
}), (c, _) => (d(), A("div", Wu, [
|
|
10047
|
+
V("div", Nu, [
|
|
10037
10048
|
V("div", Ju, [
|
|
10038
|
-
(d(!0), A(T, null,
|
|
10049
|
+
(d(!0), A(T, null, W(s.value, (w) => (d(), y(n(Gt), {
|
|
10039
10050
|
key: `icon-${w.name}`,
|
|
10040
10051
|
icon: w.icon,
|
|
10041
10052
|
label: w.label,
|
|
@@ -10045,7 +10056,7 @@ const je = E({
|
|
|
10045
10056
|
}, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
|
|
10046
10057
|
]),
|
|
10047
10058
|
V("div", Mu, [
|
|
10048
|
-
(d(!0), A(T, null,
|
|
10059
|
+
(d(!0), A(T, null, W(r.value, (w) => (d(), y(n(Gt), {
|
|
10049
10060
|
key: `icon-${w.name}`,
|
|
10050
10061
|
icon: w.icon,
|
|
10051
10062
|
label: w.label,
|
|
@@ -10054,10 +10065,10 @@ const je = E({
|
|
|
10054
10065
|
])
|
|
10055
10066
|
]),
|
|
10056
10067
|
V("div", Lu, [
|
|
10057
|
-
(d(!0), A(T, null,
|
|
10068
|
+
(d(!0), A(T, null, W(s.value, (w) => (d(), y(an, {
|
|
10058
10069
|
key: w.name
|
|
10059
10070
|
}, [
|
|
10060
|
-
g.value?.name === w.name ? (d(), y(n(
|
|
10071
|
+
g.value?.name === w.name ? (d(), y(n(De), {
|
|
10061
10072
|
key: 0,
|
|
10062
10073
|
ref_for: !0,
|
|
10063
10074
|
ref_key: "widgetsRef",
|
|
@@ -10075,8 +10086,8 @@ const je = E({
|
|
|
10075
10086
|
props: {
|
|
10076
10087
|
region: {}
|
|
10077
10088
|
},
|
|
10078
|
-
setup(
|
|
10079
|
-
const t =
|
|
10089
|
+
setup(u, { expose: e }) {
|
|
10090
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region), o = qe(
|
|
10080
10091
|
l.value.map((c) => ({
|
|
10081
10092
|
name: c.name,
|
|
10082
10093
|
command: c.name,
|
|
@@ -10089,15 +10100,15 @@ const je = E({
|
|
|
10089
10100
|
), s = S(() => o?.filter((c) => !c.closable || c.checked)), r = S(() => o.map((c) => ({
|
|
10090
10101
|
...c,
|
|
10091
10102
|
disabled: !c.closable
|
|
10092
|
-
}))),
|
|
10103
|
+
}))), i = k(s.value[0]?.name), g = S(() => o.find((_) => _.name === i.value)?.props || {}), p = (c) => {
|
|
10093
10104
|
const _ = o.find((w) => w.name === c);
|
|
10094
|
-
_ && (_.checked = !1),
|
|
10105
|
+
_ && (_.checked = !1), i.value === c && (i.value = s.value[0]?.name);
|
|
10095
10106
|
}, m = (c) => {
|
|
10096
10107
|
const _ = o.find((w) => w.name === c.name);
|
|
10097
|
-
_ && _.closable && (_.checked = !_.checked, _.checked && (
|
|
10108
|
+
_ && _.closable && (_.checked = !_.checked, _.checked && (i.value = _.name), !_.checked && i.value === _.name && (i.value = s.value[0]?.name));
|
|
10098
10109
|
}, f = (c, _ = {}) => {
|
|
10099
10110
|
const w = o.find((x) => x.name === c);
|
|
10100
|
-
w && (w.props = Object.assign({}, w.props, _), w.checked = !0,
|
|
10111
|
+
w && (w.props = Object.assign({}, w.props, _), w.checked = !0, i.value = w.name);
|
|
10101
10112
|
}, b = (c) => {
|
|
10102
10113
|
if (a.value) {
|
|
10103
10114
|
const _ = a.value[0]?.widgetRef;
|
|
@@ -10110,7 +10121,7 @@ const je = E({
|
|
|
10110
10121
|
}
|
|
10111
10122
|
};
|
|
10112
10123
|
return e({
|
|
10113
|
-
currentTab:
|
|
10124
|
+
currentTab: i,
|
|
10114
10125
|
widgets: l,
|
|
10115
10126
|
widgetsRef: a,
|
|
10116
10127
|
openTab: f
|
|
@@ -10118,18 +10129,18 @@ const je = E({
|
|
|
10118
10129
|
class: "v-workspace-region",
|
|
10119
10130
|
items: s.value,
|
|
10120
10131
|
menus: r.value,
|
|
10121
|
-
modelValue:
|
|
10122
|
-
"onUpdate:modelValue": _[0] || (_[0] = (w) =>
|
|
10132
|
+
modelValue: i.value,
|
|
10133
|
+
"onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
|
|
10123
10134
|
checkable: "",
|
|
10124
10135
|
onRemove: p,
|
|
10125
10136
|
onCommand: m,
|
|
10126
10137
|
onActionClick: b
|
|
10127
10138
|
}, {
|
|
10128
10139
|
default: h(() => [
|
|
10129
|
-
(d(!0), A(T, null,
|
|
10140
|
+
(d(!0), A(T, null, W(n(l), (w) => (d(), A(T, {
|
|
10130
10141
|
key: w.name
|
|
10131
10142
|
}, [
|
|
10132
|
-
|
|
10143
|
+
i.value === w.name ? (d(), y(n(De), {
|
|
10133
10144
|
key: 0,
|
|
10134
10145
|
ref_for: !0,
|
|
10135
10146
|
ref_key: "widgetsRef",
|
|
@@ -10148,10 +10159,10 @@ const je = E({
|
|
|
10148
10159
|
props: {
|
|
10149
10160
|
region: {}
|
|
10150
10161
|
},
|
|
10151
|
-
setup(
|
|
10152
|
-
const t =
|
|
10162
|
+
setup(u, { expose: e }) {
|
|
10163
|
+
const t = u, l = ce(), { current: a } = ie(), { selected: o, isSelectBlock: s } = ke(), r = S(
|
|
10153
10164
|
() => s.value ? fe.Block : fe.Node
|
|
10154
|
-
), { widgets:
|
|
10165
|
+
), { widgets: i, widgetsRef: g } = Pe(t.region, r), p = k(), m = k(!1), f = S(() => i.value.map((w) => ({
|
|
10155
10166
|
name: w.name,
|
|
10156
10167
|
label: w.label,
|
|
10157
10168
|
actions: w.name === "Style" ? [
|
|
@@ -10187,7 +10198,7 @@ const je = E({
|
|
|
10187
10198
|
w.name === "switch" && (m.value = !m.value);
|
|
10188
10199
|
};
|
|
10189
10200
|
return e({
|
|
10190
|
-
widgets:
|
|
10201
|
+
widgets: i,
|
|
10191
10202
|
widgetsRef: g
|
|
10192
10203
|
}), (w, x) => n(a) ? (d(), y(n(M), {
|
|
10193
10204
|
key: 0,
|
|
@@ -10243,16 +10254,16 @@ const je = E({
|
|
|
10243
10254
|
onActionClick: _
|
|
10244
10255
|
}, {
|
|
10245
10256
|
default: h(() => [
|
|
10246
|
-
(d(!0), A(T, null,
|
|
10257
|
+
(d(!0), A(T, null, W(n(i), (C) => (d(), A(T, {
|
|
10247
10258
|
key: C.name
|
|
10248
10259
|
}, [
|
|
10249
|
-
p.value === C.name ? (d(), y(n(
|
|
10260
|
+
p.value === C.name ? (d(), y(n(De), {
|
|
10250
10261
|
key: 0,
|
|
10251
10262
|
ref_for: !0,
|
|
10252
10263
|
ref_key: "widgetsRef",
|
|
10253
10264
|
ref: g,
|
|
10254
10265
|
region: w.region,
|
|
10255
|
-
widget: n(
|
|
10266
|
+
widget: n(Dt)({ props: { isStyleCodeMode: m.value } }, C)
|
|
10256
10267
|
}, null, 8, ["region", "widget"])) : j("", !0)
|
|
10257
10268
|
], 64))), 128))
|
|
10258
10269
|
]),
|
|
@@ -10281,13 +10292,13 @@ const je = E({
|
|
|
10281
10292
|
props: {
|
|
10282
10293
|
region: {}
|
|
10283
10294
|
},
|
|
10284
|
-
setup(
|
|
10285
|
-
const t =
|
|
10295
|
+
setup(u, { expose: e }) {
|
|
10296
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region);
|
|
10286
10297
|
return e({
|
|
10287
10298
|
widgets: l,
|
|
10288
10299
|
widgetsRef: a
|
|
10289
10300
|
}), (o, s) => (d(), A("div", Gu, [
|
|
10290
|
-
(d(!0), A(T, null,
|
|
10301
|
+
(d(!0), A(T, null, W(n(l), (r) => (d(), y(n(De), {
|
|
10291
10302
|
ref_for: !0,
|
|
10292
10303
|
ref_key: "widgetsRef",
|
|
10293
10304
|
ref: a,
|
|
@@ -10302,36 +10313,36 @@ const je = E({
|
|
|
10302
10313
|
props: {
|
|
10303
10314
|
region: {}
|
|
10304
10315
|
},
|
|
10305
|
-
setup(
|
|
10306
|
-
const t =
|
|
10307
|
-
l.value.map((
|
|
10308
|
-
name:
|
|
10309
|
-
command:
|
|
10310
|
-
label:
|
|
10311
|
-
closable: !!
|
|
10316
|
+
setup(u, { expose: e }) {
|
|
10317
|
+
const t = u, { widgets: l, widgetsRef: a } = Pe(t.region), o = qe(
|
|
10318
|
+
l.value.map((i) => ({
|
|
10319
|
+
name: i.name,
|
|
10320
|
+
command: i.name,
|
|
10321
|
+
label: i.label,
|
|
10322
|
+
closable: !!i.closable,
|
|
10312
10323
|
checked: !1
|
|
10313
10324
|
}))
|
|
10314
|
-
), s = S(() => o.filter((
|
|
10325
|
+
), s = S(() => o.filter((i) => !i.closable || i.checked)), r = k(s.value[0]?.name);
|
|
10315
10326
|
return e({
|
|
10316
10327
|
currentTab: r,
|
|
10317
10328
|
widgets: l,
|
|
10318
10329
|
widgetsRef: a
|
|
10319
|
-
}), (
|
|
10330
|
+
}), (i, g) => (d(), y(n(st), {
|
|
10320
10331
|
class: "v-workspace-region",
|
|
10321
10332
|
items: s.value,
|
|
10322
10333
|
modelValue: r.value,
|
|
10323
10334
|
"onUpdate:modelValue": g[0] || (g[0] = (p) => r.value = p)
|
|
10324
10335
|
}, {
|
|
10325
10336
|
default: h(() => [
|
|
10326
|
-
(d(!0), A(T, null,
|
|
10337
|
+
(d(!0), A(T, null, W(n(l), (p) => (d(), y(an, {
|
|
10327
10338
|
key: p.name
|
|
10328
10339
|
}, [
|
|
10329
|
-
r.value === p.name ? (d(), y(n(
|
|
10340
|
+
r.value === p.name ? (d(), y(n(De), {
|
|
10330
10341
|
key: 0,
|
|
10331
10342
|
ref_for: !0,
|
|
10332
10343
|
ref_key: "widgetsRef",
|
|
10333
10344
|
ref: a,
|
|
10334
|
-
region:
|
|
10345
|
+
region: i.region,
|
|
10335
10346
|
widget: p
|
|
10336
10347
|
}, null, 8, ["region", "widget"])) : j("", !0)
|
|
10337
10348
|
], 1024))), 128))
|
|
@@ -10351,12 +10362,12 @@ const je = E({
|
|
|
10351
10362
|
Preview: Qu
|
|
10352
10363
|
};
|
|
10353
10364
|
export {
|
|
10354
|
-
|
|
10365
|
+
Ds as API_METHOD_TYPES,
|
|
10355
10366
|
ku as Assets,
|
|
10356
10367
|
Tt as Binder,
|
|
10357
10368
|
St as Box,
|
|
10358
10369
|
yu as Designer,
|
|
10359
|
-
|
|
10370
|
+
Is as EVENT_MODIFIERS,
|
|
10360
10371
|
le as Editor,
|
|
10361
10372
|
oc as Engine,
|
|
10362
10373
|
mr as EventBinder,
|
|
@@ -10371,7 +10382,7 @@ export {
|
|
|
10371
10382
|
Bs as RegionType,
|
|
10372
10383
|
je as RegionWrapper,
|
|
10373
10384
|
_u as Renderer,
|
|
10374
|
-
|
|
10385
|
+
Du as SetterView,
|
|
10375
10386
|
J as SetterWrapper,
|
|
10376
10387
|
wu as Simulator,
|
|
10377
10388
|
xu as Skeleton,
|
|
@@ -10383,16 +10394,16 @@ export {
|
|
|
10383
10394
|
Ro as Viewer,
|
|
10384
10395
|
Tn as Viewport,
|
|
10385
10396
|
fe as WidgetGroup,
|
|
10386
|
-
|
|
10397
|
+
De as WidgetWrapper,
|
|
10387
10398
|
Ji as builtInDeps,
|
|
10388
10399
|
qi as builtInMaterials,
|
|
10389
10400
|
mu as builtInSetters,
|
|
10390
|
-
|
|
10401
|
+
Ni as builtInWidgets,
|
|
10391
10402
|
Oe as confirm,
|
|
10392
10403
|
bu as createSlotsPicker,
|
|
10393
10404
|
pu as defaultSetter,
|
|
10394
10405
|
fu as depsManager,
|
|
10395
|
-
|
|
10406
|
+
Nn as engineKey,
|
|
10396
10407
|
oe as expressionValidate,
|
|
10397
10408
|
Ms as getClassProperties,
|
|
10398
10409
|
de as message,
|
|
@@ -10402,6 +10413,6 @@ export {
|
|
|
10402
10413
|
Ze as setterManager,
|
|
10403
10414
|
Z as setters,
|
|
10404
10415
|
ce as useEngine,
|
|
10405
|
-
|
|
10416
|
+
Wn as widgetManager,
|
|
10406
10417
|
Q as widgets
|
|
10407
10418
|
};
|