@vtj/designer 0.9.0-alpha.32 → 0.9.0-alpha.33
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 +617 -618
- package/package.json +6 -6
- package/types/framework/engine.d.ts +1 -1
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
var cl = Object.defineProperty;
|
2
2
|
var dl = (i, t, e) => t in i ? cl(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
3
3
|
var F = (i, t, e) => dl(i, typeof t != "symbol" ? t + "" : t, e);
|
4
|
-
import { computed as C, unref as n, ref as S, reactive as qe, watchEffect as pl, watch as M, toValue as Dt, defineComponent as E, openBlock as d, createElementBlock as
|
5
|
-
import { ElNotification as Ft, ElMessageBox as De, ElMessage as Pe, ElButton as le, ElDivider as Lt, ElRadioGroup as Cn, ElRadioButton as ut, ElButtonGroup as _l, ElImage as Vn, ElDropdown as
|
4
|
+
import { computed as C, unref as n, ref as S, reactive as qe, watchEffect as pl, watch as M, toValue as Dt, defineComponent as E, openBlock as d, createElementBlock as j, toDisplayString as L, createVNode as m, withCtx as y, createElementVNode as V, createBlock as w, createCommentVNode as A, createTextVNode as H, mergeProps as ue, h as Le, readonly as ml, getCurrentScope as vl, onScopeDispose as gl, onMounted as ft, nextTick as Ce, getCurrentInstance as hn, shallowRef as Qe, toRaw as bn, Fragment as z, renderList as W, normalizeClass as K, defineAsyncComponent as fl, resolveDynamicComponent as yn, createSlots as hl, withDirectives as Ee, vShow as We, renderSlot as Ve, withModifiers as Je, isRef as Pt, normalizeStyle as rt, inject as zt, provide as bl, normalizeProps as _n, guardReactiveProps as wn, withKeys as it, onUnmounted as kn, markRaw as It, createApp as Sn, shallowReactive as yl, triggerRef as Te, KeepAlive as xn } from "vue";
|
5
|
+
import { ElNotification as Ft, ElMessageBox as De, ElMessage as Pe, ElButton as le, ElDivider as Lt, ElRadioGroup as Cn, ElRadioButton as ut, ElButtonGroup as _l, ElImage as Vn, ElDropdown as jn, ElDropdownMenu as An, ElDropdownItem as ct, ElInput as be, ElEmpty as ie, ElAlert as Wt, ElTooltip as En, ElTag as Dn, ElSwitch as Pn, ElTree as Nt, ElCollapse as ht, ElCollapseItem as bt, ElRow as pt, ElCol as mt, ElDrawer as In, ElForm as we, ElFormItem as Tn, ElBreadcrumb as wl, ElBreadcrumbItem as kl, ElLoading as Sl, vLoading as xl, ElAvatar as Cl, ElSelect as Vl, ElOption as jl, ElInputNumber as Al, ElColorPicker as El, ElUpload as Dl, ElSlider as Pl, ElConfigProvider as Il, ElContainer as tn, ElHeader as Tl, ElAside as nn, ElMain as $l, ElFooter as Bl } from "element-plus";
|
6
6
|
import Rl from "element-plus/es/locale/lang/zh-cn";
|
7
|
-
import { XDialogForm as
|
7
|
+
import { XDialogForm as je, XField as P, createDialog as $n, XIcon as Re, XDialog as Oe, XPanel as yt, XAction as ge, XTabs as Mt, XContainer as q, XForm as Jt, XAttachment as Ol, XActionBar as zl, XInputUnit as Bn, vResizable as ln } from "@vtj/ui";
|
8
8
|
import { jsonp as Me, groupBy as _t, dataURLtoBlob as Fl, delay as Ut, upperFirstCamelCase as Rn, toRawType as Vt, cloneDeep as wt, logger as Ie, isPlainObject as Ll, fileToBase64 as Wl, merge as qt, debounce as Nl, arrayToMap as Ml, toArray as Jl } from "@vtj/utils";
|
9
9
|
import { isBlock as ne, DirectiveModel as On, createNodeFrom as Ul, BUILT_IN_VUE as ql, BUILT_IN_VUE_ROUTER as Hl, BUILT_IN_NAME as Tt, emitter as se, EVENT_PROJECT_ACTIVED as $t, EVENT_NODE_CHANGE as Ye, NodeModel as an, EVENT_BLOCK_CHANGE as Bt, Base as zn, BUILT_IN_LIBRARAY_MAP as Gl, ProjectModel as Kl, EVENT_PROJECT_CHANGE as Xl, EVENT_PROJECT_BLOCKS_CHANGE as Ql, EVENT_PROJECT_PAGES_CHANGE as Yl, EVENT_PROJECT_DEPS_CHANGE as Zl, EVENT_PROJECT_PUBLISH as ea, EVENT_PROJECT_FILE_PUBLISH as ta, EVENT_HISTORY_CHANGE as na, EVENT_HISTORY_LOAD as la, EVENT_PROJECT_GEN_SOURCE as aa, BlockModel as sn, HistoryModel as sa } from "@vtj/core";
|
10
10
|
import { parseExpression as Ze, parseFunction as oa, JSCodeToString as Ue, LIFE_CYCLES_LIST as ra, DATA_TYPES as ia, isJSExpression as et, ContextMode as Fn, parseDeps as ua, createAssetsCss as ca, createAssetScripts as on, getRawComponent as rn, createSchemaApis as da, mockCleanup as pa, mockApis as ma, Provider as va, isJSFunction as ga } from "@vtj/renderer";
|
11
|
-
import { VtjIconBack as fa, VtjIconPc as ha, VtjIconPhone as ba, VtjIconPad as ya, VtjIconUndo as _a, VtjIconRedo as wa, VtjIconTemplate as vt, VtjIconPreview as ka, VtjIconRefresh as Ln, VtjIconSetting as Wn, Download as Rt, VtjIconPublish as Sa, VtjIconProject as xa, icons as Ot, ArrowDown as Nn, Search as nt, CopyDocument as Ca, Back as Va, VtjIconPlus as Mn, EditPen as
|
11
|
+
import { VtjIconBack as fa, VtjIconPc as ha, VtjIconPhone as ba, VtjIconPad as ya, VtjIconUndo as _a, VtjIconRedo as wa, VtjIconTemplate as vt, VtjIconPreview as ka, VtjIconRefresh as Ln, VtjIconSetting as Wn, Download as Rt, VtjIconPublish as Sa, VtjIconProject as xa, icons as Ot, ArrowDown as Nn, Search as nt, CopyDocument as Ca, Back as Va, VtjIconPlus as Mn, EditPen as ja, Delete as Jn, VtjIconSave as Aa, ArrowUp as Ea, MoreFilled as lt, VtjIconCheck as Un, VtjIconCopy as Ht, VtjIconEdit as qn, VtjIconRemove as kt, VtjIconLock as Hn, VtjIconUnlock as Da, VtjIconInvisible as Gn, VtjIconVisible as Pa, VtjIconHome as Ia, VtjIconShare as Ta, VtjIconComponents as Kn, Files as $a, VtjIconSearch as Ba, VtjIconHelp as Xn, VtjIconLayers as Qn, Rank as Ra, VtjIconArrowUp as Oa, VtjIconArrowDown as za, IconDisplayBlock as Fa, IconDisplayFlex as La, IconDisplayInlineBlock as Wa, IconDisplayInline as Na, IconEyeInvisible as Ma, IconFlexDirectionrow as Ja, IconFlexDirectionrowReverse as Ua, IconFlexDirectioncolumn as qa, IconFlexDirectioncolumnReverse as Ha, IconFlexJustifyflexStartrow as Ga, IconFlexJustifyflexEndrow as Ka, IconFlexJustifycenterrow as Xa, IconFlexJustifyspaceBetweenrow as Qa, IconFlexJustifyspaceAroundrow as Ya, IconFlexAlignflexStartrow as Za, IconFlexAlignflexEndrow as es, IconFlexAligncenterrow as ts, IconFlexAlignbaselinerow as ns, IconFlexAlignstretchrow as ls, IconPositionTopLeft as as, IconPositionTopRight as ss, IconPositionBottomLeft as os, IconPositionBottomRight as rs, IconPositionLeft as is, IconPositionRight as us, IconPositionTop as cs, IconPositionBottom as ds, IconPositionAll as ps, IconTextAlignLeft as ms, IconTextAlignCenter as vs, IconTextAlignRight as gs, IconTextAlignJustify as fs, IconFontStyleNone as hs, IconFontStyleItalic as bs, IconCross as Yn, IconTextDecorationUnderline as ys, IconTextDecorationStrike as _s, IconTextDecorationOverline as ws, IconTileXy as ks, IconTileX as Ss, IconTileY as xs, IconClose as Cs, IconBorderAll as Vs, IconBorderLeft as js, IconBorderTop as As, IconBorderBottom as Es, IconBorderRight as Ds, IconBorderStyleSolid as Ps, IconBorderStyleDashed as Is, IconBorderStyleDotted as Ts, IconCursorAuto as $s, IconCursorPointer as Bs, IconCursorNotAllowed as Rs, IconCursorNone as Os, ArrowRight as zs, UserFilled as Fs, VtjIconDocument as Ls, VtjIconBlock as Ws, VtjIconOutline as Ns, VtjIconHistory as Ms, VtjIconApi as Js, VtjIconCategory as Us, HomeFilled as qs, Plus as Hs, Close as Gs, VtjIconVars as Ks, VtjIconSwitch as Xs, Switch as Qs } from "@vtj/icons";
|
12
12
|
import Ys from "html2canvas";
|
13
13
|
import Zs from "mockjs";
|
14
14
|
/**!
|
15
15
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
16
16
|
* @name @vtj/designer
|
17
17
|
* @author CHC chenhuachun1549@dingtalk.com
|
18
|
-
* @version 0.9.0-alpha.
|
18
|
+
* @version 0.9.0-alpha.33
|
19
19
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
20
20
|
*/
|
21
|
-
const eo = "0.9.0-alpha.
|
21
|
+
const eo = "0.9.0-alpha.33", un = {
|
22
22
|
width: 390,
|
23
23
|
height: 844
|
24
24
|
}, cn = {
|
25
25
|
width: 1024,
|
26
26
|
height: 768
|
27
|
-
},
|
27
|
+
}, Ae = /^[A-Za-z_$][\:\w_-]*$/, to = /(\d+)\.(\d+)\.(\d+)/, no = [
|
28
28
|
"click",
|
29
29
|
"dblclick",
|
30
30
|
"mouseenter",
|
@@ -139,11 +139,11 @@ function mo(i, t, e, l, a) {
|
|
139
139
|
const o = ce();
|
140
140
|
o.simulator.init(i, t, e, l, a);
|
141
141
|
const s = C(() => o.simulator.designer.value), r = C(
|
142
|
-
() =>
|
142
|
+
() => jt("hover", s.value?.hover.value)
|
143
143
|
), u = C(
|
144
|
-
() =>
|
144
|
+
() => jt("dropping", s.value?.dropping.value)
|
145
145
|
), f = C(
|
146
|
-
() =>
|
146
|
+
() => jt("selected", s.value?.selected.value)
|
147
147
|
);
|
148
148
|
return M(o.changed, () => {
|
149
149
|
s.value?.updateRect();
|
@@ -179,7 +179,7 @@ function go(i) {
|
|
179
179
|
}
|
180
180
|
return r;
|
181
181
|
}
|
182
|
-
function
|
182
|
+
function jt(i, t) {
|
183
183
|
if (!t) return null;
|
184
184
|
const { left: e, top: l, width: a, height: o } = i === "dropping" ? go(t) : t.rect, s = {
|
185
185
|
left: `${e}px`,
|
@@ -213,12 +213,12 @@ function fo(i, t) {
|
|
213
213
|
_.length && p.push({ title: "上下文", items: _ });
|
214
214
|
const c = u.inject.map((O) => `this.${O.name}`);
|
215
215
|
c.length && p.push({ title: "注入", items: c });
|
216
|
-
const
|
216
|
+
const h = u.props.map(
|
217
217
|
(O) => typeof O == "string" ? `this.props.${O}` : `this.props.${O.name}`
|
218
218
|
);
|
219
|
-
|
220
|
-
const
|
221
|
-
|
219
|
+
h.length && p.push({ title: "属性", items: h });
|
220
|
+
const b = Object.keys(u.state).map((O) => `this.state.${O}`);
|
221
|
+
b.length && p.push({ title: "状态", items: b });
|
222
222
|
const k = Object.keys(u.computed).map(
|
223
223
|
(O) => `this.${O}.value`
|
224
224
|
);
|
@@ -470,12 +470,12 @@ function So(i) {
|
|
470
470
|
const t = ce(), e = C(() => {
|
471
471
|
const c = i.value?.model || null;
|
472
472
|
return ne(c) ? null : c;
|
473
|
-
}), l = (c) => C(() => e.value && (e.value.directives || []).find((
|
473
|
+
}), l = (c) => C(() => e.value && (e.value.directives || []).find((h) => h.name === c) || pn(c)), a = () => C(() => {
|
474
474
|
if (!e.value) return [];
|
475
475
|
const c = t.assets.componentMap.get(e.value.name || "");
|
476
|
-
return (c ? ko(c) : []).map((
|
477
|
-
(k) => k.name === "vModel" && k.arg ==
|
478
|
-
) || wo(
|
476
|
+
return (c ? ko(c) : []).map((b) => (e.value?.directives || []).find(
|
477
|
+
(k) => k.name === "vModel" && k.arg == b.name
|
478
|
+
) || wo(b.name));
|
479
479
|
}), o = l("vIf"), s = l("vShow"), r = l("vBind"), u = l("vFor"), f = a(), p = {
|
480
480
|
vIf: o,
|
481
481
|
vShow: s,
|
@@ -490,26 +490,26 @@ function So(i) {
|
|
490
490
|
vBind: r,
|
491
491
|
vFor: u,
|
492
492
|
vModels: f,
|
493
|
-
onValueChange: (c,
|
494
|
-
const
|
495
|
-
e.value && (
|
493
|
+
onValueChange: (c, h) => {
|
494
|
+
const b = p[c];
|
495
|
+
e.value && (h ? (b.value.value = h, e.value.setDirective(b.value)) : (b.value.value = void 0, e.value.removeDirective(b.value)));
|
496
496
|
},
|
497
|
-
onForChange: (c,
|
497
|
+
onForChange: (c, h) => {
|
498
498
|
if (e.value) {
|
499
499
|
if (c === "value") {
|
500
|
-
|
500
|
+
h ? (u.value.value = h, e.value.setDirective(u.value)) : e.value.removeDirective(u.value);
|
501
501
|
return;
|
502
502
|
}
|
503
503
|
(c === "item" || c === "index") && (u.value.iterator = {
|
504
504
|
...u.value.iterator,
|
505
|
-
[c]:
|
505
|
+
[c]: h || void 0
|
506
506
|
}, e.value.setDirective(u.value));
|
507
507
|
}
|
508
508
|
},
|
509
|
-
onModelChange: (c,
|
509
|
+
onModelChange: (c, h) => {
|
510
510
|
if (!e.value) return;
|
511
|
-
const
|
512
|
-
k && (
|
511
|
+
const b = parseInt(c), k = f.value[b];
|
512
|
+
k && (h ? (k.value = h, e.value.setDirective(k)) : (k.value = void 0, e.value.removeDirective(k)));
|
513
513
|
}
|
514
514
|
};
|
515
515
|
}
|
@@ -528,22 +528,22 @@ function Kt() {
|
|
528
528
|
}, o = async () => {
|
529
529
|
const _ = t?.getData()?.token;
|
530
530
|
if (_) {
|
531
|
-
const c = `${e}/api/open/user/${_}`,
|
532
|
-
return !!(
|
531
|
+
const c = `${e}/api/open/user/${_}`, h = await Me(c).catch(() => null);
|
532
|
+
return !!(h && h.data);
|
533
533
|
}
|
534
534
|
return !1;
|
535
535
|
}, s = async () => {
|
536
536
|
const _ = `${e}/api/open/templates`, c = t?.getData()?.token;
|
537
537
|
return (await Me(_, { query: c ? { token: c } : {} }))?.data || [];
|
538
538
|
}, r = async (_) => {
|
539
|
-
const c = t?.getData()?.token,
|
540
|
-
return (await Me(
|
539
|
+
const c = t?.getData()?.token, h = `${e}/api/open/template/${c}`;
|
540
|
+
return (await Me(h, { query: { id: _ } }))?.data || null;
|
541
541
|
}, u = async (_) => {
|
542
|
-
const c = t?.getData()?.token,
|
543
|
-
return !!(await Me(
|
542
|
+
const c = t?.getData()?.token, h = `${e}/api/open/template/remove/${c}`;
|
543
|
+
return !!(await Me(h, { query: { id: _ } }))?.data;
|
544
544
|
}, f = async (_) => {
|
545
|
-
const c = t?.getData()?.token,
|
546
|
-
return
|
545
|
+
const c = t?.getData()?.token, h = `${e}/api/open/dsl/${c}`, b = await Me(h, { query: { id: _ } });
|
546
|
+
return b?.data ? b.data : null;
|
547
547
|
}, p = async (_) => {
|
548
548
|
const c = `${e}/api/open/dict/${_}`;
|
549
549
|
return (await Me(c))?.data || [];
|
@@ -560,12 +560,12 @@ function Kt() {
|
|
560
560
|
getDictOptions: p,
|
561
561
|
getTemplateCategories: () => p("TemplateCategory"),
|
562
562
|
publishTemplate: async (_) => {
|
563
|
-
const c = t?.getData()?.token,
|
563
|
+
const c = t?.getData()?.token, h = `${e}/api/open/template/publish/${c}`, b = new FormData();
|
564
564
|
for (const [k, x] of Object.entries(_))
|
565
|
-
x !== void 0 &&
|
566
|
-
return window.fetch(
|
565
|
+
x !== void 0 && b.append(k, x);
|
566
|
+
return window.fetch(h, {
|
567
567
|
method: "post",
|
568
|
-
body:
|
568
|
+
body: b
|
569
569
|
}).then((k) => k.json());
|
570
570
|
},
|
571
571
|
getTemplateById: r,
|
@@ -590,13 +590,13 @@ function Co() {
|
|
590
590
|
});
|
591
591
|
return;
|
592
592
|
}
|
593
|
-
const
|
594
|
-
if (!
|
593
|
+
const h = await o(g);
|
594
|
+
if (!h)
|
595
595
|
return await De.alert("模板不可用,可能该模板没发布过版本", {
|
596
596
|
type: "error",
|
597
597
|
title: "提示"
|
598
598
|
});
|
599
|
-
const
|
599
|
+
const b = _.toDsl(), { id: k, name: x } = b, D = { ...h, id: k, name: x }, I = c.currentFile;
|
600
600
|
i.onSaveBlockFileFinish(() => {
|
601
601
|
_.update(D), Pe.success({
|
602
602
|
message: "模板已加载完成"
|
@@ -629,7 +629,7 @@ function Co() {
|
|
629
629
|
loading: u
|
630
630
|
};
|
631
631
|
}
|
632
|
-
const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e",
|
632
|
+
const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e", jo = ["title", "src"], Ao = { key: 1 }, Eo = /* @__PURE__ */ E({
|
633
633
|
name: "LogoWidget",
|
634
634
|
inheritAttrs: !1,
|
635
635
|
__name: "index",
|
@@ -642,23 +642,23 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
642
642
|
const { engine: t } = me(), e = i, l = C(() => e.icon || t.project.value?.config?.logo || Vo), a = () => {
|
643
643
|
e.link && (location.href = e.link);
|
644
644
|
};
|
645
|
-
return (o, s) => (d(),
|
645
|
+
return (o, s) => (d(), j("div", {
|
646
646
|
class: "v-logo-widget",
|
647
647
|
onClick: a
|
648
648
|
}, [
|
649
|
-
l.value ? (d(),
|
649
|
+
l.value ? (d(), j("img", {
|
650
650
|
key: 0,
|
651
651
|
title: e.text,
|
652
652
|
class: "v-logo-widget__icon",
|
653
653
|
src: l.value
|
654
|
-
}, null, 8,
|
654
|
+
}, null, 8, jo)) : (d(), j("span", Ao, L(e.text), 1))
|
655
655
|
]));
|
656
656
|
}
|
657
657
|
}), Do = { class: "v-empty-widget" }, Po = /* @__PURE__ */ E({
|
658
658
|
name: "EmptyWidget",
|
659
659
|
__name: "index",
|
660
660
|
setup(i) {
|
661
|
-
return (t, e) => (d(),
|
661
|
+
return (t, e) => (d(), j("div", Do, "EmptyWidget"));
|
662
662
|
}
|
663
663
|
}), Io = { class: "v-switcher-widget" }, To = { key: 1 }, $o = /* @__PURE__ */ E({
|
664
664
|
name: "SwitcherWidget",
|
@@ -669,7 +669,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
669
669
|
const e = t, { engine: l } = me(), a = C(() => l.project.value?.config?.title || l.project.value?.name), o = C(() => l.project.value?.currentFile?.title), s = () => {
|
670
670
|
e("click", l.project.value);
|
671
671
|
};
|
672
|
-
return (r, u) => (d(),
|
672
|
+
return (r, u) => (d(), j("div", Io, [
|
673
673
|
m(n(le), {
|
674
674
|
size: "small",
|
675
675
|
round: "",
|
@@ -681,8 +681,8 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
681
681
|
o.value ? (d(), w(n(Lt), {
|
682
682
|
key: 0,
|
683
683
|
direction: "vertical"
|
684
|
-
})) :
|
685
|
-
o.value ? (d(),
|
684
|
+
})) : A("", !0),
|
685
|
+
o.value ? (d(), j("span", To, L(o.value), 1)) : A("", !0)
|
686
686
|
]),
|
687
687
|
_: 1
|
688
688
|
})
|
@@ -699,7 +699,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
699
699
|
const e = i, { forward: l, backward: a, forwardDisabled: o, backwardDisabled: s } = el(), r = S("pc");
|
700
700
|
return t({
|
701
701
|
mode: r
|
702
|
-
}), (u, f) => (d(),
|
702
|
+
}), (u, f) => (d(), j("div", Bo, [
|
703
703
|
m(n(Cn), {
|
704
704
|
size: "small",
|
705
705
|
modelValue: r.value,
|
@@ -736,7 +736,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
736
736
|
]),
|
737
737
|
_: 1
|
738
738
|
}, 8, ["modelValue"]),
|
739
|
-
|
739
|
+
A("", !0),
|
740
740
|
m(n(_l), null, {
|
741
741
|
default: y(() => [
|
742
742
|
m(n(le), {
|
@@ -811,14 +811,14 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
811
811
|
category: "",
|
812
812
|
version: "",
|
813
813
|
...s
|
814
|
-
},
|
815
|
-
message:
|
814
|
+
}, h = await l(c).catch((b) => (Pe.error({
|
815
|
+
message: b.message || b || "未知错误"
|
816
816
|
}), !1));
|
817
|
-
return
|
817
|
+
return h && (Pe.success({
|
818
818
|
message: "发布模板成功!"
|
819
|
-
}), o.skeleton?.getWidget("Templates")?.widgetRef.refreshTemplates()), !!
|
819
|
+
}), o.skeleton?.getWidget("Templates")?.widgetRef.refreshTemplates()), !!h;
|
820
820
|
};
|
821
|
-
return (p, v) => (d(), w(n(
|
821
|
+
return (p, v) => (d(), w(n(je), {
|
822
822
|
width: "600px",
|
823
823
|
height: "760px",
|
824
824
|
icon: n(vt),
|
@@ -843,7 +843,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
843
843
|
name: "name",
|
844
844
|
required: "",
|
845
845
|
rules: {
|
846
|
-
pattern: n(
|
846
|
+
pattern: n(Ae),
|
847
847
|
message: "名称格式不正确,要求英文字母大写驼峰格式"
|
848
848
|
}
|
849
849
|
}, null, 8, ["rules"]),
|
@@ -895,7 +895,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
895
895
|
link: {}
|
896
896
|
},
|
897
897
|
setup(i) {
|
898
|
-
return (t, e) => (d(),
|
898
|
+
return (t, e) => (d(), j("div", Lo, [
|
899
899
|
e[0] || (e[0] = V("div", null, "已生成源码项目,可通过以下链接下载(两小时内有效)。", -1)),
|
900
900
|
V("div", null, [
|
901
901
|
V("a", {
|
@@ -929,14 +929,14 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
929
929
|
} else
|
930
930
|
de("请先打开文件", "warning");
|
931
931
|
}, g = () => {
|
932
|
-
const
|
933
|
-
|
932
|
+
const b = e.project.value;
|
933
|
+
b && (b.currentFile ? b.publish(b.currentFile) : de("请先打开文件", "warning"));
|
934
934
|
}, _ = async () => {
|
935
|
-
const
|
936
|
-
if (
|
937
|
-
if (
|
935
|
+
const b = e.project.value;
|
936
|
+
if (b)
|
937
|
+
if (b.currentFile)
|
938
938
|
if (await a()) {
|
939
|
-
const k = await e.simulator.capture(), { name: x, title: D, market: I } =
|
939
|
+
const k = await e.simulator.capture(), { name: x, title: D, market: I } = b.currentFile;
|
940
940
|
if (!k) {
|
941
941
|
de("截图失败", "warning");
|
942
942
|
return;
|
@@ -959,10 +959,10 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
959
959
|
).catch(() => !1) && o();
|
960
960
|
else
|
961
961
|
de("请先打开文件", "warning");
|
962
|
-
}, c = (
|
962
|
+
}, c = (b) => {
|
963
963
|
const k = e.project.value;
|
964
964
|
if (k)
|
965
|
-
switch (
|
965
|
+
switch (b) {
|
966
966
|
case "current":
|
967
967
|
g();
|
968
968
|
break;
|
@@ -973,10 +973,9 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
973
973
|
_();
|
974
974
|
break;
|
975
975
|
}
|
976
|
-
},
|
977
|
-
|
978
|
-
|
979
|
-
const k = await e.service.genSource(h.toDsl());
|
976
|
+
}, h = async () => {
|
977
|
+
if (!e.project.value) return;
|
978
|
+
const k = await e.genSource();
|
980
979
|
k && $n({
|
981
980
|
width: "600px",
|
982
981
|
height: "200px",
|
@@ -985,9 +984,9 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
985
984
|
content: Le(No, { link: k })
|
986
985
|
});
|
987
986
|
};
|
988
|
-
return (
|
989
|
-
|
990
|
-
|
987
|
+
return (b, k) => (d(), j("div", Mo, [
|
988
|
+
A("", !0),
|
989
|
+
A("", !0),
|
991
990
|
m(n(le), {
|
992
991
|
onClick: v,
|
993
992
|
type: s.value ? "warning" : "default",
|
@@ -1024,7 +1023,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1024
1023
|
m(n(Lt), { direction: "vertical" }),
|
1025
1024
|
t.coder ? (d(), w(n(le), {
|
1026
1025
|
key: 2,
|
1027
|
-
onClick:
|
1026
|
+
onClick: h,
|
1028
1027
|
icon: n(Rt),
|
1029
1028
|
size: "small",
|
1030
1029
|
type: "success"
|
@@ -1033,7 +1032,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1033
1032
|
H(" 出码 ")
|
1034
1033
|
])),
|
1035
1034
|
_: 1
|
1036
|
-
}, 8, ["icon"])) :
|
1035
|
+
}, 8, ["icon"])) : A("", !0),
|
1037
1036
|
t.onlyPublishTemplate ? (d(), w(n(le), {
|
1038
1037
|
key: 3,
|
1039
1038
|
onClick: _,
|
@@ -1045,7 +1044,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1045
1044
|
H(" 发布模板 ")
|
1046
1045
|
])),
|
1047
1046
|
_: 1
|
1048
|
-
}, 8, ["icon"])) : (d(), w(n(
|
1047
|
+
}, 8, ["icon"])) : (d(), w(n(jn), {
|
1049
1048
|
key: 4,
|
1050
1049
|
"split-button": "",
|
1051
1050
|
type: "primary",
|
@@ -1054,7 +1053,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1054
1053
|
onCommand: c
|
1055
1054
|
}, {
|
1056
1055
|
dropdown: y(() => [
|
1057
|
-
m(n(
|
1056
|
+
m(n(An), null, {
|
1058
1057
|
default: y(() => [
|
1059
1058
|
m(n(ct), {
|
1060
1059
|
command: "current",
|
@@ -1097,7 +1096,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1097
1096
|
key: 5,
|
1098
1097
|
modelValue: r.value,
|
1099
1098
|
"onUpdate:modelValue": k[0] || (k[0] = (x) => r.value = x)
|
1100
|
-
}, u.value), null, 16, ["modelValue"])) :
|
1099
|
+
}, u.value), null, 16, ["modelValue"])) : A("", !0)
|
1101
1100
|
]));
|
1102
1101
|
}
|
1103
1102
|
});
|
@@ -1187,54 +1186,54 @@ function Zo(i, t, e = {}) {
|
|
1187
1186
|
const { window: l = xt, ignore: a = [], capture: o = !0, detectIframe: s = !1 } = e;
|
1188
1187
|
if (!l)
|
1189
1188
|
return dt;
|
1190
|
-
Ho && !mn && (mn = !0, Array.from(l.document.body.children).forEach((
|
1189
|
+
Ho && !mn && (mn = !0, Array.from(l.document.body.children).forEach((h) => h.addEventListener("click", dt)), l.document.documentElement.addEventListener("click", dt));
|
1191
1190
|
let r = !0;
|
1192
|
-
const u = (
|
1193
|
-
if (typeof
|
1194
|
-
return Array.from(l.document.querySelectorAll(
|
1191
|
+
const u = (h) => Be(a).some((b) => {
|
1192
|
+
if (typeof b == "string")
|
1193
|
+
return Array.from(l.document.querySelectorAll(b)).some((k) => k === h.target || h.composedPath().includes(k));
|
1195
1194
|
{
|
1196
|
-
const k = Se(
|
1197
|
-
return k && (
|
1195
|
+
const k = Se(b);
|
1196
|
+
return k && (h.target === k || h.composedPath().includes(k));
|
1198
1197
|
}
|
1199
1198
|
});
|
1200
|
-
function f(
|
1201
|
-
const
|
1202
|
-
return
|
1203
|
-
}
|
1204
|
-
function p(
|
1205
|
-
const k = Be(
|
1206
|
-
return x == null || !Array.isArray(x) ? !1 : x.some((D) => D.el ===
|
1207
|
-
}
|
1208
|
-
const v = (
|
1209
|
-
const
|
1210
|
-
if (
|
1211
|
-
if (
|
1199
|
+
function f(h) {
|
1200
|
+
const b = Be(h);
|
1201
|
+
return b && b.$.subTree.shapeFlag === 16;
|
1202
|
+
}
|
1203
|
+
function p(h, b) {
|
1204
|
+
const k = Be(h), x = k.$.subTree && k.$.subTree.children;
|
1205
|
+
return x == null || !Array.isArray(x) ? !1 : x.some((D) => D.el === b.target || b.composedPath().includes(D.el));
|
1206
|
+
}
|
1207
|
+
const v = (h) => {
|
1208
|
+
const b = Se(i);
|
1209
|
+
if (h.target != null && !(!(b instanceof Element) && f(i) && p(i, h)) && !(!b || b === h.target || h.composedPath().includes(b))) {
|
1210
|
+
if (h.detail === 0 && (r = !u(h)), !r) {
|
1212
1211
|
r = !0;
|
1213
1212
|
return;
|
1214
1213
|
}
|
1215
|
-
t(
|
1214
|
+
t(h);
|
1216
1215
|
}
|
1217
1216
|
};
|
1218
1217
|
let g = !1;
|
1219
1218
|
const _ = [
|
1220
|
-
Xe(l, "click", (
|
1219
|
+
Xe(l, "click", (h) => {
|
1221
1220
|
g || (g = !0, setTimeout(() => {
|
1222
1221
|
g = !1;
|
1223
|
-
}, 0), v(
|
1222
|
+
}, 0), v(h));
|
1224
1223
|
}, { passive: !0, capture: o }),
|
1225
|
-
Xe(l, "pointerdown", (
|
1226
|
-
const
|
1227
|
-
r = !u(
|
1224
|
+
Xe(l, "pointerdown", (h) => {
|
1225
|
+
const b = Se(i);
|
1226
|
+
r = !u(h) && !!(b && !h.composedPath().includes(b));
|
1228
1227
|
}, { passive: !0 }),
|
1229
|
-
s && Xe(l, "blur", (
|
1228
|
+
s && Xe(l, "blur", (h) => {
|
1230
1229
|
setTimeout(() => {
|
1231
|
-
var
|
1230
|
+
var b;
|
1232
1231
|
const k = Se(i);
|
1233
|
-
((
|
1232
|
+
((b = l.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !k?.contains(l.document.activeElement) && t(h);
|
1234
1233
|
}, 0);
|
1235
1234
|
})
|
1236
1235
|
].filter(Boolean);
|
1237
|
-
return () => _.forEach((
|
1236
|
+
return () => _.forEach((h) => h());
|
1238
1237
|
}
|
1239
1238
|
function er() {
|
1240
1239
|
const i = S(!1), t = hn();
|
@@ -1286,17 +1285,17 @@ function nl(i = {}) {
|
|
1286
1285
|
function _() {
|
1287
1286
|
s.value && k(r.value) ? t.clipboard.readText().then((x) => {
|
1288
1287
|
p.value = x;
|
1289
|
-
}) : p.value =
|
1288
|
+
}) : p.value = b();
|
1290
1289
|
}
|
1291
1290
|
f.value && e && Xe(["copy", "cut"], _);
|
1292
1291
|
async function c(x = Be(l)) {
|
1293
|
-
f.value && x != null && (s.value && k(u.value) ? await t.clipboard.writeText(x) :
|
1292
|
+
f.value && x != null && (s.value && k(u.value) ? await t.clipboard.writeText(x) : h(x), p.value = x, v.value = !0, g.start());
|
1294
1293
|
}
|
1295
|
-
function
|
1294
|
+
function h(x) {
|
1296
1295
|
const D = document.createElement("textarea");
|
1297
1296
|
D.value = x ?? "", D.style.position = "absolute", D.style.opacity = "0", document.body.appendChild(D), D.select(), document.execCommand("copy"), D.remove();
|
1298
1297
|
}
|
1299
|
-
function
|
1298
|
+
function b() {
|
1300
1299
|
var x, D, I;
|
1301
1300
|
return (I = (D = (x = document?.getSelection) == null ? void 0 : x.call(document)) == null ? void 0 : D.toString()) != null ? I : "";
|
1302
1301
|
}
|
@@ -1352,7 +1351,7 @@ function tt(i, t = { width: 0, height: 0 }, e = {}) {
|
|
1352
1351
|
}
|
1353
1352
|
} else if (g) {
|
1354
1353
|
const _ = Array.isArray(g) ? g : [g];
|
1355
|
-
s.value = _.reduce((c, { inlineSize:
|
1354
|
+
s.value = _.reduce((c, { inlineSize: h }) => c + h, 0), r.value = _.reduce((c, { blockSize: h }) => c + h, 0);
|
1356
1355
|
} else
|
1357
1356
|
s.value = v.contentRect.width, r.value = v.contentRect.height;
|
1358
1357
|
},
|
@@ -1400,7 +1399,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1400
1399
|
}, g = () => {
|
1401
1400
|
a.value = !0;
|
1402
1401
|
};
|
1403
|
-
return (_, c) => (d(),
|
1402
|
+
return (_, c) => (d(), j("div", nr, [
|
1404
1403
|
m(n(be), {
|
1405
1404
|
size: e.size,
|
1406
1405
|
readonly: "",
|
@@ -1423,7 +1422,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1423
1422
|
submit: "",
|
1424
1423
|
clear: "",
|
1425
1424
|
modelValue: a.value,
|
1426
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
1425
|
+
"onUpdate:modelValue": c[1] || (c[1] = (h) => a.value = h),
|
1427
1426
|
onSubmit: p
|
1428
1427
|
}, {
|
1429
1428
|
extra: y(() => [
|
@@ -1445,21 +1444,21 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1445
1444
|
"prefix-icon": n(nt),
|
1446
1445
|
clearable: "",
|
1447
1446
|
modelValue: s.value,
|
1448
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
1447
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => s.value = h),
|
1449
1448
|
placeholder: "请输入查询关键字"
|
1450
1449
|
}, null, 8, ["size", "prefix-icon", "modelValue"]),
|
1451
1450
|
V("div", ar, [
|
1452
|
-
(d(!0),
|
1453
|
-
icon:
|
1454
|
-
onClick: (
|
1455
|
-
class: K({ "is-active": o.value ===
|
1451
|
+
(d(!0), j(z, null, W(u.value, (h) => (d(), w(n(Re), {
|
1452
|
+
icon: h[1],
|
1453
|
+
onClick: (b) => f(h[0]),
|
1454
|
+
class: K({ "is-active": o.value === h[0] })
|
1456
1455
|
}, null, 8, ["icon", "onClick", "class"]))), 256)),
|
1457
|
-
u.value.length === 0 ? (d(), w(n(ie), { key: 0 })) :
|
1456
|
+
u.value.length === 0 ? (d(), w(n(ie), { key: 0 })) : A("", !0)
|
1458
1457
|
])
|
1459
1458
|
])
|
1460
1459
|
]),
|
1461
1460
|
_: 1
|
1462
|
-
}, 8, ["modelValue"])) :
|
1461
|
+
}, 8, ["modelValue"])) : A("", !0)
|
1463
1462
|
]));
|
1464
1463
|
}
|
1465
1464
|
}), re = fl({
|
@@ -1514,7 +1513,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1514
1513
|
message: "已经复制到粘贴板"
|
1515
1514
|
});
|
1516
1515
|
};
|
1517
|
-
return (c,
|
1516
|
+
return (c, h) => (d(), w(n(je), {
|
1518
1517
|
title: o.value,
|
1519
1518
|
width: "800px",
|
1520
1519
|
height: "700px",
|
@@ -1543,7 +1542,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1543
1542
|
H(L(`${n(l).options.pageBasePath || ""}/page/${r.value.id}`) + " ", 1),
|
1544
1543
|
m(n(Re), {
|
1545
1544
|
icon: n(Ca),
|
1546
|
-
onClick:
|
1545
|
+
onClick: h[0] || (h[0] = (b) => _(
|
1547
1546
|
`${n(l).options.pageBasePath || ""}/page/${r.value.id}`
|
1548
1547
|
))
|
1549
1548
|
}, null, 8, ["icon"])
|
@@ -1552,13 +1551,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1552
1551
|
})
|
1553
1552
|
]),
|
1554
1553
|
_: 1
|
1555
|
-
})) :
|
1554
|
+
})) : A("", !0),
|
1556
1555
|
m(n(P), {
|
1557
1556
|
name: "name",
|
1558
1557
|
label: "名称",
|
1559
1558
|
required: "",
|
1560
1559
|
onChange: p,
|
1561
|
-
rules: { pattern: n(
|
1560
|
+
rules: { pattern: n(Ae), message: "名称格式不正确" }
|
1562
1561
|
}, null, 8, ["rules"]),
|
1563
1562
|
m(n(P), {
|
1564
1563
|
name: "title",
|
@@ -1573,7 +1572,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1573
1572
|
editor: y(() => [
|
1574
1573
|
m(ll, {
|
1575
1574
|
modelValue: r.value.icon,
|
1576
|
-
"onUpdate:modelValue":
|
1575
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => r.value.icon = b),
|
1577
1576
|
size: "default"
|
1578
1577
|
}, null, 8, ["modelValue"])
|
1579
1578
|
]),
|
@@ -1631,7 +1630,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1631
1630
|
height: "100px",
|
1632
1631
|
lang: "json",
|
1633
1632
|
modelValue: u.value,
|
1634
|
-
"onUpdate:modelValue":
|
1633
|
+
"onUpdate:modelValue": h[2] || (h[2] = (b) => u.value = b)
|
1635
1634
|
}, null, 8, ["modelValue"])
|
1636
1635
|
]),
|
1637
1636
|
_: 1
|
@@ -1714,8 +1713,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1714
1713
|
l("remove");
|
1715
1714
|
}, v = () => {
|
1716
1715
|
l("save");
|
1717
|
-
}, g = (
|
1718
|
-
l("command",
|
1716
|
+
}, g = (h) => {
|
1717
|
+
l("command", h.command);
|
1719
1718
|
}, _ = C(() => e.header ? {
|
1720
1719
|
content: e.title,
|
1721
1720
|
subtitle: e.subtitle,
|
@@ -1724,10 +1723,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1724
1723
|
onClick: e.collapsable ? () => {
|
1725
1724
|
a.value = !a.value;
|
1726
1725
|
} : void 0
|
1727
|
-
} : null), c = (
|
1728
|
-
a.value =
|
1726
|
+
} : null), c = (h) => {
|
1727
|
+
a.value = h;
|
1729
1728
|
};
|
1730
|
-
return (
|
1729
|
+
return (h, b) => (d(), w(n(yt), {
|
1731
1730
|
class: K(["v-panel", o.value]),
|
1732
1731
|
border: !1,
|
1733
1732
|
header: _.value,
|
@@ -1736,16 +1735,16 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1736
1735
|
actions: y(() => [
|
1737
1736
|
e.refresh ? (d(), w(n(ge), {
|
1738
1737
|
key: 0,
|
1739
|
-
size:
|
1738
|
+
size: h.$attrs.size,
|
1740
1739
|
mode: "icon",
|
1741
1740
|
icon: n(Ln),
|
1742
1741
|
background: "hover",
|
1743
1742
|
title: "刷新",
|
1744
1743
|
onClick: s
|
1745
|
-
}, null, 8, ["size", "icon"])) :
|
1744
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1746
1745
|
e.plus ? (d(), w(n(ge), {
|
1747
1746
|
key: 1,
|
1748
|
-
size:
|
1747
|
+
size: h.$attrs.size,
|
1749
1748
|
mode: "icon",
|
1750
1749
|
icon: n(Mn),
|
1751
1750
|
background: "hover",
|
@@ -1754,67 +1753,67 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1754
1753
|
dropdown: { placement: "bottom-end" },
|
1755
1754
|
onClick: r,
|
1756
1755
|
onCommand: g
|
1757
|
-
}, null, 8, ["size", "icon", "menus"])) :
|
1756
|
+
}, null, 8, ["size", "icon", "menus"])) : A("", !0),
|
1758
1757
|
e.edit ? (d(), w(n(ge), {
|
1759
1758
|
key: 2,
|
1760
|
-
size:
|
1759
|
+
size: h.$attrs.size,
|
1761
1760
|
mode: "icon",
|
1762
|
-
icon: n(
|
1761
|
+
icon: n(ja),
|
1763
1762
|
background: "hover",
|
1764
1763
|
title: "编辑",
|
1765
1764
|
onClick: u
|
1766
|
-
}, null, 8, ["size", "icon"])) :
|
1765
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1767
1766
|
e.remove ? (d(), w(n(ge), {
|
1768
1767
|
key: 3,
|
1769
|
-
size:
|
1768
|
+
size: h.$attrs.size,
|
1770
1769
|
mode: "icon",
|
1771
1770
|
icon: n(Jn),
|
1772
1771
|
background: "hover",
|
1773
1772
|
title: "清除",
|
1774
1773
|
onClick: p
|
1775
|
-
}, null, 8, ["size", "icon"])) :
|
1774
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1776
1775
|
e.save ? (d(), w(n(ge), {
|
1777
1776
|
key: 4,
|
1778
|
-
size:
|
1777
|
+
size: h.$attrs.size,
|
1779
1778
|
mode: "icon",
|
1780
|
-
icon: n(
|
1779
|
+
icon: n(Aa),
|
1781
1780
|
background: "hover",
|
1782
1781
|
title: "保存",
|
1783
1782
|
onClick: v
|
1784
|
-
}, null, 8, ["size", "icon"])) :
|
1783
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1785
1784
|
e.collapsable ? Ee((d(), w(n(ge), {
|
1786
1785
|
key: 5,
|
1787
|
-
size:
|
1786
|
+
size: h.$attrs.size,
|
1788
1787
|
mode: "icon",
|
1789
1788
|
icon: n(Nn),
|
1790
1789
|
background: "hover",
|
1791
1790
|
title: "展开",
|
1792
|
-
onClick:
|
1791
|
+
onClick: b[0] || (b[0] = (k) => c(!1))
|
1793
1792
|
}, null, 8, ["size", "icon"])), [
|
1794
1793
|
[We, a.value]
|
1795
|
-
]) :
|
1794
|
+
]) : A("", !0),
|
1796
1795
|
e.collapsable ? Ee((d(), w(n(ge), {
|
1797
1796
|
key: 6,
|
1798
|
-
size:
|
1797
|
+
size: h.$attrs.size,
|
1799
1798
|
mode: "icon",
|
1800
1799
|
icon: n(Ea),
|
1801
1800
|
background: "hover",
|
1802
1801
|
title: "收起",
|
1803
|
-
onClick:
|
1802
|
+
onClick: b[1] || (b[1] = (k) => c(!0))
|
1804
1803
|
}, null, 8, ["size", "icon"])), [
|
1805
1804
|
[We, !a.value]
|
1806
|
-
]) :
|
1807
|
-
Ve(
|
1805
|
+
]) : A("", !0),
|
1806
|
+
Ve(h.$slots, "actions")
|
1808
1807
|
]),
|
1809
1808
|
default: y(() => [
|
1810
|
-
Ve(
|
1809
|
+
Ve(h.$slots, "default")
|
1811
1810
|
]),
|
1812
1811
|
_: 2
|
1813
1812
|
}, [
|
1814
|
-
|
1813
|
+
h.$slots.footer ? {
|
1815
1814
|
name: "footer",
|
1816
1815
|
fn: y(() => [
|
1817
|
-
Ve(
|
1816
|
+
Ve(h.$slots, "footer")
|
1818
1817
|
]),
|
1819
1818
|
key: "0"
|
1820
1819
|
} : void 0
|
@@ -1875,7 +1874,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1875
1874
|
onActionClick: r,
|
1876
1875
|
stretch: e.stretch
|
1877
1876
|
}, null, 8, ["items", "modelValue", "stretch"]),
|
1878
|
-
e.menus && e.menus.length ? (d(),
|
1877
|
+
e.menus && e.menus.length ? (d(), j("div", rr, [
|
1879
1878
|
e.menus && e.menus.length ? (d(), w(n(ge), {
|
1880
1879
|
key: 0,
|
1881
1880
|
mode: "icon",
|
@@ -1897,13 +1896,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1897
1896
|
"v-tabs__checked": !0,
|
1898
1897
|
"is-checked": p.checked
|
1899
1898
|
})
|
1900
|
-
}, null, 8, ["class"])) :
|
1899
|
+
}, null, 8, ["class"])) : A("", !0),
|
1901
1900
|
H(" " + L(p.label), 1)
|
1902
1901
|
])
|
1903
1902
|
]),
|
1904
1903
|
_: 1
|
1905
|
-
}, 8, ["icon", "menus"])) :
|
1906
|
-
])) :
|
1904
|
+
}, 8, ["icon", "menus"])) : A("", !0)
|
1905
|
+
])) : A("", !0)
|
1907
1906
|
])
|
1908
1907
|
]),
|
1909
1908
|
default: y(() => [
|
@@ -2044,7 +2043,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2044
2043
|
g.icon ? (d(), w(n(Re), {
|
2045
2044
|
key: 0,
|
2046
2045
|
icon: g.icon
|
2047
|
-
}, null, 8, ["icon"])) :
|
2046
|
+
}, null, 8, ["icon"])) : A("", !0),
|
2048
2047
|
l.tag ? (d(), w(n(Dn), {
|
2049
2048
|
key: 1,
|
2050
2049
|
class: "v-item__tag",
|
@@ -2055,16 +2054,16 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2055
2054
|
H(L(l.tag), 1)
|
2056
2055
|
]),
|
2057
2056
|
_: 1
|
2058
|
-
}, 8, ["type"])) :
|
2059
|
-
g.index !== void 0 ? (d(),
|
2057
|
+
}, 8, ["type"])) : A("", !0),
|
2058
|
+
g.index !== void 0 ? (d(), j("span", ir, " # " + L(g.index), 1)) : A("", !0),
|
2060
2059
|
V("span", ur, L(g.title), 1),
|
2061
|
-
g.subtitle ? (d(),
|
2060
|
+
g.subtitle ? (d(), j("span", {
|
2062
2061
|
key: 3,
|
2063
2062
|
class: K(["v-item__subtitle", l.subtitleCls])
|
2064
|
-
}, L(g.subtitle), 3)) :
|
2065
|
-
l.textTags ? (d(),
|
2066
|
-
(d(!0),
|
2067
|
-
])) :
|
2063
|
+
}, L(g.subtitle), 3)) : A("", !0),
|
2064
|
+
l.textTags ? (d(), j("div", cr, [
|
2065
|
+
(d(!0), j(z, null, W(l.textTags, (c) => (d(), j("span", null, L(c), 1))), 256))
|
2066
|
+
])) : A("", !0)
|
2068
2067
|
])
|
2069
2068
|
]),
|
2070
2069
|
_: 3
|
@@ -2081,7 +2080,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2081
2080
|
}, ["stop"]))
|
2082
2081
|
}, {
|
2083
2082
|
default: y(() => [
|
2084
|
-
(d(!0),
|
2083
|
+
(d(!0), j(z, null, W(s.value, (c) => (d(), w(n(ge), {
|
2085
2084
|
name: c.name,
|
2086
2085
|
title: c.label,
|
2087
2086
|
mode: "icon",
|
@@ -2089,7 +2088,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2089
2088
|
background: "none",
|
2090
2089
|
type: "info",
|
2091
2090
|
icon: c.icon,
|
2092
|
-
onClick: (
|
2091
|
+
onClick: (h) => p(c.name)
|
2093
2092
|
}, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
|
2094
2093
|
l.switch ? (d(), w(n(Pn), {
|
2095
2094
|
key: 0,
|
@@ -2097,7 +2096,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2097
2096
|
"onUpdate:modelValue": _[0] || (_[0] = (c) => o.value = c),
|
2098
2097
|
class: "v-item__switch",
|
2099
2098
|
size: "small"
|
2100
|
-
}, null, 8, ["modelValue"])) :
|
2099
|
+
}, null, 8, ["modelValue"])) : A("", !0),
|
2101
2100
|
Ve(g.$slots, "status")
|
2102
2101
|
]),
|
2103
2102
|
_: 3
|
@@ -2112,7 +2111,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2112
2111
|
menus: r.value,
|
2113
2112
|
dropdown: { placement: "bottom-end" },
|
2114
2113
|
onCommand: v
|
2115
|
-
}, null, 8, ["icon", "menus"])) :
|
2114
|
+
}, null, 8, ["icon", "menus"])) : A("", !0)
|
2116
2115
|
]),
|
2117
2116
|
_: 3
|
2118
2117
|
})
|
@@ -2168,7 +2167,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2168
2167
|
}, v = () => {
|
2169
2168
|
l("dragend", e);
|
2170
2169
|
};
|
2171
|
-
return (g, _) => (d(),
|
2170
|
+
return (g, _) => (d(), j("div", {
|
2172
2171
|
class: K(["v-box", f.value]),
|
2173
2172
|
draggable: g.draggable,
|
2174
2173
|
onDragstart: p,
|
@@ -2206,11 +2205,11 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2206
2205
|
}, null, 8, ["icon"])
|
2207
2206
|
]),
|
2208
2207
|
_: 1
|
2209
|
-
})) :
|
2210
|
-
e.tag ? (d(),
|
2208
|
+
})) : A("", !0),
|
2209
|
+
e.tag ? (d(), j("span", {
|
2211
2210
|
key: 1,
|
2212
2211
|
class: K(["v-box__tag", { [`is-${e.tagType}`]: !!e.tagType }])
|
2213
|
-
}, L(e.tag), 3)) :
|
2212
|
+
}, L(e.tag), 3)) : A("", !0)
|
2214
2213
|
], 42, dr));
|
2215
2214
|
}
|
2216
2215
|
}), vr = { class: "v-context-viewer" }, gr = /* @__PURE__ */ E({
|
@@ -2224,12 +2223,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2224
2223
|
const v = p.value, g = Vt(v);
|
2225
2224
|
return g === "Object" || g === "Module" ? Object.keys(v || {}).length === 0 : g === "Array" ? v.length === 0 : !0;
|
2226
2225
|
}, s = (p, v = "this") => typeof p == "object" ? Array.isArray(p) ? p.map((_, c) => {
|
2227
|
-
const
|
2226
|
+
const h = `[${c}]`;
|
2228
2227
|
return {
|
2229
|
-
label:
|
2228
|
+
label: h,
|
2230
2229
|
value: _,
|
2231
2230
|
type: Vt(_),
|
2232
|
-
path: `${v}${
|
2231
|
+
path: `${v}${h}`
|
2233
2232
|
};
|
2234
2233
|
}) : yo(p).map((_) => {
|
2235
2234
|
const c = p[_];
|
@@ -2253,7 +2252,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2253
2252
|
}, f = (p) => {
|
2254
2253
|
l("pick", p.path);
|
2255
2254
|
};
|
2256
|
-
return (p, v) => (d(),
|
2255
|
+
return (p, v) => (d(), j("div", vr, [
|
2257
2256
|
p.context ? (d(), w(n(Nt), {
|
2258
2257
|
key: 0,
|
2259
2258
|
lazy: "",
|
@@ -2276,7 +2275,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2276
2275
|
}, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
|
2277
2276
|
]),
|
2278
2277
|
_: 1
|
2279
|
-
}, 8, ["props"])) :
|
2278
|
+
}, 8, ["props"])) : A("", !0)
|
2280
2279
|
]));
|
2281
2280
|
}
|
2282
2281
|
}), Zt = /* @__PURE__ */ E({
|
@@ -2319,9 +2318,9 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2319
2318
|
v();
|
2320
2319
|
}, c = async () => {
|
2321
2320
|
f.value?.submit();
|
2322
|
-
}, b = (k) => {
|
2323
|
-
l("pick", k);
|
2324
2321
|
}, h = (k) => {
|
2322
|
+
l("pick", k);
|
2323
|
+
}, b = (k) => {
|
2325
2324
|
s(k), Pe.success({
|
2326
2325
|
message: "已经复制到粘贴板"
|
2327
2326
|
});
|
@@ -2373,30 +2372,30 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2373
2372
|
"prefix-icon": n(nt),
|
2374
2373
|
placeholder: "筛选可用项"
|
2375
2374
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
2376
|
-
(d(!0),
|
2375
|
+
(d(!0), j(z, null, W(n(a), (D) => (d(), j("div", null, [
|
2377
2376
|
m(n(Lt), { "border-style": "dotted" }, {
|
2378
2377
|
default: y(() => [
|
2379
2378
|
H(L(D.title), 1)
|
2380
2379
|
]),
|
2381
2380
|
_: 2
|
2382
2381
|
}, 1024),
|
2383
|
-
(d(!0),
|
2382
|
+
(d(!0), j(z, null, W(D.items, (I) => (d(), w(ve, {
|
2384
2383
|
title: I,
|
2385
2384
|
background: "",
|
2386
2385
|
actions: ["copy"],
|
2387
2386
|
small: "",
|
2388
|
-
onClick: (O) =>
|
2389
|
-
onAction: (O) =>
|
2387
|
+
onClick: (O) => h(I),
|
2388
|
+
onAction: (O) => b(I)
|
2390
2389
|
}, null, 8, ["title", "onClick", "onAction"]))), 256))
|
2391
2390
|
]))), 256)),
|
2392
|
-
n(a).length ?
|
2391
|
+
n(a).length ? A("", !0) : (d(), w(n(ie), { key: 0 }))
|
2393
2392
|
], 512), [
|
2394
2393
|
[We, u.value === "normal"]
|
2395
2394
|
]),
|
2396
2395
|
Ee(m(gr, {
|
2397
2396
|
context: e.context,
|
2398
|
-
onCopy:
|
2399
|
-
onPick:
|
2397
|
+
onCopy: b,
|
2398
|
+
onPick: h
|
2400
2399
|
}, null, 8, ["context"]), [
|
2401
2400
|
[We, u.value === "viewer"]
|
2402
2401
|
])
|
@@ -2429,7 +2428,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2429
2428
|
H(" 移除绑定 ")
|
2430
2429
|
])),
|
2431
2430
|
_: 1
|
2432
|
-
})) :
|
2431
|
+
})) : A("", !0)
|
2433
2432
|
]),
|
2434
2433
|
_: 1
|
2435
2434
|
}),
|
@@ -2524,7 +2523,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2524
2523
|
wrap: "wrap"
|
2525
2524
|
}, {
|
2526
2525
|
default: y(() => [
|
2527
|
-
(d(!0),
|
2526
|
+
(d(!0), j(z, null, W(e.slots, (p, v) => (d(), w(n(q), {
|
2528
2527
|
class: K(["v-slots-picker__item", { "is-active": p.name === a.value?.name }]),
|
2529
2528
|
grow: "",
|
2530
2529
|
flex: !1,
|
@@ -2567,7 +2566,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2567
2566
|
transform: `translate(-50%, -50%) scale(${l.value})`
|
2568
2567
|
};
|
2569
2568
|
});
|
2570
|
-
return (o, s) => (d(),
|
2569
|
+
return (o, s) => (d(), j("div", {
|
2571
2570
|
class: K(["v-viewport", e.value]),
|
2572
2571
|
style: rt(a.value)
|
2573
2572
|
}, [
|
@@ -2593,14 +2592,14 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2593
2592
|
name: "PagesWidget",
|
2594
2593
|
__name: "index",
|
2595
2594
|
setup(i) {
|
2596
|
-
const { project: t, engine: e } = Ne(), l = C(() => t.value?.pages || []), { current: a } = me(), o = S(!1), s = S(), r = S(), u = C(() => `(共 ${l.value.length} 项)`), f = (
|
2597
|
-
const
|
2598
|
-
return t.value?.homepage ===
|
2595
|
+
const { project: t, engine: e } = Ne(), l = C(() => t.value?.pages || []), { current: a } = me(), o = S(!1), s = S(), r = S(), u = C(() => `(共 ${l.value.length} 项)`), f = (h) => {
|
2596
|
+
const b = [];
|
2597
|
+
return t.value?.homepage === h.id && b.push("主"), h.mask && b.push("母"), h.cache && b.push("缓"), h.hidden && b.push("隐"), h.pure && b.push("纯"), h.raw && b.push("源"), b;
|
2599
2598
|
}, p = () => {
|
2600
2599
|
r.value = void 0, s.value = void 0, o.value = !0;
|
2601
|
-
}, v = async (
|
2602
|
-
const { name:
|
2603
|
-
if (
|
2600
|
+
}, v = async (h) => {
|
2601
|
+
const { name: b, modelValue: k } = h, { data: x, node: D } = k;
|
2602
|
+
if (b === "add" && (s.value = void 0, r.value = x.id, o.value = !0), b === "edit" && (s.value = wt(x), r.value = void 0, o.value = !0), b === "remove") {
|
2604
2603
|
if (x.dir) {
|
2605
2604
|
const I = t.value?.getPage(x.id);
|
2606
2605
|
if (I && I.children?.length) {
|
@@ -2610,25 +2609,25 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2610
2609
|
}
|
2611
2610
|
t.value?.removePage(x.id);
|
2612
2611
|
}
|
2613
|
-
if (
|
2612
|
+
if (b === "copy") {
|
2614
2613
|
const I = D.parent?.data.id;
|
2615
2614
|
t.value?.clonePage(x, I);
|
2616
2615
|
}
|
2617
|
-
|
2618
|
-
}, g = async (
|
2619
|
-
if (
|
2616
|
+
b === "home" && (t.value?.setHomepage(x.id), de("设置主页成功", "success")), b === "saveToBlock" && (await t.value?.saveToBlock(x), de("已保存到区块", "success"));
|
2617
|
+
}, g = async (h) => {
|
2618
|
+
if (h.raw && de("这是源码模式页面,不能在设计器中打开", "warning"), h.dir || h.raw)
|
2620
2619
|
e.project.value?.deactivate();
|
2621
2620
|
else {
|
2622
|
-
e.project.value?.active(
|
2623
|
-
const
|
2624
|
-
|
2621
|
+
e.project.value?.active(h);
|
2622
|
+
const b = e.skeleton?.getRegion("Workspace");
|
2623
|
+
b && b.regionRef.openTab("Designer");
|
2625
2624
|
}
|
2626
|
-
}, _ = (
|
2625
|
+
}, _ = (h, b, k) => k === "inner" ? !!b.data.dir : !0, c = () => {
|
2627
2626
|
t.value?.update({
|
2628
2627
|
pages: Dt(l)
|
2629
2628
|
});
|
2630
2629
|
};
|
2631
|
-
return (
|
2630
|
+
return (h, b) => (d(), w(n(G), {
|
2632
2631
|
class: "v-pages-widget",
|
2633
2632
|
title: "页面管理",
|
2634
2633
|
plus: "",
|
@@ -2668,10 +2667,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2668
2667
|
o.value ? (d(), w(sr, {
|
2669
2668
|
key: 0,
|
2670
2669
|
modelValue: o.value,
|
2671
|
-
"onUpdate:modelValue":
|
2670
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => o.value = k),
|
2672
2671
|
item: s.value,
|
2673
2672
|
"parent-id": r.value
|
2674
|
-
}, null, 8, ["modelValue", "item", "parent-id"])) :
|
2673
|
+
}, null, 8, ["modelValue", "item", "parent-id"])) : A("", !0)
|
2675
2674
|
]),
|
2676
2675
|
_: 1
|
2677
2676
|
}, 8, ["subtitle"]));
|
@@ -2718,17 +2717,17 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2718
2717
|
}) ? !0 : (oe(`只支持 ${x.join(",")} 文件`), !1) : !0;
|
2719
2718
|
}, c = () => {
|
2720
2719
|
_() && (l("change", g.value), l("update:modelValue", g.value), r.value = !1);
|
2721
|
-
}, b = () => {
|
2722
|
-
v.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
|
2723
2720
|
}, h = () => {
|
2721
|
+
v.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
|
2722
|
+
}, b = () => {
|
2724
2723
|
r.value = !0;
|
2725
2724
|
}, k = (x) => {
|
2726
2725
|
x.name && o.value?.id && a.service.removeStaticFile(x.name, o.value?.id);
|
2727
2726
|
};
|
2728
|
-
return (x, D) => (d(),
|
2727
|
+
return (x, D) => (d(), j("div", _r, [
|
2729
2728
|
m(n(be), ue({
|
2730
2729
|
readonly: "",
|
2731
|
-
onFocus:
|
2730
|
+
onFocus: b,
|
2732
2731
|
"model-value": e.modelValue,
|
2733
2732
|
"suffix-icon": n($a)
|
2734
2733
|
}, x.$attrs), null, 16, ["model-value", "suffix-icon"]),
|
@@ -2747,7 +2746,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2747
2746
|
m(n(le), {
|
2748
2747
|
type: "warning",
|
2749
2748
|
size: "default",
|
2750
|
-
onClick:
|
2749
|
+
onClick: h
|
2751
2750
|
}, {
|
2752
2751
|
default: y(() => D[3] || (D[3] = [
|
2753
2752
|
H(" 清除 ")
|
@@ -2768,7 +2767,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2768
2767
|
}, e.attachment, { onRemove: k }), null, 16, ["modelValue", "select-value"])
|
2769
2768
|
]),
|
2770
2769
|
_: 1
|
2771
|
-
}, 8, ["modelValue"])) :
|
2770
|
+
}, 8, ["modelValue"])) : A("", !0)
|
2772
2771
|
]));
|
2773
2772
|
}
|
2774
2773
|
}), wr = { class: "v-blocks__search" }, kr = /* @__PURE__ */ E({
|
@@ -2813,7 +2812,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2813
2812
|
label: "插件",
|
2814
2813
|
type: "danger"
|
2815
2814
|
}
|
2816
|
-
}, g = S(void 0), { current: _ } = me(), c = S(!1),
|
2815
|
+
}, g = S(void 0), { current: _ } = me(), c = S(!1), h = C(() => g.value?.id ? "编辑区块" : "新增区块"), b = C(() => `(共 ${e.value.length} 个)`), k = () => ({
|
2817
2816
|
fromType: "Schema",
|
2818
2817
|
name: "",
|
2819
2818
|
title: "",
|
@@ -2864,7 +2863,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2864
2863
|
return (T, Y) => (d(), w(n(G), {
|
2865
2864
|
class: "v-blocks-widget",
|
2866
2865
|
title: "区块管理",
|
2867
|
-
subtitle:
|
2866
|
+
subtitle: b.value,
|
2868
2867
|
plus: "",
|
2869
2868
|
onPlus: O
|
2870
2869
|
}, {
|
@@ -2884,7 +2883,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2884
2883
|
"model-value": r.value
|
2885
2884
|
}, {
|
2886
2885
|
default: y(() => [
|
2887
|
-
(d(!0),
|
2886
|
+
(d(!0), j(z, null, W(s.value, (ae, Ge) => (d(), w(n(bt), {
|
2888
2887
|
name: Ge,
|
2889
2888
|
title: `${Ge} (${ae.length})`
|
2890
2889
|
}, {
|
@@ -2894,7 +2893,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2894
2893
|
gutter: 5
|
2895
2894
|
}, {
|
2896
2895
|
default: y(() => [
|
2897
|
-
(d(!0),
|
2896
|
+
(d(!0), j(z, null, W(ae, (he) => (d(), w(n(mt), {
|
2898
2897
|
key: he.id,
|
2899
2898
|
span: n(t)
|
2900
2899
|
}, {
|
@@ -2929,10 +2928,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2929
2928
|
key: 0,
|
2930
2929
|
description: "找不到符合条件的区块"
|
2931
2930
|
})),
|
2932
|
-
m(n(
|
2931
|
+
m(n(je), {
|
2933
2932
|
modelValue: c.value,
|
2934
2933
|
"onUpdate:modelValue": Y[1] || (Y[1] = (ae) => c.value = ae),
|
2935
|
-
title:
|
2934
|
+
title: h.value,
|
2936
2935
|
model: g.value,
|
2937
2936
|
width: "600px",
|
2938
2937
|
height: "400px",
|
@@ -2955,7 +2954,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2955
2954
|
tip: "名称为英文驼峰格式",
|
2956
2955
|
rules: {
|
2957
2956
|
message: "名称格式错误",
|
2958
|
-
pattern: n(
|
2957
|
+
pattern: n(Ae)
|
2959
2958
|
},
|
2960
2959
|
onChange: Q
|
2961
2960
|
}, null, 8, ["rules"]),
|
@@ -2969,7 +2968,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2969
2968
|
name: "library",
|
2970
2969
|
label: "插件名称",
|
2971
2970
|
required: ""
|
2972
|
-
})) :
|
2971
|
+
})) : A("", !0),
|
2973
2972
|
["Plugin", "UrlSchema"].includes(g.value?.fromType || "") ? (d(), w(n(P), {
|
2974
2973
|
key: 1,
|
2975
2974
|
name: "urls",
|
@@ -2977,7 +2976,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2977
2976
|
required: "",
|
2978
2977
|
editor: en,
|
2979
2978
|
props: { attachment: { accept: x.value, multiple: D.value } }
|
2980
|
-
}, null, 8, ["props"])) :
|
2979
|
+
}, null, 8, ["props"])) : A("", !0),
|
2981
2980
|
m(n(P), {
|
2982
2981
|
name: "category",
|
2983
2982
|
label: "分组",
|
@@ -3026,13 +3025,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3026
3025
|
_: 1
|
3027
3026
|
}, 8, ["modelValue"])
|
3028
3027
|
]),
|
3029
|
-
n(r) ? (d(),
|
3028
|
+
n(r) ? (d(), j("div", xr, [
|
3030
3029
|
m(n(pt), {
|
3031
3030
|
wrap: "wrap",
|
3032
3031
|
gutter: 5
|
3033
3032
|
}, {
|
3034
3033
|
default: y(() => [
|
3035
|
-
(d(!0),
|
3034
|
+
(d(!0), j(z, null, W(n(u), (_) => (d(), w(n(mt), {
|
3036
3035
|
span: n(t),
|
3037
3036
|
key: _.name
|
3038
3037
|
}, {
|
@@ -3050,7 +3049,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3050
3049
|
]),
|
3051
3050
|
_: 1
|
3052
3051
|
}),
|
3053
|
-
n(u).length ?
|
3052
|
+
n(u).length ? A("", !0) : (d(), w(n(ie), { key: 0 }))
|
3054
3053
|
])) : (d(), w(n(Mt), {
|
3055
3054
|
key: 1,
|
3056
3055
|
items: n(l),
|
@@ -3065,7 +3064,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3065
3064
|
"onUpdate:modelValue": g[1] || (g[1] = (_) => n(s)[n(a)] = _)
|
3066
3065
|
}, {
|
3067
3066
|
default: y(() => [
|
3068
|
-
(d(!0),
|
3067
|
+
(d(!0), j(z, null, W(n(o).children, (_) => (d(), w(n(bt), {
|
3069
3068
|
key: _.name,
|
3070
3069
|
name: _.name,
|
3071
3070
|
title: `${_.label} (${_.count})`
|
@@ -3077,7 +3076,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3077
3076
|
gutter: 5
|
3078
3077
|
}, {
|
3079
3078
|
default: y(() => [
|
3080
|
-
(d(!0),
|
3079
|
+
(d(!0), j(z, null, W(_.components, (c) => (d(), w(n(mt), {
|
3081
3080
|
span: n(t),
|
3082
3081
|
key: c.name
|
3083
3082
|
}, {
|
@@ -3086,7 +3085,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3086
3085
|
name: c.name,
|
3087
3086
|
title: c.label || c.name,
|
3088
3087
|
draggable: "",
|
3089
|
-
onDragstart: (
|
3088
|
+
onDragstart: (h) => f(c),
|
3090
3089
|
onDragend: p
|
3091
3090
|
}, null, 8, ["name", "title", "onDragstart"])
|
3092
3091
|
]),
|
@@ -3094,13 +3093,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3094
3093
|
}, 1032, ["span"]))), 128))
|
3095
3094
|
]),
|
3096
3095
|
_: 2
|
3097
|
-
}, 1024)) :
|
3096
|
+
}, 1024)) : A("", !0)
|
3098
3097
|
]),
|
3099
3098
|
_: 2
|
3100
3099
|
}, 1032, ["name", "title"]))), 128))
|
3101
3100
|
]),
|
3102
3101
|
_: 1
|
3103
|
-
}, 8, ["modelValue"])) :
|
3102
|
+
}, 8, ["modelValue"])) : A("", !0)
|
3104
3103
|
])
|
3105
3104
|
]),
|
3106
3105
|
_: 1
|
@@ -3109,7 +3108,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3109
3108
|
_: 1
|
3110
3109
|
}));
|
3111
3110
|
}
|
3112
|
-
}),
|
3111
|
+
}), jr = /* @__PURE__ */ E({
|
3113
3112
|
name: "OutlineWidget",
|
3114
3113
|
__name: "index",
|
3115
3114
|
setup(i) {
|
@@ -3190,7 +3189,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3190
3189
|
return;
|
3191
3190
|
}
|
3192
3191
|
e.value?.setSelected(R), e.value?.setHover(null);
|
3193
|
-
},
|
3192
|
+
}, h = async ($, R, B) => {
|
3194
3193
|
const Q = $.data, fe = R.data;
|
3195
3194
|
if (ne(fe.model)) {
|
3196
3195
|
const ae = Q.model;
|
@@ -3216,7 +3215,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3216
3215
|
} else
|
3217
3216
|
p();
|
3218
3217
|
e.value?.setDropping(null), e.value?.setDragging(null), t.simulator.refresh();
|
3219
|
-
},
|
3218
|
+
}, b = ($) => {
|
3220
3219
|
if ($.type === "slot") {
|
3221
3220
|
e.value?.setHover(null);
|
3222
3221
|
return;
|
@@ -3276,7 +3275,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3276
3275
|
"allow-drop": _,
|
3277
3276
|
"allow-drag": g,
|
3278
3277
|
onCurrentChange: c,
|
3279
|
-
onNodeDrop:
|
3278
|
+
onNodeDrop: h,
|
3280
3279
|
onNodeDragStart: x,
|
3281
3280
|
onNodeDragEnd: D
|
3282
3281
|
}, {
|
@@ -3299,7 +3298,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3299
3298
|
subtitle: B.type,
|
3300
3299
|
actions: s(B.model, B.type),
|
3301
3300
|
onAction: O,
|
3302
|
-
onMouseenter: (fe) =>
|
3301
|
+
onMouseenter: (fe) => b(B),
|
3303
3302
|
onMouseleave: k
|
3304
3303
|
}, null, 8, ["class", "active", "model-value", "icon", "title", "subtitle", "actions", "onMouseenter"])
|
3305
3304
|
]),
|
@@ -3309,7 +3308,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3309
3308
|
_: 1
|
3310
3309
|
}));
|
3311
3310
|
}
|
3312
|
-
}),
|
3311
|
+
}), Ar = /* @__PURE__ */ E({
|
3313
3312
|
name: "HistoryWidget",
|
3314
3313
|
__name: "index",
|
3315
3314
|
setup(i) {
|
@@ -3329,8 +3328,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3329
3328
|
n(l) === 0 ? (d(), w(n(ie), {
|
3330
3329
|
key: 0,
|
3331
3330
|
"image-size": 50
|
3332
|
-
})) :
|
3333
|
-
n(t) ? (d(!0),
|
3331
|
+
})) : A("", !0),
|
3332
|
+
n(t) ? (d(!0), j(z, { key: 1 }, W(n(t).items, (f, p) => (d(), w(n(ve), {
|
3334
3333
|
index: p + 1,
|
3335
3334
|
title: f.label,
|
3336
3335
|
"model-value": f,
|
@@ -3340,7 +3339,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3340
3339
|
actions: ["remove"],
|
3341
3340
|
onAction: o,
|
3342
3341
|
onClick: (v) => n(e)(f.id)
|
3343
|
-
}, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256)) :
|
3342
|
+
}, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256)) : A("", !0)
|
3344
3343
|
]),
|
3345
3344
|
_: 1
|
3346
3345
|
}, 8, ["subtitle", "remove"]));
|
@@ -3362,7 +3361,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3362
3361
|
label: o,
|
3363
3362
|
value: o
|
3364
3363
|
})));
|
3365
|
-
return (o, s) => (d(),
|
3364
|
+
return (o, s) => (d(), j("div", null, [
|
3366
3365
|
m(n(P), {
|
3367
3366
|
name: "method",
|
3368
3367
|
label: "请求类型",
|
@@ -3374,7 +3373,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3374
3373
|
name: "name",
|
3375
3374
|
label: "接口名称",
|
3376
3375
|
required: "",
|
3377
|
-
rules: { pattern: n(
|
3376
|
+
rules: { pattern: n(Ae), message: "名称格式不正确" }
|
3378
3377
|
}, null, 8, ["rules"]),
|
3379
3378
|
m(n(P), {
|
3380
3379
|
name: "label",
|
@@ -3412,7 +3411,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3412
3411
|
value: "data"
|
3413
3412
|
}
|
3414
3413
|
], e = zt("currentModel", null);
|
3415
|
-
return (l, a) => (d(),
|
3414
|
+
return (l, a) => (d(), j("div", null, [
|
3416
3415
|
m(n(q), { justify: "space-between" }, {
|
3417
3416
|
default: y(() => [
|
3418
3417
|
m(n(P), {
|
@@ -3477,7 +3476,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3477
3476
|
}), Pr = /* @__PURE__ */ E({
|
3478
3477
|
__name: "jsonp-options",
|
3479
3478
|
setup(i) {
|
3480
|
-
return (t, e) => (d(),
|
3479
|
+
return (t, e) => (d(), j("div", null, [
|
3481
3480
|
m(n(P), {
|
3482
3481
|
name: "jsonpOptions.jsonpCallback",
|
3483
3482
|
size: "small",
|
@@ -3508,8 +3507,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3508
3507
|
const t = zt("currentModel", null), { project: e } = Ne(), l = C(() => e.value?.config || {}), a = () => {
|
3509
3508
|
window.open("https://vtj.pro/help/mock.html");
|
3510
3509
|
};
|
3511
|
-
return (o, s) => (d(),
|
3512
|
-
l.value.mock ?
|
3510
|
+
return (o, s) => (d(), j("div", null, [
|
3511
|
+
l.value.mock ? A("", !0) : (d(), w(n(Wt), {
|
3513
3512
|
key: 0,
|
3514
3513
|
type: "warning",
|
3515
3514
|
title: "需要在项目配置中开启模拟数据",
|
@@ -3581,40 +3580,40 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3581
3580
|
const p = C(() => s.value?.method === "jsonp");
|
3582
3581
|
M(
|
3583
3582
|
() => t.model,
|
3584
|
-
(
|
3585
|
-
s.value = Object.assign({},
|
3583
|
+
(h) => {
|
3584
|
+
s.value = Object.assign({}, h || {}), l.value = "base";
|
3586
3585
|
},
|
3587
3586
|
{
|
3588
3587
|
immediate: !0
|
3589
3588
|
}
|
3590
3589
|
), M(l, async () => {
|
3591
|
-
o.value?.formRef.validate(async (
|
3592
|
-
|
3590
|
+
o.value?.formRef.validate(async (h) => {
|
3591
|
+
h || (await Ce(), l.value = "base");
|
3593
3592
|
});
|
3594
3593
|
});
|
3595
3594
|
const v = () => {
|
3596
3595
|
a.value?.cancel();
|
3597
3596
|
}, g = () => {
|
3598
3597
|
o.value?.submit();
|
3599
|
-
}, _ = async (
|
3598
|
+
}, _ = async (h) => t.project?.existApiName(
|
3600
3599
|
s.value.name,
|
3601
3600
|
t.model ? [s.value.id] : []
|
3602
3601
|
) ? (oe(`API名称 [ ${s.value.name} ] 已存在`), !1) : s.value.headers && !pe(s.value.headers, window) || s.value.mockTemplate && !pe(s.value.mockTemplate, window) ? !1 : (t.project?.setApi(s.value), a.value?.close(), !0), c = () => {
|
3603
3602
|
if (s.value.mockTemplate) {
|
3604
|
-
const
|
3603
|
+
const h = Ze(
|
3605
3604
|
s.value.mockTemplate,
|
3606
3605
|
{},
|
3607
3606
|
!0
|
3608
|
-
), { url:
|
3609
|
-
|
3610
|
-
url:
|
3607
|
+
), { url: b, method: k } = s.value, x = Zs.mock(
|
3608
|
+
h({
|
3609
|
+
url: b,
|
3611
3610
|
type: k
|
3612
3611
|
})
|
3613
3612
|
);
|
3614
3613
|
u.value = JSON.stringify(x, null, 2), r.value = !0;
|
3615
3614
|
}
|
3616
3615
|
};
|
3617
|
-
return (
|
3616
|
+
return (h, b) => (d(), w(n(Oe), {
|
3618
3617
|
ref_key: "dialogRef",
|
3619
3618
|
ref: a,
|
3620
3619
|
title: e.value,
|
@@ -3631,7 +3630,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3631
3630
|
default: y(() => [
|
3632
3631
|
m(n(Mt), {
|
3633
3632
|
modelValue: l.value,
|
3634
|
-
"onUpdate:modelValue":
|
3633
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => l.value = k),
|
3635
3634
|
items: f,
|
3636
3635
|
"tab-position": "left",
|
3637
3636
|
border: "",
|
@@ -3658,15 +3657,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3658
3657
|
type: "warning",
|
3659
3658
|
onClick: c
|
3660
3659
|
}, {
|
3661
|
-
default: y(() =>
|
3660
|
+
default: y(() => b[2] || (b[2] = [
|
3662
3661
|
H(" 预览 ")
|
3663
3662
|
])),
|
3664
3663
|
_: 1
|
3665
|
-
}, 8, ["disabled"])) :
|
3664
|
+
}, 8, ["disabled"])) : A("", !0)
|
3666
3665
|
]),
|
3667
3666
|
V("div", null, [
|
3668
3667
|
m(n(le), { onClick: v }, {
|
3669
|
-
default: y(() =>
|
3668
|
+
default: y(() => b[3] || (b[3] = [
|
3670
3669
|
H("取消")
|
3671
3670
|
])),
|
3672
3671
|
_: 1
|
@@ -3675,7 +3674,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3675
3674
|
type: "primary",
|
3676
3675
|
onClick: g
|
3677
3676
|
}, {
|
3678
|
-
default: y(() =>
|
3677
|
+
default: y(() => b[4] || (b[4] = [
|
3679
3678
|
H("保存")
|
3680
3679
|
])),
|
3681
3680
|
_: 1
|
@@ -3696,13 +3695,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3696
3695
|
submitMethod: _
|
3697
3696
|
}, {
|
3698
3697
|
default: y(() => [
|
3699
|
-
Ee(m(Er, { categories:
|
3698
|
+
Ee(m(Er, { categories: h.categories }, null, 8, ["categories"]), [
|
3700
3699
|
[We, l.value === "base"]
|
3701
3700
|
]),
|
3702
|
-
l.value === "settings" ? (d(),
|
3701
|
+
l.value === "settings" ? (d(), j("div", Tr, [
|
3703
3702
|
p.value ? (d(), w(Pr, { key: 0 })) : (d(), w(Dr, { key: 1 }))
|
3704
|
-
])) :
|
3705
|
-
l.value === "mock" ? (d(), w(Ir, { key: 1 })) :
|
3703
|
+
])) : A("", !0),
|
3704
|
+
l.value === "mock" ? (d(), w(Ir, { key: 1 })) : A("", !0)
|
3706
3705
|
]),
|
3707
3706
|
_: 1
|
3708
3707
|
}, 8, ["model"])
|
@@ -3716,7 +3715,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3716
3715
|
key: 0,
|
3717
3716
|
class: "v-drawer",
|
3718
3717
|
modelValue: r.value,
|
3719
|
-
"onUpdate:modelValue":
|
3718
|
+
"onUpdate:modelValue": b[1] || (b[1] = (k) => r.value = k),
|
3720
3719
|
title: "模拟数据结果",
|
3721
3720
|
direction: "btt",
|
3722
3721
|
"append-to-body": "",
|
@@ -3732,7 +3731,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3732
3731
|
}, null, 8, ["model-value"])
|
3733
3732
|
]),
|
3734
3733
|
_: 1
|
3735
|
-
}, 8, ["modelValue"])) :
|
3734
|
+
}, 8, ["modelValue"])) : A("", !0)
|
3736
3735
|
]),
|
3737
3736
|
_: 1
|
3738
3737
|
}, 8, ["title"]));
|
@@ -3743,7 +3742,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3743
3742
|
setup(i) {
|
3744
3743
|
const { project: t } = Ne(), e = S(!1), l = S(null), a = S(""), o = S(!1), s = C(() => {
|
3745
3744
|
const c = t.value?.apis || [];
|
3746
|
-
return a.value ? c.filter((
|
3745
|
+
return a.value ? c.filter((h) => h.name.includes(a.value) || h.label?.includes(a.value) || h.url.includes(a.value)) : c;
|
3747
3746
|
}), r = C(
|
3748
3747
|
() => _t(s.value, (c) => c.category || "默认分组")
|
3749
3748
|
), u = C(() => Object.keys(r.value)), f = () => ({
|
@@ -3789,7 +3788,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3789
3788
|
}, _ = (c) => {
|
3790
3789
|
o.value = !0, l.value = wt(c), e.value = !0;
|
3791
3790
|
};
|
3792
|
-
return (c,
|
3791
|
+
return (c, h) => (d(), w(n(G), {
|
3793
3792
|
class: "v-apis-widget",
|
3794
3793
|
title: "API管理",
|
3795
3794
|
plus: "",
|
@@ -3800,7 +3799,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3800
3799
|
m(n(be), {
|
3801
3800
|
size: "small",
|
3802
3801
|
modelValue: a.value,
|
3803
|
-
"onUpdate:modelValue":
|
3802
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => a.value = b),
|
3804
3803
|
"prefix-icon": n(nt),
|
3805
3804
|
placeholder: "搜索API",
|
3806
3805
|
clearable: ""
|
@@ -3808,12 +3807,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3808
3807
|
]),
|
3809
3808
|
m(n(ht), { "model-value": u.value }, {
|
3810
3809
|
default: y(() => [
|
3811
|
-
(d(!0),
|
3810
|
+
(d(!0), j(z, null, W(r.value, (b, k) => (d(), w(n(bt), {
|
3812
3811
|
name: k,
|
3813
|
-
title: `${k} (${
|
3812
|
+
title: `${k} (${b.length})`
|
3814
3813
|
}, {
|
3815
3814
|
default: y(() => [
|
3816
|
-
(d(!0),
|
3815
|
+
(d(!0), j(z, null, W(b, (x) => (d(), w(n(ve), {
|
3817
3816
|
key: x.id,
|
3818
3817
|
small: "",
|
3819
3818
|
title: x.name,
|
@@ -3835,10 +3834,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3835
3834
|
s.value.length === 0 ? (d(), w(n(ie), {
|
3836
3835
|
key: 0,
|
3837
3836
|
"image-size": 50
|
3838
|
-
})) :
|
3837
|
+
})) : A("", !0),
|
3839
3838
|
m($r, {
|
3840
3839
|
modelValue: e.value,
|
3841
|
-
"onUpdate:modelValue":
|
3840
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => e.value = b),
|
3842
3841
|
model: l.value,
|
3843
3842
|
project: n(t),
|
3844
3843
|
categories: u.value
|
@@ -3862,38 +3861,38 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3862
3861
|
urls: c.urls.join(`
|
3863
3862
|
`)
|
3864
3863
|
}, l.value = !0;
|
3865
|
-
}, _ = (c,
|
3866
|
-
|
3864
|
+
}, _ = (c, h) => {
|
3865
|
+
h.name === "edit" && (o.value = {
|
3867
3866
|
...c,
|
3868
3867
|
enabled: !0,
|
3869
3868
|
official: !1,
|
3870
3869
|
urls: c.urls.join(`
|
3871
3870
|
`)
|
3872
|
-
}, a.value = !1, l.value = !0),
|
3871
|
+
}, a.value = !1, l.value = !0), h.name === "remove" && e.project.value?.removeDeps(c);
|
3873
3872
|
};
|
3874
|
-
return (c,
|
3873
|
+
return (c, h) => (d(), w(n(G), {
|
3875
3874
|
class: "v-deps-widget",
|
3876
3875
|
title: "依赖管理",
|
3877
3876
|
plus: "",
|
3878
3877
|
onPlus: v
|
3879
3878
|
}, {
|
3880
3879
|
default: y(() => [
|
3881
|
-
(d(!0),
|
3882
|
-
key:
|
3883
|
-
title:
|
3884
|
-
subtitle:
|
3885
|
-
actions: r(
|
3880
|
+
(d(!0), j(z, null, W(n(t), (b) => (d(), w(n(ve), {
|
3881
|
+
key: b.package,
|
3882
|
+
title: b.package,
|
3883
|
+
subtitle: b.version,
|
3884
|
+
actions: r(b),
|
3886
3885
|
background: "",
|
3887
|
-
switch: u(
|
3888
|
-
modelValue:
|
3889
|
-
"onUpdate:modelValue": (k) =>
|
3890
|
-
onSwitch: (k) => p(
|
3891
|
-
onClick: (k) => g(
|
3892
|
-
onAction: (k) => _(
|
3886
|
+
switch: u(b),
|
3887
|
+
modelValue: b.enabled,
|
3888
|
+
"onUpdate:modelValue": (k) => b.enabled = k,
|
3889
|
+
onSwitch: (k) => p(b),
|
3890
|
+
onClick: (k) => g(b),
|
3891
|
+
onAction: (k) => _(b, k)
|
3893
3892
|
}, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
|
3894
|
-
m(n(
|
3893
|
+
m(n(je), {
|
3895
3894
|
modelValue: l.value,
|
3896
|
-
"onUpdate:modelValue":
|
3895
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => l.value = b),
|
3897
3896
|
width: "600px",
|
3898
3897
|
height: "500px",
|
3899
3898
|
title: s.value,
|
@@ -3997,7 +3996,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3997
3996
|
}, f = async (p) => {
|
3998
3997
|
p.name === "remove" ? await He("确定删除?") && l("action", { type: p.name, model: e.model }) : l("action", { type: p.name, model: e.model });
|
3999
3998
|
};
|
4000
|
-
return (p, v) => (d(),
|
3999
|
+
return (p, v) => (d(), j("div", {
|
4001
4000
|
class: K(["v-actions", [`is-${e.position}`]])
|
4002
4001
|
}, [
|
4003
4002
|
m(n(ge), {
|
@@ -4027,7 +4026,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4027
4026
|
inheritAttrs: !1,
|
4028
4027
|
__name: "index",
|
4029
4028
|
setup(i, { expose: t }) {
|
4030
|
-
const e = S(), l = S(), { width: a, height: o } = tt(e), { dependencies: s, engine: r, apis: u, meta: f } = Zn(), { current: p, isEmpty: v } = me(), g = C(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), _ = C(() => r.project.value?.config || {}), { designer: c, hover:
|
4029
|
+
const e = S(), l = S(), { width: a, height: o } = tt(e), { dependencies: s, engine: r, apis: u, meta: f } = Zn(), { current: p, isEmpty: v } = me(), g = C(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), _ = C(() => r.project.value?.config || {}), { designer: c, hover: h, dropping: b, selected: k } = mo(
|
4031
4030
|
l,
|
4032
4031
|
s,
|
4033
4032
|
u,
|
@@ -4068,7 +4067,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4068
4067
|
return t({
|
4069
4068
|
designer: c,
|
4070
4069
|
mode: g
|
4071
|
-
}), (O, $) => (d(),
|
4070
|
+
}), (O, $) => (d(), j("div", {
|
4072
4071
|
ref_key: "container",
|
4073
4072
|
ref: e,
|
4074
4073
|
class: "v-designer"
|
@@ -4079,24 +4078,24 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4079
4078
|
height: n(o)
|
4080
4079
|
}, {
|
4081
4080
|
default: y(() => [
|
4082
|
-
n(
|
4081
|
+
n(b) ? (d(), j("div", {
|
4083
4082
|
key: 0,
|
4084
4083
|
class: K(["v-designer__dropping", "is-inner"]),
|
4085
|
-
style: rt(n(
|
4086
|
-
}, null, 4)) :
|
4087
|
-
n(
|
4084
|
+
style: rt(n(b).style)
|
4085
|
+
}, null, 4)) : A("", !0),
|
4086
|
+
n(h) ? (d(), j("div", {
|
4088
4087
|
key: 1,
|
4089
4088
|
class: "v-designer__hover",
|
4090
|
-
style: rt(n(
|
4089
|
+
style: rt(n(h).style)
|
4091
4090
|
}, [
|
4092
4091
|
V("span", {
|
4093
|
-
class: K(`is-${n(
|
4092
|
+
class: K(`is-${n(h).position}`)
|
4094
4093
|
}, [
|
4095
|
-
H(L(n(
|
4096
|
-
V("i", null, L(n(
|
4094
|
+
H(L(n(h).model.name) + ": ", 1),
|
4095
|
+
V("i", null, L(n(h).model.id), 1)
|
4097
4096
|
], 2)
|
4098
|
-
], 4)) :
|
4099
|
-
n(k) ? (d(),
|
4097
|
+
], 4)) : A("", !0),
|
4098
|
+
n(k) ? (d(), j("div", {
|
4100
4099
|
key: 2,
|
4101
4100
|
class: "v-designer__selected",
|
4102
4101
|
style: rt(n(k).style)
|
@@ -4109,12 +4108,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4109
4108
|
onDragstart: D,
|
4110
4109
|
onDragend: I
|
4111
4110
|
}, null, 8, ["position", "model", "path"])
|
4112
|
-
], 4)) :
|
4113
|
-
n(p) ?
|
4111
|
+
], 4)) : A("", !0),
|
4112
|
+
n(p) ? A("", !0) : (d(), w(n(ie), {
|
4114
4113
|
key: 3,
|
4115
4114
|
description: "请新建或打开文件"
|
4116
4115
|
})),
|
4117
|
-
n(p) && n(v) ? (d(),
|
4116
|
+
n(p) && n(v) ? (d(), j("div", Fr, " 您可以拖拽组件放置到这里 ")) : A("", !0),
|
4118
4117
|
V("iframe", {
|
4119
4118
|
ref_key: "iframe",
|
4120
4119
|
ref: l,
|
@@ -4144,8 +4143,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4144
4143
|
() => s.value ? `编辑${t.title}` : `新增${t.title}`
|
4145
4144
|
), u = () => {
|
4146
4145
|
s.value = !1, o.value = t.createEmpty(), a.value = !0;
|
4147
|
-
}, f = (c,
|
4148
|
-
switch (
|
4146
|
+
}, f = (c, h) => {
|
4147
|
+
switch (h.name) {
|
4149
4148
|
case "edit":
|
4150
4149
|
v(c);
|
4151
4150
|
break;
|
@@ -4162,7 +4161,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4162
4161
|
}, g = async (c) => t.submit(c, s.value), _ = () => {
|
4163
4162
|
l.value?.itemRef.validate();
|
4164
4163
|
};
|
4165
|
-
return (c,
|
4164
|
+
return (c, h) => (d(), w(n(G), {
|
4166
4165
|
title: t.title,
|
4167
4166
|
class: "v-sub-panel",
|
4168
4167
|
size: "small",
|
@@ -4171,20 +4170,20 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4171
4170
|
onPlus: u
|
4172
4171
|
}, {
|
4173
4172
|
default: y(() => [
|
4174
|
-
(d(!0),
|
4175
|
-
title: t.itemTitle(
|
4173
|
+
(d(!0), j(z, null, W(c.list, (b) => (d(), w(n(ve), {
|
4174
|
+
title: t.itemTitle(b),
|
4176
4175
|
border: "",
|
4177
4176
|
actions: ["edit", "remove"],
|
4178
|
-
onAction: (k) => f(
|
4179
|
-
onClick: (k) => v(
|
4177
|
+
onAction: (k) => f(b, k),
|
4178
|
+
onClick: (k) => v(b)
|
4180
4179
|
}, null, 8, ["title", "onAction", "onClick"]))), 256)),
|
4181
|
-
c.list.length ?
|
4180
|
+
c.list.length ? A("", !0) : (d(), w(n(ie), {
|
4182
4181
|
key: 0,
|
4183
4182
|
"image-size": 40
|
4184
4183
|
})),
|
4185
4184
|
m(n(Zt), {
|
4186
4185
|
modelValue: a.value,
|
4187
|
-
"onUpdate:modelValue":
|
4186
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => a.value = b),
|
4188
4187
|
title: r.value,
|
4189
4188
|
"submit-method": g,
|
4190
4189
|
model: o.value,
|
@@ -4215,7 +4214,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4215
4214
|
dark: "",
|
4216
4215
|
height: "100%",
|
4217
4216
|
modelValue: o.value.value,
|
4218
|
-
"onUpdate:modelValue":
|
4217
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => o.value.value = b),
|
4219
4218
|
onBlur: _
|
4220
4219
|
}, null, 8, ["modelValue"])
|
4221
4220
|
]),
|
@@ -4520,7 +4519,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4520
4519
|
_: 1
|
4521
4520
|
}));
|
4522
4521
|
}
|
4523
|
-
}),
|
4522
|
+
}), At = /* @__PURE__ */ E({
|
4524
4523
|
__name: "setters",
|
4525
4524
|
props: {
|
4526
4525
|
context: {},
|
@@ -4556,7 +4555,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4556
4555
|
}, ["prevent", "stop"]), ["enter"]))
|
4557
4556
|
}, {
|
4558
4557
|
default: y(() => [
|
4559
|
-
(d(!0),
|
4558
|
+
(d(!0), j(z, null, W(e.items, (p) => (d(), w(n(U), ue({ ref_for: !0 }, p, {
|
4560
4559
|
key: `${p.name}_${e.node.id}`,
|
4561
4560
|
current: e.current,
|
4562
4561
|
context: e.context,
|
@@ -4588,10 +4587,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4588
4587
|
g.value = !0, _.value = {
|
4589
4588
|
name: ""
|
4590
4589
|
};
|
4591
|
-
},
|
4590
|
+
}, h = async (k) => {
|
4592
4591
|
const x = Object.keys(a.value?.props || {});
|
4593
4592
|
return !v(k.name) && !x.includes(k.name) ? (f(k.name), !0) : (oe("已存在该属性名称"), !1);
|
4594
|
-
},
|
4593
|
+
}, b = async (k) => {
|
4595
4594
|
await He("确定删除?") && p(k);
|
4596
4595
|
};
|
4597
4596
|
return (k, x) => n(t) ? (d(), w(n(q), {
|
@@ -4601,7 +4600,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4601
4600
|
fit: ""
|
4602
4601
|
}, {
|
4603
4602
|
default: y(() => [
|
4604
|
-
n(a) ? (d(), w(
|
4603
|
+
n(a) ? (d(), w(At, {
|
4605
4604
|
key: 0,
|
4606
4605
|
title: "通用属性",
|
4607
4606
|
current: n(t),
|
@@ -4609,8 +4608,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4609
4608
|
node: n(a),
|
4610
4609
|
items: n(o),
|
4611
4610
|
onChange: n(s)
|
4612
|
-
}, null, 8, ["current", "context", "node", "items", "onChange"])) :
|
4613
|
-
n(a) && n(r).length ? (d(), w(
|
4611
|
+
}, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
|
4612
|
+
n(a) && n(r).length ? (d(), w(At, {
|
4614
4613
|
key: 1,
|
4615
4614
|
title: "组件属性",
|
4616
4615
|
current: n(t),
|
@@ -4618,8 +4617,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4618
4617
|
node: n(a),
|
4619
4618
|
items: n(r),
|
4620
4619
|
onChange: n(s)
|
4621
|
-
}, null, 8, ["current", "context", "node", "items", "onChange"])) :
|
4622
|
-
n(a) ? (d(), w(
|
4620
|
+
}, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
|
4621
|
+
n(a) ? (d(), w(At, {
|
4623
4622
|
key: 2,
|
4624
4623
|
title: "自定义属性",
|
4625
4624
|
current: n(t),
|
@@ -4631,15 +4630,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4631
4630
|
plus: "",
|
4632
4631
|
grow: "",
|
4633
4632
|
onPlus: c,
|
4634
|
-
onRemove:
|
4635
|
-
}, null, 8, ["current", "context", "node", "items", "onChange"])) :
|
4636
|
-
m(n(
|
4633
|
+
onRemove: b
|
4634
|
+
}, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
|
4635
|
+
m(n(je), {
|
4637
4636
|
modelValue: g.value,
|
4638
4637
|
"onUpdate:modelValue": x[0] || (x[0] = (D) => g.value = D),
|
4639
4638
|
title: "新增自定义属性",
|
4640
4639
|
width: "400px",
|
4641
4640
|
height: "150px",
|
4642
|
-
"submit-method":
|
4641
|
+
"submit-method": h,
|
4643
4642
|
formProps: { tooltipMessage: !1 },
|
4644
4643
|
model: _.value
|
4645
4644
|
}, {
|
@@ -4650,7 +4649,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4650
4649
|
required: "",
|
4651
4650
|
rules: {
|
4652
4651
|
message: "名称格式错误",
|
4653
|
-
pattern: n(
|
4652
|
+
pattern: n(Ae)
|
4654
4653
|
}
|
4655
4654
|
}, null, 8, ["rules"])
|
4656
4655
|
]),
|
@@ -4658,7 +4657,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4658
4657
|
}, 8, ["modelValue", "model"])
|
4659
4658
|
]),
|
4660
4659
|
_: 1
|
4661
|
-
})) :
|
4660
|
+
})) : A("", !0);
|
4662
4661
|
}
|
4663
4662
|
}), Gr = /* @__PURE__ */ E({
|
4664
4663
|
name: "VariableBinder",
|
@@ -4777,21 +4776,21 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4777
4776
|
}), u = S(!1), f = (c) => {
|
4778
4777
|
r.value = wt(c), u.value = !0;
|
4779
4778
|
}, p = async (c) => {
|
4780
|
-
const
|
4779
|
+
const h = {
|
4781
4780
|
...c,
|
4782
4781
|
modifiers: c.modifiers.reduce((k, x) => (k[x] = !0, k), {})
|
4783
4782
|
};
|
4784
|
-
return pe(
|
4783
|
+
return pe(h.handler, e.value, !0) ? ((l.value?.model).setEvent(h), !0) : !1;
|
4785
4784
|
}, v = async (c) => {
|
4786
|
-
const
|
4787
|
-
c.name && (
|
4785
|
+
const h = l.value?.model;
|
4786
|
+
c.name && (h.removeEvent(c.name), u.value = !1);
|
4788
4787
|
}, g = async () => {
|
4789
4788
|
r.value.name && await He("确定要删除该事件吗?") && v(r.value);
|
4790
4789
|
}, _ = (c) => {
|
4791
|
-
const { name:
|
4792
|
-
|
4790
|
+
const { name: h, modelValue: b } = c;
|
4791
|
+
h === "edit" && f(b), h === "remove" && v(b);
|
4793
4792
|
};
|
4794
|
-
return (c,
|
4793
|
+
return (c, h) => (d(), w(n(q), {
|
4795
4794
|
class: "v-events-widget",
|
4796
4795
|
direction: "column",
|
4797
4796
|
fit: ""
|
@@ -4804,20 +4803,20 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4804
4803
|
fit: !1
|
4805
4804
|
}, {
|
4806
4805
|
default: y(() => [
|
4807
|
-
n(s).length ?
|
4806
|
+
n(s).length ? A("", !0) : (d(), w(n(ie), {
|
4808
4807
|
key: 0,
|
4809
4808
|
"image-size": 50,
|
4810
4809
|
description: "该组件无自带事件"
|
4811
4810
|
})),
|
4812
|
-
(d(!0),
|
4813
|
-
key: `component_${
|
4814
|
-
title:
|
4815
|
-
"model-value":
|
4811
|
+
(d(!0), j(z, null, W(n(s), (b) => (d(), w(n(ve), {
|
4812
|
+
key: `component_${b.name}`,
|
4813
|
+
title: b.name,
|
4814
|
+
"model-value": b,
|
4816
4815
|
border: "",
|
4817
4816
|
small: "",
|
4818
|
-
actions:
|
4819
|
-
active: !!
|
4820
|
-
onClick: (k) => f(
|
4817
|
+
actions: b.event ? ["edit", "remove"] : ["edit"],
|
4818
|
+
active: !!b.event,
|
4819
|
+
onClick: (k) => f(b),
|
4821
4820
|
onAction: _
|
4822
4821
|
}, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
|
4823
4822
|
]),
|
@@ -4830,15 +4829,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4830
4829
|
fit: !1
|
4831
4830
|
}, {
|
4832
4831
|
default: y(() => [
|
4833
|
-
(d(!0),
|
4834
|
-
key: `mouse_${
|
4835
|
-
title:
|
4836
|
-
"model-value":
|
4832
|
+
(d(!0), j(z, null, W(n(a), (b) => (d(), w(n(ve), {
|
4833
|
+
key: `mouse_${b.name}`,
|
4834
|
+
title: b.name,
|
4835
|
+
"model-value": b,
|
4837
4836
|
border: "",
|
4838
4837
|
small: "",
|
4839
|
-
actions:
|
4840
|
-
active: !!
|
4841
|
-
onClick: (k) => f(
|
4838
|
+
actions: b.event ? ["edit", "remove"] : ["edit"],
|
4839
|
+
active: !!b.event,
|
4840
|
+
onClick: (k) => f(b),
|
4842
4841
|
onAction: _
|
4843
4842
|
}, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
|
4844
4843
|
]),
|
@@ -4852,15 +4851,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4852
4851
|
fit: !1
|
4853
4852
|
}, {
|
4854
4853
|
default: y(() => [
|
4855
|
-
(d(!0),
|
4856
|
-
key: `keyboard_${
|
4857
|
-
title:
|
4858
|
-
"model-value":
|
4854
|
+
(d(!0), j(z, null, W(n(o), (b) => (d(), w(n(ve), {
|
4855
|
+
key: `keyboard_${b.name}`,
|
4856
|
+
title: b.name,
|
4857
|
+
"model-value": b,
|
4859
4858
|
border: "",
|
4860
4859
|
small: "",
|
4861
|
-
actions:
|
4862
|
-
active: !!
|
4863
|
-
onClick: (k) => f(
|
4860
|
+
actions: b.event ? ["edit", "remove"] : ["edit"],
|
4861
|
+
active: !!b.event,
|
4862
|
+
onClick: (k) => f(b),
|
4864
4863
|
onAction: _
|
4865
4864
|
}, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
|
4866
4865
|
]),
|
@@ -4869,14 +4868,14 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4869
4868
|
u.value ? (d(), w(n(Kr), {
|
4870
4869
|
key: 0,
|
4871
4870
|
modelValue: u.value,
|
4872
|
-
"onUpdate:modelValue":
|
4871
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => u.value = b),
|
4873
4872
|
context: n(e),
|
4874
4873
|
current: n(t),
|
4875
4874
|
name: r.value.name,
|
4876
4875
|
event: r.value.event,
|
4877
4876
|
submitMethod: p,
|
4878
4877
|
onUnbind: g
|
4879
|
-
}, null, 8, ["modelValue", "context", "current", "name", "event"])) :
|
4878
|
+
}, null, 8, ["modelValue", "context", "current", "name", "event"])) : A("", !0)
|
4880
4879
|
]),
|
4881
4880
|
_: 1
|
4882
4881
|
}));
|
@@ -5041,12 +5040,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5041
5040
|
grow: ""
|
5042
5041
|
}, {
|
5043
5042
|
default: y(() => [
|
5044
|
-
(d(!0),
|
5043
|
+
(d(!0), j(z, null, W(n(u), (h, b) => (d(), w(n(G), {
|
5045
5044
|
card: "",
|
5046
5045
|
border: "",
|
5047
5046
|
class: "v-sub-panel",
|
5048
5047
|
size: "small",
|
5049
|
-
title: `v-model: ${g(
|
5048
|
+
title: `v-model: ${g(h)}`,
|
5050
5049
|
body: { grow: !1 },
|
5051
5050
|
fit: !1
|
5052
5051
|
}, {
|
@@ -5059,12 +5058,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5059
5058
|
}, {
|
5060
5059
|
default: y(() => [
|
5061
5060
|
m(n(U), {
|
5062
|
-
name:
|
5061
|
+
name: b.toString(),
|
5063
5062
|
label: "绑定变量",
|
5064
5063
|
setters: "ExpressionSetter",
|
5065
5064
|
current: n(t),
|
5066
5065
|
context: n(e),
|
5067
|
-
value:
|
5066
|
+
value: h.value,
|
5068
5067
|
onChange: n(v)
|
5069
5068
|
}, null, 8, ["name", "current", "context", "value", "onChange"])
|
5070
5069
|
]),
|
@@ -5073,7 +5072,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5073
5072
|
]),
|
5074
5073
|
_: 2
|
5075
5074
|
}, 1032, ["title"]))), 256)),
|
5076
|
-
n(u).length ?
|
5075
|
+
n(u).length ? A("", !0) : (d(), w(n(ie), {
|
5077
5076
|
key: 0,
|
5078
5077
|
description: "当前组件没有双向绑定属性",
|
5079
5078
|
"image-size": 50
|
@@ -5111,7 +5110,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5111
5110
|
const r = s.default;
|
5112
5111
|
return r && !pe(r, t.context, !0) ? !1 : (t.current.setProp(s), !0);
|
5113
5112
|
};
|
5114
|
-
return (s, r) => (d(), w(n(
|
5113
|
+
return (s, r) => (d(), w(n(je), {
|
5115
5114
|
title: e.value,
|
5116
5115
|
width: "800px",
|
5117
5116
|
height: "500px",
|
@@ -5128,7 +5127,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5128
5127
|
disabled: !!t.item,
|
5129
5128
|
rules: {
|
5130
5129
|
message: "名称格式错误",
|
5131
|
-
pattern: n(
|
5130
|
+
pattern: n(Ae)
|
5132
5131
|
}
|
5133
5132
|
}, null, 8, ["disabled", "rules"]),
|
5134
5133
|
m(n(P), {
|
@@ -5173,7 +5172,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5173
5172
|
},
|
5174
5173
|
setup(i) {
|
5175
5174
|
const t = i, e = C(() => t.item ? "编辑定义事件" : "新增定义事件"), l = S(t.item), a = async (o) => (t.item && t.current.removeEmit(t.item.name, !0), t.current.setEmit(o), !0);
|
5176
|
-
return (o, s) => (d(), w(n(
|
5175
|
+
return (o, s) => (d(), w(n(je), {
|
5177
5176
|
title: e.value,
|
5178
5177
|
width: "600px",
|
5179
5178
|
height: "200px",
|
@@ -5189,7 +5188,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5189
5188
|
disabled: !!t.item,
|
5190
5189
|
rules: {
|
5191
5190
|
message: "名称格式错误",
|
5192
|
-
pattern: n(
|
5191
|
+
pattern: n(Ae)
|
5193
5192
|
}
|
5194
5193
|
}, null, 8, ["disabled", "rules"]),
|
5195
5194
|
m(n(P), {
|
@@ -5225,7 +5224,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5225
5224
|
},
|
5226
5225
|
setup(i) {
|
5227
5226
|
const t = i, e = C(() => t.item ? "编辑定义插槽" : "新增定义插槽"), l = S(t.item), a = async (o) => (t.item && t.current.removeSlot(t.item.name, !0), t.current.setSlot(o), !0);
|
5228
|
-
return (o, s) => (d(), w(n(
|
5227
|
+
return (o, s) => (d(), w(n(je), {
|
5229
5228
|
title: e.value,
|
5230
5229
|
width: "600px",
|
5231
5230
|
height: "200px",
|
@@ -5241,7 +5240,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5241
5240
|
required: "",
|
5242
5241
|
rules: {
|
5243
5242
|
message: "名称格式错误",
|
5244
|
-
pattern: n(
|
5243
|
+
pattern: n(Ae)
|
5245
5244
|
}
|
5246
5245
|
}, null, 8, ["disabled", "rules"]),
|
5247
5246
|
m(n(P), {
|
@@ -5289,7 +5288,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5289
5288
|
const s = o.default;
|
5290
5289
|
return s && !pe(s, t.context, !0) ? !1 : (t.current.setInject(o), !0);
|
5291
5290
|
};
|
5292
|
-
return (o, s) => (d(), w(n(
|
5291
|
+
return (o, s) => (d(), w(n(je), {
|
5293
5292
|
title: e.value,
|
5294
5293
|
width: "800px",
|
5295
5294
|
height: "500px",
|
@@ -5306,7 +5305,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5306
5305
|
disabled: !!t.item,
|
5307
5306
|
rules: {
|
5308
5307
|
message: "名称格式错误",
|
5309
|
-
pattern: n(
|
5308
|
+
pattern: n(Ae)
|
5310
5309
|
}
|
5311
5310
|
}, null, 8, ["disabled", "rules"]),
|
5312
5311
|
m(n(P), {
|
@@ -5337,9 +5336,9 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5337
5336
|
name: "DefinedWidget",
|
5338
5337
|
__name: "index",
|
5339
5338
|
setup(i) {
|
5340
|
-
const { current: t, context: e } = me(), l = C(() => (t.value?.props || []).map((N) => typeof N == "string" ? { name: N } : N)), a = C(() => (t.value?.emits || []).map((N) => typeof N == "string" ? { name: N, params: [] } : Object.assign({ params: [] }, N))), o = C(() => (t.value?.slots || []).map((N) => typeof N == "string" ? { name: N, params: [] } : Object.assign({ params: [] }, N))), s = C(() => t.value?.inject || []), r = S(!1), u = S(), f = S(!1), p = S(), v = S(!1), g = S(), _ = S(!1), c = S(),
|
5339
|
+
const { current: t, context: e } = me(), l = C(() => (t.value?.props || []).map((N) => typeof N == "string" ? { name: N } : N)), a = C(() => (t.value?.emits || []).map((N) => typeof N == "string" ? { name: N, params: [] } : Object.assign({ params: [] }, N))), o = C(() => (t.value?.slots || []).map((N) => typeof N == "string" ? { name: N, params: [] } : Object.assign({ params: [] }, N))), s = C(() => t.value?.inject || []), r = S(!1), u = S(), f = S(!1), p = S(), v = S(!1), g = S(), _ = S(!1), c = S(), h = () => {
|
5341
5340
|
u.value = void 0, r.value = !0;
|
5342
|
-
},
|
5341
|
+
}, b = (N) => {
|
5343
5342
|
const { name: J, modelValue: T } = N;
|
5344
5343
|
J === "edit" && k(T), J === "remove" && t.value?.removeProp(T);
|
5345
5344
|
}, k = (N) => {
|
@@ -5379,18 +5378,18 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5379
5378
|
size: "small",
|
5380
5379
|
plus: "",
|
5381
5380
|
fit: !1,
|
5382
|
-
onPlus:
|
5381
|
+
onPlus: h
|
5383
5382
|
}, {
|
5384
5383
|
default: y(() => [
|
5385
|
-
(d(!0),
|
5384
|
+
(d(!0), j(z, null, W(l.value, (T) => (d(), w(n(ve), {
|
5386
5385
|
"model-value": T,
|
5387
5386
|
title: T.name,
|
5388
5387
|
border: "",
|
5389
5388
|
actions: ["edit", "remove"],
|
5390
5389
|
onClick: (Y) => k(T),
|
5391
|
-
onAction:
|
5390
|
+
onAction: b
|
5392
5391
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5393
|
-
l.value.length ?
|
5392
|
+
l.value.length ? A("", !0) : (d(), w(n(ie), {
|
5394
5393
|
key: 0,
|
5395
5394
|
"image-size": 50
|
5396
5395
|
})),
|
@@ -5401,7 +5400,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5401
5400
|
modelValue: r.value,
|
5402
5401
|
"onUpdate:modelValue": J[0] || (J[0] = (T) => r.value = T),
|
5403
5402
|
item: u.value
|
5404
|
-
}, null, 8, ["current", "context", "modelValue", "item"])) :
|
5403
|
+
}, null, 8, ["current", "context", "modelValue", "item"])) : A("", !0)
|
5405
5404
|
]),
|
5406
5405
|
_: 1
|
5407
5406
|
}),
|
@@ -5414,7 +5413,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5414
5413
|
onPlus: x
|
5415
5414
|
}, {
|
5416
5415
|
default: y(() => [
|
5417
|
-
(d(!0),
|
5416
|
+
(d(!0), j(z, null, W(a.value, (T) => (d(), w(n(ve), {
|
5418
5417
|
"model-value": T,
|
5419
5418
|
title: T.name,
|
5420
5419
|
border: "",
|
@@ -5422,7 +5421,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5422
5421
|
onClick: (Y) => D(T),
|
5423
5422
|
onAction: I
|
5424
5423
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5425
|
-
a.value.length ?
|
5424
|
+
a.value.length ? A("", !0) : (d(), w(n(ie), {
|
5426
5425
|
key: 0,
|
5427
5426
|
"image-size": 50
|
5428
5427
|
})),
|
@@ -5433,7 +5432,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5433
5432
|
current: n(t),
|
5434
5433
|
context: n(e),
|
5435
5434
|
item: p.value
|
5436
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5435
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5437
5436
|
]),
|
5438
5437
|
_: 1
|
5439
5438
|
}),
|
@@ -5446,7 +5445,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5446
5445
|
onPlus: O
|
5447
5446
|
}, {
|
5448
5447
|
default: y(() => [
|
5449
|
-
(d(!0),
|
5448
|
+
(d(!0), j(z, null, W(o.value, (T) => (d(), w(n(ve), {
|
5450
5449
|
"model-value": T,
|
5451
5450
|
title: T.name,
|
5452
5451
|
border: "",
|
@@ -5454,7 +5453,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5454
5453
|
onClick: (Y) => $(T),
|
5455
5454
|
onAction: R
|
5456
5455
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5457
|
-
o.value.length ?
|
5456
|
+
o.value.length ? A("", !0) : (d(), w(n(ie), {
|
5458
5457
|
key: 0,
|
5459
5458
|
"image-size": 50
|
5460
5459
|
})),
|
@@ -5465,7 +5464,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5465
5464
|
current: n(t),
|
5466
5465
|
context: n(e),
|
5467
5466
|
item: g.value
|
5468
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5467
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5469
5468
|
]),
|
5470
5469
|
_: 1
|
5471
5470
|
}),
|
@@ -5479,7 +5478,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5479
5478
|
onPlus: B
|
5480
5479
|
}, {
|
5481
5480
|
default: y(() => [
|
5482
|
-
(d(!0),
|
5481
|
+
(d(!0), j(z, null, W(s.value, (T) => (d(), w(n(ve), {
|
5483
5482
|
"model-value": T,
|
5484
5483
|
title: T.name,
|
5485
5484
|
border: "",
|
@@ -5487,7 +5486,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5487
5486
|
onClick: (Y) => Q(T),
|
5488
5487
|
onAction: fe
|
5489
5488
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5490
|
-
s.value.length ?
|
5489
|
+
s.value.length ? A("", !0) : (d(), w(n(ie), {
|
5491
5490
|
key: 0,
|
5492
5491
|
"image-size": 50
|
5493
5492
|
})),
|
@@ -5498,13 +5497,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5498
5497
|
current: n(t),
|
5499
5498
|
context: n(e),
|
5500
5499
|
item: c.value
|
5501
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5500
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5502
5501
|
]),
|
5503
5502
|
_: 1
|
5504
5503
|
})
|
5505
5504
|
]),
|
5506
5505
|
_: 1
|
5507
|
-
})) :
|
5506
|
+
})) : A("", !0);
|
5508
5507
|
}
|
5509
5508
|
}), ai = /* @__PURE__ */ E({
|
5510
5509
|
name: "DataSourceDialogForm",
|
@@ -5551,27 +5550,27 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5551
5550
|
})`
|
5552
5551
|
}
|
5553
5552
|
}, t.item)
|
5554
|
-
), r = S(!1), u = S(""), f = S(!1), p = C(() => s.value.type === "api" ? l.value.map((
|
5555
|
-
label:
|
5556
|
-
value:
|
5557
|
-
data:
|
5558
|
-
})) : s.value.type === "meta" ? a.value.map((
|
5559
|
-
label:
|
5560
|
-
value:
|
5561
|
-
data:
|
5562
|
-
})) : []), v = C(() => t.item ? "编辑数据源" : "新增数据源"), g = (
|
5553
|
+
), r = S(!1), u = S(""), f = S(!1), p = C(() => s.value.type === "api" ? l.value.map((b) => ({
|
5554
|
+
label: b.label || "",
|
5555
|
+
value: b.id,
|
5556
|
+
data: b
|
5557
|
+
})) : s.value.type === "meta" ? a.value.map((b) => ({
|
5558
|
+
label: b.title || "",
|
5559
|
+
value: b.id,
|
5560
|
+
data: b
|
5561
|
+
})) : []), v = C(() => t.item ? "编辑数据源" : "新增数据源"), g = (b) => {
|
5563
5562
|
s.value.ref = "", s.value.name = "", s.value.label = "";
|
5564
|
-
}, _ = (
|
5563
|
+
}, _ = (b) => {
|
5565
5564
|
if (s.value.type === "api") {
|
5566
|
-
const k = l.value.find((x) => x.id ===
|
5565
|
+
const k = l.value.find((x) => x.id === b);
|
5567
5566
|
k && (s.value.name = k.name, s.value.label = k.label || "");
|
5568
5567
|
}
|
5569
5568
|
if (s.value.type === "meta") {
|
5570
|
-
const k = a.value.find((x) => x.id ===
|
5569
|
+
const k = a.value.find((x) => x.id === b);
|
5571
5570
|
k && (s.value.name = k.code, s.value.label = k.title || "");
|
5572
5571
|
}
|
5573
|
-
}, c = async (
|
5574
|
-
const { transform: k, test: x, name: D } =
|
5572
|
+
}, c = async (b) => {
|
5573
|
+
const { transform: k, test: x, name: D } = b;
|
5575
5574
|
if (!t.current) return !1;
|
5576
5575
|
if (!t.item && t.current.dataSources[D])
|
5577
5576
|
return oe(`名称【${D}】已经存在,请更换名称`), !1;
|
@@ -5579,14 +5578,14 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5579
5578
|
if (!pe(k, t.context, !0))
|
5580
5579
|
return !1;
|
5581
5580
|
} else
|
5582
|
-
|
5581
|
+
b.transform = void 0;
|
5583
5582
|
if (x?.value) {
|
5584
5583
|
if (!pe(x, t.context, !0))
|
5585
5584
|
return !1;
|
5586
5585
|
} else
|
5587
|
-
|
5588
|
-
return t.current?.setDataSource(
|
5589
|
-
},
|
5586
|
+
b.test = void 0;
|
5587
|
+
return t.current?.setDataSource(b), !0;
|
5588
|
+
}, h = async () => {
|
5590
5589
|
if (!t.context) return;
|
5591
5590
|
if (!s.value.ref) {
|
5592
5591
|
oe("请先选择API");
|
@@ -5615,7 +5614,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5615
5614
|
}
|
5616
5615
|
r.value = !1, f.value = !0;
|
5617
5616
|
};
|
5618
|
-
return (
|
5617
|
+
return (b, k) => (d(), w(n(je), {
|
5619
5618
|
width: "1000px",
|
5620
5619
|
height: "700px",
|
5621
5620
|
title: v.value,
|
@@ -5627,7 +5626,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5627
5626
|
m(n(le), {
|
5628
5627
|
loading: r.value,
|
5629
5628
|
type: "warning",
|
5630
|
-
onClick:
|
5629
|
+
onClick: h
|
5631
5630
|
}, {
|
5632
5631
|
default: y(() => k[3] || (k[3] = [
|
5633
5632
|
H(" 运行测试用例 ")
|
@@ -5670,7 +5669,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5670
5669
|
disabled: !!t.item,
|
5671
5670
|
rules: {
|
5672
5671
|
message: "名称格式错误",
|
5673
|
-
pattern: n(
|
5672
|
+
pattern: n(Ae)
|
5674
5673
|
}
|
5675
5674
|
}, null, 8, ["disabled", "rules"]),
|
5676
5675
|
m(n(P), {
|
@@ -5728,7 +5727,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5728
5727
|
}, null, 8, ["model-value"])
|
5729
5728
|
]),
|
5730
5729
|
_: 1
|
5731
|
-
}, 8, ["modelValue"])) :
|
5730
|
+
}, 8, ["modelValue"])) : A("", !0)
|
5732
5731
|
]),
|
5733
5732
|
_: 1
|
5734
5733
|
}, 8, ["title", "model"]));
|
@@ -5765,7 +5764,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5765
5764
|
onPlus: r
|
5766
5765
|
}, {
|
5767
5766
|
default: y(() => [
|
5768
|
-
(d(!0),
|
5767
|
+
(d(!0), j(z, null, W(o.value, (g) => (d(), w(n(ve), {
|
5769
5768
|
border: "",
|
5770
5769
|
title: g.name,
|
5771
5770
|
subtitle: g.label,
|
@@ -5776,7 +5775,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5776
5775
|
onAction: f,
|
5777
5776
|
onClick: (_) => u(g)
|
5778
5777
|
}, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
|
5779
|
-
o.value.length ?
|
5778
|
+
o.value.length ? A("", !0) : (d(), w(n(ie), {
|
5780
5779
|
key: 0,
|
5781
5780
|
"image-size": 50
|
5782
5781
|
}))
|
@@ -5790,7 +5789,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5790
5789
|
current: n(t),
|
5791
5790
|
context: n(e),
|
5792
5791
|
item: a.value
|
5793
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5792
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5794
5793
|
]),
|
5795
5794
|
_: 1
|
5796
5795
|
}));
|
@@ -5947,7 +5946,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5947
5946
|
value: t.styleJson.display,
|
5948
5947
|
onChange: u
|
5949
5948
|
}, null, 8, ["value"]),
|
5950
|
-
e.value ? (d(),
|
5949
|
+
e.value ? (d(), j(z, { key: 0 }, [
|
5951
5950
|
m(n(U), {
|
5952
5951
|
name: "flex-direction",
|
5953
5952
|
label: "主轴方向",
|
@@ -5984,7 +5983,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5984
5983
|
value: t.styleJson["flex-wrap"],
|
5985
5984
|
onChange: t.setStyle
|
5986
5985
|
}, null, 8, ["value", "onChange"])
|
5987
|
-
], 64)) :
|
5986
|
+
], 64)) : A("", !0)
|
5988
5987
|
]),
|
5989
5988
|
_: 1
|
5990
5989
|
})
|
@@ -6056,7 +6055,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6056
6055
|
}, g = () => {
|
6057
6056
|
r.value = void 0, a("update:modelValue", r.value), a("submit", l.name, void 0), a("close");
|
6058
6057
|
};
|
6059
|
-
return (_, c) => (d(),
|
6058
|
+
return (_, c) => (d(), j("div", ii, [
|
6060
6059
|
c[4] || (c[4] = V("div", { class: "v-spacing-input__modal" }, null, -1)),
|
6061
6060
|
V("div", ui, [
|
6062
6061
|
m(n(q), {
|
@@ -6070,7 +6069,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6070
6069
|
default: y(() => [
|
6071
6070
|
m(n(Bn), {
|
6072
6071
|
modelValue: r.value,
|
6073
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
6072
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => r.value = h),
|
6074
6073
|
size: "small",
|
6075
6074
|
"with-unit": !!u.value,
|
6076
6075
|
unit: u.value,
|
@@ -6089,11 +6088,11 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6089
6088
|
}, {
|
6090
6089
|
default: y(() => [
|
6091
6090
|
V("span", {
|
6092
|
-
onClick: c[1] || (c[1] = (
|
6091
|
+
onClick: c[1] || (c[1] = (h) => f("auto"))
|
6093
6092
|
}, "auto")
|
6094
6093
|
]),
|
6095
6094
|
_: 1
|
6096
|
-
})) :
|
6095
|
+
})) : A("", !0),
|
6097
6096
|
m(n(q), {
|
6098
6097
|
grow: "",
|
6099
6098
|
class: "v-spacing-input__values",
|
@@ -6101,9 +6100,9 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6101
6100
|
wrap: "wrap"
|
6102
6101
|
}, {
|
6103
6102
|
default: y(() => [
|
6104
|
-
(d(),
|
6105
|
-
onClick: (
|
6106
|
-
}, L(
|
6103
|
+
(d(), j(z, null, W(e, (h) => V("span", {
|
6104
|
+
onClick: (b) => f(h)
|
6105
|
+
}, L(h), 9, ci)), 64))
|
6107
6106
|
]),
|
6108
6107
|
_: 1
|
6109
6108
|
})
|
@@ -6144,7 +6143,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6144
6143
|
])
|
6145
6144
|
]));
|
6146
6145
|
}
|
6147
|
-
}), di = { class: "spacing-wrap" }, pi = { class: "spacing-max-icon" }, mi = ["width", "height"], vi = ["d"], gi = ["d"], fi = ["d"], hi = ["d"], bi = { id: "margin-outer" }, yi = ["width", "height"], _i = ["width", "height"], wi = { id: "margin-inner" }, ki = ["width", "height"], Si = ["width", "height"], xi = ["width", "height"], Ci = ["d"], Vi = ["d"],
|
6146
|
+
}), di = { class: "spacing-wrap" }, pi = { class: "spacing-max-icon" }, mi = ["width", "height"], vi = ["d"], gi = ["d"], fi = ["d"], hi = ["d"], bi = { id: "margin-outer" }, yi = ["width", "height"], _i = ["width", "height"], wi = { id: "margin-inner" }, ki = ["width", "height"], Si = ["width", "height"], xi = ["width", "height"], Ci = ["d"], Vi = ["d"], ji = ["d"], Ai = ["d"], Ei = { id: "padding-outer" }, Di = ["width", "height"], Pi = ["width", "height"], Ii = { id: "padding-inner" }, Ti = ["width", "height"], $i = ["width", "height"], Bi = {
|
6148
6147
|
xmlns: "http://www.w3.org/2000/svg",
|
6149
6148
|
width: "100%",
|
6150
6149
|
height: "100%",
|
@@ -6181,7 +6180,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6181
6180
|
}, [
|
6182
6181
|
V("div", di, [
|
6183
6182
|
V("div", pi, [
|
6184
|
-
n(a) && n(o) ? (d(),
|
6183
|
+
n(a) && n(o) ? (d(), j("svg", {
|
6185
6184
|
key: 0,
|
6186
6185
|
xmlns: "http://www.w3.org/2000/svg",
|
6187
6186
|
width: n(a),
|
@@ -6202,7 +6201,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6202
6201
|
"data-automation-id": "margin-top-button",
|
6203
6202
|
"aria-label": "Margin top button",
|
6204
6203
|
class: "tb-path-color",
|
6205
|
-
onClick: c[0] || (c[0] = (
|
6204
|
+
onClick: c[0] || (c[0] = (h) => g("margin-top"))
|
6206
6205
|
}, null, 8, vi)
|
6207
6206
|
])
|
6208
6207
|
]),
|
@@ -6220,7 +6219,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6220
6219
|
"data-automation-id": "margin-right-button",
|
6221
6220
|
"aria-label": "Margin right button",
|
6222
6221
|
class: "lr-path-color",
|
6223
|
-
onClick: c[1] || (c[1] = (
|
6222
|
+
onClick: c[1] || (c[1] = (h) => g("margin-right"))
|
6224
6223
|
}, null, 8, gi)
|
6225
6224
|
])
|
6226
6225
|
]),
|
@@ -6238,7 +6237,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6238
6237
|
"data-automation-id": "margin-bottom-button",
|
6239
6238
|
"aria-label": "Margin bottom button",
|
6240
6239
|
class: "tb-path-color",
|
6241
|
-
onClick: c[2] || (c[2] = (
|
6240
|
+
onClick: c[2] || (c[2] = (h) => g("margin-bottom"))
|
6242
6241
|
}, null, 8, fi)
|
6243
6242
|
])
|
6244
6243
|
]),
|
@@ -6256,7 +6255,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6256
6255
|
"data-automation-id": "margin-left-button",
|
6257
6256
|
"aria-label": "Margin left button",
|
6258
6257
|
class: "lr-path-color",
|
6259
|
-
onClick: c[3] || (c[3] = (
|
6258
|
+
onClick: c[3] || (c[3] = (h) => g("margin-left"))
|
6260
6259
|
}, null, 8, hi)
|
6261
6260
|
])
|
6262
6261
|
]),
|
@@ -6308,22 +6307,22 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6308
6307
|
ry: "2",
|
6309
6308
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
6310
6309
|
}, null, 8, Si)
|
6311
|
-
], 8, mi)) :
|
6310
|
+
], 8, mi)) : A("", !0),
|
6312
6311
|
V("div", {
|
6313
6312
|
class: K(["spacing-edit margin-top", { "is-setting": t.styleJson["margin-top"] }]),
|
6314
|
-
onClick: c[4] || (c[4] = (
|
6313
|
+
onClick: c[4] || (c[4] = (h) => g("margin-top"))
|
6315
6314
|
}, L(t.styleJson["margin-top"] || "-"), 3),
|
6316
6315
|
V("div", {
|
6317
6316
|
class: K(["spacing-edit margin-right", { "is-setting": t.styleJson["margin-right"] }]),
|
6318
|
-
onClick: c[5] || (c[5] = (
|
6317
|
+
onClick: c[5] || (c[5] = (h) => g("margin-right"))
|
6319
6318
|
}, L(t.styleJson["margin-right"] || "-"), 3),
|
6320
6319
|
V("div", {
|
6321
6320
|
class: K(["spacing-edit margin-bottom", { "is-setting": t.styleJson["margin-bottom"] }]),
|
6322
|
-
onClick: c[6] || (c[6] = (
|
6321
|
+
onClick: c[6] || (c[6] = (h) => g("margin-bottom"))
|
6323
6322
|
}, L(t.styleJson["margin-bottom"] || "-"), 3),
|
6324
6323
|
V("div", {
|
6325
6324
|
class: K(["spacing-edit margin-left", { "is-setting": t.styleJson["margin-left"] }]),
|
6326
|
-
onClick: c[7] || (c[7] = (
|
6325
|
+
onClick: c[7] || (c[7] = (h) => g("margin-left"))
|
6327
6326
|
}, L(t.styleJson["margin-left"] || "-"), 3)
|
6328
6327
|
]),
|
6329
6328
|
V("div", {
|
@@ -6331,7 +6330,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6331
6330
|
ref: l,
|
6332
6331
|
class: "spacing-min-icon"
|
6333
6332
|
}, [
|
6334
|
-
n(a) && n(o) ? (d(),
|
6333
|
+
n(a) && n(o) ? (d(), j("svg", {
|
6335
6334
|
key: 0,
|
6336
6335
|
xmlns: "http://www.w3.org/2000/svg",
|
6337
6336
|
width: n(s),
|
@@ -6352,7 +6351,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6352
6351
|
"data-automation-id": "padding-top-button",
|
6353
6352
|
"aria-label": "Padding top button",
|
6354
6353
|
class: "tb-path-color",
|
6355
|
-
onClick: c[8] || (c[8] = (
|
6354
|
+
onClick: c[8] || (c[8] = (h) => g("padding-top"))
|
6356
6355
|
}, null, 8, Ci)
|
6357
6356
|
])
|
6358
6357
|
]),
|
@@ -6370,7 +6369,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6370
6369
|
"data-automation-id": "padding-right-button",
|
6371
6370
|
"aria-label": "Padding right button",
|
6372
6371
|
class: "lr-path-color",
|
6373
|
-
onClick: c[9] || (c[9] = (
|
6372
|
+
onClick: c[9] || (c[9] = (h) => g("padding-right"))
|
6374
6373
|
}, null, 8, Vi)
|
6375
6374
|
])
|
6376
6375
|
]),
|
@@ -6388,8 +6387,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6388
6387
|
"data-automation-id": "padding-bottom-button",
|
6389
6388
|
"aria-label": "Padding bottom button",
|
6390
6389
|
class: "tb-path-color",
|
6391
|
-
onClick: c[10] || (c[10] = (
|
6392
|
-
}, null, 8,
|
6390
|
+
onClick: c[10] || (c[10] = (h) => g("padding-bottom"))
|
6391
|
+
}, null, 8, ji)
|
6393
6392
|
])
|
6394
6393
|
]),
|
6395
6394
|
V("g", null, [
|
@@ -6406,8 +6405,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6406
6405
|
"data-automation-id": "padding-left-button",
|
6407
6406
|
"aria-label": "Padding left button",
|
6408
6407
|
class: "lr-path-color",
|
6409
|
-
onClick: c[11] || (c[11] = (
|
6410
|
-
}, null, 8,
|
6408
|
+
onClick: c[11] || (c[11] = (h) => g("padding-left"))
|
6409
|
+
}, null, 8, Ai)
|
6411
6410
|
])
|
6412
6411
|
]),
|
6413
6412
|
V("clipPath", Ei, [
|
@@ -6458,25 +6457,25 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6458
6457
|
ry: "2",
|
6459
6458
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
6460
6459
|
}, null, 8, $i)
|
6461
|
-
], 8, xi)) :
|
6460
|
+
], 8, xi)) : A("", !0),
|
6462
6461
|
V("div", {
|
6463
6462
|
class: K(["spacing-edit padding-top", { "is-setting": t.styleJson["padding-top"] }]),
|
6464
|
-
onClick: c[12] || (c[12] = (
|
6463
|
+
onClick: c[12] || (c[12] = (h) => g("padding-top"))
|
6465
6464
|
}, L(t.styleJson["padding-top"] || "-"), 3),
|
6466
6465
|
V("div", {
|
6467
6466
|
class: K(["spacing-edit padding-right", { "is-setting": t.styleJson["padding-right"] }]),
|
6468
|
-
onClick: c[13] || (c[13] = (
|
6467
|
+
onClick: c[13] || (c[13] = (h) => g("padding-right"))
|
6469
6468
|
}, L(t.styleJson["padding-right"] || "-"), 3),
|
6470
6469
|
V("div", {
|
6471
6470
|
class: K(["spacing-edit padding-bottom", { "is-setting": t.styleJson["padding-bottom"] }]),
|
6472
|
-
onClick: c[14] || (c[14] = (
|
6471
|
+
onClick: c[14] || (c[14] = (h) => g("padding-bottom"))
|
6473
6472
|
}, L(t.styleJson["padding-bottom"] || "-"), 3),
|
6474
6473
|
V("div", {
|
6475
6474
|
class: K(["spacing-edit padding-left", { "is-setting": t.styleJson["padding-left"] }]),
|
6476
|
-
onClick: c[15] || (c[15] = (
|
6475
|
+
onClick: c[15] || (c[15] = (h) => g("padding-left"))
|
6477
6476
|
}, L(t.styleJson["padding-left"] || "-"), 3)
|
6478
6477
|
], 512),
|
6479
|
-
(d(),
|
6478
|
+
(d(), j("svg", Bi, c[17] || (c[17] = [
|
6480
6479
|
V("text", {
|
6481
6480
|
x: "6",
|
6482
6481
|
y: "4",
|
@@ -6487,7 +6486,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6487
6486
|
"dominant-baseline": "hanging"
|
6488
6487
|
}, " padding ", -1)
|
6489
6488
|
]))),
|
6490
|
-
(d(),
|
6489
|
+
(d(), j("svg", Ri, c[18] || (c[18] = [
|
6491
6490
|
V("text", {
|
6492
6491
|
x: "6",
|
6493
6492
|
y: "4",
|
@@ -6503,10 +6502,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6503
6502
|
key: 0,
|
6504
6503
|
name: f.value,
|
6505
6504
|
modelValue: p.value,
|
6506
|
-
"onUpdate:modelValue": c[16] || (c[16] = (
|
6505
|
+
"onUpdate:modelValue": c[16] || (c[16] = (h) => p.value = h),
|
6507
6506
|
onClose: v,
|
6508
6507
|
onSubmit: t.setStyle
|
6509
|
-
}, null, 8, ["name", "modelValue", "onSubmit"])) :
|
6508
|
+
}, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
|
6510
6509
|
], 512)
|
6511
6510
|
]),
|
6512
6511
|
_: 1
|
@@ -6589,7 +6588,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6589
6588
|
inline: ""
|
6590
6589
|
}, {
|
6591
6590
|
default: y(() => [
|
6592
|
-
(d(),
|
6591
|
+
(d(), j(z, null, W(a, (r) => m(n(U), {
|
6593
6592
|
name: r.name,
|
6594
6593
|
label: r.label,
|
6595
6594
|
setters: { name: r.setter },
|
@@ -6673,7 +6672,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6673
6672
|
ref: e,
|
6674
6673
|
class: "spacing-min-icon"
|
6675
6674
|
}, [
|
6676
|
-
n(l) && n(l) ? (d(),
|
6675
|
+
n(l) && n(l) ? (d(), j("svg", {
|
6677
6676
|
key: 0,
|
6678
6677
|
xmlns: "http://www.w3.org/2000/svg",
|
6679
6678
|
width: n(l),
|
@@ -6694,7 +6693,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6694
6693
|
"data-automation-id": "padding-top-button",
|
6695
6694
|
"aria-label": "Padding top button",
|
6696
6695
|
class: "tb-path-color",
|
6697
|
-
onClick: c[0] || (c[0] = (
|
6696
|
+
onClick: c[0] || (c[0] = (h) => v("top"))
|
6698
6697
|
}, null, 8, Ni)
|
6699
6698
|
])
|
6700
6699
|
]),
|
@@ -6712,7 +6711,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6712
6711
|
"data-automation-id": "padding-right-button",
|
6713
6712
|
"aria-label": "Padding right button",
|
6714
6713
|
class: "lr-path-color",
|
6715
|
-
onClick: c[1] || (c[1] = (
|
6714
|
+
onClick: c[1] || (c[1] = (h) => v("right"))
|
6716
6715
|
}, null, 8, Mi)
|
6717
6716
|
])
|
6718
6717
|
]),
|
@@ -6730,7 +6729,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6730
6729
|
"data-automation-id": "padding-bottom-button",
|
6731
6730
|
"aria-label": "Padding bottom button",
|
6732
6731
|
class: "tb-path-color",
|
6733
|
-
onClick: c[2] || (c[2] = (
|
6732
|
+
onClick: c[2] || (c[2] = (h) => v("bottom"))
|
6734
6733
|
}, null, 8, Ji)
|
6735
6734
|
])
|
6736
6735
|
]),
|
@@ -6748,7 +6747,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6748
6747
|
"data-automation-id": "padding-left-button",
|
6749
6748
|
"aria-label": "Padding left button",
|
6750
6749
|
class: "lr-path-color",
|
6751
|
-
onClick: c[3] || (c[3] = (
|
6750
|
+
onClick: c[3] || (c[3] = (h) => v("left"))
|
6752
6751
|
}, null, 8, Ui)
|
6753
6752
|
])
|
6754
6753
|
]),
|
@@ -6800,22 +6799,22 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6800
6799
|
ry: "2",
|
6801
6800
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
6802
6801
|
}, null, 8, Qi)
|
6803
|
-
], 8, Wi)) :
|
6802
|
+
], 8, Wi)) : A("", !0),
|
6804
6803
|
V("div", {
|
6805
6804
|
class: K(["spacing-edit padding-top", { "is-setting": t.styleJson.top }]),
|
6806
|
-
onClick: c[4] || (c[4] = (
|
6805
|
+
onClick: c[4] || (c[4] = (h) => v("top"))
|
6807
6806
|
}, L(t.styleJson.top || p.value[0] || "-"), 3),
|
6808
6807
|
V("div", {
|
6809
6808
|
class: K(["spacing-edit padding-right", { "is-setting": t.styleJson.right }]),
|
6810
|
-
onClick: c[5] || (c[5] = (
|
6809
|
+
onClick: c[5] || (c[5] = (h) => v("right"))
|
6811
6810
|
}, L(t.styleJson.right || p.value[1] || "-"), 3),
|
6812
6811
|
V("div", {
|
6813
6812
|
class: K(["spacing-edit padding-bottom", { "is-setting": t.styleJson.bottom }]),
|
6814
|
-
onClick: c[6] || (c[6] = (
|
6813
|
+
onClick: c[6] || (c[6] = (h) => v("bottom"))
|
6815
6814
|
}, L(t.styleJson.bottom || p.value[2] || "-"), 3),
|
6816
6815
|
V("div", {
|
6817
6816
|
class: K(["spacing-edit padding-left", { "is-setting": t.styleJson.left }]),
|
6818
|
-
onClick: c[7] || (c[7] = (
|
6817
|
+
onClick: c[7] || (c[7] = (h) => v("left"))
|
6819
6818
|
}, L(t.styleJson.left || p.value[3] || "-"), 3)
|
6820
6819
|
], 512),
|
6821
6820
|
o.value ? (d(), w(sl, {
|
@@ -6823,10 +6822,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6823
6822
|
auto: "",
|
6824
6823
|
name: s.value,
|
6825
6824
|
modelValue: r.value,
|
6826
|
-
"onUpdate:modelValue": c[8] || (c[8] = (
|
6825
|
+
"onUpdate:modelValue": c[8] || (c[8] = (h) => r.value = h),
|
6827
6826
|
onClose: g,
|
6828
6827
|
onSubmit: t.setStyle
|
6829
|
-
}, null, 8, ["name", "modelValue", "onSubmit"])) :
|
6828
|
+
}, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
|
6830
6829
|
])
|
6831
6830
|
]),
|
6832
6831
|
_: 1
|
@@ -6931,7 +6930,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6931
6930
|
inline: ""
|
6932
6931
|
}, {
|
6933
6932
|
default: y(() => [
|
6934
|
-
(d(),
|
6933
|
+
(d(), j(z, null, W(e, (u) => m(n(U), {
|
6935
6934
|
name: u.name,
|
6936
6935
|
label: u.label,
|
6937
6936
|
setters: { name: u.setter },
|
@@ -7113,8 +7112,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7113
7112
|
return r.find((g) => g.startsWith("border-left")) ? "border-left" : r.find((g) => g.startsWith("border-top")) ? "border-top" : r.find((g) => g.startsWith("border-bottom")) ? "border-bottom" : r.find((g) => g.startsWith("border-right")) ? "border-right" : "border";
|
7114
7113
|
}, l = S("border"), a = [
|
7115
7114
|
{ label: "全边框", svg: Vs, value: "border" },
|
7116
|
-
{ label: "左边框", svg:
|
7117
|
-
{ label: "上边框", svg:
|
7115
|
+
{ label: "左边框", svg: js, value: "border-left" },
|
7116
|
+
{ label: "上边框", svg: As, value: "border-top" },
|
7118
7117
|
{ label: "下边框", svg: Es, value: "border-bottom" },
|
7119
7118
|
{ label: "右边框", svg: Ds, value: "border-right" }
|
7120
7119
|
], o = [
|
@@ -7163,7 +7162,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7163
7162
|
value: l.value,
|
7164
7163
|
onChange: s
|
7165
7164
|
}, null, 8, ["value"]),
|
7166
|
-
l.value ? (d(),
|
7165
|
+
l.value ? (d(), j(z, { key: 0 }, [
|
7167
7166
|
(d(), w(n(U), {
|
7168
7167
|
name: `${l.value}-width`,
|
7169
7168
|
key: `${l.value}-width`,
|
@@ -7192,7 +7191,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7192
7191
|
value: t.styleJson[`${l.value}-color`],
|
7193
7192
|
onChange: t.setStyle
|
7194
7193
|
}, null, 8, ["name", "value", "onChange"]))
|
7195
|
-
], 64)) :
|
7194
|
+
], 64)) : A("", !0)
|
7196
7195
|
]),
|
7197
7196
|
_: 1
|
7198
7197
|
})
|
@@ -7378,7 +7377,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7378
7377
|
refresh: () => {
|
7379
7378
|
a.value = Symbol();
|
7380
7379
|
}
|
7381
|
-
}), (g, _) => (d(),
|
7380
|
+
}), (g, _) => (d(), j("div", {
|
7382
7381
|
ref_key: "container",
|
7383
7382
|
ref: l,
|
7384
7383
|
class: "v-previewer",
|
@@ -7390,12 +7389,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7390
7389
|
height: n(u)
|
7391
7390
|
}, {
|
7392
7391
|
default: y(() => [
|
7393
|
-
f.value ? (d(),
|
7392
|
+
f.value ? (d(), j("iframe", {
|
7394
7393
|
key: 0,
|
7395
7394
|
ref: "iframe",
|
7396
7395
|
frameborder: "0",
|
7397
7396
|
src: f.value
|
7398
|
-
}, null, 8, au)) :
|
7397
|
+
}, null, 8, au)) : A("", !0)
|
7399
7398
|
]),
|
7400
7399
|
_: 1
|
7401
7400
|
}, 8, ["mode", "width", "height"])
|
@@ -7417,7 +7416,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7417
7416
|
"separator-icon": n(zs)
|
7418
7417
|
}, {
|
7419
7418
|
default: y(() => [
|
7420
|
-
(d(!0),
|
7419
|
+
(d(!0), j(z, null, W(l.value, (u) => (d(), w(n(kl), {
|
7421
7420
|
onClick: (f) => a(u),
|
7422
7421
|
onMouseover: (f) => o(u)
|
7423
7422
|
}, {
|
@@ -7428,7 +7427,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7428
7427
|
}, 1032, ["onClick", "onMouseover"]))), 256))
|
7429
7428
|
]),
|
7430
7429
|
_: 1
|
7431
|
-
}, 8, ["separator-icon"])) :
|
7430
|
+
}, 8, ["separator-icon"])) : A("", !0);
|
7432
7431
|
}
|
7433
7432
|
}), ru = /* @__PURE__ */ E({
|
7434
7433
|
name: "SchemaWidget",
|
@@ -7548,7 +7547,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7548
7547
|
ref: a
|
7549
7548
|
}, {
|
7550
7549
|
default: y(() => [
|
7551
|
-
(d(),
|
7550
|
+
(d(), j("iframe", {
|
7552
7551
|
key: s.value,
|
7553
7552
|
ref: "frame",
|
7554
7553
|
src: l.value,
|
@@ -7562,7 +7561,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7562
7561
|
name: "AboutWidget",
|
7563
7562
|
__name: "index",
|
7564
7563
|
setup(i) {
|
7565
|
-
return (t, e) => (d(),
|
7564
|
+
return (t, e) => (d(), j("div", du, [
|
7566
7565
|
V("div", pu, [
|
7567
7566
|
V("img", { src: n(ol) }, null, 8, mu)
|
7568
7567
|
]),
|
@@ -7613,7 +7612,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7613
7612
|
})
|
7614
7613
|
]),
|
7615
7614
|
_: 1
|
7616
|
-
}, 8, ["model"])) :
|
7615
|
+
}, 8, ["model"])) : A("", !0)
|
7617
7616
|
]),
|
7618
7617
|
_: 1
|
7619
7618
|
}));
|
@@ -7661,7 +7660,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7661
7660
|
} = Co(), v = S(""), g = C(() => v.value ? l.value.filter((D) => D.name.includes(v.value) || D.label?.includes(v.value)) : l.value), _ = C(() => {
|
7662
7661
|
const D = r?.getData()?.id;
|
7663
7662
|
return _t(g.value, (I) => I.userId === D ? "我的" : I.category);
|
7664
|
-
}), c = C(() => Object.keys(_.value)),
|
7663
|
+
}), c = C(() => Object.keys(_.value)), h = C(() => `(共 ${l.value.length} 个)`), b = async (D) => {
|
7665
7664
|
await o() ? await s(D.id) : await De.confirm(
|
7666
7665
|
"使用需登录,您还没登录或登录已过期,请重新登录!",
|
7667
7666
|
"提示",
|
@@ -7680,7 +7679,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7680
7679
|
}), (D, I) => Ee((d(), w(n(G), {
|
7681
7680
|
class: "v-blocks-widget v-templates-widgets",
|
7682
7681
|
title: "模板",
|
7683
|
-
subtitle:
|
7682
|
+
subtitle: h.value,
|
7684
7683
|
refresh: "",
|
7685
7684
|
onRefresh: n(u)
|
7686
7685
|
}, {
|
@@ -7700,7 +7699,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7700
7699
|
"model-value": c.value
|
7701
7700
|
}, {
|
7702
7701
|
default: y(() => [
|
7703
|
-
(d(!0),
|
7702
|
+
(d(!0), j(z, null, W(_.value, (O, $) => (d(), w(n(bt), {
|
7704
7703
|
name: $,
|
7705
7704
|
title: `${$} (${O.length})`
|
7706
7705
|
}, {
|
@@ -7710,7 +7709,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7710
7709
|
gutter: 5
|
7711
7710
|
}, {
|
7712
7711
|
default: y(() => [
|
7713
|
-
(d(!0),
|
7712
|
+
(d(!0), j(z, null, W(O, (R) => (d(), w(n(mt), {
|
7714
7713
|
key: R.id,
|
7715
7714
|
span: n(e)
|
7716
7715
|
}, {
|
@@ -7733,7 +7732,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7733
7732
|
H(" VIP ")
|
7734
7733
|
])),
|
7735
7734
|
_: 1
|
7736
|
-
})) :
|
7735
|
+
})) : A("", !0),
|
7737
7736
|
k(R) ? (d(), w(n(ge), {
|
7738
7737
|
key: 1,
|
7739
7738
|
class: "is-delete",
|
@@ -7742,7 +7741,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7742
7741
|
size: "small",
|
7743
7742
|
type: "danger",
|
7744
7743
|
onClick: (B) => x(R)
|
7745
|
-
}, null, 8, ["icon", "onClick"])) :
|
7744
|
+
}, null, 8, ["icon", "onClick"])) : A("", !0),
|
7746
7745
|
m(n(Vn), {
|
7747
7746
|
src: R.cover,
|
7748
7747
|
fit: "contain"
|
@@ -7757,7 +7756,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7757
7756
|
icon: n(Rt),
|
7758
7757
|
type: "primary",
|
7759
7758
|
round: "",
|
7760
|
-
onClick: (B) =>
|
7759
|
+
onClick: (B) => b(R)
|
7761
7760
|
}, {
|
7762
7761
|
default: y(() => I[2] || (I[2] = [
|
7763
7762
|
H(" 使用 ")
|
@@ -7809,8 +7808,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7809
7808
|
Pages: yr,
|
7810
7809
|
Blocks: kr,
|
7811
7810
|
Components: Vr,
|
7812
|
-
Outline:
|
7813
|
-
History:
|
7811
|
+
Outline: jr,
|
7812
|
+
History: Ar,
|
7814
7813
|
Apis: Rr,
|
7815
7814
|
Deps: Or,
|
7816
7815
|
Designer: Lr,
|
@@ -7832,7 +7831,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7832
7831
|
Market: bu,
|
7833
7832
|
Templates: xu,
|
7834
7833
|
UserAvatar: Vu
|
7835
|
-
},
|
7834
|
+
}, ju = [
|
7836
7835
|
{
|
7837
7836
|
name: "Logo",
|
7838
7837
|
region: "Brand",
|
@@ -8078,7 +8077,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8078
8077
|
region: "Status",
|
8079
8078
|
component: X.NodePath
|
8080
8079
|
}
|
8081
|
-
],
|
8080
|
+
], Au = [
|
8082
8081
|
{
|
8083
8082
|
package: "vue",
|
8084
8083
|
version: "latest",
|
@@ -8781,7 +8780,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8781
8780
|
const t = i;
|
8782
8781
|
return (e, l) => (d(), w(n(Vl), ue({ clearable: "" }, e.$attrs), {
|
8783
8782
|
default: y(() => [
|
8784
|
-
(d(!0),
|
8783
|
+
(d(!0), j(z, null, W(t.options, (a) => (d(), w(n(jl), ue({
|
8785
8784
|
key: a.label,
|
8786
8785
|
ref_for: !0
|
8787
8786
|
}, a), null, 16))), 128))
|
@@ -8800,7 +8799,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8800
8799
|
const e = i, l = t, a = C(() => et(e.modelValue) ? void 0 : Number(e.modelValue || 0)), o = (s) => {
|
8801
8800
|
l("change", s);
|
8802
8801
|
};
|
8803
|
-
return (s, r) => (d(), w(n(
|
8802
|
+
return (s, r) => (d(), w(n(Al), ue({
|
8804
8803
|
class: "v-number-setter",
|
8805
8804
|
"controls-position": "right",
|
8806
8805
|
"model-value": a.value
|
@@ -8851,7 +8850,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8851
8850
|
}, v = () => {
|
8852
8851
|
s.value = !0;
|
8853
8852
|
};
|
8854
|
-
return (g, _) => (d(),
|
8853
|
+
return (g, _) => (d(), j("div", {
|
8855
8854
|
class: K(["v-json-setter", { "is-active": o.value }])
|
8856
8855
|
}, [
|
8857
8856
|
m(n(be), ue({
|
@@ -8896,7 +8895,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8896
8895
|
}, null, 8, ["model-value"])
|
8897
8896
|
]),
|
8898
8897
|
_: 1
|
8899
|
-
}, 8, ["modelValue", "title"])) :
|
8898
|
+
}, 8, ["modelValue", "title"])) : A("", !0)
|
8900
8899
|
], 2));
|
8901
8900
|
}
|
8902
8901
|
}), Nu = /* @__PURE__ */ E({
|
@@ -8924,7 +8923,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8924
8923
|
}, p = () => {
|
8925
8924
|
o.value = !0;
|
8926
8925
|
};
|
8927
|
-
return (v, g) => (d(),
|
8926
|
+
return (v, g) => (d(), j("div", {
|
8928
8927
|
class: K(["v-function-setter", { "is-active": s.value }])
|
8929
8928
|
}, [
|
8930
8929
|
m(n(be), ue({
|
@@ -8968,7 +8967,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8968
8967
|
}, null, 8, ["model-value"])
|
8969
8968
|
]),
|
8970
8969
|
_: 1
|
8971
|
-
}, 8, ["modelValue"])) :
|
8970
|
+
}, 8, ["modelValue"])) : A("", !0)
|
8972
8971
|
], 2));
|
8973
8972
|
}
|
8974
8973
|
}), Mu = /* @__PURE__ */ E({
|
@@ -8984,7 +8983,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8984
8983
|
size: "small"
|
8985
8984
|
}, e.$attrs), {
|
8986
8985
|
default: y(() => [
|
8987
|
-
(d(!0),
|
8986
|
+
(d(!0), j(z, null, W(t.options, (a) => (d(), w(n(ut), {
|
8988
8987
|
label: a.label,
|
8989
8988
|
value: a.value,
|
8990
8989
|
title: a.label
|
@@ -8993,7 +8992,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8993
8992
|
a.svg ? (d(), w(n(Re), {
|
8994
8993
|
key: 0,
|
8995
8994
|
src: a.svg
|
8996
|
-
}, null, 8, ["src"])) : (d(),
|
8995
|
+
}, null, 8, ["src"])) : (d(), j(z, { key: 1 }, [
|
8997
8996
|
H(L(a.label), 1)
|
8998
8997
|
], 64))
|
8999
8998
|
]),
|
@@ -9015,11 +9014,11 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9015
9014
|
const e = i, l = t, a = (o) => {
|
9016
9015
|
o.value === e.modelValue ? (l("update:modelValue", void 0), l("change", void 0)) : (l("update:modelValue", o.value), l("change", o.value));
|
9017
9016
|
};
|
9018
|
-
return (o, s) => (d(),
|
9017
|
+
return (o, s) => (d(), j("div", ue({
|
9019
9018
|
class: "v-tag-setter",
|
9020
9019
|
size: "small"
|
9021
9020
|
}, o.$attrs), [
|
9022
|
-
(d(!0),
|
9021
|
+
(d(!0), j(z, null, W(e.options, (r) => (d(), j("span", {
|
9023
9022
|
label: r.value,
|
9024
9023
|
title: r.label,
|
9025
9024
|
class: K({
|
@@ -9031,7 +9030,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9031
9030
|
key: 0,
|
9032
9031
|
src: r.svg,
|
9033
9032
|
size: 16
|
9034
|
-
}, null, 8, ["src"])) : (d(),
|
9033
|
+
}, null, 8, ["src"])) : (d(), j(z, { key: 1 }, [
|
9035
9034
|
H(L(r.label), 1)
|
9036
9035
|
], 64))
|
9037
9036
|
], 10, Ju))), 256))
|
@@ -9129,8 +9128,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9129
9128
|
const o = () => {
|
9130
9129
|
l("change", a.value.join(" ").trim());
|
9131
9130
|
};
|
9132
|
-
return (s, r) => (d(),
|
9133
|
-
(d(!0),
|
9131
|
+
return (s, r) => (d(), j("div", Gu, [
|
9132
|
+
(d(!0), j(z, null, W(e.sections, (u) => (d(), w(rl, {
|
9134
9133
|
name: u - 1,
|
9135
9134
|
modelValue: a.value[u - 1],
|
9136
9135
|
"onUpdate:modelValue": (f) => a.value[u - 1] = f,
|
@@ -9160,7 +9159,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9160
9159
|
const o = () => {
|
9161
9160
|
a.value = void 0, l("change", void 0), l("update:modelValue", void 0);
|
9162
9161
|
};
|
9163
|
-
return (s, r) => (d(),
|
9162
|
+
return (s, r) => (d(), j("div", Xu, [
|
9164
9163
|
m(n(Pl), ue({ size: "small" }, s.$attrs, {
|
9165
9164
|
modelValue: a.value,
|
9166
9165
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u)
|
@@ -9334,7 +9333,7 @@ class ec {
|
|
9334
9333
|
}
|
9335
9334
|
createWidgets() {
|
9336
9335
|
const t = {};
|
9337
|
-
for (const e of
|
9336
|
+
for (const e of ju)
|
9338
9337
|
t[e.name] = e;
|
9339
9338
|
return t;
|
9340
9339
|
}
|
@@ -9382,7 +9381,7 @@ class ec {
|
|
9382
9381
|
}
|
9383
9382
|
const il = new ec();
|
9384
9383
|
class tc {
|
9385
|
-
constructor(t =
|
9384
|
+
constructor(t = Au) {
|
9386
9385
|
this.deps = t;
|
9387
9386
|
}
|
9388
9387
|
/**
|
@@ -10053,9 +10052,9 @@ class ic extends zn {
|
|
10053
10052
|
async emitReady(e = [], l = [], a = {}, o = {}) {
|
10054
10053
|
this.renderer?.dispose(), this.renderer = null;
|
10055
10054
|
const s = this.contentWindow, { assets: r, service: u, current: f, provider: p, project: v } = this.engine, g = p.materials || {}, _ = [];
|
10056
|
-
for (const
|
10057
|
-
const
|
10058
|
-
_.push(
|
10055
|
+
for (const h of l) {
|
10056
|
+
const b = g[h] ? (await g[h]()).default : s[h];
|
10057
|
+
_.push(b);
|
10059
10058
|
}
|
10060
10059
|
r.load(_);
|
10061
10060
|
const c = this.createEnv(
|
@@ -10071,26 +10070,26 @@ class ic extends zn {
|
|
10071
10070
|
Object.entries(o).forEach(([D, I]) => {
|
10072
10071
|
g[D] = s[I];
|
10073
10072
|
});
|
10074
|
-
const _ = {}, { groups: c, componentMap:
|
10073
|
+
const _ = {}, { groups: c, componentMap: h } = f;
|
10075
10074
|
for (const D of c.value) {
|
10076
10075
|
const I = D.names || [];
|
10077
10076
|
if (D.name === Tt)
|
10078
10077
|
I.forEach((O) => {
|
10079
|
-
const $ =
|
10078
|
+
const $ = h.get(O), R = $?.package || "", B = Gl[R], Q = v[B];
|
10080
10079
|
Q && $ && (_[O] = rn($, Q));
|
10081
10080
|
});
|
10082
10081
|
else {
|
10083
10082
|
const O = v[l[D.library || ""]];
|
10084
10083
|
O && I.forEach(($) => {
|
10085
|
-
const R =
|
10084
|
+
const R = h.get($);
|
10086
10085
|
R ? _[$] = rn(R, O) : _[$] = O[$];
|
10087
10086
|
});
|
10088
10087
|
}
|
10089
10088
|
}
|
10090
|
-
const { adapter:
|
10089
|
+
const { adapter: b, globals: k } = p, x = da(
|
10091
10090
|
u.value?.apis,
|
10092
10091
|
u.value?.meta,
|
10093
|
-
|
10092
|
+
b
|
10094
10093
|
);
|
10095
10094
|
return pa(), u.value?.config?.mock && ma(u.value?.apis), {
|
10096
10095
|
window: s,
|
@@ -10703,7 +10702,7 @@ const $e = E({
|
|
10703
10702
|
onEnd(x, D) {
|
10704
10703
|
o.value = D.elementWidth.value;
|
10705
10704
|
}
|
10706
|
-
}, u = S(), f = S(), p = S(), v = S(), g = S(), _ = S(), c = S(),
|
10705
|
+
}, u = S(), f = S(), p = S(), v = S(), g = S(), _ = S(), c = S(), h = S(), b = S(!1), k = S(!1);
|
10707
10706
|
return t({
|
10708
10707
|
brand: u,
|
10709
10708
|
toolbar: f,
|
@@ -10712,11 +10711,11 @@ const $e = E({
|
|
10712
10711
|
workspace: g,
|
10713
10712
|
settings: _,
|
10714
10713
|
status: c,
|
10715
|
-
collapsed:
|
10714
|
+
collapsed: b,
|
10716
10715
|
settable: k,
|
10717
10716
|
leftWidth: a,
|
10718
10717
|
rightWidth: o,
|
10719
|
-
preview:
|
10718
|
+
preview: h,
|
10720
10719
|
isPreview: l
|
10721
10720
|
}), (x, D) => (d(), w(n(Il), { locale: n(Rl) }, {
|
10722
10721
|
default: y(() => [
|
@@ -10748,11 +10747,11 @@ const $e = E({
|
|
10748
10747
|
}, 8, ["height"]),
|
10749
10748
|
m(n(tn), { class: "v-skeleton__wrapper" }, {
|
10750
10749
|
default: y(() => [
|
10751
|
-
l.value ?
|
10750
|
+
l.value ? A("", !0) : Ee((d(), w(n(nn), {
|
10752
10751
|
key: 0,
|
10753
10752
|
width: e.leftWidth,
|
10754
10753
|
class: K(["v-skeleton__left", {
|
10755
|
-
"is-collapsed":
|
10754
|
+
"is-collapsed": b.value
|
10756
10755
|
}])
|
10757
10756
|
}, {
|
10758
10757
|
default: y(() => [
|
@@ -10771,10 +10770,10 @@ const $e = E({
|
|
10771
10770
|
l.value ? (d(), w(n($e), {
|
10772
10771
|
key: 0,
|
10773
10772
|
ref_key: "preview",
|
10774
|
-
ref:
|
10773
|
+
ref: h,
|
10775
10774
|
region: "Preview",
|
10776
10775
|
preview: l.value
|
10777
|
-
}, null, 8, ["preview"])) :
|
10776
|
+
}, null, 8, ["preview"])) : A("", !0),
|
10778
10777
|
Ee(m(n($e), {
|
10779
10778
|
ref_key: "workspace",
|
10780
10779
|
ref: g,
|
@@ -10785,7 +10784,7 @@ const $e = E({
|
|
10785
10784
|
]),
|
10786
10785
|
_: 1
|
10787
10786
|
}),
|
10788
|
-
l.value ?
|
10787
|
+
l.value ? A("", !0) : Ee((d(), w(n(nn), {
|
10789
10788
|
key: 1,
|
10790
10789
|
width: e.rightWidth,
|
10791
10790
|
class: "v-skeleton__right"
|
@@ -10805,7 +10804,7 @@ const $e = E({
|
|
10805
10804
|
]),
|
10806
10805
|
_: 1
|
10807
10806
|
}),
|
10808
|
-
l.value ?
|
10807
|
+
l.value ? A("", !0) : (d(), w(n(Bl), {
|
10809
10808
|
key: 0,
|
10810
10809
|
class: "v-skeleton__footer",
|
10811
10810
|
height: x.footerHeight
|
@@ -10874,7 +10873,7 @@ const $e = E({
|
|
10874
10873
|
a.value = !0, o.value = et(r.value) ? r.value.value : "";
|
10875
10874
|
}, c = () => {
|
10876
10875
|
a.value = !1, o.value = "";
|
10877
|
-
},
|
10876
|
+
}, h = async (k) => pe(k, e.context, !0) ? (f[s.value.name] = r.value, r.value = k, l("change", k), !0) : !1, b = async () => {
|
10878
10877
|
await He("确定要解除绑定吗?") && (c(), r.value = void 0, l("change", void 0));
|
10879
10878
|
};
|
10880
10879
|
return (k, x) => (d(), w(n(Tn), {
|
@@ -10892,15 +10891,15 @@ const $e = E({
|
|
10892
10891
|
H(L(e.label || e.name), 1)
|
10893
10892
|
]),
|
10894
10893
|
_: 1
|
10895
|
-
}, 8, ["content"])) : (d(),
|
10894
|
+
}, 8, ["content"])) : (d(), j("span", {
|
10896
10895
|
key: 1,
|
10897
10896
|
title: e.name
|
10898
10897
|
}, L(e.label || e.name), 9, pc))
|
10899
10898
|
]),
|
10900
10899
|
default: y(() => [
|
10901
10900
|
V("div", mc, [
|
10902
|
-
s.value ? (d(),
|
10903
|
-
u.value ?
|
10901
|
+
s.value ? (d(), j("div", vc, [
|
10902
|
+
u.value ? A("", !0) : (d(), w(yn(s.value.component), ue({
|
10904
10903
|
key: 0,
|
10905
10904
|
current: e.current,
|
10906
10905
|
context: e.context
|
@@ -10924,16 +10923,16 @@ const $e = E({
|
|
10924
10923
|
H(L(hc))
|
10925
10924
|
]),
|
10926
10925
|
_: 1
|
10927
|
-
})) :
|
10928
|
-
])) :
|
10926
|
+
})) : A("", !0)
|
10927
|
+
])) : A("", !0),
|
10929
10928
|
V("div", gc, [
|
10930
10929
|
e.variable ? (d(), w(n(Ks), {
|
10931
10930
|
key: 0,
|
10932
10931
|
onClick: _,
|
10933
10932
|
class: K(["v-icon-vars", { "is-active": u.value }]),
|
10934
10933
|
title: "绑定变量"
|
10935
|
-
}, null, 8, ["class"])) :
|
10936
|
-
e.setters.length > 1 ? (d(), w(n(
|
10934
|
+
}, null, 8, ["class"])) : A("", !0),
|
10935
|
+
e.setters.length > 1 ? (d(), w(n(jn), {
|
10937
10936
|
key: 1,
|
10938
10937
|
disabled: u.value,
|
10939
10938
|
size: "small",
|
@@ -10941,9 +10940,9 @@ const $e = E({
|
|
10941
10940
|
onCommand: p
|
10942
10941
|
}, {
|
10943
10942
|
dropdown: y(() => [
|
10944
|
-
m(n(
|
10943
|
+
m(n(An), null, {
|
10945
10944
|
default: y(() => [
|
10946
|
-
(d(!0),
|
10945
|
+
(d(!0), j(z, null, W(e.setters, (D) => (d(), w(n(ct), {
|
10947
10946
|
command: D,
|
10948
10947
|
key: D.name
|
10949
10948
|
}, {
|
@@ -10965,12 +10964,12 @@ const $e = E({
|
|
10965
10964
|
m(n(Xs), { title: "切换设置器" })
|
10966
10965
|
]),
|
10967
10966
|
_: 1
|
10968
|
-
}, 8, ["disabled"])) :
|
10967
|
+
}, 8, ["disabled"])) : A("", !0),
|
10969
10968
|
e.removable ? (d(), w(n(kt), {
|
10970
10969
|
key: 2,
|
10971
10970
|
onClick: g,
|
10972
10971
|
title: "删除"
|
10973
|
-
})) :
|
10972
|
+
})) : A("", !0)
|
10974
10973
|
])
|
10975
10974
|
]),
|
10976
10975
|
a.value ? (d(), w(n(Gr), {
|
@@ -10980,9 +10979,9 @@ const $e = E({
|
|
10980
10979
|
value: o.value,
|
10981
10980
|
modelValue: a.value,
|
10982
10981
|
"onUpdate:modelValue": x[1] || (x[1] = (D) => a.value = D),
|
10983
|
-
submitMethod:
|
10984
|
-
onUnbind:
|
10985
|
-
}, null, 8, ["current", "context", "value", "modelValue"])) :
|
10982
|
+
submitMethod: h,
|
10983
|
+
onUnbind: b
|
10984
|
+
}, null, 8, ["current", "context", "value", "modelValue"])) : A("", !0)
|
10986
10985
|
]),
|
10987
10986
|
_: 1
|
10988
10987
|
}));
|
@@ -10994,7 +10993,7 @@ const $e = E({
|
|
10994
10993
|
region: {}
|
10995
10994
|
},
|
10996
10995
|
setup(i) {
|
10997
|
-
return (t, e) => (d(),
|
10996
|
+
return (t, e) => (d(), j("div", yc, "找不到符合【" + L(t.region) + "】名称的区域组件", 1));
|
10998
10997
|
}
|
10999
10998
|
}), wc = { class: "v-brand-region" }, kc = /* @__PURE__ */ E({
|
11000
10999
|
name: "BrandRegion",
|
@@ -11008,8 +11007,8 @@ const $e = E({
|
|
11008
11007
|
return t({
|
11009
11008
|
widgets: l,
|
11010
11009
|
widgetsRef: a
|
11011
|
-
}), (o, s) => (d(),
|
11012
|
-
(d(!0),
|
11010
|
+
}), (o, s) => (d(), j("div", wc, [
|
11011
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11013
11012
|
ref_for: !0,
|
11014
11013
|
ref_key: "widgetsRef",
|
11015
11014
|
ref: a,
|
@@ -11030,8 +11029,8 @@ const $e = E({
|
|
11030
11029
|
return t({
|
11031
11030
|
widgets: l,
|
11032
11031
|
widgetsRef: a
|
11033
|
-
}), (o, s) => (d(),
|
11034
|
-
(d(!0),
|
11032
|
+
}), (o, s) => (d(), j("div", Sc, [
|
11033
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11035
11034
|
ref_for: !0,
|
11036
11035
|
ref_key: "widgetsRef",
|
11037
11036
|
ref: a,
|
@@ -11053,8 +11052,8 @@ const $e = E({
|
|
11053
11052
|
return t({
|
11054
11053
|
widgets: l,
|
11055
11054
|
widgetsRef: a
|
11056
|
-
}), (o, s) => (d(),
|
11057
|
-
(d(!0),
|
11055
|
+
}), (o, s) => (d(), j("div", Cc, [
|
11056
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11058
11057
|
ref_for: !0,
|
11059
11058
|
ref_key: "widgetsRef",
|
11060
11059
|
ref: a,
|
@@ -11063,7 +11062,7 @@ const $e = E({
|
|
11063
11062
|
}, null, 8, ["region", "widget"]))), 256))
|
11064
11063
|
]));
|
11065
11064
|
}
|
11066
|
-
}),
|
11065
|
+
}), jc = { class: "v-apps-region" }, Ac = { class: "v-apps-region__header" }, Ec = { class: "v-apps-region__top" }, Dc = { class: "v-apps-region__bottom" }, Pc = { class: "v-apps-region__panels" }, Ic = /* @__PURE__ */ E({
|
11067
11066
|
name: "AppsRegion",
|
11068
11067
|
inheritAttrs: !1,
|
11069
11068
|
__name: "apps",
|
@@ -11088,42 +11087,42 @@ const $e = E({
|
|
11088
11087
|
widgets: a,
|
11089
11088
|
widgetsRef: o,
|
11090
11089
|
setActive: (c) => {
|
11091
|
-
const
|
11092
|
-
f.value =
|
11090
|
+
const h = s.value.find((b) => b.name === c);
|
11091
|
+
f.value = h, p.value = h;
|
11093
11092
|
}
|
11094
|
-
}), (c,
|
11095
|
-
V("div",
|
11093
|
+
}), (c, h) => (d(), j("div", jc, [
|
11094
|
+
V("div", Ac, [
|
11096
11095
|
V("div", Ec, [
|
11097
|
-
(d(!0),
|
11098
|
-
key: `icon-${
|
11099
|
-
icon:
|
11100
|
-
label:
|
11101
|
-
active: f.value?.name ===
|
11102
|
-
open: p.value?.name ===
|
11103
|
-
onClick: (k) => v(
|
11096
|
+
(d(!0), j(z, null, W(s.value, (b) => (d(), w(n(gn), {
|
11097
|
+
key: `icon-${b.name}`,
|
11098
|
+
icon: b.icon,
|
11099
|
+
label: b.label,
|
11100
|
+
active: f.value?.name === b.name,
|
11101
|
+
open: p.value?.name === b.name,
|
11102
|
+
onClick: (k) => v(b)
|
11104
11103
|
}, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
|
11105
11104
|
]),
|
11106
11105
|
V("div", Dc, [
|
11107
|
-
(d(!0),
|
11108
|
-
key: `icon-${
|
11109
|
-
icon:
|
11110
|
-
label:
|
11111
|
-
onClick: (k) => g(
|
11106
|
+
(d(!0), j(z, null, W(r.value, (b) => (d(), w(n(gn), {
|
11107
|
+
key: `icon-${b.name}`,
|
11108
|
+
icon: b.icon,
|
11109
|
+
label: b.label,
|
11110
|
+
onClick: (k) => g(b)
|
11112
11111
|
}, null, 8, ["icon", "label", "onClick"]))), 128))
|
11113
11112
|
])
|
11114
11113
|
]),
|
11115
11114
|
V("div", Pc, [
|
11116
|
-
(d(!0),
|
11117
|
-
key:
|
11115
|
+
(d(!0), j(z, null, W(s.value, (b) => (d(), w(xn, {
|
11116
|
+
key: b.name
|
11118
11117
|
}, [
|
11119
|
-
f.value?.name ===
|
11118
|
+
f.value?.name === b.name ? (d(), w(n(Fe), {
|
11120
11119
|
key: 0,
|
11121
11120
|
ref_for: !0,
|
11122
11121
|
ref_key: "widgetsRef",
|
11123
11122
|
ref: o,
|
11124
11123
|
region: c.region,
|
11125
|
-
widget:
|
11126
|
-
}, null, 8, ["region", "widget"])) :
|
11124
|
+
widget: b
|
11125
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11127
11126
|
], 1024))), 128))
|
11128
11127
|
])
|
11129
11128
|
]));
|
@@ -11148,22 +11147,22 @@ const $e = E({
|
|
11148
11147
|
), s = C(() => o?.filter((c) => !c.closable || c.checked)), r = C(() => o.map((c) => ({
|
11149
11148
|
...c,
|
11150
11149
|
disabled: !c.closable
|
11151
|
-
}))), u = S(s.value[0]?.name), f = C(() => o.find((
|
11152
|
-
const
|
11153
|
-
|
11150
|
+
}))), u = S(s.value[0]?.name), f = C(() => o.find((h) => h.name === u.value)?.props || {}), p = (c) => {
|
11151
|
+
const h = o.find((b) => b.name === c);
|
11152
|
+
h && (h.checked = !1), u.value === c && (u.value = s.value[0]?.name);
|
11154
11153
|
}, v = (c) => {
|
11155
|
-
const
|
11156
|
-
|
11157
|
-
}, g = (c,
|
11158
|
-
const
|
11159
|
-
|
11154
|
+
const h = o.find((b) => b.name === c.name);
|
11155
|
+
h && h.closable && (h.checked = !h.checked, h.checked && (u.value = h.name), !h.checked && u.value === h.name && (u.value = s.value[0]?.name));
|
11156
|
+
}, g = (c, h = {}) => {
|
11157
|
+
const b = o.find((k) => k.name === c);
|
11158
|
+
b && (b.props = Object.assign({}, b.props, h), b.checked = !0, u.value = b.name);
|
11160
11159
|
}, _ = (c) => {
|
11161
11160
|
if (a.value) {
|
11162
|
-
const
|
11163
|
-
if (!
|
11161
|
+
const h = a.value[0]?.widgetRef;
|
11162
|
+
if (!h) return;
|
11164
11163
|
switch (c.name) {
|
11165
11164
|
case "home":
|
11166
|
-
|
11165
|
+
h.reload();
|
11167
11166
|
break;
|
11168
11167
|
}
|
11169
11168
|
}
|
@@ -11173,29 +11172,29 @@ const $e = E({
|
|
11173
11172
|
widgets: l,
|
11174
11173
|
widgetsRef: a,
|
11175
11174
|
openTab: g
|
11176
|
-
}), (c,
|
11175
|
+
}), (c, h) => (d(), w(n(Ct), {
|
11177
11176
|
class: "v-workspace-region",
|
11178
11177
|
items: s.value,
|
11179
11178
|
menus: r.value,
|
11180
11179
|
modelValue: u.value,
|
11181
|
-
"onUpdate:modelValue":
|
11180
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => u.value = b),
|
11182
11181
|
checkable: "",
|
11183
11182
|
onRemove: p,
|
11184
11183
|
onCommand: v,
|
11185
11184
|
onActionClick: _
|
11186
11185
|
}, {
|
11187
11186
|
default: y(() => [
|
11188
|
-
(d(!0),
|
11189
|
-
key:
|
11187
|
+
(d(!0), j(z, null, W(n(l), (b) => (d(), j(z, {
|
11188
|
+
key: b.name
|
11190
11189
|
}, [
|
11191
|
-
u.value ===
|
11190
|
+
u.value === b.name ? (d(), w(n(Fe), {
|
11192
11191
|
key: 0,
|
11193
11192
|
ref_for: !0,
|
11194
11193
|
ref_key: "widgetsRef",
|
11195
11194
|
ref: a,
|
11196
11195
|
region: c.region,
|
11197
|
-
widget: { ...
|
11198
|
-
}, null, 8, ["region", "widget"])) :
|
11196
|
+
widget: { ...b, props: f.value }
|
11197
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11199
11198
|
], 64))), 128))
|
11200
11199
|
]),
|
11201
11200
|
_: 1
|
@@ -11210,10 +11209,10 @@ const $e = E({
|
|
11210
11209
|
setup(i, { expose: t }) {
|
11211
11210
|
const e = i, l = ce(), { current: a } = me(), { selected: o, isSelectBlock: s } = xe(), r = C(
|
11212
11211
|
() => s.value ? ke.Block : ke.Node
|
11213
|
-
), { widgets: u, widgetsRef: f } = ze(e.region, r), p = S(), v = S(!1), g = C(() => u.value.map((
|
11214
|
-
name:
|
11215
|
-
label:
|
11216
|
-
actions:
|
11212
|
+
), { widgets: u, widgetsRef: f } = ze(e.region, r), p = S(), v = S(!1), g = C(() => u.value.map((b) => ({
|
11213
|
+
name: b.name,
|
11214
|
+
label: b.label,
|
11215
|
+
actions: b.name === "Style" ? [
|
11217
11216
|
{
|
11218
11217
|
name: "switch",
|
11219
11218
|
icon: Qs,
|
@@ -11221,11 +11220,11 @@ const $e = E({
|
|
11221
11220
|
}
|
11222
11221
|
] : void 0
|
11223
11222
|
}))), _ = C(() => {
|
11224
|
-
const
|
11225
|
-
return
|
11223
|
+
const b = o.value?.model;
|
11224
|
+
return b ? l.assets.componentMap.get(b.name)?.doc : null;
|
11226
11225
|
});
|
11227
|
-
M(a, (
|
11228
|
-
l.skeleton?.settable(!!
|
11226
|
+
M(a, (b) => {
|
11227
|
+
l.skeleton?.settable(!!b);
|
11229
11228
|
}), M(
|
11230
11229
|
r,
|
11231
11230
|
() => {
|
@@ -11237,18 +11236,18 @@ const $e = E({
|
|
11237
11236
|
});
|
11238
11237
|
const c = () => {
|
11239
11238
|
if (_.value) {
|
11240
|
-
const
|
11241
|
-
|
11239
|
+
const b = l.skeleton?.getRegion("Workspace");
|
11240
|
+
b && b.regionRef.openTab("Docs", {
|
11242
11241
|
url: _.value
|
11243
11242
|
});
|
11244
11243
|
}
|
11245
|
-
},
|
11246
|
-
|
11244
|
+
}, h = (b) => {
|
11245
|
+
b.name === "switch" && (v.value = !v.value);
|
11247
11246
|
};
|
11248
11247
|
return t({
|
11249
11248
|
widgets: u,
|
11250
11249
|
widgetsRef: f
|
11251
|
-
}), (
|
11250
|
+
}), (b, k) => n(a) ? (d(), w(n(q), {
|
11252
11251
|
key: 0,
|
11253
11252
|
class: "v-settings-region",
|
11254
11253
|
fit: "",
|
@@ -11283,10 +11282,10 @@ const $e = E({
|
|
11283
11282
|
}, null, 8, ["icon"])
|
11284
11283
|
]),
|
11285
11284
|
_: 1
|
11286
|
-
})) :
|
11285
|
+
})) : A("", !0)
|
11287
11286
|
]),
|
11288
11287
|
_: 1
|
11289
|
-
})) :
|
11288
|
+
})) : A("", !0),
|
11290
11289
|
n(o) && !n(o).model.locked ? (d(), w(n(q), {
|
11291
11290
|
key: 1,
|
11292
11291
|
grow: "",
|
@@ -11299,10 +11298,10 @@ const $e = E({
|
|
11299
11298
|
"onUpdate:modelValue": k[0] || (k[0] = (x) => p.value = x),
|
11300
11299
|
stretch: "",
|
11301
11300
|
body: { padding: !1 },
|
11302
|
-
onActionClick:
|
11301
|
+
onActionClick: h
|
11303
11302
|
}, {
|
11304
11303
|
default: y(() => [
|
11305
|
-
(d(!0),
|
11304
|
+
(d(!0), j(z, null, W(n(u), (x) => (d(), j(z, {
|
11306
11305
|
key: x.name
|
11307
11306
|
}, [
|
11308
11307
|
p.value === x.name ? (d(), w(n(Fe), {
|
@@ -11310,17 +11309,17 @@ const $e = E({
|
|
11310
11309
|
ref_for: !0,
|
11311
11310
|
ref_key: "widgetsRef",
|
11312
11311
|
ref: f,
|
11313
|
-
region:
|
11312
|
+
region: b.region,
|
11314
11313
|
widget: n(qt)({ props: { isStyleCodeMode: v.value } }, x)
|
11315
|
-
}, null, 8, ["region", "widget"])) :
|
11314
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11316
11315
|
], 64))), 128))
|
11317
11316
|
]),
|
11318
11317
|
_: 1
|
11319
11318
|
}, 8, ["items", "modelValue"])
|
11320
11319
|
]),
|
11321
11320
|
_: 1
|
11322
|
-
})) :
|
11323
|
-
n(o) ?
|
11321
|
+
})) : A("", !0),
|
11322
|
+
n(o) ? A("", !0) : (d(), w(n(ie), {
|
11324
11323
|
key: 2,
|
11325
11324
|
description: "请在左侧画布选中节点"
|
11326
11325
|
})),
|
@@ -11328,10 +11327,10 @@ const $e = E({
|
|
11328
11327
|
key: 3,
|
11329
11328
|
"image-size": 1,
|
11330
11329
|
description: "节点已被锁定, 禁止编辑"
|
11331
|
-
})) :
|
11330
|
+
})) : A("", !0)
|
11332
11331
|
]),
|
11333
11332
|
_: 1
|
11334
|
-
})) :
|
11333
|
+
})) : A("", !0);
|
11335
11334
|
}
|
11336
11335
|
}), Bc = { class: "v-status-region" }, Rc = /* @__PURE__ */ E({
|
11337
11336
|
name: "StatusRegion",
|
@@ -11345,8 +11344,8 @@ const $e = E({
|
|
11345
11344
|
return t({
|
11346
11345
|
widgets: l,
|
11347
11346
|
widgetsRef: a
|
11348
|
-
}), (o, s) => (d(),
|
11349
|
-
(d(!0),
|
11347
|
+
}), (o, s) => (d(), j("div", Bc, [
|
11348
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11350
11349
|
ref_for: !0,
|
11351
11350
|
ref_key: "widgetsRef",
|
11352
11351
|
ref: a,
|
@@ -11382,7 +11381,7 @@ const $e = E({
|
|
11382
11381
|
"onUpdate:modelValue": f[0] || (f[0] = (p) => r.value = p)
|
11383
11382
|
}, {
|
11384
11383
|
default: y(() => [
|
11385
|
-
(d(!0),
|
11384
|
+
(d(!0), j(z, null, W(n(l), (p) => (d(), w(xn, {
|
11386
11385
|
key: p.name
|
11387
11386
|
}, [
|
11388
11387
|
r.value === p.name ? (d(), w(n(Fe), {
|
@@ -11392,7 +11391,7 @@ const $e = E({
|
|
11392
11391
|
ref: a,
|
11393
11392
|
region: u.region,
|
11394
11393
|
widget: p
|
11395
|
-
}, null, 8, ["region", "widget"])) :
|
11394
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11396
11395
|
], 1024))), 128))
|
11397
11396
|
]),
|
11398
11397
|
_: 1
|
@@ -11426,7 +11425,7 @@ export {
|
|
11426
11425
|
un as MOBILE_SIZE,
|
11427
11426
|
no as MOUSE_EVENT_LIST,
|
11428
11427
|
Kc as MicroApp,
|
11429
|
-
|
11428
|
+
Ae as NAME_REGEX,
|
11430
11429
|
cn as PAD_SIZE,
|
11431
11430
|
G as Panel,
|
11432
11431
|
io as RegionType,
|
@@ -11450,10 +11449,10 @@ export {
|
|
11450
11449
|
al as Viewport,
|
11451
11450
|
ke as WidgetGroup,
|
11452
11451
|
Fe as WidgetWrapper,
|
11453
|
-
|
11452
|
+
Au as builtInDeps,
|
11454
11453
|
Iu as builtInMaterials,
|
11455
11454
|
Zu as builtInSetters,
|
11456
|
-
|
11455
|
+
ju as builtInWidgets,
|
11457
11456
|
He as confirm,
|
11458
11457
|
sc as createSlotsPicker,
|
11459
11458
|
Yu as defaultSetter,
|