@vtj/designer 0.9.0-alpha.31 → 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 +618 -622
- 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
|
}
|
@@ -524,29 +524,26 @@ function xo() {
|
|
524
524
|
}
|
525
525
|
function Kt() {
|
526
526
|
const i = ce(), { access: t, remote: e, auth: l = "#/auth" } = i.adapter || {}, a = () => {
|
527
|
-
|
528
|
-
const { protocol: _, host: c, pathname: b } = location, k = `${_}//${c}${b}${l}` + "?redirect=" + encodeURIComponent(location.hash.substring(1));
|
529
|
-
location.href = `${e}/auth.html?r=${encodeURIComponent(k)}`;
|
530
|
-
}
|
527
|
+
e && (location.href = `${e}/auth.html?r=${encodeURIComponent(location.href)}`);
|
531
528
|
}, o = async () => {
|
532
529
|
const _ = t?.getData()?.token;
|
533
530
|
if (_) {
|
534
|
-
const c = `${e}/api/open/user/${_}`,
|
535
|
-
return !!(
|
531
|
+
const c = `${e}/api/open/user/${_}`, h = await Me(c).catch(() => null);
|
532
|
+
return !!(h && h.data);
|
536
533
|
}
|
537
534
|
return !1;
|
538
535
|
}, s = async () => {
|
539
536
|
const _ = `${e}/api/open/templates`, c = t?.getData()?.token;
|
540
537
|
return (await Me(_, { query: c ? { token: c } : {} }))?.data || [];
|
541
538
|
}, r = async (_) => {
|
542
|
-
const c = t?.getData()?.token,
|
543
|
-
return (await Me(
|
539
|
+
const c = t?.getData()?.token, h = `${e}/api/open/template/${c}`;
|
540
|
+
return (await Me(h, { query: { id: _ } }))?.data || null;
|
544
541
|
}, u = async (_) => {
|
545
|
-
const c = t?.getData()?.token,
|
546
|
-
return !!(await Me(
|
542
|
+
const c = t?.getData()?.token, h = `${e}/api/open/template/remove/${c}`;
|
543
|
+
return !!(await Me(h, { query: { id: _ } }))?.data;
|
547
544
|
}, f = async (_) => {
|
548
|
-
const c = t?.getData()?.token,
|
549
|
-
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;
|
550
547
|
}, p = async (_) => {
|
551
548
|
const c = `${e}/api/open/dict/${_}`;
|
552
549
|
return (await Me(c))?.data || [];
|
@@ -563,12 +560,12 @@ function Kt() {
|
|
563
560
|
getDictOptions: p,
|
564
561
|
getTemplateCategories: () => p("TemplateCategory"),
|
565
562
|
publishTemplate: async (_) => {
|
566
|
-
const c = t?.getData()?.token,
|
563
|
+
const c = t?.getData()?.token, h = `${e}/api/open/template/publish/${c}`, b = new FormData();
|
567
564
|
for (const [k, x] of Object.entries(_))
|
568
|
-
x !== void 0 &&
|
569
|
-
return window.fetch(
|
565
|
+
x !== void 0 && b.append(k, x);
|
566
|
+
return window.fetch(h, {
|
570
567
|
method: "post",
|
571
|
-
body:
|
568
|
+
body: b
|
572
569
|
}).then((k) => k.json());
|
573
570
|
},
|
574
571
|
getTemplateById: r,
|
@@ -593,13 +590,13 @@ function Co() {
|
|
593
590
|
});
|
594
591
|
return;
|
595
592
|
}
|
596
|
-
const
|
597
|
-
if (!
|
593
|
+
const h = await o(g);
|
594
|
+
if (!h)
|
598
595
|
return await De.alert("模板不可用,可能该模板没发布过版本", {
|
599
596
|
type: "error",
|
600
597
|
title: "提示"
|
601
598
|
});
|
602
|
-
const
|
599
|
+
const b = _.toDsl(), { id: k, name: x } = b, D = { ...h, id: k, name: x }, I = c.currentFile;
|
603
600
|
i.onSaveBlockFileFinish(() => {
|
604
601
|
_.update(D), Pe.success({
|
605
602
|
message: "模板已加载完成"
|
@@ -632,7 +629,7 @@ function Co() {
|
|
632
629
|
loading: u
|
633
630
|
};
|
634
631
|
}
|
635
|
-
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({
|
636
633
|
name: "LogoWidget",
|
637
634
|
inheritAttrs: !1,
|
638
635
|
__name: "index",
|
@@ -645,23 +642,23 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
645
642
|
const { engine: t } = me(), e = i, l = C(() => e.icon || t.project.value?.config?.logo || Vo), a = () => {
|
646
643
|
e.link && (location.href = e.link);
|
647
644
|
};
|
648
|
-
return (o, s) => (d(),
|
645
|
+
return (o, s) => (d(), j("div", {
|
649
646
|
class: "v-logo-widget",
|
650
647
|
onClick: a
|
651
648
|
}, [
|
652
|
-
l.value ? (d(),
|
649
|
+
l.value ? (d(), j("img", {
|
653
650
|
key: 0,
|
654
651
|
title: e.text,
|
655
652
|
class: "v-logo-widget__icon",
|
656
653
|
src: l.value
|
657
|
-
}, null, 8,
|
654
|
+
}, null, 8, jo)) : (d(), j("span", Ao, L(e.text), 1))
|
658
655
|
]));
|
659
656
|
}
|
660
657
|
}), Do = { class: "v-empty-widget" }, Po = /* @__PURE__ */ E({
|
661
658
|
name: "EmptyWidget",
|
662
659
|
__name: "index",
|
663
660
|
setup(i) {
|
664
|
-
return (t, e) => (d(),
|
661
|
+
return (t, e) => (d(), j("div", Do, "EmptyWidget"));
|
665
662
|
}
|
666
663
|
}), Io = { class: "v-switcher-widget" }, To = { key: 1 }, $o = /* @__PURE__ */ E({
|
667
664
|
name: "SwitcherWidget",
|
@@ -672,7 +669,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
672
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 = () => {
|
673
670
|
e("click", l.project.value);
|
674
671
|
};
|
675
|
-
return (r, u) => (d(),
|
672
|
+
return (r, u) => (d(), j("div", Io, [
|
676
673
|
m(n(le), {
|
677
674
|
size: "small",
|
678
675
|
round: "",
|
@@ -684,8 +681,8 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
684
681
|
o.value ? (d(), w(n(Lt), {
|
685
682
|
key: 0,
|
686
683
|
direction: "vertical"
|
687
|
-
})) :
|
688
|
-
o.value ? (d(),
|
684
|
+
})) : A("", !0),
|
685
|
+
o.value ? (d(), j("span", To, L(o.value), 1)) : A("", !0)
|
689
686
|
]),
|
690
687
|
_: 1
|
691
688
|
})
|
@@ -702,7 +699,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
702
699
|
const e = i, { forward: l, backward: a, forwardDisabled: o, backwardDisabled: s } = el(), r = S("pc");
|
703
700
|
return t({
|
704
701
|
mode: r
|
705
|
-
}), (u, f) => (d(),
|
702
|
+
}), (u, f) => (d(), j("div", Bo, [
|
706
703
|
m(n(Cn), {
|
707
704
|
size: "small",
|
708
705
|
modelValue: r.value,
|
@@ -739,7 +736,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
739
736
|
]),
|
740
737
|
_: 1
|
741
738
|
}, 8, ["modelValue"]),
|
742
|
-
|
739
|
+
A("", !0),
|
743
740
|
m(n(_l), null, {
|
744
741
|
default: y(() => [
|
745
742
|
m(n(le), {
|
@@ -814,14 +811,14 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
814
811
|
category: "",
|
815
812
|
version: "",
|
816
813
|
...s
|
817
|
-
},
|
818
|
-
message:
|
814
|
+
}, h = await l(c).catch((b) => (Pe.error({
|
815
|
+
message: b.message || b || "未知错误"
|
819
816
|
}), !1));
|
820
|
-
return
|
817
|
+
return h && (Pe.success({
|
821
818
|
message: "发布模板成功!"
|
822
|
-
}), o.skeleton?.getWidget("Templates")?.widgetRef.refreshTemplates()), !!
|
819
|
+
}), o.skeleton?.getWidget("Templates")?.widgetRef.refreshTemplates()), !!h;
|
823
820
|
};
|
824
|
-
return (p, v) => (d(), w(n(
|
821
|
+
return (p, v) => (d(), w(n(je), {
|
825
822
|
width: "600px",
|
826
823
|
height: "760px",
|
827
824
|
icon: n(vt),
|
@@ -846,7 +843,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
846
843
|
name: "name",
|
847
844
|
required: "",
|
848
845
|
rules: {
|
849
|
-
pattern: n(
|
846
|
+
pattern: n(Ae),
|
850
847
|
message: "名称格式不正确,要求英文字母大写驼峰格式"
|
851
848
|
}
|
852
849
|
}, null, 8, ["rules"]),
|
@@ -898,7 +895,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
898
895
|
link: {}
|
899
896
|
},
|
900
897
|
setup(i) {
|
901
|
-
return (t, e) => (d(),
|
898
|
+
return (t, e) => (d(), j("div", Lo, [
|
902
899
|
e[0] || (e[0] = V("div", null, "已生成源码项目,可通过以下链接下载(两小时内有效)。", -1)),
|
903
900
|
V("div", null, [
|
904
901
|
V("a", {
|
@@ -932,14 +929,14 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
932
929
|
} else
|
933
930
|
de("请先打开文件", "warning");
|
934
931
|
}, g = () => {
|
935
|
-
const
|
936
|
-
|
932
|
+
const b = e.project.value;
|
933
|
+
b && (b.currentFile ? b.publish(b.currentFile) : de("请先打开文件", "warning"));
|
937
934
|
}, _ = async () => {
|
938
|
-
const
|
939
|
-
if (
|
940
|
-
if (
|
935
|
+
const b = e.project.value;
|
936
|
+
if (b)
|
937
|
+
if (b.currentFile)
|
941
938
|
if (await a()) {
|
942
|
-
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;
|
943
940
|
if (!k) {
|
944
941
|
de("截图失败", "warning");
|
945
942
|
return;
|
@@ -962,10 +959,10 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
962
959
|
).catch(() => !1) && o();
|
963
960
|
else
|
964
961
|
de("请先打开文件", "warning");
|
965
|
-
}, c = (
|
962
|
+
}, c = (b) => {
|
966
963
|
const k = e.project.value;
|
967
964
|
if (k)
|
968
|
-
switch (
|
965
|
+
switch (b) {
|
969
966
|
case "current":
|
970
967
|
g();
|
971
968
|
break;
|
@@ -976,10 +973,9 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
976
973
|
_();
|
977
974
|
break;
|
978
975
|
}
|
979
|
-
},
|
980
|
-
|
981
|
-
|
982
|
-
const k = await e.service.genSource(h.toDsl());
|
976
|
+
}, h = async () => {
|
977
|
+
if (!e.project.value) return;
|
978
|
+
const k = await e.genSource();
|
983
979
|
k && $n({
|
984
980
|
width: "600px",
|
985
981
|
height: "200px",
|
@@ -988,9 +984,9 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
988
984
|
content: Le(No, { link: k })
|
989
985
|
});
|
990
986
|
};
|
991
|
-
return (
|
992
|
-
|
993
|
-
|
987
|
+
return (b, k) => (d(), j("div", Mo, [
|
988
|
+
A("", !0),
|
989
|
+
A("", !0),
|
994
990
|
m(n(le), {
|
995
991
|
onClick: v,
|
996
992
|
type: s.value ? "warning" : "default",
|
@@ -1027,7 +1023,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1027
1023
|
m(n(Lt), { direction: "vertical" }),
|
1028
1024
|
t.coder ? (d(), w(n(le), {
|
1029
1025
|
key: 2,
|
1030
|
-
onClick:
|
1026
|
+
onClick: h,
|
1031
1027
|
icon: n(Rt),
|
1032
1028
|
size: "small",
|
1033
1029
|
type: "success"
|
@@ -1036,7 +1032,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1036
1032
|
H(" 出码 ")
|
1037
1033
|
])),
|
1038
1034
|
_: 1
|
1039
|
-
}, 8, ["icon"])) :
|
1035
|
+
}, 8, ["icon"])) : A("", !0),
|
1040
1036
|
t.onlyPublishTemplate ? (d(), w(n(le), {
|
1041
1037
|
key: 3,
|
1042
1038
|
onClick: _,
|
@@ -1048,7 +1044,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1048
1044
|
H(" 发布模板 ")
|
1049
1045
|
])),
|
1050
1046
|
_: 1
|
1051
|
-
}, 8, ["icon"])) : (d(), w(n(
|
1047
|
+
}, 8, ["icon"])) : (d(), w(n(jn), {
|
1052
1048
|
key: 4,
|
1053
1049
|
"split-button": "",
|
1054
1050
|
type: "primary",
|
@@ -1057,7 +1053,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1057
1053
|
onCommand: c
|
1058
1054
|
}, {
|
1059
1055
|
dropdown: y(() => [
|
1060
|
-
m(n(
|
1056
|
+
m(n(An), null, {
|
1061
1057
|
default: y(() => [
|
1062
1058
|
m(n(ct), {
|
1063
1059
|
command: "current",
|
@@ -1100,7 +1096,7 @@ const Vo = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1100
1096
|
key: 5,
|
1101
1097
|
modelValue: r.value,
|
1102
1098
|
"onUpdate:modelValue": k[0] || (k[0] = (x) => r.value = x)
|
1103
|
-
}, u.value), null, 16, ["modelValue"])) :
|
1099
|
+
}, u.value), null, 16, ["modelValue"])) : A("", !0)
|
1104
1100
|
]));
|
1105
1101
|
}
|
1106
1102
|
});
|
@@ -1190,54 +1186,54 @@ function Zo(i, t, e = {}) {
|
|
1190
1186
|
const { window: l = xt, ignore: a = [], capture: o = !0, detectIframe: s = !1 } = e;
|
1191
1187
|
if (!l)
|
1192
1188
|
return dt;
|
1193
|
-
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));
|
1194
1190
|
let r = !0;
|
1195
|
-
const u = (
|
1196
|
-
if (typeof
|
1197
|
-
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));
|
1198
1194
|
{
|
1199
|
-
const k = Se(
|
1200
|
-
return k && (
|
1195
|
+
const k = Se(b);
|
1196
|
+
return k && (h.target === k || h.composedPath().includes(k));
|
1201
1197
|
}
|
1202
1198
|
});
|
1203
|
-
function f(
|
1204
|
-
const
|
1205
|
-
return
|
1206
|
-
}
|
1207
|
-
function p(
|
1208
|
-
const k = Be(
|
1209
|
-
return x == null || !Array.isArray(x) ? !1 : x.some((D) => D.el ===
|
1210
|
-
}
|
1211
|
-
const v = (
|
1212
|
-
const
|
1213
|
-
if (
|
1214
|
-
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) {
|
1215
1211
|
r = !0;
|
1216
1212
|
return;
|
1217
1213
|
}
|
1218
|
-
t(
|
1214
|
+
t(h);
|
1219
1215
|
}
|
1220
1216
|
};
|
1221
1217
|
let g = !1;
|
1222
1218
|
const _ = [
|
1223
|
-
Xe(l, "click", (
|
1219
|
+
Xe(l, "click", (h) => {
|
1224
1220
|
g || (g = !0, setTimeout(() => {
|
1225
1221
|
g = !1;
|
1226
|
-
}, 0), v(
|
1222
|
+
}, 0), v(h));
|
1227
1223
|
}, { passive: !0, capture: o }),
|
1228
|
-
Xe(l, "pointerdown", (
|
1229
|
-
const
|
1230
|
-
r = !u(
|
1224
|
+
Xe(l, "pointerdown", (h) => {
|
1225
|
+
const b = Se(i);
|
1226
|
+
r = !u(h) && !!(b && !h.composedPath().includes(b));
|
1231
1227
|
}, { passive: !0 }),
|
1232
|
-
s && Xe(l, "blur", (
|
1228
|
+
s && Xe(l, "blur", (h) => {
|
1233
1229
|
setTimeout(() => {
|
1234
|
-
var
|
1230
|
+
var b;
|
1235
1231
|
const k = Se(i);
|
1236
|
-
((
|
1232
|
+
((b = l.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !k?.contains(l.document.activeElement) && t(h);
|
1237
1233
|
}, 0);
|
1238
1234
|
})
|
1239
1235
|
].filter(Boolean);
|
1240
|
-
return () => _.forEach((
|
1236
|
+
return () => _.forEach((h) => h());
|
1241
1237
|
}
|
1242
1238
|
function er() {
|
1243
1239
|
const i = S(!1), t = hn();
|
@@ -1289,17 +1285,17 @@ function nl(i = {}) {
|
|
1289
1285
|
function _() {
|
1290
1286
|
s.value && k(r.value) ? t.clipboard.readText().then((x) => {
|
1291
1287
|
p.value = x;
|
1292
|
-
}) : p.value =
|
1288
|
+
}) : p.value = b();
|
1293
1289
|
}
|
1294
1290
|
f.value && e && Xe(["copy", "cut"], _);
|
1295
1291
|
async function c(x = Be(l)) {
|
1296
|
-
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());
|
1297
1293
|
}
|
1298
|
-
function
|
1294
|
+
function h(x) {
|
1299
1295
|
const D = document.createElement("textarea");
|
1300
1296
|
D.value = x ?? "", D.style.position = "absolute", D.style.opacity = "0", document.body.appendChild(D), D.select(), document.execCommand("copy"), D.remove();
|
1301
1297
|
}
|
1302
|
-
function
|
1298
|
+
function b() {
|
1303
1299
|
var x, D, I;
|
1304
1300
|
return (I = (D = (x = document?.getSelection) == null ? void 0 : x.call(document)) == null ? void 0 : D.toString()) != null ? I : "";
|
1305
1301
|
}
|
@@ -1355,7 +1351,7 @@ function tt(i, t = { width: 0, height: 0 }, e = {}) {
|
|
1355
1351
|
}
|
1356
1352
|
} else if (g) {
|
1357
1353
|
const _ = Array.isArray(g) ? g : [g];
|
1358
|
-
s.value = _.reduce((c, { inlineSize:
|
1354
|
+
s.value = _.reduce((c, { inlineSize: h }) => c + h, 0), r.value = _.reduce((c, { blockSize: h }) => c + h, 0);
|
1359
1355
|
} else
|
1360
1356
|
s.value = v.contentRect.width, r.value = v.contentRect.height;
|
1361
1357
|
},
|
@@ -1403,7 +1399,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1403
1399
|
}, g = () => {
|
1404
1400
|
a.value = !0;
|
1405
1401
|
};
|
1406
|
-
return (_, c) => (d(),
|
1402
|
+
return (_, c) => (d(), j("div", nr, [
|
1407
1403
|
m(n(be), {
|
1408
1404
|
size: e.size,
|
1409
1405
|
readonly: "",
|
@@ -1426,7 +1422,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1426
1422
|
submit: "",
|
1427
1423
|
clear: "",
|
1428
1424
|
modelValue: a.value,
|
1429
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
1425
|
+
"onUpdate:modelValue": c[1] || (c[1] = (h) => a.value = h),
|
1430
1426
|
onSubmit: p
|
1431
1427
|
}, {
|
1432
1428
|
extra: y(() => [
|
@@ -1448,21 +1444,21 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1448
1444
|
"prefix-icon": n(nt),
|
1449
1445
|
clearable: "",
|
1450
1446
|
modelValue: s.value,
|
1451
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
1447
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => s.value = h),
|
1452
1448
|
placeholder: "请输入查询关键字"
|
1453
1449
|
}, null, 8, ["size", "prefix-icon", "modelValue"]),
|
1454
1450
|
V("div", ar, [
|
1455
|
-
(d(!0),
|
1456
|
-
icon:
|
1457
|
-
onClick: (
|
1458
|
-
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] })
|
1459
1455
|
}, null, 8, ["icon", "onClick", "class"]))), 256)),
|
1460
|
-
u.value.length === 0 ? (d(), w(n(ie), { key: 0 })) :
|
1456
|
+
u.value.length === 0 ? (d(), w(n(ie), { key: 0 })) : A("", !0)
|
1461
1457
|
])
|
1462
1458
|
])
|
1463
1459
|
]),
|
1464
1460
|
_: 1
|
1465
|
-
}, 8, ["modelValue"])) :
|
1461
|
+
}, 8, ["modelValue"])) : A("", !0)
|
1466
1462
|
]));
|
1467
1463
|
}
|
1468
1464
|
}), re = fl({
|
@@ -1517,7 +1513,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1517
1513
|
message: "已经复制到粘贴板"
|
1518
1514
|
});
|
1519
1515
|
};
|
1520
|
-
return (c,
|
1516
|
+
return (c, h) => (d(), w(n(je), {
|
1521
1517
|
title: o.value,
|
1522
1518
|
width: "800px",
|
1523
1519
|
height: "700px",
|
@@ -1546,7 +1542,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1546
1542
|
H(L(`${n(l).options.pageBasePath || ""}/page/${r.value.id}`) + " ", 1),
|
1547
1543
|
m(n(Re), {
|
1548
1544
|
icon: n(Ca),
|
1549
|
-
onClick:
|
1545
|
+
onClick: h[0] || (h[0] = (b) => _(
|
1550
1546
|
`${n(l).options.pageBasePath || ""}/page/${r.value.id}`
|
1551
1547
|
))
|
1552
1548
|
}, null, 8, ["icon"])
|
@@ -1555,13 +1551,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1555
1551
|
})
|
1556
1552
|
]),
|
1557
1553
|
_: 1
|
1558
|
-
})) :
|
1554
|
+
})) : A("", !0),
|
1559
1555
|
m(n(P), {
|
1560
1556
|
name: "name",
|
1561
1557
|
label: "名称",
|
1562
1558
|
required: "",
|
1563
1559
|
onChange: p,
|
1564
|
-
rules: { pattern: n(
|
1560
|
+
rules: { pattern: n(Ae), message: "名称格式不正确" }
|
1565
1561
|
}, null, 8, ["rules"]),
|
1566
1562
|
m(n(P), {
|
1567
1563
|
name: "title",
|
@@ -1576,7 +1572,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1576
1572
|
editor: y(() => [
|
1577
1573
|
m(ll, {
|
1578
1574
|
modelValue: r.value.icon,
|
1579
|
-
"onUpdate:modelValue":
|
1575
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => r.value.icon = b),
|
1580
1576
|
size: "default"
|
1581
1577
|
}, null, 8, ["modelValue"])
|
1582
1578
|
]),
|
@@ -1634,7 +1630,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1634
1630
|
height: "100px",
|
1635
1631
|
lang: "json",
|
1636
1632
|
modelValue: u.value,
|
1637
|
-
"onUpdate:modelValue":
|
1633
|
+
"onUpdate:modelValue": h[2] || (h[2] = (b) => u.value = b)
|
1638
1634
|
}, null, 8, ["modelValue"])
|
1639
1635
|
]),
|
1640
1636
|
_: 1
|
@@ -1717,8 +1713,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1717
1713
|
l("remove");
|
1718
1714
|
}, v = () => {
|
1719
1715
|
l("save");
|
1720
|
-
}, g = (
|
1721
|
-
l("command",
|
1716
|
+
}, g = (h) => {
|
1717
|
+
l("command", h.command);
|
1722
1718
|
}, _ = C(() => e.header ? {
|
1723
1719
|
content: e.title,
|
1724
1720
|
subtitle: e.subtitle,
|
@@ -1727,10 +1723,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1727
1723
|
onClick: e.collapsable ? () => {
|
1728
1724
|
a.value = !a.value;
|
1729
1725
|
} : void 0
|
1730
|
-
} : null), c = (
|
1731
|
-
a.value =
|
1726
|
+
} : null), c = (h) => {
|
1727
|
+
a.value = h;
|
1732
1728
|
};
|
1733
|
-
return (
|
1729
|
+
return (h, b) => (d(), w(n(yt), {
|
1734
1730
|
class: K(["v-panel", o.value]),
|
1735
1731
|
border: !1,
|
1736
1732
|
header: _.value,
|
@@ -1739,16 +1735,16 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1739
1735
|
actions: y(() => [
|
1740
1736
|
e.refresh ? (d(), w(n(ge), {
|
1741
1737
|
key: 0,
|
1742
|
-
size:
|
1738
|
+
size: h.$attrs.size,
|
1743
1739
|
mode: "icon",
|
1744
1740
|
icon: n(Ln),
|
1745
1741
|
background: "hover",
|
1746
1742
|
title: "刷新",
|
1747
1743
|
onClick: s
|
1748
|
-
}, null, 8, ["size", "icon"])) :
|
1744
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1749
1745
|
e.plus ? (d(), w(n(ge), {
|
1750
1746
|
key: 1,
|
1751
|
-
size:
|
1747
|
+
size: h.$attrs.size,
|
1752
1748
|
mode: "icon",
|
1753
1749
|
icon: n(Mn),
|
1754
1750
|
background: "hover",
|
@@ -1757,67 +1753,67 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1757
1753
|
dropdown: { placement: "bottom-end" },
|
1758
1754
|
onClick: r,
|
1759
1755
|
onCommand: g
|
1760
|
-
}, null, 8, ["size", "icon", "menus"])) :
|
1756
|
+
}, null, 8, ["size", "icon", "menus"])) : A("", !0),
|
1761
1757
|
e.edit ? (d(), w(n(ge), {
|
1762
1758
|
key: 2,
|
1763
|
-
size:
|
1759
|
+
size: h.$attrs.size,
|
1764
1760
|
mode: "icon",
|
1765
|
-
icon: n(
|
1761
|
+
icon: n(ja),
|
1766
1762
|
background: "hover",
|
1767
1763
|
title: "编辑",
|
1768
1764
|
onClick: u
|
1769
|
-
}, null, 8, ["size", "icon"])) :
|
1765
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1770
1766
|
e.remove ? (d(), w(n(ge), {
|
1771
1767
|
key: 3,
|
1772
|
-
size:
|
1768
|
+
size: h.$attrs.size,
|
1773
1769
|
mode: "icon",
|
1774
1770
|
icon: n(Jn),
|
1775
1771
|
background: "hover",
|
1776
1772
|
title: "清除",
|
1777
1773
|
onClick: p
|
1778
|
-
}, null, 8, ["size", "icon"])) :
|
1774
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1779
1775
|
e.save ? (d(), w(n(ge), {
|
1780
1776
|
key: 4,
|
1781
|
-
size:
|
1777
|
+
size: h.$attrs.size,
|
1782
1778
|
mode: "icon",
|
1783
|
-
icon: n(
|
1779
|
+
icon: n(Aa),
|
1784
1780
|
background: "hover",
|
1785
1781
|
title: "保存",
|
1786
1782
|
onClick: v
|
1787
|
-
}, null, 8, ["size", "icon"])) :
|
1783
|
+
}, null, 8, ["size", "icon"])) : A("", !0),
|
1788
1784
|
e.collapsable ? Ee((d(), w(n(ge), {
|
1789
1785
|
key: 5,
|
1790
|
-
size:
|
1786
|
+
size: h.$attrs.size,
|
1791
1787
|
mode: "icon",
|
1792
1788
|
icon: n(Nn),
|
1793
1789
|
background: "hover",
|
1794
1790
|
title: "展开",
|
1795
|
-
onClick:
|
1791
|
+
onClick: b[0] || (b[0] = (k) => c(!1))
|
1796
1792
|
}, null, 8, ["size", "icon"])), [
|
1797
1793
|
[We, a.value]
|
1798
|
-
]) :
|
1794
|
+
]) : A("", !0),
|
1799
1795
|
e.collapsable ? Ee((d(), w(n(ge), {
|
1800
1796
|
key: 6,
|
1801
|
-
size:
|
1797
|
+
size: h.$attrs.size,
|
1802
1798
|
mode: "icon",
|
1803
1799
|
icon: n(Ea),
|
1804
1800
|
background: "hover",
|
1805
1801
|
title: "收起",
|
1806
|
-
onClick:
|
1802
|
+
onClick: b[1] || (b[1] = (k) => c(!0))
|
1807
1803
|
}, null, 8, ["size", "icon"])), [
|
1808
1804
|
[We, !a.value]
|
1809
|
-
]) :
|
1810
|
-
Ve(
|
1805
|
+
]) : A("", !0),
|
1806
|
+
Ve(h.$slots, "actions")
|
1811
1807
|
]),
|
1812
1808
|
default: y(() => [
|
1813
|
-
Ve(
|
1809
|
+
Ve(h.$slots, "default")
|
1814
1810
|
]),
|
1815
1811
|
_: 2
|
1816
1812
|
}, [
|
1817
|
-
|
1813
|
+
h.$slots.footer ? {
|
1818
1814
|
name: "footer",
|
1819
1815
|
fn: y(() => [
|
1820
|
-
Ve(
|
1816
|
+
Ve(h.$slots, "footer")
|
1821
1817
|
]),
|
1822
1818
|
key: "0"
|
1823
1819
|
} : void 0
|
@@ -1878,7 +1874,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1878
1874
|
onActionClick: r,
|
1879
1875
|
stretch: e.stretch
|
1880
1876
|
}, null, 8, ["items", "modelValue", "stretch"]),
|
1881
|
-
e.menus && e.menus.length ? (d(),
|
1877
|
+
e.menus && e.menus.length ? (d(), j("div", rr, [
|
1882
1878
|
e.menus && e.menus.length ? (d(), w(n(ge), {
|
1883
1879
|
key: 0,
|
1884
1880
|
mode: "icon",
|
@@ -1900,13 +1896,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
1900
1896
|
"v-tabs__checked": !0,
|
1901
1897
|
"is-checked": p.checked
|
1902
1898
|
})
|
1903
|
-
}, null, 8, ["class"])) :
|
1899
|
+
}, null, 8, ["class"])) : A("", !0),
|
1904
1900
|
H(" " + L(p.label), 1)
|
1905
1901
|
])
|
1906
1902
|
]),
|
1907
1903
|
_: 1
|
1908
|
-
}, 8, ["icon", "menus"])) :
|
1909
|
-
])) :
|
1904
|
+
}, 8, ["icon", "menus"])) : A("", !0)
|
1905
|
+
])) : A("", !0)
|
1910
1906
|
])
|
1911
1907
|
]),
|
1912
1908
|
default: y(() => [
|
@@ -2047,7 +2043,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2047
2043
|
g.icon ? (d(), w(n(Re), {
|
2048
2044
|
key: 0,
|
2049
2045
|
icon: g.icon
|
2050
|
-
}, null, 8, ["icon"])) :
|
2046
|
+
}, null, 8, ["icon"])) : A("", !0),
|
2051
2047
|
l.tag ? (d(), w(n(Dn), {
|
2052
2048
|
key: 1,
|
2053
2049
|
class: "v-item__tag",
|
@@ -2058,16 +2054,16 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2058
2054
|
H(L(l.tag), 1)
|
2059
2055
|
]),
|
2060
2056
|
_: 1
|
2061
|
-
}, 8, ["type"])) :
|
2062
|
-
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),
|
2063
2059
|
V("span", ur, L(g.title), 1),
|
2064
|
-
g.subtitle ? (d(),
|
2060
|
+
g.subtitle ? (d(), j("span", {
|
2065
2061
|
key: 3,
|
2066
2062
|
class: K(["v-item__subtitle", l.subtitleCls])
|
2067
|
-
}, L(g.subtitle), 3)) :
|
2068
|
-
l.textTags ? (d(),
|
2069
|
-
(d(!0),
|
2070
|
-
])) :
|
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)
|
2071
2067
|
])
|
2072
2068
|
]),
|
2073
2069
|
_: 3
|
@@ -2084,7 +2080,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2084
2080
|
}, ["stop"]))
|
2085
2081
|
}, {
|
2086
2082
|
default: y(() => [
|
2087
|
-
(d(!0),
|
2083
|
+
(d(!0), j(z, null, W(s.value, (c) => (d(), w(n(ge), {
|
2088
2084
|
name: c.name,
|
2089
2085
|
title: c.label,
|
2090
2086
|
mode: "icon",
|
@@ -2092,7 +2088,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2092
2088
|
background: "none",
|
2093
2089
|
type: "info",
|
2094
2090
|
icon: c.icon,
|
2095
|
-
onClick: (
|
2091
|
+
onClick: (h) => p(c.name)
|
2096
2092
|
}, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
|
2097
2093
|
l.switch ? (d(), w(n(Pn), {
|
2098
2094
|
key: 0,
|
@@ -2100,7 +2096,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2100
2096
|
"onUpdate:modelValue": _[0] || (_[0] = (c) => o.value = c),
|
2101
2097
|
class: "v-item__switch",
|
2102
2098
|
size: "small"
|
2103
|
-
}, null, 8, ["modelValue"])) :
|
2099
|
+
}, null, 8, ["modelValue"])) : A("", !0),
|
2104
2100
|
Ve(g.$slots, "status")
|
2105
2101
|
]),
|
2106
2102
|
_: 3
|
@@ -2115,7 +2111,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2115
2111
|
menus: r.value,
|
2116
2112
|
dropdown: { placement: "bottom-end" },
|
2117
2113
|
onCommand: v
|
2118
|
-
}, null, 8, ["icon", "menus"])) :
|
2114
|
+
}, null, 8, ["icon", "menus"])) : A("", !0)
|
2119
2115
|
]),
|
2120
2116
|
_: 3
|
2121
2117
|
})
|
@@ -2171,7 +2167,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2171
2167
|
}, v = () => {
|
2172
2168
|
l("dragend", e);
|
2173
2169
|
};
|
2174
|
-
return (g, _) => (d(),
|
2170
|
+
return (g, _) => (d(), j("div", {
|
2175
2171
|
class: K(["v-box", f.value]),
|
2176
2172
|
draggable: g.draggable,
|
2177
2173
|
onDragstart: p,
|
@@ -2209,11 +2205,11 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2209
2205
|
}, null, 8, ["icon"])
|
2210
2206
|
]),
|
2211
2207
|
_: 1
|
2212
|
-
})) :
|
2213
|
-
e.tag ? (d(),
|
2208
|
+
})) : A("", !0),
|
2209
|
+
e.tag ? (d(), j("span", {
|
2214
2210
|
key: 1,
|
2215
2211
|
class: K(["v-box__tag", { [`is-${e.tagType}`]: !!e.tagType }])
|
2216
|
-
}, L(e.tag), 3)) :
|
2212
|
+
}, L(e.tag), 3)) : A("", !0)
|
2217
2213
|
], 42, dr));
|
2218
2214
|
}
|
2219
2215
|
}), vr = { class: "v-context-viewer" }, gr = /* @__PURE__ */ E({
|
@@ -2227,12 +2223,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2227
2223
|
const v = p.value, g = Vt(v);
|
2228
2224
|
return g === "Object" || g === "Module" ? Object.keys(v || {}).length === 0 : g === "Array" ? v.length === 0 : !0;
|
2229
2225
|
}, s = (p, v = "this") => typeof p == "object" ? Array.isArray(p) ? p.map((_, c) => {
|
2230
|
-
const
|
2226
|
+
const h = `[${c}]`;
|
2231
2227
|
return {
|
2232
|
-
label:
|
2228
|
+
label: h,
|
2233
2229
|
value: _,
|
2234
2230
|
type: Vt(_),
|
2235
|
-
path: `${v}${
|
2231
|
+
path: `${v}${h}`
|
2236
2232
|
};
|
2237
2233
|
}) : yo(p).map((_) => {
|
2238
2234
|
const c = p[_];
|
@@ -2256,7 +2252,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2256
2252
|
}, f = (p) => {
|
2257
2253
|
l("pick", p.path);
|
2258
2254
|
};
|
2259
|
-
return (p, v) => (d(),
|
2255
|
+
return (p, v) => (d(), j("div", vr, [
|
2260
2256
|
p.context ? (d(), w(n(Nt), {
|
2261
2257
|
key: 0,
|
2262
2258
|
lazy: "",
|
@@ -2279,7 +2275,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2279
2275
|
}, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
|
2280
2276
|
]),
|
2281
2277
|
_: 1
|
2282
|
-
}, 8, ["props"])) :
|
2278
|
+
}, 8, ["props"])) : A("", !0)
|
2283
2279
|
]));
|
2284
2280
|
}
|
2285
2281
|
}), Zt = /* @__PURE__ */ E({
|
@@ -2322,9 +2318,9 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2322
2318
|
v();
|
2323
2319
|
}, c = async () => {
|
2324
2320
|
f.value?.submit();
|
2325
|
-
}, b = (k) => {
|
2326
|
-
l("pick", k);
|
2327
2321
|
}, h = (k) => {
|
2322
|
+
l("pick", k);
|
2323
|
+
}, b = (k) => {
|
2328
2324
|
s(k), Pe.success({
|
2329
2325
|
message: "已经复制到粘贴板"
|
2330
2326
|
});
|
@@ -2376,30 +2372,30 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2376
2372
|
"prefix-icon": n(nt),
|
2377
2373
|
placeholder: "筛选可用项"
|
2378
2374
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
2379
|
-
(d(!0),
|
2375
|
+
(d(!0), j(z, null, W(n(a), (D) => (d(), j("div", null, [
|
2380
2376
|
m(n(Lt), { "border-style": "dotted" }, {
|
2381
2377
|
default: y(() => [
|
2382
2378
|
H(L(D.title), 1)
|
2383
2379
|
]),
|
2384
2380
|
_: 2
|
2385
2381
|
}, 1024),
|
2386
|
-
(d(!0),
|
2382
|
+
(d(!0), j(z, null, W(D.items, (I) => (d(), w(ve, {
|
2387
2383
|
title: I,
|
2388
2384
|
background: "",
|
2389
2385
|
actions: ["copy"],
|
2390
2386
|
small: "",
|
2391
|
-
onClick: (O) =>
|
2392
|
-
onAction: (O) =>
|
2387
|
+
onClick: (O) => h(I),
|
2388
|
+
onAction: (O) => b(I)
|
2393
2389
|
}, null, 8, ["title", "onClick", "onAction"]))), 256))
|
2394
2390
|
]))), 256)),
|
2395
|
-
n(a).length ?
|
2391
|
+
n(a).length ? A("", !0) : (d(), w(n(ie), { key: 0 }))
|
2396
2392
|
], 512), [
|
2397
2393
|
[We, u.value === "normal"]
|
2398
2394
|
]),
|
2399
2395
|
Ee(m(gr, {
|
2400
2396
|
context: e.context,
|
2401
|
-
onCopy:
|
2402
|
-
onPick:
|
2397
|
+
onCopy: b,
|
2398
|
+
onPick: h
|
2403
2399
|
}, null, 8, ["context"]), [
|
2404
2400
|
[We, u.value === "viewer"]
|
2405
2401
|
])
|
@@ -2432,7 +2428,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2432
2428
|
H(" 移除绑定 ")
|
2433
2429
|
])),
|
2434
2430
|
_: 1
|
2435
|
-
})) :
|
2431
|
+
})) : A("", !0)
|
2436
2432
|
]),
|
2437
2433
|
_: 1
|
2438
2434
|
}),
|
@@ -2527,7 +2523,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2527
2523
|
wrap: "wrap"
|
2528
2524
|
}, {
|
2529
2525
|
default: y(() => [
|
2530
|
-
(d(!0),
|
2526
|
+
(d(!0), j(z, null, W(e.slots, (p, v) => (d(), w(n(q), {
|
2531
2527
|
class: K(["v-slots-picker__item", { "is-active": p.name === a.value?.name }]),
|
2532
2528
|
grow: "",
|
2533
2529
|
flex: !1,
|
@@ -2570,7 +2566,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2570
2566
|
transform: `translate(-50%, -50%) scale(${l.value})`
|
2571
2567
|
};
|
2572
2568
|
});
|
2573
|
-
return (o, s) => (d(),
|
2569
|
+
return (o, s) => (d(), j("div", {
|
2574
2570
|
class: K(["v-viewport", e.value]),
|
2575
2571
|
style: rt(a.value)
|
2576
2572
|
}, [
|
@@ -2596,14 +2592,14 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2596
2592
|
name: "PagesWidget",
|
2597
2593
|
__name: "index",
|
2598
2594
|
setup(i) {
|
2599
|
-
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 = (
|
2600
|
-
const
|
2601
|
-
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;
|
2602
2598
|
}, p = () => {
|
2603
2599
|
r.value = void 0, s.value = void 0, o.value = !0;
|
2604
|
-
}, v = async (
|
2605
|
-
const { name:
|
2606
|
-
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") {
|
2607
2603
|
if (x.dir) {
|
2608
2604
|
const I = t.value?.getPage(x.id);
|
2609
2605
|
if (I && I.children?.length) {
|
@@ -2613,25 +2609,25 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2613
2609
|
}
|
2614
2610
|
t.value?.removePage(x.id);
|
2615
2611
|
}
|
2616
|
-
if (
|
2612
|
+
if (b === "copy") {
|
2617
2613
|
const I = D.parent?.data.id;
|
2618
2614
|
t.value?.clonePage(x, I);
|
2619
2615
|
}
|
2620
|
-
|
2621
|
-
}, g = async (
|
2622
|
-
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)
|
2623
2619
|
e.project.value?.deactivate();
|
2624
2620
|
else {
|
2625
|
-
e.project.value?.active(
|
2626
|
-
const
|
2627
|
-
|
2621
|
+
e.project.value?.active(h);
|
2622
|
+
const b = e.skeleton?.getRegion("Workspace");
|
2623
|
+
b && b.regionRef.openTab("Designer");
|
2628
2624
|
}
|
2629
|
-
}, _ = (
|
2625
|
+
}, _ = (h, b, k) => k === "inner" ? !!b.data.dir : !0, c = () => {
|
2630
2626
|
t.value?.update({
|
2631
2627
|
pages: Dt(l)
|
2632
2628
|
});
|
2633
2629
|
};
|
2634
|
-
return (
|
2630
|
+
return (h, b) => (d(), w(n(G), {
|
2635
2631
|
class: "v-pages-widget",
|
2636
2632
|
title: "页面管理",
|
2637
2633
|
plus: "",
|
@@ -2671,10 +2667,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2671
2667
|
o.value ? (d(), w(sr, {
|
2672
2668
|
key: 0,
|
2673
2669
|
modelValue: o.value,
|
2674
|
-
"onUpdate:modelValue":
|
2670
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => o.value = k),
|
2675
2671
|
item: s.value,
|
2676
2672
|
"parent-id": r.value
|
2677
|
-
}, null, 8, ["modelValue", "item", "parent-id"])) :
|
2673
|
+
}, null, 8, ["modelValue", "item", "parent-id"])) : A("", !0)
|
2678
2674
|
]),
|
2679
2675
|
_: 1
|
2680
2676
|
}, 8, ["subtitle"]));
|
@@ -2721,17 +2717,17 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2721
2717
|
}) ? !0 : (oe(`只支持 ${x.join(",")} 文件`), !1) : !0;
|
2722
2718
|
}, c = () => {
|
2723
2719
|
_() && (l("change", g.value), l("update:modelValue", g.value), r.value = !1);
|
2724
|
-
}, b = () => {
|
2725
|
-
v.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
|
2726
2720
|
}, h = () => {
|
2721
|
+
v.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
|
2722
|
+
}, b = () => {
|
2727
2723
|
r.value = !0;
|
2728
2724
|
}, k = (x) => {
|
2729
2725
|
x.name && o.value?.id && a.service.removeStaticFile(x.name, o.value?.id);
|
2730
2726
|
};
|
2731
|
-
return (x, D) => (d(),
|
2727
|
+
return (x, D) => (d(), j("div", _r, [
|
2732
2728
|
m(n(be), ue({
|
2733
2729
|
readonly: "",
|
2734
|
-
onFocus:
|
2730
|
+
onFocus: b,
|
2735
2731
|
"model-value": e.modelValue,
|
2736
2732
|
"suffix-icon": n($a)
|
2737
2733
|
}, x.$attrs), null, 16, ["model-value", "suffix-icon"]),
|
@@ -2750,7 +2746,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2750
2746
|
m(n(le), {
|
2751
2747
|
type: "warning",
|
2752
2748
|
size: "default",
|
2753
|
-
onClick:
|
2749
|
+
onClick: h
|
2754
2750
|
}, {
|
2755
2751
|
default: y(() => D[3] || (D[3] = [
|
2756
2752
|
H(" 清除 ")
|
@@ -2771,7 +2767,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2771
2767
|
}, e.attachment, { onRemove: k }), null, 16, ["modelValue", "select-value"])
|
2772
2768
|
]),
|
2773
2769
|
_: 1
|
2774
|
-
}, 8, ["modelValue"])) :
|
2770
|
+
}, 8, ["modelValue"])) : A("", !0)
|
2775
2771
|
]));
|
2776
2772
|
}
|
2777
2773
|
}), wr = { class: "v-blocks__search" }, kr = /* @__PURE__ */ E({
|
@@ -2816,7 +2812,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2816
2812
|
label: "插件",
|
2817
2813
|
type: "danger"
|
2818
2814
|
}
|
2819
|
-
}, 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 = () => ({
|
2820
2816
|
fromType: "Schema",
|
2821
2817
|
name: "",
|
2822
2818
|
title: "",
|
@@ -2867,7 +2863,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2867
2863
|
return (T, Y) => (d(), w(n(G), {
|
2868
2864
|
class: "v-blocks-widget",
|
2869
2865
|
title: "区块管理",
|
2870
|
-
subtitle:
|
2866
|
+
subtitle: b.value,
|
2871
2867
|
plus: "",
|
2872
2868
|
onPlus: O
|
2873
2869
|
}, {
|
@@ -2887,7 +2883,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2887
2883
|
"model-value": r.value
|
2888
2884
|
}, {
|
2889
2885
|
default: y(() => [
|
2890
|
-
(d(!0),
|
2886
|
+
(d(!0), j(z, null, W(s.value, (ae, Ge) => (d(), w(n(bt), {
|
2891
2887
|
name: Ge,
|
2892
2888
|
title: `${Ge} (${ae.length})`
|
2893
2889
|
}, {
|
@@ -2897,7 +2893,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2897
2893
|
gutter: 5
|
2898
2894
|
}, {
|
2899
2895
|
default: y(() => [
|
2900
|
-
(d(!0),
|
2896
|
+
(d(!0), j(z, null, W(ae, (he) => (d(), w(n(mt), {
|
2901
2897
|
key: he.id,
|
2902
2898
|
span: n(t)
|
2903
2899
|
}, {
|
@@ -2932,10 +2928,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2932
2928
|
key: 0,
|
2933
2929
|
description: "找不到符合条件的区块"
|
2934
2930
|
})),
|
2935
|
-
m(n(
|
2931
|
+
m(n(je), {
|
2936
2932
|
modelValue: c.value,
|
2937
2933
|
"onUpdate:modelValue": Y[1] || (Y[1] = (ae) => c.value = ae),
|
2938
|
-
title:
|
2934
|
+
title: h.value,
|
2939
2935
|
model: g.value,
|
2940
2936
|
width: "600px",
|
2941
2937
|
height: "400px",
|
@@ -2958,7 +2954,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2958
2954
|
tip: "名称为英文驼峰格式",
|
2959
2955
|
rules: {
|
2960
2956
|
message: "名称格式错误",
|
2961
|
-
pattern: n(
|
2957
|
+
pattern: n(Ae)
|
2962
2958
|
},
|
2963
2959
|
onChange: Q
|
2964
2960
|
}, null, 8, ["rules"]),
|
@@ -2972,7 +2968,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2972
2968
|
name: "library",
|
2973
2969
|
label: "插件名称",
|
2974
2970
|
required: ""
|
2975
|
-
})) :
|
2971
|
+
})) : A("", !0),
|
2976
2972
|
["Plugin", "UrlSchema"].includes(g.value?.fromType || "") ? (d(), w(n(P), {
|
2977
2973
|
key: 1,
|
2978
2974
|
name: "urls",
|
@@ -2980,7 +2976,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
2980
2976
|
required: "",
|
2981
2977
|
editor: en,
|
2982
2978
|
props: { attachment: { accept: x.value, multiple: D.value } }
|
2983
|
-
}, null, 8, ["props"])) :
|
2979
|
+
}, null, 8, ["props"])) : A("", !0),
|
2984
2980
|
m(n(P), {
|
2985
2981
|
name: "category",
|
2986
2982
|
label: "分组",
|
@@ -3029,13 +3025,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3029
3025
|
_: 1
|
3030
3026
|
}, 8, ["modelValue"])
|
3031
3027
|
]),
|
3032
|
-
n(r) ? (d(),
|
3028
|
+
n(r) ? (d(), j("div", xr, [
|
3033
3029
|
m(n(pt), {
|
3034
3030
|
wrap: "wrap",
|
3035
3031
|
gutter: 5
|
3036
3032
|
}, {
|
3037
3033
|
default: y(() => [
|
3038
|
-
(d(!0),
|
3034
|
+
(d(!0), j(z, null, W(n(u), (_) => (d(), w(n(mt), {
|
3039
3035
|
span: n(t),
|
3040
3036
|
key: _.name
|
3041
3037
|
}, {
|
@@ -3053,7 +3049,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3053
3049
|
]),
|
3054
3050
|
_: 1
|
3055
3051
|
}),
|
3056
|
-
n(u).length ?
|
3052
|
+
n(u).length ? A("", !0) : (d(), w(n(ie), { key: 0 }))
|
3057
3053
|
])) : (d(), w(n(Mt), {
|
3058
3054
|
key: 1,
|
3059
3055
|
items: n(l),
|
@@ -3068,7 +3064,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3068
3064
|
"onUpdate:modelValue": g[1] || (g[1] = (_) => n(s)[n(a)] = _)
|
3069
3065
|
}, {
|
3070
3066
|
default: y(() => [
|
3071
|
-
(d(!0),
|
3067
|
+
(d(!0), j(z, null, W(n(o).children, (_) => (d(), w(n(bt), {
|
3072
3068
|
key: _.name,
|
3073
3069
|
name: _.name,
|
3074
3070
|
title: `${_.label} (${_.count})`
|
@@ -3080,7 +3076,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3080
3076
|
gutter: 5
|
3081
3077
|
}, {
|
3082
3078
|
default: y(() => [
|
3083
|
-
(d(!0),
|
3079
|
+
(d(!0), j(z, null, W(_.components, (c) => (d(), w(n(mt), {
|
3084
3080
|
span: n(t),
|
3085
3081
|
key: c.name
|
3086
3082
|
}, {
|
@@ -3089,7 +3085,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3089
3085
|
name: c.name,
|
3090
3086
|
title: c.label || c.name,
|
3091
3087
|
draggable: "",
|
3092
|
-
onDragstart: (
|
3088
|
+
onDragstart: (h) => f(c),
|
3093
3089
|
onDragend: p
|
3094
3090
|
}, null, 8, ["name", "title", "onDragstart"])
|
3095
3091
|
]),
|
@@ -3097,13 +3093,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3097
3093
|
}, 1032, ["span"]))), 128))
|
3098
3094
|
]),
|
3099
3095
|
_: 2
|
3100
|
-
}, 1024)) :
|
3096
|
+
}, 1024)) : A("", !0)
|
3101
3097
|
]),
|
3102
3098
|
_: 2
|
3103
3099
|
}, 1032, ["name", "title"]))), 128))
|
3104
3100
|
]),
|
3105
3101
|
_: 1
|
3106
|
-
}, 8, ["modelValue"])) :
|
3102
|
+
}, 8, ["modelValue"])) : A("", !0)
|
3107
3103
|
])
|
3108
3104
|
]),
|
3109
3105
|
_: 1
|
@@ -3112,7 +3108,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3112
3108
|
_: 1
|
3113
3109
|
}));
|
3114
3110
|
}
|
3115
|
-
}),
|
3111
|
+
}), jr = /* @__PURE__ */ E({
|
3116
3112
|
name: "OutlineWidget",
|
3117
3113
|
__name: "index",
|
3118
3114
|
setup(i) {
|
@@ -3193,7 +3189,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3193
3189
|
return;
|
3194
3190
|
}
|
3195
3191
|
e.value?.setSelected(R), e.value?.setHover(null);
|
3196
|
-
},
|
3192
|
+
}, h = async ($, R, B) => {
|
3197
3193
|
const Q = $.data, fe = R.data;
|
3198
3194
|
if (ne(fe.model)) {
|
3199
3195
|
const ae = Q.model;
|
@@ -3219,7 +3215,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3219
3215
|
} else
|
3220
3216
|
p();
|
3221
3217
|
e.value?.setDropping(null), e.value?.setDragging(null), t.simulator.refresh();
|
3222
|
-
},
|
3218
|
+
}, b = ($) => {
|
3223
3219
|
if ($.type === "slot") {
|
3224
3220
|
e.value?.setHover(null);
|
3225
3221
|
return;
|
@@ -3279,7 +3275,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3279
3275
|
"allow-drop": _,
|
3280
3276
|
"allow-drag": g,
|
3281
3277
|
onCurrentChange: c,
|
3282
|
-
onNodeDrop:
|
3278
|
+
onNodeDrop: h,
|
3283
3279
|
onNodeDragStart: x,
|
3284
3280
|
onNodeDragEnd: D
|
3285
3281
|
}, {
|
@@ -3302,7 +3298,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3302
3298
|
subtitle: B.type,
|
3303
3299
|
actions: s(B.model, B.type),
|
3304
3300
|
onAction: O,
|
3305
|
-
onMouseenter: (fe) =>
|
3301
|
+
onMouseenter: (fe) => b(B),
|
3306
3302
|
onMouseleave: k
|
3307
3303
|
}, null, 8, ["class", "active", "model-value", "icon", "title", "subtitle", "actions", "onMouseenter"])
|
3308
3304
|
]),
|
@@ -3312,7 +3308,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3312
3308
|
_: 1
|
3313
3309
|
}));
|
3314
3310
|
}
|
3315
|
-
}),
|
3311
|
+
}), Ar = /* @__PURE__ */ E({
|
3316
3312
|
name: "HistoryWidget",
|
3317
3313
|
__name: "index",
|
3318
3314
|
setup(i) {
|
@@ -3332,8 +3328,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3332
3328
|
n(l) === 0 ? (d(), w(n(ie), {
|
3333
3329
|
key: 0,
|
3334
3330
|
"image-size": 50
|
3335
|
-
})) :
|
3336
|
-
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), {
|
3337
3333
|
index: p + 1,
|
3338
3334
|
title: f.label,
|
3339
3335
|
"model-value": f,
|
@@ -3343,7 +3339,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3343
3339
|
actions: ["remove"],
|
3344
3340
|
onAction: o,
|
3345
3341
|
onClick: (v) => n(e)(f.id)
|
3346
|
-
}, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256)) :
|
3342
|
+
}, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256)) : A("", !0)
|
3347
3343
|
]),
|
3348
3344
|
_: 1
|
3349
3345
|
}, 8, ["subtitle", "remove"]));
|
@@ -3365,7 +3361,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3365
3361
|
label: o,
|
3366
3362
|
value: o
|
3367
3363
|
})));
|
3368
|
-
return (o, s) => (d(),
|
3364
|
+
return (o, s) => (d(), j("div", null, [
|
3369
3365
|
m(n(P), {
|
3370
3366
|
name: "method",
|
3371
3367
|
label: "请求类型",
|
@@ -3377,7 +3373,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3377
3373
|
name: "name",
|
3378
3374
|
label: "接口名称",
|
3379
3375
|
required: "",
|
3380
|
-
rules: { pattern: n(
|
3376
|
+
rules: { pattern: n(Ae), message: "名称格式不正确" }
|
3381
3377
|
}, null, 8, ["rules"]),
|
3382
3378
|
m(n(P), {
|
3383
3379
|
name: "label",
|
@@ -3415,7 +3411,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3415
3411
|
value: "data"
|
3416
3412
|
}
|
3417
3413
|
], e = zt("currentModel", null);
|
3418
|
-
return (l, a) => (d(),
|
3414
|
+
return (l, a) => (d(), j("div", null, [
|
3419
3415
|
m(n(q), { justify: "space-between" }, {
|
3420
3416
|
default: y(() => [
|
3421
3417
|
m(n(P), {
|
@@ -3480,7 +3476,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3480
3476
|
}), Pr = /* @__PURE__ */ E({
|
3481
3477
|
__name: "jsonp-options",
|
3482
3478
|
setup(i) {
|
3483
|
-
return (t, e) => (d(),
|
3479
|
+
return (t, e) => (d(), j("div", null, [
|
3484
3480
|
m(n(P), {
|
3485
3481
|
name: "jsonpOptions.jsonpCallback",
|
3486
3482
|
size: "small",
|
@@ -3511,8 +3507,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3511
3507
|
const t = zt("currentModel", null), { project: e } = Ne(), l = C(() => e.value?.config || {}), a = () => {
|
3512
3508
|
window.open("https://vtj.pro/help/mock.html");
|
3513
3509
|
};
|
3514
|
-
return (o, s) => (d(),
|
3515
|
-
l.value.mock ?
|
3510
|
+
return (o, s) => (d(), j("div", null, [
|
3511
|
+
l.value.mock ? A("", !0) : (d(), w(n(Wt), {
|
3516
3512
|
key: 0,
|
3517
3513
|
type: "warning",
|
3518
3514
|
title: "需要在项目配置中开启模拟数据",
|
@@ -3584,40 +3580,40 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3584
3580
|
const p = C(() => s.value?.method === "jsonp");
|
3585
3581
|
M(
|
3586
3582
|
() => t.model,
|
3587
|
-
(
|
3588
|
-
s.value = Object.assign({},
|
3583
|
+
(h) => {
|
3584
|
+
s.value = Object.assign({}, h || {}), l.value = "base";
|
3589
3585
|
},
|
3590
3586
|
{
|
3591
3587
|
immediate: !0
|
3592
3588
|
}
|
3593
3589
|
), M(l, async () => {
|
3594
|
-
o.value?.formRef.validate(async (
|
3595
|
-
|
3590
|
+
o.value?.formRef.validate(async (h) => {
|
3591
|
+
h || (await Ce(), l.value = "base");
|
3596
3592
|
});
|
3597
3593
|
});
|
3598
3594
|
const v = () => {
|
3599
3595
|
a.value?.cancel();
|
3600
3596
|
}, g = () => {
|
3601
3597
|
o.value?.submit();
|
3602
|
-
}, _ = async (
|
3598
|
+
}, _ = async (h) => t.project?.existApiName(
|
3603
3599
|
s.value.name,
|
3604
3600
|
t.model ? [s.value.id] : []
|
3605
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 = () => {
|
3606
3602
|
if (s.value.mockTemplate) {
|
3607
|
-
const
|
3603
|
+
const h = Ze(
|
3608
3604
|
s.value.mockTemplate,
|
3609
3605
|
{},
|
3610
3606
|
!0
|
3611
|
-
), { url:
|
3612
|
-
|
3613
|
-
url:
|
3607
|
+
), { url: b, method: k } = s.value, x = Zs.mock(
|
3608
|
+
h({
|
3609
|
+
url: b,
|
3614
3610
|
type: k
|
3615
3611
|
})
|
3616
3612
|
);
|
3617
3613
|
u.value = JSON.stringify(x, null, 2), r.value = !0;
|
3618
3614
|
}
|
3619
3615
|
};
|
3620
|
-
return (
|
3616
|
+
return (h, b) => (d(), w(n(Oe), {
|
3621
3617
|
ref_key: "dialogRef",
|
3622
3618
|
ref: a,
|
3623
3619
|
title: e.value,
|
@@ -3634,7 +3630,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3634
3630
|
default: y(() => [
|
3635
3631
|
m(n(Mt), {
|
3636
3632
|
modelValue: l.value,
|
3637
|
-
"onUpdate:modelValue":
|
3633
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => l.value = k),
|
3638
3634
|
items: f,
|
3639
3635
|
"tab-position": "left",
|
3640
3636
|
border: "",
|
@@ -3661,15 +3657,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3661
3657
|
type: "warning",
|
3662
3658
|
onClick: c
|
3663
3659
|
}, {
|
3664
|
-
default: y(() =>
|
3660
|
+
default: y(() => b[2] || (b[2] = [
|
3665
3661
|
H(" 预览 ")
|
3666
3662
|
])),
|
3667
3663
|
_: 1
|
3668
|
-
}, 8, ["disabled"])) :
|
3664
|
+
}, 8, ["disabled"])) : A("", !0)
|
3669
3665
|
]),
|
3670
3666
|
V("div", null, [
|
3671
3667
|
m(n(le), { onClick: v }, {
|
3672
|
-
default: y(() =>
|
3668
|
+
default: y(() => b[3] || (b[3] = [
|
3673
3669
|
H("取消")
|
3674
3670
|
])),
|
3675
3671
|
_: 1
|
@@ -3678,7 +3674,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3678
3674
|
type: "primary",
|
3679
3675
|
onClick: g
|
3680
3676
|
}, {
|
3681
|
-
default: y(() =>
|
3677
|
+
default: y(() => b[4] || (b[4] = [
|
3682
3678
|
H("保存")
|
3683
3679
|
])),
|
3684
3680
|
_: 1
|
@@ -3699,13 +3695,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3699
3695
|
submitMethod: _
|
3700
3696
|
}, {
|
3701
3697
|
default: y(() => [
|
3702
|
-
Ee(m(Er, { categories:
|
3698
|
+
Ee(m(Er, { categories: h.categories }, null, 8, ["categories"]), [
|
3703
3699
|
[We, l.value === "base"]
|
3704
3700
|
]),
|
3705
|
-
l.value === "settings" ? (d(),
|
3701
|
+
l.value === "settings" ? (d(), j("div", Tr, [
|
3706
3702
|
p.value ? (d(), w(Pr, { key: 0 })) : (d(), w(Dr, { key: 1 }))
|
3707
|
-
])) :
|
3708
|
-
l.value === "mock" ? (d(), w(Ir, { key: 1 })) :
|
3703
|
+
])) : A("", !0),
|
3704
|
+
l.value === "mock" ? (d(), w(Ir, { key: 1 })) : A("", !0)
|
3709
3705
|
]),
|
3710
3706
|
_: 1
|
3711
3707
|
}, 8, ["model"])
|
@@ -3719,7 +3715,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3719
3715
|
key: 0,
|
3720
3716
|
class: "v-drawer",
|
3721
3717
|
modelValue: r.value,
|
3722
|
-
"onUpdate:modelValue":
|
3718
|
+
"onUpdate:modelValue": b[1] || (b[1] = (k) => r.value = k),
|
3723
3719
|
title: "模拟数据结果",
|
3724
3720
|
direction: "btt",
|
3725
3721
|
"append-to-body": "",
|
@@ -3735,7 +3731,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3735
3731
|
}, null, 8, ["model-value"])
|
3736
3732
|
]),
|
3737
3733
|
_: 1
|
3738
|
-
}, 8, ["modelValue"])) :
|
3734
|
+
}, 8, ["modelValue"])) : A("", !0)
|
3739
3735
|
]),
|
3740
3736
|
_: 1
|
3741
3737
|
}, 8, ["title"]));
|
@@ -3746,7 +3742,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3746
3742
|
setup(i) {
|
3747
3743
|
const { project: t } = Ne(), e = S(!1), l = S(null), a = S(""), o = S(!1), s = C(() => {
|
3748
3744
|
const c = t.value?.apis || [];
|
3749
|
-
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;
|
3750
3746
|
}), r = C(
|
3751
3747
|
() => _t(s.value, (c) => c.category || "默认分组")
|
3752
3748
|
), u = C(() => Object.keys(r.value)), f = () => ({
|
@@ -3792,7 +3788,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3792
3788
|
}, _ = (c) => {
|
3793
3789
|
o.value = !0, l.value = wt(c), e.value = !0;
|
3794
3790
|
};
|
3795
|
-
return (c,
|
3791
|
+
return (c, h) => (d(), w(n(G), {
|
3796
3792
|
class: "v-apis-widget",
|
3797
3793
|
title: "API管理",
|
3798
3794
|
plus: "",
|
@@ -3803,7 +3799,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3803
3799
|
m(n(be), {
|
3804
3800
|
size: "small",
|
3805
3801
|
modelValue: a.value,
|
3806
|
-
"onUpdate:modelValue":
|
3802
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => a.value = b),
|
3807
3803
|
"prefix-icon": n(nt),
|
3808
3804
|
placeholder: "搜索API",
|
3809
3805
|
clearable: ""
|
@@ -3811,12 +3807,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3811
3807
|
]),
|
3812
3808
|
m(n(ht), { "model-value": u.value }, {
|
3813
3809
|
default: y(() => [
|
3814
|
-
(d(!0),
|
3810
|
+
(d(!0), j(z, null, W(r.value, (b, k) => (d(), w(n(bt), {
|
3815
3811
|
name: k,
|
3816
|
-
title: `${k} (${
|
3812
|
+
title: `${k} (${b.length})`
|
3817
3813
|
}, {
|
3818
3814
|
default: y(() => [
|
3819
|
-
(d(!0),
|
3815
|
+
(d(!0), j(z, null, W(b, (x) => (d(), w(n(ve), {
|
3820
3816
|
key: x.id,
|
3821
3817
|
small: "",
|
3822
3818
|
title: x.name,
|
@@ -3838,10 +3834,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3838
3834
|
s.value.length === 0 ? (d(), w(n(ie), {
|
3839
3835
|
key: 0,
|
3840
3836
|
"image-size": 50
|
3841
|
-
})) :
|
3837
|
+
})) : A("", !0),
|
3842
3838
|
m($r, {
|
3843
3839
|
modelValue: e.value,
|
3844
|
-
"onUpdate:modelValue":
|
3840
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => e.value = b),
|
3845
3841
|
model: l.value,
|
3846
3842
|
project: n(t),
|
3847
3843
|
categories: u.value
|
@@ -3865,38 +3861,38 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
3865
3861
|
urls: c.urls.join(`
|
3866
3862
|
`)
|
3867
3863
|
}, l.value = !0;
|
3868
|
-
}, _ = (c,
|
3869
|
-
|
3864
|
+
}, _ = (c, h) => {
|
3865
|
+
h.name === "edit" && (o.value = {
|
3870
3866
|
...c,
|
3871
3867
|
enabled: !0,
|
3872
3868
|
official: !1,
|
3873
3869
|
urls: c.urls.join(`
|
3874
3870
|
`)
|
3875
|
-
}, a.value = !1, l.value = !0),
|
3871
|
+
}, a.value = !1, l.value = !0), h.name === "remove" && e.project.value?.removeDeps(c);
|
3876
3872
|
};
|
3877
|
-
return (c,
|
3873
|
+
return (c, h) => (d(), w(n(G), {
|
3878
3874
|
class: "v-deps-widget",
|
3879
3875
|
title: "依赖管理",
|
3880
3876
|
plus: "",
|
3881
3877
|
onPlus: v
|
3882
3878
|
}, {
|
3883
3879
|
default: y(() => [
|
3884
|
-
(d(!0),
|
3885
|
-
key:
|
3886
|
-
title:
|
3887
|
-
subtitle:
|
3888
|
-
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),
|
3889
3885
|
background: "",
|
3890
|
-
switch: u(
|
3891
|
-
modelValue:
|
3892
|
-
"onUpdate:modelValue": (k) =>
|
3893
|
-
onSwitch: (k) => p(
|
3894
|
-
onClick: (k) => g(
|
3895
|
-
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)
|
3896
3892
|
}, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
|
3897
|
-
m(n(
|
3893
|
+
m(n(je), {
|
3898
3894
|
modelValue: l.value,
|
3899
|
-
"onUpdate:modelValue":
|
3895
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => l.value = b),
|
3900
3896
|
width: "600px",
|
3901
3897
|
height: "500px",
|
3902
3898
|
title: s.value,
|
@@ -4000,7 +3996,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4000
3996
|
}, f = async (p) => {
|
4001
3997
|
p.name === "remove" ? await He("确定删除?") && l("action", { type: p.name, model: e.model }) : l("action", { type: p.name, model: e.model });
|
4002
3998
|
};
|
4003
|
-
return (p, v) => (d(),
|
3999
|
+
return (p, v) => (d(), j("div", {
|
4004
4000
|
class: K(["v-actions", [`is-${e.position}`]])
|
4005
4001
|
}, [
|
4006
4002
|
m(n(ge), {
|
@@ -4030,7 +4026,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4030
4026
|
inheritAttrs: !1,
|
4031
4027
|
__name: "index",
|
4032
4028
|
setup(i, { expose: t }) {
|
4033
|
-
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(
|
4034
4030
|
l,
|
4035
4031
|
s,
|
4036
4032
|
u,
|
@@ -4071,7 +4067,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4071
4067
|
return t({
|
4072
4068
|
designer: c,
|
4073
4069
|
mode: g
|
4074
|
-
}), (O, $) => (d(),
|
4070
|
+
}), (O, $) => (d(), j("div", {
|
4075
4071
|
ref_key: "container",
|
4076
4072
|
ref: e,
|
4077
4073
|
class: "v-designer"
|
@@ -4082,24 +4078,24 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4082
4078
|
height: n(o)
|
4083
4079
|
}, {
|
4084
4080
|
default: y(() => [
|
4085
|
-
n(
|
4081
|
+
n(b) ? (d(), j("div", {
|
4086
4082
|
key: 0,
|
4087
4083
|
class: K(["v-designer__dropping", "is-inner"]),
|
4088
|
-
style: rt(n(
|
4089
|
-
}, null, 4)) :
|
4090
|
-
n(
|
4084
|
+
style: rt(n(b).style)
|
4085
|
+
}, null, 4)) : A("", !0),
|
4086
|
+
n(h) ? (d(), j("div", {
|
4091
4087
|
key: 1,
|
4092
4088
|
class: "v-designer__hover",
|
4093
|
-
style: rt(n(
|
4089
|
+
style: rt(n(h).style)
|
4094
4090
|
}, [
|
4095
4091
|
V("span", {
|
4096
|
-
class: K(`is-${n(
|
4092
|
+
class: K(`is-${n(h).position}`)
|
4097
4093
|
}, [
|
4098
|
-
H(L(n(
|
4099
|
-
V("i", null, L(n(
|
4094
|
+
H(L(n(h).model.name) + ": ", 1),
|
4095
|
+
V("i", null, L(n(h).model.id), 1)
|
4100
4096
|
], 2)
|
4101
|
-
], 4)) :
|
4102
|
-
n(k) ? (d(),
|
4097
|
+
], 4)) : A("", !0),
|
4098
|
+
n(k) ? (d(), j("div", {
|
4103
4099
|
key: 2,
|
4104
4100
|
class: "v-designer__selected",
|
4105
4101
|
style: rt(n(k).style)
|
@@ -4112,12 +4108,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4112
4108
|
onDragstart: D,
|
4113
4109
|
onDragend: I
|
4114
4110
|
}, null, 8, ["position", "model", "path"])
|
4115
|
-
], 4)) :
|
4116
|
-
n(p) ?
|
4111
|
+
], 4)) : A("", !0),
|
4112
|
+
n(p) ? A("", !0) : (d(), w(n(ie), {
|
4117
4113
|
key: 3,
|
4118
4114
|
description: "请新建或打开文件"
|
4119
4115
|
})),
|
4120
|
-
n(p) && n(v) ? (d(),
|
4116
|
+
n(p) && n(v) ? (d(), j("div", Fr, " 您可以拖拽组件放置到这里 ")) : A("", !0),
|
4121
4117
|
V("iframe", {
|
4122
4118
|
ref_key: "iframe",
|
4123
4119
|
ref: l,
|
@@ -4147,8 +4143,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4147
4143
|
() => s.value ? `编辑${t.title}` : `新增${t.title}`
|
4148
4144
|
), u = () => {
|
4149
4145
|
s.value = !1, o.value = t.createEmpty(), a.value = !0;
|
4150
|
-
}, f = (c,
|
4151
|
-
switch (
|
4146
|
+
}, f = (c, h) => {
|
4147
|
+
switch (h.name) {
|
4152
4148
|
case "edit":
|
4153
4149
|
v(c);
|
4154
4150
|
break;
|
@@ -4165,7 +4161,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4165
4161
|
}, g = async (c) => t.submit(c, s.value), _ = () => {
|
4166
4162
|
l.value?.itemRef.validate();
|
4167
4163
|
};
|
4168
|
-
return (c,
|
4164
|
+
return (c, h) => (d(), w(n(G), {
|
4169
4165
|
title: t.title,
|
4170
4166
|
class: "v-sub-panel",
|
4171
4167
|
size: "small",
|
@@ -4174,20 +4170,20 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4174
4170
|
onPlus: u
|
4175
4171
|
}, {
|
4176
4172
|
default: y(() => [
|
4177
|
-
(d(!0),
|
4178
|
-
title: t.itemTitle(
|
4173
|
+
(d(!0), j(z, null, W(c.list, (b) => (d(), w(n(ve), {
|
4174
|
+
title: t.itemTitle(b),
|
4179
4175
|
border: "",
|
4180
4176
|
actions: ["edit", "remove"],
|
4181
|
-
onAction: (k) => f(
|
4182
|
-
onClick: (k) => v(
|
4177
|
+
onAction: (k) => f(b, k),
|
4178
|
+
onClick: (k) => v(b)
|
4183
4179
|
}, null, 8, ["title", "onAction", "onClick"]))), 256)),
|
4184
|
-
c.list.length ?
|
4180
|
+
c.list.length ? A("", !0) : (d(), w(n(ie), {
|
4185
4181
|
key: 0,
|
4186
4182
|
"image-size": 40
|
4187
4183
|
})),
|
4188
4184
|
m(n(Zt), {
|
4189
4185
|
modelValue: a.value,
|
4190
|
-
"onUpdate:modelValue":
|
4186
|
+
"onUpdate:modelValue": h[1] || (h[1] = (b) => a.value = b),
|
4191
4187
|
title: r.value,
|
4192
4188
|
"submit-method": g,
|
4193
4189
|
model: o.value,
|
@@ -4218,7 +4214,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4218
4214
|
dark: "",
|
4219
4215
|
height: "100%",
|
4220
4216
|
modelValue: o.value.value,
|
4221
|
-
"onUpdate:modelValue":
|
4217
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => o.value.value = b),
|
4222
4218
|
onBlur: _
|
4223
4219
|
}, null, 8, ["modelValue"])
|
4224
4220
|
]),
|
@@ -4523,7 +4519,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4523
4519
|
_: 1
|
4524
4520
|
}));
|
4525
4521
|
}
|
4526
|
-
}),
|
4522
|
+
}), At = /* @__PURE__ */ E({
|
4527
4523
|
__name: "setters",
|
4528
4524
|
props: {
|
4529
4525
|
context: {},
|
@@ -4559,7 +4555,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4559
4555
|
}, ["prevent", "stop"]), ["enter"]))
|
4560
4556
|
}, {
|
4561
4557
|
default: y(() => [
|
4562
|
-
(d(!0),
|
4558
|
+
(d(!0), j(z, null, W(e.items, (p) => (d(), w(n(U), ue({ ref_for: !0 }, p, {
|
4563
4559
|
key: `${p.name}_${e.node.id}`,
|
4564
4560
|
current: e.current,
|
4565
4561
|
context: e.context,
|
@@ -4591,10 +4587,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4591
4587
|
g.value = !0, _.value = {
|
4592
4588
|
name: ""
|
4593
4589
|
};
|
4594
|
-
},
|
4590
|
+
}, h = async (k) => {
|
4595
4591
|
const x = Object.keys(a.value?.props || {});
|
4596
4592
|
return !v(k.name) && !x.includes(k.name) ? (f(k.name), !0) : (oe("已存在该属性名称"), !1);
|
4597
|
-
},
|
4593
|
+
}, b = async (k) => {
|
4598
4594
|
await He("确定删除?") && p(k);
|
4599
4595
|
};
|
4600
4596
|
return (k, x) => n(t) ? (d(), w(n(q), {
|
@@ -4604,7 +4600,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4604
4600
|
fit: ""
|
4605
4601
|
}, {
|
4606
4602
|
default: y(() => [
|
4607
|
-
n(a) ? (d(), w(
|
4603
|
+
n(a) ? (d(), w(At, {
|
4608
4604
|
key: 0,
|
4609
4605
|
title: "通用属性",
|
4610
4606
|
current: n(t),
|
@@ -4612,8 +4608,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4612
4608
|
node: n(a),
|
4613
4609
|
items: n(o),
|
4614
4610
|
onChange: n(s)
|
4615
|
-
}, null, 8, ["current", "context", "node", "items", "onChange"])) :
|
4616
|
-
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, {
|
4617
4613
|
key: 1,
|
4618
4614
|
title: "组件属性",
|
4619
4615
|
current: n(t),
|
@@ -4621,8 +4617,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4621
4617
|
node: n(a),
|
4622
4618
|
items: n(r),
|
4623
4619
|
onChange: n(s)
|
4624
|
-
}, null, 8, ["current", "context", "node", "items", "onChange"])) :
|
4625
|
-
n(a) ? (d(), w(
|
4620
|
+
}, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
|
4621
|
+
n(a) ? (d(), w(At, {
|
4626
4622
|
key: 2,
|
4627
4623
|
title: "自定义属性",
|
4628
4624
|
current: n(t),
|
@@ -4634,15 +4630,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4634
4630
|
plus: "",
|
4635
4631
|
grow: "",
|
4636
4632
|
onPlus: c,
|
4637
|
-
onRemove:
|
4638
|
-
}, null, 8, ["current", "context", "node", "items", "onChange"])) :
|
4639
|
-
m(n(
|
4633
|
+
onRemove: b
|
4634
|
+
}, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
|
4635
|
+
m(n(je), {
|
4640
4636
|
modelValue: g.value,
|
4641
4637
|
"onUpdate:modelValue": x[0] || (x[0] = (D) => g.value = D),
|
4642
4638
|
title: "新增自定义属性",
|
4643
4639
|
width: "400px",
|
4644
4640
|
height: "150px",
|
4645
|
-
"submit-method":
|
4641
|
+
"submit-method": h,
|
4646
4642
|
formProps: { tooltipMessage: !1 },
|
4647
4643
|
model: _.value
|
4648
4644
|
}, {
|
@@ -4653,7 +4649,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4653
4649
|
required: "",
|
4654
4650
|
rules: {
|
4655
4651
|
message: "名称格式错误",
|
4656
|
-
pattern: n(
|
4652
|
+
pattern: n(Ae)
|
4657
4653
|
}
|
4658
4654
|
}, null, 8, ["rules"])
|
4659
4655
|
]),
|
@@ -4661,7 +4657,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4661
4657
|
}, 8, ["modelValue", "model"])
|
4662
4658
|
]),
|
4663
4659
|
_: 1
|
4664
|
-
})) :
|
4660
|
+
})) : A("", !0);
|
4665
4661
|
}
|
4666
4662
|
}), Gr = /* @__PURE__ */ E({
|
4667
4663
|
name: "VariableBinder",
|
@@ -4780,21 +4776,21 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4780
4776
|
}), u = S(!1), f = (c) => {
|
4781
4777
|
r.value = wt(c), u.value = !0;
|
4782
4778
|
}, p = async (c) => {
|
4783
|
-
const
|
4779
|
+
const h = {
|
4784
4780
|
...c,
|
4785
4781
|
modifiers: c.modifiers.reduce((k, x) => (k[x] = !0, k), {})
|
4786
4782
|
};
|
4787
|
-
return pe(
|
4783
|
+
return pe(h.handler, e.value, !0) ? ((l.value?.model).setEvent(h), !0) : !1;
|
4788
4784
|
}, v = async (c) => {
|
4789
|
-
const
|
4790
|
-
c.name && (
|
4785
|
+
const h = l.value?.model;
|
4786
|
+
c.name && (h.removeEvent(c.name), u.value = !1);
|
4791
4787
|
}, g = async () => {
|
4792
4788
|
r.value.name && await He("确定要删除该事件吗?") && v(r.value);
|
4793
4789
|
}, _ = (c) => {
|
4794
|
-
const { name:
|
4795
|
-
|
4790
|
+
const { name: h, modelValue: b } = c;
|
4791
|
+
h === "edit" && f(b), h === "remove" && v(b);
|
4796
4792
|
};
|
4797
|
-
return (c,
|
4793
|
+
return (c, h) => (d(), w(n(q), {
|
4798
4794
|
class: "v-events-widget",
|
4799
4795
|
direction: "column",
|
4800
4796
|
fit: ""
|
@@ -4807,20 +4803,20 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4807
4803
|
fit: !1
|
4808
4804
|
}, {
|
4809
4805
|
default: y(() => [
|
4810
|
-
n(s).length ?
|
4806
|
+
n(s).length ? A("", !0) : (d(), w(n(ie), {
|
4811
4807
|
key: 0,
|
4812
4808
|
"image-size": 50,
|
4813
4809
|
description: "该组件无自带事件"
|
4814
4810
|
})),
|
4815
|
-
(d(!0),
|
4816
|
-
key: `component_${
|
4817
|
-
title:
|
4818
|
-
"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,
|
4819
4815
|
border: "",
|
4820
4816
|
small: "",
|
4821
|
-
actions:
|
4822
|
-
active: !!
|
4823
|
-
onClick: (k) => f(
|
4817
|
+
actions: b.event ? ["edit", "remove"] : ["edit"],
|
4818
|
+
active: !!b.event,
|
4819
|
+
onClick: (k) => f(b),
|
4824
4820
|
onAction: _
|
4825
4821
|
}, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
|
4826
4822
|
]),
|
@@ -4833,15 +4829,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4833
4829
|
fit: !1
|
4834
4830
|
}, {
|
4835
4831
|
default: y(() => [
|
4836
|
-
(d(!0),
|
4837
|
-
key: `mouse_${
|
4838
|
-
title:
|
4839
|
-
"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,
|
4840
4836
|
border: "",
|
4841
4837
|
small: "",
|
4842
|
-
actions:
|
4843
|
-
active: !!
|
4844
|
-
onClick: (k) => f(
|
4838
|
+
actions: b.event ? ["edit", "remove"] : ["edit"],
|
4839
|
+
active: !!b.event,
|
4840
|
+
onClick: (k) => f(b),
|
4845
4841
|
onAction: _
|
4846
4842
|
}, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
|
4847
4843
|
]),
|
@@ -4855,15 +4851,15 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4855
4851
|
fit: !1
|
4856
4852
|
}, {
|
4857
4853
|
default: y(() => [
|
4858
|
-
(d(!0),
|
4859
|
-
key: `keyboard_${
|
4860
|
-
title:
|
4861
|
-
"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,
|
4862
4858
|
border: "",
|
4863
4859
|
small: "",
|
4864
|
-
actions:
|
4865
|
-
active: !!
|
4866
|
-
onClick: (k) => f(
|
4860
|
+
actions: b.event ? ["edit", "remove"] : ["edit"],
|
4861
|
+
active: !!b.event,
|
4862
|
+
onClick: (k) => f(b),
|
4867
4863
|
onAction: _
|
4868
4864
|
}, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
|
4869
4865
|
]),
|
@@ -4872,14 +4868,14 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
4872
4868
|
u.value ? (d(), w(n(Kr), {
|
4873
4869
|
key: 0,
|
4874
4870
|
modelValue: u.value,
|
4875
|
-
"onUpdate:modelValue":
|
4871
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => u.value = b),
|
4876
4872
|
context: n(e),
|
4877
4873
|
current: n(t),
|
4878
4874
|
name: r.value.name,
|
4879
4875
|
event: r.value.event,
|
4880
4876
|
submitMethod: p,
|
4881
4877
|
onUnbind: g
|
4882
|
-
}, null, 8, ["modelValue", "context", "current", "name", "event"])) :
|
4878
|
+
}, null, 8, ["modelValue", "context", "current", "name", "event"])) : A("", !0)
|
4883
4879
|
]),
|
4884
4880
|
_: 1
|
4885
4881
|
}));
|
@@ -5044,12 +5040,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5044
5040
|
grow: ""
|
5045
5041
|
}, {
|
5046
5042
|
default: y(() => [
|
5047
|
-
(d(!0),
|
5043
|
+
(d(!0), j(z, null, W(n(u), (h, b) => (d(), w(n(G), {
|
5048
5044
|
card: "",
|
5049
5045
|
border: "",
|
5050
5046
|
class: "v-sub-panel",
|
5051
5047
|
size: "small",
|
5052
|
-
title: `v-model: ${g(
|
5048
|
+
title: `v-model: ${g(h)}`,
|
5053
5049
|
body: { grow: !1 },
|
5054
5050
|
fit: !1
|
5055
5051
|
}, {
|
@@ -5062,12 +5058,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5062
5058
|
}, {
|
5063
5059
|
default: y(() => [
|
5064
5060
|
m(n(U), {
|
5065
|
-
name:
|
5061
|
+
name: b.toString(),
|
5066
5062
|
label: "绑定变量",
|
5067
5063
|
setters: "ExpressionSetter",
|
5068
5064
|
current: n(t),
|
5069
5065
|
context: n(e),
|
5070
|
-
value:
|
5066
|
+
value: h.value,
|
5071
5067
|
onChange: n(v)
|
5072
5068
|
}, null, 8, ["name", "current", "context", "value", "onChange"])
|
5073
5069
|
]),
|
@@ -5076,7 +5072,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5076
5072
|
]),
|
5077
5073
|
_: 2
|
5078
5074
|
}, 1032, ["title"]))), 256)),
|
5079
|
-
n(u).length ?
|
5075
|
+
n(u).length ? A("", !0) : (d(), w(n(ie), {
|
5080
5076
|
key: 0,
|
5081
5077
|
description: "当前组件没有双向绑定属性",
|
5082
5078
|
"image-size": 50
|
@@ -5114,7 +5110,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5114
5110
|
const r = s.default;
|
5115
5111
|
return r && !pe(r, t.context, !0) ? !1 : (t.current.setProp(s), !0);
|
5116
5112
|
};
|
5117
|
-
return (s, r) => (d(), w(n(
|
5113
|
+
return (s, r) => (d(), w(n(je), {
|
5118
5114
|
title: e.value,
|
5119
5115
|
width: "800px",
|
5120
5116
|
height: "500px",
|
@@ -5131,7 +5127,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5131
5127
|
disabled: !!t.item,
|
5132
5128
|
rules: {
|
5133
5129
|
message: "名称格式错误",
|
5134
|
-
pattern: n(
|
5130
|
+
pattern: n(Ae)
|
5135
5131
|
}
|
5136
5132
|
}, null, 8, ["disabled", "rules"]),
|
5137
5133
|
m(n(P), {
|
@@ -5176,7 +5172,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5176
5172
|
},
|
5177
5173
|
setup(i) {
|
5178
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);
|
5179
|
-
return (o, s) => (d(), w(n(
|
5175
|
+
return (o, s) => (d(), w(n(je), {
|
5180
5176
|
title: e.value,
|
5181
5177
|
width: "600px",
|
5182
5178
|
height: "200px",
|
@@ -5192,7 +5188,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5192
5188
|
disabled: !!t.item,
|
5193
5189
|
rules: {
|
5194
5190
|
message: "名称格式错误",
|
5195
|
-
pattern: n(
|
5191
|
+
pattern: n(Ae)
|
5196
5192
|
}
|
5197
5193
|
}, null, 8, ["disabled", "rules"]),
|
5198
5194
|
m(n(P), {
|
@@ -5228,7 +5224,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5228
5224
|
},
|
5229
5225
|
setup(i) {
|
5230
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);
|
5231
|
-
return (o, s) => (d(), w(n(
|
5227
|
+
return (o, s) => (d(), w(n(je), {
|
5232
5228
|
title: e.value,
|
5233
5229
|
width: "600px",
|
5234
5230
|
height: "200px",
|
@@ -5244,7 +5240,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5244
5240
|
required: "",
|
5245
5241
|
rules: {
|
5246
5242
|
message: "名称格式错误",
|
5247
|
-
pattern: n(
|
5243
|
+
pattern: n(Ae)
|
5248
5244
|
}
|
5249
5245
|
}, null, 8, ["disabled", "rules"]),
|
5250
5246
|
m(n(P), {
|
@@ -5292,7 +5288,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5292
5288
|
const s = o.default;
|
5293
5289
|
return s && !pe(s, t.context, !0) ? !1 : (t.current.setInject(o), !0);
|
5294
5290
|
};
|
5295
|
-
return (o, s) => (d(), w(n(
|
5291
|
+
return (o, s) => (d(), w(n(je), {
|
5296
5292
|
title: e.value,
|
5297
5293
|
width: "800px",
|
5298
5294
|
height: "500px",
|
@@ -5309,7 +5305,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5309
5305
|
disabled: !!t.item,
|
5310
5306
|
rules: {
|
5311
5307
|
message: "名称格式错误",
|
5312
|
-
pattern: n(
|
5308
|
+
pattern: n(Ae)
|
5313
5309
|
}
|
5314
5310
|
}, null, 8, ["disabled", "rules"]),
|
5315
5311
|
m(n(P), {
|
@@ -5340,9 +5336,9 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5340
5336
|
name: "DefinedWidget",
|
5341
5337
|
__name: "index",
|
5342
5338
|
setup(i) {
|
5343
|
-
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 = () => {
|
5344
5340
|
u.value = void 0, r.value = !0;
|
5345
|
-
},
|
5341
|
+
}, b = (N) => {
|
5346
5342
|
const { name: J, modelValue: T } = N;
|
5347
5343
|
J === "edit" && k(T), J === "remove" && t.value?.removeProp(T);
|
5348
5344
|
}, k = (N) => {
|
@@ -5382,18 +5378,18 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5382
5378
|
size: "small",
|
5383
5379
|
plus: "",
|
5384
5380
|
fit: !1,
|
5385
|
-
onPlus:
|
5381
|
+
onPlus: h
|
5386
5382
|
}, {
|
5387
5383
|
default: y(() => [
|
5388
|
-
(d(!0),
|
5384
|
+
(d(!0), j(z, null, W(l.value, (T) => (d(), w(n(ve), {
|
5389
5385
|
"model-value": T,
|
5390
5386
|
title: T.name,
|
5391
5387
|
border: "",
|
5392
5388
|
actions: ["edit", "remove"],
|
5393
5389
|
onClick: (Y) => k(T),
|
5394
|
-
onAction:
|
5390
|
+
onAction: b
|
5395
5391
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5396
|
-
l.value.length ?
|
5392
|
+
l.value.length ? A("", !0) : (d(), w(n(ie), {
|
5397
5393
|
key: 0,
|
5398
5394
|
"image-size": 50
|
5399
5395
|
})),
|
@@ -5404,7 +5400,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5404
5400
|
modelValue: r.value,
|
5405
5401
|
"onUpdate:modelValue": J[0] || (J[0] = (T) => r.value = T),
|
5406
5402
|
item: u.value
|
5407
|
-
}, null, 8, ["current", "context", "modelValue", "item"])) :
|
5403
|
+
}, null, 8, ["current", "context", "modelValue", "item"])) : A("", !0)
|
5408
5404
|
]),
|
5409
5405
|
_: 1
|
5410
5406
|
}),
|
@@ -5417,7 +5413,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5417
5413
|
onPlus: x
|
5418
5414
|
}, {
|
5419
5415
|
default: y(() => [
|
5420
|
-
(d(!0),
|
5416
|
+
(d(!0), j(z, null, W(a.value, (T) => (d(), w(n(ve), {
|
5421
5417
|
"model-value": T,
|
5422
5418
|
title: T.name,
|
5423
5419
|
border: "",
|
@@ -5425,7 +5421,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5425
5421
|
onClick: (Y) => D(T),
|
5426
5422
|
onAction: I
|
5427
5423
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5428
|
-
a.value.length ?
|
5424
|
+
a.value.length ? A("", !0) : (d(), w(n(ie), {
|
5429
5425
|
key: 0,
|
5430
5426
|
"image-size": 50
|
5431
5427
|
})),
|
@@ -5436,7 +5432,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5436
5432
|
current: n(t),
|
5437
5433
|
context: n(e),
|
5438
5434
|
item: p.value
|
5439
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5435
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5440
5436
|
]),
|
5441
5437
|
_: 1
|
5442
5438
|
}),
|
@@ -5449,7 +5445,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5449
5445
|
onPlus: O
|
5450
5446
|
}, {
|
5451
5447
|
default: y(() => [
|
5452
|
-
(d(!0),
|
5448
|
+
(d(!0), j(z, null, W(o.value, (T) => (d(), w(n(ve), {
|
5453
5449
|
"model-value": T,
|
5454
5450
|
title: T.name,
|
5455
5451
|
border: "",
|
@@ -5457,7 +5453,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5457
5453
|
onClick: (Y) => $(T),
|
5458
5454
|
onAction: R
|
5459
5455
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5460
|
-
o.value.length ?
|
5456
|
+
o.value.length ? A("", !0) : (d(), w(n(ie), {
|
5461
5457
|
key: 0,
|
5462
5458
|
"image-size": 50
|
5463
5459
|
})),
|
@@ -5468,7 +5464,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5468
5464
|
current: n(t),
|
5469
5465
|
context: n(e),
|
5470
5466
|
item: g.value
|
5471
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5467
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5472
5468
|
]),
|
5473
5469
|
_: 1
|
5474
5470
|
}),
|
@@ -5482,7 +5478,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5482
5478
|
onPlus: B
|
5483
5479
|
}, {
|
5484
5480
|
default: y(() => [
|
5485
|
-
(d(!0),
|
5481
|
+
(d(!0), j(z, null, W(s.value, (T) => (d(), w(n(ve), {
|
5486
5482
|
"model-value": T,
|
5487
5483
|
title: T.name,
|
5488
5484
|
border: "",
|
@@ -5490,7 +5486,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5490
5486
|
onClick: (Y) => Q(T),
|
5491
5487
|
onAction: fe
|
5492
5488
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
5493
|
-
s.value.length ?
|
5489
|
+
s.value.length ? A("", !0) : (d(), w(n(ie), {
|
5494
5490
|
key: 0,
|
5495
5491
|
"image-size": 50
|
5496
5492
|
})),
|
@@ -5501,13 +5497,13 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5501
5497
|
current: n(t),
|
5502
5498
|
context: n(e),
|
5503
5499
|
item: c.value
|
5504
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5500
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5505
5501
|
]),
|
5506
5502
|
_: 1
|
5507
5503
|
})
|
5508
5504
|
]),
|
5509
5505
|
_: 1
|
5510
|
-
})) :
|
5506
|
+
})) : A("", !0);
|
5511
5507
|
}
|
5512
5508
|
}), ai = /* @__PURE__ */ E({
|
5513
5509
|
name: "DataSourceDialogForm",
|
@@ -5554,27 +5550,27 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5554
5550
|
})`
|
5555
5551
|
}
|
5556
5552
|
}, t.item)
|
5557
|
-
), r = S(!1), u = S(""), f = S(!1), p = C(() => s.value.type === "api" ? l.value.map((
|
5558
|
-
label:
|
5559
|
-
value:
|
5560
|
-
data:
|
5561
|
-
})) : s.value.type === "meta" ? a.value.map((
|
5562
|
-
label:
|
5563
|
-
value:
|
5564
|
-
data:
|
5565
|
-
})) : []), 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) => {
|
5566
5562
|
s.value.ref = "", s.value.name = "", s.value.label = "";
|
5567
|
-
}, _ = (
|
5563
|
+
}, _ = (b) => {
|
5568
5564
|
if (s.value.type === "api") {
|
5569
|
-
const k = l.value.find((x) => x.id ===
|
5565
|
+
const k = l.value.find((x) => x.id === b);
|
5570
5566
|
k && (s.value.name = k.name, s.value.label = k.label || "");
|
5571
5567
|
}
|
5572
5568
|
if (s.value.type === "meta") {
|
5573
|
-
const k = a.value.find((x) => x.id ===
|
5569
|
+
const k = a.value.find((x) => x.id === b);
|
5574
5570
|
k && (s.value.name = k.code, s.value.label = k.title || "");
|
5575
5571
|
}
|
5576
|
-
}, c = async (
|
5577
|
-
const { transform: k, test: x, name: D } =
|
5572
|
+
}, c = async (b) => {
|
5573
|
+
const { transform: k, test: x, name: D } = b;
|
5578
5574
|
if (!t.current) return !1;
|
5579
5575
|
if (!t.item && t.current.dataSources[D])
|
5580
5576
|
return oe(`名称【${D}】已经存在,请更换名称`), !1;
|
@@ -5582,14 +5578,14 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5582
5578
|
if (!pe(k, t.context, !0))
|
5583
5579
|
return !1;
|
5584
5580
|
} else
|
5585
|
-
|
5581
|
+
b.transform = void 0;
|
5586
5582
|
if (x?.value) {
|
5587
5583
|
if (!pe(x, t.context, !0))
|
5588
5584
|
return !1;
|
5589
5585
|
} else
|
5590
|
-
|
5591
|
-
return t.current?.setDataSource(
|
5592
|
-
},
|
5586
|
+
b.test = void 0;
|
5587
|
+
return t.current?.setDataSource(b), !0;
|
5588
|
+
}, h = async () => {
|
5593
5589
|
if (!t.context) return;
|
5594
5590
|
if (!s.value.ref) {
|
5595
5591
|
oe("请先选择API");
|
@@ -5618,7 +5614,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5618
5614
|
}
|
5619
5615
|
r.value = !1, f.value = !0;
|
5620
5616
|
};
|
5621
|
-
return (
|
5617
|
+
return (b, k) => (d(), w(n(je), {
|
5622
5618
|
width: "1000px",
|
5623
5619
|
height: "700px",
|
5624
5620
|
title: v.value,
|
@@ -5630,7 +5626,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5630
5626
|
m(n(le), {
|
5631
5627
|
loading: r.value,
|
5632
5628
|
type: "warning",
|
5633
|
-
onClick:
|
5629
|
+
onClick: h
|
5634
5630
|
}, {
|
5635
5631
|
default: y(() => k[3] || (k[3] = [
|
5636
5632
|
H(" 运行测试用例 ")
|
@@ -5673,7 +5669,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5673
5669
|
disabled: !!t.item,
|
5674
5670
|
rules: {
|
5675
5671
|
message: "名称格式错误",
|
5676
|
-
pattern: n(
|
5672
|
+
pattern: n(Ae)
|
5677
5673
|
}
|
5678
5674
|
}, null, 8, ["disabled", "rules"]),
|
5679
5675
|
m(n(P), {
|
@@ -5731,7 +5727,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5731
5727
|
}, null, 8, ["model-value"])
|
5732
5728
|
]),
|
5733
5729
|
_: 1
|
5734
|
-
}, 8, ["modelValue"])) :
|
5730
|
+
}, 8, ["modelValue"])) : A("", !0)
|
5735
5731
|
]),
|
5736
5732
|
_: 1
|
5737
5733
|
}, 8, ["title", "model"]));
|
@@ -5768,7 +5764,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5768
5764
|
onPlus: r
|
5769
5765
|
}, {
|
5770
5766
|
default: y(() => [
|
5771
|
-
(d(!0),
|
5767
|
+
(d(!0), j(z, null, W(o.value, (g) => (d(), w(n(ve), {
|
5772
5768
|
border: "",
|
5773
5769
|
title: g.name,
|
5774
5770
|
subtitle: g.label,
|
@@ -5779,7 +5775,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5779
5775
|
onAction: f,
|
5780
5776
|
onClick: (_) => u(g)
|
5781
5777
|
}, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
|
5782
|
-
o.value.length ?
|
5778
|
+
o.value.length ? A("", !0) : (d(), w(n(ie), {
|
5783
5779
|
key: 0,
|
5784
5780
|
"image-size": 50
|
5785
5781
|
}))
|
@@ -5793,7 +5789,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5793
5789
|
current: n(t),
|
5794
5790
|
context: n(e),
|
5795
5791
|
item: a.value
|
5796
|
-
}, null, 8, ["modelValue", "current", "context", "item"])) :
|
5792
|
+
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
5797
5793
|
]),
|
5798
5794
|
_: 1
|
5799
5795
|
}));
|
@@ -5950,7 +5946,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5950
5946
|
value: t.styleJson.display,
|
5951
5947
|
onChange: u
|
5952
5948
|
}, null, 8, ["value"]),
|
5953
|
-
e.value ? (d(),
|
5949
|
+
e.value ? (d(), j(z, { key: 0 }, [
|
5954
5950
|
m(n(U), {
|
5955
5951
|
name: "flex-direction",
|
5956
5952
|
label: "主轴方向",
|
@@ -5987,7 +5983,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
5987
5983
|
value: t.styleJson["flex-wrap"],
|
5988
5984
|
onChange: t.setStyle
|
5989
5985
|
}, null, 8, ["value", "onChange"])
|
5990
|
-
], 64)) :
|
5986
|
+
], 64)) : A("", !0)
|
5991
5987
|
]),
|
5992
5988
|
_: 1
|
5993
5989
|
})
|
@@ -6059,7 +6055,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6059
6055
|
}, g = () => {
|
6060
6056
|
r.value = void 0, a("update:modelValue", r.value), a("submit", l.name, void 0), a("close");
|
6061
6057
|
};
|
6062
|
-
return (_, c) => (d(),
|
6058
|
+
return (_, c) => (d(), j("div", ii, [
|
6063
6059
|
c[4] || (c[4] = V("div", { class: "v-spacing-input__modal" }, null, -1)),
|
6064
6060
|
V("div", ui, [
|
6065
6061
|
m(n(q), {
|
@@ -6073,7 +6069,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6073
6069
|
default: y(() => [
|
6074
6070
|
m(n(Bn), {
|
6075
6071
|
modelValue: r.value,
|
6076
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
6072
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => r.value = h),
|
6077
6073
|
size: "small",
|
6078
6074
|
"with-unit": !!u.value,
|
6079
6075
|
unit: u.value,
|
@@ -6092,11 +6088,11 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6092
6088
|
}, {
|
6093
6089
|
default: y(() => [
|
6094
6090
|
V("span", {
|
6095
|
-
onClick: c[1] || (c[1] = (
|
6091
|
+
onClick: c[1] || (c[1] = (h) => f("auto"))
|
6096
6092
|
}, "auto")
|
6097
6093
|
]),
|
6098
6094
|
_: 1
|
6099
|
-
})) :
|
6095
|
+
})) : A("", !0),
|
6100
6096
|
m(n(q), {
|
6101
6097
|
grow: "",
|
6102
6098
|
class: "v-spacing-input__values",
|
@@ -6104,9 +6100,9 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6104
6100
|
wrap: "wrap"
|
6105
6101
|
}, {
|
6106
6102
|
default: y(() => [
|
6107
|
-
(d(),
|
6108
|
-
onClick: (
|
6109
|
-
}, L(
|
6103
|
+
(d(), j(z, null, W(e, (h) => V("span", {
|
6104
|
+
onClick: (b) => f(h)
|
6105
|
+
}, L(h), 9, ci)), 64))
|
6110
6106
|
]),
|
6111
6107
|
_: 1
|
6112
6108
|
})
|
@@ -6147,7 +6143,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6147
6143
|
])
|
6148
6144
|
]));
|
6149
6145
|
}
|
6150
|
-
}), 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 = {
|
6151
6147
|
xmlns: "http://www.w3.org/2000/svg",
|
6152
6148
|
width: "100%",
|
6153
6149
|
height: "100%",
|
@@ -6184,7 +6180,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6184
6180
|
}, [
|
6185
6181
|
V("div", di, [
|
6186
6182
|
V("div", pi, [
|
6187
|
-
n(a) && n(o) ? (d(),
|
6183
|
+
n(a) && n(o) ? (d(), j("svg", {
|
6188
6184
|
key: 0,
|
6189
6185
|
xmlns: "http://www.w3.org/2000/svg",
|
6190
6186
|
width: n(a),
|
@@ -6205,7 +6201,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6205
6201
|
"data-automation-id": "margin-top-button",
|
6206
6202
|
"aria-label": "Margin top button",
|
6207
6203
|
class: "tb-path-color",
|
6208
|
-
onClick: c[0] || (c[0] = (
|
6204
|
+
onClick: c[0] || (c[0] = (h) => g("margin-top"))
|
6209
6205
|
}, null, 8, vi)
|
6210
6206
|
])
|
6211
6207
|
]),
|
@@ -6223,7 +6219,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6223
6219
|
"data-automation-id": "margin-right-button",
|
6224
6220
|
"aria-label": "Margin right button",
|
6225
6221
|
class: "lr-path-color",
|
6226
|
-
onClick: c[1] || (c[1] = (
|
6222
|
+
onClick: c[1] || (c[1] = (h) => g("margin-right"))
|
6227
6223
|
}, null, 8, gi)
|
6228
6224
|
])
|
6229
6225
|
]),
|
@@ -6241,7 +6237,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6241
6237
|
"data-automation-id": "margin-bottom-button",
|
6242
6238
|
"aria-label": "Margin bottom button",
|
6243
6239
|
class: "tb-path-color",
|
6244
|
-
onClick: c[2] || (c[2] = (
|
6240
|
+
onClick: c[2] || (c[2] = (h) => g("margin-bottom"))
|
6245
6241
|
}, null, 8, fi)
|
6246
6242
|
])
|
6247
6243
|
]),
|
@@ -6259,7 +6255,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6259
6255
|
"data-automation-id": "margin-left-button",
|
6260
6256
|
"aria-label": "Margin left button",
|
6261
6257
|
class: "lr-path-color",
|
6262
|
-
onClick: c[3] || (c[3] = (
|
6258
|
+
onClick: c[3] || (c[3] = (h) => g("margin-left"))
|
6263
6259
|
}, null, 8, hi)
|
6264
6260
|
])
|
6265
6261
|
]),
|
@@ -6311,22 +6307,22 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6311
6307
|
ry: "2",
|
6312
6308
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
6313
6309
|
}, null, 8, Si)
|
6314
|
-
], 8, mi)) :
|
6310
|
+
], 8, mi)) : A("", !0),
|
6315
6311
|
V("div", {
|
6316
6312
|
class: K(["spacing-edit margin-top", { "is-setting": t.styleJson["margin-top"] }]),
|
6317
|
-
onClick: c[4] || (c[4] = (
|
6313
|
+
onClick: c[4] || (c[4] = (h) => g("margin-top"))
|
6318
6314
|
}, L(t.styleJson["margin-top"] || "-"), 3),
|
6319
6315
|
V("div", {
|
6320
6316
|
class: K(["spacing-edit margin-right", { "is-setting": t.styleJson["margin-right"] }]),
|
6321
|
-
onClick: c[5] || (c[5] = (
|
6317
|
+
onClick: c[5] || (c[5] = (h) => g("margin-right"))
|
6322
6318
|
}, L(t.styleJson["margin-right"] || "-"), 3),
|
6323
6319
|
V("div", {
|
6324
6320
|
class: K(["spacing-edit margin-bottom", { "is-setting": t.styleJson["margin-bottom"] }]),
|
6325
|
-
onClick: c[6] || (c[6] = (
|
6321
|
+
onClick: c[6] || (c[6] = (h) => g("margin-bottom"))
|
6326
6322
|
}, L(t.styleJson["margin-bottom"] || "-"), 3),
|
6327
6323
|
V("div", {
|
6328
6324
|
class: K(["spacing-edit margin-left", { "is-setting": t.styleJson["margin-left"] }]),
|
6329
|
-
onClick: c[7] || (c[7] = (
|
6325
|
+
onClick: c[7] || (c[7] = (h) => g("margin-left"))
|
6330
6326
|
}, L(t.styleJson["margin-left"] || "-"), 3)
|
6331
6327
|
]),
|
6332
6328
|
V("div", {
|
@@ -6334,7 +6330,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6334
6330
|
ref: l,
|
6335
6331
|
class: "spacing-min-icon"
|
6336
6332
|
}, [
|
6337
|
-
n(a) && n(o) ? (d(),
|
6333
|
+
n(a) && n(o) ? (d(), j("svg", {
|
6338
6334
|
key: 0,
|
6339
6335
|
xmlns: "http://www.w3.org/2000/svg",
|
6340
6336
|
width: n(s),
|
@@ -6355,7 +6351,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6355
6351
|
"data-automation-id": "padding-top-button",
|
6356
6352
|
"aria-label": "Padding top button",
|
6357
6353
|
class: "tb-path-color",
|
6358
|
-
onClick: c[8] || (c[8] = (
|
6354
|
+
onClick: c[8] || (c[8] = (h) => g("padding-top"))
|
6359
6355
|
}, null, 8, Ci)
|
6360
6356
|
])
|
6361
6357
|
]),
|
@@ -6373,7 +6369,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6373
6369
|
"data-automation-id": "padding-right-button",
|
6374
6370
|
"aria-label": "Padding right button",
|
6375
6371
|
class: "lr-path-color",
|
6376
|
-
onClick: c[9] || (c[9] = (
|
6372
|
+
onClick: c[9] || (c[9] = (h) => g("padding-right"))
|
6377
6373
|
}, null, 8, Vi)
|
6378
6374
|
])
|
6379
6375
|
]),
|
@@ -6391,8 +6387,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6391
6387
|
"data-automation-id": "padding-bottom-button",
|
6392
6388
|
"aria-label": "Padding bottom button",
|
6393
6389
|
class: "tb-path-color",
|
6394
|
-
onClick: c[10] || (c[10] = (
|
6395
|
-
}, null, 8,
|
6390
|
+
onClick: c[10] || (c[10] = (h) => g("padding-bottom"))
|
6391
|
+
}, null, 8, ji)
|
6396
6392
|
])
|
6397
6393
|
]),
|
6398
6394
|
V("g", null, [
|
@@ -6409,8 +6405,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6409
6405
|
"data-automation-id": "padding-left-button",
|
6410
6406
|
"aria-label": "Padding left button",
|
6411
6407
|
class: "lr-path-color",
|
6412
|
-
onClick: c[11] || (c[11] = (
|
6413
|
-
}, null, 8,
|
6408
|
+
onClick: c[11] || (c[11] = (h) => g("padding-left"))
|
6409
|
+
}, null, 8, Ai)
|
6414
6410
|
])
|
6415
6411
|
]),
|
6416
6412
|
V("clipPath", Ei, [
|
@@ -6461,25 +6457,25 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6461
6457
|
ry: "2",
|
6462
6458
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
6463
6459
|
}, null, 8, $i)
|
6464
|
-
], 8, xi)) :
|
6460
|
+
], 8, xi)) : A("", !0),
|
6465
6461
|
V("div", {
|
6466
6462
|
class: K(["spacing-edit padding-top", { "is-setting": t.styleJson["padding-top"] }]),
|
6467
|
-
onClick: c[12] || (c[12] = (
|
6463
|
+
onClick: c[12] || (c[12] = (h) => g("padding-top"))
|
6468
6464
|
}, L(t.styleJson["padding-top"] || "-"), 3),
|
6469
6465
|
V("div", {
|
6470
6466
|
class: K(["spacing-edit padding-right", { "is-setting": t.styleJson["padding-right"] }]),
|
6471
|
-
onClick: c[13] || (c[13] = (
|
6467
|
+
onClick: c[13] || (c[13] = (h) => g("padding-right"))
|
6472
6468
|
}, L(t.styleJson["padding-right"] || "-"), 3),
|
6473
6469
|
V("div", {
|
6474
6470
|
class: K(["spacing-edit padding-bottom", { "is-setting": t.styleJson["padding-bottom"] }]),
|
6475
|
-
onClick: c[14] || (c[14] = (
|
6471
|
+
onClick: c[14] || (c[14] = (h) => g("padding-bottom"))
|
6476
6472
|
}, L(t.styleJson["padding-bottom"] || "-"), 3),
|
6477
6473
|
V("div", {
|
6478
6474
|
class: K(["spacing-edit padding-left", { "is-setting": t.styleJson["padding-left"] }]),
|
6479
|
-
onClick: c[15] || (c[15] = (
|
6475
|
+
onClick: c[15] || (c[15] = (h) => g("padding-left"))
|
6480
6476
|
}, L(t.styleJson["padding-left"] || "-"), 3)
|
6481
6477
|
], 512),
|
6482
|
-
(d(),
|
6478
|
+
(d(), j("svg", Bi, c[17] || (c[17] = [
|
6483
6479
|
V("text", {
|
6484
6480
|
x: "6",
|
6485
6481
|
y: "4",
|
@@ -6490,7 +6486,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6490
6486
|
"dominant-baseline": "hanging"
|
6491
6487
|
}, " padding ", -1)
|
6492
6488
|
]))),
|
6493
|
-
(d(),
|
6489
|
+
(d(), j("svg", Ri, c[18] || (c[18] = [
|
6494
6490
|
V("text", {
|
6495
6491
|
x: "6",
|
6496
6492
|
y: "4",
|
@@ -6506,10 +6502,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6506
6502
|
key: 0,
|
6507
6503
|
name: f.value,
|
6508
6504
|
modelValue: p.value,
|
6509
|
-
"onUpdate:modelValue": c[16] || (c[16] = (
|
6505
|
+
"onUpdate:modelValue": c[16] || (c[16] = (h) => p.value = h),
|
6510
6506
|
onClose: v,
|
6511
6507
|
onSubmit: t.setStyle
|
6512
|
-
}, null, 8, ["name", "modelValue", "onSubmit"])) :
|
6508
|
+
}, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
|
6513
6509
|
], 512)
|
6514
6510
|
]),
|
6515
6511
|
_: 1
|
@@ -6592,7 +6588,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6592
6588
|
inline: ""
|
6593
6589
|
}, {
|
6594
6590
|
default: y(() => [
|
6595
|
-
(d(),
|
6591
|
+
(d(), j(z, null, W(a, (r) => m(n(U), {
|
6596
6592
|
name: r.name,
|
6597
6593
|
label: r.label,
|
6598
6594
|
setters: { name: r.setter },
|
@@ -6676,7 +6672,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6676
6672
|
ref: e,
|
6677
6673
|
class: "spacing-min-icon"
|
6678
6674
|
}, [
|
6679
|
-
n(l) && n(l) ? (d(),
|
6675
|
+
n(l) && n(l) ? (d(), j("svg", {
|
6680
6676
|
key: 0,
|
6681
6677
|
xmlns: "http://www.w3.org/2000/svg",
|
6682
6678
|
width: n(l),
|
@@ -6697,7 +6693,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6697
6693
|
"data-automation-id": "padding-top-button",
|
6698
6694
|
"aria-label": "Padding top button",
|
6699
6695
|
class: "tb-path-color",
|
6700
|
-
onClick: c[0] || (c[0] = (
|
6696
|
+
onClick: c[0] || (c[0] = (h) => v("top"))
|
6701
6697
|
}, null, 8, Ni)
|
6702
6698
|
])
|
6703
6699
|
]),
|
@@ -6715,7 +6711,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6715
6711
|
"data-automation-id": "padding-right-button",
|
6716
6712
|
"aria-label": "Padding right button",
|
6717
6713
|
class: "lr-path-color",
|
6718
|
-
onClick: c[1] || (c[1] = (
|
6714
|
+
onClick: c[1] || (c[1] = (h) => v("right"))
|
6719
6715
|
}, null, 8, Mi)
|
6720
6716
|
])
|
6721
6717
|
]),
|
@@ -6733,7 +6729,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6733
6729
|
"data-automation-id": "padding-bottom-button",
|
6734
6730
|
"aria-label": "Padding bottom button",
|
6735
6731
|
class: "tb-path-color",
|
6736
|
-
onClick: c[2] || (c[2] = (
|
6732
|
+
onClick: c[2] || (c[2] = (h) => v("bottom"))
|
6737
6733
|
}, null, 8, Ji)
|
6738
6734
|
])
|
6739
6735
|
]),
|
@@ -6751,7 +6747,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6751
6747
|
"data-automation-id": "padding-left-button",
|
6752
6748
|
"aria-label": "Padding left button",
|
6753
6749
|
class: "lr-path-color",
|
6754
|
-
onClick: c[3] || (c[3] = (
|
6750
|
+
onClick: c[3] || (c[3] = (h) => v("left"))
|
6755
6751
|
}, null, 8, Ui)
|
6756
6752
|
])
|
6757
6753
|
]),
|
@@ -6803,22 +6799,22 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6803
6799
|
ry: "2",
|
6804
6800
|
style: { "pointer-events": "none", "stroke-width": "2px" }
|
6805
6801
|
}, null, 8, Qi)
|
6806
|
-
], 8, Wi)) :
|
6802
|
+
], 8, Wi)) : A("", !0),
|
6807
6803
|
V("div", {
|
6808
6804
|
class: K(["spacing-edit padding-top", { "is-setting": t.styleJson.top }]),
|
6809
|
-
onClick: c[4] || (c[4] = (
|
6805
|
+
onClick: c[4] || (c[4] = (h) => v("top"))
|
6810
6806
|
}, L(t.styleJson.top || p.value[0] || "-"), 3),
|
6811
6807
|
V("div", {
|
6812
6808
|
class: K(["spacing-edit padding-right", { "is-setting": t.styleJson.right }]),
|
6813
|
-
onClick: c[5] || (c[5] = (
|
6809
|
+
onClick: c[5] || (c[5] = (h) => v("right"))
|
6814
6810
|
}, L(t.styleJson.right || p.value[1] || "-"), 3),
|
6815
6811
|
V("div", {
|
6816
6812
|
class: K(["spacing-edit padding-bottom", { "is-setting": t.styleJson.bottom }]),
|
6817
|
-
onClick: c[6] || (c[6] = (
|
6813
|
+
onClick: c[6] || (c[6] = (h) => v("bottom"))
|
6818
6814
|
}, L(t.styleJson.bottom || p.value[2] || "-"), 3),
|
6819
6815
|
V("div", {
|
6820
6816
|
class: K(["spacing-edit padding-left", { "is-setting": t.styleJson.left }]),
|
6821
|
-
onClick: c[7] || (c[7] = (
|
6817
|
+
onClick: c[7] || (c[7] = (h) => v("left"))
|
6822
6818
|
}, L(t.styleJson.left || p.value[3] || "-"), 3)
|
6823
6819
|
], 512),
|
6824
6820
|
o.value ? (d(), w(sl, {
|
@@ -6826,10 +6822,10 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6826
6822
|
auto: "",
|
6827
6823
|
name: s.value,
|
6828
6824
|
modelValue: r.value,
|
6829
|
-
"onUpdate:modelValue": c[8] || (c[8] = (
|
6825
|
+
"onUpdate:modelValue": c[8] || (c[8] = (h) => r.value = h),
|
6830
6826
|
onClose: g,
|
6831
6827
|
onSubmit: t.setStyle
|
6832
|
-
}, null, 8, ["name", "modelValue", "onSubmit"])) :
|
6828
|
+
}, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
|
6833
6829
|
])
|
6834
6830
|
]),
|
6835
6831
|
_: 1
|
@@ -6934,7 +6930,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
6934
6930
|
inline: ""
|
6935
6931
|
}, {
|
6936
6932
|
default: y(() => [
|
6937
|
-
(d(),
|
6933
|
+
(d(), j(z, null, W(e, (u) => m(n(U), {
|
6938
6934
|
name: u.name,
|
6939
6935
|
label: u.label,
|
6940
6936
|
setters: { name: u.setter },
|
@@ -7116,8 +7112,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7116
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";
|
7117
7113
|
}, l = S("border"), a = [
|
7118
7114
|
{ label: "全边框", svg: Vs, value: "border" },
|
7119
|
-
{ label: "左边框", svg:
|
7120
|
-
{ label: "上边框", svg:
|
7115
|
+
{ label: "左边框", svg: js, value: "border-left" },
|
7116
|
+
{ label: "上边框", svg: As, value: "border-top" },
|
7121
7117
|
{ label: "下边框", svg: Es, value: "border-bottom" },
|
7122
7118
|
{ label: "右边框", svg: Ds, value: "border-right" }
|
7123
7119
|
], o = [
|
@@ -7166,7 +7162,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7166
7162
|
value: l.value,
|
7167
7163
|
onChange: s
|
7168
7164
|
}, null, 8, ["value"]),
|
7169
|
-
l.value ? (d(),
|
7165
|
+
l.value ? (d(), j(z, { key: 0 }, [
|
7170
7166
|
(d(), w(n(U), {
|
7171
7167
|
name: `${l.value}-width`,
|
7172
7168
|
key: `${l.value}-width`,
|
@@ -7195,7 +7191,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7195
7191
|
value: t.styleJson[`${l.value}-color`],
|
7196
7192
|
onChange: t.setStyle
|
7197
7193
|
}, null, 8, ["name", "value", "onChange"]))
|
7198
|
-
], 64)) :
|
7194
|
+
], 64)) : A("", !0)
|
7199
7195
|
]),
|
7200
7196
|
_: 1
|
7201
7197
|
})
|
@@ -7381,7 +7377,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7381
7377
|
refresh: () => {
|
7382
7378
|
a.value = Symbol();
|
7383
7379
|
}
|
7384
|
-
}), (g, _) => (d(),
|
7380
|
+
}), (g, _) => (d(), j("div", {
|
7385
7381
|
ref_key: "container",
|
7386
7382
|
ref: l,
|
7387
7383
|
class: "v-previewer",
|
@@ -7393,12 +7389,12 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7393
7389
|
height: n(u)
|
7394
7390
|
}, {
|
7395
7391
|
default: y(() => [
|
7396
|
-
f.value ? (d(),
|
7392
|
+
f.value ? (d(), j("iframe", {
|
7397
7393
|
key: 0,
|
7398
7394
|
ref: "iframe",
|
7399
7395
|
frameborder: "0",
|
7400
7396
|
src: f.value
|
7401
|
-
}, null, 8, au)) :
|
7397
|
+
}, null, 8, au)) : A("", !0)
|
7402
7398
|
]),
|
7403
7399
|
_: 1
|
7404
7400
|
}, 8, ["mode", "width", "height"])
|
@@ -7420,7 +7416,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7420
7416
|
"separator-icon": n(zs)
|
7421
7417
|
}, {
|
7422
7418
|
default: y(() => [
|
7423
|
-
(d(!0),
|
7419
|
+
(d(!0), j(z, null, W(l.value, (u) => (d(), w(n(kl), {
|
7424
7420
|
onClick: (f) => a(u),
|
7425
7421
|
onMouseover: (f) => o(u)
|
7426
7422
|
}, {
|
@@ -7431,7 +7427,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7431
7427
|
}, 1032, ["onClick", "onMouseover"]))), 256))
|
7432
7428
|
]),
|
7433
7429
|
_: 1
|
7434
|
-
}, 8, ["separator-icon"])) :
|
7430
|
+
}, 8, ["separator-icon"])) : A("", !0);
|
7435
7431
|
}
|
7436
7432
|
}), ru = /* @__PURE__ */ E({
|
7437
7433
|
name: "SchemaWidget",
|
@@ -7551,7 +7547,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7551
7547
|
ref: a
|
7552
7548
|
}, {
|
7553
7549
|
default: y(() => [
|
7554
|
-
(d(),
|
7550
|
+
(d(), j("iframe", {
|
7555
7551
|
key: s.value,
|
7556
7552
|
ref: "frame",
|
7557
7553
|
src: l.value,
|
@@ -7565,7 +7561,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7565
7561
|
name: "AboutWidget",
|
7566
7562
|
__name: "index",
|
7567
7563
|
setup(i) {
|
7568
|
-
return (t, e) => (d(),
|
7564
|
+
return (t, e) => (d(), j("div", du, [
|
7569
7565
|
V("div", pu, [
|
7570
7566
|
V("img", { src: n(ol) }, null, 8, mu)
|
7571
7567
|
]),
|
@@ -7616,7 +7612,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7616
7612
|
})
|
7617
7613
|
]),
|
7618
7614
|
_: 1
|
7619
|
-
}, 8, ["model"])) :
|
7615
|
+
}, 8, ["model"])) : A("", !0)
|
7620
7616
|
]),
|
7621
7617
|
_: 1
|
7622
7618
|
}));
|
@@ -7664,7 +7660,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7664
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(() => {
|
7665
7661
|
const D = r?.getData()?.id;
|
7666
7662
|
return _t(g.value, (I) => I.userId === D ? "我的" : I.category);
|
7667
|
-
}), c = C(() => Object.keys(_.value)),
|
7663
|
+
}), c = C(() => Object.keys(_.value)), h = C(() => `(共 ${l.value.length} 个)`), b = async (D) => {
|
7668
7664
|
await o() ? await s(D.id) : await De.confirm(
|
7669
7665
|
"使用需登录,您还没登录或登录已过期,请重新登录!",
|
7670
7666
|
"提示",
|
@@ -7683,7 +7679,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7683
7679
|
}), (D, I) => Ee((d(), w(n(G), {
|
7684
7680
|
class: "v-blocks-widget v-templates-widgets",
|
7685
7681
|
title: "模板",
|
7686
|
-
subtitle:
|
7682
|
+
subtitle: h.value,
|
7687
7683
|
refresh: "",
|
7688
7684
|
onRefresh: n(u)
|
7689
7685
|
}, {
|
@@ -7703,7 +7699,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7703
7699
|
"model-value": c.value
|
7704
7700
|
}, {
|
7705
7701
|
default: y(() => [
|
7706
|
-
(d(!0),
|
7702
|
+
(d(!0), j(z, null, W(_.value, (O, $) => (d(), w(n(bt), {
|
7707
7703
|
name: $,
|
7708
7704
|
title: `${$} (${O.length})`
|
7709
7705
|
}, {
|
@@ -7713,7 +7709,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7713
7709
|
gutter: 5
|
7714
7710
|
}, {
|
7715
7711
|
default: y(() => [
|
7716
|
-
(d(!0),
|
7712
|
+
(d(!0), j(z, null, W(O, (R) => (d(), w(n(mt), {
|
7717
7713
|
key: R.id,
|
7718
7714
|
span: n(e)
|
7719
7715
|
}, {
|
@@ -7736,7 +7732,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7736
7732
|
H(" VIP ")
|
7737
7733
|
])),
|
7738
7734
|
_: 1
|
7739
|
-
})) :
|
7735
|
+
})) : A("", !0),
|
7740
7736
|
k(R) ? (d(), w(n(ge), {
|
7741
7737
|
key: 1,
|
7742
7738
|
class: "is-delete",
|
@@ -7745,7 +7741,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7745
7741
|
size: "small",
|
7746
7742
|
type: "danger",
|
7747
7743
|
onClick: (B) => x(R)
|
7748
|
-
}, null, 8, ["icon", "onClick"])) :
|
7744
|
+
}, null, 8, ["icon", "onClick"])) : A("", !0),
|
7749
7745
|
m(n(Vn), {
|
7750
7746
|
src: R.cover,
|
7751
7747
|
fit: "contain"
|
@@ -7760,7 +7756,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7760
7756
|
icon: n(Rt),
|
7761
7757
|
type: "primary",
|
7762
7758
|
round: "",
|
7763
|
-
onClick: (B) =>
|
7759
|
+
onClick: (B) => b(R)
|
7764
7760
|
}, {
|
7765
7761
|
default: y(() => I[2] || (I[2] = [
|
7766
7762
|
H(" 使用 ")
|
@@ -7812,8 +7808,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7812
7808
|
Pages: yr,
|
7813
7809
|
Blocks: kr,
|
7814
7810
|
Components: Vr,
|
7815
|
-
Outline:
|
7816
|
-
History:
|
7811
|
+
Outline: jr,
|
7812
|
+
History: Ar,
|
7817
7813
|
Apis: Rr,
|
7818
7814
|
Deps: Or,
|
7819
7815
|
Designer: Lr,
|
@@ -7835,7 +7831,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
7835
7831
|
Market: bu,
|
7836
7832
|
Templates: xu,
|
7837
7833
|
UserAvatar: Vu
|
7838
|
-
},
|
7834
|
+
}, ju = [
|
7839
7835
|
{
|
7840
7836
|
name: "Logo",
|
7841
7837
|
region: "Brand",
|
@@ -8081,7 +8077,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8081
8077
|
region: "Status",
|
8082
8078
|
component: X.NodePath
|
8083
8079
|
}
|
8084
|
-
],
|
8080
|
+
], Au = [
|
8085
8081
|
{
|
8086
8082
|
package: "vue",
|
8087
8083
|
version: "latest",
|
@@ -8784,7 +8780,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8784
8780
|
const t = i;
|
8785
8781
|
return (e, l) => (d(), w(n(Vl), ue({ clearable: "" }, e.$attrs), {
|
8786
8782
|
default: y(() => [
|
8787
|
-
(d(!0),
|
8783
|
+
(d(!0), j(z, null, W(t.options, (a) => (d(), w(n(jl), ue({
|
8788
8784
|
key: a.label,
|
8789
8785
|
ref_for: !0
|
8790
8786
|
}, a), null, 16))), 128))
|
@@ -8803,7 +8799,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8803
8799
|
const e = i, l = t, a = C(() => et(e.modelValue) ? void 0 : Number(e.modelValue || 0)), o = (s) => {
|
8804
8800
|
l("change", s);
|
8805
8801
|
};
|
8806
|
-
return (s, r) => (d(), w(n(
|
8802
|
+
return (s, r) => (d(), w(n(Al), ue({
|
8807
8803
|
class: "v-number-setter",
|
8808
8804
|
"controls-position": "right",
|
8809
8805
|
"model-value": a.value
|
@@ -8854,7 +8850,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8854
8850
|
}, v = () => {
|
8855
8851
|
s.value = !0;
|
8856
8852
|
};
|
8857
|
-
return (g, _) => (d(),
|
8853
|
+
return (g, _) => (d(), j("div", {
|
8858
8854
|
class: K(["v-json-setter", { "is-active": o.value }])
|
8859
8855
|
}, [
|
8860
8856
|
m(n(be), ue({
|
@@ -8899,7 +8895,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8899
8895
|
}, null, 8, ["model-value"])
|
8900
8896
|
]),
|
8901
8897
|
_: 1
|
8902
|
-
}, 8, ["modelValue", "title"])) :
|
8898
|
+
}, 8, ["modelValue", "title"])) : A("", !0)
|
8903
8899
|
], 2));
|
8904
8900
|
}
|
8905
8901
|
}), Nu = /* @__PURE__ */ E({
|
@@ -8927,7 +8923,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8927
8923
|
}, p = () => {
|
8928
8924
|
o.value = !0;
|
8929
8925
|
};
|
8930
|
-
return (v, g) => (d(),
|
8926
|
+
return (v, g) => (d(), j("div", {
|
8931
8927
|
class: K(["v-function-setter", { "is-active": s.value }])
|
8932
8928
|
}, [
|
8933
8929
|
m(n(be), ue({
|
@@ -8971,7 +8967,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8971
8967
|
}, null, 8, ["model-value"])
|
8972
8968
|
]),
|
8973
8969
|
_: 1
|
8974
|
-
}, 8, ["modelValue"])) :
|
8970
|
+
}, 8, ["modelValue"])) : A("", !0)
|
8975
8971
|
], 2));
|
8976
8972
|
}
|
8977
8973
|
}), Mu = /* @__PURE__ */ E({
|
@@ -8987,7 +8983,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8987
8983
|
size: "small"
|
8988
8984
|
}, e.$attrs), {
|
8989
8985
|
default: y(() => [
|
8990
|
-
(d(!0),
|
8986
|
+
(d(!0), j(z, null, W(t.options, (a) => (d(), w(n(ut), {
|
8991
8987
|
label: a.label,
|
8992
8988
|
value: a.value,
|
8993
8989
|
title: a.label
|
@@ -8996,7 +8992,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
8996
8992
|
a.svg ? (d(), w(n(Re), {
|
8997
8993
|
key: 0,
|
8998
8994
|
src: a.svg
|
8999
|
-
}, null, 8, ["src"])) : (d(),
|
8995
|
+
}, null, 8, ["src"])) : (d(), j(z, { key: 1 }, [
|
9000
8996
|
H(L(a.label), 1)
|
9001
8997
|
], 64))
|
9002
8998
|
]),
|
@@ -9018,11 +9014,11 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9018
9014
|
const e = i, l = t, a = (o) => {
|
9019
9015
|
o.value === e.modelValue ? (l("update:modelValue", void 0), l("change", void 0)) : (l("update:modelValue", o.value), l("change", o.value));
|
9020
9016
|
};
|
9021
|
-
return (o, s) => (d(),
|
9017
|
+
return (o, s) => (d(), j("div", ue({
|
9022
9018
|
class: "v-tag-setter",
|
9023
9019
|
size: "small"
|
9024
9020
|
}, o.$attrs), [
|
9025
|
-
(d(!0),
|
9021
|
+
(d(!0), j(z, null, W(e.options, (r) => (d(), j("span", {
|
9026
9022
|
label: r.value,
|
9027
9023
|
title: r.label,
|
9028
9024
|
class: K({
|
@@ -9034,7 +9030,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9034
9030
|
key: 0,
|
9035
9031
|
src: r.svg,
|
9036
9032
|
size: 16
|
9037
|
-
}, null, 8, ["src"])) : (d(),
|
9033
|
+
}, null, 8, ["src"])) : (d(), j(z, { key: 1 }, [
|
9038
9034
|
H(L(r.label), 1)
|
9039
9035
|
], 64))
|
9040
9036
|
], 10, Ju))), 256))
|
@@ -9132,8 +9128,8 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9132
9128
|
const o = () => {
|
9133
9129
|
l("change", a.value.join(" ").trim());
|
9134
9130
|
};
|
9135
|
-
return (s, r) => (d(),
|
9136
|
-
(d(!0),
|
9131
|
+
return (s, r) => (d(), j("div", Gu, [
|
9132
|
+
(d(!0), j(z, null, W(e.sections, (u) => (d(), w(rl, {
|
9137
9133
|
name: u - 1,
|
9138
9134
|
modelValue: a.value[u - 1],
|
9139
9135
|
"onUpdate:modelValue": (f) => a.value[u - 1] = f,
|
@@ -9163,7 +9159,7 @@ const nr = { class: "v-icon-setter" }, lr = { class: "v-icon-setter__content" },
|
|
9163
9159
|
const o = () => {
|
9164
9160
|
a.value = void 0, l("change", void 0), l("update:modelValue", void 0);
|
9165
9161
|
};
|
9166
|
-
return (s, r) => (d(),
|
9162
|
+
return (s, r) => (d(), j("div", Xu, [
|
9167
9163
|
m(n(Pl), ue({ size: "small" }, s.$attrs, {
|
9168
9164
|
modelValue: a.value,
|
9169
9165
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u)
|
@@ -9337,7 +9333,7 @@ class ec {
|
|
9337
9333
|
}
|
9338
9334
|
createWidgets() {
|
9339
9335
|
const t = {};
|
9340
|
-
for (const e of
|
9336
|
+
for (const e of ju)
|
9341
9337
|
t[e.name] = e;
|
9342
9338
|
return t;
|
9343
9339
|
}
|
@@ -9385,7 +9381,7 @@ class ec {
|
|
9385
9381
|
}
|
9386
9382
|
const il = new ec();
|
9387
9383
|
class tc {
|
9388
|
-
constructor(t =
|
9384
|
+
constructor(t = Au) {
|
9389
9385
|
this.deps = t;
|
9390
9386
|
}
|
9391
9387
|
/**
|
@@ -10056,9 +10052,9 @@ class ic extends zn {
|
|
10056
10052
|
async emitReady(e = [], l = [], a = {}, o = {}) {
|
10057
10053
|
this.renderer?.dispose(), this.renderer = null;
|
10058
10054
|
const s = this.contentWindow, { assets: r, service: u, current: f, provider: p, project: v } = this.engine, g = p.materials || {}, _ = [];
|
10059
|
-
for (const
|
10060
|
-
const
|
10061
|
-
_.push(
|
10055
|
+
for (const h of l) {
|
10056
|
+
const b = g[h] ? (await g[h]()).default : s[h];
|
10057
|
+
_.push(b);
|
10062
10058
|
}
|
10063
10059
|
r.load(_);
|
10064
10060
|
const c = this.createEnv(
|
@@ -10074,26 +10070,26 @@ class ic extends zn {
|
|
10074
10070
|
Object.entries(o).forEach(([D, I]) => {
|
10075
10071
|
g[D] = s[I];
|
10076
10072
|
});
|
10077
|
-
const _ = {}, { groups: c, componentMap:
|
10073
|
+
const _ = {}, { groups: c, componentMap: h } = f;
|
10078
10074
|
for (const D of c.value) {
|
10079
10075
|
const I = D.names || [];
|
10080
10076
|
if (D.name === Tt)
|
10081
10077
|
I.forEach((O) => {
|
10082
|
-
const $ =
|
10078
|
+
const $ = h.get(O), R = $?.package || "", B = Gl[R], Q = v[B];
|
10083
10079
|
Q && $ && (_[O] = rn($, Q));
|
10084
10080
|
});
|
10085
10081
|
else {
|
10086
10082
|
const O = v[l[D.library || ""]];
|
10087
10083
|
O && I.forEach(($) => {
|
10088
|
-
const R =
|
10084
|
+
const R = h.get($);
|
10089
10085
|
R ? _[$] = rn(R, O) : _[$] = O[$];
|
10090
10086
|
});
|
10091
10087
|
}
|
10092
10088
|
}
|
10093
|
-
const { adapter:
|
10089
|
+
const { adapter: b, globals: k } = p, x = da(
|
10094
10090
|
u.value?.apis,
|
10095
10091
|
u.value?.meta,
|
10096
|
-
|
10092
|
+
b
|
10097
10093
|
);
|
10098
10094
|
return pa(), u.value?.config?.mock && ma(u.value?.apis), {
|
10099
10095
|
window: s,
|
@@ -10706,7 +10702,7 @@ const $e = E({
|
|
10706
10702
|
onEnd(x, D) {
|
10707
10703
|
o.value = D.elementWidth.value;
|
10708
10704
|
}
|
10709
|
-
}, 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);
|
10710
10706
|
return t({
|
10711
10707
|
brand: u,
|
10712
10708
|
toolbar: f,
|
@@ -10715,11 +10711,11 @@ const $e = E({
|
|
10715
10711
|
workspace: g,
|
10716
10712
|
settings: _,
|
10717
10713
|
status: c,
|
10718
|
-
collapsed:
|
10714
|
+
collapsed: b,
|
10719
10715
|
settable: k,
|
10720
10716
|
leftWidth: a,
|
10721
10717
|
rightWidth: o,
|
10722
|
-
preview:
|
10718
|
+
preview: h,
|
10723
10719
|
isPreview: l
|
10724
10720
|
}), (x, D) => (d(), w(n(Il), { locale: n(Rl) }, {
|
10725
10721
|
default: y(() => [
|
@@ -10751,11 +10747,11 @@ const $e = E({
|
|
10751
10747
|
}, 8, ["height"]),
|
10752
10748
|
m(n(tn), { class: "v-skeleton__wrapper" }, {
|
10753
10749
|
default: y(() => [
|
10754
|
-
l.value ?
|
10750
|
+
l.value ? A("", !0) : Ee((d(), w(n(nn), {
|
10755
10751
|
key: 0,
|
10756
10752
|
width: e.leftWidth,
|
10757
10753
|
class: K(["v-skeleton__left", {
|
10758
|
-
"is-collapsed":
|
10754
|
+
"is-collapsed": b.value
|
10759
10755
|
}])
|
10760
10756
|
}, {
|
10761
10757
|
default: y(() => [
|
@@ -10774,10 +10770,10 @@ const $e = E({
|
|
10774
10770
|
l.value ? (d(), w(n($e), {
|
10775
10771
|
key: 0,
|
10776
10772
|
ref_key: "preview",
|
10777
|
-
ref:
|
10773
|
+
ref: h,
|
10778
10774
|
region: "Preview",
|
10779
10775
|
preview: l.value
|
10780
|
-
}, null, 8, ["preview"])) :
|
10776
|
+
}, null, 8, ["preview"])) : A("", !0),
|
10781
10777
|
Ee(m(n($e), {
|
10782
10778
|
ref_key: "workspace",
|
10783
10779
|
ref: g,
|
@@ -10788,7 +10784,7 @@ const $e = E({
|
|
10788
10784
|
]),
|
10789
10785
|
_: 1
|
10790
10786
|
}),
|
10791
|
-
l.value ?
|
10787
|
+
l.value ? A("", !0) : Ee((d(), w(n(nn), {
|
10792
10788
|
key: 1,
|
10793
10789
|
width: e.rightWidth,
|
10794
10790
|
class: "v-skeleton__right"
|
@@ -10808,7 +10804,7 @@ const $e = E({
|
|
10808
10804
|
]),
|
10809
10805
|
_: 1
|
10810
10806
|
}),
|
10811
|
-
l.value ?
|
10807
|
+
l.value ? A("", !0) : (d(), w(n(Bl), {
|
10812
10808
|
key: 0,
|
10813
10809
|
class: "v-skeleton__footer",
|
10814
10810
|
height: x.footerHeight
|
@@ -10877,7 +10873,7 @@ const $e = E({
|
|
10877
10873
|
a.value = !0, o.value = et(r.value) ? r.value.value : "";
|
10878
10874
|
}, c = () => {
|
10879
10875
|
a.value = !1, o.value = "";
|
10880
|
-
},
|
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 () => {
|
10881
10877
|
await He("确定要解除绑定吗?") && (c(), r.value = void 0, l("change", void 0));
|
10882
10878
|
};
|
10883
10879
|
return (k, x) => (d(), w(n(Tn), {
|
@@ -10895,15 +10891,15 @@ const $e = E({
|
|
10895
10891
|
H(L(e.label || e.name), 1)
|
10896
10892
|
]),
|
10897
10893
|
_: 1
|
10898
|
-
}, 8, ["content"])) : (d(),
|
10894
|
+
}, 8, ["content"])) : (d(), j("span", {
|
10899
10895
|
key: 1,
|
10900
10896
|
title: e.name
|
10901
10897
|
}, L(e.label || e.name), 9, pc))
|
10902
10898
|
]),
|
10903
10899
|
default: y(() => [
|
10904
10900
|
V("div", mc, [
|
10905
|
-
s.value ? (d(),
|
10906
|
-
u.value ?
|
10901
|
+
s.value ? (d(), j("div", vc, [
|
10902
|
+
u.value ? A("", !0) : (d(), w(yn(s.value.component), ue({
|
10907
10903
|
key: 0,
|
10908
10904
|
current: e.current,
|
10909
10905
|
context: e.context
|
@@ -10927,16 +10923,16 @@ const $e = E({
|
|
10927
10923
|
H(L(hc))
|
10928
10924
|
]),
|
10929
10925
|
_: 1
|
10930
|
-
})) :
|
10931
|
-
])) :
|
10926
|
+
})) : A("", !0)
|
10927
|
+
])) : A("", !0),
|
10932
10928
|
V("div", gc, [
|
10933
10929
|
e.variable ? (d(), w(n(Ks), {
|
10934
10930
|
key: 0,
|
10935
10931
|
onClick: _,
|
10936
10932
|
class: K(["v-icon-vars", { "is-active": u.value }]),
|
10937
10933
|
title: "绑定变量"
|
10938
|
-
}, null, 8, ["class"])) :
|
10939
|
-
e.setters.length > 1 ? (d(), w(n(
|
10934
|
+
}, null, 8, ["class"])) : A("", !0),
|
10935
|
+
e.setters.length > 1 ? (d(), w(n(jn), {
|
10940
10936
|
key: 1,
|
10941
10937
|
disabled: u.value,
|
10942
10938
|
size: "small",
|
@@ -10944,9 +10940,9 @@ const $e = E({
|
|
10944
10940
|
onCommand: p
|
10945
10941
|
}, {
|
10946
10942
|
dropdown: y(() => [
|
10947
|
-
m(n(
|
10943
|
+
m(n(An), null, {
|
10948
10944
|
default: y(() => [
|
10949
|
-
(d(!0),
|
10945
|
+
(d(!0), j(z, null, W(e.setters, (D) => (d(), w(n(ct), {
|
10950
10946
|
command: D,
|
10951
10947
|
key: D.name
|
10952
10948
|
}, {
|
@@ -10968,12 +10964,12 @@ const $e = E({
|
|
10968
10964
|
m(n(Xs), { title: "切换设置器" })
|
10969
10965
|
]),
|
10970
10966
|
_: 1
|
10971
|
-
}, 8, ["disabled"])) :
|
10967
|
+
}, 8, ["disabled"])) : A("", !0),
|
10972
10968
|
e.removable ? (d(), w(n(kt), {
|
10973
10969
|
key: 2,
|
10974
10970
|
onClick: g,
|
10975
10971
|
title: "删除"
|
10976
|
-
})) :
|
10972
|
+
})) : A("", !0)
|
10977
10973
|
])
|
10978
10974
|
]),
|
10979
10975
|
a.value ? (d(), w(n(Gr), {
|
@@ -10983,9 +10979,9 @@ const $e = E({
|
|
10983
10979
|
value: o.value,
|
10984
10980
|
modelValue: a.value,
|
10985
10981
|
"onUpdate:modelValue": x[1] || (x[1] = (D) => a.value = D),
|
10986
|
-
submitMethod:
|
10987
|
-
onUnbind:
|
10988
|
-
}, null, 8, ["current", "context", "value", "modelValue"])) :
|
10982
|
+
submitMethod: h,
|
10983
|
+
onUnbind: b
|
10984
|
+
}, null, 8, ["current", "context", "value", "modelValue"])) : A("", !0)
|
10989
10985
|
]),
|
10990
10986
|
_: 1
|
10991
10987
|
}));
|
@@ -10997,7 +10993,7 @@ const $e = E({
|
|
10997
10993
|
region: {}
|
10998
10994
|
},
|
10999
10995
|
setup(i) {
|
11000
|
-
return (t, e) => (d(),
|
10996
|
+
return (t, e) => (d(), j("div", yc, "找不到符合【" + L(t.region) + "】名称的区域组件", 1));
|
11001
10997
|
}
|
11002
10998
|
}), wc = { class: "v-brand-region" }, kc = /* @__PURE__ */ E({
|
11003
10999
|
name: "BrandRegion",
|
@@ -11011,8 +11007,8 @@ const $e = E({
|
|
11011
11007
|
return t({
|
11012
11008
|
widgets: l,
|
11013
11009
|
widgetsRef: a
|
11014
|
-
}), (o, s) => (d(),
|
11015
|
-
(d(!0),
|
11010
|
+
}), (o, s) => (d(), j("div", wc, [
|
11011
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11016
11012
|
ref_for: !0,
|
11017
11013
|
ref_key: "widgetsRef",
|
11018
11014
|
ref: a,
|
@@ -11033,8 +11029,8 @@ const $e = E({
|
|
11033
11029
|
return t({
|
11034
11030
|
widgets: l,
|
11035
11031
|
widgetsRef: a
|
11036
|
-
}), (o, s) => (d(),
|
11037
|
-
(d(!0),
|
11032
|
+
}), (o, s) => (d(), j("div", Sc, [
|
11033
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11038
11034
|
ref_for: !0,
|
11039
11035
|
ref_key: "widgetsRef",
|
11040
11036
|
ref: a,
|
@@ -11056,8 +11052,8 @@ const $e = E({
|
|
11056
11052
|
return t({
|
11057
11053
|
widgets: l,
|
11058
11054
|
widgetsRef: a
|
11059
|
-
}), (o, s) => (d(),
|
11060
|
-
(d(!0),
|
11055
|
+
}), (o, s) => (d(), j("div", Cc, [
|
11056
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11061
11057
|
ref_for: !0,
|
11062
11058
|
ref_key: "widgetsRef",
|
11063
11059
|
ref: a,
|
@@ -11066,7 +11062,7 @@ const $e = E({
|
|
11066
11062
|
}, null, 8, ["region", "widget"]))), 256))
|
11067
11063
|
]));
|
11068
11064
|
}
|
11069
|
-
}),
|
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({
|
11070
11066
|
name: "AppsRegion",
|
11071
11067
|
inheritAttrs: !1,
|
11072
11068
|
__name: "apps",
|
@@ -11091,42 +11087,42 @@ const $e = E({
|
|
11091
11087
|
widgets: a,
|
11092
11088
|
widgetsRef: o,
|
11093
11089
|
setActive: (c) => {
|
11094
|
-
const
|
11095
|
-
f.value =
|
11090
|
+
const h = s.value.find((b) => b.name === c);
|
11091
|
+
f.value = h, p.value = h;
|
11096
11092
|
}
|
11097
|
-
}), (c,
|
11098
|
-
V("div",
|
11093
|
+
}), (c, h) => (d(), j("div", jc, [
|
11094
|
+
V("div", Ac, [
|
11099
11095
|
V("div", Ec, [
|
11100
|
-
(d(!0),
|
11101
|
-
key: `icon-${
|
11102
|
-
icon:
|
11103
|
-
label:
|
11104
|
-
active: f.value?.name ===
|
11105
|
-
open: p.value?.name ===
|
11106
|
-
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)
|
11107
11103
|
}, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
|
11108
11104
|
]),
|
11109
11105
|
V("div", Dc, [
|
11110
|
-
(d(!0),
|
11111
|
-
key: `icon-${
|
11112
|
-
icon:
|
11113
|
-
label:
|
11114
|
-
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)
|
11115
11111
|
}, null, 8, ["icon", "label", "onClick"]))), 128))
|
11116
11112
|
])
|
11117
11113
|
]),
|
11118
11114
|
V("div", Pc, [
|
11119
|
-
(d(!0),
|
11120
|
-
key:
|
11115
|
+
(d(!0), j(z, null, W(s.value, (b) => (d(), w(xn, {
|
11116
|
+
key: b.name
|
11121
11117
|
}, [
|
11122
|
-
f.value?.name ===
|
11118
|
+
f.value?.name === b.name ? (d(), w(n(Fe), {
|
11123
11119
|
key: 0,
|
11124
11120
|
ref_for: !0,
|
11125
11121
|
ref_key: "widgetsRef",
|
11126
11122
|
ref: o,
|
11127
11123
|
region: c.region,
|
11128
|
-
widget:
|
11129
|
-
}, null, 8, ["region", "widget"])) :
|
11124
|
+
widget: b
|
11125
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11130
11126
|
], 1024))), 128))
|
11131
11127
|
])
|
11132
11128
|
]));
|
@@ -11151,22 +11147,22 @@ const $e = E({
|
|
11151
11147
|
), s = C(() => o?.filter((c) => !c.closable || c.checked)), r = C(() => o.map((c) => ({
|
11152
11148
|
...c,
|
11153
11149
|
disabled: !c.closable
|
11154
|
-
}))), u = S(s.value[0]?.name), f = C(() => o.find((
|
11155
|
-
const
|
11156
|
-
|
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);
|
11157
11153
|
}, v = (c) => {
|
11158
|
-
const
|
11159
|
-
|
11160
|
-
}, g = (c,
|
11161
|
-
const
|
11162
|
-
|
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);
|
11163
11159
|
}, _ = (c) => {
|
11164
11160
|
if (a.value) {
|
11165
|
-
const
|
11166
|
-
if (!
|
11161
|
+
const h = a.value[0]?.widgetRef;
|
11162
|
+
if (!h) return;
|
11167
11163
|
switch (c.name) {
|
11168
11164
|
case "home":
|
11169
|
-
|
11165
|
+
h.reload();
|
11170
11166
|
break;
|
11171
11167
|
}
|
11172
11168
|
}
|
@@ -11176,29 +11172,29 @@ const $e = E({
|
|
11176
11172
|
widgets: l,
|
11177
11173
|
widgetsRef: a,
|
11178
11174
|
openTab: g
|
11179
|
-
}), (c,
|
11175
|
+
}), (c, h) => (d(), w(n(Ct), {
|
11180
11176
|
class: "v-workspace-region",
|
11181
11177
|
items: s.value,
|
11182
11178
|
menus: r.value,
|
11183
11179
|
modelValue: u.value,
|
11184
|
-
"onUpdate:modelValue":
|
11180
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => u.value = b),
|
11185
11181
|
checkable: "",
|
11186
11182
|
onRemove: p,
|
11187
11183
|
onCommand: v,
|
11188
11184
|
onActionClick: _
|
11189
11185
|
}, {
|
11190
11186
|
default: y(() => [
|
11191
|
-
(d(!0),
|
11192
|
-
key:
|
11187
|
+
(d(!0), j(z, null, W(n(l), (b) => (d(), j(z, {
|
11188
|
+
key: b.name
|
11193
11189
|
}, [
|
11194
|
-
u.value ===
|
11190
|
+
u.value === b.name ? (d(), w(n(Fe), {
|
11195
11191
|
key: 0,
|
11196
11192
|
ref_for: !0,
|
11197
11193
|
ref_key: "widgetsRef",
|
11198
11194
|
ref: a,
|
11199
11195
|
region: c.region,
|
11200
|
-
widget: { ...
|
11201
|
-
}, null, 8, ["region", "widget"])) :
|
11196
|
+
widget: { ...b, props: f.value }
|
11197
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11202
11198
|
], 64))), 128))
|
11203
11199
|
]),
|
11204
11200
|
_: 1
|
@@ -11213,10 +11209,10 @@ const $e = E({
|
|
11213
11209
|
setup(i, { expose: t }) {
|
11214
11210
|
const e = i, l = ce(), { current: a } = me(), { selected: o, isSelectBlock: s } = xe(), r = C(
|
11215
11211
|
() => s.value ? ke.Block : ke.Node
|
11216
|
-
), { widgets: u, widgetsRef: f } = ze(e.region, r), p = S(), v = S(!1), g = C(() => u.value.map((
|
11217
|
-
name:
|
11218
|
-
label:
|
11219
|
-
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" ? [
|
11220
11216
|
{
|
11221
11217
|
name: "switch",
|
11222
11218
|
icon: Qs,
|
@@ -11224,11 +11220,11 @@ const $e = E({
|
|
11224
11220
|
}
|
11225
11221
|
] : void 0
|
11226
11222
|
}))), _ = C(() => {
|
11227
|
-
const
|
11228
|
-
return
|
11223
|
+
const b = o.value?.model;
|
11224
|
+
return b ? l.assets.componentMap.get(b.name)?.doc : null;
|
11229
11225
|
});
|
11230
|
-
M(a, (
|
11231
|
-
l.skeleton?.settable(!!
|
11226
|
+
M(a, (b) => {
|
11227
|
+
l.skeleton?.settable(!!b);
|
11232
11228
|
}), M(
|
11233
11229
|
r,
|
11234
11230
|
() => {
|
@@ -11240,18 +11236,18 @@ const $e = E({
|
|
11240
11236
|
});
|
11241
11237
|
const c = () => {
|
11242
11238
|
if (_.value) {
|
11243
|
-
const
|
11244
|
-
|
11239
|
+
const b = l.skeleton?.getRegion("Workspace");
|
11240
|
+
b && b.regionRef.openTab("Docs", {
|
11245
11241
|
url: _.value
|
11246
11242
|
});
|
11247
11243
|
}
|
11248
|
-
},
|
11249
|
-
|
11244
|
+
}, h = (b) => {
|
11245
|
+
b.name === "switch" && (v.value = !v.value);
|
11250
11246
|
};
|
11251
11247
|
return t({
|
11252
11248
|
widgets: u,
|
11253
11249
|
widgetsRef: f
|
11254
|
-
}), (
|
11250
|
+
}), (b, k) => n(a) ? (d(), w(n(q), {
|
11255
11251
|
key: 0,
|
11256
11252
|
class: "v-settings-region",
|
11257
11253
|
fit: "",
|
@@ -11286,10 +11282,10 @@ const $e = E({
|
|
11286
11282
|
}, null, 8, ["icon"])
|
11287
11283
|
]),
|
11288
11284
|
_: 1
|
11289
|
-
})) :
|
11285
|
+
})) : A("", !0)
|
11290
11286
|
]),
|
11291
11287
|
_: 1
|
11292
|
-
})) :
|
11288
|
+
})) : A("", !0),
|
11293
11289
|
n(o) && !n(o).model.locked ? (d(), w(n(q), {
|
11294
11290
|
key: 1,
|
11295
11291
|
grow: "",
|
@@ -11302,10 +11298,10 @@ const $e = E({
|
|
11302
11298
|
"onUpdate:modelValue": k[0] || (k[0] = (x) => p.value = x),
|
11303
11299
|
stretch: "",
|
11304
11300
|
body: { padding: !1 },
|
11305
|
-
onActionClick:
|
11301
|
+
onActionClick: h
|
11306
11302
|
}, {
|
11307
11303
|
default: y(() => [
|
11308
|
-
(d(!0),
|
11304
|
+
(d(!0), j(z, null, W(n(u), (x) => (d(), j(z, {
|
11309
11305
|
key: x.name
|
11310
11306
|
}, [
|
11311
11307
|
p.value === x.name ? (d(), w(n(Fe), {
|
@@ -11313,17 +11309,17 @@ const $e = E({
|
|
11313
11309
|
ref_for: !0,
|
11314
11310
|
ref_key: "widgetsRef",
|
11315
11311
|
ref: f,
|
11316
|
-
region:
|
11312
|
+
region: b.region,
|
11317
11313
|
widget: n(qt)({ props: { isStyleCodeMode: v.value } }, x)
|
11318
|
-
}, null, 8, ["region", "widget"])) :
|
11314
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11319
11315
|
], 64))), 128))
|
11320
11316
|
]),
|
11321
11317
|
_: 1
|
11322
11318
|
}, 8, ["items", "modelValue"])
|
11323
11319
|
]),
|
11324
11320
|
_: 1
|
11325
|
-
})) :
|
11326
|
-
n(o) ?
|
11321
|
+
})) : A("", !0),
|
11322
|
+
n(o) ? A("", !0) : (d(), w(n(ie), {
|
11327
11323
|
key: 2,
|
11328
11324
|
description: "请在左侧画布选中节点"
|
11329
11325
|
})),
|
@@ -11331,10 +11327,10 @@ const $e = E({
|
|
11331
11327
|
key: 3,
|
11332
11328
|
"image-size": 1,
|
11333
11329
|
description: "节点已被锁定, 禁止编辑"
|
11334
|
-
})) :
|
11330
|
+
})) : A("", !0)
|
11335
11331
|
]),
|
11336
11332
|
_: 1
|
11337
|
-
})) :
|
11333
|
+
})) : A("", !0);
|
11338
11334
|
}
|
11339
11335
|
}), Bc = { class: "v-status-region" }, Rc = /* @__PURE__ */ E({
|
11340
11336
|
name: "StatusRegion",
|
@@ -11348,8 +11344,8 @@ const $e = E({
|
|
11348
11344
|
return t({
|
11349
11345
|
widgets: l,
|
11350
11346
|
widgetsRef: a
|
11351
|
-
}), (o, s) => (d(),
|
11352
|
-
(d(!0),
|
11347
|
+
}), (o, s) => (d(), j("div", Bc, [
|
11348
|
+
(d(!0), j(z, null, W(n(l), (r) => (d(), w(n(Fe), {
|
11353
11349
|
ref_for: !0,
|
11354
11350
|
ref_key: "widgetsRef",
|
11355
11351
|
ref: a,
|
@@ -11385,7 +11381,7 @@ const $e = E({
|
|
11385
11381
|
"onUpdate:modelValue": f[0] || (f[0] = (p) => r.value = p)
|
11386
11382
|
}, {
|
11387
11383
|
default: y(() => [
|
11388
|
-
(d(!0),
|
11384
|
+
(d(!0), j(z, null, W(n(l), (p) => (d(), w(xn, {
|
11389
11385
|
key: p.name
|
11390
11386
|
}, [
|
11391
11387
|
r.value === p.name ? (d(), w(n(Fe), {
|
@@ -11395,7 +11391,7 @@ const $e = E({
|
|
11395
11391
|
ref: a,
|
11396
11392
|
region: u.region,
|
11397
11393
|
widget: p
|
11398
|
-
}, null, 8, ["region", "widget"])) :
|
11394
|
+
}, null, 8, ["region", "widget"])) : A("", !0)
|
11399
11395
|
], 1024))), 128))
|
11400
11396
|
]),
|
11401
11397
|
_: 1
|
@@ -11429,7 +11425,7 @@ export {
|
|
11429
11425
|
un as MOBILE_SIZE,
|
11430
11426
|
no as MOUSE_EVENT_LIST,
|
11431
11427
|
Kc as MicroApp,
|
11432
|
-
|
11428
|
+
Ae as NAME_REGEX,
|
11433
11429
|
cn as PAD_SIZE,
|
11434
11430
|
G as Panel,
|
11435
11431
|
io as RegionType,
|
@@ -11453,10 +11449,10 @@ export {
|
|
11453
11449
|
al as Viewport,
|
11454
11450
|
ke as WidgetGroup,
|
11455
11451
|
Fe as WidgetWrapper,
|
11456
|
-
|
11452
|
+
Au as builtInDeps,
|
11457
11453
|
Iu as builtInMaterials,
|
11458
11454
|
Zu as builtInSetters,
|
11459
|
-
|
11455
|
+
ju as builtInWidgets,
|
11460
11456
|
He as confirm,
|
11461
11457
|
sc as createSlotsPicker,
|
11462
11458
|
Yu as defaultSetter,
|