gp-designer 1.0.18 → 1.0.19
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/gp-designer.es.js +118 -121
- package/dist/gp-designer.umd.js +2 -2
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/gp-designer.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as Qe, ref as G, openBlock as L, createElementBlock as k, createElementVNode as x, renderSlot as Xt, Fragment as Qt, renderList as Ri, createCommentVNode as
|
1
|
+
import { defineComponent as Qe, ref as G, openBlock as L, createElementBlock as k, createElementVNode as x, renderSlot as Xt, Fragment as Qt, renderList as Ri, createCommentVNode as Y, toDisplayString as Ie, computed as Tt, watch as at, resolveComponent as qu, createBlock as gt, resolveDynamicComponent as Vu, mergeProps as $u, withModifiers as we, withCtx as Ca, createTextVNode as oi, unref as Oe, createVNode as pt, toRaw as nn, Transition as Wu, normalizeClass as un, reactive as Gu, createApp as Xu, h as os, withDirectives as ht, vModelSelect as Qu, vModelText as St, toRefs as ju, normalizeStyle as cs } from "vue";
|
2
2
|
var z;
|
3
3
|
(function(e) {
|
4
4
|
e.Root = "root", e.Text = "text", e.Directive = "directive", e.Comment = "comment", e.Script = "script", e.Style = "style", e.Tag = "tag", e.CDATA = "cdata", e.Doctype = "doctype";
|
@@ -1783,18 +1783,18 @@ function Ln(e, t, a) {
|
|
1783
1783
|
let B = "", Q = null;
|
1784
1784
|
if (y !== "exists") {
|
1785
1785
|
if (Za(t.charCodeAt(a))) {
|
1786
|
-
const
|
1786
|
+
const H = t.charCodeAt(a);
|
1787
1787
|
let g = a + 1;
|
1788
|
-
for (; g < t.length && (t.charCodeAt(g) !==
|
1788
|
+
for (; g < t.length && (t.charCodeAt(g) !== H || o(g)); )
|
1789
1789
|
g += 1;
|
1790
|
-
if (t.charCodeAt(g) !==
|
1790
|
+
if (t.charCodeAt(g) !== H)
|
1791
1791
|
throw new Error("Attribute value didn't end");
|
1792
1792
|
B = Ft(t.slice(a + 1, g)), a = g + 1;
|
1793
1793
|
} else {
|
1794
|
-
const
|
1794
|
+
const H = a;
|
1795
1795
|
for (; a < t.length && (!ps(t.charCodeAt(a)) && t.charCodeAt(a) !== 93 || o(a)); )
|
1796
1796
|
a += 1;
|
1797
|
-
B = Ft(t.slice(
|
1797
|
+
B = Ft(t.slice(H, a));
|
1798
1798
|
}
|
1799
1799
|
u(0);
|
1800
1800
|
const ne = t.charCodeAt(a) | 32;
|
@@ -7159,7 +7159,7 @@ let ru = class {
|
|
7159
7159
|
break;
|
7160
7160
|
}
|
7161
7161
|
case m.IN_BODY: {
|
7162
|
-
|
7162
|
+
Ne(this, t);
|
7163
7163
|
break;
|
7164
7164
|
}
|
7165
7165
|
case m.IN_TABLE: {
|
@@ -7526,7 +7526,7 @@ function zt(e, t) {
|
|
7526
7526
|
function T0(e, t) {
|
7527
7527
|
switch (t.tagID) {
|
7528
7528
|
case n.HTML: {
|
7529
|
-
|
7529
|
+
Ne(e, t);
|
7530
7530
|
break;
|
7531
7531
|
}
|
7532
7532
|
case n.HEAD: {
|
@@ -7547,7 +7547,7 @@ function Kt(e, t) {
|
|
7547
7547
|
function qe(e, t) {
|
7548
7548
|
switch (t.tagID) {
|
7549
7549
|
case n.HTML: {
|
7550
|
-
|
7550
|
+
Ne(e, t);
|
7551
7551
|
break;
|
7552
7552
|
}
|
7553
7553
|
case n.BASE:
|
@@ -7616,7 +7616,7 @@ function Zt(e, t) {
|
|
7616
7616
|
function g0(e, t) {
|
7617
7617
|
switch (t.tagID) {
|
7618
7618
|
case n.HTML: {
|
7619
|
-
|
7619
|
+
Ne(e, t);
|
7620
7620
|
break;
|
7621
7621
|
}
|
7622
7622
|
case n.BASEFONT:
|
@@ -7658,7 +7658,7 @@ function Jt(e, t) {
|
|
7658
7658
|
function A0(e, t) {
|
7659
7659
|
switch (t.tagID) {
|
7660
7660
|
case n.HTML: {
|
7661
|
-
|
7661
|
+
Ne(e, t);
|
7662
7662
|
break;
|
7663
7663
|
}
|
7664
7664
|
case n.BODY: {
|
@@ -7724,7 +7724,7 @@ function $a(e, t) {
|
|
7724
7724
|
break;
|
7725
7725
|
}
|
7726
7726
|
case j.START_TAG: {
|
7727
|
-
|
7727
|
+
Ne(e, t);
|
7728
7728
|
break;
|
7729
7729
|
}
|
7730
7730
|
case j.END_TAG: {
|
@@ -7855,7 +7855,7 @@ function z0(e, t) {
|
|
7855
7855
|
function Ps(e, t) {
|
7856
7856
|
e._reconstructActiveFormattingElements(), e._insertElement(t, N.HTML);
|
7857
7857
|
}
|
7858
|
-
function
|
7858
|
+
function Ne(e, t) {
|
7859
7859
|
switch (t.tagID) {
|
7860
7860
|
case n.I:
|
7861
7861
|
case n.S:
|
@@ -8361,7 +8361,7 @@ function Yt(e, t) {
|
|
8361
8361
|
const Tu = /* @__PURE__ */ new Set([n.CAPTION, n.COL, n.COLGROUP, n.TBODY, n.TD, n.TFOOT, n.TH, n.THEAD, n.TR]);
|
8362
8362
|
function ph(e, t) {
|
8363
8363
|
const a = t.tagID;
|
8364
|
-
Tu.has(a) ? e.openElements.hasInTableScope(n.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = m.IN_TABLE, kt(e, t)) :
|
8364
|
+
Tu.has(a) ? e.openElements.hasInTableScope(n.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = m.IN_TABLE, kt(e, t)) : Ne(e, t);
|
8365
8365
|
}
|
8366
8366
|
function bh(e, t) {
|
8367
8367
|
const a = t.tagID;
|
@@ -8389,7 +8389,7 @@ function bh(e, t) {
|
|
8389
8389
|
function ts(e, t) {
|
8390
8390
|
switch (t.tagID) {
|
8391
8391
|
case n.HTML: {
|
8392
|
-
|
8392
|
+
Ne(e, t);
|
8393
8393
|
break;
|
8394
8394
|
}
|
8395
8395
|
case n.COL: {
|
@@ -8524,7 +8524,7 @@ function pu(e, t) {
|
|
8524
8524
|
}
|
8525
8525
|
function _h(e, t) {
|
8526
8526
|
const a = t.tagID;
|
8527
|
-
Tu.has(a) ? (e.openElements.hasInTableScope(n.TD) || e.openElements.hasInTableScope(n.TH)) && (e._closeTableCell(), Xa(e, t)) :
|
8527
|
+
Tu.has(a) ? (e.openElements.hasInTableScope(n.TD) || e.openElements.hasInTableScope(n.TH)) && (e._closeTableCell(), Xa(e, t)) : Ne(e, t);
|
8528
8528
|
}
|
8529
8529
|
function Ah(e, t) {
|
8530
8530
|
const a = t.tagID;
|
@@ -8555,7 +8555,7 @@ function Ah(e, t) {
|
|
8555
8555
|
function bu(e, t) {
|
8556
8556
|
switch (t.tagID) {
|
8557
8557
|
case n.HTML: {
|
8558
|
-
|
8558
|
+
Ne(e, t);
|
8559
8559
|
break;
|
8560
8560
|
}
|
8561
8561
|
case n.OPTION: {
|
@@ -8649,7 +8649,7 @@ function Ih(e, t) {
|
|
8649
8649
|
break;
|
8650
8650
|
}
|
8651
8651
|
default:
|
8652
|
-
e.tmplInsertionModeStack[0] = m.IN_BODY, e.insertionMode = m.IN_BODY,
|
8652
|
+
e.tmplInsertionModeStack[0] = m.IN_BODY, e.insertionMode = m.IN_BODY, Ne(e, t);
|
8653
8653
|
}
|
8654
8654
|
}
|
8655
8655
|
function Sh(e, t) {
|
@@ -8659,7 +8659,7 @@ function _u(e, t) {
|
|
8659
8659
|
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(n.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : es(e, t);
|
8660
8660
|
}
|
8661
8661
|
function xh(e, t) {
|
8662
|
-
t.tagID === n.HTML ?
|
8662
|
+
t.tagID === n.HTML ? Ne(e, t) : Pa(e, t);
|
8663
8663
|
}
|
8664
8664
|
function Au(e, t) {
|
8665
8665
|
var a;
|
@@ -8678,7 +8678,7 @@ function Pa(e, t) {
|
|
8678
8678
|
function Oh(e, t) {
|
8679
8679
|
switch (t.tagID) {
|
8680
8680
|
case n.HTML: {
|
8681
|
-
|
8681
|
+
Ne(e, t);
|
8682
8682
|
break;
|
8683
8683
|
}
|
8684
8684
|
case n.FRAMESET: {
|
@@ -8701,7 +8701,7 @@ function Dh(e, t) {
|
|
8701
8701
|
function vh(e, t) {
|
8702
8702
|
switch (t.tagID) {
|
8703
8703
|
case n.HTML: {
|
8704
|
-
|
8704
|
+
Ne(e, t);
|
8705
8705
|
break;
|
8706
8706
|
}
|
8707
8707
|
case n.NOFRAMES: {
|
@@ -8714,7 +8714,7 @@ function Lh(e, t) {
|
|
8714
8714
|
t.tagID === n.HTML && (e.insertionMode = m.AFTER_AFTER_FRAMESET);
|
8715
8715
|
}
|
8716
8716
|
function yh(e, t) {
|
8717
|
-
t.tagID === n.HTML ?
|
8717
|
+
t.tagID === n.HTML ? Ne(e, t) : Na(e, t);
|
8718
8718
|
}
|
8719
8719
|
function Na(e, t) {
|
8720
8720
|
e.insertionMode = m.IN_BODY, $a(e, t);
|
@@ -8722,7 +8722,7 @@ function Na(e, t) {
|
|
8722
8722
|
function Rh(e, t) {
|
8723
8723
|
switch (t.tagID) {
|
8724
8724
|
case n.HTML: {
|
8725
|
-
|
8725
|
+
Ne(e, t);
|
8726
8726
|
break;
|
8727
8727
|
}
|
8728
8728
|
case n.NOFRAMES: {
|
@@ -9788,8 +9788,8 @@ function md(e, t, a, i, s, u) {
|
|
9788
9788
|
src: r.thumbUrl,
|
9789
9789
|
alt: "preview",
|
9790
9790
|
class: "w-12 h-12 object-cover rounded"
|
9791
|
-
}, null, 8, dd)) :
|
9792
|
-
x("span", null,
|
9791
|
+
}, null, 8, dd)) : Y("", !0),
|
9792
|
+
x("span", null, Ie(r.name), 1)
|
9793
9793
|
]),
|
9794
9794
|
x("div", null, [
|
9795
9795
|
x("button", {
|
@@ -9798,12 +9798,13 @@ function md(e, t, a, i, s, u) {
|
|
9798
9798
|
}, " 删除 ", 8, fd)
|
9799
9799
|
])
|
9800
9800
|
]))), 128))
|
9801
|
-
])) :
|
9801
|
+
])) : Y("", !0)
|
9802
9802
|
]);
|
9803
9803
|
}
|
9804
9804
|
const Ed = /* @__PURE__ */ ct(rd, [["render", md], ["__scopeId", "data-v-dcbfe0e5"]]), Td = {
|
9805
9805
|
key: 0,
|
9806
9806
|
"date-action": "1",
|
9807
|
+
contenteditable: "false",
|
9807
9808
|
class: "text-red-500 text-xs mt-1"
|
9808
9809
|
}, pd = /* @__PURE__ */ Qe({
|
9809
9810
|
__name: "ElementRenderer",
|
@@ -9915,7 +9916,7 @@ const Ed = /* @__PURE__ */ ct(rd, [["render", md], ["__scopeId", "data-v-dcbfe0e
|
|
9915
9916
|
const O = { ...a.element };
|
9916
9917
|
i("blockAction", { action: "add", element: a.element, newBlock: O });
|
9917
9918
|
}
|
9918
|
-
function
|
9919
|
+
function H() {
|
9919
9920
|
g(a.element), i("blockAction", { action: "moveUp", element: a.element });
|
9920
9921
|
}
|
9921
9922
|
function g(O) {
|
@@ -9991,7 +9992,7 @@ const Ed = /* @__PURE__ */ ct(rd, [["render", md], ["__scopeId", "data-v-dcbfe0e
|
|
9991
9992
|
onInput: Q
|
9992
9993
|
}), {
|
9993
9994
|
default: Ca(() => [
|
9994
|
-
oi(
|
9995
|
+
oi(Ie(a.element.text), 1),
|
9995
9996
|
a.element.children && a.element.children.length ? (L(), k(Qt, { key: 0 }, [
|
9996
9997
|
(L(!0), k(Qt, null, Ri(a.element.children, (be, A) => (L(), gt(ue, {
|
9997
9998
|
mode: e.mode,
|
@@ -10024,7 +10025,7 @@ const Ed = /* @__PURE__ */ ct(rd, [["render", md], ["__scopeId", "data-v-dcbfe0e
|
|
10024
10025
|
}, " + "),
|
10025
10026
|
x("button", {
|
10026
10027
|
class: "flex-none px-2 py-1 bg-gray-300 text-white rounded",
|
10027
|
-
onClick: we(
|
10028
|
+
onClick: we(H, ["stop"])
|
10028
10029
|
}, " ⬅️ "),
|
10029
10030
|
x("button", {
|
10030
10031
|
class: "flex-none px-2 py-1 bg-gray-300 text-white rounded",
|
@@ -10034,18 +10035,18 @@ const Ed = /* @__PURE__ */ ct(rd, [["render", md], ["__scopeId", "data-v-dcbfe0e
|
|
10034
10035
|
class: "flex-none px-2 py-1 bg-red-500 text-white rounded",
|
10035
10036
|
onClick: we($, ["stop"])
|
10036
10037
|
}, " ✖ ")
|
10037
|
-
])) :
|
10038
|
-
], 64)) :
|
10038
|
+
])) : Y("", !0)
|
10039
|
+
], 64)) : Y("", !0),
|
10039
10040
|
a.element.type === Oe(Z).Icon ? (L(), k("div", {
|
10040
10041
|
key: 1,
|
10041
10042
|
class: "cursor-pointer rounded-sm w-5 h-5 flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80",
|
10042
10043
|
contenteditable: "false",
|
10043
10044
|
onClick: v[1] || (v[1] = we(() => Ae(a.element), ["stop"]))
|
10044
|
-
}, " ↑ ")) :
|
10045
|
+
}, " ↑ ")) : Y("", !0)
|
10045
10046
|
]),
|
10046
10047
|
_: 1
|
10047
10048
|
}, 16, ["class", "contenteditable"])),
|
10048
|
-
a.element.type == Oe(Z).Text && o.value ? (L(), k("div", Td,
|
10049
|
+
a.element.type == Oe(Z).Text && o.value ? (L(), k("div", Td, Ie(c.value), 1)) : Y("", !0),
|
10049
10050
|
a.element.type === Oe(Z).Image ? (L(), k("div", {
|
10050
10051
|
key: 1,
|
10051
10052
|
class: "cursor-pointer rounded-sm flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80",
|
@@ -10063,11 +10064,11 @@ const Ed = /* @__PURE__ */ ct(rd, [["render", md], ["__scopeId", "data-v-dcbfe0e
|
|
10063
10064
|
])),
|
10064
10065
|
_: 1
|
10065
10066
|
})
|
10066
|
-
])) :
|
10067
|
+
])) : Y("", !0)
|
10067
10068
|
], 64);
|
10068
10069
|
};
|
10069
10070
|
}
|
10070
|
-
}), bd = /* @__PURE__ */ ct(pd, [["__scopeId", "data-v-
|
10071
|
+
}), bd = /* @__PURE__ */ ct(pd, [["__scopeId", "data-v-b2d8bc68"]]), gd = Qe({
|
10071
10072
|
name: "GpCheckbox",
|
10072
10073
|
props: {
|
10073
10074
|
modelValue: {
|
@@ -10098,7 +10099,7 @@ function Id(e, t, a, i, s, u) {
|
|
10098
10099
|
class: "custom-checkbox",
|
10099
10100
|
"aria-checked": e.modelValue
|
10100
10101
|
}, null, 40, Nd),
|
10101
|
-
x("span", Cd,
|
10102
|
+
x("span", Cd, Ie(e.label), 1)
|
10102
10103
|
])
|
10103
10104
|
]);
|
10104
10105
|
}
|
@@ -10177,19 +10178,19 @@ function Rd(e, t, a, i, s, u) {
|
|
10177
10178
|
}, [
|
10178
10179
|
e.icon ? (L(), k("span", Od, [
|
10179
10180
|
Xt(e.$slots, "icon", {}, () => [
|
10180
|
-
e.type === "success" ? (L(), k("span", Dd, "✔")) :
|
10181
|
-
e.type === "error" ? (L(), k("span", vd, "✖")) :
|
10182
|
-
e.type === "info" ? (L(), k("span", Ld, "ℹ")) :
|
10183
|
-
e.type === "warning" ? (L(), k("span", yd, "⚠")) :
|
10181
|
+
e.type === "success" ? (L(), k("span", Dd, "✔")) : Y("", !0),
|
10182
|
+
e.type === "error" ? (L(), k("span", vd, "✖")) : Y("", !0),
|
10183
|
+
e.type === "info" ? (L(), k("span", Ld, "ℹ")) : Y("", !0),
|
10184
|
+
e.type === "warning" ? (L(), k("span", yd, "⚠")) : Y("", !0)
|
10184
10185
|
], !0)
|
10185
|
-
])) :
|
10186
|
-
x("span", null,
|
10186
|
+
])) : Y("", !0),
|
10187
|
+
x("span", null, Ie(e.message), 1),
|
10187
10188
|
x("button", {
|
10188
10189
|
class: "close-btn hover:text-gray-800 font-bold",
|
10189
10190
|
onClick: t[0] || (t[0] = (...r) => e.closeMessage && e.closeMessage(...r))
|
10190
10191
|
}, " × ")
|
10191
10192
|
], 2)
|
10192
|
-
])) :
|
10193
|
+
])) : Y("", !0)
|
10193
10194
|
]),
|
10194
10195
|
_: 3
|
10195
10196
|
});
|
@@ -10344,11 +10345,11 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10344
10345
|
s.value ? (L(), k("div", Bd, [
|
10345
10346
|
s.value.text !== void 0 ? (L(), k("div", Ud, [
|
10346
10347
|
o[11] || (o[11] = x("label", { class: "block" }, "内容", -1)),
|
10347
|
-
x("div", Fd,
|
10348
|
-
])) :
|
10348
|
+
x("div", Fd, Ie(s.value.text || "-"), 1)
|
10349
|
+
])) : Y("", !0),
|
10349
10350
|
x("div", null, [
|
10350
10351
|
o[12] || (o[12] = x("label", { class: "block mt-4" }, "节点", -1)),
|
10351
|
-
x("div", Hd,
|
10352
|
+
x("div", Hd, Ie(s.value.xpath), 1)
|
10352
10353
|
]),
|
10353
10354
|
x("div", null, [
|
10354
10355
|
o[14] || (o[14] = x("label", { class: "block mt-4" }, "类型", -1)),
|
@@ -10375,7 +10376,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10375
10376
|
}, null, 512), [
|
10376
10377
|
[St, s.value.rule.minText]
|
10377
10378
|
])
|
10378
|
-
])) :
|
10379
|
+
])) : Y("", !0),
|
10379
10380
|
s.value.type == Oe(Z).Text ? (L(), k("div", qd, [
|
10380
10381
|
o[16] || (o[16] = x("label", { class: "block mt-4" }, "最大文本长度", -1)),
|
10381
10382
|
ht(x("input", {
|
@@ -10384,7 +10385,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10384
10385
|
}, null, 512), [
|
10385
10386
|
[St, s.value.rule.maxText]
|
10386
10387
|
])
|
10387
|
-
])) :
|
10388
|
+
])) : Y("", !0),
|
10388
10389
|
s.value.type == Oe(Z).Image ? (L(), k("div", Vd, [
|
10389
10390
|
o[17] || (o[17] = x("label", { class: "block mt-4" }, "是否裁剪", -1)),
|
10390
10391
|
pt(ba, {
|
@@ -10393,7 +10394,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10393
10394
|
"onUpdate:modelValue": o[3] || (o[3] = (c) => s.value.rule.crop = c),
|
10394
10395
|
label: "是"
|
10395
10396
|
}, null, 8, ["modelValue"])
|
10396
|
-
])) :
|
10397
|
+
])) : Y("", !0),
|
10397
10398
|
s.value.type == Oe(Z).Image ? (L(), k("div", $d, [
|
10398
10399
|
o[18] || (o[18] = x("label", { class: "block mt-4" }, "图片宽度", -1)),
|
10399
10400
|
ht(x("input", {
|
@@ -10402,7 +10403,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10402
10403
|
}, null, 512), [
|
10403
10404
|
[St, s.value.rule.minImageWidth]
|
10404
10405
|
])
|
10405
|
-
])) :
|
10406
|
+
])) : Y("", !0),
|
10406
10407
|
s.value.type == Oe(Z).Image ? (L(), k("div", Wd, [
|
10407
10408
|
o[19] || (o[19] = x("label", { class: "block mt-4" }, "图片高度", -1)),
|
10408
10409
|
ht(x("input", {
|
@@ -10411,7 +10412,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10411
10412
|
}, null, 512), [
|
10412
10413
|
[St, s.value.rule.maxImageHeight]
|
10413
10414
|
])
|
10414
|
-
])) :
|
10415
|
+
])) : Y("", !0),
|
10415
10416
|
s.value.type == Oe(Z).Block ? (L(), k("div", Gd, [
|
10416
10417
|
o[20] || (o[20] = x("label", { class: "block mt-4" }, "块最小数量", -1)),
|
10417
10418
|
ht(x("input", {
|
@@ -10420,7 +10421,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10420
10421
|
}, null, 512), [
|
10421
10422
|
[St, s.value.rule.minBlock]
|
10422
10423
|
])
|
10423
|
-
])) :
|
10424
|
+
])) : Y("", !0),
|
10424
10425
|
s.value.type == Oe(Z).Block ? (L(), k("div", Xd, [
|
10425
10426
|
o[21] || (o[21] = x("label", { class: "block mt-4" }, "块最大数量", -1)),
|
10426
10427
|
ht(x("input", {
|
@@ -10429,7 +10430,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10429
10430
|
}, null, 512), [
|
10430
10431
|
[St, s.value.rule.maxBlock]
|
10431
10432
|
])
|
10432
|
-
])) :
|
10433
|
+
])) : Y("", !0),
|
10433
10434
|
s.value.type == Oe(Z).Text || s.value.type == Oe(Z).Icon ? (L(), k("div", Qd, [
|
10434
10435
|
o[22] || (o[22] = x("label", { class: "block mt-4" }, "主题色", -1)),
|
10435
10436
|
pt(ba, {
|
@@ -10438,7 +10439,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10438
10439
|
"onUpdate:modelValue": o[8] || (o[8] = (c) => s.value.rule.isThemeColor = c),
|
10439
10440
|
label: "是"
|
10440
10441
|
}, null, 8, ["modelValue"])
|
10441
|
-
])) :
|
10442
|
+
])) : Y("", !0),
|
10442
10443
|
x("div", null, [
|
10443
10444
|
o[23] || (o[23] = x("label", { class: "block mt-4" }, "是否必填", -1)),
|
10444
10445
|
pt(ba, {
|
@@ -10457,7 +10458,7 @@ const Bd = { key: 0 }, Ud = { key: 0 }, Fd = { class: "text-gray-500 my-2" }, Hd
|
|
10457
10458
|
label: "是"
|
10458
10459
|
}, null, 8, ["modelValue"])
|
10459
10460
|
])
|
10460
|
-
])) :
|
10461
|
+
])) : Y("", !0),
|
10461
10462
|
x("button", {
|
10462
10463
|
onClick: u,
|
10463
10464
|
class: "mt-4 p-2 bg-green-500 text-white rounded"
|
@@ -10903,7 +10904,7 @@ function xf(e) {
|
|
10903
10904
|
};
|
10904
10905
|
}
|
10905
10906
|
function Of(e, t, a, i) {
|
10906
|
-
var s = t.aspectRatio, u = t.naturalWidth, r = t.naturalHeight, o = t.rotate, c = o === void 0 ? 0 : o, h = t.scaleX, f = h === void 0 ? 1 : h, E = t.scaleY, T = E === void 0 ? 1 : E, _ = a.aspectRatio, C = a.naturalWidth, y = a.naturalHeight, M = i.fillColor, B = M === void 0 ? "transparent" : M, Q = i.imageSmoothingEnabled, X = Q === void 0 ? !0 : Q, ne = i.imageSmoothingQuality,
|
10907
|
+
var s = t.aspectRatio, u = t.naturalWidth, r = t.naturalHeight, o = t.rotate, c = o === void 0 ? 0 : o, h = t.scaleX, f = h === void 0 ? 1 : h, E = t.scaleY, T = E === void 0 ? 1 : E, _ = a.aspectRatio, C = a.naturalWidth, y = a.naturalHeight, M = i.fillColor, B = M === void 0 ? "transparent" : M, Q = i.imageSmoothingEnabled, X = Q === void 0 ? !0 : Q, ne = i.imageSmoothingQuality, H = ne === void 0 ? "low" : ne, g = i.maxWidth, F = g === void 0 ? 1 / 0 : g, $ = i.maxHeight, ce = $ === void 0 ? 1 / 0 : $, Ae = i.minWidth, Fe = Ae === void 0 ? 0 : Ae, Me = i.minHeight, Pe = Me === void 0 ? 0 : Me, pe = document.createElement("canvas"), ee = pe.getContext("2d"), ye = ut({
|
10907
10908
|
aspectRatio: _,
|
10908
10909
|
width: F,
|
10909
10910
|
height: ce
|
@@ -10920,7 +10921,7 @@ function Of(e, t, a, i) {
|
|
10920
10921
|
width: Fe,
|
10921
10922
|
height: Pe
|
10922
10923
|
}, "cover"), be = Math.min(v.width, Math.max(ue.width, u)), A = Math.min(v.height, Math.max(ue.height, r)), D = [-be / 2, -A / 2, be, A];
|
10923
|
-
return pe.width = Rt(Ze), pe.height = Rt(O), ee.fillStyle = B, ee.fillRect(0, 0, Ze, O), ee.save(), ee.translate(Ze / 2, O / 2), ee.rotate(c * Math.PI / 180), ee.scale(f, T), ee.imageSmoothingEnabled = X, ee.imageSmoothingQuality =
|
10924
|
+
return pe.width = Rt(Ze), pe.height = Rt(O), ee.fillStyle = B, ee.fillRect(0, 0, Ze, O), ee.save(), ee.translate(Ze / 2, O / 2), ee.rotate(c * Math.PI / 180), ee.scale(f, T), ee.imageSmoothingEnabled = X, ee.imageSmoothingQuality = H, ee.drawImage.apply(ee, [e].concat(Ou(D.map(function(w) {
|
10924
10925
|
return Math.floor(Rt(w));
|
10925
10926
|
})))), ee.restore(), pe;
|
10926
10927
|
}
|
@@ -11243,9 +11244,9 @@ var Pf = {
|
|
11243
11244
|
change: function(t) {
|
11244
11245
|
var a = this.options, i = this.canvasData, s = this.containerData, u = this.cropBoxData, r = this.pointers, o = this.action, c = a.aspectRatio, h = u.left, f = u.top, E = u.width, T = u.height, _ = h + E, C = f + T, y = 0, M = 0, B = s.width, Q = s.height, X = !0, ne;
|
11245
11246
|
!c && t.shiftKey && (c = E && T ? E / T : 1), this.limited && (y = u.minLeft, M = u.minTop, B = y + Math.min(s.width, i.width, i.left + i.width), Q = M + Math.min(s.height, i.height, i.top + i.height));
|
11246
|
-
var
|
11247
|
-
x:
|
11248
|
-
y:
|
11247
|
+
var H = r[Object.keys(r)[0]], g = {
|
11248
|
+
x: H.endX - H.startX,
|
11249
|
+
y: H.endY - H.startY
|
11249
11250
|
}, F = function(ce) {
|
11250
11251
|
switch (ce) {
|
11251
11252
|
case ft:
|
@@ -11349,7 +11350,7 @@ var Pf = {
|
|
11349
11350
|
X = !1;
|
11350
11351
|
break;
|
11351
11352
|
}
|
11352
|
-
ne = Uu(this.cropper), h =
|
11353
|
+
ne = Uu(this.cropper), h = H.startX - ne.left, f = H.startY - ne.top, E = u.minWidth, T = u.minHeight, g.x > 0 ? o = g.y > 0 ? $t : qt : g.x < 0 && (h -= E, o = g.y > 0 ? Wt : Vt), g.y < 0 && (f -= T), this.cropped || (Ge(this.cropBox, ve), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
11353
11354
|
break;
|
11354
11355
|
}
|
11355
11356
|
X && (u.width = E, u.height = T, u.left = h, u.top = f, this.action = o, this.renderCropBox()), le(r, function($) {
|
@@ -11636,8 +11637,8 @@ var Pf = {
|
|
11636
11637
|
M.width = Rt(C), M.height = Rt(y), B.fillStyle = t.fillColor || "transparent", B.fillRect(0, 0, C, y);
|
11637
11638
|
var Q = t.imageSmoothingEnabled, X = Q === void 0 ? !0 : Q, ne = t.imageSmoothingQuality;
|
11638
11639
|
B.imageSmoothingEnabled = X, ne && (B.imageSmoothingQuality = ne);
|
11639
|
-
var
|
11640
|
-
F <= -o || F >
|
11640
|
+
var H = i.width, g = i.height, F = u, $ = r, ce, Ae, Fe, Me, Pe, pe;
|
11641
|
+
F <= -o || F > H ? (F = 0, ce = 0, Fe = 0, Pe = 0) : F <= 0 ? (Fe = -F, F = 0, ce = Math.min(H, o + F), Pe = ce) : F <= H && (Fe = 0, ce = Math.min(o, H - F), Pe = ce), ce <= 0 || $ <= -c || $ > g ? ($ = 0, Ae = 0, Me = 0, pe = 0) : $ <= 0 ? (Me = -$, $ = 0, Ae = Math.min(g, c + $), pe = Ae) : $ <= g && (Me = 0, Ae = Math.min(c, g - $), pe = Ae);
|
11641
11642
|
var ee = [F, $, ce, Ae];
|
11642
11643
|
if (Pe > 0 && pe > 0) {
|
11643
11644
|
var ye = C / o;
|
@@ -11882,9 +11883,9 @@ const qf = {
|
|
11882
11883
|
// 裁剪前的图片
|
11883
11884
|
image: null,
|
11884
11885
|
myCropper: null
|
11885
|
-
}), h = G("image/jpeg"), f = (
|
11886
|
-
console.log(
|
11887
|
-
const g =
|
11886
|
+
}), h = G("image/jpeg"), f = (H) => {
|
11887
|
+
console.log(H);
|
11888
|
+
const g = H.target.files[0];
|
11888
11889
|
if (g) {
|
11889
11890
|
g.name && (s.value.inputValue = g.name);
|
11890
11891
|
const F = new FileReader();
|
@@ -11894,25 +11895,25 @@ const qf = {
|
|
11894
11895
|
}, F.readAsDataURL(g);
|
11895
11896
|
}
|
11896
11897
|
};
|
11897
|
-
async function E(
|
11898
|
-
if (!
|
11898
|
+
async function E(H) {
|
11899
|
+
if (!H)
|
11899
11900
|
return;
|
11900
11901
|
await ne();
|
11901
|
-
const g =
|
11902
|
+
const g = H;
|
11902
11903
|
c.value.image = g, c.value.image && T();
|
11903
11904
|
}
|
11904
11905
|
function T() {
|
11905
|
-
const
|
11906
|
-
|
11906
|
+
const H = document.querySelector("#imgId");
|
11907
|
+
H && H.addEventListener("load", () => {
|
11907
11908
|
X(), c.value.myCropper = new Hu(
|
11908
|
-
|
11909
|
+
H,
|
11909
11910
|
r.value
|
11910
11911
|
);
|
11911
11912
|
});
|
11912
11913
|
}
|
11913
11914
|
const _ = G(!1), C = G();
|
11914
|
-
function y(
|
11915
|
-
C.value = $, u.value =
|
11915
|
+
function y(H, g, F, $) {
|
11916
|
+
C.value = $, u.value = H, H && H.aspectRatio && (r.value.aspectRatio = H.aspectRatio), F && (s.value.inputValue = F), _.value = !0, g && E(g);
|
11916
11917
|
}
|
11917
11918
|
function M() {
|
11918
11919
|
_.value = !1;
|
@@ -11929,11 +11930,11 @@ const qf = {
|
|
11929
11930
|
width: (F = u.value) == null ? void 0 : F.width
|
11930
11931
|
// 输出图片的宽
|
11931
11932
|
}).toDataURL(h.value);
|
11932
|
-
const
|
11933
|
+
const H = Yf(
|
11933
11934
|
c.value.afterImg,
|
11934
11935
|
s.value.inputValue
|
11935
11936
|
);
|
11936
|
-
i("ok", { options:
|
11937
|
+
i("ok", { options: H, element: C.value }), o.value = !1, ne(), X(), M();
|
11937
11938
|
};
|
11938
11939
|
function Q() {
|
11939
11940
|
ne(), X(), M(), i("cancel");
|
@@ -11944,7 +11945,7 @@ const qf = {
|
|
11944
11945
|
function ne() {
|
11945
11946
|
c.value.image = "";
|
11946
11947
|
}
|
11947
|
-
return t({ handleCloseCropper: M, handleOpenCropper: y }), (
|
11948
|
+
return t({ handleCloseCropper: M, handleOpenCropper: y }), (H, g) => {
|
11948
11949
|
var F, $, ce;
|
11949
11950
|
return _.value ? (L(), k("div", qf, [
|
11950
11951
|
x("div", Vf, [
|
@@ -11982,7 +11983,7 @@ const qf = {
|
|
11982
11983
|
x("div", Zf, [
|
11983
11984
|
x("div", Jf, [
|
11984
11985
|
x("div", e1, [
|
11985
|
-
c.value.image ?
|
11986
|
+
c.value.image ? Y("", !0) : (L(), k("div", t1, " 请上传图片 ")),
|
11986
11987
|
x("img", {
|
11987
11988
|
id: "imgId",
|
11988
11989
|
src: c.value.image,
|
@@ -11992,7 +11993,7 @@ const qf = {
|
|
11992
11993
|
]),
|
11993
11994
|
x("div", i1, [
|
11994
11995
|
g[4] || (g[4] = x("div", { class: "before w-[270px] h-[200px] pr-[70px] border" }, null, -1)),
|
11995
|
-
x("div", s1, " 预览画像 " +
|
11996
|
+
x("div", s1, " 预览画像 " + Ie(((F = u.value) == null ? void 0 : F.width) || "") + " " + Ie(($ = u.value) != null && $.width ? "x" : "") + " " + Ie(((ce = u.value) == null ? void 0 : ce.height) || ""), 1)
|
11996
11997
|
])
|
11997
11998
|
])
|
11998
11999
|
])
|
@@ -12013,7 +12014,7 @@ const qf = {
|
|
12013
12014
|
])
|
12014
12015
|
])
|
12015
12016
|
])
|
12016
|
-
])) :
|
12017
|
+
])) : Y("", !0);
|
12017
12018
|
};
|
12018
12019
|
}
|
12019
12020
|
}), o1 = Qe({
|
@@ -12102,7 +12103,7 @@ function p1(e, t, a, i, s, u) {
|
|
12102
12103
|
}, [
|
12103
12104
|
x("div", d1, [
|
12104
12105
|
x("div", f1, [
|
12105
|
-
e.title ? (L(), k("h3", m1,
|
12106
|
+
e.title ? (L(), k("h3", m1, Ie(e.title), 1)) : Y("", !0),
|
12106
12107
|
Xt(e.$slots, "header"),
|
12107
12108
|
e.showCloseButton ? (L(), k("button", {
|
12108
12109
|
key: 1,
|
@@ -12122,7 +12123,7 @@ function p1(e, t, a, i, s, u) {
|
|
12122
12123
|
"clip-rule": "evenodd"
|
12123
12124
|
})
|
12124
12125
|
], -1)
|
12125
|
-
]))) :
|
12126
|
+
]))) : Y("", !0)
|
12126
12127
|
]),
|
12127
12128
|
x("div", E1, [
|
12128
12129
|
Xt(e.$slots, "default")
|
@@ -12133,16 +12134,16 @@ function p1(e, t, a, i, s, u) {
|
|
12133
12134
|
key: 0,
|
12134
12135
|
class: "px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded hover:bg-gray-200",
|
12135
12136
|
onClick: t[1] || (t[1] = (...r) => e.onCancel && e.onCancel(...r))
|
12136
|
-
},
|
12137
|
+
}, Ie(e.cancelText), 1)) : Y("", !0),
|
12137
12138
|
e.showOkButton ? (L(), k("button", {
|
12138
12139
|
key: 1,
|
12139
12140
|
class: "px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded hover:bg-blue-700",
|
12140
12141
|
onClick: t[2] || (t[2] = (...r) => e.onOk && e.onOk(...r))
|
12141
|
-
},
|
12142
|
+
}, Ie(e.okText), 1)) : Y("", !0)
|
12142
12143
|
])
|
12143
|
-
])) :
|
12144
|
+
])) : Y("", !0)
|
12144
12145
|
])
|
12145
|
-
])) :
|
12146
|
+
])) : Y("", !0);
|
12146
12147
|
}
|
12147
12148
|
const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex flex-wrap max-h-[500px] overflow-y-auto w-[640px]" }, _1 = /* @__PURE__ */ Qe({
|
12148
12149
|
__name: "IconModal",
|
@@ -12203,12 +12204,9 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12203
12204
|
key: 0,
|
12204
12205
|
class: "text-lg font-bold border-b p-2"
|
12205
12206
|
}, D1 = { class: "p-2" }, v1 = {
|
12206
|
-
key: 0,
|
12207
|
-
class: "text-red-500 text-xs mt-2"
|
12208
|
-
}, L1 = {
|
12209
12207
|
key: 0,
|
12210
12208
|
class: "text-lg font-bold border-b p-2"
|
12211
|
-
},
|
12209
|
+
}, L1 = { class: "text-sm font-thin text-gray-500" }, y1 = { class: "p-2" }, R1 = /* @__PURE__ */ Qe({
|
12212
12210
|
__name: "Designer",
|
12213
12211
|
props: {
|
12214
12212
|
mode: { default: "design" },
|
@@ -12233,7 +12231,7 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12233
12231
|
), at(
|
12234
12232
|
() => s.value,
|
12235
12233
|
(A) => {
|
12236
|
-
A && (u.value =
|
12234
|
+
A && (u.value = H(A));
|
12237
12235
|
},
|
12238
12236
|
{ immediate: !0 }
|
12239
12237
|
), at(
|
@@ -12291,7 +12289,7 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12291
12289
|
((w = A.children) == null ? void 0 : w.length) === ((q = D.children) == null ? void 0 : q.length);
|
12292
12290
|
}
|
12293
12291
|
function X(A) {
|
12294
|
-
var w, q, re,
|
12292
|
+
var w, q, re, Ce;
|
12295
12293
|
if (T.value.xpath == A.xpath) {
|
12296
12294
|
if (T.value) {
|
12297
12295
|
if (A.type === Z.Block) {
|
@@ -12327,7 +12325,7 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12327
12325
|
te.tag === T.value.tag && (te.rule = A.rule, te.type = A.type, (ge = te.attrs.class) != null && ge.includes(" mb40 relative") || (te.attrs.class += " mb40 relative"));
|
12328
12326
|
}));
|
12329
12327
|
} else
|
12330
|
-
(
|
12328
|
+
(Ce = T.value.attrs.class) != null && Ce.includes(" mb40 relative") && (T.value.attrs.class = T.value.attrs.class.replace(" mb40 relative", " "));
|
12331
12329
|
}
|
12332
12330
|
J.success("保存成功");
|
12333
12331
|
}
|
@@ -12335,7 +12333,7 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12335
12333
|
function ne(A) {
|
12336
12334
|
c.value = A;
|
12337
12335
|
}
|
12338
|
-
function
|
12336
|
+
function H(A) {
|
12339
12337
|
h = Ys(A);
|
12340
12338
|
const D = h("body").children().toArray().map((w) => g(h(w)));
|
12341
12339
|
return c.value = h("body").html() || "", D[0];
|
@@ -12352,7 +12350,7 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12352
12350
|
}
|
12353
12351
|
return "/html/" + ge.join("/");
|
12354
12352
|
}
|
12355
|
-
const q = w(A).replace("/html/body[1]", ""), re = A.children().toArray().map((te) => g(h(te), q)),
|
12353
|
+
const q = w(A).replace("/html/body[1]", ""), re = A.children().toArray().map((te) => g(h(te), q)), Ce = (he = a.rules) == null ? void 0 : he.find((te) => te.xpath === q);
|
12356
12354
|
return {
|
12357
12355
|
tag: A[0].tagName,
|
12358
12356
|
text: A.contents().not(A.children()).text().trim(),
|
@@ -12360,8 +12358,8 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12360
12358
|
children: re,
|
12361
12359
|
xpath: q,
|
12362
12360
|
parentxpath: D,
|
12363
|
-
type: (
|
12364
|
-
rule: (
|
12361
|
+
type: (Ce == null ? void 0 : Ce.type) || Z.None,
|
12362
|
+
rule: (Ce == null ? void 0 : Ce.rule) || {}
|
12365
12363
|
};
|
12366
12364
|
}
|
12367
12365
|
function F(A) {
|
@@ -12397,8 +12395,8 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12397
12395
|
(ge) => ge === D
|
12398
12396
|
);
|
12399
12397
|
if (re === -1) return;
|
12400
|
-
const
|
12401
|
-
if ((A === "add" || A === "copy") &&
|
12398
|
+
const Ce = q.children.length, { minBlock: he, maxBlock: te } = D.rule;
|
12399
|
+
if ((A === "add" || A === "copy") && Ce >= (te || 1 / 0)) {
|
12402
12400
|
C.value = `无法添加更多块。最大块数量为 ${te}`, J.error(C.value);
|
12403
12401
|
return;
|
12404
12402
|
}
|
@@ -12436,7 +12434,7 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12436
12434
|
}
|
12437
12435
|
break;
|
12438
12436
|
case "delete":
|
12439
|
-
if (
|
12437
|
+
if (Ce <= (he || 0)) {
|
12440
12438
|
C.value = `无法删除更多块。最小块数量为 ${he}`, J.error(C.value);
|
12441
12439
|
return;
|
12442
12440
|
}
|
@@ -12459,8 +12457,8 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12459
12457
|
const q = new FileReader();
|
12460
12458
|
q.onload = (re) => {
|
12461
12459
|
var he;
|
12462
|
-
let
|
12463
|
-
D.attrs.src =
|
12460
|
+
let Ce = (he = re == null ? void 0 : re.target) == null ? void 0 : he.result;
|
12461
|
+
D.attrs.src = Ce, console.log(" element.attrs", D.attrs), o.value = (/* @__PURE__ */ new Date()).getTime().toString();
|
12464
12462
|
}, q.readAsDataURL(w);
|
12465
12463
|
} else
|
12466
12464
|
console.log("e2", A), D.attrs.src = w;
|
@@ -12491,8 +12489,8 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12491
12489
|
}, [
|
12492
12490
|
A.showTitle ? (L(), k("h2", N1, [
|
12493
12491
|
D[2] || (D[2] = oi(" 实时预览 ")),
|
12494
|
-
x("span", C1,
|
12495
|
-
])) :
|
12492
|
+
x("span", C1, Ie(pe.value) + "px", 1)
|
12493
|
+
])) : Y("", !0),
|
12496
12494
|
x("div", null, [
|
12497
12495
|
c.value ? (L(), k("div", {
|
12498
12496
|
key: 0,
|
@@ -12502,18 +12500,17 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12502
12500
|
innerHTML: Oe(h)("body").html()
|
12503
12501
|
}, null, 8, S1))
|
12504
12502
|
])
|
12505
|
-
], 4)) :
|
12503
|
+
], 4)) : Y("", !0),
|
12506
12504
|
A.preview ? (L(), k("div", {
|
12507
12505
|
key: 1,
|
12508
12506
|
class: "resizer",
|
12509
12507
|
onMousedown: D[0] || (D[0] = (w) => v("preview"))
|
12510
|
-
}, null, 32)) :
|
12508
|
+
}, null, 32)) : Y("", !0),
|
12511
12509
|
x("div", x1, [
|
12512
|
-
A.showTitle ? (L(), k("h2", O1, "结构渲染")) :
|
12510
|
+
A.showTitle ? (L(), k("h2", O1, "结构渲染")) : Y("", !0),
|
12513
12511
|
x("div", D1, [
|
12514
|
-
C.value ? (L(), k("div", v1, Ne(C.value), 1)) : H("", !0),
|
12515
12512
|
u.value ? (L(), gt(bd, {
|
12516
|
-
key:
|
12513
|
+
key: 0,
|
12517
12514
|
cropper: f.value,
|
12518
12515
|
icon: E.value,
|
12519
12516
|
mode: A.mode,
|
@@ -12529,31 +12526,31 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12529
12526
|
onBlockAction: ce,
|
12530
12527
|
onAddIcon: Ae,
|
12531
12528
|
onUpload: Fe
|
12532
|
-
}, null, 8, ["cropper", "icon", "mode", "icons", "r", "element", "selectedElement", "hoveredElement"])) :
|
12529
|
+
}, null, 8, ["cropper", "icon", "mode", "icons", "r", "element", "selectedElement", "hoveredElement"])) : Y("", !0)
|
12533
12530
|
])
|
12534
12531
|
]),
|
12535
12532
|
r.value == "design" ? (L(), k("div", {
|
12536
12533
|
key: 2,
|
12537
12534
|
class: "resizer",
|
12538
12535
|
onMousedown: D[1] || (D[1] = (w) => v("structure"))
|
12539
|
-
}, null, 32)) :
|
12536
|
+
}, null, 32)) : Y("", !0),
|
12540
12537
|
r.value == "design" ? (L(), k("div", {
|
12541
12538
|
key: 3,
|
12542
12539
|
class: "resize-area overflow-auto",
|
12543
12540
|
style: cs({ width: ee.value + "px" })
|
12544
12541
|
}, [
|
12545
|
-
A.showTitle ? (L(), k("h2",
|
12542
|
+
A.showTitle ? (L(), k("h2", v1, [
|
12546
12543
|
D[3] || (D[3] = oi(" 节点属性 ")),
|
12547
|
-
x("span",
|
12548
|
-
])) :
|
12549
|
-
x("div",
|
12544
|
+
x("span", L1, Ie(ee.value) + "px", 1)
|
12545
|
+
])) : Y("", !0),
|
12546
|
+
x("div", y1, [
|
12550
12547
|
T.value ? (L(), gt(zd, {
|
12551
12548
|
key: 0,
|
12552
12549
|
element: T.value,
|
12553
12550
|
onUpdateElement: X
|
12554
|
-
}, null, 8, ["element"])) :
|
12551
|
+
}, null, 8, ["element"])) : Y("", !0)
|
12555
12552
|
])
|
12556
|
-
], 4)) :
|
12553
|
+
], 4)) : Y("", !0),
|
12557
12554
|
pt(r1, {
|
12558
12555
|
ref_key: "cropperRef",
|
12559
12556
|
ref: f,
|
@@ -12567,12 +12564,12 @@ const b1 = /* @__PURE__ */ ct(h1, [["render", p1]]), g1 = { class: "p-4 flex fle
|
|
12567
12564
|
}, null, 8, ["icons"])
|
12568
12565
|
]));
|
12569
12566
|
}
|
12570
|
-
}),
|
12567
|
+
}), M1 = /* @__PURE__ */ ct(R1, [["__scopeId", "data-v-5c6c0628"]]), F1 = {
|
12571
12568
|
install(e) {
|
12572
|
-
e.component("Designer",
|
12569
|
+
e.component("Designer", M1);
|
12573
12570
|
}
|
12574
12571
|
};
|
12575
12572
|
export {
|
12576
|
-
|
12577
|
-
|
12573
|
+
M1 as Designer,
|
12574
|
+
F1 as default
|
12578
12575
|
};
|