@vtj/designer 0.8.29 → 0.8.31
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 +564 -554
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/types/components/shared/item.d.ts +1 -0
- package/types/utils.d.ts +1 -0
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as S, unref as t, ref as k, reactive as Le, watchEffect as Dn, watch as G, toValue as ot, defineComponent as E, openBlock as u, createElementBlock as j, toDisplayString as z, createVNode as
|
|
1
|
+
import { computed as S, unref as t, ref as k, reactive as Le, watchEffect as Dn, watch as G, toValue as ot, defineComponent as E, openBlock as u, createElementBlock as j, toDisplayString as z, createVNode as m, withCtx as f, createElementVNode as C, createBlock as b, createCommentVNode as A, createTextVNode as H, Fragment as T, renderList as F, normalizeClass as q, resolveDynamicComponent as Nt, createSlots as Pn, withDirectives as je, vShow as Pe, renderSlot as we, withModifiers as Oe, toRaw as In, isRef as rt, mergeProps as re, normalizeStyle as He, nextTick as _e, defineAsyncComponent as Bn, h as Re, inject as ht, provide as $n, normalizeProps as Jt, guardReactiveProps as Wt, withKeys as Ge, onMounted as Mt, onUnmounted as Lt, createApp as Ut, shallowRef as it, shallowReactive as Rn, triggerRef as Ve, markRaw as At, KeepAlive as qt } from "vue";
|
|
2
2
|
import { ElNotification as Ke, ElMessageBox as bt, ElMessage as Ye, ElButton as ae, ElDivider as yt, ElRadioGroup as Ht, ElRadioButton as Xe, ElButtonGroup as Tn, ElDropdown as Gt, ElDropdownMenu as Xt, ElDropdownItem as ut, ElInput as be, ElEmpty as se, ElTooltip as Qt, ElTag as zn, ElSwitch as Kt, ElTree as _t, ElAlert as Yt, ElRow as ct, ElCol as dt, ElCollapse as Fn, ElCollapseItem as On, ElDrawer as Zt, ElForm as ge, ElFormItem as en, ElBreadcrumb as Nn, ElBreadcrumbItem as Jn, ElLoading as Wn, ElSelect as Mn, ElOption as Ln, ElInputNumber as Un, ElColorPicker as qn, ElUpload as Hn, ElSlider as Gn, ElConfigProvider as Xn, ElContainer as jt, ElHeader as Qn, ElAside as Et, ElMain as Kn, ElFooter as Yn } from "element-plus";
|
|
3
3
|
import Zn from "element-plus/es/locale/lang/zh-cn";
|
|
4
4
|
import { XIcon as ke, XDialog as Ie, XDialogForm as xe, XField as I, XPanel as Ze, XAction as he, XTabs as wt, XContainer as W, XForm as kt, XAttachment as el, XActionBar as tl, XInputUnit as tn, vResizable as Dt, createDialog as nl } from "@vtj/ui";
|
|
@@ -12,10 +12,10 @@ import ms from "mockjs";
|
|
|
12
12
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
13
13
|
* @name @vtj/designer
|
|
14
14
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
15
|
-
* @version 0.8.
|
|
15
|
+
* @version 0.8.31
|
|
16
16
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
17
17
|
*/
|
|
18
|
-
const vs = "0.8.
|
|
18
|
+
const vs = "0.8.31", Rt = {
|
|
19
19
|
width: 390,
|
|
20
20
|
height: 844
|
|
21
21
|
}, Tt = {
|
|
@@ -106,7 +106,7 @@ function ks() {
|
|
|
106
106
|
},
|
|
107
107
|
{ immediate: !0 }
|
|
108
108
|
);
|
|
109
|
-
const
|
|
109
|
+
const p = S(() => {
|
|
110
110
|
const g = i.value.toLowerCase();
|
|
111
111
|
return !g || !e ? [] : e.filter((y) => y.name.toLowerCase().includes(g) || y.label?.toLowerCase().includes(g));
|
|
112
112
|
});
|
|
@@ -120,7 +120,7 @@ function ks() {
|
|
|
120
120
|
currentTab: r,
|
|
121
121
|
currentGroup: v,
|
|
122
122
|
searchKey: i,
|
|
123
|
-
searchResult:
|
|
123
|
+
searchResult: p
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function ie() {
|
|
@@ -205,43 +205,43 @@ function ye() {
|
|
|
205
205
|
}
|
|
206
206
|
function Vs(c, e) {
|
|
207
207
|
const n = k(""), { selected: l, isSelectBlock: a } = ye(), o = S(() => l.value?.model.id), s = S(() => {
|
|
208
|
-
const i = ot(c), v = ot(e),
|
|
208
|
+
const i = ot(c), v = ot(e), p = [];
|
|
209
209
|
if (!i)
|
|
210
|
-
return
|
|
210
|
+
return p;
|
|
211
211
|
const g = v?.__contextRefs[o.value || ""], h = v === g || a.value ? [] : Object.keys(g?.context || {}).filter((R) => !["context", "ref"].includes(R)).map((R) => `this.context.${R}`);
|
|
212
|
-
h.length &&
|
|
212
|
+
h.length && p.push({ title: "上下文", items: h });
|
|
213
213
|
const d = i.inject.map((R) => `this.${R.name}`);
|
|
214
|
-
d.length &&
|
|
214
|
+
d.length && p.push({ title: "注入", items: d });
|
|
215
215
|
const _ = i.props.map(
|
|
216
216
|
(R) => typeof R == "string" ? `this.props.${R}` : `this.props.${R.name}`
|
|
217
217
|
);
|
|
218
|
-
_.length &&
|
|
218
|
+
_.length && p.push({ title: "属性", items: _ });
|
|
219
219
|
const w = Object.keys(i.state).map((R) => `this.state.${R}`);
|
|
220
|
-
w.length &&
|
|
220
|
+
w.length && p.push({ title: "状态", items: w });
|
|
221
221
|
const x = Object.keys(i.computed).map(
|
|
222
222
|
(R) => `this.${R}.value`
|
|
223
223
|
);
|
|
224
|
-
x.length &&
|
|
224
|
+
x.length && p.push({ title: "计算属性", items: x });
|
|
225
225
|
const V = Object.keys(i.methods).map((R) => `this.${R}`);
|
|
226
|
-
V.length &&
|
|
226
|
+
V.length && p.push({ title: "方法", items: V });
|
|
227
227
|
const B = Object.keys(i.dataSources).map(
|
|
228
228
|
(R) => `this.${R}`
|
|
229
229
|
);
|
|
230
|
-
B.length &&
|
|
230
|
+
B.length && p.push({ title: "数据源", items: B });
|
|
231
231
|
const O = Object.keys(v?.$refs || {}).map(
|
|
232
232
|
(R) => `this.$refs.${R}`
|
|
233
233
|
);
|
|
234
|
-
return O.length &&
|
|
234
|
+
return O.length && p.push({ title: "refs", items: O }), p;
|
|
235
235
|
}), r = S(() => {
|
|
236
236
|
if (!n.value)
|
|
237
237
|
return s.value;
|
|
238
238
|
const i = n.value.toLowerCase(), v = [];
|
|
239
|
-
return s.value.forEach((
|
|
240
|
-
const g =
|
|
239
|
+
return s.value.forEach((p) => {
|
|
240
|
+
const g = p.items.filter(
|
|
241
241
|
(y) => y.toLowerCase().includes(i)
|
|
242
242
|
);
|
|
243
243
|
g.length && v.push({
|
|
244
|
-
title:
|
|
244
|
+
title: p.title,
|
|
245
245
|
items: g
|
|
246
246
|
});
|
|
247
247
|
}), v;
|
|
@@ -357,6 +357,9 @@ function oe(c, e, n = !1) {
|
|
|
357
357
|
}
|
|
358
358
|
return l;
|
|
359
359
|
}
|
|
360
|
+
function js(c) {
|
|
361
|
+
return Object.keys(c).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(c))).filter((e) => !["constructor"].includes(e));
|
|
362
|
+
}
|
|
360
363
|
function kn() {
|
|
361
364
|
const c = ce(), e = S(
|
|
362
365
|
() => c.simulator.designer.value
|
|
@@ -387,7 +390,7 @@ function Be() {
|
|
|
387
390
|
project: e
|
|
388
391
|
};
|
|
389
392
|
}
|
|
390
|
-
function
|
|
393
|
+
function Es(c) {
|
|
391
394
|
const e = ce(), n = S(() => {
|
|
392
395
|
const r = c.value?.model || null;
|
|
393
396
|
return !r || ee(r) ? null : r;
|
|
@@ -422,10 +425,10 @@ function js(c) {
|
|
|
422
425
|
return [];
|
|
423
426
|
const r = n.value.events || {};
|
|
424
427
|
return (l.value?.events || e.assets.componentMap.get(n.value.name)?.events || []).map((v) => {
|
|
425
|
-
const
|
|
428
|
+
const p = typeof v == "string" ? v : v.name;
|
|
426
429
|
return {
|
|
427
|
-
name:
|
|
428
|
-
event: r[
|
|
430
|
+
name: p,
|
|
431
|
+
event: r[p]
|
|
429
432
|
};
|
|
430
433
|
});
|
|
431
434
|
});
|
|
@@ -439,12 +442,12 @@ const zt = (c, e) => new an({
|
|
|
439
442
|
name: c,
|
|
440
443
|
value: void 0,
|
|
441
444
|
iterator: e
|
|
442
|
-
}),
|
|
445
|
+
}), Ds = (c = "modelValue") => new an({
|
|
443
446
|
name: "vModel",
|
|
444
447
|
value: void 0,
|
|
445
448
|
arg: c
|
|
446
449
|
});
|
|
447
|
-
function
|
|
450
|
+
function Ps(c) {
|
|
448
451
|
if (!c)
|
|
449
452
|
return [];
|
|
450
453
|
const { props: e = [], events: n = [] } = c;
|
|
@@ -454,7 +457,7 @@ function Ds(c) {
|
|
|
454
457
|
}
|
|
455
458
|
return [];
|
|
456
459
|
}
|
|
457
|
-
function
|
|
460
|
+
function Is(c) {
|
|
458
461
|
const e = ce(), n = S(() => {
|
|
459
462
|
const d = c.value?.model || null;
|
|
460
463
|
return ee(d) ? null : d;
|
|
@@ -462,10 +465,10 @@ function Ps(c) {
|
|
|
462
465
|
if (!n.value)
|
|
463
466
|
return [];
|
|
464
467
|
const d = e.assets.componentMap.get(n.value.name || "");
|
|
465
|
-
return (d ?
|
|
468
|
+
return (d ? Ps(d) : []).map((w) => (n.value?.directives || []).find(
|
|
466
469
|
(x) => x.name === "vModel" && x.arg == w.name
|
|
467
|
-
) ||
|
|
468
|
-
}), o = l("vIf"), s = l("vShow"), r = l("vBind"), i = l("vFor"), v = a(),
|
|
470
|
+
) || Ds(w.name));
|
|
471
|
+
}), o = l("vIf"), s = l("vShow"), r = l("vBind"), i = l("vFor"), v = a(), p = {
|
|
469
472
|
vIf: o,
|
|
470
473
|
vShow: s,
|
|
471
474
|
vBind: r,
|
|
@@ -480,7 +483,7 @@ function Ps(c) {
|
|
|
480
483
|
vFor: i,
|
|
481
484
|
vModels: v,
|
|
482
485
|
onValueChange: (d, _) => {
|
|
483
|
-
const w =
|
|
486
|
+
const w = p[d];
|
|
484
487
|
n.value && (_ ? (w.value.value = _, n.value.setDirective(w.value)) : (w.value.value = void 0, n.value.removeDirective(w.value)));
|
|
485
488
|
},
|
|
486
489
|
onForChange: (d, _) => {
|
|
@@ -503,7 +506,7 @@ function Ps(c) {
|
|
|
503
506
|
}
|
|
504
507
|
};
|
|
505
508
|
}
|
|
506
|
-
function
|
|
509
|
+
function Bs() {
|
|
507
510
|
const { engine: c, project: e } = Be(), n = S(() => e.value?.apis || []), l = S(() => e.value?.meta || []);
|
|
508
511
|
return {
|
|
509
512
|
engine: c,
|
|
@@ -512,7 +515,7 @@ function Is() {
|
|
|
512
515
|
meta: l
|
|
513
516
|
};
|
|
514
517
|
}
|
|
515
|
-
const
|
|
518
|
+
const $s = "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", Rs = ["title", "src"], Ts = { key: 1 }, zs = /* @__PURE__ */ E({
|
|
516
519
|
name: "LogoWidget",
|
|
517
520
|
inheritAttrs: !1,
|
|
518
521
|
__name: "index",
|
|
@@ -522,7 +525,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
522
525
|
link: {}
|
|
523
526
|
},
|
|
524
527
|
setup(c) {
|
|
525
|
-
const { engine: e } = ie(), n = c, l = S(() => n.icon || e.project.value?.config?.logo ||
|
|
528
|
+
const { engine: e } = ie(), n = c, l = S(() => n.icon || e.project.value?.config?.logo || $s), a = () => {
|
|
526
529
|
n.link && (location.href = n.link);
|
|
527
530
|
};
|
|
528
531
|
return (o, s) => (u(), j("div", {
|
|
@@ -534,16 +537,16 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
534
537
|
title: n.text,
|
|
535
538
|
class: "v-logo-widget__icon",
|
|
536
539
|
src: l.value
|
|
537
|
-
}, null, 8,
|
|
540
|
+
}, null, 8, Rs)) : (u(), j("span", Ts, z(n.text), 1))
|
|
538
541
|
]));
|
|
539
542
|
}
|
|
540
|
-
}),
|
|
543
|
+
}), Fs = { class: "v-empty-widget" }, Os = /* @__PURE__ */ E({
|
|
541
544
|
name: "EmptyWidget",
|
|
542
545
|
__name: "index",
|
|
543
546
|
setup(c) {
|
|
544
|
-
return (e, n) => (u(), j("div",
|
|
547
|
+
return (e, n) => (u(), j("div", Fs, "EmptyWidget"));
|
|
545
548
|
}
|
|
546
|
-
}),
|
|
549
|
+
}), Ns = { class: "v-switcher-widget" }, Js = { key: 1 }, Ws = /* @__PURE__ */ E({
|
|
547
550
|
name: "SwitcherWidget",
|
|
548
551
|
inheritAttrs: !1,
|
|
549
552
|
__name: "index",
|
|
@@ -552,26 +555,26 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
552
555
|
const n = e, { engine: l } = ie(), a = S(() => l.project.value?.config?.title || l.project.value?.name), o = S(() => l.project.value?.currentFile?.title), s = () => {
|
|
553
556
|
n("click", l.project.value);
|
|
554
557
|
};
|
|
555
|
-
return (r, i) => (u(), j("div",
|
|
556
|
-
|
|
558
|
+
return (r, i) => (u(), j("div", Ns, [
|
|
559
|
+
m(t(ae), {
|
|
557
560
|
size: "small",
|
|
558
561
|
round: "",
|
|
559
562
|
onClick: s
|
|
560
563
|
}, {
|
|
561
564
|
default: f(() => [
|
|
562
|
-
|
|
565
|
+
m(t(Pl), { class: "v-switcher-widget__back" }),
|
|
563
566
|
C("span", null, z(a.value), 1),
|
|
564
567
|
o.value ? (u(), b(t(yt), {
|
|
565
568
|
key: 0,
|
|
566
569
|
direction: "vertical"
|
|
567
570
|
})) : A("", !0),
|
|
568
|
-
o.value ? (u(), j("span",
|
|
571
|
+
o.value ? (u(), j("span", Js, z(o.value), 1)) : A("", !0)
|
|
569
572
|
]),
|
|
570
573
|
_: 1
|
|
571
574
|
})
|
|
572
575
|
]));
|
|
573
576
|
}
|
|
574
|
-
}),
|
|
577
|
+
}), Ms = { class: "v-toolbar-widget" }, Ls = /* @__PURE__ */ E({
|
|
575
578
|
name: "ToolbarWidget",
|
|
576
579
|
inheritAttrs: !1,
|
|
577
580
|
__name: "index",
|
|
@@ -582,37 +585,37 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
582
585
|
const n = c, { forward: l, backward: a, forwardDisabled: o, backwardDisabled: s } = kn(), r = k("pc");
|
|
583
586
|
return e({
|
|
584
587
|
mode: r
|
|
585
|
-
}), (i, v) => (u(), j("div",
|
|
586
|
-
|
|
588
|
+
}), (i, v) => (u(), j("div", Ms, [
|
|
589
|
+
m(t(Ht), {
|
|
587
590
|
size: "small",
|
|
588
591
|
modelValue: r.value,
|
|
589
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
592
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => r.value = p)
|
|
590
593
|
}, {
|
|
591
594
|
default: f(() => [
|
|
592
|
-
|
|
595
|
+
m(t(Xe), {
|
|
593
596
|
label: "pc",
|
|
594
597
|
value: "pc"
|
|
595
598
|
}, {
|
|
596
599
|
default: f(() => [
|
|
597
|
-
|
|
600
|
+
m(t(Il))
|
|
598
601
|
]),
|
|
599
602
|
_: 1
|
|
600
603
|
}),
|
|
601
|
-
|
|
604
|
+
m(t(Xe), {
|
|
602
605
|
label: "mobile",
|
|
603
606
|
value: "mobile"
|
|
604
607
|
}, {
|
|
605
608
|
default: f(() => [
|
|
606
|
-
|
|
609
|
+
m(t(Bl))
|
|
607
610
|
]),
|
|
608
611
|
_: 1
|
|
609
612
|
}),
|
|
610
|
-
|
|
613
|
+
m(t(Xe), {
|
|
611
614
|
label: "pad",
|
|
612
615
|
value: "pad"
|
|
613
616
|
}, {
|
|
614
617
|
default: f(() => [
|
|
615
|
-
|
|
618
|
+
m(t($l))
|
|
616
619
|
]),
|
|
617
620
|
_: 1
|
|
618
621
|
})
|
|
@@ -620,27 +623,27 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
620
623
|
_: 1
|
|
621
624
|
}, 8, ["modelValue"]),
|
|
622
625
|
A("", !0),
|
|
623
|
-
|
|
626
|
+
m(t(Tn), null, {
|
|
624
627
|
default: f(() => [
|
|
625
|
-
|
|
628
|
+
m(t(ae), {
|
|
626
629
|
type: "default",
|
|
627
630
|
size: "small",
|
|
628
631
|
onClick: t(a),
|
|
629
632
|
disabled: t(s) || !!n.preview
|
|
630
633
|
}, {
|
|
631
634
|
default: f(() => [
|
|
632
|
-
|
|
635
|
+
m(t(Rl))
|
|
633
636
|
]),
|
|
634
637
|
_: 1
|
|
635
638
|
}, 8, ["onClick", "disabled"]),
|
|
636
|
-
|
|
639
|
+
m(t(ae), {
|
|
637
640
|
type: "default",
|
|
638
641
|
size: "small",
|
|
639
642
|
onClick: t(l),
|
|
640
643
|
disabled: t(o) || !!n.preview
|
|
641
644
|
}, {
|
|
642
645
|
default: f(() => [
|
|
643
|
-
|
|
646
|
+
m(t(Tl))
|
|
644
647
|
]),
|
|
645
648
|
_: 1
|
|
646
649
|
}, 8, ["onClick", "disabled"])
|
|
@@ -649,7 +652,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
649
652
|
})
|
|
650
653
|
]));
|
|
651
654
|
}
|
|
652
|
-
}),
|
|
655
|
+
}), Us = { class: "v-actions-widget" }, qs = /* @__PURE__ */ C("span", null, "发布", -1), Hs = /* @__PURE__ */ E({
|
|
653
656
|
name: "ActionsWidget",
|
|
654
657
|
inheritAttrs: !1,
|
|
655
658
|
__name: "index",
|
|
@@ -675,47 +678,47 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
675
678
|
const v = e.project.value;
|
|
676
679
|
v && (v.currentFile ? v.publish(v.currentFile) : de("请先打开文件", "warning"));
|
|
677
680
|
}, i = (v) => {
|
|
678
|
-
const
|
|
679
|
-
|
|
681
|
+
const p = e.project.value;
|
|
682
|
+
p && (v === "current" ? r() : p.publish());
|
|
680
683
|
};
|
|
681
|
-
return (v,
|
|
684
|
+
return (v, p) => (u(), j("div", Us, [
|
|
682
685
|
A("", !0),
|
|
683
686
|
A("", !0),
|
|
684
|
-
|
|
687
|
+
m(t(ae), {
|
|
685
688
|
onClick: s,
|
|
686
689
|
type: l.value ? "warning" : "default",
|
|
687
690
|
size: "small",
|
|
688
691
|
title: "预览"
|
|
689
692
|
}, {
|
|
690
693
|
default: f(() => [
|
|
691
|
-
|
|
694
|
+
m(t(zl))
|
|
692
695
|
]),
|
|
693
696
|
_: 1
|
|
694
697
|
}, 8, ["type"]),
|
|
695
|
-
|
|
698
|
+
m(t(ae), {
|
|
696
699
|
onClick: a,
|
|
697
700
|
type: "default",
|
|
698
701
|
size: "small",
|
|
699
702
|
title: "刷新"
|
|
700
703
|
}, {
|
|
701
704
|
default: f(() => [
|
|
702
|
-
|
|
705
|
+
m(t(Fl))
|
|
703
706
|
]),
|
|
704
707
|
_: 1
|
|
705
708
|
}),
|
|
706
|
-
|
|
709
|
+
m(t(ae), {
|
|
707
710
|
type: "default",
|
|
708
711
|
size: "small",
|
|
709
712
|
title: "页面设置",
|
|
710
713
|
onClick: o
|
|
711
714
|
}, {
|
|
712
715
|
default: f(() => [
|
|
713
|
-
|
|
716
|
+
m(t(rn))
|
|
714
717
|
]),
|
|
715
718
|
_: 1
|
|
716
719
|
}),
|
|
717
|
-
|
|
718
|
-
|
|
720
|
+
m(t(yt), { direction: "vertical" }),
|
|
721
|
+
m(t(Gt), {
|
|
719
722
|
"split-button": "",
|
|
720
723
|
type: "primary",
|
|
721
724
|
size: "small",
|
|
@@ -723,15 +726,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
723
726
|
onCommand: i
|
|
724
727
|
}, {
|
|
725
728
|
dropdown: f(() => [
|
|
726
|
-
|
|
729
|
+
m(t(Xt), null, {
|
|
727
730
|
default: f(() => [
|
|
728
|
-
|
|
731
|
+
m(t(ut), { command: "current" }, {
|
|
729
732
|
default: f(() => [
|
|
730
733
|
H("发布页面")
|
|
731
734
|
]),
|
|
732
735
|
_: 1
|
|
733
736
|
}),
|
|
734
|
-
|
|
737
|
+
m(t(ut), { command: "project" }, {
|
|
735
738
|
default: f(() => [
|
|
736
739
|
H("整站发布")
|
|
737
740
|
]),
|
|
@@ -742,13 +745,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
742
745
|
})
|
|
743
746
|
]),
|
|
744
747
|
default: f(() => [
|
|
745
|
-
|
|
748
|
+
qs
|
|
746
749
|
]),
|
|
747
750
|
_: 1
|
|
748
751
|
})
|
|
749
752
|
]));
|
|
750
753
|
}
|
|
751
|
-
}),
|
|
754
|
+
}), Gs = { class: "v-icon-setter" }, Xs = { class: "v-icon-setter__content" }, Qs = { class: "v-icon-setter__list" }, Sn = /* @__PURE__ */ E({
|
|
752
755
|
name: "IconSetter",
|
|
753
756
|
__name: "icon",
|
|
754
757
|
props: {
|
|
@@ -764,15 +767,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
764
767
|
return s.value ? h.filter((d) => d[0].toLowerCase().includes(s.value)) : h;
|
|
765
768
|
}), v = (h) => {
|
|
766
769
|
o.value = h;
|
|
767
|
-
},
|
|
770
|
+
}, p = () => {
|
|
768
771
|
l("change", o.value), l("update:modelValue", o.value), a.value = !1;
|
|
769
772
|
}, g = () => {
|
|
770
773
|
o.value = "", l("change", ""), l("update:modelValue", ""), a.value = !1;
|
|
771
774
|
}, y = () => {
|
|
772
775
|
a.value = !0;
|
|
773
776
|
};
|
|
774
|
-
return (h, d) => (u(), j("div",
|
|
775
|
-
|
|
777
|
+
return (h, d) => (u(), j("div", Gs, [
|
|
778
|
+
m(t(be), {
|
|
776
779
|
size: n.size,
|
|
777
780
|
readonly: "",
|
|
778
781
|
placeholder: "请选择图标",
|
|
@@ -781,7 +784,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
781
784
|
onFocus: y
|
|
782
785
|
}, {
|
|
783
786
|
prepend: f(() => [
|
|
784
|
-
|
|
787
|
+
m(t(ke), { icon: r.value }, null, 8, ["icon"])
|
|
785
788
|
]),
|
|
786
789
|
_: 1
|
|
787
790
|
}, 8, ["size", "model-value", "suffix-icon"]),
|
|
@@ -795,10 +798,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
795
798
|
clear: "",
|
|
796
799
|
modelValue: a.value,
|
|
797
800
|
"onUpdate:modelValue": d[1] || (d[1] = (_) => a.value = _),
|
|
798
|
-
onSubmit:
|
|
801
|
+
onSubmit: p
|
|
799
802
|
}, {
|
|
800
803
|
extra: f(() => [
|
|
801
|
-
|
|
804
|
+
m(t(ae), {
|
|
802
805
|
size: "default",
|
|
803
806
|
type: "warning",
|
|
804
807
|
onClick: g
|
|
@@ -810,8 +813,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
810
813
|
})
|
|
811
814
|
]),
|
|
812
815
|
default: f(() => [
|
|
813
|
-
C("div",
|
|
814
|
-
|
|
816
|
+
C("div", Xs, [
|
|
817
|
+
m(t(be), {
|
|
815
818
|
size: n.size,
|
|
816
819
|
"prefix-icon": t(cn),
|
|
817
820
|
clearable: "",
|
|
@@ -819,7 +822,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
819
822
|
"onUpdate:modelValue": d[0] || (d[0] = (_) => s.value = _),
|
|
820
823
|
placeholder: "请输入查询关键字"
|
|
821
824
|
}, null, 8, ["size", "prefix-icon", "modelValue"]),
|
|
822
|
-
C("div",
|
|
825
|
+
C("div", Qs, [
|
|
823
826
|
(u(!0), j(T, null, F(i.value, (_) => (u(), b(t(ke), {
|
|
824
827
|
icon: _[1],
|
|
825
828
|
onClick: (w) => v(_[0]),
|
|
@@ -833,7 +836,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
833
836
|
}, 8, ["modelValue"])) : A("", !0)
|
|
834
837
|
]));
|
|
835
838
|
}
|
|
836
|
-
}),
|
|
839
|
+
}), Ks = /* @__PURE__ */ E({
|
|
837
840
|
name: "PageForm",
|
|
838
841
|
__name: "form",
|
|
839
842
|
props: {
|
|
@@ -855,7 +858,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
855
858
|
], r = (v) => {
|
|
856
859
|
o.value && (o.value.name = ln(v));
|
|
857
860
|
}, i = async (v) => n.value?.existPageName(v.name, [v.id]) ? (ne("页面名称已存在,请更换"), !1) : (e.item ? n.value?.updatePage(v) : n.value?.createPage(v, e.parentId), !0);
|
|
858
|
-
return (v,
|
|
861
|
+
return (v, p) => (u(), b(t(xe), {
|
|
859
862
|
title: l.value,
|
|
860
863
|
width: "800px",
|
|
861
864
|
height: "500px",
|
|
@@ -864,7 +867,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
864
867
|
"submit-method": i
|
|
865
868
|
}, {
|
|
866
869
|
default: f(() => [
|
|
867
|
-
|
|
870
|
+
m(t(I), {
|
|
868
871
|
name: "dir",
|
|
869
872
|
label: "类型",
|
|
870
873
|
editor: "radio",
|
|
@@ -873,44 +876,44 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
873
876
|
disabled: !!e.item,
|
|
874
877
|
required: ""
|
|
875
878
|
}, null, 8, ["disabled"]),
|
|
876
|
-
|
|
879
|
+
m(t(I), {
|
|
877
880
|
name: "name",
|
|
878
881
|
label: "名称",
|
|
879
882
|
required: "",
|
|
880
883
|
onChange: r,
|
|
881
884
|
rules: { pattern: t(Ce), message: "名称格式不正确" }
|
|
882
885
|
}, null, 8, ["rules"]),
|
|
883
|
-
|
|
886
|
+
m(t(I), {
|
|
884
887
|
name: "title",
|
|
885
888
|
label: "标题",
|
|
886
889
|
required: ""
|
|
887
890
|
}),
|
|
888
|
-
|
|
891
|
+
m(t(I), {
|
|
889
892
|
name: "icon",
|
|
890
893
|
label: "菜单图标",
|
|
891
894
|
editor: "none"
|
|
892
895
|
}, {
|
|
893
896
|
editor: f(() => [
|
|
894
|
-
|
|
897
|
+
m(Sn, {
|
|
895
898
|
modelValue: o.value.icon,
|
|
896
|
-
"onUpdate:modelValue":
|
|
899
|
+
"onUpdate:modelValue": p[0] || (p[0] = (g) => o.value.icon = g),
|
|
897
900
|
size: "default"
|
|
898
901
|
}, null, 8, ["modelValue"])
|
|
899
902
|
]),
|
|
900
903
|
_: 1
|
|
901
904
|
}),
|
|
902
|
-
|
|
905
|
+
m(t(I), {
|
|
903
906
|
visible: { dir: !1 },
|
|
904
907
|
name: "mask",
|
|
905
908
|
label: "包含母版",
|
|
906
909
|
editor: "switch"
|
|
907
910
|
}),
|
|
908
|
-
|
|
911
|
+
m(t(I), {
|
|
909
912
|
name: "hidden",
|
|
910
913
|
label: "隐藏菜单",
|
|
911
914
|
editor: "switch"
|
|
912
915
|
}),
|
|
913
|
-
|
|
916
|
+
m(t(I), {
|
|
914
917
|
visible: { dir: !1 },
|
|
915
918
|
disabled: !!e.item,
|
|
916
919
|
inline: "",
|
|
@@ -983,7 +986,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
983
986
|
l("back");
|
|
984
987
|
}, v = () => {
|
|
985
988
|
l("remove");
|
|
986
|
-
},
|
|
989
|
+
}, p = () => {
|
|
987
990
|
l("save");
|
|
988
991
|
}, g = S(() => n.header ? {
|
|
989
992
|
content: n.title,
|
|
@@ -1037,7 +1040,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1037
1040
|
icon: t(Wl),
|
|
1038
1041
|
background: "hover",
|
|
1039
1042
|
title: "保存",
|
|
1040
|
-
onClick:
|
|
1043
|
+
onClick: p
|
|
1041
1044
|
}, null, 8, ["size", "icon"])) : A("", !0),
|
|
1042
1045
|
n.collapsable ? je((u(), b(t(he), {
|
|
1043
1046
|
key: 4,
|
|
@@ -1077,7 +1080,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1077
1080
|
} : void 0
|
|
1078
1081
|
]), 1032, ["class", "header"]));
|
|
1079
1082
|
}
|
|
1080
|
-
}),
|
|
1083
|
+
}), Ys = { class: "v-tabs__header" }, Zs = {
|
|
1081
1084
|
key: 0,
|
|
1082
1085
|
class: "v-tabs__actions"
|
|
1083
1086
|
}, nt = /* @__PURE__ */ E({
|
|
@@ -1121,18 +1124,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1121
1124
|
radius: !1
|
|
1122
1125
|
}, {
|
|
1123
1126
|
header: f(() => [
|
|
1124
|
-
C("div",
|
|
1125
|
-
|
|
1127
|
+
C("div", Ys, [
|
|
1128
|
+
m(t(wt), {
|
|
1126
1129
|
class: "v-tabs__tabs",
|
|
1127
1130
|
items: n.items,
|
|
1128
1131
|
type: "card",
|
|
1129
1132
|
modelValue: a.value,
|
|
1130
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
1133
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => a.value = p),
|
|
1131
1134
|
onTabRemove: s,
|
|
1132
1135
|
onActionClick: r,
|
|
1133
1136
|
stretch: n.stretch
|
|
1134
1137
|
}, null, 8, ["items", "modelValue", "stretch"]),
|
|
1135
|
-
n.menus && n.menus.length ? (u(), j("div",
|
|
1138
|
+
n.menus && n.menus.length ? (u(), j("div", Zs, [
|
|
1136
1139
|
n.menus && n.menus.length ? (u(), b(t(he), {
|
|
1137
1140
|
key: 0,
|
|
1138
1141
|
mode: "icon",
|
|
@@ -1146,16 +1149,16 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1146
1149
|
menus: n.menus,
|
|
1147
1150
|
onCommand: o
|
|
1148
1151
|
}, {
|
|
1149
|
-
item: f(({ item:
|
|
1152
|
+
item: f(({ item: p }) => [
|
|
1150
1153
|
C("span", null, [
|
|
1151
1154
|
n.checkable ? (u(), b(t(pn), {
|
|
1152
1155
|
key: 0,
|
|
1153
1156
|
class: q({
|
|
1154
1157
|
"v-tabs__checked": !0,
|
|
1155
|
-
"is-checked":
|
|
1158
|
+
"is-checked": p.checked
|
|
1156
1159
|
})
|
|
1157
1160
|
}, null, 8, ["class"])) : A("", !0),
|
|
1158
|
-
H(" " + z(
|
|
1161
|
+
H(" " + z(p.label), 1)
|
|
1159
1162
|
])
|
|
1160
1163
|
]),
|
|
1161
1164
|
_: 1
|
|
@@ -1169,13 +1172,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1169
1172
|
_: 3
|
|
1170
1173
|
}));
|
|
1171
1174
|
}
|
|
1172
|
-
}),
|
|
1175
|
+
}), eo = {
|
|
1173
1176
|
key: 2,
|
|
1174
1177
|
class: "v-item__index"
|
|
1175
|
-
},
|
|
1176
|
-
key: 3,
|
|
1177
|
-
class: "v-item__subtitle"
|
|
1178
|
-
}, ue = /* @__PURE__ */ E({
|
|
1178
|
+
}, to = { class: "v-item__content" }, ue = /* @__PURE__ */ E({
|
|
1179
1179
|
name: "VItem",
|
|
1180
1180
|
__name: "item",
|
|
1181
1181
|
props: {
|
|
@@ -1185,6 +1185,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1185
1185
|
tagType: {},
|
|
1186
1186
|
title: {},
|
|
1187
1187
|
subtitle: {},
|
|
1188
|
+
subtitleCls: {},
|
|
1188
1189
|
actions: { default: () => [] },
|
|
1189
1190
|
background: { type: Boolean },
|
|
1190
1191
|
border: { type: Boolean },
|
|
@@ -1233,10 +1234,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1233
1234
|
label: "主页",
|
|
1234
1235
|
icon: ql
|
|
1235
1236
|
}
|
|
1236
|
-
}, l = c, a = e, o = k(!!l.modelValue), s = S(() => l.actions.map((
|
|
1237
|
-
const g = n[
|
|
1237
|
+
}, l = c, a = e, o = k(!!l.modelValue), s = S(() => l.actions.map((p) => {
|
|
1238
|
+
const g = n[p];
|
|
1238
1239
|
return {
|
|
1239
|
-
name:
|
|
1240
|
+
name: p,
|
|
1240
1241
|
...g
|
|
1241
1242
|
};
|
|
1242
1243
|
})), r = S(() => ({
|
|
@@ -1247,40 +1248,40 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1247
1248
|
"is-small": l.small
|
|
1248
1249
|
})), i = () => {
|
|
1249
1250
|
a("click", l.modelValue);
|
|
1250
|
-
}, v = async (
|
|
1251
|
-
|
|
1251
|
+
}, v = async (p) => {
|
|
1252
|
+
p === "remove" ? await bt.confirm("确定删除吗?", "提示", {
|
|
1252
1253
|
type: "warning"
|
|
1253
1254
|
}).catch(() => !1) && a("action", {
|
|
1254
|
-
name:
|
|
1255
|
+
name: p,
|
|
1255
1256
|
modelValue: l.modelValue
|
|
1256
1257
|
}) : a("action", {
|
|
1257
|
-
name:
|
|
1258
|
+
name: p,
|
|
1258
1259
|
modelValue: l.modelValue
|
|
1259
1260
|
});
|
|
1260
1261
|
};
|
|
1261
|
-
return G(o, (
|
|
1262
|
-
a("update:modelValue",
|
|
1262
|
+
return G(o, (p) => {
|
|
1263
|
+
a("update:modelValue", p), a("switch", p);
|
|
1263
1264
|
}), G(
|
|
1264
1265
|
() => l.modelValue,
|
|
1265
|
-
(
|
|
1266
|
-
o.value = !!
|
|
1266
|
+
(p) => {
|
|
1267
|
+
o.value = !!p;
|
|
1267
1268
|
}
|
|
1268
|
-
), (
|
|
1269
|
+
), (p, g) => (u(), b(t(W), {
|
|
1269
1270
|
class: q(["v-item", r.value]),
|
|
1270
1271
|
justify: "space-between",
|
|
1271
1272
|
align: "center",
|
|
1272
1273
|
onClick: i
|
|
1273
1274
|
}, {
|
|
1274
1275
|
default: f(() => [
|
|
1275
|
-
|
|
1276
|
+
m(t(W), {
|
|
1276
1277
|
class: "v-item__title",
|
|
1277
1278
|
align: "center"
|
|
1278
1279
|
}, {
|
|
1279
1280
|
default: f(() => [
|
|
1280
|
-
we(
|
|
1281
|
-
|
|
1281
|
+
we(p.$slots, "default", {}, () => [
|
|
1282
|
+
p.icon ? (u(), b(t(ke), {
|
|
1282
1283
|
key: 0,
|
|
1283
|
-
icon:
|
|
1284
|
+
icon: p.icon
|
|
1284
1285
|
}, null, 8, ["icon"])) : A("", !0),
|
|
1285
1286
|
l.tag ? (u(), b(t(zn), {
|
|
1286
1287
|
key: 1,
|
|
@@ -1293,14 +1294,17 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1293
1294
|
]),
|
|
1294
1295
|
_: 1
|
|
1295
1296
|
}, 8, ["type"])) : A("", !0),
|
|
1296
|
-
|
|
1297
|
-
C("span",
|
|
1298
|
-
|
|
1297
|
+
p.index !== void 0 ? (u(), j("span", eo, " # " + z(p.index), 1)) : A("", !0),
|
|
1298
|
+
C("span", to, z(p.title), 1),
|
|
1299
|
+
p.subtitle ? (u(), j("span", {
|
|
1300
|
+
key: 3,
|
|
1301
|
+
class: q(["v-item__subtitle", l.subtitleCls])
|
|
1302
|
+
}, z(p.subtitle), 3)) : A("", !0)
|
|
1299
1303
|
])
|
|
1300
1304
|
]),
|
|
1301
1305
|
_: 3
|
|
1302
1306
|
}),
|
|
1303
|
-
|
|
1307
|
+
m(t(W), {
|
|
1304
1308
|
class: "v-item__actions",
|
|
1305
1309
|
onClick: g[1] || (g[1] = Oe(() => {
|
|
1306
1310
|
}, ["stop"]))
|
|
@@ -1323,7 +1327,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1323
1327
|
class: "v-item__switch",
|
|
1324
1328
|
size: "small"
|
|
1325
1329
|
}, null, 8, ["modelValue"])) : A("", !0),
|
|
1326
|
-
we(
|
|
1330
|
+
we(p.$slots, "status")
|
|
1327
1331
|
]),
|
|
1328
1332
|
_: 3
|
|
1329
1333
|
})
|
|
@@ -1359,13 +1363,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1359
1363
|
}, i = () => {
|
|
1360
1364
|
l("dragend", n);
|
|
1361
1365
|
};
|
|
1362
|
-
return (v,
|
|
1366
|
+
return (v, p) => (u(), j("div", {
|
|
1363
1367
|
class: q(["v-box", s.value]),
|
|
1364
1368
|
draggable: v.draggable,
|
|
1365
1369
|
onDragstart: r,
|
|
1366
1370
|
onDragend: i
|
|
1367
1371
|
}, [
|
|
1368
|
-
|
|
1372
|
+
m(t(W), {
|
|
1369
1373
|
direction: "column",
|
|
1370
1374
|
justify: "center",
|
|
1371
1375
|
align: "center"
|
|
@@ -1383,11 +1387,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1383
1387
|
align: "center"
|
|
1384
1388
|
}, {
|
|
1385
1389
|
default: f(() => [
|
|
1386
|
-
|
|
1390
|
+
m(t(ke), {
|
|
1387
1391
|
icon: t(vn),
|
|
1388
1392
|
onClick: a
|
|
1389
1393
|
}, null, 8, ["icon"]),
|
|
1390
|
-
|
|
1394
|
+
m(t(ke), {
|
|
1391
1395
|
icon: t(tt),
|
|
1392
1396
|
onClick: o
|
|
1393
1397
|
}, null, 8, ["icon"])
|
|
@@ -1407,38 +1411,41 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1407
1411
|
},
|
|
1408
1412
|
emits: ["pick", "copy"],
|
|
1409
1413
|
setup(c, { emit: e }) {
|
|
1410
|
-
const n = c, l = e, a = ["$provider", "$apis", "$components", "context"], o = (
|
|
1411
|
-
const g =
|
|
1414
|
+
const n = c, l = e, a = ["$provider", "$apis", "$components", "context"], o = (p) => {
|
|
1415
|
+
const g = p.value, y = lt(g);
|
|
1412
1416
|
return y === "Object" || y === "Module" ? Object.keys(g || {}).length === 0 : y === "Array" ? g.length === 0 : !0;
|
|
1413
|
-
}, s = (
|
|
1414
|
-
const
|
|
1417
|
+
}, s = (p, g = "this") => typeof p == "object" ? Array.isArray(p) ? p.map((h, d) => {
|
|
1418
|
+
const _ = `[${d}]`;
|
|
1419
|
+
return {
|
|
1420
|
+
label: _,
|
|
1421
|
+
value: h,
|
|
1422
|
+
type: lt(h),
|
|
1423
|
+
path: `${g}${_}`
|
|
1424
|
+
};
|
|
1425
|
+
}) : js(p).map((h) => {
|
|
1426
|
+
const d = p[h];
|
|
1415
1427
|
return {
|
|
1416
|
-
label:
|
|
1417
|
-
value:
|
|
1418
|
-
type: lt(
|
|
1419
|
-
path: `${g}
|
|
1428
|
+
label: h,
|
|
1429
|
+
value: d,
|
|
1430
|
+
type: lt(d),
|
|
1431
|
+
path: `${g}.${h}`
|
|
1420
1432
|
};
|
|
1421
|
-
})
|
|
1422
|
-
label
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
path: `${g}.${y}`
|
|
1426
|
-
})).filter(
|
|
1427
|
-
(y) => !y.label.startsWith("__") && !a.includes(y.label)
|
|
1428
|
-
) : [], r = (m, g) => {
|
|
1429
|
-
if (m.level === 0)
|
|
1433
|
+
}).filter(
|
|
1434
|
+
(h) => !h.label.startsWith("__") && !a.includes(h.label)
|
|
1435
|
+
) : [], r = (p, g) => {
|
|
1436
|
+
if (p.level === 0)
|
|
1430
1437
|
g(s(n.context));
|
|
1431
1438
|
else {
|
|
1432
|
-
const y = In(
|
|
1433
|
-
g(s(y,
|
|
1439
|
+
const y = In(p.data.value);
|
|
1440
|
+
g(s(y, p.data.path));
|
|
1434
1441
|
}
|
|
1435
|
-
}, i = (
|
|
1436
|
-
l("copy",
|
|
1437
|
-
}, v = (
|
|
1438
|
-
l("pick",
|
|
1442
|
+
}, i = (p) => {
|
|
1443
|
+
l("copy", p.path);
|
|
1444
|
+
}, v = (p) => {
|
|
1445
|
+
l("pick", p.path);
|
|
1439
1446
|
};
|
|
1440
|
-
return (
|
|
1441
|
-
|
|
1447
|
+
return (p, g) => (u(), j("div", so, [
|
|
1448
|
+
p.context ? (u(), b(t(_t), {
|
|
1442
1449
|
key: 0,
|
|
1443
1450
|
lazy: "",
|
|
1444
1451
|
load: r,
|
|
@@ -1446,8 +1453,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1446
1453
|
props: { isLeaf: o }
|
|
1447
1454
|
}, {
|
|
1448
1455
|
default: f(({ data: y }) => [
|
|
1449
|
-
|
|
1456
|
+
m(ue, {
|
|
1450
1457
|
title: y.label,
|
|
1458
|
+
subtitle: y.type,
|
|
1459
|
+
"subtitle-cls": y.type,
|
|
1451
1460
|
clickable: "",
|
|
1452
1461
|
onClick: (h) => v(y),
|
|
1453
1462
|
background: "",
|
|
@@ -1455,7 +1464,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1455
1464
|
onAction: (h) => i(y),
|
|
1456
1465
|
grow: "",
|
|
1457
1466
|
small: ""
|
|
1458
|
-
}, null, 8, ["title", "onClick", "onAction"])
|
|
1467
|
+
}, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
|
|
1459
1468
|
]),
|
|
1460
1469
|
_: 1
|
|
1461
1470
|
}, 8, ["props"])) : A("", !0)
|
|
@@ -1491,7 +1500,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1491
1500
|
name: "viewer",
|
|
1492
1501
|
label: "高级"
|
|
1493
1502
|
}
|
|
1494
|
-
], i = k("normal"), v = k(),
|
|
1503
|
+
], i = k("normal"), v = k(), p = async (x) => {
|
|
1495
1504
|
l("submit", x), n.submitMethod ? await n.submitMethod(x) && g() : g();
|
|
1496
1505
|
}, g = () => {
|
|
1497
1506
|
l("update:modelValue", !1), l("close");
|
|
@@ -1520,25 +1529,25 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1520
1529
|
onClose: g
|
|
1521
1530
|
}, {
|
|
1522
1531
|
default: f(() => [
|
|
1523
|
-
|
|
1532
|
+
m(t(W), {
|
|
1524
1533
|
fit: "",
|
|
1525
1534
|
direction: "row",
|
|
1526
1535
|
overflow: "hidden"
|
|
1527
1536
|
}, {
|
|
1528
1537
|
default: f(() => [
|
|
1529
|
-
|
|
1538
|
+
m(t(W), {
|
|
1530
1539
|
width: "30%",
|
|
1531
1540
|
height: "100%"
|
|
1532
1541
|
}, {
|
|
1533
1542
|
default: f(() => [
|
|
1534
|
-
|
|
1543
|
+
m(nt, {
|
|
1535
1544
|
class: "v-binder__tabs",
|
|
1536
1545
|
items: r,
|
|
1537
1546
|
modelValue: i.value,
|
|
1538
1547
|
"onUpdate:modelValue": V[1] || (V[1] = (B) => i.value = B)
|
|
1539
1548
|
}, {
|
|
1540
1549
|
default: f(() => [
|
|
1541
|
-
|
|
1550
|
+
m(t(W), {
|
|
1542
1551
|
class: "v-binder__tab-content",
|
|
1543
1552
|
fit: "",
|
|
1544
1553
|
padding: "",
|
|
@@ -1546,7 +1555,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1546
1555
|
}, {
|
|
1547
1556
|
default: f(() => [
|
|
1548
1557
|
je(C("div", null, [
|
|
1549
|
-
|
|
1558
|
+
m(t(be), {
|
|
1550
1559
|
modelValue: t(o),
|
|
1551
1560
|
"onUpdate:modelValue": V[0] || (V[0] = (B) => rt(o) ? o.value = B : null),
|
|
1552
1561
|
size: "small",
|
|
@@ -1555,7 +1564,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1555
1564
|
placeholder: "筛选可用项"
|
|
1556
1565
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
|
1557
1566
|
(u(!0), j(T, null, F(t(a), (B) => (u(), j("div", null, [
|
|
1558
|
-
|
|
1567
|
+
m(t(yt), { "border-style": "dotted" }, {
|
|
1559
1568
|
default: f(() => [
|
|
1560
1569
|
H(z(B.title), 1)
|
|
1561
1570
|
]),
|
|
@@ -1574,7 +1583,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1574
1583
|
], 512), [
|
|
1575
1584
|
[Pe, i.value === "normal"]
|
|
1576
1585
|
]),
|
|
1577
|
-
je(
|
|
1586
|
+
je(m(oo, {
|
|
1578
1587
|
context: n.context,
|
|
1579
1588
|
onCopy: w,
|
|
1580
1589
|
onPick: _
|
|
@@ -1590,15 +1599,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1590
1599
|
]),
|
|
1591
1600
|
_: 1
|
|
1592
1601
|
}),
|
|
1593
|
-
|
|
1602
|
+
m(t(Ze), {
|
|
1594
1603
|
grow: "",
|
|
1595
1604
|
header: null,
|
|
1596
1605
|
border: !1
|
|
1597
1606
|
}, {
|
|
1598
1607
|
footer: f(() => [
|
|
1599
|
-
|
|
1608
|
+
m(t(W), { justify: "space-between" }, {
|
|
1600
1609
|
default: f(() => [
|
|
1601
|
-
|
|
1610
|
+
m(t(W), null, {
|
|
1602
1611
|
default: f(() => [
|
|
1603
1612
|
x.unbindEnabled ? (u(), b(t(ae), {
|
|
1604
1613
|
key: 0,
|
|
@@ -1614,9 +1623,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1614
1623
|
]),
|
|
1615
1624
|
_: 1
|
|
1616
1625
|
}),
|
|
1617
|
-
|
|
1626
|
+
m(t(W), null, {
|
|
1618
1627
|
default: f(() => [
|
|
1619
|
-
|
|
1628
|
+
m(t(ae), {
|
|
1620
1629
|
type: "default",
|
|
1621
1630
|
size: "default",
|
|
1622
1631
|
onClick: h
|
|
@@ -1626,7 +1635,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1626
1635
|
]),
|
|
1627
1636
|
_: 1
|
|
1628
1637
|
}),
|
|
1629
|
-
|
|
1638
|
+
m(t(ae), {
|
|
1630
1639
|
type: "primary",
|
|
1631
1640
|
size: "default",
|
|
1632
1641
|
onClick: d
|
|
@@ -1644,7 +1653,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1644
1653
|
})
|
|
1645
1654
|
]),
|
|
1646
1655
|
default: f(() => [
|
|
1647
|
-
|
|
1656
|
+
m(t(kt), {
|
|
1648
1657
|
ref_key: "formRef",
|
|
1649
1658
|
ref: v,
|
|
1650
1659
|
class: "v-binder__form",
|
|
@@ -1653,7 +1662,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1653
1662
|
"tooltip-message": !1,
|
|
1654
1663
|
model: n.model,
|
|
1655
1664
|
rules: n.rules,
|
|
1656
|
-
"submit-method":
|
|
1665
|
+
"submit-method": p
|
|
1657
1666
|
}, {
|
|
1658
1667
|
default: f(() => [
|
|
1659
1668
|
we(x.$slots, "default")
|
|
@@ -1692,12 +1701,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1692
1701
|
onSubmit: r
|
|
1693
1702
|
}, i.$attrs), {
|
|
1694
1703
|
default: f(() => [
|
|
1695
|
-
|
|
1704
|
+
m(t(Yt), {
|
|
1696
1705
|
title: "该组件支持多个插槽,请选择放置到其中一个",
|
|
1697
1706
|
type: "warning",
|
|
1698
1707
|
closable: !1
|
|
1699
1708
|
}),
|
|
1700
|
-
|
|
1709
|
+
m(t(W), {
|
|
1701
1710
|
class: "v-slots-picker__content",
|
|
1702
1711
|
justify: "space-around",
|
|
1703
1712
|
alignContent: "flex-start",
|
|
@@ -1705,15 +1714,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1705
1714
|
wrap: "wrap"
|
|
1706
1715
|
}, {
|
|
1707
1716
|
default: f(() => [
|
|
1708
|
-
(u(!0), j(T, null, F(n.slots, (
|
|
1709
|
-
class: q(["v-slots-picker__item", { "is-active":
|
|
1717
|
+
(u(!0), j(T, null, F(n.slots, (p, g) => (u(), b(t(W), {
|
|
1718
|
+
class: q(["v-slots-picker__item", { "is-active": p.name === a.value?.name }]),
|
|
1710
1719
|
grow: "",
|
|
1711
1720
|
flex: !1,
|
|
1712
|
-
onClick: (y) => s(
|
|
1721
|
+
onClick: (y) => s(p)
|
|
1713
1722
|
}, {
|
|
1714
1723
|
default: f(() => [
|
|
1715
1724
|
C("span", ro, "#" + z(g + 1), 1),
|
|
1716
|
-
H(" " + z(
|
|
1725
|
+
H(" " + z(p.name), 1)
|
|
1717
1726
|
]),
|
|
1718
1727
|
_: 2
|
|
1719
1728
|
}, 1032, ["class", "onClick"]))), 256))
|
|
@@ -1780,7 +1789,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1780
1789
|
e.value?.clonePage(w, V);
|
|
1781
1790
|
}
|
|
1782
1791
|
d === "home" && (e.value?.setHomepage(w.id), de("设置主页成功", "success"));
|
|
1783
|
-
},
|
|
1792
|
+
}, p = async (h) => {
|
|
1784
1793
|
h.raw && de("这是源码模式页面,不能低代码设计", "warning"), h.dir || h.raw ? n.project.value?.deactivate() : n.project.value?.active(h);
|
|
1785
1794
|
}, g = (h, d, _) => _ === "inner" ? !!d.data.dir : !0, y = () => {
|
|
1786
1795
|
e.value?.update({
|
|
@@ -1795,7 +1804,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1795
1804
|
onPlus: i
|
|
1796
1805
|
}, {
|
|
1797
1806
|
default: f(() => [
|
|
1798
|
-
|
|
1807
|
+
m(t(_t), {
|
|
1799
1808
|
data: l.value,
|
|
1800
1809
|
"node-key": "id",
|
|
1801
1810
|
"default-expand-all": "",
|
|
@@ -1804,7 +1813,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1804
1813
|
onNodeDrop: y
|
|
1805
1814
|
}, {
|
|
1806
1815
|
default: f(({ data: _, node: w }) => [
|
|
1807
|
-
|
|
1816
|
+
m(t(ue), {
|
|
1808
1817
|
class: "v-pages-widget__item",
|
|
1809
1818
|
icon: t(gt)[_.icon],
|
|
1810
1819
|
title: _.title,
|
|
@@ -1812,7 +1821,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1812
1821
|
"model-value": { data: _, node: w },
|
|
1813
1822
|
actions: _.dir ? ["add", "edit", "remove"] : _.raw ? ["home", "edit", "remove"] : ["home", "copy", "edit", "remove"],
|
|
1814
1823
|
onAction: v,
|
|
1815
|
-
onClick: (x) =>
|
|
1824
|
+
onClick: (x) => p(_),
|
|
1816
1825
|
active: t(a)?.id === _.id,
|
|
1817
1826
|
tag: t(e)?.homepage === _.id ? "主页" : void 0,
|
|
1818
1827
|
"tag-type": "success",
|
|
@@ -1824,7 +1833,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1824
1833
|
]),
|
|
1825
1834
|
_: 1
|
|
1826
1835
|
}, 8, ["data"]),
|
|
1827
|
-
o.value ? (u(), b(
|
|
1836
|
+
o.value ? (u(), b(Ks, {
|
|
1828
1837
|
key: 0,
|
|
1829
1838
|
modelValue: o.value,
|
|
1830
1839
|
"onUpdate:modelValue": d[0] || (d[0] = (_) => o.value = _),
|
|
@@ -1853,13 +1862,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1853
1862
|
return i(B);
|
|
1854
1863
|
}
|
|
1855
1864
|
return null;
|
|
1856
|
-
},
|
|
1857
|
-
|
|
1865
|
+
}, p = (V) => V ? (V || "").split(",").map((O) => ({ url: O })) : [], g = k(
|
|
1866
|
+
p(n.modelValue)
|
|
1858
1867
|
), y = S(() => Array.isArray(g.value) ? g.value.map((V) => V.url).join(",") : g.value ? g.value.url : "");
|
|
1859
1868
|
G(
|
|
1860
1869
|
() => n.modelValue,
|
|
1861
1870
|
(V) => {
|
|
1862
|
-
g.value =
|
|
1871
|
+
g.value = p(V);
|
|
1863
1872
|
}
|
|
1864
1873
|
), G(r, async (V) => {
|
|
1865
1874
|
if (V) {
|
|
@@ -1885,7 +1894,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1885
1894
|
V.name && o.value?.id && a.service.removeStaticFile(V.name, o.value?.id);
|
|
1886
1895
|
};
|
|
1887
1896
|
return (V, B) => (u(), j("div", co, [
|
|
1888
|
-
|
|
1897
|
+
m(t(be), re({
|
|
1889
1898
|
readonly: "",
|
|
1890
1899
|
onFocus: w,
|
|
1891
1900
|
"model-value": n.modelValue,
|
|
@@ -1903,7 +1912,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1903
1912
|
onSubmit: d
|
|
1904
1913
|
}, {
|
|
1905
1914
|
extra: f(() => [
|
|
1906
|
-
|
|
1915
|
+
m(t(ae), {
|
|
1907
1916
|
type: "warning",
|
|
1908
1917
|
size: "default",
|
|
1909
1918
|
onClick: _
|
|
@@ -1915,7 +1924,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1915
1924
|
})
|
|
1916
1925
|
]),
|
|
1917
1926
|
default: f(() => [
|
|
1918
|
-
|
|
1927
|
+
m(t(el), re({
|
|
1919
1928
|
size: "small",
|
|
1920
1929
|
"list-type": "list",
|
|
1921
1930
|
selectable: !0,
|
|
@@ -1962,7 +1971,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
1962
1971
|
label: "插件",
|
|
1963
1972
|
type: "danger"
|
|
1964
1973
|
}
|
|
1965
|
-
}, s = k(void 0), { current: r } = ie(), i = k(!1), v = S(() => s.value?.id ? "编辑区块" : "新增区块"),
|
|
1974
|
+
}, s = k(void 0), { current: r } = ie(), i = k(!1), v = S(() => s.value?.id ? "编辑区块" : "新增区块"), p = S(() => `(共 ${n.value.length} 个)`), g = () => ({
|
|
1966
1975
|
fromType: "Schema",
|
|
1967
1976
|
name: "",
|
|
1968
1977
|
title: "",
|
|
@@ -2008,12 +2017,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2008
2017
|
return (P, $) => (u(), b(t(U), {
|
|
2009
2018
|
class: "v-blocks-widget",
|
|
2010
2019
|
title: "区块管理",
|
|
2011
|
-
subtitle:
|
|
2020
|
+
subtitle: p.value,
|
|
2012
2021
|
plus: "",
|
|
2013
2022
|
onPlus: _
|
|
2014
2023
|
}, {
|
|
2015
2024
|
default: f(() => [
|
|
2016
|
-
|
|
2025
|
+
m(t(ct), {
|
|
2017
2026
|
wrap: "wrap",
|
|
2018
2027
|
gutter: 5
|
|
2019
2028
|
}, {
|
|
@@ -2023,7 +2032,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2023
2032
|
span: t(e)
|
|
2024
2033
|
}, {
|
|
2025
2034
|
default: f(() => [
|
|
2026
|
-
|
|
2035
|
+
m(t(ft), {
|
|
2027
2036
|
name: D.name,
|
|
2028
2037
|
title: D.title,
|
|
2029
2038
|
active: t(r)?.id === D.id,
|
|
@@ -2044,7 +2053,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2044
2053
|
_: 1
|
|
2045
2054
|
}),
|
|
2046
2055
|
t(n).length ? A("", !0) : (u(), b(t(se), { key: 0 })),
|
|
2047
|
-
|
|
2056
|
+
m(t(xe), {
|
|
2048
2057
|
modelValue: i.value,
|
|
2049
2058
|
"onUpdate:modelValue": $[0] || ($[0] = (D) => i.value = D),
|
|
2050
2059
|
title: v.value,
|
|
@@ -2055,7 +2064,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2055
2064
|
"submit-method": d
|
|
2056
2065
|
}, {
|
|
2057
2066
|
default: f(() => [
|
|
2058
|
-
|
|
2067
|
+
m(t(I), {
|
|
2059
2068
|
name: "fromType",
|
|
2060
2069
|
label: "类型",
|
|
2061
2070
|
required: "",
|
|
@@ -2063,7 +2072,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2063
2072
|
disabled: !!s.value?.id,
|
|
2064
2073
|
options: a
|
|
2065
2074
|
}, null, 8, ["disabled"]),
|
|
2066
|
-
|
|
2075
|
+
m(t(I), {
|
|
2067
2076
|
name: "name",
|
|
2068
2077
|
label: "名称",
|
|
2069
2078
|
required: "",
|
|
@@ -2074,7 +2083,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2074
2083
|
},
|
|
2075
2084
|
onChange: V
|
|
2076
2085
|
}, null, 8, ["rules"]),
|
|
2077
|
-
|
|
2086
|
+
m(t(I), {
|
|
2078
2087
|
name: "title",
|
|
2079
2088
|
label: "标题",
|
|
2080
2089
|
required: ""
|
|
@@ -2110,7 +2119,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2110
2119
|
const { span: e, engine: n } = wn(), { tabs: l, currentTab: a, currentGroup: o, model: s, searchKey: r, searchResult: i } = ks(), v = (g) => {
|
|
2111
2120
|
const y = n.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
2112
2121
|
y && y.setDragging(g);
|
|
2113
|
-
},
|
|
2122
|
+
}, p = () => {
|
|
2114
2123
|
const g = n.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
|
2115
2124
|
g && g.setDragging(null);
|
|
2116
2125
|
};
|
|
@@ -2121,7 +2130,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2121
2130
|
}, {
|
|
2122
2131
|
default: f(() => [
|
|
2123
2132
|
C("div", mo, [
|
|
2124
|
-
|
|
2133
|
+
m(t(be), {
|
|
2125
2134
|
modelValue: t(r),
|
|
2126
2135
|
"onUpdate:modelValue": y[0] || (y[0] = (h) => rt(r) ? r.value = h : null),
|
|
2127
2136
|
placeholder: "搜索组件",
|
|
@@ -2129,13 +2138,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2129
2138
|
size: "small"
|
|
2130
2139
|
}, {
|
|
2131
2140
|
prefix: f(() => [
|
|
2132
|
-
|
|
2141
|
+
m(t(Gl))
|
|
2133
2142
|
]),
|
|
2134
2143
|
_: 1
|
|
2135
2144
|
}, 8, ["modelValue"])
|
|
2136
2145
|
]),
|
|
2137
2146
|
t(r) ? (u(), j("div", vo, [
|
|
2138
|
-
|
|
2147
|
+
m(t(ct), {
|
|
2139
2148
|
wrap: "wrap",
|
|
2140
2149
|
gutter: 5
|
|
2141
2150
|
}, {
|
|
@@ -2145,12 +2154,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2145
2154
|
key: h.name
|
|
2146
2155
|
}, {
|
|
2147
2156
|
default: f(() => [
|
|
2148
|
-
|
|
2157
|
+
m(t(ft), {
|
|
2149
2158
|
name: h.name,
|
|
2150
2159
|
title: h.label || h.name,
|
|
2151
2160
|
draggable: "",
|
|
2152
2161
|
onDragstart: (d) => v(h),
|
|
2153
|
-
onDragend:
|
|
2162
|
+
onDragend: p
|
|
2154
2163
|
}, null, 8, ["name", "title", "onDragstart"])
|
|
2155
2164
|
]),
|
|
2156
2165
|
_: 2
|
|
@@ -2190,12 +2199,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2190
2199
|
key: d.name
|
|
2191
2200
|
}, {
|
|
2192
2201
|
default: f(() => [
|
|
2193
|
-
|
|
2202
|
+
m(t(ft), {
|
|
2194
2203
|
name: d.name,
|
|
2195
2204
|
title: d.label || d.name,
|
|
2196
2205
|
draggable: "",
|
|
2197
2206
|
onDragstart: (_) => v(d),
|
|
2198
|
-
onDragend:
|
|
2207
|
+
onDragend: p
|
|
2199
2208
|
}, null, 8, ["name", "title", "onDragstart"])
|
|
2200
2209
|
]),
|
|
2201
2210
|
_: 2
|
|
@@ -2272,7 +2281,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2272
2281
|
children: i(D)
|
|
2273
2282
|
}
|
|
2274
2283
|
];
|
|
2275
|
-
},
|
|
2284
|
+
}, p = async () => {
|
|
2276
2285
|
o.value = v(), l.value?.model && (await _e(), n.value?.setSelected(l.value.model));
|
|
2277
2286
|
}, g = S(() => l.value?.model.id), y = (P) => {
|
|
2278
2287
|
const $ = P.data;
|
|
@@ -2313,7 +2322,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2313
2322
|
M,
|
|
2314
2323
|
L
|
|
2315
2324
|
)) {
|
|
2316
|
-
n.value?.setDropping(null),
|
|
2325
|
+
n.value?.setDropping(null), p(), Ye.warning({
|
|
2317
2326
|
message: `${X.model.name}不能放置到该位置`
|
|
2318
2327
|
}), n.value?.setDragging(null);
|
|
2319
2328
|
return;
|
|
@@ -2325,7 +2334,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2325
2334
|
const Fe = X.model;
|
|
2326
2335
|
Fe.slot = $e, a.value?.move(Fe, M, L);
|
|
2327
2336
|
} else
|
|
2328
|
-
|
|
2337
|
+
p();
|
|
2329
2338
|
n.value?.setDropping(null), n.value?.setDragging(null), e.simulator.refresh();
|
|
2330
2339
|
}, w = (P) => {
|
|
2331
2340
|
if (P.type === "slot") {
|
|
@@ -2369,7 +2378,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2369
2378
|
break;
|
|
2370
2379
|
}
|
|
2371
2380
|
};
|
|
2372
|
-
return G(e.changed,
|
|
2381
|
+
return G(e.changed, p, { immediate: !0 }), (P, $) => (u(), b(t(U), {
|
|
2373
2382
|
class: "v-outline-widget",
|
|
2374
2383
|
title: "大纲树"
|
|
2375
2384
|
}, {
|
|
@@ -2392,7 +2401,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2392
2401
|
onNodeDragEnd: B
|
|
2393
2402
|
}, {
|
|
2394
2403
|
default: f(({ data: D, node: X }) => [
|
|
2395
|
-
|
|
2404
|
+
m(t(ue), {
|
|
2396
2405
|
class: q(["v-outline-widget__item", {
|
|
2397
2406
|
"is-locked": D.model.locked,
|
|
2398
2407
|
"is-invisible": D.model.invisible,
|
|
@@ -2441,11 +2450,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2441
2450
|
key: 0,
|
|
2442
2451
|
"image-size": 50
|
|
2443
2452
|
})) : A("", !0),
|
|
2444
|
-
t(e) ? (u(!0), j(T, { key: 1 }, F(t(e).items, (v,
|
|
2445
|
-
index:
|
|
2453
|
+
t(e) ? (u(!0), j(T, { key: 1 }, F(t(e).items, (v, p) => (u(), b(t(ue), {
|
|
2454
|
+
index: p + 1,
|
|
2446
2455
|
title: v.label,
|
|
2447
2456
|
"model-value": v,
|
|
2448
|
-
active:
|
|
2457
|
+
active: p == t(e).index,
|
|
2449
2458
|
small: "",
|
|
2450
2459
|
background: "",
|
|
2451
2460
|
actions: ["remove"],
|
|
@@ -2464,25 +2473,25 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2464
2473
|
value: n.toLowerCase()
|
|
2465
2474
|
}));
|
|
2466
2475
|
return (n, l) => (u(), j("div", null, [
|
|
2467
|
-
|
|
2476
|
+
m(t(I), {
|
|
2468
2477
|
name: "method",
|
|
2469
2478
|
label: "请求类型",
|
|
2470
2479
|
required: "",
|
|
2471
2480
|
editor: "radio",
|
|
2472
2481
|
options: t(e)
|
|
2473
2482
|
}, null, 8, ["options"]),
|
|
2474
|
-
|
|
2483
|
+
m(t(I), {
|
|
2475
2484
|
name: "name",
|
|
2476
2485
|
label: "接口名称",
|
|
2477
2486
|
required: "",
|
|
2478
2487
|
rules: { pattern: t(Ce), message: "名称格式不正确" }
|
|
2479
2488
|
}, null, 8, ["rules"]),
|
|
2480
|
-
|
|
2489
|
+
m(t(I), {
|
|
2481
2490
|
name: "label",
|
|
2482
2491
|
label: "备注说明",
|
|
2483
2492
|
required: ""
|
|
2484
2493
|
}),
|
|
2485
|
-
|
|
2494
|
+
m(t(I), {
|
|
2486
2495
|
name: "url",
|
|
2487
2496
|
label: "接口URL",
|
|
2488
2497
|
required: ""
|
|
@@ -2519,33 +2528,33 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2519
2528
|
}
|
|
2520
2529
|
], n = ht("currentModel", null);
|
|
2521
2530
|
return (l, a) => (u(), j("div", null, [
|
|
2522
|
-
|
|
2531
|
+
m(t(W), { justify: "space-between" }, {
|
|
2523
2532
|
default: f(() => [
|
|
2524
|
-
|
|
2533
|
+
m(t(I), {
|
|
2525
2534
|
name: "settings.loading",
|
|
2526
2535
|
size: "small",
|
|
2527
2536
|
label: "加载提示",
|
|
2528
2537
|
editor: "switch"
|
|
2529
2538
|
}),
|
|
2530
|
-
|
|
2539
|
+
m(t(I), {
|
|
2531
2540
|
size: "small",
|
|
2532
2541
|
name: "settings.failMessage",
|
|
2533
2542
|
label: "失败提示",
|
|
2534
2543
|
editor: "switch"
|
|
2535
2544
|
}),
|
|
2536
|
-
|
|
2545
|
+
m(t(I), {
|
|
2537
2546
|
size: "small",
|
|
2538
2547
|
name: "settings.validSuccess",
|
|
2539
2548
|
label: "校验成功",
|
|
2540
2549
|
editor: "switch"
|
|
2541
2550
|
}),
|
|
2542
|
-
|
|
2551
|
+
m(t(I), {
|
|
2543
2552
|
size: "small",
|
|
2544
2553
|
name: "settings.originResponse",
|
|
2545
2554
|
label: "原始响应",
|
|
2546
2555
|
editor: "switch"
|
|
2547
2556
|
}),
|
|
2548
|
-
|
|
2557
|
+
m(t(I), {
|
|
2549
2558
|
size: "small",
|
|
2550
2559
|
name: "settings.injectHeaders",
|
|
2551
2560
|
label: "注入请求头",
|
|
@@ -2554,7 +2563,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2554
2563
|
]),
|
|
2555
2564
|
_: 1
|
|
2556
2565
|
}),
|
|
2557
|
-
|
|
2566
|
+
m(t(I), {
|
|
2558
2567
|
size: "small",
|
|
2559
2568
|
name: "settings.type",
|
|
2560
2569
|
label: "发送数据类型",
|
|
@@ -2562,14 +2571,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2562
2571
|
options: e,
|
|
2563
2572
|
props: { button: !0 }
|
|
2564
2573
|
}),
|
|
2565
|
-
|
|
2574
|
+
m(t(I), {
|
|
2566
2575
|
size: "small",
|
|
2567
2576
|
name: "headers.value",
|
|
2568
2577
|
label: "请求头配置",
|
|
2569
2578
|
tip: "支持 JSExpression 或 JSFunction"
|
|
2570
2579
|
}, {
|
|
2571
2580
|
editor: f(() => [
|
|
2572
|
-
|
|
2581
|
+
m(t(le), {
|
|
2573
2582
|
dark: "",
|
|
2574
2583
|
height: "260px",
|
|
2575
2584
|
modelValue: t(n).headers.value,
|
|
@@ -2584,23 +2593,23 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2584
2593
|
__name: "jsonp-options",
|
|
2585
2594
|
setup(c) {
|
|
2586
2595
|
return (e, n) => (u(), j("div", null, [
|
|
2587
|
-
|
|
2596
|
+
m(t(I), {
|
|
2588
2597
|
name: "jsonpOptions.jsonpCallback",
|
|
2589
2598
|
size: "small",
|
|
2590
2599
|
label: "jsonpCallback"
|
|
2591
2600
|
}),
|
|
2592
|
-
|
|
2601
|
+
m(t(I), {
|
|
2593
2602
|
name: "jsonpOptions.jsonpCallbackFunction",
|
|
2594
2603
|
size: "small",
|
|
2595
2604
|
label: "jsonpCallbackFunction"
|
|
2596
2605
|
}),
|
|
2597
|
-
|
|
2606
|
+
m(t(I), {
|
|
2598
2607
|
name: "jsonpOptions.timeout",
|
|
2599
2608
|
size: "small",
|
|
2600
2609
|
label: "timeout",
|
|
2601
2610
|
editor: "number"
|
|
2602
2611
|
}),
|
|
2603
|
-
|
|
2612
|
+
m(t(I), {
|
|
2604
2613
|
name: "jsonpOptions.crossorigin",
|
|
2605
2614
|
size: "small",
|
|
2606
2615
|
label: "crossorigin",
|
|
@@ -2622,17 +2631,17 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2622
2631
|
closable: !1,
|
|
2623
2632
|
style: { "margin-bottom": "20px" }
|
|
2624
2633
|
})),
|
|
2625
|
-
|
|
2634
|
+
m(t(I), {
|
|
2626
2635
|
size: "small",
|
|
2627
2636
|
name: "mock",
|
|
2628
2637
|
label: "开启模拟数据",
|
|
2629
2638
|
disabled: !l.value.mock,
|
|
2630
2639
|
editor: "switch"
|
|
2631
2640
|
}, null, 8, ["disabled"]),
|
|
2632
|
-
|
|
2641
|
+
m(t(W), { justify: "space-between" }, {
|
|
2633
2642
|
default: f(() => [
|
|
2634
2643
|
ko,
|
|
2635
|
-
|
|
2644
|
+
m(t(he), {
|
|
2636
2645
|
icon: t(hn),
|
|
2637
2646
|
mode: "text",
|
|
2638
2647
|
label: "帮助",
|
|
@@ -2641,13 +2650,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2641
2650
|
]),
|
|
2642
2651
|
_: 1
|
|
2643
2652
|
}),
|
|
2644
|
-
|
|
2653
|
+
m(t(I), {
|
|
2645
2654
|
size: "small",
|
|
2646
2655
|
name: "mockTemplate.value",
|
|
2647
2656
|
label: " "
|
|
2648
2657
|
}, {
|
|
2649
2658
|
editor: f(() => [
|
|
2650
|
-
|
|
2659
|
+
m(t(le), {
|
|
2651
2660
|
dark: "",
|
|
2652
2661
|
height: l.value.mock ? "330px" : "280px",
|
|
2653
2662
|
lang: "typescript",
|
|
@@ -2683,7 +2692,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2683
2692
|
}
|
|
2684
2693
|
];
|
|
2685
2694
|
$n("currentModel", s);
|
|
2686
|
-
const
|
|
2695
|
+
const p = S(() => s.value?.method === "jsonp");
|
|
2687
2696
|
G(
|
|
2688
2697
|
() => e.model,
|
|
2689
2698
|
(_) => {
|
|
@@ -2727,14 +2736,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2727
2736
|
height: "600px"
|
|
2728
2737
|
}, {
|
|
2729
2738
|
default: f(() => [
|
|
2730
|
-
|
|
2739
|
+
m(t(W), { fit: "" }, {
|
|
2731
2740
|
default: f(() => [
|
|
2732
|
-
|
|
2741
|
+
m(t(W), {
|
|
2733
2742
|
width: "100px",
|
|
2734
2743
|
shrink: !1
|
|
2735
2744
|
}, {
|
|
2736
2745
|
default: f(() => [
|
|
2737
|
-
|
|
2746
|
+
m(t(wt), {
|
|
2738
2747
|
modelValue: l.value,
|
|
2739
2748
|
"onUpdate:modelValue": w[0] || (w[0] = (x) => l.value = x),
|
|
2740
2749
|
items: v,
|
|
@@ -2745,7 +2754,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2745
2754
|
]),
|
|
2746
2755
|
_: 1
|
|
2747
2756
|
}),
|
|
2748
|
-
|
|
2757
|
+
m(t(Ze), {
|
|
2749
2758
|
header: null,
|
|
2750
2759
|
border: !1,
|
|
2751
2760
|
overflow: "auto",
|
|
@@ -2754,7 +2763,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2754
2763
|
fit: ""
|
|
2755
2764
|
}, {
|
|
2756
2765
|
footer: f(() => [
|
|
2757
|
-
|
|
2766
|
+
m(t(W), { justify: "space-between" }, {
|
|
2758
2767
|
default: f(() => [
|
|
2759
2768
|
C("div", null, [
|
|
2760
2769
|
l.value === "mock" ? (u(), b(t(ae), {
|
|
@@ -2770,13 +2779,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2770
2779
|
}, 8, ["disabled"])) : A("", !0)
|
|
2771
2780
|
]),
|
|
2772
2781
|
C("div", null, [
|
|
2773
|
-
|
|
2782
|
+
m(t(ae), { onClick: g }, {
|
|
2774
2783
|
default: f(() => [
|
|
2775
2784
|
H("取消")
|
|
2776
2785
|
]),
|
|
2777
2786
|
_: 1
|
|
2778
2787
|
}),
|
|
2779
|
-
|
|
2788
|
+
m(t(ae), {
|
|
2780
2789
|
type: "primary",
|
|
2781
2790
|
onClick: y
|
|
2782
2791
|
}, {
|
|
@@ -2791,7 +2800,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2791
2800
|
})
|
|
2792
2801
|
]),
|
|
2793
2802
|
default: f(() => [
|
|
2794
|
-
|
|
2803
|
+
m(t(kt), {
|
|
2795
2804
|
ref_key: "formRef",
|
|
2796
2805
|
ref: o,
|
|
2797
2806
|
footer: !1,
|
|
@@ -2801,11 +2810,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2801
2810
|
submitMethod: h
|
|
2802
2811
|
}, {
|
|
2803
2812
|
default: f(() => [
|
|
2804
|
-
je(
|
|
2813
|
+
je(m(yo, null, null, 512), [
|
|
2805
2814
|
[Pe, l.value === "base"]
|
|
2806
2815
|
]),
|
|
2807
2816
|
l.value === "settings" ? (u(), j("div", xo, [
|
|
2808
|
-
|
|
2817
|
+
p.value ? (u(), b(wo, { key: 0 })) : (u(), b(_o, { key: 1 }))
|
|
2809
2818
|
])) : A("", !0),
|
|
2810
2819
|
l.value === "mock" ? (u(), b(So, { key: 1 })) : A("", !0)
|
|
2811
2820
|
]),
|
|
@@ -2828,7 +2837,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2828
2837
|
size: "80%"
|
|
2829
2838
|
}, {
|
|
2830
2839
|
default: f(() => [
|
|
2831
|
-
|
|
2840
|
+
m(t(le), {
|
|
2832
2841
|
"model-value": i.value,
|
|
2833
2842
|
border: "",
|
|
2834
2843
|
dark: "",
|
|
@@ -2885,8 +2894,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2885
2894
|
patch: "warning",
|
|
2886
2895
|
jsonp: "info"
|
|
2887
2896
|
}, v = (g) => {
|
|
2888
|
-
g.name === "edit" &&
|
|
2889
|
-
},
|
|
2897
|
+
g.name === "edit" && p(g.modelValue), g.name === "remove" && o.value?.removeApi(g.modelValue.name);
|
|
2898
|
+
}, p = (g) => {
|
|
2890
2899
|
l.value = !0, n.value = et(g), e.value = !0;
|
|
2891
2900
|
};
|
|
2892
2901
|
return (g, y) => (u(), b(t(U), {
|
|
@@ -2906,14 +2915,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2906
2915
|
"tag-type": i[h.method || "get"],
|
|
2907
2916
|
background: "",
|
|
2908
2917
|
actions: ["edit", "remove"],
|
|
2909
|
-
onClick: (d) =>
|
|
2918
|
+
onClick: (d) => p(h),
|
|
2910
2919
|
onAction: v
|
|
2911
2920
|
}, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 128)),
|
|
2912
2921
|
a.value.length === 0 ? (u(), b(t(se), {
|
|
2913
2922
|
key: 0,
|
|
2914
2923
|
"image-size": 50
|
|
2915
2924
|
})) : A("", !0),
|
|
2916
|
-
|
|
2925
|
+
m(Co, {
|
|
2917
2926
|
modelValue: e.value,
|
|
2918
2927
|
"onUpdate:modelValue": y[0] || (y[0] = (h) => e.value = h),
|
|
2919
2928
|
model: n.value,
|
|
@@ -2928,7 +2937,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2928
2937
|
__name: "index",
|
|
2929
2938
|
setup(c) {
|
|
2930
2939
|
const { dependencies: e, engine: n } = _n(), l = k(!1), a = k(!1), o = k({}), s = S(() => a.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), r = (d) => d.required || d.official ? [] : ["edit", "remove"], i = (d) => d.official && !d.required, v = async (d) => (d.urls = d.urls.split(`
|
|
2931
|
-
`), n.project.value?.setDeps(d), !0),
|
|
2940
|
+
`), n.project.value?.setDeps(d), !0), p = (d) => {
|
|
2932
2941
|
n.project.value?.setDeps(d);
|
|
2933
2942
|
}, g = () => {
|
|
2934
2943
|
a.value = !1, l.value = !0, o.value = null;
|
|
@@ -2961,11 +2970,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2961
2970
|
switch: i(w),
|
|
2962
2971
|
modelValue: w.enabled,
|
|
2963
2972
|
"onUpdate:modelValue": (x) => w.enabled = x,
|
|
2964
|
-
onSwitch: (x) =>
|
|
2973
|
+
onSwitch: (x) => p(w),
|
|
2965
2974
|
onClick: (x) => y(w),
|
|
2966
2975
|
onAction: (x) => h(w, x)
|
|
2967
2976
|
}, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
|
|
2968
|
-
|
|
2977
|
+
m(t(xe), {
|
|
2969
2978
|
modelValue: l.value,
|
|
2970
2979
|
"onUpdate:modelValue": _[0] || (_[0] = (w) => l.value = w),
|
|
2971
2980
|
width: "600px",
|
|
@@ -2979,23 +2988,23 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
2979
2988
|
}
|
|
2980
2989
|
}, {
|
|
2981
2990
|
default: f(() => [
|
|
2982
|
-
|
|
2991
|
+
m(t(I), {
|
|
2983
2992
|
name: "package",
|
|
2984
2993
|
label: "包名",
|
|
2985
2994
|
required: "",
|
|
2986
2995
|
disabled: !!o.value
|
|
2987
2996
|
}, null, 8, ["disabled"]),
|
|
2988
|
-
|
|
2997
|
+
m(t(I), {
|
|
2989
2998
|
name: "version",
|
|
2990
2999
|
label: "版本",
|
|
2991
3000
|
required: ""
|
|
2992
3001
|
}),
|
|
2993
|
-
|
|
3002
|
+
m(t(I), {
|
|
2994
3003
|
name: "library",
|
|
2995
3004
|
label: "导出名称",
|
|
2996
3005
|
required: ""
|
|
2997
3006
|
}),
|
|
2998
|
-
|
|
3007
|
+
m(t(I), {
|
|
2999
3008
|
name: "urls",
|
|
3000
3009
|
label: "资源文件",
|
|
3001
3010
|
editor: "textarea",
|
|
@@ -3003,11 +3012,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3003
3012
|
tip: "多个资源可以换行输入",
|
|
3004
3013
|
required: ""
|
|
3005
3014
|
}),
|
|
3006
|
-
|
|
3015
|
+
m(t(I), {
|
|
3007
3016
|
name: "assetsUrl",
|
|
3008
3017
|
label: "物料URL"
|
|
3009
3018
|
}),
|
|
3010
|
-
|
|
3019
|
+
m(t(I), {
|
|
3011
3020
|
name: "assetsLibrary",
|
|
3012
3021
|
label: "物料名称"
|
|
3013
3022
|
})
|
|
@@ -3027,11 +3036,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3027
3036
|
},
|
|
3028
3037
|
emits: ["action", "dragstart", "dragend"],
|
|
3029
3038
|
setup(c, { emit: e }) {
|
|
3030
|
-
const n = c, l = e, a = S(() => n.model.name), o = S(() => !ee(n.model) && !n.model.locked), s = S(() => n.path.map((
|
|
3031
|
-
command:
|
|
3032
|
-
label:
|
|
3039
|
+
const n = c, l = e, a = S(() => n.model.name), o = S(() => !ee(n.model) && !n.model.locked), s = S(() => n.path.map((p) => ({
|
|
3040
|
+
command: p,
|
|
3041
|
+
label: p.name,
|
|
3033
3042
|
onMouseenter: () => {
|
|
3034
|
-
l("action", { type: "hover", model:
|
|
3043
|
+
l("action", { type: "hover", model: p });
|
|
3035
3044
|
}
|
|
3036
3045
|
}))), r = [
|
|
3037
3046
|
{
|
|
@@ -3066,15 +3075,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3066
3075
|
icon: tt,
|
|
3067
3076
|
title: "删除"
|
|
3068
3077
|
}
|
|
3069
|
-
], i = (
|
|
3070
|
-
l("action", { type: "selected", model:
|
|
3071
|
-
}, v = async (
|
|
3072
|
-
|
|
3078
|
+
], i = (p) => {
|
|
3079
|
+
l("action", { type: "selected", model: p.command });
|
|
3080
|
+
}, v = async (p) => {
|
|
3081
|
+
p.name === "remove" ? await ze("确定删除?") && l("action", { type: p.name, model: n.model }) : l("action", { type: p.name, model: n.model });
|
|
3073
3082
|
};
|
|
3074
|
-
return (
|
|
3083
|
+
return (p, g) => (u(), j("div", {
|
|
3075
3084
|
class: q(["v-actions", [`is-${n.position}`]])
|
|
3076
3085
|
}, [
|
|
3077
|
-
|
|
3086
|
+
m(t(he), {
|
|
3078
3087
|
mode: "icon",
|
|
3079
3088
|
size: "small",
|
|
3080
3089
|
icon: t(bn),
|
|
@@ -3083,7 +3092,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3083
3092
|
background: "none",
|
|
3084
3093
|
onCommand: i
|
|
3085
3094
|
}, null, 8, ["icon", "label", "menus"]),
|
|
3086
|
-
|
|
3095
|
+
m(t(tl), {
|
|
3087
3096
|
disabled: !o.value,
|
|
3088
3097
|
mode: "icon",
|
|
3089
3098
|
size: "small",
|
|
@@ -3101,7 +3110,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3101
3110
|
inheritAttrs: !1,
|
|
3102
3111
|
__name: "index",
|
|
3103
3112
|
setup(c, { expose: e }) {
|
|
3104
|
-
const n = k(), l = k(), { width: a, height: o } = Me(n), { dependencies: s, engine: r, apis: i, meta: v } = _n(), { current:
|
|
3113
|
+
const n = k(), l = k(), { width: a, height: o } = Me(n), { dependencies: s, engine: r, apis: i, meta: v } = _n(), { current: p, isEmpty: g } = ie(), y = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: d, hover: _, dropping: w, selected: x } = Ss(
|
|
3105
3114
|
l,
|
|
3106
3115
|
s,
|
|
3107
3116
|
i,
|
|
@@ -3109,20 +3118,20 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3109
3118
|
h
|
|
3110
3119
|
), V = (R) => {
|
|
3111
3120
|
const P = R.type, $ = R.model;
|
|
3112
|
-
if (
|
|
3121
|
+
if (p.value)
|
|
3113
3122
|
switch (P) {
|
|
3114
3123
|
case "remove":
|
|
3115
|
-
|
|
3124
|
+
p.value.removeNode($), d.value?.setSelected(null);
|
|
3116
3125
|
break;
|
|
3117
3126
|
case "copy":
|
|
3118
|
-
const D =
|
|
3127
|
+
const D = p.value.cloneNode($);
|
|
3119
3128
|
d.value?.setSelected(D);
|
|
3120
3129
|
break;
|
|
3121
3130
|
case "prev":
|
|
3122
|
-
|
|
3131
|
+
p.value.movePrev($), d.value?.setSelected($);
|
|
3123
3132
|
break;
|
|
3124
3133
|
case "next":
|
|
3125
|
-
|
|
3134
|
+
p.value.moveNext($), d.value?.setSelected($);
|
|
3126
3135
|
break;
|
|
3127
3136
|
case "hover":
|
|
3128
3137
|
d.value?.setHover($);
|
|
@@ -3147,7 +3156,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3147
3156
|
ref: n,
|
|
3148
3157
|
class: "v-designer"
|
|
3149
3158
|
}, [
|
|
3150
|
-
|
|
3159
|
+
m(t(xn), {
|
|
3151
3160
|
mode: y.value,
|
|
3152
3161
|
width: t(a),
|
|
3153
3162
|
height: t(o)
|
|
@@ -3180,7 +3189,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3180
3189
|
class: "v-designer__selected",
|
|
3181
3190
|
style: He(t(x).style)
|
|
3182
3191
|
}, [
|
|
3183
|
-
|
|
3192
|
+
m(jo, {
|
|
3184
3193
|
position: t(x).position,
|
|
3185
3194
|
model: t(x).model,
|
|
3186
3195
|
path: t(x).path,
|
|
@@ -3192,11 +3201,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3192
3201
|
]),
|
|
3193
3202
|
_: 1
|
|
3194
3203
|
}, 8, ["mode", "width", "height"]),
|
|
3195
|
-
t(
|
|
3204
|
+
t(p) ? A("", !0) : (u(), b(t(se), {
|
|
3196
3205
|
key: 0,
|
|
3197
3206
|
description: "请新建或打开文件"
|
|
3198
3207
|
})),
|
|
3199
|
-
t(
|
|
3208
|
+
t(p) && t(g) ? (u(), j("div", Eo, " 您可以拖拽组件放置到这里 ")) : A("", !0)
|
|
3200
3209
|
], 512));
|
|
3201
3210
|
}
|
|
3202
3211
|
}), Ue = /* @__PURE__ */ E({
|
|
@@ -3227,7 +3236,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3227
3236
|
e.remove(d);
|
|
3228
3237
|
break;
|
|
3229
3238
|
}
|
|
3230
|
-
},
|
|
3239
|
+
}, p = (d) => {
|
|
3231
3240
|
o.value.value = d;
|
|
3232
3241
|
}, g = (d) => {
|
|
3233
3242
|
s.value = !0, o.value = {
|
|
@@ -3256,7 +3265,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3256
3265
|
key: 0,
|
|
3257
3266
|
"image-size": 40
|
|
3258
3267
|
})),
|
|
3259
|
-
|
|
3268
|
+
m(t(Ct), {
|
|
3260
3269
|
modelValue: a.value,
|
|
3261
3270
|
"onUpdate:modelValue": _[1] || (_[1] = (w) => a.value = w),
|
|
3262
3271
|
title: r.value,
|
|
@@ -3264,17 +3273,17 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3264
3273
|
model: o.value,
|
|
3265
3274
|
block: d.current,
|
|
3266
3275
|
context: d.context,
|
|
3267
|
-
onPick:
|
|
3276
|
+
onPick: p
|
|
3268
3277
|
}, {
|
|
3269
3278
|
default: f(() => [
|
|
3270
3279
|
we(d.$slots, "fields", Jt(Wt({ model: o.value, isEdit: s.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
|
|
3271
|
-
|
|
3280
|
+
m(t(I), {
|
|
3272
3281
|
name: "name",
|
|
3273
3282
|
label: d.nameLabel,
|
|
3274
3283
|
required: "",
|
|
3275
3284
|
disabled: s.value
|
|
3276
3285
|
}, null, 8, ["label", "disabled"]),
|
|
3277
|
-
|
|
3286
|
+
m(t(I), {
|
|
3278
3287
|
ref_key: "codeFieldRef",
|
|
3279
3288
|
ref: l,
|
|
3280
3289
|
name: "value",
|
|
@@ -3282,7 +3291,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3282
3291
|
required: ""
|
|
3283
3292
|
}, {
|
|
3284
3293
|
editor: f(() => [
|
|
3285
|
-
|
|
3294
|
+
m(t(le), {
|
|
3286
3295
|
ref_key: "editorRef",
|
|
3287
3296
|
ref: n,
|
|
3288
3297
|
dark: "",
|
|
@@ -3316,11 +3325,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3316
3325
|
const { name: i, value: v } = s;
|
|
3317
3326
|
if (!r && e.current?.state[i])
|
|
3318
3327
|
return ne(`名称 ${i} 已存在,请更换!`), !1;
|
|
3319
|
-
const
|
|
3328
|
+
const p = {
|
|
3320
3329
|
type: "JSExpression",
|
|
3321
3330
|
value: v
|
|
3322
3331
|
};
|
|
3323
|
-
return oe(
|
|
3332
|
+
return oe(p, e.context, !0) ? (e.current?.setState(i, p), !0) : !1;
|
|
3324
3333
|
};
|
|
3325
3334
|
return (s, r) => (u(), b(Ue, {
|
|
3326
3335
|
title: "状态数据",
|
|
@@ -3348,11 +3357,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3348
3357
|
const { name: i, value: v } = s;
|
|
3349
3358
|
if (!r && e.current?.computed[i])
|
|
3350
3359
|
return ne(`名称 ${i} 已存在,请更换!`), !1;
|
|
3351
|
-
const
|
|
3360
|
+
const p = {
|
|
3352
3361
|
type: "JSFunction",
|
|
3353
3362
|
value: v
|
|
3354
3363
|
};
|
|
3355
|
-
return oe(
|
|
3364
|
+
return oe(p, e.context, !0) ? (e.current?.setFunction("computed", i, p), !0) : !1;
|
|
3356
3365
|
};
|
|
3357
3366
|
return (s, r) => (u(), b(Ue, {
|
|
3358
3367
|
title: "计算属性",
|
|
@@ -3380,11 +3389,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3380
3389
|
const { name: i, value: v } = s;
|
|
3381
3390
|
if (!r && e.current?.methods[i])
|
|
3382
3391
|
return ne(`名称 ${i} 已存在,请更换!`), !1;
|
|
3383
|
-
const
|
|
3392
|
+
const p = {
|
|
3384
3393
|
type: "JSFunction",
|
|
3385
3394
|
value: v
|
|
3386
3395
|
};
|
|
3387
|
-
return oe(
|
|
3396
|
+
return oe(p, e.context, !0) ? (e.current?.setFunction("methods", i, p), !0) : !1;
|
|
3388
3397
|
};
|
|
3389
3398
|
return (s, r) => (u(), b(Ue, {
|
|
3390
3399
|
title: "组件方法",
|
|
@@ -3412,12 +3421,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3412
3421
|
name: "",
|
|
3413
3422
|
value: "() => { }"
|
|
3414
3423
|
}), o = (r) => e.current?.removeFunction("lifeCycles", r.name), s = async (r, i) => {
|
|
3415
|
-
const { name: v, value:
|
|
3424
|
+
const { name: v, value: p } = r;
|
|
3416
3425
|
if (!i && e.current?.lifeCycles[v])
|
|
3417
3426
|
return ne(`名称 ${v} 已存在,请更换!`), !1;
|
|
3418
3427
|
const g = {
|
|
3419
3428
|
type: "JSFunction",
|
|
3420
|
-
value:
|
|
3429
|
+
value: p
|
|
3421
3430
|
};
|
|
3422
3431
|
return oe(g, e.context, !0) ? (e.current?.setFunction("lifeCycles", v, g), !0) : !1;
|
|
3423
3432
|
};
|
|
@@ -3432,22 +3441,22 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3432
3441
|
remove: o,
|
|
3433
3442
|
submit: s
|
|
3434
3443
|
}, {
|
|
3435
|
-
fields: f(({ model: v, nameLabel:
|
|
3436
|
-
|
|
3444
|
+
fields: f(({ model: v, nameLabel: p, isEdit: g, valueLabel: y }) => [
|
|
3445
|
+
m(t(I), {
|
|
3437
3446
|
name: "name",
|
|
3438
|
-
label:
|
|
3447
|
+
label: p,
|
|
3439
3448
|
editor: "select",
|
|
3440
3449
|
options: n.value,
|
|
3441
3450
|
required: "",
|
|
3442
3451
|
disabled: g
|
|
3443
3452
|
}, null, 8, ["label", "options", "disabled"]),
|
|
3444
|
-
|
|
3453
|
+
m(t(I), {
|
|
3445
3454
|
name: "value",
|
|
3446
3455
|
label: y,
|
|
3447
3456
|
required: ""
|
|
3448
3457
|
}, {
|
|
3449
3458
|
editor: f(() => [
|
|
3450
|
-
|
|
3459
|
+
m(t(le), {
|
|
3451
3460
|
ref: "editorRef",
|
|
3452
3461
|
dark: "",
|
|
3453
3462
|
height: "350px",
|
|
@@ -3481,16 +3490,16 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3481
3490
|
const v = {
|
|
3482
3491
|
type: "JSFunction",
|
|
3483
3492
|
value: r.source
|
|
3484
|
-
},
|
|
3493
|
+
}, p = {
|
|
3485
3494
|
type: "JSFunction",
|
|
3486
3495
|
value: r.handler
|
|
3487
3496
|
};
|
|
3488
|
-
if (!oe(v, e.context, !0) || !oe(
|
|
3497
|
+
if (!oe(v, e.context, !0) || !oe(p, e.context, !0))
|
|
3489
3498
|
return !1;
|
|
3490
3499
|
const g = {
|
|
3491
3500
|
...r,
|
|
3492
3501
|
source: v,
|
|
3493
|
-
handler:
|
|
3502
|
+
handler: p
|
|
3494
3503
|
};
|
|
3495
3504
|
return e.current?.setWatch(g), !0;
|
|
3496
3505
|
};
|
|
@@ -3507,14 +3516,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3507
3516
|
itemTitle: a,
|
|
3508
3517
|
grow: ""
|
|
3509
3518
|
}, {
|
|
3510
|
-
fields: f(({ model: v, nameLabel:
|
|
3511
|
-
|
|
3519
|
+
fields: f(({ model: v, nameLabel: p, valueLabel: g }) => [
|
|
3520
|
+
m(t(I), {
|
|
3512
3521
|
name: "source",
|
|
3513
|
-
label:
|
|
3522
|
+
label: p,
|
|
3514
3523
|
required: ""
|
|
3515
3524
|
}, {
|
|
3516
3525
|
editor: f(() => [
|
|
3517
|
-
|
|
3526
|
+
m(t(le), {
|
|
3518
3527
|
dark: "",
|
|
3519
3528
|
height: "100px",
|
|
3520
3529
|
modelValue: v.source,
|
|
@@ -3523,27 +3532,27 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3523
3532
|
]),
|
|
3524
3533
|
_: 2
|
|
3525
3534
|
}, 1032, ["label"]),
|
|
3526
|
-
|
|
3535
|
+
m(t(I), {
|
|
3527
3536
|
name: "deep",
|
|
3528
3537
|
modelValue: v.deep,
|
|
3529
3538
|
"onUpdate:modelValue": (y) => v.deep = y,
|
|
3530
3539
|
label: "深度监听",
|
|
3531
3540
|
editor: "switch"
|
|
3532
3541
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
3533
|
-
|
|
3542
|
+
m(t(I), {
|
|
3534
3543
|
name: "immediate",
|
|
3535
3544
|
modelValue: v.immediate,
|
|
3536
3545
|
"onUpdate:modelValue": (y) => v.immediate = y,
|
|
3537
3546
|
label: "立即执行",
|
|
3538
3547
|
editor: "switch"
|
|
3539
3548
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
3540
|
-
|
|
3549
|
+
m(t(I), {
|
|
3541
3550
|
name: "handler",
|
|
3542
3551
|
label: g,
|
|
3543
3552
|
required: ""
|
|
3544
3553
|
}, {
|
|
3545
3554
|
editor: f(() => [
|
|
3546
|
-
|
|
3555
|
+
m(t(le), {
|
|
3547
3556
|
dark: "",
|
|
3548
3557
|
height: "130px",
|
|
3549
3558
|
modelValue: v.handler,
|
|
@@ -3566,23 +3575,23 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3566
3575
|
fit: ""
|
|
3567
3576
|
}, {
|
|
3568
3577
|
default: f(() => [
|
|
3569
|
-
|
|
3578
|
+
m(Po, {
|
|
3570
3579
|
current: t(e),
|
|
3571
3580
|
context: t(n)
|
|
3572
3581
|
}, null, 8, ["current", "context"]),
|
|
3573
|
-
|
|
3582
|
+
m(Io, {
|
|
3574
3583
|
current: t(e),
|
|
3575
3584
|
context: t(n)
|
|
3576
3585
|
}, null, 8, ["current", "context"]),
|
|
3577
|
-
|
|
3586
|
+
m(Bo, {
|
|
3578
3587
|
current: t(e),
|
|
3579
3588
|
context: t(n)
|
|
3580
3589
|
}, null, 8, ["current", "context"]),
|
|
3581
|
-
|
|
3590
|
+
m($o, {
|
|
3582
3591
|
current: t(e),
|
|
3583
3592
|
context: t(n)
|
|
3584
3593
|
}, null, 8, ["current", "context"]),
|
|
3585
|
-
|
|
3594
|
+
m(Ro, {
|
|
3586
3595
|
current: t(e),
|
|
3587
3596
|
context: t(n)
|
|
3588
3597
|
}, null, 8, ["current", "context"])
|
|
@@ -3614,7 +3623,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3614
3623
|
fit: !1
|
|
3615
3624
|
}, {
|
|
3616
3625
|
default: f(() => [
|
|
3617
|
-
|
|
3626
|
+
m(t(ge), {
|
|
3618
3627
|
class: "v-properties-widget__form",
|
|
3619
3628
|
size: "small",
|
|
3620
3629
|
"label-width": "90px",
|
|
@@ -3648,7 +3657,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3648
3657
|
componentProps: r,
|
|
3649
3658
|
customProps: i,
|
|
3650
3659
|
addCustom: v,
|
|
3651
|
-
removeCustom:
|
|
3660
|
+
removeCustom: p,
|
|
3652
3661
|
isExist: g
|
|
3653
3662
|
} = As(l), y = k(!1), h = k(), d = () => {
|
|
3654
3663
|
y.value = !0, h.value = {
|
|
@@ -3658,7 +3667,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3658
3667
|
const V = Object.keys(a.value?.props || {});
|
|
3659
3668
|
return !g(x.name) && !V.includes(x.name) ? (v(x.name), !0) : (ne("已存在该属性名称"), !1);
|
|
3660
3669
|
}, w = async (x) => {
|
|
3661
|
-
await ze("确定删除?") &&
|
|
3670
|
+
await ze("确定删除?") && p(x);
|
|
3662
3671
|
};
|
|
3663
3672
|
return (x, V) => t(e) ? (u(), b(t(W), {
|
|
3664
3673
|
key: 0,
|
|
@@ -3699,7 +3708,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3699
3708
|
onPlus: d,
|
|
3700
3709
|
onRemove: w
|
|
3701
3710
|
}, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
|
|
3702
|
-
|
|
3711
|
+
m(t(xe), {
|
|
3703
3712
|
modelValue: y.value,
|
|
3704
3713
|
"onUpdate:modelValue": V[0] || (V[0] = (B) => y.value = B),
|
|
3705
3714
|
title: "新增自定义属性",
|
|
@@ -3710,7 +3719,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3710
3719
|
model: h.value
|
|
3711
3720
|
}, {
|
|
3712
3721
|
default: f(() => [
|
|
3713
|
-
|
|
3722
|
+
m(t(I), {
|
|
3714
3723
|
name: "name",
|
|
3715
3724
|
label: "属性名称",
|
|
3716
3725
|
required: "",
|
|
@@ -3750,13 +3759,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3750
3759
|
onPick: a
|
|
3751
3760
|
}, {
|
|
3752
3761
|
default: f(() => [
|
|
3753
|
-
|
|
3762
|
+
m(t(I), {
|
|
3754
3763
|
name: "value",
|
|
3755
3764
|
label: "绑定内容 [ JSExpression ]",
|
|
3756
3765
|
required: ""
|
|
3757
3766
|
}, {
|
|
3758
3767
|
editor: f(() => [
|
|
3759
|
-
|
|
3768
|
+
m(t(le), {
|
|
3760
3769
|
ref_key: "editorRef",
|
|
3761
3770
|
ref: n,
|
|
3762
3771
|
modelValue: l.value,
|
|
@@ -3804,19 +3813,19 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3804
3813
|
onPick: s
|
|
3805
3814
|
}, {
|
|
3806
3815
|
default: f(() => [
|
|
3807
|
-
|
|
3816
|
+
m(t(I), {
|
|
3808
3817
|
name: "modifiers",
|
|
3809
3818
|
label: "事件修饰符",
|
|
3810
3819
|
editor: "checkbox",
|
|
3811
3820
|
options: t(o)
|
|
3812
3821
|
}, null, 8, ["options"]),
|
|
3813
|
-
|
|
3822
|
+
m(t(I), {
|
|
3814
3823
|
name: "handler.value",
|
|
3815
3824
|
label: "事件处理函数 [ JSFunction ]",
|
|
3816
3825
|
required: ""
|
|
3817
3826
|
}, {
|
|
3818
3827
|
editor: f(() => [
|
|
3819
|
-
|
|
3828
|
+
m(t(le), {
|
|
3820
3829
|
ref_key: "editorRef",
|
|
3821
3830
|
ref: n,
|
|
3822
3831
|
modelValue: a.handler.value,
|
|
@@ -3835,12 +3844,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3835
3844
|
name: "EventsWidget",
|
|
3836
3845
|
__name: "index",
|
|
3837
3846
|
setup(c) {
|
|
3838
|
-
const { current: e, context: n } = ie(), { selected: l } = ye(), { mouseEventList: a, keyboardEventList: o, componentEventList: s } =
|
|
3847
|
+
const { current: e, context: n } = ie(), { selected: l } = ye(), { mouseEventList: a, keyboardEventList: o, componentEventList: s } = Es(l), r = k({
|
|
3839
3848
|
name: "",
|
|
3840
3849
|
event: void 0
|
|
3841
3850
|
}), i = k(!1), v = (d) => {
|
|
3842
3851
|
r.value = et(d), i.value = !0;
|
|
3843
|
-
},
|
|
3852
|
+
}, p = async (d) => {
|
|
3844
3853
|
const _ = {
|
|
3845
3854
|
...d,
|
|
3846
3855
|
modifiers: d.modifiers.reduce((x, V) => (x[V] = !0, x), {})
|
|
@@ -3861,7 +3870,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3861
3870
|
fit: ""
|
|
3862
3871
|
}, {
|
|
3863
3872
|
default: f(() => [
|
|
3864
|
-
|
|
3873
|
+
m(t(U), {
|
|
3865
3874
|
title: "组件事件",
|
|
3866
3875
|
class: "v-sub-panel",
|
|
3867
3876
|
size: "small",
|
|
@@ -3887,7 +3896,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3887
3896
|
]),
|
|
3888
3897
|
_: 1
|
|
3889
3898
|
}),
|
|
3890
|
-
|
|
3899
|
+
m(t(U), {
|
|
3891
3900
|
title: "鼠标事件",
|
|
3892
3901
|
class: "v-sub-panel",
|
|
3893
3902
|
size: "small",
|
|
@@ -3908,7 +3917,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3908
3917
|
]),
|
|
3909
3918
|
_: 1
|
|
3910
3919
|
}),
|
|
3911
|
-
|
|
3920
|
+
m(t(U), {
|
|
3912
3921
|
title: "键盘事件",
|
|
3913
3922
|
class: "v-sub-panel",
|
|
3914
3923
|
size: "small",
|
|
@@ -3938,7 +3947,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3938
3947
|
current: t(e),
|
|
3939
3948
|
name: r.value.name,
|
|
3940
3949
|
event: r.value.event,
|
|
3941
|
-
submitMethod:
|
|
3950
|
+
submitMethod: p,
|
|
3942
3951
|
onUnbind: y
|
|
3943
3952
|
}, null, 8, ["modelValue", "context", "current", "name", "event"])) : A("", !0)
|
|
3944
3953
|
]),
|
|
@@ -3964,7 +3973,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3964
3973
|
onSave: o
|
|
3965
3974
|
}, {
|
|
3966
3975
|
default: f(() => [
|
|
3967
|
-
|
|
3976
|
+
m(t(le), {
|
|
3968
3977
|
ref_key: "editorRef",
|
|
3969
3978
|
ref: n,
|
|
3970
3979
|
"model-value": l.value,
|
|
@@ -3988,30 +3997,30 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3988
3997
|
vFor: r,
|
|
3989
3998
|
vModels: i,
|
|
3990
3999
|
onValueChange: v,
|
|
3991
|
-
onForChange:
|
|
4000
|
+
onForChange: p,
|
|
3992
4001
|
onModelChange: g
|
|
3993
|
-
} =
|
|
4002
|
+
} = Is(l), y = (h) => h.arg ? typeof h.arg == "string" ? h.arg : Je(h.arg, {}) : "modelValue";
|
|
3994
4003
|
return (h, d) => (u(), b(t(W), {
|
|
3995
4004
|
class: "v-directives-widget",
|
|
3996
4005
|
direction: "column",
|
|
3997
4006
|
fit: ""
|
|
3998
4007
|
}, {
|
|
3999
4008
|
default: f(() => [
|
|
4000
|
-
|
|
4009
|
+
m(t(U), {
|
|
4001
4010
|
class: "v-sub-panel",
|
|
4002
4011
|
title: "内置指令",
|
|
4003
4012
|
size: "small",
|
|
4004
4013
|
fit: !1
|
|
4005
4014
|
}, {
|
|
4006
4015
|
default: f(() => [
|
|
4007
|
-
|
|
4016
|
+
m(t(ge), {
|
|
4008
4017
|
size: "small",
|
|
4009
4018
|
"label-width": "80px",
|
|
4010
4019
|
onKeydown: d[0] || (d[0] = Ge(Oe(() => {
|
|
4011
4020
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4012
4021
|
}, {
|
|
4013
4022
|
default: f(() => [
|
|
4014
|
-
|
|
4023
|
+
m(t(J), {
|
|
4015
4024
|
name: "vIf",
|
|
4016
4025
|
label: "v-if",
|
|
4017
4026
|
setters: "ExpressionSetter",
|
|
@@ -4020,7 +4029,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4020
4029
|
value: t(a).value,
|
|
4021
4030
|
onChange: t(v)
|
|
4022
4031
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
4023
|
-
|
|
4032
|
+
m(t(J), {
|
|
4024
4033
|
name: "vShow",
|
|
4025
4034
|
label: "v-show",
|
|
4026
4035
|
setters: "ExpressionSetter",
|
|
@@ -4029,7 +4038,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4029
4038
|
value: t(o).value,
|
|
4030
4039
|
onChange: t(v)
|
|
4031
4040
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
4032
|
-
|
|
4041
|
+
m(t(J), {
|
|
4033
4042
|
name: "vBind",
|
|
4034
4043
|
label: "v-bind",
|
|
4035
4044
|
setters: "ExpressionSetter",
|
|
@@ -4044,30 +4053,30 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4044
4053
|
]),
|
|
4045
4054
|
_: 1
|
|
4046
4055
|
}),
|
|
4047
|
-
|
|
4056
|
+
m(t(U), {
|
|
4048
4057
|
class: "v-sub-panel",
|
|
4049
4058
|
title: "循环",
|
|
4050
4059
|
size: "small",
|
|
4051
4060
|
fit: !1
|
|
4052
4061
|
}, {
|
|
4053
4062
|
default: f(() => [
|
|
4054
|
-
|
|
4063
|
+
m(t(ge), {
|
|
4055
4064
|
size: "small",
|
|
4056
4065
|
"label-width": "80px",
|
|
4057
4066
|
onKeydown: d[1] || (d[1] = Ge(Oe(() => {
|
|
4058
4067
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4059
4068
|
}, {
|
|
4060
4069
|
default: f(() => [
|
|
4061
|
-
|
|
4070
|
+
m(t(J), {
|
|
4062
4071
|
name: "value",
|
|
4063
4072
|
label: "循环数据",
|
|
4064
4073
|
setters: "ExpressionSetter",
|
|
4065
4074
|
current: t(e),
|
|
4066
4075
|
context: t(n),
|
|
4067
4076
|
value: t(r).value,
|
|
4068
|
-
onChange: t(
|
|
4077
|
+
onChange: t(p)
|
|
4069
4078
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
4070
|
-
|
|
4079
|
+
m(t(J), {
|
|
4071
4080
|
name: "item",
|
|
4072
4081
|
label: "迭代变量名",
|
|
4073
4082
|
setters: {
|
|
@@ -4077,9 +4086,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4077
4086
|
current: t(e),
|
|
4078
4087
|
context: t(n),
|
|
4079
4088
|
value: t(r).iterator?.item,
|
|
4080
|
-
onChange: t(
|
|
4089
|
+
onChange: t(p)
|
|
4081
4090
|
}, null, 8, ["current", "context", "value", "onChange"]),
|
|
4082
|
-
|
|
4091
|
+
m(t(J), {
|
|
4083
4092
|
name: "index",
|
|
4084
4093
|
label: "索引变量名",
|
|
4085
4094
|
setters: {
|
|
@@ -4089,7 +4098,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4089
4098
|
current: t(e),
|
|
4090
4099
|
context: t(n),
|
|
4091
4100
|
value: t(r).iterator?.index,
|
|
4092
|
-
onChange: t(
|
|
4101
|
+
onChange: t(p)
|
|
4093
4102
|
}, null, 8, ["current", "context", "value", "onChange"])
|
|
4094
4103
|
]),
|
|
4095
4104
|
_: 1
|
|
@@ -4097,7 +4106,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4097
4106
|
]),
|
|
4098
4107
|
_: 1
|
|
4099
4108
|
}),
|
|
4100
|
-
|
|
4109
|
+
m(t(U), {
|
|
4101
4110
|
class: "v-sub-panel",
|
|
4102
4111
|
title: "双向绑定",
|
|
4103
4112
|
size: "small",
|
|
@@ -4115,14 +4124,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4115
4124
|
fit: !1
|
|
4116
4125
|
}, {
|
|
4117
4126
|
default: f(() => [
|
|
4118
|
-
|
|
4127
|
+
m(t(ge), {
|
|
4119
4128
|
size: "small",
|
|
4120
4129
|
"label-width": "60px",
|
|
4121
4130
|
onKeydown: d[2] || (d[2] = Ge(Oe(() => {
|
|
4122
4131
|
}, ["prevent", "stop"]), ["enter"]))
|
|
4123
4132
|
}, {
|
|
4124
4133
|
default: f(() => [
|
|
4125
|
-
|
|
4134
|
+
m(t(J), {
|
|
4126
4135
|
name: w.toString(),
|
|
4127
4136
|
label: "绑定变量",
|
|
4128
4137
|
setters: "ExpressionSetter",
|
|
@@ -4184,7 +4193,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4184
4193
|
"submit-method": o
|
|
4185
4194
|
}, {
|
|
4186
4195
|
default: f(() => [
|
|
4187
|
-
|
|
4196
|
+
m(t(I), {
|
|
4188
4197
|
name: "name",
|
|
4189
4198
|
label: "属性名称",
|
|
4190
4199
|
required: "",
|
|
@@ -4195,7 +4204,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4195
4204
|
pattern: t(Ce)
|
|
4196
4205
|
}
|
|
4197
4206
|
}, null, 8, ["disabled", "rules"]),
|
|
4198
|
-
|
|
4207
|
+
m(t(I), {
|
|
4199
4208
|
name: "type",
|
|
4200
4209
|
label: "数据类型",
|
|
4201
4210
|
editor: "checkbox",
|
|
@@ -4203,18 +4212,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4203
4212
|
options: t(a),
|
|
4204
4213
|
required: ""
|
|
4205
4214
|
}, null, 8, ["options"]),
|
|
4206
|
-
|
|
4215
|
+
m(t(I), {
|
|
4207
4216
|
name: "required",
|
|
4208
4217
|
label: "必须",
|
|
4209
4218
|
editor: "switch"
|
|
4210
4219
|
}),
|
|
4211
|
-
|
|
4220
|
+
m(t(I), {
|
|
4212
4221
|
name: "default.value",
|
|
4213
4222
|
label: "默认值",
|
|
4214
4223
|
editor: "none"
|
|
4215
4224
|
}, {
|
|
4216
4225
|
default: f(() => [
|
|
4217
|
-
|
|
4226
|
+
m(t(le), {
|
|
4218
4227
|
modelValue: l.value.default.value,
|
|
4219
4228
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => l.value.default.value = i),
|
|
4220
4229
|
height: "200px",
|
|
@@ -4248,7 +4257,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4248
4257
|
"submit-method": a
|
|
4249
4258
|
}, {
|
|
4250
4259
|
default: f(() => [
|
|
4251
|
-
|
|
4260
|
+
m(t(I), {
|
|
4252
4261
|
name: "name",
|
|
4253
4262
|
label: "事件名称",
|
|
4254
4263
|
required: "",
|
|
@@ -4283,7 +4292,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4283
4292
|
"submit-method": a
|
|
4284
4293
|
}, {
|
|
4285
4294
|
default: f(() => [
|
|
4286
|
-
|
|
4295
|
+
m(t(I), {
|
|
4287
4296
|
name: "name",
|
|
4288
4297
|
label: "插槽名称",
|
|
4289
4298
|
disabled: !!e.item,
|
|
@@ -4329,7 +4338,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4329
4338
|
"submit-method": a
|
|
4330
4339
|
}, {
|
|
4331
4340
|
default: f(() => [
|
|
4332
|
-
|
|
4341
|
+
m(t(I), {
|
|
4333
4342
|
name: "name",
|
|
4334
4343
|
label: "注入名称",
|
|
4335
4344
|
required: "",
|
|
@@ -4340,18 +4349,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4340
4349
|
pattern: t(Ce)
|
|
4341
4350
|
}
|
|
4342
4351
|
}, null, 8, ["disabled", "rules"]),
|
|
4343
|
-
|
|
4352
|
+
m(t(I), {
|
|
4344
4353
|
name: "from",
|
|
4345
4354
|
label: "来源名称",
|
|
4346
4355
|
tip: "默认和注入名称一致"
|
|
4347
4356
|
}),
|
|
4348
|
-
|
|
4357
|
+
m(t(I), {
|
|
4349
4358
|
name: "default.value",
|
|
4350
4359
|
label: "默认值",
|
|
4351
4360
|
editor: "none"
|
|
4352
4361
|
}, {
|
|
4353
4362
|
default: f(() => [
|
|
4354
|
-
|
|
4363
|
+
m(t(le), {
|
|
4355
4364
|
modelValue: l.value.default.value,
|
|
4356
4365
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => l.value.default.value = r),
|
|
4357
4366
|
height: "200px",
|
|
@@ -4368,7 +4377,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4368
4377
|
name: "DefinedWidget",
|
|
4369
4378
|
__name: "index",
|
|
4370
4379
|
setup(c) {
|
|
4371
|
-
const { current: e, context: n } = ie(), l = S(() => (e.value?.props || []).map((M) => typeof M == "string" ? { name: M } : M)), a = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), s = S(() => e.value?.inject || []), r = k(!1), i = k(), v = k(!1),
|
|
4380
|
+
const { current: e, context: n } = ie(), l = S(() => (e.value?.props || []).map((M) => typeof M == "string" ? { name: M } : M)), a = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), s = S(() => e.value?.inject || []), r = k(!1), i = k(), v = k(!1), p = k(), g = k(!1), y = k(), h = k(!1), d = k(), _ = () => {
|
|
4372
4381
|
i.value = void 0, r.value = !0;
|
|
4373
4382
|
}, w = (M) => {
|
|
4374
4383
|
const { name: L, modelValue: N } = M;
|
|
@@ -4376,9 +4385,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4376
4385
|
}, x = (M) => {
|
|
4377
4386
|
i.value = M, r.value = !0;
|
|
4378
4387
|
}, V = () => {
|
|
4379
|
-
|
|
4388
|
+
p.value = void 0, v.value = !0;
|
|
4380
4389
|
}, B = (M) => {
|
|
4381
|
-
|
|
4390
|
+
p.value = M, v.value = !0;
|
|
4382
4391
|
}, O = (M) => {
|
|
4383
4392
|
const { name: L, modelValue: N } = M;
|
|
4384
4393
|
L === "edit" && B(N), L === "remove" && e.value?.removeEmit(N);
|
|
@@ -4404,7 +4413,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4404
4413
|
fit: ""
|
|
4405
4414
|
}, {
|
|
4406
4415
|
default: f(() => [
|
|
4407
|
-
|
|
4416
|
+
m(t(U), {
|
|
4408
4417
|
class: "v-sub-panel",
|
|
4409
4418
|
title: "定义属性",
|
|
4410
4419
|
size: "small",
|
|
@@ -4436,7 +4445,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4436
4445
|
]),
|
|
4437
4446
|
_: 1
|
|
4438
4447
|
}),
|
|
4439
|
-
|
|
4448
|
+
m(t(U), {
|
|
4440
4449
|
class: "v-sub-panel",
|
|
4441
4450
|
title: "定义事件",
|
|
4442
4451
|
size: "small",
|
|
@@ -4463,12 +4472,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4463
4472
|
"onUpdate:modelValue": L[1] || (L[1] = (N) => v.value = N),
|
|
4464
4473
|
current: t(e),
|
|
4465
4474
|
context: t(n),
|
|
4466
|
-
item:
|
|
4475
|
+
item: p.value
|
|
4467
4476
|
}, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
|
|
4468
4477
|
]),
|
|
4469
4478
|
_: 1
|
|
4470
4479
|
}),
|
|
4471
|
-
|
|
4480
|
+
m(t(U), {
|
|
4472
4481
|
class: "v-sub-panel",
|
|
4473
4482
|
title: "定义插槽",
|
|
4474
4483
|
size: "small",
|
|
@@ -4500,7 +4509,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4500
4509
|
]),
|
|
4501
4510
|
_: 1
|
|
4502
4511
|
}),
|
|
4503
|
-
|
|
4512
|
+
m(t(U), {
|
|
4504
4513
|
class: "v-sub-panel",
|
|
4505
4514
|
title: "注入",
|
|
4506
4515
|
size: "small",
|
|
@@ -4563,7 +4572,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4563
4572
|
disabled: !0,
|
|
4564
4573
|
border: !0
|
|
4565
4574
|
}
|
|
4566
|
-
], { apis: l, meta: a } =
|
|
4575
|
+
], { apis: l, meta: a } = Bs(), s = k(
|
|
4567
4576
|
Object.assign({
|
|
4568
4577
|
type: "api",
|
|
4569
4578
|
ref: "",
|
|
@@ -4582,7 +4591,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4582
4591
|
})`
|
|
4583
4592
|
}
|
|
4584
4593
|
}, e.item)
|
|
4585
|
-
), r = k(!1), i = k(""), v = k(!1),
|
|
4594
|
+
), r = k(!1), i = k(""), v = k(!1), p = S(() => s.value.type === "api" ? l.value.map((w) => ({
|
|
4586
4595
|
label: w.label || "",
|
|
4587
4596
|
value: w.id,
|
|
4588
4597
|
data: w
|
|
@@ -4657,7 +4666,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4657
4666
|
"submit-method": d
|
|
4658
4667
|
}, {
|
|
4659
4668
|
extra: f(() => [
|
|
4660
|
-
|
|
4669
|
+
m(t(ae), {
|
|
4661
4670
|
loading: r.value,
|
|
4662
4671
|
type: "warning",
|
|
4663
4672
|
onClick: _
|
|
@@ -4669,7 +4678,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4669
4678
|
}, 8, ["loading"])
|
|
4670
4679
|
]),
|
|
4671
4680
|
default: f(() => [
|
|
4672
|
-
|
|
4681
|
+
m(t(I), {
|
|
4673
4682
|
name: "type",
|
|
4674
4683
|
label: "数据类型",
|
|
4675
4684
|
editor: "radio",
|
|
@@ -4685,7 +4694,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4685
4694
|
key: s.value.type,
|
|
4686
4695
|
required: "",
|
|
4687
4696
|
disabled: !!e.item,
|
|
4688
|
-
options:
|
|
4697
|
+
options: p.value,
|
|
4689
4698
|
props: { filterable: !0 },
|
|
4690
4699
|
onChange: h
|
|
4691
4700
|
}, {
|
|
@@ -4695,7 +4704,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4695
4704
|
]),
|
|
4696
4705
|
_: 1
|
|
4697
4706
|
}, 8, ["disabled", "options"])),
|
|
4698
|
-
|
|
4707
|
+
m(t(I), {
|
|
4699
4708
|
name: "name",
|
|
4700
4709
|
label: "调用名称",
|
|
4701
4710
|
required: "",
|
|
@@ -4706,18 +4715,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4706
4715
|
pattern: t(Ce)
|
|
4707
4716
|
}
|
|
4708
4717
|
}, null, 8, ["disabled", "rules"]),
|
|
4709
|
-
|
|
4718
|
+
m(t(I), {
|
|
4710
4719
|
name: "label",
|
|
4711
4720
|
label: "备注说明",
|
|
4712
4721
|
required: ""
|
|
4713
4722
|
}),
|
|
4714
|
-
|
|
4723
|
+
m(t(I), {
|
|
4715
4724
|
name: "transform.value",
|
|
4716
4725
|
label: "转换函数",
|
|
4717
4726
|
editor: "none"
|
|
4718
4727
|
}, {
|
|
4719
4728
|
default: f(() => [
|
|
4720
|
-
|
|
4729
|
+
m(t(le), {
|
|
4721
4730
|
modelValue: s.value.transform.value,
|
|
4722
4731
|
"onUpdate:modelValue": x[0] || (x[0] = (V) => s.value.transform.value = V),
|
|
4723
4732
|
height: "200px",
|
|
@@ -4726,13 +4735,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4726
4735
|
]),
|
|
4727
4736
|
_: 1
|
|
4728
4737
|
}),
|
|
4729
|
-
|
|
4738
|
+
m(t(I), {
|
|
4730
4739
|
name: "test.value",
|
|
4731
4740
|
label: "测试用例",
|
|
4732
4741
|
editor: "none"
|
|
4733
4742
|
}, {
|
|
4734
4743
|
default: f(() => [
|
|
4735
|
-
|
|
4744
|
+
m(t(le), {
|
|
4736
4745
|
modelValue: s.value.test.value,
|
|
4737
4746
|
"onUpdate:modelValue": x[1] || (x[1] = (V) => s.value.test.value = V),
|
|
4738
4747
|
height: "100px",
|
|
@@ -4752,7 +4761,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4752
4761
|
size: "80%"
|
|
4753
4762
|
}, {
|
|
4754
4763
|
default: f(() => [
|
|
4755
|
-
|
|
4764
|
+
m(t(le), {
|
|
4756
4765
|
"model-value": i.value,
|
|
4757
4766
|
border: "",
|
|
4758
4767
|
dark: "",
|
|
@@ -4771,26 +4780,26 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4771
4780
|
__name: "index",
|
|
4772
4781
|
setup(c) {
|
|
4773
4782
|
const { current: e, context: n } = ie(), l = k(!1), a = k(), o = S(() => Object.values(e.value?.dataSources || {}).filter(
|
|
4774
|
-
(
|
|
4775
|
-
)), s = (
|
|
4783
|
+
(p) => ["meta", "api"].includes(p.type)
|
|
4784
|
+
)), s = (p) => ({
|
|
4776
4785
|
api: "primary",
|
|
4777
4786
|
meta: "success",
|
|
4778
4787
|
cube: "warning"
|
|
4779
|
-
})[
|
|
4788
|
+
})[p], r = () => {
|
|
4780
4789
|
a.value = void 0, l.value = !0;
|
|
4781
|
-
}, i = (
|
|
4782
|
-
a.value =
|
|
4783
|
-
}, v = (
|
|
4784
|
-
const { name: g, modelValue: y } =
|
|
4790
|
+
}, i = (p) => {
|
|
4791
|
+
a.value = p, l.value = !0;
|
|
4792
|
+
}, v = (p) => {
|
|
4793
|
+
const { name: g, modelValue: y } = p;
|
|
4785
4794
|
g === "edit" && i(y), g === "remove" && e.value?.removeDataSource(y.name);
|
|
4786
4795
|
};
|
|
4787
|
-
return (
|
|
4796
|
+
return (p, g) => (u(), b(t(W), {
|
|
4788
4797
|
class: "v-data-sources-widget",
|
|
4789
4798
|
direction: "column",
|
|
4790
4799
|
fit: ""
|
|
4791
4800
|
}, {
|
|
4792
4801
|
default: f(() => [
|
|
4793
|
-
|
|
4802
|
+
m(t(U), {
|
|
4794
4803
|
title: "请求方法",
|
|
4795
4804
|
class: "v-sub-panel",
|
|
4796
4805
|
size: "small",
|
|
@@ -4955,10 +4964,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4955
4964
|
value: "stretch",
|
|
4956
4965
|
svg: fa
|
|
4957
4966
|
}
|
|
4958
|
-
], i = (v,
|
|
4959
|
-
n.value =
|
|
4967
|
+
], i = (v, p) => {
|
|
4968
|
+
n.value = p === "flex", e.setStyle("display", p), n.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
|
|
4960
4969
|
};
|
|
4961
|
-
return (v,
|
|
4970
|
+
return (v, p) => (u(), b(t(U), {
|
|
4962
4971
|
title: "布局",
|
|
4963
4972
|
class: "v-sub-panel",
|
|
4964
4973
|
size: "small",
|
|
@@ -4966,12 +4975,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4966
4975
|
collapsable: ""
|
|
4967
4976
|
}, {
|
|
4968
4977
|
default: f(() => [
|
|
4969
|
-
|
|
4978
|
+
m(t(ge), {
|
|
4970
4979
|
size: "small",
|
|
4971
4980
|
"label-width": "80px"
|
|
4972
4981
|
}, {
|
|
4973
4982
|
default: f(() => [
|
|
4974
|
-
|
|
4983
|
+
m(t(J), {
|
|
4975
4984
|
name: "display",
|
|
4976
4985
|
label: "排布",
|
|
4977
4986
|
setters: { name: "TagSetter" },
|
|
@@ -4981,7 +4990,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4981
4990
|
onChange: i
|
|
4982
4991
|
}, null, 8, ["value"]),
|
|
4983
4992
|
n.value ? (u(), j(T, { key: 0 }, [
|
|
4984
|
-
|
|
4993
|
+
m(t(J), {
|
|
4985
4994
|
name: "flex-direction",
|
|
4986
4995
|
label: "主轴方向",
|
|
4987
4996
|
setters: { name: "TagSetter" },
|
|
@@ -4990,7 +4999,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4990
4999
|
value: e.styleJson["flex-direction"],
|
|
4991
5000
|
onChange: e.setStyle
|
|
4992
5001
|
}, null, 8, ["value", "onChange"]),
|
|
4993
|
-
|
|
5002
|
+
m(t(J), {
|
|
4994
5003
|
name: "justify-content",
|
|
4995
5004
|
label: "主轴对齐",
|
|
4996
5005
|
setters: { name: "TagSetter" },
|
|
@@ -4999,7 +5008,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
4999
5008
|
value: e.styleJson["justify-content"],
|
|
5000
5009
|
onChange: e.setStyle
|
|
5001
5010
|
}, null, 8, ["value", "onChange"]),
|
|
5002
|
-
|
|
5011
|
+
m(t(J), {
|
|
5003
5012
|
name: "align-items",
|
|
5004
5013
|
label: "辅轴对齐",
|
|
5005
5014
|
setters: { name: "TagSetter" },
|
|
@@ -5008,7 +5017,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5008
5017
|
value: e.styleJson["align-items"],
|
|
5009
5018
|
onChange: e.setStyle
|
|
5010
5019
|
}, null, 8, ["value", "onChange"]),
|
|
5011
|
-
|
|
5020
|
+
m(t(J), {
|
|
5012
5021
|
name: "flex-wrap",
|
|
5013
5022
|
label: "换行模式",
|
|
5014
5023
|
setters: { name: "TagSetter" },
|
|
@@ -5054,7 +5063,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5054
5063
|
onSave: s
|
|
5055
5064
|
}, {
|
|
5056
5065
|
default: f(() => [
|
|
5057
|
-
|
|
5066
|
+
m(t(le), {
|
|
5058
5067
|
ref_key: "editorRef",
|
|
5059
5068
|
ref: n,
|
|
5060
5069
|
"model-value": a.value,
|
|
@@ -5081,8 +5090,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5081
5090
|
a("close");
|
|
5082
5091
|
});
|
|
5083
5092
|
const v = (h) => {
|
|
5084
|
-
r.value = typeof h == "number" ? `${h}px` : "auto",
|
|
5085
|
-
},
|
|
5093
|
+
r.value = typeof h == "number" ? `${h}px` : "auto", p(r.value);
|
|
5094
|
+
}, p = (h) => {
|
|
5086
5095
|
i.value = h === "auto" ? void 0 : "px";
|
|
5087
5096
|
}, g = () => {
|
|
5088
5097
|
r.value ? (a("update:modelValue", r.value), a("submit", l.name, r.value), a("close")) : ne("请输入有效值", "提示");
|
|
@@ -5092,28 +5101,28 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5092
5101
|
return (h, d) => (u(), j("div", Yo, [
|
|
5093
5102
|
Zo,
|
|
5094
5103
|
C("div", er, [
|
|
5095
|
-
|
|
5104
|
+
m(t(W), {
|
|
5096
5105
|
class: "v-spacing-input__body",
|
|
5097
5106
|
ref_key: "bodyRef",
|
|
5098
5107
|
ref: s,
|
|
5099
5108
|
direction: "column"
|
|
5100
5109
|
}, {
|
|
5101
5110
|
default: f(() => [
|
|
5102
|
-
|
|
5111
|
+
m(t(W), null, {
|
|
5103
5112
|
default: f(() => [
|
|
5104
|
-
|
|
5113
|
+
m(t(tn), {
|
|
5105
5114
|
modelValue: r.value,
|
|
5106
5115
|
"onUpdate:modelValue": d[0] || (d[0] = (_) => r.value = _),
|
|
5107
5116
|
size: "small",
|
|
5108
5117
|
"with-unit": !!i.value,
|
|
5109
5118
|
unit: i.value,
|
|
5110
5119
|
format: i.value ? "0" : void 0,
|
|
5111
|
-
onChange:
|
|
5120
|
+
onChange: p
|
|
5112
5121
|
}, null, 8, ["modelValue", "with-unit", "unit", "format"])
|
|
5113
5122
|
]),
|
|
5114
5123
|
_: 1
|
|
5115
5124
|
}),
|
|
5116
|
-
|
|
5125
|
+
m(t(W), null, {
|
|
5117
5126
|
default: f(() => [
|
|
5118
5127
|
o.value ? (u(), b(t(W), {
|
|
5119
5128
|
key: 0,
|
|
@@ -5127,7 +5136,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5127
5136
|
]),
|
|
5128
5137
|
_: 1
|
|
5129
5138
|
})) : A("", !0),
|
|
5130
|
-
|
|
5139
|
+
m(t(W), {
|
|
5131
5140
|
grow: "",
|
|
5132
5141
|
class: "v-spacing-input__values",
|
|
5133
5142
|
align: "center",
|
|
@@ -5143,9 +5152,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5143
5152
|
]),
|
|
5144
5153
|
_: 1
|
|
5145
5154
|
}),
|
|
5146
|
-
|
|
5155
|
+
m(t(W), null, {
|
|
5147
5156
|
default: f(() => [
|
|
5148
|
-
|
|
5157
|
+
m(t(ae), {
|
|
5149
5158
|
size: "small",
|
|
5150
5159
|
type: "primary",
|
|
5151
5160
|
round: "",
|
|
@@ -5157,7 +5166,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5157
5166
|
]),
|
|
5158
5167
|
_: 1
|
|
5159
5168
|
}),
|
|
5160
|
-
|
|
5169
|
+
m(t(ae), {
|
|
5161
5170
|
size: "small",
|
|
5162
5171
|
round: "",
|
|
5163
5172
|
style: { width: "100%" },
|
|
@@ -5214,10 +5223,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5214
5223
|
setStyle: { type: Function }
|
|
5215
5224
|
},
|
|
5216
5225
|
setup(c) {
|
|
5217
|
-
const e = c, n = k(), l = k(), { width: a, height: o } = Me(n), { width: s, height: r } = Me(l), i = k(!1), v = k(),
|
|
5218
|
-
i.value = !1, v.value = void 0,
|
|
5226
|
+
const e = c, n = k(), l = k(), { width: a, height: o } = Me(n), { width: s, height: r } = Me(l), i = k(!1), v = k(), p = k(), g = () => {
|
|
5227
|
+
i.value = !1, v.value = void 0, p.value = void 0;
|
|
5219
5228
|
}, y = (h) => {
|
|
5220
|
-
v.value = h,
|
|
5229
|
+
v.value = h, p.value = e.styleJson[h], i.value = !0;
|
|
5221
5230
|
};
|
|
5222
5231
|
return (h, d) => (u(), b(t(U), {
|
|
5223
5232
|
title: "间距",
|
|
@@ -5535,8 +5544,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5535
5544
|
i.value ? (u(), b(Cn, {
|
|
5536
5545
|
key: 0,
|
|
5537
5546
|
name: v.value,
|
|
5538
|
-
modelValue:
|
|
5539
|
-
"onUpdate:modelValue": d[16] || (d[16] = (_) =>
|
|
5547
|
+
modelValue: p.value,
|
|
5548
|
+
"onUpdate:modelValue": d[16] || (d[16] = (_) => p.value = _),
|
|
5540
5549
|
onClose: g,
|
|
5541
5550
|
onSubmit: e.setStyle
|
|
5542
5551
|
}, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
|
|
@@ -5615,14 +5624,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5615
5624
|
collapsable: ""
|
|
5616
5625
|
}, {
|
|
5617
5626
|
default: f(() => [
|
|
5618
|
-
|
|
5627
|
+
m(t(ge), {
|
|
5619
5628
|
class: "v-style-widget__sizing",
|
|
5620
5629
|
size: "small",
|
|
5621
5630
|
"label-width": "60px",
|
|
5622
5631
|
inline: ""
|
|
5623
5632
|
}, {
|
|
5624
5633
|
default: f(() => [
|
|
5625
|
-
(u(), j(T, null, F(a, (r) =>
|
|
5634
|
+
(u(), j(T, null, F(a, (r) => m(t(J), {
|
|
5626
5635
|
name: r.name,
|
|
5627
5636
|
label: r.label,
|
|
5628
5637
|
setters: { name: r.setter },
|
|
@@ -5661,7 +5670,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5661
5670
|
{ label: "上", svg: Sa, value: "auto 0% 0% 0%" },
|
|
5662
5671
|
{ label: "下", svg: xa, value: "0% 0% auto 0%" },
|
|
5663
5672
|
{ label: "填充", svg: Ca, value: "0% 0% 0% 0%" }
|
|
5664
|
-
],
|
|
5673
|
+
], p = S(() => (e.styleJson.inset || "").split(" ")), g = (h) => {
|
|
5665
5674
|
s.value = h, r.value = e.styleJson[h], o.value = !0;
|
|
5666
5675
|
}, y = () => {
|
|
5667
5676
|
o.value = !1, s.value = void 0, r.value = void 0;
|
|
@@ -5675,12 +5684,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5675
5684
|
}, {
|
|
5676
5685
|
default: f(() => [
|
|
5677
5686
|
C("div", $r, [
|
|
5678
|
-
|
|
5687
|
+
m(t(ge), {
|
|
5679
5688
|
"label-width": "60px",
|
|
5680
5689
|
size: "small"
|
|
5681
5690
|
}, {
|
|
5682
5691
|
default: f(() => [
|
|
5683
|
-
|
|
5692
|
+
m(t(J), {
|
|
5684
5693
|
name: "position",
|
|
5685
5694
|
label: "定位",
|
|
5686
5695
|
setters: { name: "SelectSetter" },
|
|
@@ -5689,7 +5698,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5689
5698
|
value: e.styleJson.position,
|
|
5690
5699
|
onChange: e.setStyle
|
|
5691
5700
|
}, null, 8, ["value", "onChange"]),
|
|
5692
|
-
|
|
5701
|
+
m(t(J), {
|
|
5693
5702
|
name: "inset",
|
|
5694
5703
|
label: " ",
|
|
5695
5704
|
setters: { name: "TagSetter" },
|
|
@@ -5698,7 +5707,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5698
5707
|
value: e.styleJson.inset,
|
|
5699
5708
|
onChange: e.setStyle
|
|
5700
5709
|
}, null, 8, ["value", "onChange"]),
|
|
5701
|
-
|
|
5710
|
+
m(t(en), { label: " " }, {
|
|
5702
5711
|
default: f(() => [
|
|
5703
5712
|
C("div", Rr, [
|
|
5704
5713
|
C("div", {
|
|
@@ -5837,19 +5846,19 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5837
5846
|
C("div", {
|
|
5838
5847
|
class: q(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
|
|
5839
5848
|
onClick: d[4] || (d[4] = (_) => g("top"))
|
|
5840
|
-
}, z(e.styleJson.top ||
|
|
5849
|
+
}, z(e.styleJson.top || p.value[0] || "-"), 3),
|
|
5841
5850
|
C("div", {
|
|
5842
5851
|
class: q(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
|
|
5843
5852
|
onClick: d[5] || (d[5] = (_) => g("right"))
|
|
5844
|
-
}, z(e.styleJson.right ||
|
|
5853
|
+
}, z(e.styleJson.right || p.value[1] || "-"), 3),
|
|
5845
5854
|
C("div", {
|
|
5846
5855
|
class: q(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
|
|
5847
5856
|
onClick: d[6] || (d[6] = (_) => g("bottom"))
|
|
5848
|
-
}, z(e.styleJson.bottom ||
|
|
5857
|
+
}, z(e.styleJson.bottom || p.value[2] || "-"), 3),
|
|
5849
5858
|
C("div", {
|
|
5850
5859
|
class: q(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
|
|
5851
5860
|
onClick: d[7] || (d[7] = (_) => g("left"))
|
|
5852
|
-
}, z(e.styleJson.left ||
|
|
5861
|
+
}, z(e.styleJson.left || p.value[3] || "-"), 3)
|
|
5853
5862
|
], 512),
|
|
5854
5863
|
o.value ? (u(), b(Cn, {
|
|
5855
5864
|
key: 0,
|
|
@@ -5864,7 +5873,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5864
5873
|
]),
|
|
5865
5874
|
_: 1
|
|
5866
5875
|
}),
|
|
5867
|
-
|
|
5876
|
+
m(t(J), {
|
|
5868
5877
|
name: "z-index",
|
|
5869
5878
|
label: "层级",
|
|
5870
5879
|
setters: { name: "NumberSetter" },
|
|
@@ -5957,14 +5966,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5957
5966
|
collapsable: ""
|
|
5958
5967
|
}, {
|
|
5959
5968
|
default: f(() => [
|
|
5960
|
-
|
|
5969
|
+
m(t(ge), {
|
|
5961
5970
|
class: "v-style-widget__texting",
|
|
5962
5971
|
size: "small",
|
|
5963
5972
|
"label-width": "60px",
|
|
5964
5973
|
inline: ""
|
|
5965
5974
|
}, {
|
|
5966
5975
|
default: f(() => [
|
|
5967
|
-
(u(), j(T, null, F(n, (i) =>
|
|
5976
|
+
(u(), j(T, null, F(n, (i) => m(t(J), {
|
|
5968
5977
|
name: i.name,
|
|
5969
5978
|
label: i.label,
|
|
5970
5979
|
setters: { name: i.setter },
|
|
@@ -5976,12 +5985,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5976
5985
|
]),
|
|
5977
5986
|
_: 1
|
|
5978
5987
|
}),
|
|
5979
|
-
|
|
5988
|
+
m(t(ge), {
|
|
5980
5989
|
size: "small",
|
|
5981
5990
|
"label-width": "60px"
|
|
5982
5991
|
}, {
|
|
5983
5992
|
default: f(() => [
|
|
5984
|
-
|
|
5993
|
+
m(t(J), {
|
|
5985
5994
|
name: "color",
|
|
5986
5995
|
label: "颜色",
|
|
5987
5996
|
setters: { name: "ColorSetter" },
|
|
@@ -5989,7 +5998,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5989
5998
|
value: e.styleJson.color,
|
|
5990
5999
|
onChange: s.setStyle
|
|
5991
6000
|
}, null, 8, ["value", "onChange"]),
|
|
5992
|
-
|
|
6001
|
+
m(t(J), {
|
|
5993
6002
|
name: "text-align",
|
|
5994
6003
|
label: "对齐",
|
|
5995
6004
|
setters: { name: "TagSetter" },
|
|
@@ -5998,7 +6007,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
5998
6007
|
value: e.styleJson["text-align"],
|
|
5999
6008
|
onChange: s.setStyle
|
|
6000
6009
|
}, null, 8, ["value", "onChange"]),
|
|
6001
|
-
|
|
6010
|
+
m(t(J), {
|
|
6002
6011
|
name: "font-style",
|
|
6003
6012
|
label: "风格",
|
|
6004
6013
|
setters: { name: "TagSetter" },
|
|
@@ -6007,7 +6016,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6007
6016
|
value: e.styleJson["font-style"],
|
|
6008
6017
|
onChange: s.setStyle
|
|
6009
6018
|
}, null, 8, ["value", "onChange"]),
|
|
6010
|
-
|
|
6019
|
+
m(t(J), {
|
|
6011
6020
|
name: "text-decoration",
|
|
6012
6021
|
label: "修饰",
|
|
6013
6022
|
setters: { name: "TagSetter" },
|
|
@@ -6062,12 +6071,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6062
6071
|
collapsable: ""
|
|
6063
6072
|
}, {
|
|
6064
6073
|
default: f(() => [
|
|
6065
|
-
|
|
6074
|
+
m(t(ge), {
|
|
6066
6075
|
"label-width": "60px",
|
|
6067
6076
|
size: "small"
|
|
6068
6077
|
}, {
|
|
6069
6078
|
default: f(() => [
|
|
6070
|
-
|
|
6079
|
+
m(t(J), {
|
|
6071
6080
|
name: "background-image",
|
|
6072
6081
|
label: "图片",
|
|
6073
6082
|
setters: { name: "ImageSetter" },
|
|
@@ -6075,7 +6084,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6075
6084
|
value: l(e.styleJson["background-image"]),
|
|
6076
6085
|
onChange: n
|
|
6077
6086
|
}, null, 8, ["value"]),
|
|
6078
|
-
|
|
6087
|
+
m(t(J), {
|
|
6079
6088
|
name: "background-color",
|
|
6080
6089
|
label: "颜色",
|
|
6081
6090
|
setters: { name: "ColorSetter" },
|
|
@@ -6083,7 +6092,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6083
6092
|
value: e.styleJson["background-color"],
|
|
6084
6093
|
onChange: e.setStyle
|
|
6085
6094
|
}, null, 8, ["value", "onChange"]),
|
|
6086
|
-
|
|
6095
|
+
m(t(J), {
|
|
6087
6096
|
name: "background-repeat",
|
|
6088
6097
|
label: "重复",
|
|
6089
6098
|
setters: { name: "TagSetter" },
|
|
@@ -6092,7 +6101,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6092
6101
|
options: a,
|
|
6093
6102
|
onChange: e.setStyle
|
|
6094
6103
|
}, null, 8, ["value", "onChange"]),
|
|
6095
|
-
|
|
6104
|
+
m(t(J), {
|
|
6096
6105
|
name: "background-attachment",
|
|
6097
6106
|
label: "固定",
|
|
6098
6107
|
setters: { name: "RadioSetter" },
|
|
@@ -6101,7 +6110,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6101
6110
|
options: o,
|
|
6102
6111
|
onChange: e.setStyle
|
|
6103
6112
|
}, null, 8, ["value", "onChange"]),
|
|
6104
|
-
|
|
6113
|
+
m(t(J), {
|
|
6105
6114
|
name: "background-position",
|
|
6106
6115
|
label: "位置",
|
|
6107
6116
|
setters: { name: "SectionSetter", props: { sections: 2 } },
|
|
@@ -6109,7 +6118,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6109
6118
|
value: e.styleJson["background-position"],
|
|
6110
6119
|
onChange: e.setStyle
|
|
6111
6120
|
}, null, 8, ["value", "onChange"]),
|
|
6112
|
-
|
|
6121
|
+
m(t(J), {
|
|
6113
6122
|
name: "background-size",
|
|
6114
6123
|
label: "大小",
|
|
6115
6124
|
setters: { name: "SelectSetter" },
|
|
@@ -6118,7 +6127,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6118
6127
|
options: r,
|
|
6119
6128
|
onChange: e.setStyle
|
|
6120
6129
|
}, null, 8, ["value", "onChange"]),
|
|
6121
|
-
|
|
6130
|
+
m(t(J), {
|
|
6122
6131
|
name: "background-clip",
|
|
6123
6132
|
label: "裁剪",
|
|
6124
6133
|
setters: { name: "SelectSetter" },
|
|
@@ -6163,12 +6172,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6163
6172
|
collapsable: ""
|
|
6164
6173
|
}, {
|
|
6165
6174
|
default: f(() => [
|
|
6166
|
-
|
|
6175
|
+
m(t(ge), {
|
|
6167
6176
|
"label-width": "60px",
|
|
6168
6177
|
size: "small"
|
|
6169
6178
|
}, {
|
|
6170
6179
|
default: f(() => [
|
|
6171
|
-
|
|
6180
|
+
m(t(J), {
|
|
6172
6181
|
name: "border-radius",
|
|
6173
6182
|
label: "圆角",
|
|
6174
6183
|
setters: { name: "SectionSetter", props: { sections: 4 } },
|
|
@@ -6176,7 +6185,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6176
6185
|
value: e.styleJson["border-radius"],
|
|
6177
6186
|
onChange: e.setStyle
|
|
6178
6187
|
}, null, 8, ["value", "onChange"]),
|
|
6179
|
-
|
|
6188
|
+
m(t(J), {
|
|
6180
6189
|
name: "borders",
|
|
6181
6190
|
label: "边框",
|
|
6182
6191
|
setters: { name: "TagSetter" },
|
|
@@ -6281,12 +6290,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6281
6290
|
collapsable: ""
|
|
6282
6291
|
}, {
|
|
6283
6292
|
default: f(() => [
|
|
6284
|
-
|
|
6293
|
+
m(t(ge), {
|
|
6285
6294
|
"label-width": "60px",
|
|
6286
6295
|
size: "small"
|
|
6287
6296
|
}, {
|
|
6288
6297
|
default: f(() => [
|
|
6289
|
-
|
|
6298
|
+
m(t(J), {
|
|
6290
6299
|
name: "opacity",
|
|
6291
6300
|
label: "透明度",
|
|
6292
6301
|
setters: { name: "SliderSetter" },
|
|
@@ -6294,7 +6303,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6294
6303
|
value: o(),
|
|
6295
6304
|
onChange: a
|
|
6296
6305
|
}, null, 8, ["value"]),
|
|
6297
|
-
|
|
6306
|
+
m(t(J), {
|
|
6298
6307
|
name: "box-shadow",
|
|
6299
6308
|
label: "阴影",
|
|
6300
6309
|
setters: { name: "SelectSetter" },
|
|
@@ -6303,7 +6312,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6303
6312
|
value: e.styleJson["box-shadow"],
|
|
6304
6313
|
onChange: e.setStyle
|
|
6305
6314
|
}, null, 8, ["value", "onChange"]),
|
|
6306
|
-
|
|
6315
|
+
m(t(J), {
|
|
6307
6316
|
name: "cursor",
|
|
6308
6317
|
label: "光标",
|
|
6309
6318
|
setters: { name: "TagSetter" },
|
|
@@ -6393,7 +6402,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6393
6402
|
path: { type: Function }
|
|
6394
6403
|
},
|
|
6395
6404
|
setup(c, { expose: e }) {
|
|
6396
|
-
const n = c, l = k(), a = k(Symbol()), { current: o, engine: s } = ie(), { width: r, height: i } = Me(l), v = S(() => o.value && n.path ? n.path(o.value) : null),
|
|
6405
|
+
const n = c, l = k(), a = k(Symbol()), { current: o, engine: s } = ie(), { width: r, height: i } = Me(l), v = S(() => o.value && n.path ? n.path(o.value) : null), p = S(() => s.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
|
|
6397
6406
|
return e({
|
|
6398
6407
|
refresh: () => {
|
|
6399
6408
|
a.value = Symbol();
|
|
@@ -6404,8 +6413,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6404
6413
|
class: "v-previewer",
|
|
6405
6414
|
key: a.value
|
|
6406
6415
|
}, [
|
|
6407
|
-
|
|
6408
|
-
mode:
|
|
6416
|
+
m(t(xn), {
|
|
6417
|
+
mode: p.value,
|
|
6409
6418
|
width: t(r),
|
|
6410
6419
|
height: t(i)
|
|
6411
6420
|
}, {
|
|
@@ -6478,7 +6487,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6478
6487
|
onSave: o
|
|
6479
6488
|
}, {
|
|
6480
6489
|
default: f(() => [
|
|
6481
|
-
|
|
6490
|
+
m(t(le), {
|
|
6482
6491
|
ref_key: "editorRef",
|
|
6483
6492
|
ref: n,
|
|
6484
6493
|
"model-value": l.value,
|
|
@@ -6516,7 +6525,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6516
6525
|
fit: ""
|
|
6517
6526
|
}, {
|
|
6518
6527
|
default: f(() => [
|
|
6519
|
-
|
|
6528
|
+
m(t(le), {
|
|
6520
6529
|
ref_key: "editorRef",
|
|
6521
6530
|
ref: l,
|
|
6522
6531
|
"model-value": a.value,
|
|
@@ -6598,22 +6607,22 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6598
6607
|
onChange: n
|
|
6599
6608
|
}, {
|
|
6600
6609
|
default: f(() => [
|
|
6601
|
-
|
|
6610
|
+
m(t(I), {
|
|
6602
6611
|
label: "站点名称",
|
|
6603
6612
|
name: "title"
|
|
6604
6613
|
}),
|
|
6605
|
-
|
|
6614
|
+
m(t(I), {
|
|
6606
6615
|
label: "Logo",
|
|
6607
6616
|
name: "logo",
|
|
6608
6617
|
editor: Vt,
|
|
6609
6618
|
props: { attachment: { accept: ".png,.jpg,.jpeg" } }
|
|
6610
6619
|
}),
|
|
6611
|
-
|
|
6620
|
+
m(t(I), {
|
|
6612
6621
|
label: "主题切换",
|
|
6613
6622
|
name: "themeSwitchable",
|
|
6614
6623
|
editor: "switch"
|
|
6615
6624
|
}),
|
|
6616
|
-
|
|
6625
|
+
m(t(I), {
|
|
6617
6626
|
label: "模拟数据",
|
|
6618
6627
|
name: "mock",
|
|
6619
6628
|
editor: "switch"
|
|
@@ -6626,11 +6635,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6626
6635
|
}));
|
|
6627
6636
|
}
|
|
6628
6637
|
}), Q = {
|
|
6629
|
-
Logo:
|
|
6630
|
-
EmptyWidget:
|
|
6631
|
-
Switcher:
|
|
6632
|
-
Toolbar:
|
|
6633
|
-
Actions:
|
|
6638
|
+
Logo: zs,
|
|
6639
|
+
EmptyWidget: Os,
|
|
6640
|
+
Switcher: Ws,
|
|
6641
|
+
Toolbar: Ls,
|
|
6642
|
+
Actions: Hs,
|
|
6634
6643
|
Pages: uo,
|
|
6635
6644
|
Blocks: po,
|
|
6636
6645
|
Components: fo,
|
|
@@ -7542,7 +7551,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7542
7551
|
return (i, v) => (u(), b(t(be), {
|
|
7543
7552
|
class: "v-expression-setter",
|
|
7544
7553
|
modelValue: s.value,
|
|
7545
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
7554
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => s.value = p),
|
|
7546
7555
|
onChange: r
|
|
7547
7556
|
}, {
|
|
7548
7557
|
prefix: f(() => [
|
|
@@ -7629,7 +7638,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7629
7638
|
const h = y.getValue();
|
|
7630
7639
|
i(h) && (a.value = h, r("change", JSON.parse(h)), s.value = !1);
|
|
7631
7640
|
}
|
|
7632
|
-
},
|
|
7641
|
+
}, p = () => {
|
|
7633
7642
|
a.value = "", r("change", void 0), s.value = !1;
|
|
7634
7643
|
}, g = () => {
|
|
7635
7644
|
s.value = !0;
|
|
@@ -7637,7 +7646,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7637
7646
|
return (y, h) => (u(), j("div", {
|
|
7638
7647
|
class: q(["v-json-setter", { "is-active": o.value }])
|
|
7639
7648
|
}, [
|
|
7640
|
-
|
|
7649
|
+
m(t(be), re({
|
|
7641
7650
|
readonly: "",
|
|
7642
7651
|
onFocus: g,
|
|
7643
7652
|
"model-value": n.type,
|
|
@@ -7654,12 +7663,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7654
7663
|
submit: "",
|
|
7655
7664
|
clear: "",
|
|
7656
7665
|
onSubmit: v,
|
|
7657
|
-
onClear:
|
|
7666
|
+
onClear: p
|
|
7658
7667
|
}, {
|
|
7659
7668
|
extra: f(() => [
|
|
7660
|
-
|
|
7669
|
+
m(t(ae), {
|
|
7661
7670
|
type: "warning",
|
|
7662
|
-
onClick:
|
|
7671
|
+
onClick: p,
|
|
7663
7672
|
size: "default"
|
|
7664
7673
|
}, {
|
|
7665
7674
|
default: f(() => [
|
|
@@ -7669,7 +7678,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7669
7678
|
})
|
|
7670
7679
|
]),
|
|
7671
7680
|
default: f(() => [
|
|
7672
|
-
|
|
7681
|
+
m(t(le), {
|
|
7673
7682
|
ref_key: "codeEditor",
|
|
7674
7683
|
ref: l,
|
|
7675
7684
|
height: "100%",
|
|
@@ -7704,15 +7713,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7704
7713
|
}
|
|
7705
7714
|
}, v = () => {
|
|
7706
7715
|
a.value = "", r("change", void 0), o.value = !1;
|
|
7707
|
-
},
|
|
7716
|
+
}, p = () => {
|
|
7708
7717
|
o.value = !0;
|
|
7709
7718
|
};
|
|
7710
7719
|
return (g, y) => (u(), j("div", {
|
|
7711
7720
|
class: q(["v-function-setter", { "is-active": s.value }])
|
|
7712
7721
|
}, [
|
|
7713
|
-
|
|
7722
|
+
m(t(be), re({
|
|
7714
7723
|
readonly: "",
|
|
7715
|
-
onFocus:
|
|
7724
|
+
onFocus: p,
|
|
7716
7725
|
"model-value": "JSFunction",
|
|
7717
7726
|
"suffix-icon": t(xt)
|
|
7718
7727
|
}, g.$attrs), null, 16, ["suffix-icon"]),
|
|
@@ -7730,7 +7739,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7730
7739
|
onClear: v
|
|
7731
7740
|
}, {
|
|
7732
7741
|
extra: f(() => [
|
|
7733
|
-
|
|
7742
|
+
m(t(ae), {
|
|
7734
7743
|
type: "warning",
|
|
7735
7744
|
onClick: v,
|
|
7736
7745
|
size: "default"
|
|
@@ -7742,7 +7751,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7742
7751
|
})
|
|
7743
7752
|
]),
|
|
7744
7753
|
default: f(() => [
|
|
7745
|
-
|
|
7754
|
+
m(t(le), {
|
|
7746
7755
|
ref_key: "codeEditor",
|
|
7747
7756
|
ref: l,
|
|
7748
7757
|
height: "100%",
|
|
@@ -7844,7 +7853,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7844
7853
|
unit: o.value,
|
|
7845
7854
|
"with-unit": !!o.value,
|
|
7846
7855
|
modelValue: s.value,
|
|
7847
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
7856
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => s.value = p),
|
|
7848
7857
|
onChange: r
|
|
7849
7858
|
}, i.$attrs), null, 16, ["unit", "with-unit", "modelValue"]));
|
|
7850
7859
|
}
|
|
@@ -7879,14 +7888,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7879
7888
|
limit: 1,
|
|
7880
7889
|
action: "#",
|
|
7881
7890
|
"file-list": a.value,
|
|
7882
|
-
"onUpdate:fileList": v[0] || (v[0] = (
|
|
7891
|
+
"onUpdate:fileList": v[0] || (v[0] = (p) => a.value = p),
|
|
7883
7892
|
"before-upload": s,
|
|
7884
7893
|
"auto-upload": !0,
|
|
7885
7894
|
"on-remove": r
|
|
7886
7895
|
}, i.$attrs), {
|
|
7887
7896
|
default: f(() => [
|
|
7888
7897
|
C("span", Ii, [
|
|
7889
|
-
|
|
7898
|
+
m(t(ke), { icon: t(os) }, null, 8, ["icon"])
|
|
7890
7899
|
])
|
|
7891
7900
|
]),
|
|
7892
7901
|
_: 1
|
|
@@ -7944,11 +7953,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
7944
7953
|
a.value = void 0, l("change", void 0), l("update:modelValue", void 0);
|
|
7945
7954
|
};
|
|
7946
7955
|
return (s, r) => (u(), j("div", Ti, [
|
|
7947
|
-
|
|
7956
|
+
m(t(Gn), re({ size: "small" }, s.$attrs, {
|
|
7948
7957
|
modelValue: a.value,
|
|
7949
7958
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i)
|
|
7950
7959
|
}), null, 16, ["modelValue"]),
|
|
7951
|
-
|
|
7960
|
+
m(t(ke), {
|
|
7952
7961
|
onClick: o,
|
|
7953
7962
|
class: "v-slider-setter__close",
|
|
7954
7963
|
size: 16,
|
|
@@ -8367,22 +8376,22 @@ class Ui {
|
|
|
8367
8376
|
const i = r.model, v = a.value.type;
|
|
8368
8377
|
if (!await this.allowDrop(i, v))
|
|
8369
8378
|
return;
|
|
8370
|
-
let
|
|
8379
|
+
let p;
|
|
8371
8380
|
if (o)
|
|
8372
|
-
|
|
8381
|
+
p = o;
|
|
8373
8382
|
else {
|
|
8374
8383
|
const g = this.createNodeDsl(l);
|
|
8375
|
-
|
|
8384
|
+
p = new Pt(g);
|
|
8376
8385
|
}
|
|
8377
8386
|
if (ee(i))
|
|
8378
|
-
o ? (delete
|
|
8387
|
+
o ? (delete p.slot, s.move(p, void 0, "inner")) : s.addNode(p, void 0, v);
|
|
8379
8388
|
else {
|
|
8380
8389
|
const g = await this.getDropSlot(v === "inner" ? i : i.parent);
|
|
8381
8390
|
if (g === null) {
|
|
8382
8391
|
this.dropping.value = null;
|
|
8383
8392
|
return;
|
|
8384
8393
|
}
|
|
8385
|
-
|
|
8394
|
+
p.slot = g, o ? s.move(p, i, v) : s.addNode(p, i, v);
|
|
8386
8395
|
}
|
|
8387
8396
|
this.dropping.value = null, n.simulator.refresh(), n.assets.clearCaches();
|
|
8388
8397
|
}
|
|
@@ -8545,7 +8554,7 @@ class Ui {
|
|
|
8545
8554
|
const r = a.assets.componentMap, i = n !== "inner" && e.parent || e, v = await a.assets.getBlockMaterial(i.from) || r.get(i.name);
|
|
8546
8555
|
if (!v)
|
|
8547
8556
|
return !1;
|
|
8548
|
-
const { parentIncludes:
|
|
8557
|
+
const { parentIncludes: p = !0, name: g } = l, { childIncludes: y = !0 } = v, h = p === !0 || Array.isArray(p) && p.includes(i.name), d = y === !0 || Array.isArray(y) && y.includes(g);
|
|
8549
8558
|
return h && d;
|
|
8550
8559
|
}
|
|
8551
8560
|
dispose() {
|
|
@@ -8573,7 +8582,7 @@ class qi {
|
|
|
8573
8582
|
}
|
|
8574
8583
|
const s = Object.entries(n);
|
|
8575
8584
|
Object.assign(e.config.globalProperties, l), this.provider.options.install && this.provider.options.install(e), e.config.errorHandler = (r, i, v) => {
|
|
8576
|
-
const
|
|
8585
|
+
const p = i?.$options.name, g = r?.message || r?.msg || "未知错误", y = `[ ${p} ] ${g}`;
|
|
8577
8586
|
console.error({
|
|
8578
8587
|
err: r,
|
|
8579
8588
|
instance: i,
|
|
@@ -8585,15 +8594,15 @@ class qi {
|
|
|
8585
8594
|
}, s.forEach(([r, i]) => {
|
|
8586
8595
|
if (typeof i == "function" || typeof i.install == "function") {
|
|
8587
8596
|
let v = {};
|
|
8588
|
-
const
|
|
8589
|
-
|
|
8597
|
+
const p = o[r];
|
|
8598
|
+
p && (v.locale = p), e?.use(i, v);
|
|
8590
8599
|
}
|
|
8591
8600
|
});
|
|
8592
8601
|
}
|
|
8593
8602
|
render(e) {
|
|
8594
8603
|
const { window: n, container: l, library: a, Vue: o, components: s, apis: r } = this.env, i = n.document.createElement("div");
|
|
8595
8604
|
i.id = "app", l.appendChild(i), this.dsl = o.reactive(e.toDsl());
|
|
8596
|
-
const { renderer: v, context:
|
|
8605
|
+
const { renderer: v, context: p } = this.provider.createDslRenderer(this.dsl, {
|
|
8597
8606
|
window: n,
|
|
8598
8607
|
mode: on.Design,
|
|
8599
8608
|
Vue: o,
|
|
@@ -8607,7 +8616,7 @@ class qi {
|
|
|
8607
8616
|
} catch (g) {
|
|
8608
8617
|
ne(g.message || "未知错误", "运行时错误"), console.error(g);
|
|
8609
8618
|
}
|
|
8610
|
-
this.context =
|
|
8619
|
+
this.context = p, te.on(Ne, this.nodeChange), te.on(vt, this.blockChange);
|
|
8611
8620
|
}
|
|
8612
8621
|
dispose() {
|
|
8613
8622
|
if (this.app) {
|
|
@@ -8677,7 +8686,7 @@ class Hi extends sn {
|
|
|
8677
8686
|
materials: r,
|
|
8678
8687
|
libraryExports: i,
|
|
8679
8688
|
materialExports: v,
|
|
8680
|
-
materialMapLibrary:
|
|
8689
|
+
materialMapLibrary: p,
|
|
8681
8690
|
libraryLocaleMap: g
|
|
8682
8691
|
} = xl(n, this.materialPath);
|
|
8683
8692
|
a.open(), a.write(`
|
|
@@ -8706,7 +8715,7 @@ class Hi extends sn {
|
|
|
8706
8715
|
<script>
|
|
8707
8716
|
__simulator__.emitReady(${JSON.stringify(i)},
|
|
8708
8717
|
${JSON.stringify(v)},
|
|
8709
|
-
${JSON.stringify(
|
|
8718
|
+
${JSON.stringify(p)},
|
|
8710
8719
|
${JSON.stringify(g)}
|
|
8711
8720
|
);
|
|
8712
8721
|
<\/script>
|
|
@@ -8715,9 +8724,9 @@ class Hi extends sn {
|
|
|
8715
8724
|
}
|
|
8716
8725
|
async emitReady(e = [], n = [], l = {}, a = {}) {
|
|
8717
8726
|
this.renderer?.dispose(), this.renderer = null;
|
|
8718
|
-
const o = this.contentWindow, { assets: s, service: r, current: i, provider: v } = this.engine,
|
|
8727
|
+
const o = this.contentWindow, { assets: s, service: r, current: i, provider: v } = this.engine, p = v.materials || {}, g = [];
|
|
8719
8728
|
for (const h of n) {
|
|
8720
|
-
const d =
|
|
8729
|
+
const d = p[h] ? (await p[h]()).default : o[h];
|
|
8721
8730
|
g.push(d);
|
|
8722
8731
|
}
|
|
8723
8732
|
s.load(g);
|
|
@@ -8730,7 +8739,7 @@ class Hi extends sn {
|
|
|
8730
8739
|
this.renderer = new qi(y, r, v, this.designer.value), i.value && this.renderer.render(i.value), this.triggerReady();
|
|
8731
8740
|
}
|
|
8732
8741
|
createEnv(e = [], n = {}, l = [], a = {}) {
|
|
8733
|
-
const o = this.contentWindow, { engine: s } = this, { project: r, assets: i, provider: v } = s,
|
|
8742
|
+
const o = this.contentWindow, { engine: s } = this, { project: r, assets: i, provider: v } = s, p = e.reduce((V, B) => (V[B] = o[B], V), {}), g = {};
|
|
8734
8743
|
Object.entries(a).forEach(([V, B]) => {
|
|
8735
8744
|
g[V] = o[B];
|
|
8736
8745
|
});
|
|
@@ -8739,11 +8748,11 @@ class Hi extends sn {
|
|
|
8739
8748
|
const B = V.names || [];
|
|
8740
8749
|
if (V.name === pt)
|
|
8741
8750
|
B.forEach((O) => {
|
|
8742
|
-
const R = d.get(O), P = R?.package || "", $ = cl[P], D =
|
|
8751
|
+
const R = d.get(O), P = R?.package || "", $ = cl[P], D = p[$];
|
|
8743
8752
|
D && R && (y[O] = $t(R, D));
|
|
8744
8753
|
});
|
|
8745
8754
|
else {
|
|
8746
|
-
const O =
|
|
8755
|
+
const O = p[n[V.library || ""]];
|
|
8747
8756
|
O && B.forEach((R) => {
|
|
8748
8757
|
const P = d.get(R);
|
|
8749
8758
|
P ? y[R] = $t(P, O) : y[R] = O[R];
|
|
@@ -8759,7 +8768,7 @@ class Hi extends sn {
|
|
|
8759
8768
|
window: o,
|
|
8760
8769
|
Vue: o.Vue,
|
|
8761
8770
|
VueRouter: o.VueRouter,
|
|
8762
|
-
library:
|
|
8771
|
+
library: p,
|
|
8763
8772
|
materials: l,
|
|
8764
8773
|
components: y,
|
|
8765
8774
|
container: o.document.body,
|
|
@@ -8803,15 +8812,15 @@ class Gi {
|
|
|
8803
8812
|
const { categories: a, components: o, label: s, name: r, library: i } = l;
|
|
8804
8813
|
if (!a || !o)
|
|
8805
8814
|
continue;
|
|
8806
|
-
const v = o.filter((h) => !!h.package).map((h) => h.name),
|
|
8815
|
+
const v = o.filter((h) => !!h.package).map((h) => h.name), p = a.map(
|
|
8807
8816
|
(h) => this.getCateoryComponents(h, o)
|
|
8808
|
-
), g =
|
|
8817
|
+
), g = p.reduce((h, d) => d.count + h, 0), y = {
|
|
8809
8818
|
name: l.name,
|
|
8810
8819
|
label: s || r,
|
|
8811
8820
|
count: g,
|
|
8812
8821
|
names: v,
|
|
8813
8822
|
library: i,
|
|
8814
|
-
children:
|
|
8823
|
+
children: p
|
|
8815
8824
|
};
|
|
8816
8825
|
n.push(y);
|
|
8817
8826
|
}
|
|
@@ -8843,7 +8852,7 @@ class Gi {
|
|
|
8843
8852
|
Qe.getByType(d)
|
|
8844
8853
|
);
|
|
8845
8854
|
return h;
|
|
8846
|
-
},
|
|
8855
|
+
}, p = {
|
|
8847
8856
|
id: a,
|
|
8848
8857
|
name: o,
|
|
8849
8858
|
// 如果没有定义插槽,不能放置子组件
|
|
@@ -8859,7 +8868,7 @@ class Gi {
|
|
|
8859
8868
|
slots: s,
|
|
8860
8869
|
from: e
|
|
8861
8870
|
};
|
|
8862
|
-
return this.componentMap.set(o,
|
|
8871
|
+
return this.componentMap.set(o, p), p;
|
|
8863
8872
|
}
|
|
8864
8873
|
clearCaches() {
|
|
8865
8874
|
this.caches = {};
|
|
@@ -8878,7 +8887,7 @@ class Bu extends sn {
|
|
|
8878
8887
|
materials: r,
|
|
8879
8888
|
materialPath: i = "./",
|
|
8880
8889
|
adapter: v,
|
|
8881
|
-
install:
|
|
8890
|
+
install: p
|
|
8882
8891
|
} = this.options;
|
|
8883
8892
|
this.container = n, this.service = l, this.provider = new El({
|
|
8884
8893
|
mode: on.Design,
|
|
@@ -8889,7 +8898,7 @@ class Bu extends sn {
|
|
|
8889
8898
|
materials: r,
|
|
8890
8899
|
materialPath: i,
|
|
8891
8900
|
adapter: v,
|
|
8892
|
-
install:
|
|
8901
|
+
install: p
|
|
8893
8902
|
}), this.assets = new Gi(this.service, this.provider), this.simulator = new Hi({
|
|
8894
8903
|
engine: this,
|
|
8895
8904
|
materialPath: i
|
|
@@ -9262,7 +9271,7 @@ const Ae = E({
|
|
|
9262
9271
|
computedOptions: r,
|
|
9263
9272
|
variable: i,
|
|
9264
9273
|
changeValue: v,
|
|
9265
|
-
defaultSetter:
|
|
9274
|
+
defaultSetter: p,
|
|
9266
9275
|
removable: g,
|
|
9267
9276
|
onRemove: y
|
|
9268
9277
|
} = this;
|
|
@@ -9273,7 +9282,7 @@ const Ae = E({
|
|
|
9273
9282
|
label: l,
|
|
9274
9283
|
title: a,
|
|
9275
9284
|
setters: s,
|
|
9276
|
-
defaultSetter:
|
|
9285
|
+
defaultSetter: p,
|
|
9277
9286
|
variable: i,
|
|
9278
9287
|
value: o,
|
|
9279
9288
|
removable: g,
|
|
@@ -9324,11 +9333,11 @@ const Ae = E({
|
|
|
9324
9333
|
onEnd(V, B) {
|
|
9325
9334
|
o.value = B.elementWidth.value;
|
|
9326
9335
|
}
|
|
9327
|
-
}, i = k(), v = k(),
|
|
9336
|
+
}, i = k(), v = k(), p = k(), g = k(), y = k(), h = k(), d = k(), _ = k(), w = k(!1), x = k(!1);
|
|
9328
9337
|
return e({
|
|
9329
9338
|
brand: i,
|
|
9330
9339
|
toolbar: v,
|
|
9331
|
-
actions:
|
|
9340
|
+
actions: p,
|
|
9332
9341
|
apps: g,
|
|
9333
9342
|
workspace: y,
|
|
9334
9343
|
settings: h,
|
|
@@ -9341,33 +9350,33 @@ const Ae = E({
|
|
|
9341
9350
|
isPreview: l
|
|
9342
9351
|
}), (V, B) => (u(), b(t(Xn), { locale: t(Zn) }, {
|
|
9343
9352
|
default: f(() => [
|
|
9344
|
-
|
|
9353
|
+
m(t(jt), { class: "v-skeleton" }, {
|
|
9345
9354
|
default: f(() => [
|
|
9346
|
-
|
|
9355
|
+
m(t(Qn), {
|
|
9347
9356
|
class: "v-skeleton__header",
|
|
9348
9357
|
height: V.headerHeight
|
|
9349
9358
|
}, {
|
|
9350
9359
|
default: f(() => [
|
|
9351
|
-
|
|
9360
|
+
m(t(Ae), {
|
|
9352
9361
|
ref_key: "brand",
|
|
9353
9362
|
ref: i,
|
|
9354
9363
|
region: "Brand"
|
|
9355
9364
|
}, null, 512),
|
|
9356
|
-
|
|
9365
|
+
m(t(Ae), {
|
|
9357
9366
|
ref_key: "toolbar",
|
|
9358
9367
|
ref: v,
|
|
9359
9368
|
region: "Toolbar",
|
|
9360
9369
|
preview: l.value
|
|
9361
9370
|
}, null, 8, ["preview"]),
|
|
9362
|
-
|
|
9371
|
+
m(t(Ae), {
|
|
9363
9372
|
ref_key: "actions",
|
|
9364
|
-
ref:
|
|
9373
|
+
ref: p,
|
|
9365
9374
|
region: "Actions"
|
|
9366
9375
|
}, null, 512)
|
|
9367
9376
|
]),
|
|
9368
9377
|
_: 1
|
|
9369
9378
|
}, 8, ["height"]),
|
|
9370
|
-
|
|
9379
|
+
m(t(jt), { class: "v-skeleton__wrapper" }, {
|
|
9371
9380
|
default: f(() => [
|
|
9372
9381
|
l.value ? A("", !0) : je((u(), b(t(Et), {
|
|
9373
9382
|
key: 0,
|
|
@@ -9377,7 +9386,7 @@ const Ae = E({
|
|
|
9377
9386
|
}])
|
|
9378
9387
|
}, {
|
|
9379
9388
|
default: f(() => [
|
|
9380
|
-
|
|
9389
|
+
m(t(Ae), {
|
|
9381
9390
|
ref_key: "apps",
|
|
9382
9391
|
ref: g,
|
|
9383
9392
|
region: "Apps"
|
|
@@ -9387,7 +9396,7 @@ const Ae = E({
|
|
|
9387
9396
|
}, 8, ["width", "class"])), [
|
|
9388
9397
|
[t(Dt), s]
|
|
9389
9398
|
]),
|
|
9390
|
-
|
|
9399
|
+
m(t(Kn), { class: "v-skeleton__main" }, {
|
|
9391
9400
|
default: f(() => [
|
|
9392
9401
|
l.value ? (u(), b(t(Ae), {
|
|
9393
9402
|
key: 0,
|
|
@@ -9396,7 +9405,7 @@ const Ae = E({
|
|
|
9396
9405
|
region: "Preview",
|
|
9397
9406
|
preview: l.value
|
|
9398
9407
|
}, null, 8, ["preview"])) : A("", !0),
|
|
9399
|
-
je(
|
|
9408
|
+
je(m(t(Ae), {
|
|
9400
9409
|
ref_key: "workspace",
|
|
9401
9410
|
ref: y,
|
|
9402
9411
|
region: "Workspace"
|
|
@@ -9412,7 +9421,7 @@ const Ae = E({
|
|
|
9412
9421
|
class: "v-skeleton__right"
|
|
9413
9422
|
}, {
|
|
9414
9423
|
default: f(() => [
|
|
9415
|
-
|
|
9424
|
+
m(t(Ae), {
|
|
9416
9425
|
ref_key: "settings",
|
|
9417
9426
|
ref: h,
|
|
9418
9427
|
region: "Settings"
|
|
@@ -9432,7 +9441,7 @@ const Ae = E({
|
|
|
9432
9441
|
height: V.footerHeight
|
|
9433
9442
|
}, {
|
|
9434
9443
|
default: f(() => [
|
|
9435
|
-
|
|
9444
|
+
m(t(Ae), {
|
|
9436
9445
|
ref_key: "status",
|
|
9437
9446
|
ref: d,
|
|
9438
9447
|
region: "Status"
|
|
@@ -9471,7 +9480,7 @@ const Ae = E({
|
|
|
9471
9480
|
n.setters.find((x) => x.name === n.defaultSetter) || n.setters[0]
|
|
9472
9481
|
), r = k(n.value), i = S(() => !!We(r.value)), v = {
|
|
9473
9482
|
[s.value.name]: r.value
|
|
9474
|
-
},
|
|
9483
|
+
}, p = (x) => {
|
|
9475
9484
|
v[s.value.name] = r.value, s.value = x, r.value = v[x.name] ?? void 0, g(r.value);
|
|
9476
9485
|
};
|
|
9477
9486
|
G(
|
|
@@ -9556,17 +9565,17 @@ const Ae = E({
|
|
|
9556
9565
|
disabled: i.value,
|
|
9557
9566
|
size: "small",
|
|
9558
9567
|
"popper-class": "v-setter-switch",
|
|
9559
|
-
onCommand:
|
|
9568
|
+
onCommand: p
|
|
9560
9569
|
}, {
|
|
9561
9570
|
dropdown: f(() => [
|
|
9562
|
-
|
|
9571
|
+
m(t(Xt), null, {
|
|
9563
9572
|
default: f(() => [
|
|
9564
9573
|
(u(!0), j(T, null, F(n.setters, (B) => (u(), b(t(ut), {
|
|
9565
9574
|
command: B,
|
|
9566
9575
|
key: B.name
|
|
9567
9576
|
}, {
|
|
9568
9577
|
default: f(() => [
|
|
9569
|
-
|
|
9578
|
+
m(t(pn), {
|
|
9570
9579
|
class: q({
|
|
9571
9580
|
"is-placeholder": B.name !== s.value.name
|
|
9572
9581
|
})
|
|
@@ -9580,7 +9589,7 @@ const Ae = E({
|
|
|
9580
9589
|
})
|
|
9581
9590
|
]),
|
|
9582
9591
|
default: f(() => [
|
|
9583
|
-
|
|
9592
|
+
m(t(us), { title: "切换设置器" })
|
|
9584
9593
|
]),
|
|
9585
9594
|
_: 1
|
|
9586
9595
|
}, 8, ["disabled"])) : A("", !0),
|
|
@@ -9690,8 +9699,8 @@ const Ae = E({
|
|
|
9690
9699
|
index: { default: 0 }
|
|
9691
9700
|
},
|
|
9692
9701
|
setup(c, { expose: e }) {
|
|
9693
|
-
const n = c, l = ce(), { widgets: a, widgetsRef: o } = Ee(n.region), s = S(() => a.value.filter((d) => d.openType === "panel")), r = S(() => a.value.filter((d) => d.openType !== "panel")), i = s.value[n.index], v = k(i),
|
|
9694
|
-
v.value = d,
|
|
9702
|
+
const n = c, l = ce(), { widgets: a, widgetsRef: o } = Ee(n.region), s = S(() => a.value.filter((d) => d.openType === "panel")), r = S(() => a.value.filter((d) => d.openType !== "panel")), i = s.value[n.index], v = k(i), p = k(i), g = (d) => {
|
|
9703
|
+
v.value = d, p.value = p.value?.name === d.name ? null : d;
|
|
9695
9704
|
}, y = (d) => {
|
|
9696
9705
|
d.openType === "link" && d.url && window.open(d.url), d.openType === "dialog" && nl({
|
|
9697
9706
|
title: d.label,
|
|
@@ -9700,14 +9709,14 @@ const Ae = E({
|
|
|
9700
9709
|
content: d.component
|
|
9701
9710
|
});
|
|
9702
9711
|
};
|
|
9703
|
-
return G(
|
|
9712
|
+
return G(p, (d) => {
|
|
9704
9713
|
l.skeleton?.toggleCollapse(!d);
|
|
9705
9714
|
}), e({
|
|
9706
9715
|
widgets: a,
|
|
9707
9716
|
widgetsRef: o,
|
|
9708
9717
|
setActive: (d) => {
|
|
9709
9718
|
const _ = s.value.find((w) => w.name === d);
|
|
9710
|
-
v.value = _,
|
|
9719
|
+
v.value = _, p.value = _;
|
|
9711
9720
|
}
|
|
9712
9721
|
}), (d, _) => (u(), j("div", pu, [
|
|
9713
9722
|
C("div", mu, [
|
|
@@ -9717,7 +9726,7 @@ const Ae = E({
|
|
|
9717
9726
|
icon: w.icon,
|
|
9718
9727
|
label: w.label,
|
|
9719
9728
|
active: v.value?.name === w.name,
|
|
9720
|
-
open:
|
|
9729
|
+
open: p.value?.name === w.name,
|
|
9721
9730
|
onClick: (x) => g(w)
|
|
9722
9731
|
}, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
|
|
9723
9732
|
]),
|
|
@@ -9765,7 +9774,7 @@ const Ae = E({
|
|
|
9765
9774
|
), s = S(() => o.filter((h) => !h.closable || h.checked)), r = S(() => o.map((h) => ({
|
|
9766
9775
|
...h,
|
|
9767
9776
|
disabled: !h.closable
|
|
9768
|
-
}))), i = k(s.value[0]?.name), v = S(() => o.find((d) => d.name === i.value)?.props || {}),
|
|
9777
|
+
}))), i = k(s.value[0]?.name), v = S(() => o.find((d) => d.name === i.value)?.props || {}), p = (h) => {
|
|
9769
9778
|
const d = o.find((_) => _.name === h);
|
|
9770
9779
|
d && (d.checked = !1), i.value === h && (i.value = s.value[0]?.name);
|
|
9771
9780
|
}, g = (h) => {
|
|
@@ -9787,7 +9796,7 @@ const Ae = E({
|
|
|
9787
9796
|
modelValue: i.value,
|
|
9788
9797
|
"onUpdate:modelValue": d[0] || (d[0] = (_) => i.value = _),
|
|
9789
9798
|
checkable: "",
|
|
9790
|
-
onRemove:
|
|
9799
|
+
onRemove: p,
|
|
9791
9800
|
onCommand: g
|
|
9792
9801
|
}, {
|
|
9793
9802
|
default: f(() => [
|
|
@@ -9816,7 +9825,7 @@ const Ae = E({
|
|
|
9816
9825
|
setup(c, { expose: e }) {
|
|
9817
9826
|
const n = c, l = ce(), { current: a } = ie(), { selected: o, isSelectBlock: s } = ye(), r = S(
|
|
9818
9827
|
() => s.value ? fe.Block : fe.Node
|
|
9819
|
-
), { widgets: i, widgetsRef: v } = Ee(n.region, r),
|
|
9828
|
+
), { widgets: i, widgetsRef: v } = Ee(n.region, r), p = k(), g = k(!1), y = S(() => i.value.map((w) => ({
|
|
9820
9829
|
name: w.name,
|
|
9821
9830
|
label: w.label,
|
|
9822
9831
|
actions: w.name === "Style" ? [
|
|
@@ -9835,10 +9844,10 @@ const Ae = E({
|
|
|
9835
9844
|
}), G(
|
|
9836
9845
|
r,
|
|
9837
9846
|
() => {
|
|
9838
|
-
|
|
9847
|
+
p.value = y.value[0]?.name;
|
|
9839
9848
|
},
|
|
9840
9849
|
{ immediate: !0 }
|
|
9841
|
-
), G(
|
|
9850
|
+
), G(p, () => {
|
|
9842
9851
|
g.value = !1;
|
|
9843
9852
|
});
|
|
9844
9853
|
const d = () => {
|
|
@@ -9869,9 +9878,9 @@ const Ae = E({
|
|
|
9869
9878
|
class: "v-settings-region__header"
|
|
9870
9879
|
}, {
|
|
9871
9880
|
default: f(() => [
|
|
9872
|
-
|
|
9881
|
+
m(t(W), { class: "v-settings-region__title" }, {
|
|
9873
9882
|
default: f(() => [
|
|
9874
|
-
|
|
9883
|
+
m(t(bn)),
|
|
9875
9884
|
C("span", null, [
|
|
9876
9885
|
H(z(t(o)?.model.name) + ": ", 1),
|
|
9877
9886
|
C("i", null, z(t(o)?.model.id), 1)
|
|
@@ -9881,7 +9890,7 @@ const Ae = E({
|
|
|
9881
9890
|
}),
|
|
9882
9891
|
h.value ? (u(), b(t(W), { key: 0 }, {
|
|
9883
9892
|
default: f(() => [
|
|
9884
|
-
|
|
9893
|
+
m(t(he), {
|
|
9885
9894
|
onClick: d,
|
|
9886
9895
|
icon: t(hn),
|
|
9887
9896
|
mode: "text",
|
|
@@ -9899,10 +9908,10 @@ const Ae = E({
|
|
|
9899
9908
|
padding: !1
|
|
9900
9909
|
}, {
|
|
9901
9910
|
default: f(() => [
|
|
9902
|
-
|
|
9911
|
+
m(t(nt), {
|
|
9903
9912
|
items: y.value,
|
|
9904
|
-
modelValue:
|
|
9905
|
-
"onUpdate:modelValue": x[0] || (x[0] = (V) =>
|
|
9913
|
+
modelValue: p.value,
|
|
9914
|
+
"onUpdate:modelValue": x[0] || (x[0] = (V) => p.value = V),
|
|
9906
9915
|
stretch: "",
|
|
9907
9916
|
body: { padding: !1 },
|
|
9908
9917
|
onActionClick: _
|
|
@@ -9911,7 +9920,7 @@ const Ae = E({
|
|
|
9911
9920
|
(u(!0), j(T, null, F(t(i), (V) => (u(), j(T, {
|
|
9912
9921
|
key: V.name
|
|
9913
9922
|
}, [
|
|
9914
|
-
|
|
9923
|
+
p.value === V.name ? (u(), b(t(De), {
|
|
9915
9924
|
key: 0,
|
|
9916
9925
|
ref_for: !0,
|
|
9917
9926
|
ref_key: "widgetsRef",
|
|
@@ -9985,19 +9994,19 @@ const Ae = E({
|
|
|
9985
9994
|
class: "v-workspace-region",
|
|
9986
9995
|
items: s.value,
|
|
9987
9996
|
modelValue: r.value,
|
|
9988
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
9997
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => r.value = p)
|
|
9989
9998
|
}, {
|
|
9990
9999
|
default: f(() => [
|
|
9991
|
-
(u(!0), j(T, null, F(t(l), (
|
|
9992
|
-
key:
|
|
10000
|
+
(u(!0), j(T, null, F(t(l), (p) => (u(), b(qt, {
|
|
10001
|
+
key: p.name
|
|
9993
10002
|
}, [
|
|
9994
|
-
r.value ===
|
|
10003
|
+
r.value === p.name ? (u(), b(t(De), {
|
|
9995
10004
|
key: 0,
|
|
9996
10005
|
ref_for: !0,
|
|
9997
10006
|
ref_key: "widgetsRef",
|
|
9998
10007
|
ref: a,
|
|
9999
10008
|
region: i.region,
|
|
10000
|
-
widget:
|
|
10009
|
+
widget: p
|
|
10001
10010
|
}, null, 8, ["region", "widget"])) : A("", !0)
|
|
10002
10011
|
], 1024))), 128))
|
|
10003
10012
|
]),
|
|
@@ -10059,6 +10068,7 @@ export {
|
|
|
10059
10068
|
Wi as depsManager,
|
|
10060
10069
|
En as engineKey,
|
|
10061
10070
|
oe as expressionValidate,
|
|
10071
|
+
js as getClassProperties,
|
|
10062
10072
|
de as message,
|
|
10063
10073
|
ne as notify,
|
|
10064
10074
|
Ot as regions,
|