alit-layout 1.0.18 → 1.0.20
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.es.js +607 -607
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, openBlock as s, createElementBlock as d, Fragment as E, renderList as X, createElementVNode as f, normalizeStyle as Y, unref as x, toDisplayString as V, createCommentVNode as D, ref as G, watch as
|
|
1
|
+
import { defineComponent as J, openBlock as s, createElementBlock as d, Fragment as E, renderList as X, createElementVNode as f, normalizeStyle as Y, unref as x, toDisplayString as V, createCommentVNode as D, ref as G, watch as De, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ue, createVNode as j, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Lt, inject as Rt, withDirectives as gt, provide as Wt } from "vue";
|
|
2
2
|
const rt = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -48,7 +48,7 @@ const rt = {
|
|
|
48
48
|
}, p = {
|
|
49
49
|
...Ft,
|
|
50
50
|
...at
|
|
51
|
-
},
|
|
51
|
+
}, Oe = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
53
53
|
{ name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0 },
|
|
54
54
|
{ name: "A4", code: "a4", size: "210*297mm" },
|
|
@@ -555,31 +555,31 @@ const rt = {
|
|
|
555
555
|
}, Jt = [
|
|
556
556
|
{ name: "整卷", code: lt.wide },
|
|
557
557
|
{ name: "大题", code: lt.local }
|
|
558
|
-
],
|
|
558
|
+
], qe = {
|
|
559
559
|
system: "system",
|
|
560
560
|
second: "level_2",
|
|
561
561
|
three: "level_3"
|
|
562
562
|
}, Zt = [
|
|
563
|
-
{ name: "自增", code:
|
|
564
|
-
{ name: "二级", code:
|
|
565
|
-
{ name: "三级", code:
|
|
563
|
+
{ name: "自增", code: qe.system },
|
|
564
|
+
{ name: "二级", code: qe.second },
|
|
565
|
+
{ name: "三级", code: qe.three }
|
|
566
566
|
], eo = [
|
|
567
567
|
{ name: "缩进", code: !0 },
|
|
568
568
|
{ name: "不缩进", code: !1 }
|
|
569
|
-
],
|
|
569
|
+
], Qe = {
|
|
570
570
|
auto: "auto",
|
|
571
571
|
on: "on",
|
|
572
572
|
off: "off"
|
|
573
573
|
}, to = [
|
|
574
|
-
{ name: "自动", code:
|
|
575
|
-
{ name: "开", code:
|
|
576
|
-
{ name: "关", code:
|
|
577
|
-
],
|
|
574
|
+
{ name: "自动", code: Qe.auto },
|
|
575
|
+
{ name: "开", code: Qe.on },
|
|
576
|
+
{ name: "关", code: Qe.off }
|
|
577
|
+
], je = {
|
|
578
578
|
step: "step",
|
|
579
579
|
custom: "custom"
|
|
580
580
|
}, oo = [
|
|
581
|
-
{ name: "分段", code:
|
|
582
|
-
{ name: "自编", code:
|
|
581
|
+
{ name: "分段", code: je.step },
|
|
582
|
+
{ name: "自编", code: je.custom }
|
|
583
583
|
], I = {
|
|
584
584
|
choice_1: "choice-1",
|
|
585
585
|
choice_2: "choice-2",
|
|
@@ -1427,7 +1427,7 @@ const rt = {
|
|
|
1427
1427
|
code: "star",
|
|
1428
1428
|
value: "star"
|
|
1429
1429
|
}
|
|
1430
|
-
},
|
|
1430
|
+
}, ze = {
|
|
1431
1431
|
left_down: {
|
|
1432
1432
|
name: "左下",
|
|
1433
1433
|
code: "left_down",
|
|
@@ -1466,7 +1466,7 @@ const rt = {
|
|
|
1466
1466
|
fontSize: ro,
|
|
1467
1467
|
fontWeight: io,
|
|
1468
1468
|
formatConfig: jt,
|
|
1469
|
-
halfScoreType:
|
|
1469
|
+
halfScoreType: Qe,
|
|
1470
1470
|
halfScoreTypeOption: to,
|
|
1471
1471
|
layoutMode: Vt,
|
|
1472
1472
|
otherLayout: no,
|
|
@@ -1474,16 +1474,16 @@ const rt = {
|
|
|
1474
1474
|
paddDiff: qt,
|
|
1475
1475
|
pageMargin: Ut,
|
|
1476
1476
|
pagePadding: ct,
|
|
1477
|
-
pagePointPosition:
|
|
1477
|
+
pagePointPosition: ze,
|
|
1478
1478
|
pageSize: g,
|
|
1479
1479
|
pageTitleBlockCol: Kt,
|
|
1480
|
-
paper:
|
|
1480
|
+
paper: Oe,
|
|
1481
1481
|
problemLayout: lo,
|
|
1482
1482
|
problemLayoutKey: y,
|
|
1483
1483
|
problemLayoutVal: I,
|
|
1484
1484
|
scoreLineSize: Ke,
|
|
1485
1485
|
scoreLineStyle: Ze,
|
|
1486
|
-
scoreLineType:
|
|
1486
|
+
scoreLineType: je,
|
|
1487
1487
|
scoreLineTypeOption: oo,
|
|
1488
1488
|
seatType: xe,
|
|
1489
1489
|
seatTypeOption: Xt,
|
|
@@ -1492,7 +1492,7 @@ const rt = {
|
|
|
1492
1492
|
subIndentOption: eo,
|
|
1493
1493
|
subRange: lt,
|
|
1494
1494
|
subRangeOption: Jt,
|
|
1495
|
-
subRule:
|
|
1495
|
+
subRule: qe,
|
|
1496
1496
|
subRuleOption: Zt,
|
|
1497
1497
|
toolGroup: q
|
|
1498
1498
|
}, Symbol.toStringTag, { value: "Module" })), dt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
|
|
@@ -1585,21 +1585,21 @@ const rt = {
|
|
|
1585
1585
|
padding: {}
|
|
1586
1586
|
},
|
|
1587
1587
|
setup(e) {
|
|
1588
|
-
const t = e, o = (
|
|
1588
|
+
const t = e, o = (a) => ({
|
|
1589
1589
|
lt: { left: `${t.padding.left - 20}px`, top: `${t.padding.top - 20}px` },
|
|
1590
1590
|
rt: { right: `${t.padding.right - 20}px`, top: `${t.padding.top - 20}px` },
|
|
1591
1591
|
lb: { left: `${t.padding.left - 20}px`, bottom: `${t.padding.bottom - 20}px` },
|
|
1592
1592
|
rb: { right: `${t.padding.right - 20}px`, bottom: `${t.padding.bottom - 20}px` }
|
|
1593
|
-
})[
|
|
1594
|
-
[
|
|
1593
|
+
})[a], l = () => ({
|
|
1594
|
+
[ze.left_down.code]: {
|
|
1595
1595
|
left: `${t.padding.left - 20 + 100}px`,
|
|
1596
1596
|
bottom: `${t.padding.bottom - 20}px`
|
|
1597
1597
|
},
|
|
1598
|
-
[
|
|
1598
|
+
[ze.right_up.code]: {
|
|
1599
1599
|
right: `${t.padding.right - 20 + 100}px`,
|
|
1600
1600
|
top: `${t.padding.top - 20}px`
|
|
1601
1601
|
}
|
|
1602
|
-
})[t.layout.pagePoint], n = (
|
|
1602
|
+
})[t.layout.pagePoint], n = (a, i) => {
|
|
1603
1603
|
const c = t.columnContentWidth + t.columnMargin, u = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, m = {
|
|
1604
1604
|
t: {
|
|
1605
1605
|
top: `${t.padding.top - 20}px`
|
|
@@ -1608,12 +1608,12 @@ const rt = {
|
|
|
1608
1608
|
bottom: `${t.padding.bottom - 20}px`
|
|
1609
1609
|
}
|
|
1610
1610
|
};
|
|
1611
|
-
return { left: `${
|
|
1612
|
-
}, r = (
|
|
1613
|
-
const i = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((O) => O ===
|
|
1611
|
+
return { left: `${a * c + u}px`, ...m[i] };
|
|
1612
|
+
}, r = (a) => {
|
|
1613
|
+
const i = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((O) => O === a);
|
|
1614
1614
|
return { top: `${i * m + t.padding.top - 10}px`, width: "11px", ...u };
|
|
1615
1615
|
};
|
|
1616
|
-
return (
|
|
1616
|
+
return (a, i) => {
|
|
1617
1617
|
var c;
|
|
1618
1618
|
return s(), d(E, null, [
|
|
1619
1619
|
(s(), d(E, null, X(["lt", "rt", "lb", "rb"], (u) => f("span", {
|
|
@@ -1622,7 +1622,7 @@ const rt = {
|
|
|
1622
1622
|
style: Y(o(u)),
|
|
1623
1623
|
"data-xine": x(k).point + u
|
|
1624
1624
|
}, null, 12, yo)), 64)),
|
|
1625
|
-
(s(!0), d(E, null, X((
|
|
1625
|
+
(s(!0), d(E, null, X((a.currentPage % 2 ? a.layout.backColumn : a.layout.column) - 1, (u) => (s(), d(E, { key: u }, [
|
|
1626
1626
|
(s(), d(E, null, X(["t", "b"], (m) => f("span", {
|
|
1627
1627
|
key: m,
|
|
1628
1628
|
class: "absolute bg-black w-8 point_item",
|
|
@@ -1638,32 +1638,32 @@ const rt = {
|
|
|
1638
1638
|
}, null, 12, fo)), 64)),
|
|
1639
1639
|
f("p", {
|
|
1640
1640
|
class: "absolute leading-none text-0",
|
|
1641
|
-
style: Y(
|
|
1641
|
+
style: Y(l()),
|
|
1642
1642
|
"data-xine": x(k).page
|
|
1643
1643
|
}, [
|
|
1644
|
-
(s(!0), d(E, null, X(
|
|
1644
|
+
(s(!0), d(E, null, X(a.currentPage + 1, (u, m) => (s(), d("span", {
|
|
1645
1645
|
key: u,
|
|
1646
1646
|
class: "inline-block bg-black mx-2 page_item",
|
|
1647
1647
|
"data-xine": x(k).page_item + m
|
|
1648
1648
|
}, null, 8, bo))), 128))
|
|
1649
1649
|
], 12, go),
|
|
1650
|
-
|
|
1650
|
+
a.currentPage % 2 ? D("", !0) : (s(), d("span", {
|
|
1651
1651
|
key: 0,
|
|
1652
1652
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1653
|
-
style: Y({ right: `${
|
|
1654
|
-
}, "提示:本卷" + V((c = x(
|
|
1653
|
+
style: Y({ right: `${a.padding.right - 12}px` })
|
|
1654
|
+
}, "提示:本卷" + V((c = x(Oe).find((u) => u.code === a.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
|
|
1655
1655
|
f("span", {
|
|
1656
1656
|
class: "absolute text-sm red_sheet",
|
|
1657
|
-
style: Y({ right: `${
|
|
1658
|
-
}, V(
|
|
1657
|
+
style: Y({ right: `${a.padding.bottom - 20 + 75}px`, bottom: `${a.padding.bottom - 20 - 3}px` })
|
|
1658
|
+
}, V(a.currentPage + 1) + "/" + V(a.totalPage), 5)
|
|
1659
1659
|
], 64);
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
1663
|
const de = (e, t) => {
|
|
1664
1664
|
const o = e.__vccOpts || e;
|
|
1665
|
-
for (const [
|
|
1666
|
-
o[
|
|
1665
|
+
for (const [l, n] of t)
|
|
1666
|
+
o[l] = n;
|
|
1667
1667
|
return o;
|
|
1668
1668
|
}, wo = /* @__PURE__ */ de(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1669
1669
|
key: 0,
|
|
@@ -1683,33 +1683,33 @@ const de = (e, t) => {
|
|
|
1683
1683
|
},
|
|
1684
1684
|
emits: ["change", "input", "focus", "blur"],
|
|
1685
1685
|
setup(e, { emit: t }) {
|
|
1686
|
-
const o = e,
|
|
1687
|
-
|
|
1688
|
-
|
|
1686
|
+
const o = e, l = G(o.value), n = G(!1);
|
|
1687
|
+
De(() => o.value, () => {
|
|
1688
|
+
l.value = o.value;
|
|
1689
1689
|
});
|
|
1690
1690
|
const r = (u) => {
|
|
1691
|
-
|
|
1692
|
-
},
|
|
1693
|
-
|
|
1694
|
-
|
|
1691
|
+
l.value = u.target.value, t("input", o.type === "number" ? parseFloat(l.value) : l.value);
|
|
1692
|
+
}, a = (u) => {
|
|
1693
|
+
l.value = u.target.value, t("change", o.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
|
|
1694
|
+
l.value = o.value;
|
|
1695
1695
|
}, 400);
|
|
1696
1696
|
}, i = (u) => {
|
|
1697
|
-
|
|
1697
|
+
l.value = u.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value), n.value = !0;
|
|
1698
1698
|
}, c = () => {
|
|
1699
|
-
t("blur", o.type === "number" ? parseFloat(`${
|
|
1699
|
+
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), n.value = !1;
|
|
1700
1700
|
};
|
|
1701
1701
|
return (u, m) => (s(), d("div", {
|
|
1702
|
-
class:
|
|
1702
|
+
class: te(["flex-1 flex items-center border rounded-lg", u.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
|
|
1703
1703
|
}, [
|
|
1704
1704
|
f("div", xo, [
|
|
1705
1705
|
f("input", {
|
|
1706
|
-
class:
|
|
1706
|
+
class: te(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
|
|
1707
1707
|
type: u.type,
|
|
1708
1708
|
placeholder: u.placeholder,
|
|
1709
1709
|
maxlength: u.maxLength,
|
|
1710
|
-
value:
|
|
1710
|
+
value: l.value,
|
|
1711
1711
|
onInput: r,
|
|
1712
|
-
onChange:
|
|
1712
|
+
onChange: a,
|
|
1713
1713
|
onFocus: i,
|
|
1714
1714
|
onBlur: c
|
|
1715
1715
|
}, null, 42, ko)
|
|
@@ -1725,11 +1725,11 @@ const de = (e, t) => {
|
|
|
1725
1725
|
},
|
|
1726
1726
|
emits: ["change"],
|
|
1727
1727
|
setup(e, { emit: t }) {
|
|
1728
|
-
const o = e,
|
|
1729
|
-
right: `${
|
|
1730
|
-
bottom: `${
|
|
1728
|
+
const o = e, l = A(() => ct[o.layout.mode][o.layout.paper]), n = A(() => ({
|
|
1729
|
+
right: `${l.value.right + 97}px`,
|
|
1730
|
+
bottom: `${l.value.bottom - 25}px`
|
|
1731
1731
|
}));
|
|
1732
|
-
return (r,
|
|
1732
|
+
return (r, a) => (s(), U(et, {
|
|
1733
1733
|
class: "absolute w-72 text-sm",
|
|
1734
1734
|
value: r.info.slogan,
|
|
1735
1735
|
maxLength: 12,
|
|
@@ -1738,7 +1738,7 @@ const de = (e, t) => {
|
|
|
1738
1738
|
autoLine: "",
|
|
1739
1739
|
dir: "right",
|
|
1740
1740
|
style: Y(n.value),
|
|
1741
|
-
onChange:
|
|
1741
|
+
onChange: a[0] || (a[0] = (i) => t("change", { slogin: i }))
|
|
1742
1742
|
}, null, 8, ["value", "style"]));
|
|
1743
1743
|
}
|
|
1744
1744
|
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ J({
|
|
@@ -1750,16 +1750,16 @@ const de = (e, t) => {
|
|
|
1750
1750
|
},
|
|
1751
1751
|
emits: ["click"],
|
|
1752
1752
|
setup(e, { emit: t }) {
|
|
1753
|
-
const o = e,
|
|
1753
|
+
const o = e, l = A(() => `#icon-${o.name}`);
|
|
1754
1754
|
return (n, r) => (s(), d("span", {
|
|
1755
1755
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
1756
|
-
onClick: r[0] || (r[0] = (
|
|
1756
|
+
onClick: r[0] || (r[0] = (a) => t("click"))
|
|
1757
1757
|
}, [
|
|
1758
1758
|
(s(), d("svg", {
|
|
1759
1759
|
width: n.width + "rem",
|
|
1760
1760
|
height: (n.height || n.width) + "rem"
|
|
1761
1761
|
}, [
|
|
1762
|
-
f("use", { "xlink:href":
|
|
1762
|
+
f("use", { "xlink:href": l.value }, null, 8, To)
|
|
1763
1763
|
], 8, So))
|
|
1764
1764
|
]));
|
|
1765
1765
|
}
|
|
@@ -1776,18 +1776,18 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1776
1776
|
setup(e) {
|
|
1777
1777
|
return (t, o) => (s(), d("div", Lo, [
|
|
1778
1778
|
t.layout.secrecyFlag ? (s(), d("p", Fo, [
|
|
1779
|
-
|
|
1779
|
+
Ue("绝密"),
|
|
1780
1780
|
j(ye, {
|
|
1781
1781
|
name: "fiveArrow",
|
|
1782
1782
|
width: 1.4,
|
|
1783
1783
|
class: "px-0 py-0"
|
|
1784
1784
|
}),
|
|
1785
|
-
|
|
1785
|
+
Ue("启用前")
|
|
1786
1786
|
])) : D("", !0),
|
|
1787
1787
|
f("p", Eo, "ID:" + V(t.code), 1)
|
|
1788
1788
|
]));
|
|
1789
1789
|
}
|
|
1790
|
-
}), Po = ["innerHTML"],
|
|
1790
|
+
}), Po = ["innerHTML"], Be = /* @__PURE__ */ J({
|
|
1791
1791
|
__name: "index",
|
|
1792
1792
|
props: {
|
|
1793
1793
|
value: {},
|
|
@@ -1796,13 +1796,13 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1796
1796
|
},
|
|
1797
1797
|
emits: ["change"],
|
|
1798
1798
|
setup(e, { emit: t }) {
|
|
1799
|
-
const o = e,
|
|
1799
|
+
const o = e, l = (n) => {
|
|
1800
1800
|
t("change", n.target.innerHTML, o.name);
|
|
1801
1801
|
};
|
|
1802
1802
|
return (n, r) => (s(), d("div", {
|
|
1803
1803
|
innerHTML: n.value,
|
|
1804
1804
|
contenteditable: "",
|
|
1805
|
-
onBlur:
|
|
1805
|
+
onBlur: l
|
|
1806
1806
|
}, null, 40, Po));
|
|
1807
1807
|
}
|
|
1808
1808
|
}), Do = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
|
|
@@ -1830,41 +1830,41 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1830
1830
|
},
|
|
1831
1831
|
emits: ["change"],
|
|
1832
1832
|
setup(e, { emit: t }) {
|
|
1833
|
-
const o = e,
|
|
1834
|
-
return (
|
|
1833
|
+
const o = e, l = A(() => o.data.filter((a) => ![ve.another, ve.another_choice, ve.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, i) => a + i, 0)), n = A(() => o.data.filter((a) => [ve.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, i) => a + i, 0)), r = A(() => o.layout.scoreAddStars === Ze.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
1834
|
+
return (a, i) => (s(), d("div", Do, [
|
|
1835
1835
|
f("img", {
|
|
1836
|
-
src:
|
|
1836
|
+
src: a.info.qrCode,
|
|
1837
1837
|
alt: "QRCode",
|
|
1838
1838
|
class: "flex-shrink-0 w-28 h-28",
|
|
1839
1839
|
"data-xine": x(k).art_code
|
|
1840
1840
|
}, null, 8, Ao),
|
|
1841
1841
|
f("div", No, [
|
|
1842
|
-
j(
|
|
1842
|
+
j(Be, {
|
|
1843
1843
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1844
|
-
value:
|
|
1845
|
-
style: Y(
|
|
1844
|
+
value: a.info.title,
|
|
1845
|
+
style: Y(a.fontConfig.titleStyle),
|
|
1846
1846
|
onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
|
|
1847
1847
|
}, null, 8, ["value", "style"]),
|
|
1848
|
-
|
|
1848
|
+
a.layout.secTitleFlag ? (s(), U(Be, {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1851
|
-
value:
|
|
1852
|
-
style: Y(
|
|
1851
|
+
value: a.info.secTitle,
|
|
1852
|
+
style: Y(a.fontConfig.halfTitleStyle),
|
|
1853
1853
|
onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
|
|
1854
1854
|
}, null, 8, ["value", "style"])) : D("", !0),
|
|
1855
1855
|
f("div", Bo, [
|
|
1856
|
-
|
|
1856
|
+
a.layout.examExtentFlag ? (s(), d("p", Oo, [
|
|
1857
1857
|
zo,
|
|
1858
|
-
j(
|
|
1858
|
+
j(Be, {
|
|
1859
1859
|
class: "flex-1",
|
|
1860
|
-
value:
|
|
1860
|
+
value: a.info.extent,
|
|
1861
1861
|
onChange: i[2] || (i[2] = (c) => t("change", { extent: c }))
|
|
1862
1862
|
}, null, 8, ["value"])
|
|
1863
1863
|
])) : D("", !0),
|
|
1864
|
-
|
|
1864
|
+
a.layout.examTimeFlag ? (s(), d("p", Ho, [
|
|
1865
1865
|
Ro,
|
|
1866
1866
|
j(et, {
|
|
1867
|
-
value:
|
|
1867
|
+
value: a.info.time,
|
|
1868
1868
|
class: "text-center",
|
|
1869
1869
|
type: "number",
|
|
1870
1870
|
autoLine: "",
|
|
@@ -1874,43 +1874,43 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1874
1874
|
}, null, 8, ["value"]),
|
|
1875
1875
|
Wo
|
|
1876
1876
|
])) : D("", !0),
|
|
1877
|
-
|
|
1877
|
+
a.layout.authorFlag ? (s(), d("p", Go, [
|
|
1878
1878
|
Yo,
|
|
1879
|
-
j(
|
|
1879
|
+
j(Be, {
|
|
1880
1880
|
class: "flex-1",
|
|
1881
|
-
value:
|
|
1881
|
+
value: a.info.author,
|
|
1882
1882
|
onChange: i[4] || (i[4] = (c) => t("change", { author: c }))
|
|
1883
1883
|
}, null, 8, ["value"])
|
|
1884
1884
|
])) : D("", !0),
|
|
1885
|
-
|
|
1885
|
+
a.layout.reviewerFlag ? (s(), d("p", qo, [
|
|
1886
1886
|
Qo,
|
|
1887
|
-
j(
|
|
1887
|
+
j(Be, {
|
|
1888
1888
|
class: "flex-1",
|
|
1889
|
-
value:
|
|
1889
|
+
value: a.info.reviewer,
|
|
1890
1890
|
onChange: i[5] || (i[5] = (c) => t("change", { reviewer: c }))
|
|
1891
1891
|
}, null, 8, ["value"])
|
|
1892
1892
|
])) : D("", !0),
|
|
1893
|
-
|
|
1893
|
+
a.layout.totalScoreFlag ? (s(), d("p", Uo, [
|
|
1894
1894
|
jo,
|
|
1895
1895
|
r.value ? (s(), U(ye, {
|
|
1896
1896
|
key: 0,
|
|
1897
1897
|
name: r.value,
|
|
1898
1898
|
class: "p-0 -translate-y-[1px]"
|
|
1899
1899
|
}, null, 8, ["name"])) : (s(), d("span", Ko, "分")),
|
|
1900
|
-
f("span", null, ":" + V(
|
|
1900
|
+
f("span", null, ":" + V(l.value + (a.layout.writeScoreFlag ? a.info.writeScore : 0)), 1),
|
|
1901
1901
|
r.value ? (s(), U(ye, {
|
|
1902
1902
|
key: 2,
|
|
1903
1903
|
name: r.value,
|
|
1904
1904
|
class: "p-0 -translate-y-[1px]"
|
|
1905
1905
|
}, null, 8, ["name"])) : (s(), d("span", Vo, "分")),
|
|
1906
|
-
|
|
1907
|
-
f("span", null, "(试题" + V(
|
|
1906
|
+
a.layout.writeScoreFlag ? (s(), d(E, { key: 4 }, [
|
|
1907
|
+
f("span", null, "(试题" + V(l.value), 1),
|
|
1908
1908
|
r.value ? (s(), U(ye, {
|
|
1909
1909
|
key: 0,
|
|
1910
1910
|
name: r.value,
|
|
1911
1911
|
class: "p-0 -translate-y-[1px]"
|
|
1912
1912
|
}, null, 8, ["name"])) : (s(), d("span", Xo, "分")),
|
|
1913
|
-
f("span", null, "+卷面" + V(
|
|
1913
|
+
f("span", null, "+卷面" + V(a.info.writeScore || 0), 1),
|
|
1914
1914
|
r.value ? (s(), U(ye, {
|
|
1915
1915
|
key: 2,
|
|
1916
1916
|
name: r.value,
|
|
@@ -1939,17 +1939,17 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1939
1939
|
emits: ["change"],
|
|
1940
1940
|
setup(e, { emit: t }) {
|
|
1941
1941
|
const o = ["examNumField", "examRoomField", "seatField"];
|
|
1942
|
-
return (
|
|
1942
|
+
return (l, n) => (s(), d("ul", oa, [
|
|
1943
1943
|
(s(), d(E, null, X(o, (r) => f("li", {
|
|
1944
1944
|
key: r,
|
|
1945
1945
|
class: "flex flex-1"
|
|
1946
1946
|
}, [
|
|
1947
1947
|
j(et, {
|
|
1948
|
-
value:
|
|
1948
|
+
value: l.extent[r],
|
|
1949
1949
|
class: "px-0",
|
|
1950
1950
|
placeholder: "",
|
|
1951
1951
|
autoLine: "",
|
|
1952
|
-
onChange: (
|
|
1952
|
+
onChange: (a) => t("change", { [r]: a })
|
|
1953
1953
|
}, null, 8, ["value", "onChange"])
|
|
1954
1954
|
])), 64))
|
|
1955
1955
|
]));
|
|
@@ -1966,14 +1966,14 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1966
1966
|
class: "pt-1",
|
|
1967
1967
|
name: "fiveArrow"
|
|
1968
1968
|
}),
|
|
1969
|
-
|
|
1969
|
+
Ue("座位号")
|
|
1970
1970
|
]),
|
|
1971
1971
|
f("div", {
|
|
1972
1972
|
class: "flex-1 flex flex-col",
|
|
1973
1973
|
"data-xine": x(k).en_num
|
|
1974
1974
|
}, [
|
|
1975
|
-
(s(), d(E, null, X(3, (
|
|
1976
|
-
key:
|
|
1975
|
+
(s(), d(E, null, X(3, (l, n) => f("p", {
|
|
1976
|
+
key: l,
|
|
1977
1977
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
1978
1978
|
"data-xine": x(k).en_num_group
|
|
1979
1979
|
}, [
|
|
@@ -1999,15 +1999,15 @@ const vt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
1999
1999
|
class: "px-1 pt-1",
|
|
2000
2000
|
name: "fiveArrow"
|
|
2001
2001
|
}),
|
|
2002
|
-
|
|
2002
|
+
Ue("短学号")
|
|
2003
2003
|
]),
|
|
2004
2004
|
f("div", {
|
|
2005
2005
|
class: "flex-1 flex flex-col",
|
|
2006
2006
|
"data-xine": x(k).en_num
|
|
2007
2007
|
}, [
|
|
2008
|
-
(s(), d(E, null, X(4, (
|
|
2009
|
-
key:
|
|
2010
|
-
class:
|
|
2008
|
+
(s(), d(E, null, X(4, (l, n) => f("p", {
|
|
2009
|
+
key: l,
|
|
2010
|
+
class: te(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
|
|
2011
2011
|
"data-xine": x(k).en_num_group
|
|
2012
2012
|
}, [
|
|
2013
2013
|
(s(), d(E, null, X(10, (r) => f("span", {
|
|
@@ -2028,22 +2028,22 @@ const wt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2028
2028
|
emits: ["change"],
|
|
2029
2029
|
setup(e, { emit: t }) {
|
|
2030
2030
|
const o = ["nameField", "classField", "scoreField"];
|
|
2031
|
-
return (
|
|
2031
|
+
return (l, n) => (s(), d("ul", ya, [
|
|
2032
2032
|
(s(), d(E, null, X(o, (r) => f("li", {
|
|
2033
2033
|
key: r,
|
|
2034
2034
|
class: "flex flex-1"
|
|
2035
2035
|
}, [
|
|
2036
2036
|
j(et, {
|
|
2037
|
-
value:
|
|
2037
|
+
value: l.extent[r],
|
|
2038
2038
|
class: "px-0",
|
|
2039
2039
|
placeholder: "",
|
|
2040
2040
|
autoLine: "",
|
|
2041
|
-
onChange: (
|
|
2041
|
+
onChange: (a) => t("change", { [r]: a })
|
|
2042
2042
|
}, null, 8, ["value", "onChange"])
|
|
2043
2043
|
])), 64))
|
|
2044
2044
|
]));
|
|
2045
2045
|
}
|
|
2046
|
-
}), fa = (e) => (
|
|
2046
|
+
}), fa = (e) => (He("data-v-44e44996"), e = e(), Re(), e), ga = {
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
class: "flex"
|
|
2049
2049
|
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ f("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
|
|
@@ -2057,24 +2057,24 @@ const wt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2057
2057
|
},
|
|
2058
2058
|
emits: ["change"],
|
|
2059
2059
|
setup(e, { emit: t }) {
|
|
2060
|
-
const o = e,
|
|
2060
|
+
const o = e, l = A(() => o.layout.column >= 3 && o.layout.seatType === xe.none);
|
|
2061
2061
|
return (n, r) => n.isBindFlag ? D("", !0) : (s(), d("div", ga, [
|
|
2062
|
-
|
|
2062
|
+
l.value ? (s(), d(E, { key: 0 }, [
|
|
2063
2063
|
n.layout.seatType === x(xe).none ? (s(), U(bt, {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
extent: n.info.extentInfo,
|
|
2066
|
-
onChange: r[0] || (r[0] = (
|
|
2066
|
+
onChange: r[0] || (r[0] = (a) => t("change", a))
|
|
2067
2067
|
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(vt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(wt, { key: 2 })) : D("", !0)
|
|
2068
2068
|
], 64)) : D("", !0),
|
|
2069
2069
|
j(_a, {
|
|
2070
2070
|
extent: n.info.extentInfo,
|
|
2071
|
-
onChange: r[1] || (r[1] = (
|
|
2071
|
+
onChange: r[1] || (r[1] = (a) => t("change", a))
|
|
2072
2072
|
}, null, 8, ["extent"]),
|
|
2073
|
-
|
|
2073
|
+
l.value ? D("", !0) : (s(), d(E, { key: 1 }, [
|
|
2074
2074
|
n.layout.seatType === x(xe).none ? (s(), U(bt, {
|
|
2075
2075
|
key: 0,
|
|
2076
2076
|
extent: n.info.extentInfo,
|
|
2077
|
-
onChange: r[2] || (r[2] = (
|
|
2077
|
+
onChange: r[2] || (r[2] = (a) => t("change", a))
|
|
2078
2078
|
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(vt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(wt, { key: 2 })) : D("", !0)
|
|
2079
2079
|
], 64)),
|
|
2080
2080
|
f("div", {
|
|
@@ -2084,16 +2084,16 @@ const wt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2084
2084
|
]));
|
|
2085
2085
|
}
|
|
2086
2086
|
});
|
|
2087
|
-
const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]),
|
|
2087
|
+
const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
|
|
2088
2088
|
key: 0,
|
|
2089
2089
|
class: "flex border mt-2 red_sheet"
|
|
2090
|
-
}, $a = /* @__PURE__ */
|
|
2090
|
+
}, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Pa = [
|
|
2091
2091
|
Ea,
|
|
2092
2092
|
Ma
|
|
2093
|
-
], Da = /* @__PURE__ */
|
|
2093
|
+
], Da = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2094
2094
|
/* @__PURE__ */ f("span", null, "正确填涂示例"),
|
|
2095
2095
|
/* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2096
|
-
], -1)), Aa = /* @__PURE__ */
|
|
2096
|
+
], -1)), Aa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ J({
|
|
2097
2097
|
__name: "notice",
|
|
2098
2098
|
props: {
|
|
2099
2099
|
layout: {},
|
|
@@ -2101,20 +2101,20 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2101
2101
|
},
|
|
2102
2102
|
setup(e) {
|
|
2103
2103
|
const t = e, o = A(() => {
|
|
2104
|
-
const
|
|
2104
|
+
const l = {
|
|
2105
2105
|
[xe.none]: "",
|
|
2106
2106
|
[xe.seat]: "座位号或",
|
|
2107
2107
|
[xe.shortId]: "短学号或"
|
|
2108
2108
|
};
|
|
2109
2109
|
return [
|
|
2110
|
-
`1.答题前,考生先将自己的基本信息填写清楚,并认真核对${t.isBindFlag ? "" :
|
|
2110
|
+
`1.答题前,考生先将自己的基本信息填写清楚,并认真核对${t.isBindFlag ? "" : l[t.layout.seatType]}条形码上的信息;`,
|
|
2111
2111
|
"2.选择题部分请按题号用2B铅笔填图方框,修改时用橡皮檫干净,不留痕迹;",
|
|
2112
2112
|
"3.非选择题部分请按题号用0.5毫米黑色墨水签字笔书写,否则作答无效;",
|
|
2113
2113
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2114
2114
|
];
|
|
2115
2115
|
});
|
|
2116
|
-
return (
|
|
2117
|
-
|
|
2116
|
+
return (l, n) => (s(), d(E, null, [
|
|
2117
|
+
l.layout.noteFlag ? (s(), d("div", Ca, [
|
|
2118
2118
|
$a,
|
|
2119
2119
|
f("div", Sa, [
|
|
2120
2120
|
(s(!0), d(E, null, X(o.value, (r) => (s(), d("p", {
|
|
@@ -2123,9 +2123,9 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2123
2123
|
}, V(r), 1))), 128))
|
|
2124
2124
|
])
|
|
2125
2125
|
])) : D("", !0),
|
|
2126
|
-
|
|
2126
|
+
l.layout.lackFlag ? (s(), d("div", {
|
|
2127
2127
|
key: 1,
|
|
2128
|
-
class:
|
|
2128
|
+
class: te(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2129
2129
|
}, [
|
|
2130
2130
|
f("p", Ta, [
|
|
2131
2131
|
Ia,
|
|
@@ -2143,20 +2143,20 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2143
2143
|
], 64));
|
|
2144
2144
|
}
|
|
2145
2145
|
});
|
|
2146
|
-
const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), xt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0,
|
|
2146
|
+
const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), xt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, l = "children") => {
|
|
2147
2147
|
let n = [];
|
|
2148
|
-
const r = (
|
|
2149
|
-
(l
|
|
2148
|
+
const r = (a) => {
|
|
2149
|
+
(a[l] || []).length ? (o && n.push(t ? a[t] : a[l]), a[l].forEach((i) => r(i))) : n.push(t ? a[t] : a);
|
|
2150
2150
|
};
|
|
2151
|
-
return e.forEach((
|
|
2151
|
+
return e.forEach((a) => r(a)), n.flat(5);
|
|
2152
2152
|
};
|
|
2153
2153
|
function Pt(e) {
|
|
2154
2154
|
if (e < 0 || e > 99)
|
|
2155
2155
|
throw Error("下标超限");
|
|
2156
2156
|
const t = "零一二三四五六七八九".split("");
|
|
2157
|
-
return [...Array(100)].map((
|
|
2158
|
-
const r = Math.floor(n / t.length),
|
|
2159
|
-
return r ? `${r > 1 ? t[r] : ""}十${
|
|
2157
|
+
return [...Array(100)].map((l, n) => {
|
|
2158
|
+
const r = Math.floor(n / t.length), a = n % t.length;
|
|
2159
|
+
return r ? `${r > 1 ? t[r] : ""}十${a ? t[a] : ""}` : t[a];
|
|
2160
2160
|
})[e + 1];
|
|
2161
2161
|
}
|
|
2162
2162
|
function kt(e) {
|
|
@@ -2178,14 +2178,14 @@ const za = {
|
|
|
2178
2178
|
data: {}
|
|
2179
2179
|
},
|
|
2180
2180
|
setup(e) {
|
|
2181
|
-
const t = e, o = A(() => t.data.filter((
|
|
2182
|
-
return (
|
|
2181
|
+
const t = e, o = A(() => t.data.filter((l) => l.problemType));
|
|
2182
|
+
return (l, n) => l.layout.scoreFlag ? (s(), d("ul", za, [
|
|
2183
2183
|
Ha,
|
|
2184
|
-
(s(!0), d(E, null, X(o.value, (r,
|
|
2184
|
+
(s(!0), d(E, null, X(o.value, (r, a) => (s(), d("li", {
|
|
2185
2185
|
key: r.id,
|
|
2186
2186
|
class: "flex-1 flex flex-col border-l"
|
|
2187
2187
|
}, [
|
|
2188
|
-
f("p", Ra, V(x(Pt)(
|
|
2188
|
+
f("p", Ra, V(x(Pt)(a)), 1),
|
|
2189
2189
|
Wa
|
|
2190
2190
|
]))), 128)),
|
|
2191
2191
|
Ga
|
|
@@ -2200,8 +2200,8 @@ const za = {
|
|
|
2200
2200
|
styleInfo: {}
|
|
2201
2201
|
},
|
|
2202
2202
|
setup(e, { expose: t }) {
|
|
2203
|
-
const o = e,
|
|
2204
|
-
t({ col:
|
|
2203
|
+
const o = e, l = G(), n = G();
|
|
2204
|
+
t({ col: l, colView: n });
|
|
2205
2205
|
const r = A(() => {
|
|
2206
2206
|
const { top: c, width: u, height: m, left: O } = o.styleInfo;
|
|
2207
2207
|
return {
|
|
@@ -2210,7 +2210,7 @@ const za = {
|
|
|
2210
2210
|
width: `${parseFloat(u) + $e.left + $e.right}px`,
|
|
2211
2211
|
height: `${parseFloat(m) + (o.currentColumn ? $e.top : 0) + $e.bottom}px`
|
|
2212
2212
|
};
|
|
2213
|
-
}),
|
|
2213
|
+
}), a = A(() => ({
|
|
2214
2214
|
left: `${$e.left - 1}px`,
|
|
2215
2215
|
top: `${$e.top - 1}px`,
|
|
2216
2216
|
bottom: `${$e.bottom - 1}px`,
|
|
@@ -2219,12 +2219,12 @@ const za = {
|
|
|
2219
2219
|
return (c, u) => (s(), d(E, null, [
|
|
2220
2220
|
c.showColBorder ? (s(), d("div", {
|
|
2221
2221
|
key: 0,
|
|
2222
|
-
class:
|
|
2222
|
+
class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
|
|
2223
2223
|
style: Y(r.value)
|
|
2224
2224
|
}, [
|
|
2225
2225
|
f("span", {
|
|
2226
2226
|
class: "absolute border border-black",
|
|
2227
|
-
style: Y(
|
|
2227
|
+
style: Y(a.value)
|
|
2228
2228
|
}, null, 4)
|
|
2229
2229
|
], 6)) : D("", !0),
|
|
2230
2230
|
f("div", {
|
|
@@ -2235,7 +2235,7 @@ const za = {
|
|
|
2235
2235
|
}, [
|
|
2236
2236
|
f("div", {
|
|
2237
2237
|
ref_key: "col",
|
|
2238
|
-
ref:
|
|
2238
|
+
ref: l,
|
|
2239
2239
|
class: "overflow-hidden __col__",
|
|
2240
2240
|
style: Y({ height: c.styleInfo.contentHeight })
|
|
2241
2241
|
}, [
|
|
@@ -2245,7 +2245,7 @@ const za = {
|
|
|
2245
2245
|
], 64));
|
|
2246
2246
|
}
|
|
2247
2247
|
});
|
|
2248
|
-
const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (
|
|
2248
|
+
const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), ja = ["data-xine"], Ka = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
|
|
2249
2249
|
Ka
|
|
2250
2250
|
], Xa = ["data-xine"], Ja = /* @__PURE__ */ J({
|
|
2251
2251
|
__name: "bind",
|
|
@@ -2257,21 +2257,21 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2257
2257
|
},
|
|
2258
2258
|
setup(e) {
|
|
2259
2259
|
const t = G(), o = ["学校", "班级", "准考证号", "姓名"];
|
|
2260
|
-
return (
|
|
2260
|
+
return (l, n) => l.isBindFlag ? (s(), d("div", {
|
|
2261
2261
|
key: 0,
|
|
2262
|
-
style: Y({ width: `${
|
|
2263
|
-
class:
|
|
2262
|
+
style: Y({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
|
|
2263
|
+
class: te([l.currentPage % 2 && "right_view"]),
|
|
2264
2264
|
ref_key: "view",
|
|
2265
2265
|
ref: t
|
|
2266
2266
|
}, [
|
|
2267
|
-
|
|
2267
|
+
l.currentPage % 2 ? (s(), d("div", {
|
|
2268
2268
|
key: 0,
|
|
2269
2269
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2270
|
-
style: Y({ width: `${
|
|
2270
|
+
style: Y({ width: `${l.height - 20}px`, height: `${l.width}px` })
|
|
2271
2271
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
|
|
2272
2272
|
key: 1,
|
|
2273
2273
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2274
|
-
style: Y({ width: `${
|
|
2274
|
+
style: Y({ width: `${l.height - 20}px` })
|
|
2275
2275
|
}, [
|
|
2276
2276
|
(s(), d(E, null, X(o, (r) => f("p", {
|
|
2277
2277
|
key: r,
|
|
@@ -2298,7 +2298,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2298
2298
|
layout: {}
|
|
2299
2299
|
},
|
|
2300
2300
|
setup(e) {
|
|
2301
|
-
const t = e, o = ["right", "half_right", "wrong"],
|
|
2301
|
+
const t = e, o = ["right", "half_right", "wrong"], l = A(() => {
|
|
2302
2302
|
const n = t.item.score;
|
|
2303
2303
|
return [n, Math.round(n / 2 * 100) / 100, 0];
|
|
2304
2304
|
});
|
|
@@ -2311,12 +2311,12 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2311
2311
|
class: "flex h-full divide-x divide-solid",
|
|
2312
2312
|
"data-xine": x(k).score_base
|
|
2313
2313
|
}, [
|
|
2314
|
-
(s(!0), d(E, null, X(
|
|
2314
|
+
(s(!0), d(E, null, X(l.value, (a, i) => (s(), d("li", {
|
|
2315
2315
|
class: "flex items-center justify-center relative score_line",
|
|
2316
2316
|
style: Y({ width: `${x(Ke)[n.layout.scoreLineSize].value}px` }),
|
|
2317
2317
|
"data-xine": x(k).score_item
|
|
2318
2318
|
}, [
|
|
2319
|
-
f("span", il, V(
|
|
2319
|
+
f("span", il, V(a), 1),
|
|
2320
2320
|
j(ye, {
|
|
2321
2321
|
class: "p-0",
|
|
2322
2322
|
name: o[i]
|
|
@@ -2333,24 +2333,24 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2333
2333
|
static: { type: Boolean }
|
|
2334
2334
|
},
|
|
2335
2335
|
setup(e) {
|
|
2336
|
-
const t = e, o = G(),
|
|
2337
|
-
|
|
2336
|
+
const t = e, o = G(), l = G(!1), n = G(!1), r = G(!1), a = G([]), i = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2337
|
+
De(() => [t.item.score], () => c()), Xe(() => {
|
|
2338
2338
|
c();
|
|
2339
2339
|
});
|
|
2340
2340
|
const c = () => {
|
|
2341
2341
|
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
|
|
2342
2342
|
let m = [];
|
|
2343
|
-
if (t.item.scoreLineType ===
|
|
2343
|
+
if (t.item.scoreLineType === je.custom)
|
|
2344
2344
|
m = [[...t.item.customScore, 0]];
|
|
2345
|
-
else if (t.item.
|
|
2345
|
+
else if (t.item.scoreStep)
|
|
2346
2346
|
m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((O) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * O)).reverse());
|
|
2347
|
-
else
|
|
2347
|
+
else {
|
|
2348
2348
|
const O = o.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
|
|
2349
|
-
|
|
2349
|
+
l.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), m.push([...Array(10).keys()].reverse()), r.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2350
2350
|
}
|
|
2351
|
-
t.item.hasHalfScore && m.push([0.5]),
|
|
2351
|
+
t.item.hasHalfScore && m.push([0.5]), a.value = m, n.value = !!m.flat().find((O) => `${O}`.length > 3);
|
|
2352
2352
|
});
|
|
2353
|
-
}, u = (m) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][
|
|
2353
|
+
}, u = (m) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][a.value.length - m - 1] : [k.score_base, k.score_tenbit][a.value.length - m - 1];
|
|
2354
2354
|
return (m, O) => m.layout.handReadFlag ? (s(), d(E, { key: 0 }, [
|
|
2355
2355
|
m.layout.simpleScoreBarFlag && !m.static ? (s(), U(rl, {
|
|
2356
2356
|
key: 0,
|
|
@@ -2360,11 +2360,11 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2360
2360
|
key: 1,
|
|
2361
2361
|
ref_key: "view",
|
|
2362
2362
|
ref: o,
|
|
2363
|
-
class: "inline-flex max-w-full border border-l-2 border-r-2 divide-x divide-solid",
|
|
2363
|
+
class: te([a.value.length ? "inline-flex" : "flex-1", "max-w-full border border-l-2 border-r-2 divide-x divide-solid"]),
|
|
2364
2364
|
"data-block": x(ke),
|
|
2365
2365
|
"data-xine": x(k).score
|
|
2366
2366
|
}, [
|
|
2367
|
-
(s(!0), d(E, null, X(
|
|
2367
|
+
(s(!0), d(E, null, X(a.value, (h, F) => (s(), d("ul", {
|
|
2368
2368
|
class: "flex divide-x divide-solid",
|
|
2369
2369
|
"data-xine": u(F)
|
|
2370
2370
|
}, [
|
|
@@ -2374,7 +2374,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2374
2374
|
"data-xine": Z.toString() ? x(k).score_item : ""
|
|
2375
2375
|
}, [
|
|
2376
2376
|
f("span", {
|
|
2377
|
-
class:
|
|
2377
|
+
class: te(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
|
|
2378
2378
|
}, V(m.layout.minusFlag && Z.toString().length && !i.value ? "-" : "") + V(Z), 3),
|
|
2379
2379
|
i.value && Z.toString().length ? (s(), U(ye, {
|
|
2380
2380
|
key: 0,
|
|
@@ -2384,10 +2384,10 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2384
2384
|
}, null, 8, ["name", "width"])) : D("", !0)
|
|
2385
2385
|
], 12, ul))), 256))
|
|
2386
2386
|
], 8, dl))), 256))
|
|
2387
|
-
],
|
|
2387
|
+
], 10, cl))
|
|
2388
2388
|
], 64)) : D("", !0);
|
|
2389
2389
|
}
|
|
2390
|
-
}), At = (e) => (
|
|
2390
|
+
}), At = (e) => (He("data-v-a8dbd3b0"), e = e(), Re(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ J({
|
|
2391
2391
|
__name: "writeScore",
|
|
2392
2392
|
props: {
|
|
2393
2393
|
info: {},
|
|
@@ -2415,13 +2415,13 @@ const _l = /* @__PURE__ */ de(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2415
2415
|
},
|
|
2416
2416
|
setup(e) {
|
|
2417
2417
|
const t = e;
|
|
2418
|
-
return (o,
|
|
2418
|
+
return (o, l) => (s(), d("div", {
|
|
2419
2419
|
innerHTML: t.data,
|
|
2420
2420
|
class: "base-problem-font problem-base"
|
|
2421
2421
|
}, null, 8, fl));
|
|
2422
2422
|
}
|
|
2423
2423
|
});
|
|
2424
|
-
const
|
|
2424
|
+
const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ J({
|
|
2425
2425
|
__name: "notArea",
|
|
2426
2426
|
props: {
|
|
2427
2427
|
item: {}
|
|
@@ -2432,13 +2432,13 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2432
2432
|
"data-tag": t.item.__tag__,
|
|
2433
2433
|
"data-block": x(ut)
|
|
2434
2434
|
}, [
|
|
2435
|
-
j(
|
|
2435
|
+
j(Ae, {
|
|
2436
2436
|
"data-content": t.item.id,
|
|
2437
2437
|
data: t.item.content
|
|
2438
2438
|
}, null, 8, ["data-content", "data"])
|
|
2439
2439
|
], 8, bl));
|
|
2440
2440
|
}
|
|
2441
|
-
}), wl = (e) => (
|
|
2441
|
+
}), wl = (e) => (He("data-v-257ae24a"), e = e(), Re(), e), xl = ["data-tag", "data-block"], kl = {
|
|
2442
2442
|
key: 0,
|
|
2443
2443
|
class: "flex-shrink-0"
|
|
2444
2444
|
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
|
|
@@ -2455,10 +2455,10 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2455
2455
|
},
|
|
2456
2456
|
emits: ["click", "dbclick"],
|
|
2457
2457
|
setup(e, { emit: t }) {
|
|
2458
|
-
const o = e,
|
|
2458
|
+
const o = e, l = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((i) => i.problemType) : null), n = A(() => [ve.another_choice].includes(o.item.problemType)), r = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.length : [...new Set(Oa(o.item.rawChildren.filter((i) => i.problemType), "sub").flat().map((i) => (i || "").split(".")[0]))].length), a = A(() => [...new Set(o.item.rawChildren.map((i) => [...new Set(i.sub.map((c) => c.split(".")[0]))]).map((i) => i.length > 1 ? `${i[0]}-${i[i.length - 1]}` : i[0]))]);
|
|
2459
2459
|
return (i, c) => i.item.problemType ? (s(), d("div", {
|
|
2460
2460
|
key: 1,
|
|
2461
|
-
class:
|
|
2461
|
+
class: te(["flex items-baseline relative headline_item", i.showColBorder && "pl-2 mx-1 z-2", !i.isFirst && "headline_view"]),
|
|
2462
2462
|
onClick: c[2] || (c[2] = Le((u) => t("click", i.item), ["stop"])),
|
|
2463
2463
|
"data-tag": i.item.__tag__,
|
|
2464
2464
|
"data-block": x(ke),
|
|
@@ -2471,15 +2471,15 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2471
2471
|
i.item.desc ? (s(), d("span", $l, "(" + V(i.item.desc) + ")", 1)) : D("", !0),
|
|
2472
2472
|
i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" + V(r.value) + "题,共" + V(i.item.totalScore) + "分)", 1)) : D("", !0)
|
|
2473
2473
|
]),
|
|
2474
|
-
|
|
2475
|
-
|
|
2474
|
+
l.value || n.value ? (s(), d("div", Tl, [
|
|
2475
|
+
l.value ? (s(), d("p", Il, "请在以下" + V(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2476
2476
|
f("p", {
|
|
2477
2477
|
class: "flex flex-wrap",
|
|
2478
2478
|
"data-block": x(ke),
|
|
2479
2479
|
"data-xine": x(k).choice + i.item.id
|
|
2480
2480
|
}, [
|
|
2481
2481
|
El,
|
|
2482
|
-
(s(!0), d(E, null, X(
|
|
2482
|
+
(s(!0), d(E, null, X(a.value, (u, m) => (s(), d("span", Ml, [
|
|
2483
2483
|
f("span", null, V(u), 1),
|
|
2484
2484
|
f("span", {
|
|
2485
2485
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
@@ -2491,7 +2491,7 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2491
2491
|
])
|
|
2492
2492
|
], 42, xl)) : (s(), U(vl, {
|
|
2493
2493
|
key: 0,
|
|
2494
|
-
class:
|
|
2494
|
+
class: te([i.isActive && "border-current", i.isFirst && "mt-9"]),
|
|
2495
2495
|
item: i.item,
|
|
2496
2496
|
onClick: c[0] || (c[0] = Le((u) => t("click", i.item), ["stop"])),
|
|
2497
2497
|
onDblclick: c[1] || (c[1] = Le((u) => t("dbclick", i.item), ["stop"]))
|
|
@@ -2513,8 +2513,8 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2513
2513
|
class: "flex items-center red_sheet",
|
|
2514
2514
|
"data-block": x(ke)
|
|
2515
2515
|
}, [
|
|
2516
|
-
(s(!0), d(E, null, X(t.item.optList, (
|
|
2517
|
-
class:
|
|
2516
|
+
(s(!0), d(E, null, X(t.item.optList, (l, n) => (s(), d("span", {
|
|
2517
|
+
class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(xt)[n]) && "bg-success border-success"]),
|
|
2518
2518
|
style: Y({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
|
|
2519
2519
|
"data-xine": x(k).fill + n
|
|
2520
2520
|
}, [
|
|
@@ -2544,13 +2544,13 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2544
2544
|
width: `${Ie[t.layout.fillSize].value + 1}px`,
|
|
2545
2545
|
height: `${Ie[t.layout.fillSize].height + 1}px`
|
|
2546
2546
|
}));
|
|
2547
|
-
return (
|
|
2547
|
+
return (l, n) => (s(), d("div", {
|
|
2548
2548
|
class: "flex red_sheet",
|
|
2549
2549
|
"data-block": x(ke)
|
|
2550
2550
|
}, [
|
|
2551
|
-
|
|
2551
|
+
l.item.style[x(y)[l.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(E, { key: 0 }, [
|
|
2552
2552
|
f("span", {
|
|
2553
|
-
class:
|
|
2553
|
+
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2554
2554
|
style: Y(o.value),
|
|
2555
2555
|
"data-xine": x(k).fill + "0"
|
|
2556
2556
|
}, [
|
|
@@ -2560,7 +2560,7 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2560
2560
|
})
|
|
2561
2561
|
], 14, ql),
|
|
2562
2562
|
f("span", {
|
|
2563
|
-
class:
|
|
2563
|
+
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2564
2564
|
style: Y(o.value),
|
|
2565
2565
|
"data-xine": x(k).fill + "1"
|
|
2566
2566
|
}, [
|
|
@@ -2571,12 +2571,12 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2571
2571
|
], 14, Ql)
|
|
2572
2572
|
], 64)) : (s(), d(E, { key: 1 }, [
|
|
2573
2573
|
f("span", {
|
|
2574
|
-
class:
|
|
2574
|
+
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2575
2575
|
style: Y(o.value),
|
|
2576
2576
|
"data-xine": x(k).fill + "0"
|
|
2577
2577
|
}, Kl, 14, Ul),
|
|
2578
2578
|
f("span", {
|
|
2579
|
-
class:
|
|
2579
|
+
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2580
2580
|
style: Y(o.value),
|
|
2581
2581
|
"data-xine": x(k).fill + "1"
|
|
2582
2582
|
}, Jl, 14, Vl)
|
|
@@ -2599,18 +2599,18 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2599
2599
|
},
|
|
2600
2600
|
setup(e) {
|
|
2601
2601
|
const t = e, o = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2602
|
-
return (
|
|
2602
|
+
return (l, n) => l.layout.handReadFlag ? (s(), d("div", {
|
|
2603
2603
|
key: 0,
|
|
2604
2604
|
class: "score_fill flex items-center",
|
|
2605
2605
|
"data-block": x(ke),
|
|
2606
2606
|
"data-xine": x(k).fill
|
|
2607
2607
|
}, [
|
|
2608
|
-
|
|
2609
|
-
f("span", null, V(
|
|
2608
|
+
l.showScoreCn ? (s(), d("span", ln, [
|
|
2609
|
+
f("span", null, V(l.layout.minusFlag && !o.value ? "-" : "") + V(l.item.score), 1),
|
|
2610
2610
|
o.value ? (s(), U(ye, {
|
|
2611
2611
|
key: 0,
|
|
2612
2612
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2613
|
-
name:
|
|
2613
|
+
name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2614
2614
|
width: 1.2
|
|
2615
2615
|
}, null, 8, ["name"])) : (s(), d("span", nn, "分"))
|
|
2616
2616
|
])) : D("", !0)
|
|
@@ -2624,7 +2624,7 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2624
2624
|
},
|
|
2625
2625
|
setup(e) {
|
|
2626
2626
|
const t = e;
|
|
2627
|
-
return (o,
|
|
2627
|
+
return (o, l) => (s(), d(E, null, [
|
|
2628
2628
|
f("div", {
|
|
2629
2629
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2630
2630
|
style: Y({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
@@ -2651,7 +2651,7 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2651
2651
|
},
|
|
2652
2652
|
setup(e) {
|
|
2653
2653
|
return (t, o) => (s(), d("div", {
|
|
2654
|
-
class:
|
|
2654
|
+
class: te(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
|
|
2655
2655
|
}, [
|
|
2656
2656
|
t.item.chunk ? D("", !0) : (s(), d("div", {
|
|
2657
2657
|
key: 0,
|
|
@@ -2666,7 +2666,7 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2666
2666
|
}, null, 8, ["item", "layout"])
|
|
2667
2667
|
])
|
|
2668
2668
|
], 8, pn)),
|
|
2669
|
-
j(
|
|
2669
|
+
j(Ae, {
|
|
2670
2670
|
"data-area": t.item.id,
|
|
2671
2671
|
data: t.item.answerArea
|
|
2672
2672
|
}, null, 8, ["data-area", "data"])
|
|
@@ -2718,7 +2718,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2718
2718
|
layout: {}
|
|
2719
2719
|
},
|
|
2720
2720
|
setup(e) {
|
|
2721
|
-
const t = e, o = G(0),
|
|
2721
|
+
const t = e, o = G(0), l = G({}), n = G(), r = G(), a = G([]), i = A(() => {
|
|
2722
2722
|
const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, O.value.length, 0);
|
|
2723
2723
|
return h ? Math.ceil(h / (o.value || h)) : 0;
|
|
2724
2724
|
}), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), u = A(() => ({
|
|
@@ -2733,14 +2733,14 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2733
2733
|
if (!n.value)
|
|
2734
2734
|
return;
|
|
2735
2735
|
const L = n.value.getBoundingClientRect(), W = r.value[0].getBoundingClientRect();
|
|
2736
|
-
|
|
2736
|
+
l.value = {
|
|
2737
2737
|
left: `${W.left - L.left}px`,
|
|
2738
2738
|
top: `${W.top - L.top}px`
|
|
2739
2739
|
};
|
|
2740
2740
|
}, 20);
|
|
2741
2741
|
});
|
|
2742
|
-
const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Z = Math.floor(h / F),
|
|
2743
|
-
|
|
2742
|
+
const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Z = Math.floor(h / F), oe = Math.round(Z / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
|
|
2743
|
+
a.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Z) - 1 || 0).keys()].map((L) => (L + 1) * oe).concat(h / F < 2 ? F : h).filter((L) => L);
|
|
2744
2744
|
}), (h, F) => (s(), d("div", {
|
|
2745
2745
|
class: "w-full relative min-h-[10rem]",
|
|
2746
2746
|
ref_key: "view",
|
|
@@ -2760,7 +2760,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2760
2760
|
}, null, 8, ["item", "layout"])
|
|
2761
2761
|
])
|
|
2762
2762
|
], 8, Bn)),
|
|
2763
|
-
h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(
|
|
2763
|
+
h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(Ae, {
|
|
2764
2764
|
key: 1,
|
|
2765
2765
|
data: h.item.beforeArt,
|
|
2766
2766
|
"data-bart": h.item.id,
|
|
@@ -2770,24 +2770,24 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2770
2770
|
key: 2,
|
|
2771
2771
|
"data-block": x(Ee),
|
|
2772
2772
|
"data-guide": h.item.id,
|
|
2773
|
-
class:
|
|
2774
|
-
style: Y({ ...
|
|
2773
|
+
class: te(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
|
|
2774
|
+
style: Y({ ...l.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
|
|
2775
2775
|
}, V(h.item.beforeGuide), 15, zn)) : D("", !0),
|
|
2776
|
-
(s(!0), d(E, null, X(i.value, (Z,
|
|
2776
|
+
(s(!0), d(E, null, X(i.value, (Z, oe) => (s(), d("p", {
|
|
2777
2777
|
ref_for: !0,
|
|
2778
2778
|
ref_key: "line",
|
|
2779
2779
|
ref: r,
|
|
2780
|
-
class:
|
|
2780
|
+
class: te(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
|
|
2781
2781
|
"data-block": x(ke),
|
|
2782
|
-
"data-size": h.item.startAnswerLen + (
|
|
2782
|
+
"data-size": h.item.startAnswerLen + (oe + 1) * o.value,
|
|
2783
2783
|
style: Y(u.value)
|
|
2784
2784
|
}, [
|
|
2785
2785
|
h.item.artBlock ? (s(!0), d(E, { key: 0 }, X(o.value, (L, W) => (s(), d("span", {
|
|
2786
|
-
class:
|
|
2786
|
+
class: te([O.value[oe * o.value + W] && "flex items-center justify-center"]),
|
|
2787
2787
|
style: Y(m.value)
|
|
2788
|
-
}, V(O.value[
|
|
2789
|
-
(s(!0), d(E, null, X(
|
|
2790
|
-
h.item.startAnswerLen +
|
|
2788
|
+
}, V(O.value[oe * o.value + W]), 7))), 256)) : D("", !0),
|
|
2789
|
+
(s(!0), d(E, null, X(a.value, (L) => (s(), d(E, null, [
|
|
2790
|
+
h.item.startAnswerLen + oe * o.value < L && h.item.startAnswerLen + (oe + 1) * o.value >= L ? (s(), d("span", {
|
|
2791
2791
|
key: 0,
|
|
2792
2792
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2793
2793
|
style: Y({ left: `${(L - h.item.startAnswerLen) % o.value * c.value}px` }),
|
|
@@ -2795,7 +2795,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2795
2795
|
}, V(L), 13, Rn)) : D("", !0)
|
|
2796
2796
|
], 64))), 256))
|
|
2797
2797
|
], 14, Hn))), 256)),
|
|
2798
|
-
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(
|
|
2798
|
+
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(Ae, {
|
|
2799
2799
|
key: 3,
|
|
2800
2800
|
data: h.item.afterArt,
|
|
2801
2801
|
"data-aart": h.item.id,
|
|
@@ -2811,11 +2811,11 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2811
2811
|
},
|
|
2812
2812
|
emits: ["change"],
|
|
2813
2813
|
setup(e, { emit: t }) {
|
|
2814
|
-
return (o,
|
|
2814
|
+
return (o, l) => (s(), d("div", {
|
|
2815
2815
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
2816
2816
|
"data-block": x(ut)
|
|
2817
2817
|
}, [
|
|
2818
|
-
j(
|
|
2818
|
+
j(Ae, {
|
|
2819
2819
|
"data-content": o.item.id,
|
|
2820
2820
|
data: o.item.content
|
|
2821
2821
|
}, null, 8, ["data-content", "data"])
|
|
@@ -2832,17 +2832,17 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2832
2832
|
width: {}
|
|
2833
2833
|
},
|
|
2834
2834
|
setup(e) {
|
|
2835
|
-
const t = e, o = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((
|
|
2835
|
+
const t = e, o = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((a, i) => i === r.length - 1 ? a : ""))), l = A(() => t.width ? `${t.width}em` : "");
|
|
2836
2836
|
return (n, r) => (s(), d("span", {
|
|
2837
|
-
class:
|
|
2838
|
-
style: Y({ width:
|
|
2837
|
+
class: te(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
|
|
2838
|
+
style: Y({ width: l.value }),
|
|
2839
2839
|
"data-block": x(Ee)
|
|
2840
2840
|
}, [
|
|
2841
|
-
(s(!0), d(E, null, X(o.value, (
|
|
2841
|
+
(s(!0), d(E, null, X(o.value, (a, i) => (s(), d(E, null, [
|
|
2842
2842
|
i ? (s(), d("span", Qn, " - ")) : D("", !0),
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2843
|
+
a[0] ? (s(), d("span", Un, V(a[0]), 1)) : D("", !0),
|
|
2844
|
+
a[1] ? (s(), d("span", jn, "(" + V(a[1]) + ")", 1)) : D("", !0),
|
|
2845
|
+
a[2] ? (s(), d("span", Kn, V(a[2]), 1)) : D("", !0)
|
|
2846
2846
|
], 64))), 256))
|
|
2847
2847
|
], 14, qn));
|
|
2848
2848
|
}
|
|
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2894
2894
|
dbclick: null
|
|
2895
2895
|
},
|
|
2896
2896
|
setup(e, { emit: t }) {
|
|
2897
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "",
|
|
2897
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Ft), n = G(""), r = A(() => {
|
|
2898
2898
|
const _ = o ? {
|
|
2899
2899
|
choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2900
2900
|
fillSheet: [p.fill, p.fill_english]
|
|
@@ -2902,12 +2902,12 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2902
2902
|
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2903
2903
|
fill: [p.fill, p.fill_english]
|
|
2904
2904
|
};
|
|
2905
|
-
return Object.keys(p).reduce((C, v) => ({ ...C, [p[v]]: Object.keys(_).find((
|
|
2906
|
-
}),
|
|
2905
|
+
return Object.keys(p).reduce((C, v) => ({ ...C, [p[v]]: Object.keys(_).find((H) => _[H].includes(p[v])) || `${v}${o}` }), {});
|
|
2906
|
+
}), a = A(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), i = A(() => {
|
|
2907
2907
|
let _ = [];
|
|
2908
2908
|
return e.data.children.forEach((C) => {
|
|
2909
2909
|
let v = _[_.length - 1];
|
|
2910
|
-
(C.polymerId ||
|
|
2910
|
+
(C.polymerId || l.includes(e.data.problemType)) && l.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !== I.choice_1 || C.style[y[e.layout.mode].choice_b] === I.portrait) ? (!v || v.type !== "polymer" || v.polymerId !== C.polymerId) && (_.push({
|
|
2911
2911
|
type: "polymer",
|
|
2912
2912
|
problemType: C.problemType,
|
|
2913
2913
|
polymerId: C.polymerId,
|
|
@@ -2921,13 +2921,13 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2921
2921
|
}), _ = _.map((C) => {
|
|
2922
2922
|
var v;
|
|
2923
2923
|
if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === I.choice_3) {
|
|
2924
|
-
const
|
|
2925
|
-
if (C.children.length >
|
|
2926
|
-
const
|
|
2927
|
-
return [...Array(Math.ceil(C.children.length / (
|
|
2924
|
+
const H = Math.floor(e.width / (Math.max(...C.children.map((N) => N.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((v = C.children[0]) == null ? void 0 : v.polymerId) || ""]) * 14 + 20));
|
|
2925
|
+
if (C.children.length > H * 5) {
|
|
2926
|
+
const N = C.children.length % 4 > 4 ? 5 : 4;
|
|
2927
|
+
return [...Array(Math.ceil(C.children.length / (H * N))).keys()].map((me, he) => ({
|
|
2928
2928
|
...C,
|
|
2929
2929
|
groupIndex: he,
|
|
2930
|
-
children: C.children.slice(he *
|
|
2930
|
+
children: C.children.slice(he * H * N, (he + 1) * H * N)
|
|
2931
2931
|
}));
|
|
2932
2932
|
} else
|
|
2933
2933
|
return C;
|
|
@@ -2940,7 +2940,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2940
2940
|
C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
|
|
2941
2941
|
}), _;
|
|
2942
2942
|
}), u = A(() => {
|
|
2943
|
-
if (
|
|
2943
|
+
if (l.includes(e.data.problemType)) {
|
|
2944
2944
|
const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
|
|
2945
2945
|
return { [`h${e.data.id}`]: Math.max(..._) };
|
|
2946
2946
|
} else
|
|
@@ -2955,7 +2955,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2955
2955
|
Gps_cls: k,
|
|
2956
2956
|
hoverActive: n,
|
|
2957
2957
|
ModuleTag: o,
|
|
2958
|
-
ChoiceType:
|
|
2958
|
+
ChoiceType: a,
|
|
2959
2959
|
GroupData: i,
|
|
2960
2960
|
PolymerData: c,
|
|
2961
2961
|
SubWidthInfo: u,
|
|
@@ -2965,20 +2965,20 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2965
2965
|
ComputPolymerStyle: (_) => {
|
|
2966
2966
|
var he, ie;
|
|
2967
2967
|
let C = {};
|
|
2968
|
-
const v = Math.max(...(_.rawChildren || _.children).map((_e) => _e.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20,
|
|
2968
|
+
const v = Math.max(...(_.rawChildren || _.children).map((_e) => _e.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, H = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((_e) => _e.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), N = Math.min(H, e.data.style[y[e.layout.mode].choice_d] || 10), me = (e.width - v * N) / (N - 1) - 10;
|
|
2969
2969
|
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2970
2970
|
case I.choice_1:
|
|
2971
2971
|
_.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (C = {
|
|
2972
2972
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2973
|
-
"grid-template-columns": `repeat(${
|
|
2974
|
-
"grid-template-rows": `repeat(${Math.ceil(_.children.length /
|
|
2973
|
+
"grid-template-columns": `repeat(${N}, 1fr)`,
|
|
2974
|
+
"grid-template-rows": `repeat(${Math.ceil(_.children.length / N)}, 1fr)`,
|
|
2975
2975
|
"column-gap": `${me}px`
|
|
2976
2976
|
});
|
|
2977
2977
|
break;
|
|
2978
2978
|
case I.choice_3:
|
|
2979
2979
|
C = {
|
|
2980
|
-
"grid-template-columns": `repeat(${
|
|
2981
|
-
"grid-template-rows": `repeat(${Math.ceil(_.children.length /
|
|
2980
|
+
"grid-template-columns": `repeat(${N}, 1fr)`,
|
|
2981
|
+
"grid-template-rows": `repeat(${Math.ceil(_.children.length / N)}, 1fr)`
|
|
2982
2982
|
}, _.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (C = {
|
|
2983
2983
|
...C,
|
|
2984
2984
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
@@ -2990,9 +2990,9 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2990
2990
|
},
|
|
2991
2991
|
ComputPolymerItemStyle: (_, C) => {
|
|
2992
2992
|
var v;
|
|
2993
|
-
if (
|
|
2994
|
-
const
|
|
2995
|
-
if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] *
|
|
2993
|
+
if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === I.choice_2) {
|
|
2994
|
+
const H = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((v = _.children[0]) == null ? void 0 : v.polymerId) || ""]) * 14 + 8), N = Math.floor(e.width / (H * _.style[y[e.layout.mode].choice_c] + 10)), me = (e.width - H * N * _.style[y[e.layout.mode].choice_c]) / (N - 1 || 1);
|
|
2995
|
+
if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * N) || N < 2))
|
|
2996
2996
|
return {
|
|
2997
2997
|
"margin-right": `${me}px`
|
|
2998
2998
|
};
|
|
@@ -3000,20 +3000,20 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
3000
3000
|
return {};
|
|
3001
3001
|
},
|
|
3002
3002
|
ComputStyle: (_, C) => {
|
|
3003
|
-
var
|
|
3003
|
+
var H;
|
|
3004
3004
|
let v = {};
|
|
3005
3005
|
if (!o)
|
|
3006
3006
|
return v;
|
|
3007
|
-
if (
|
|
3008
|
-
let
|
|
3007
|
+
if (l.includes(_.problemType)) {
|
|
3008
|
+
let N = {};
|
|
3009
3009
|
if (Object.values(rt).includes(e.data.problemType)) {
|
|
3010
|
-
const me = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((
|
|
3011
|
-
|
|
3010
|
+
const me = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((H = e.data.children[0]) == null ? void 0 : H.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / me), e.data.style[y[e.layout.mode].choice_d] || 10);
|
|
3011
|
+
N = C % he ? { minWidth: `${me}px`, marginLeft: `${(e.width - me * he) / (he - 1) - 5}px` } : { minWidth: `${me}px` };
|
|
3012
3012
|
}
|
|
3013
3013
|
v = {
|
|
3014
3014
|
...v,
|
|
3015
3015
|
display: "inline-flex",
|
|
3016
|
-
...
|
|
3016
|
+
...N
|
|
3017
3017
|
};
|
|
3018
3018
|
} else
|
|
3019
3019
|
[p.fill, p.fill_english].includes(_.problemType) && (v = {
|
|
@@ -3025,7 +3025,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
3025
3025
|
return v;
|
|
3026
3026
|
},
|
|
3027
3027
|
ComputBlock: (_) => {
|
|
3028
|
-
const C = [...
|
|
3028
|
+
const C = [...l, p.fill, p.fill_english];
|
|
3029
3029
|
if (o && (C.includes(_.problemType) || typeof _.groupIndex == "number"))
|
|
3030
3030
|
return ke;
|
|
3031
3031
|
},
|
|
@@ -3052,81 +3052,81 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
3052
3052
|
};
|
|
3053
3053
|
}
|
|
3054
3054
|
}, Jn = ["data-block"], Zn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], es = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ts = { key: 0 };
|
|
3055
|
-
function os(e, t, o,
|
|
3056
|
-
const
|
|
3057
|
-
return s(!0), d(E, null, X(
|
|
3055
|
+
function os(e, t, o, l, n, r) {
|
|
3056
|
+
const a = Ht("Sub");
|
|
3057
|
+
return s(!0), d(E, null, X(l.GroupData, (i) => (s(), d(E, null, [
|
|
3058
3058
|
i.type === "polymer" ? (s(), d("div", {
|
|
3059
3059
|
key: 0,
|
|
3060
|
-
"data-block":
|
|
3061
|
-
class:
|
|
3062
|
-
style: Y(
|
|
3060
|
+
"data-block": l.ComputBlock(i),
|
|
3061
|
+
class: te([...l.ComputPolymerCls(i)]),
|
|
3062
|
+
style: Y(l.ComputPolymerStyle(i))
|
|
3063
3063
|
}, [
|
|
3064
3064
|
(s(!0), d(E, null, X(i.children, (c, u) => {
|
|
3065
3065
|
var m;
|
|
3066
3066
|
return s(), d("div", {
|
|
3067
|
-
class:
|
|
3068
|
-
style: Y(
|
|
3067
|
+
class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3068
|
+
style: Y(l.ComputPolymerItemStyle(c, u)),
|
|
3069
3069
|
"data-tag": c.__tag__,
|
|
3070
|
-
"data-block":
|
|
3071
|
-
"data-xine":
|
|
3072
|
-
onMouseenter: (O) =>
|
|
3073
|
-
onMouseleave: (O) =>
|
|
3070
|
+
"data-block": l.ComputBlock(c),
|
|
3071
|
+
"data-xine": l.Gps_cls.item + c._sub,
|
|
3072
|
+
onMouseenter: (O) => l.handleHoverIn(c),
|
|
3073
|
+
onMouseleave: (O) => l.handleHoverOut(c)
|
|
3074
3074
|
}, [
|
|
3075
|
-
c.problemType ? (s(), U(
|
|
3075
|
+
c.problemType ? (s(), U(a, {
|
|
3076
3076
|
key: 0,
|
|
3077
3077
|
sub: c.sub,
|
|
3078
|
-
isFull: !!
|
|
3079
|
-
width:
|
|
3080
|
-
class:
|
|
3078
|
+
isFull: !!l.ModuleTag,
|
|
3079
|
+
width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0,
|
|
3080
|
+
class: te(["sub_item", l.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
|
|
3081
3081
|
}, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
|
|
3082
|
-
(s(), U(yt(
|
|
3082
|
+
(s(), U(yt(l.ComputName(c)), _t(ft({ item: c, layout: o.layout, ...l.ComputPayload(c, u) })), null, 16))
|
|
3083
3083
|
], 46, Zn);
|
|
3084
3084
|
}), 256))
|
|
3085
3085
|
], 14, Jn)) : (s(!0), d(E, { key: 1 }, X(i.children, (c, u) => {
|
|
3086
3086
|
var m;
|
|
3087
3087
|
return s(), d(E, null, [
|
|
3088
3088
|
f("div", {
|
|
3089
|
-
class:
|
|
3090
|
-
style: Y(
|
|
3089
|
+
class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3090
|
+
style: Y(l.ComputStyle(c, u)),
|
|
3091
3091
|
"data-tag": c.__tag__,
|
|
3092
|
-
"data-block":
|
|
3093
|
-
"data-xine":
|
|
3094
|
-
onClick: (O) =>
|
|
3095
|
-
onDblclick: (O) =>
|
|
3096
|
-
onMouseenter: (O) =>
|
|
3097
|
-
onMouseleave: (O) =>
|
|
3092
|
+
"data-block": l.ComputBlock(c),
|
|
3093
|
+
"data-xine": l.Gps_cls.item + c._sub,
|
|
3094
|
+
onClick: (O) => l.handleClick(O, c),
|
|
3095
|
+
onDblclick: (O) => l.handleDblClick(O, c),
|
|
3096
|
+
onMouseenter: (O) => l.handleHoverIn(c),
|
|
3097
|
+
onMouseleave: (O) => l.handleHoverOut(c)
|
|
3098
3098
|
}, [
|
|
3099
|
-
c.problemType && !
|
|
3099
|
+
c.problemType && !l.ComputAbs(c) ? (s(), U(a, {
|
|
3100
3100
|
key: 0,
|
|
3101
3101
|
sub: c.sub,
|
|
3102
|
-
isFull: !!
|
|
3103
|
-
width:
|
|
3102
|
+
isFull: !!l.ModuleTag,
|
|
3103
|
+
width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
|
|
3104
3104
|
}, null, 8, ["sub", "isFull", "width"])) : D("", !0),
|
|
3105
|
-
(s(), U(yt(
|
|
3105
|
+
(s(), U(yt(l.ComputName(c)), _t(ft({ item: c, layout: o.layout, ...l.ComputPayload(c, u) })), {
|
|
3106
3106
|
default: Lt(() => [
|
|
3107
|
-
j(
|
|
3107
|
+
j(a, {
|
|
3108
3108
|
sub: c.sub,
|
|
3109
|
-
isFull: !!
|
|
3110
|
-
width:
|
|
3109
|
+
isFull: !!l.ModuleTag,
|
|
3110
|
+
width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
|
|
3111
3111
|
}, null, 8, ["sub", "isFull", "width"])
|
|
3112
3112
|
]),
|
|
3113
3113
|
_: 2
|
|
3114
3114
|
}, 1040))
|
|
3115
3115
|
], 46, es),
|
|
3116
|
-
c.polymerId &&
|
|
3116
|
+
c.polymerId && l.PolymerData[c.polymerId][l.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) : D("", !0)
|
|
3117
3117
|
], 64);
|
|
3118
3118
|
}), 256))
|
|
3119
3119
|
], 64))), 256);
|
|
3120
3120
|
}
|
|
3121
|
-
const
|
|
3122
|
-
const
|
|
3123
|
-
return !(
|
|
3121
|
+
const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as = 10, B = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, o) => {
|
|
3122
|
+
const l = B(se(`${k.item}${e._sub}`, t));
|
|
3123
|
+
return !(l.top >= o.top + o.height || l.top + l.height < o.top);
|
|
3124
3124
|
}, ce = (e, t, o = !1) => !e || !t ? null : {
|
|
3125
3125
|
x: e.x - t.x,
|
|
3126
3126
|
y: e.y - t.y + (o ? 1 : 0),
|
|
3127
3127
|
width: e.width,
|
|
3128
3128
|
height: e.height - (o ? 2 : 0)
|
|
3129
|
-
}, Pe = (e, t, o,
|
|
3129
|
+
}, Pe = (e, t, o, l = !1, n = !1) => {
|
|
3130
3130
|
if (!e)
|
|
3131
3131
|
return {
|
|
3132
3132
|
x: 0,
|
|
@@ -3134,41 +3134,41 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3134
3134
|
width: 0,
|
|
3135
3135
|
height: 0
|
|
3136
3136
|
};
|
|
3137
|
-
const r =
|
|
3138
|
-
return
|
|
3137
|
+
const r = B(e), a = Math.min(t.height, r.y < t.y ? r.y + r.height - t.y : r.y + r.height > t.y + t.height || n ? t.y + t.height - r.y : r.height);
|
|
3138
|
+
return a > 5 ? {
|
|
3139
3139
|
x: r.x - o.x,
|
|
3140
|
-
y: Math.max(r.y, t.y) + (
|
|
3140
|
+
y: Math.max(r.y, t.y) + (l ? 1 : 0) - o.y,
|
|
3141
3141
|
width: r.width,
|
|
3142
|
-
height:
|
|
3142
|
+
height: a - (l ? 2 : 0)
|
|
3143
3143
|
} : null;
|
|
3144
3144
|
}, ne = (e, t = !1) => {
|
|
3145
3145
|
if (!e)
|
|
3146
3146
|
return null;
|
|
3147
|
-
const o = t ? Nt : 0,
|
|
3147
|
+
const o = t ? Nt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
3148
3148
|
return {
|
|
3149
|
-
x: Math.round(
|
|
3150
|
-
y: Math.round(
|
|
3151
|
-
width: Math.round(
|
|
3152
|
-
height: Math.round(
|
|
3149
|
+
x: Math.round(l.x * Fe - o),
|
|
3150
|
+
y: Math.round(l.y * Fe - o),
|
|
3151
|
+
width: Math.round(l.width * Fe + o * 2),
|
|
3152
|
+
height: Math.round(l.height * Fe + o * 2)
|
|
3153
3153
|
};
|
|
3154
3154
|
}, Bt = (e, t = k.en_num) => {
|
|
3155
3155
|
const o = se(t);
|
|
3156
3156
|
if (!o)
|
|
3157
3157
|
return null;
|
|
3158
|
-
const
|
|
3158
|
+
const l = {
|
|
3159
3159
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3160
|
-
area: ce(
|
|
3161
|
-
list: Te(k.en_num_group, o).map((n) => Te(k.en_num_item, n).map((r) => ce(
|
|
3160
|
+
area: ce(B(o), B(e.pageDom[0])),
|
|
3161
|
+
list: Te(k.en_num_group, o).map((n) => Te(k.en_num_item, n).map((r) => ce(B(r), B(e.pageDom[0]), !0)))
|
|
3162
3162
|
};
|
|
3163
3163
|
return {
|
|
3164
3164
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3165
|
-
yRowOffset: Math.round((
|
|
3166
|
-
firstChoicePosition: ne(
|
|
3165
|
+
yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) * Fe),
|
|
3166
|
+
firstChoicePosition: ne(l.list[0][0]),
|
|
3167
3167
|
crosswised: !0,
|
|
3168
|
-
choiceQuestionPosition: ne(
|
|
3169
|
-
choiceQuestionCount:
|
|
3170
|
-
xColOffset: Math.round((
|
|
3171
|
-
questionNOList: [...Array(
|
|
3168
|
+
choiceQuestionPosition: ne(l.area),
|
|
3169
|
+
choiceQuestionCount: l.list.length,
|
|
3170
|
+
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3171
|
+
questionNOList: [...Array(l.list.length).keys()].map((n, r) => r + 1)
|
|
3172
3172
|
};
|
|
3173
3173
|
}, ns = (e) => ({
|
|
3174
3174
|
cardSizeType: po[e.layout.paper],
|
|
@@ -3178,43 +3178,43 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3178
3178
|
paperWidth: Math.round(g[e.layout.paper].width * Fe),
|
|
3179
3179
|
paperHeight: Math.round(g[e.layout.paper].height * Fe)
|
|
3180
3180
|
}), ss = (e) => {
|
|
3181
|
-
const t =
|
|
3182
|
-
var
|
|
3181
|
+
const t = B(e.pageDom[0]), o = B(e.pageDom[1]), l = (n) => {
|
|
3182
|
+
var a;
|
|
3183
3183
|
const r = e.layout.backColumn > 2 ? {
|
|
3184
|
-
trdLeftTopPos: ne(ce(
|
|
3185
|
-
trdLeftBottomPos: ne(ce(
|
|
3184
|
+
trdLeftTopPos: ne(ce(B(Te(`${k.point}t`, e.pageDom[n])[1]), B(e.pageDom[n]))),
|
|
3185
|
+
trdLeftBottomPos: ne(ce(B(Te(`${k.point}b`, e.pageDom[n])[1]), B(e.pageDom[n])))
|
|
3186
3186
|
} : {};
|
|
3187
|
-
return (
|
|
3188
|
-
secLeftTopPos: ne(ce(
|
|
3189
|
-
secLeftBottomPos: ne(ce(
|
|
3187
|
+
return (a = Oe.find((i) => i.code === e.layout.paper)) != null && a.isMultCol ? {
|
|
3188
|
+
secLeftTopPos: ne(ce(B(Te(`${k.point}t`, e.pageDom[n])[0]), B(e.pageDom[n]))),
|
|
3189
|
+
secLeftBottomPos: ne(ce(B(Te(`${k.point}b`, e.pageDom[n])[0]), B(e.pageDom[n]))),
|
|
3190
3190
|
...r
|
|
3191
3191
|
} : null;
|
|
3192
3192
|
};
|
|
3193
3193
|
return {
|
|
3194
3194
|
// 取第一/二页定位点信息
|
|
3195
|
-
leftTopPos: ne(ce(
|
|
3196
|
-
rightTopPos: ne(ce(
|
|
3197
|
-
leftBottomPos: ne(ce(
|
|
3198
|
-
rightBottomPos: ne(ce(
|
|
3195
|
+
leftTopPos: ne(ce(B(se(`${k.point}lt`, e.pageDom[0])), t)),
|
|
3196
|
+
rightTopPos: ne(ce(B(se(`${k.point}rt`, e.pageDom[0])), t)),
|
|
3197
|
+
leftBottomPos: ne(ce(B(se(`${k.point}lb`, e.pageDom[0])), t)),
|
|
3198
|
+
rightBottomPos: ne(ce(B(se(`${k.point}rb`, e.pageDom[0])), t)),
|
|
3199
3199
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3200
3200
|
verticalAuxInfo: [
|
|
3201
|
-
ne(ce(
|
|
3202
|
-
ne(ce(
|
|
3201
|
+
ne(ce(B(se(`${k.point}l`, e.pageDom[0])), t)),
|
|
3202
|
+
ne(ce(B(se(`${k.point}r`, e.pageDom[0])), t))
|
|
3203
3203
|
],
|
|
3204
3204
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3205
|
-
ne(ce(
|
|
3206
|
-
ne(ce(
|
|
3205
|
+
ne(ce(B(se(`${k.point}l`, e.pageDom[1])), o)),
|
|
3206
|
+
ne(ce(B(se(`${k.point}r`, e.pageDom[1])), o))
|
|
3207
3207
|
] : null,
|
|
3208
|
-
auxAnchorInfo:
|
|
3209
|
-
auxAnchorInfo2: e.pageDom[1] ?
|
|
3208
|
+
auxAnchorInfo: l(0),
|
|
3209
|
+
auxAnchorInfo2: e.pageDom[1] ? l(1) : null
|
|
3210
3210
|
};
|
|
3211
3211
|
}, is = (e) => {
|
|
3212
3212
|
let t = 10;
|
|
3213
3213
|
if (e.pageDom[1]) {
|
|
3214
|
-
const
|
|
3215
|
-
t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left -
|
|
3214
|
+
const l = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3215
|
+
t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
|
|
3216
3216
|
}
|
|
3217
|
-
let o = ce(
|
|
3217
|
+
let o = ce(B(se(k.page, e.pageDom[e.pageTotal - 1])), B(e.pageDom[e.pageTotal - 1]));
|
|
3218
3218
|
return o = { ...o, y: o.y % (g[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3219
3219
|
{
|
|
3220
3220
|
// 固定值
|
|
@@ -3224,9 +3224,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3224
3224
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3225
3225
|
choiceQuestionPosition: ne(o, !0),
|
|
3226
3226
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3227
|
-
firstChoicePosition: ne(ce(
|
|
3227
|
+
firstChoicePosition: ne(ce(B(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), B(e.pageDom[e.pageTotal - 1]))),
|
|
3228
3228
|
// 页码点最大值,展开为数组
|
|
3229
|
-
choiceGridSequenceNOList: dt.filter((
|
|
3229
|
+
choiceGridSequenceNOList: dt.filter((l, n) => n < e.pageTotal),
|
|
3230
3230
|
// 排列方向
|
|
3231
3231
|
crosswised: !0,
|
|
3232
3232
|
// 两个页码点之间的间距,纵排此项赋值
|
|
@@ -3243,9 +3243,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3243
3243
|
// 固定值
|
|
3244
3244
|
questionNOList: [1],
|
|
3245
3245
|
// 方框业务坐标
|
|
3246
|
-
choiceQuestionPosition: ne(ce(
|
|
3246
|
+
choiceQuestionPosition: ne(ce(B(t), B(e.pageDom[0])), !0),
|
|
3247
3247
|
// 数据坐标
|
|
3248
|
-
firstChoicePosition: ne(ce(
|
|
3248
|
+
firstChoicePosition: ne(ce(B(t), B(e.pageDom[0]))),
|
|
3249
3249
|
// 固定值
|
|
3250
3250
|
choiceGridSequenceNOList: [
|
|
3251
3251
|
"true"
|
|
@@ -3256,7 +3256,7 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3256
3256
|
xColOffset: 0
|
|
3257
3257
|
} : null;
|
|
3258
3258
|
}, cs = (e) => {
|
|
3259
|
-
let t = ce(
|
|
3259
|
+
let t = ce(B(se(k.en_code, e.pageDom[0])), B(e.pageDom[0]));
|
|
3260
3260
|
return ne(t);
|
|
3261
3261
|
}, ds = (e) => {
|
|
3262
3262
|
const t = se(k.write_view, e.pageDom[0]);
|
|
@@ -3266,9 +3266,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3266
3266
|
return {
|
|
3267
3267
|
id: "0",
|
|
3268
3268
|
problemType: p.slove,
|
|
3269
|
-
position: ce(
|
|
3270
|
-
scoreList: o.map((
|
|
3271
|
-
position: ce(
|
|
3269
|
+
position: ce(B(t), B(e.pageDom[0])),
|
|
3270
|
+
scoreList: o.map((l, n) => ({
|
|
3271
|
+
position: ce(B(o[n]), B(e.pageDom[0])),
|
|
3272
3272
|
itemPosition: {
|
|
3273
3273
|
width: o[n].offsetWidth
|
|
3274
3274
|
},
|
|
@@ -3276,18 +3276,18 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3276
3276
|
}))
|
|
3277
3277
|
};
|
|
3278
3278
|
}, us = (e, t) => {
|
|
3279
|
-
const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix],
|
|
3279
|
+
const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], l = as + Nt, n = (r) => parseFloat(r.toFixed(2));
|
|
3280
3280
|
return t.flat().filter((r) => o.includes(r.problemType) && r.colIndex < 2).map((r) => {
|
|
3281
3281
|
switch (r.problemType) {
|
|
3282
3282
|
case p.fill:
|
|
3283
3283
|
case p.fill_english:
|
|
3284
|
-
return e.layout.notHandReadFlag && r.isHiddenContent ? [] : r.children.map((
|
|
3285
|
-
const i =
|
|
3284
|
+
return e.layout.notHandReadFlag && r.isHiddenContent ? [] : r.children.map((a) => {
|
|
3285
|
+
const i = a.scorePosition;
|
|
3286
3286
|
return {
|
|
3287
|
-
sub:
|
|
3287
|
+
sub: a.id,
|
|
3288
3288
|
position: {
|
|
3289
|
-
x: n(i.x -
|
|
3290
|
-
y: n(i.y -
|
|
3289
|
+
x: n(i.x - a.position.x),
|
|
3290
|
+
y: n(i.y - a.position.y) + l * (r.colIndex - 1),
|
|
3291
3291
|
width: i.width,
|
|
3292
3292
|
height: i.height
|
|
3293
3293
|
}
|
|
@@ -3295,57 +3295,57 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3295
3295
|
});
|
|
3296
3296
|
case p.slove:
|
|
3297
3297
|
case p.art:
|
|
3298
|
-
return e.notHandReadFlag ? [] : [{
|
|
3298
|
+
return console.log(r), e.notHandReadFlag ? [] : [{
|
|
3299
3299
|
sub: r.id,
|
|
3300
3300
|
position: {
|
|
3301
3301
|
x: n(r.scoreList[0].position.x - r.position.x),
|
|
3302
|
-
y: n(r.scoreList[0].position.y - r.position.y) +
|
|
3303
|
-
width: r.scoreList.map((
|
|
3302
|
+
y: n(r.scoreList[0].position.y - r.position.y) + l * (r.colIndex - 1),
|
|
3303
|
+
width: r.scoreList.map((a) => a.position.width).reduce((a, i) => a + i, 0),
|
|
3304
3304
|
height: r.scoreList[0].position.height
|
|
3305
3305
|
}
|
|
3306
3306
|
}];
|
|
3307
3307
|
case p.mix:
|
|
3308
|
-
return e.notHandReadFlag && r.isHiddenContent ? [] : (r.children || []).filter((
|
|
3309
|
-
sub:
|
|
3308
|
+
return e.notHandReadFlag && r.isHiddenContent ? [] : (r.children || []).filter((a) => [p.fill, p.fill_english, p.easy_slove].includes(a.problemType)).map((a) => [p.easy_slove].includes(a.problemType) ? {
|
|
3309
|
+
sub: a.id,
|
|
3310
3310
|
position: {
|
|
3311
|
-
x: n(
|
|
3312
|
-
y: n(
|
|
3313
|
-
width:
|
|
3314
|
-
height:
|
|
3311
|
+
x: n(a.scoreList[0].position.x - (a.isHiddenContent ? a.position.x : r.position.x)),
|
|
3312
|
+
y: n(a.scoreList[0].position.y - (a.isHiddenContent ? a.position.y : r.position.y)) + l * (r.colIndex - 1),
|
|
3313
|
+
width: a.scoreList.map((i) => i.position.width).reduce((i, c) => i + c, 0),
|
|
3314
|
+
height: a.position.height
|
|
3315
3315
|
}
|
|
3316
3316
|
} : {
|
|
3317
|
-
sub:
|
|
3317
|
+
sub: a.id,
|
|
3318
3318
|
position: {
|
|
3319
|
-
x: n(
|
|
3320
|
-
y: n(
|
|
3321
|
-
width:
|
|
3322
|
-
height:
|
|
3319
|
+
x: n(a.scorePosition.x - (a.isHiddenContent ? a.rawPosition.x : r.position.x)),
|
|
3320
|
+
y: n(a.scorePosition.y - (a.isHiddenContent ? a.rawPosition.y : r.position.y)) + l * (r.colIndex - 1),
|
|
3321
|
+
width: a.scorePosition.width,
|
|
3322
|
+
height: a.scorePosition.height
|
|
3323
3323
|
}
|
|
3324
3324
|
});
|
|
3325
3325
|
}
|
|
3326
3326
|
}).flat();
|
|
3327
3327
|
}, hs = (e, t) => {
|
|
3328
|
-
let o = 0,
|
|
3328
|
+
let o = 0, l = {};
|
|
3329
3329
|
return [...Array(e.pageDom.length).keys()].map((n) => {
|
|
3330
3330
|
const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
|
|
3331
|
-
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((
|
|
3332
|
-
const c = e.pageDom[n], u =
|
|
3331
|
+
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((a, i) => r + i < t.length).map((a, i) => {
|
|
3332
|
+
const c = e.pageDom[n], u = B(c), m = e.colDom[r + i], O = B(m), h = e.colViewDom[r + i], F = B(h), Z = t[r + i].data.map((L) => L.children.filter((W) => W.problemType)).flat(), oe = t[r + i].data.filter((L) => [ve.one_choice, ve.another_choice].includes(L.problemType) && L.children.length).map((L) => {
|
|
3333
3333
|
const W = se(`${k.choice}${L.id}`, m);
|
|
3334
3334
|
return W ? {
|
|
3335
3335
|
id: `${++o}`,
|
|
3336
3336
|
baseIndex: parseInt(L.children[0]._sub),
|
|
3337
|
-
position: ce(
|
|
3337
|
+
position: ce(B(W), u),
|
|
3338
3338
|
problemType: L.problemType,
|
|
3339
3339
|
isOneChoice: !0,
|
|
3340
3340
|
optList: Te(k.fill, W).map((w, M) => ({
|
|
3341
3341
|
id: `${o}.${M + 1}`,
|
|
3342
|
-
position: ce(
|
|
3342
|
+
position: ce(B(w), u)
|
|
3343
3343
|
})).filter((w) => w.position)
|
|
3344
3344
|
} : {};
|
|
3345
3345
|
}).filter((L) => L.position);
|
|
3346
3346
|
return Z.filter((L) => ls(L, m, O)).map((L, W, w) => {
|
|
3347
3347
|
let M = {};
|
|
3348
|
-
|
|
3348
|
+
l[L._sub] ? l[L._sub] += 1 : l[L._sub] = 1;
|
|
3349
3349
|
const K = se(`${k.item}${L._sub}`, m);
|
|
3350
3350
|
switch (L.problemType) {
|
|
3351
3351
|
case p.choice:
|
|
@@ -3355,32 +3355,32 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3355
3355
|
M = {
|
|
3356
3356
|
score: L.score,
|
|
3357
3357
|
isColumn: L.style[y[e.layout.mode].choice_a] !== I.choice_2,
|
|
3358
|
-
optList: L.optList.map((v,
|
|
3359
|
-
id: `${L._sub}.${
|
|
3360
|
-
position: Pe(se(`${k.fill}${
|
|
3358
|
+
optList: L.optList.map((v, H) => ({
|
|
3359
|
+
id: `${L._sub}.${H + 1}`,
|
|
3360
|
+
position: Pe(se(`${k.fill}${H}`, K), F, u)
|
|
3361
3361
|
})).filter((v) => v.position)
|
|
3362
3362
|
};
|
|
3363
3363
|
break;
|
|
3364
3364
|
case p.decide:
|
|
3365
3365
|
M = {
|
|
3366
|
-
optList: [0, 1].map((v,
|
|
3367
|
-
id: `${L._sub}.${
|
|
3368
|
-
position: Pe(se(`${k.fill}${
|
|
3366
|
+
optList: [0, 1].map((v, H) => ({
|
|
3367
|
+
id: `${L._sub}.${H}`,
|
|
3368
|
+
position: Pe(se(`${k.fill}${H}`, K), F, u)
|
|
3369
3369
|
})).filter((v) => v.position)
|
|
3370
3370
|
};
|
|
3371
3371
|
break;
|
|
3372
3372
|
case p.fill:
|
|
3373
3373
|
case p.fill_english:
|
|
3374
|
-
const
|
|
3374
|
+
const z = Te(k.fill, K), _ = Te(k.fill_line, K);
|
|
3375
3375
|
M = {
|
|
3376
|
-
children: [L.score].flat().map((v,
|
|
3377
|
-
id:
|
|
3376
|
+
children: [L.score].flat().map((v, H, N) => ({
|
|
3377
|
+
id: N.length > 1 ? `${L._sub}.${H + 1}` : L._sub,
|
|
3378
3378
|
score: v,
|
|
3379
3379
|
problemType: L.problemType,
|
|
3380
3380
|
isHiddenContent: !L.style[y[e.layout.mode].fill_b],
|
|
3381
3381
|
position: Pe(K, F, u),
|
|
3382
|
-
scorePosition: Pe(H
|
|
3383
|
-
answerPosition: Pe(_[
|
|
3382
|
+
scorePosition: Pe(z[H], F, u),
|
|
3383
|
+
answerPosition: Pe(_[H], F, u)
|
|
3384
3384
|
})).filter((v) => v.position)
|
|
3385
3385
|
};
|
|
3386
3386
|
break;
|
|
@@ -3389,16 +3389,16 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3389
3389
|
case p.art:
|
|
3390
3390
|
const C = se(k.score, K);
|
|
3391
3391
|
M = {
|
|
3392
|
-
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((v,
|
|
3392
|
+
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((v, H) => {
|
|
3393
3393
|
if (!v)
|
|
3394
3394
|
return {};
|
|
3395
|
-
const
|
|
3395
|
+
const N = Te(k.score_item, v);
|
|
3396
3396
|
return {
|
|
3397
3397
|
position: Pe(v, F, u, !0),
|
|
3398
3398
|
itemPosition: {
|
|
3399
|
-
width:
|
|
3399
|
+
width: N[0].offsetWidth
|
|
3400
3400
|
},
|
|
3401
|
-
score:
|
|
3401
|
+
score: N.map((me) => Math.abs(parseFloat(me.innerText)) * (H ? 1 : 10))
|
|
3402
3402
|
};
|
|
3403
3403
|
}).filter((v) => v.position) : null
|
|
3404
3404
|
};
|
|
@@ -3406,26 +3406,26 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3406
3406
|
return {
|
|
3407
3407
|
id: L._sub,
|
|
3408
3408
|
elId: L.id,
|
|
3409
|
-
colIndex:
|
|
3409
|
+
colIndex: l[L._sub],
|
|
3410
3410
|
problemType: L.problemType,
|
|
3411
3411
|
position: Pe(K, F, u, !1, W === w.length - 1 && [p.slove].includes(L.problemType)),
|
|
3412
3412
|
...M
|
|
3413
3413
|
};
|
|
3414
|
-
}).concat(
|
|
3414
|
+
}).concat(oe).filter((L) => L.position);
|
|
3415
3415
|
});
|
|
3416
3416
|
}).map((n) => n.flat());
|
|
3417
3417
|
}, ps = (e) => {
|
|
3418
|
-
const t = (
|
|
3418
|
+
const t = (l = e, n = !1) => ({
|
|
3419
3419
|
// 块位置
|
|
3420
|
-
sectionPosition: ne(
|
|
3420
|
+
sectionPosition: ne(l.position, !0),
|
|
3421
3421
|
// 块ID,前端生成,同一道题同一个ID
|
|
3422
|
-
sectionID:
|
|
3422
|
+
sectionID: l.id,
|
|
3423
3423
|
// 块内序号ID,按切块自增
|
|
3424
|
-
secitonSeqID:
|
|
3424
|
+
secitonSeqID: l.colIndex || 1,
|
|
3425
3425
|
// 需要保存文件,固定值
|
|
3426
3426
|
needSavedFile: !!n || [p.mix].includes(e.problemType),
|
|
3427
3427
|
// 题型
|
|
3428
|
-
cuttingSectionQuestionType: mo[
|
|
3428
|
+
cuttingSectionQuestionType: mo[l.problemType || e.problemType]
|
|
3429
3429
|
});
|
|
3430
3430
|
let o = {};
|
|
3431
3431
|
switch (e.problemType) {
|
|
@@ -3442,9 +3442,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3442
3442
|
// 选项是否为横排
|
|
3443
3443
|
crosswised: e.isColumn,
|
|
3444
3444
|
// 单个选项的信息数组
|
|
3445
|
-
choiceUnitSectionList: e.optList.map((
|
|
3446
|
-
...t(
|
|
3447
|
-
choicePosition: ne(
|
|
3445
|
+
choiceUnitSectionList: e.optList.map((l, n) => ({
|
|
3446
|
+
...t(l, !0),
|
|
3447
|
+
choicePosition: ne(l.position),
|
|
3448
3448
|
choiceResult: [p.decide].includes(e.problemType) ? ho[n] : dt[n]
|
|
3449
3449
|
}))
|
|
3450
3450
|
}]
|
|
@@ -3458,13 +3458,13 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3458
3458
|
// 子题数 最小1 填空题取空数
|
|
3459
3459
|
unitCount: (e.children || [e]).length,
|
|
3460
3460
|
// 每个小题的切图块
|
|
3461
|
-
singleBlankSectionList: (e.children || [e]).map((
|
|
3462
|
-
...t(
|
|
3463
|
-
answerPosition: ne(
|
|
3464
|
-
correctFrame:
|
|
3465
|
-
correctSectionPosition: ne(
|
|
3466
|
-
firstBlockPostion: ne(
|
|
3467
|
-
gridScoresList: [
|
|
3461
|
+
singleBlankSectionList: (e.children || [e]).map((l) => ({
|
|
3462
|
+
...t(l, !0),
|
|
3463
|
+
answerPosition: ne(l.answerPosition, !0),
|
|
3464
|
+
correctFrame: l.scorePosition ? [{
|
|
3465
|
+
correctSectionPosition: ne(l.scorePosition, !0),
|
|
3466
|
+
firstBlockPostion: ne(l.scorePosition),
|
|
3467
|
+
gridScoresList: [l.score].flat(),
|
|
3468
3468
|
lineMeanGetScore: !1,
|
|
3469
3469
|
weight: 1
|
|
3470
3470
|
}] : []
|
|
@@ -3484,10 +3484,10 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3484
3484
|
singleBlankSectionList: [{
|
|
3485
3485
|
...t(e, !0),
|
|
3486
3486
|
answerPosition: null,
|
|
3487
|
-
correctFrame: (e.scoreList || []).map((
|
|
3488
|
-
correctSectionPosition: ne(
|
|
3489
|
-
firstBlockPostion: ne({ ...
|
|
3490
|
-
gridScoresList: [
|
|
3487
|
+
correctFrame: (e.scoreList || []).map((l) => ({
|
|
3488
|
+
correctSectionPosition: ne(l.position, !0),
|
|
3489
|
+
firstBlockPostion: ne({ ...l.position, ...l.itemPosition }),
|
|
3490
|
+
gridScoresList: [l.score].flat(),
|
|
3491
3491
|
lineMeanGetScore: !0,
|
|
3492
3492
|
weight: 1
|
|
3493
3493
|
}))
|
|
@@ -3510,9 +3510,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3510
3510
|
// 选项横排
|
|
3511
3511
|
crosswised: !0,
|
|
3512
3512
|
// 单个选项的信息数组
|
|
3513
|
-
choiceUnitSectionList: e.optList.map((
|
|
3514
|
-
...t(
|
|
3515
|
-
choicePosition: ne(
|
|
3513
|
+
choiceUnitSectionList: e.optList.map((l, n) => ({
|
|
3514
|
+
...t(l),
|
|
3515
|
+
choicePosition: ne(l.position),
|
|
3516
3516
|
choiceResult: (e.baseIndex + n).toString()
|
|
3517
3517
|
}))
|
|
3518
3518
|
}]
|
|
@@ -3535,15 +3535,15 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3535
3535
|
// 固定值
|
|
3536
3536
|
splitFileList: [],
|
|
3537
3537
|
// 依据当前页码设置答案
|
|
3538
|
-
answerResultList: dt.slice(e.layout.pagePoint ===
|
|
3538
|
+
answerResultList: dt.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - o - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : o + 1),
|
|
3539
3539
|
// 固定值
|
|
3540
3540
|
noAnswerTag: !1
|
|
3541
3541
|
}],
|
|
3542
3542
|
// 按题切块信息
|
|
3543
|
-
cardCuttingSectionList: t[o].map((
|
|
3543
|
+
cardCuttingSectionList: t[o].map((l) => ps(l)).flat()
|
|
3544
3544
|
})), ys = (e, t) => {
|
|
3545
|
-
var
|
|
3546
|
-
const o =
|
|
3545
|
+
var l;
|
|
3546
|
+
const o = B(e.pageDom[0]);
|
|
3547
3547
|
return {
|
|
3548
3548
|
// 正文code
|
|
3549
3549
|
cardID: e.textCode,
|
|
@@ -3560,8 +3560,8 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3560
3560
|
// 试卷二维码
|
|
3561
3561
|
cardSerialNumber: {
|
|
3562
3562
|
// 条形码虚线框位置, x, y, width, height
|
|
3563
|
-
encodePictureArea: ne(ce(
|
|
3564
|
-
qrCodePosition: ne(ce(
|
|
3563
|
+
encodePictureArea: ne(ce(B(se(k.art_code, e.pageDom[0])), o), !0),
|
|
3564
|
+
qrCodePosition: ne(ce(B(se(k.art_code, e.pageDom[0])), o)),
|
|
3565
3565
|
// 条形码或二维码,不确定,固定此值
|
|
3566
3566
|
pictureType: "TYPE_QRCODE"
|
|
3567
3567
|
},
|
|
@@ -3592,7 +3592,7 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3592
3592
|
layerType: ns(e),
|
|
3593
3593
|
// 定位点信息
|
|
3594
3594
|
...ss(e),
|
|
3595
|
-
pottedLineXPos: e.bindWidth ? (
|
|
3595
|
+
pottedLineXPos: e.bindWidth ? (l = ne(ce(B(se(k.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
3596
3596
|
// 页码点信息
|
|
3597
3597
|
pageSideAnchorsList: is(e),
|
|
3598
3598
|
// 缺考标记
|
|
@@ -3601,9 +3601,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3601
3601
|
oneFullPageCardList: t
|
|
3602
3602
|
};
|
|
3603
3603
|
}, _s = (e) => {
|
|
3604
|
-
const { config: t, data: o } = e,
|
|
3605
|
-
|
|
3606
|
-
const r = us(t, n),
|
|
3604
|
+
const { config: t, data: o } = e, l = ds(t), n = hs(t, o);
|
|
3605
|
+
l && n[0].unshift(l);
|
|
3606
|
+
const r = us(t, n), a = ms(t, n), i = ys(t, a), c = Bt(t, k.en_num_view) || {};
|
|
3607
3607
|
return {
|
|
3608
3608
|
engineData: i,
|
|
3609
3609
|
pageTotal: t.pageTotal,
|
|
@@ -3624,9 +3624,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3624
3624
|
},
|
|
3625
3625
|
emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
|
|
3626
3626
|
setup(e, { emit: t }) {
|
|
3627
|
-
const o = e,
|
|
3628
|
-
|
|
3629
|
-
|
|
3627
|
+
const o = e, l = G([]);
|
|
3628
|
+
De(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
3629
|
+
l.value = [], setTimeout(() => {
|
|
3630
3630
|
var u;
|
|
3631
3631
|
o.ColList.forEach((m, O) => {
|
|
3632
3632
|
m.data.map((h) => h.children).flat().filter((h) => [p.slove, p.art].includes(h.problemType) && !h.chunk).forEach((h) => {
|
|
@@ -3635,46 +3635,46 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3635
3635
|
if (!F)
|
|
3636
3636
|
return;
|
|
3637
3637
|
F.classList.remove("err_lack");
|
|
3638
|
-
const Z = window.getComputedStyle(F),
|
|
3639
|
-
F.offsetWidth - parseFloat(Z.borderLeft) - parseFloat(Z.borderRight) <
|
|
3638
|
+
const Z = window.getComputedStyle(F), oe = [...Array.from(F.children)].map((W) => W.offsetWidth).reduce((W, w) => W + w, 0);
|
|
3639
|
+
F.offsetWidth - parseFloat(Z.borderLeft) - parseFloat(Z.borderRight) < oe && (l.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
|
|
3640
3640
|
});
|
|
3641
3641
|
});
|
|
3642
|
-
const
|
|
3643
|
-
if (!
|
|
3642
|
+
const a = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
|
|
3643
|
+
if (!a)
|
|
3644
3644
|
return;
|
|
3645
3645
|
let i = [], c = [];
|
|
3646
3646
|
o.ImgData.forEach((m) => {
|
|
3647
|
-
(m.left + m.width >
|
|
3647
|
+
(m.left + m.width > a.width || m.top + m.height > a.height) && i.push(m);
|
|
3648
3648
|
}), o.TxtData.forEach((m) => {
|
|
3649
|
-
(m.left + m.width >
|
|
3650
|
-
}), i.length &&
|
|
3649
|
+
(m.left + m.width > a.width || m.top + m.height > a.height) && c.push(m);
|
|
3650
|
+
}), i.length && l.value.push({ type: "absImg", value: i, msg: `${i.length}张插入图片溢出`, fn: n }), c.length && l.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: r }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
|
|
3651
3651
|
}, 500);
|
|
3652
3652
|
});
|
|
3653
3653
|
const n = () => {
|
|
3654
3654
|
var i;
|
|
3655
|
-
(((i =
|
|
3655
|
+
(((i = l.value.find((c) => c.type === "absImg")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsImgItem", c));
|
|
3656
3656
|
}, r = () => {
|
|
3657
3657
|
var i;
|
|
3658
|
-
(((i =
|
|
3658
|
+
(((i = l.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
|
|
3659
3659
|
};
|
|
3660
|
-
return (
|
|
3660
|
+
return (a, i) => (s(), d("div", fs, [
|
|
3661
3661
|
f("div", gs, [
|
|
3662
3662
|
f("div", {
|
|
3663
|
-
class:
|
|
3663
|
+
class: te(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3664
3664
|
}, null, 2),
|
|
3665
3665
|
f("div", {
|
|
3666
|
-
class:
|
|
3666
|
+
class: te(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3667
3667
|
}, [
|
|
3668
3668
|
f("span", bs, [
|
|
3669
3669
|
j(ye, {
|
|
3670
3670
|
width: 1.6,
|
|
3671
|
-
name:
|
|
3671
|
+
name: l.value.length ? "wrong" : "right"
|
|
3672
3672
|
}, null, 8, ["name"])
|
|
3673
3673
|
]),
|
|
3674
|
-
f("span", vs, "排版" + V(
|
|
3674
|
+
f("span", vs, "排版" + V(l.value.length ? "异常" : "良好"), 1)
|
|
3675
3675
|
], 2),
|
|
3676
|
-
|
|
3677
|
-
(s(!0), d(E, null, X(
|
|
3676
|
+
l.value.length ? (s(), d("ul", ws, [
|
|
3677
|
+
(s(!0), d(E, null, X(l.value, (c, u) => (s(), d("li", {
|
|
3678
3678
|
key: u,
|
|
3679
3679
|
class: "layt-moni_err_item"
|
|
3680
3680
|
}, [
|
|
@@ -3693,42 +3693,42 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3693
3693
|
const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e) => e == null ? void 0 : e.getBoundingClientRect(), St = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ht].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, ht].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
|
|
3694
3694
|
const t = e.parentElement, o = document.createElement("span");
|
|
3695
3695
|
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ht, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
3696
|
-
}, Ts = (e, t, o,
|
|
3696
|
+
}, Ts = (e, t, o, l) => {
|
|
3697
3697
|
let n = null;
|
|
3698
3698
|
if (e.dataset.block === ut && !e.dataset.used) {
|
|
3699
3699
|
const r = window.getComputedStyle(e);
|
|
3700
3700
|
t - parseFloat(r.paddingTop) - parseFloat(r.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
|
|
3701
3701
|
} else
|
|
3702
|
-
e.dataset.block === Ct ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${Ct}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol &&
|
|
3702
|
+
e.dataset.block === Ct ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${Ct}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (n = e);
|
|
3703
3703
|
return n;
|
|
3704
3704
|
}, Tt = (e, t, o) => {
|
|
3705
|
-
const
|
|
3705
|
+
const l = e.textContent || "", n = l.split("").map((c) => `<span>${c}</span>`).join("");
|
|
3706
3706
|
e.innerHTML = n;
|
|
3707
3707
|
const r = [...Array.from(e.children)].findIndex((c) => ue(c).top - t + c.offsetHeight > o);
|
|
3708
3708
|
if (r < 1)
|
|
3709
|
-
return e.innerHTML =
|
|
3710
|
-
const
|
|
3711
|
-
|
|
3709
|
+
return e.innerHTML = l, e;
|
|
3710
|
+
const a = document.createElement("span");
|
|
3711
|
+
a.textContent = l.slice(0, r);
|
|
3712
3712
|
const i = document.createElement("span");
|
|
3713
|
-
return i.textContent =
|
|
3713
|
+
return i.textContent = l.slice(r), e.innerHTML = "", e.append(a, i), a;
|
|
3714
3714
|
}, st = (e, t, o) => {
|
|
3715
|
-
const
|
|
3716
|
-
let r =
|
|
3715
|
+
const l = nt("", e.parentElement), n = l.findIndex((a) => a === e);
|
|
3716
|
+
let r = l.filter((a, i) => ue(a).top + a.offsetHeight - 1 < ue(e).top || i < n && ue(a).top < ue(e).top).reverse()[0];
|
|
3717
3717
|
return r || (r = Ve(e), ue(r).top + r.offsetHeight - t > o && (r = st(r, t, o))), r;
|
|
3718
|
-
}, It = (e, t, o,
|
|
3719
|
-
const n = (
|
|
3720
|
-
var
|
|
3721
|
-
const c =
|
|
3718
|
+
}, It = (e, t, o, l) => {
|
|
3719
|
+
const n = (a, i = o) => {
|
|
3720
|
+
var oe, L, W;
|
|
3721
|
+
const c = a.map((w) => {
|
|
3722
3722
|
const M = ue(w);
|
|
3723
3723
|
return {
|
|
3724
3724
|
el: w,
|
|
3725
3725
|
top: M.top - t,
|
|
3726
3726
|
left: M.left
|
|
3727
3727
|
};
|
|
3728
|
-
}), u = c.filter((w) => w.el.offsetHeight + w.top > i).sort((w, M) => w.top - M.top), m = (
|
|
3728
|
+
}), u = c.filter((w) => w.el.offsetHeight + w.top > i).sort((w, M) => w.top - M.top), m = (oe = u.shift()) == null ? void 0 : oe.el;
|
|
3729
3729
|
if (!m) {
|
|
3730
3730
|
const w = document.createElement("div");
|
|
3731
|
-
return (L =
|
|
3731
|
+
return (L = a[0].parentElement) == null || L.appendChild(w), w.style.height = i - (ue(w).top - t) + "px", w;
|
|
3732
3732
|
}
|
|
3733
3733
|
const O = ue(m), h = O.top - t, F = O.left;
|
|
3734
3734
|
if (u.filter((w) => w.top < h + m.offsetHeight && w.top + w.el.offsetHeight - 1 > h && (w.left + w.el.offsetWidth - 1 < F || w.left + 1 > F + m.offsetWidth)).length) {
|
|
@@ -3742,7 +3742,7 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
|
|
|
3742
3742
|
const w = getComputedStyle(m);
|
|
3743
3743
|
if (h + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > i)
|
|
3744
3744
|
return st(m, t, h);
|
|
3745
|
-
const M = Ts(m, i - h, i,
|
|
3745
|
+
const M = Ts(m, i - h, i, l);
|
|
3746
3746
|
if (M)
|
|
3747
3747
|
return Ve(M);
|
|
3748
3748
|
if (m.children.length) {
|
|
@@ -3754,20 +3754,20 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
|
|
|
3754
3754
|
}, r = n([e]);
|
|
3755
3755
|
return { cut: Ss(r), targetEl: r };
|
|
3756
3756
|
}, Is = (e) => {
|
|
3757
|
-
const { el: t, data: o, column:
|
|
3757
|
+
const { el: t, data: o, column: l, backColumn: n, getColSize: r, change: a } = e;
|
|
3758
3758
|
if (!t || !o.length) {
|
|
3759
|
-
|
|
3759
|
+
a([], !0);
|
|
3760
3760
|
return;
|
|
3761
3761
|
}
|
|
3762
3762
|
console.time("layout");
|
|
3763
3763
|
const i = ue(t).top;
|
|
3764
3764
|
let c = {}, u = 0, m = 0;
|
|
3765
3765
|
const O = (w) => {
|
|
3766
|
-
const M = w % (
|
|
3766
|
+
const M = w % (l + n), K = Math.floor(w / (l + n)) * 2 + (M >= l ? 1 : 0), z = r(w, K);
|
|
3767
3767
|
c = {
|
|
3768
3768
|
top: i,
|
|
3769
|
-
width: parseFloat(
|
|
3770
|
-
height: parseFloat(
|
|
3769
|
+
width: parseFloat(z.width),
|
|
3770
|
+
height: parseFloat(z.height)
|
|
3771
3771
|
};
|
|
3772
3772
|
};
|
|
3773
3773
|
let h = [], F = 0;
|
|
@@ -3777,10 +3777,10 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
|
|
|
3777
3777
|
data: [],
|
|
3778
3778
|
width: c.width,
|
|
3779
3779
|
height: c.height
|
|
3780
|
-
}),
|
|
3780
|
+
}), a([...h]);
|
|
3781
3781
|
};
|
|
3782
3782
|
Z();
|
|
3783
|
-
const
|
|
3783
|
+
const oe = (w) => {
|
|
3784
3784
|
const M = getComputedStyle(w);
|
|
3785
3785
|
return ue(w).top - c.top + parseFloat(M.borderTop) + parseFloat(M.paddingTop) + parseFloat(M.lineHeight) > h[h.length - 1].height;
|
|
3786
3786
|
}, L = (w) => {
|
|
@@ -3788,12 +3788,12 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
|
|
|
3788
3788
|
return ue(w).top + w.offsetHeight - c.top - (w.dataset.block === ke ? 0 : parseFloat(M.paddingBottom) - parseFloat(M.borderBottom)) <= h[h.length - 1].height;
|
|
3789
3789
|
}, W = (w = JSON.parse(JSON.stringify(o[F] || {}))) => {
|
|
3790
3790
|
if (F >= o.length || !Object.keys(w).length) {
|
|
3791
|
-
|
|
3791
|
+
a([...h], !0), console.timeEnd("layout"), h = [], u = 0;
|
|
3792
3792
|
return;
|
|
3793
3793
|
}
|
|
3794
|
-
h[h.length - 1].data.push({ ...w }),
|
|
3794
|
+
h[h.length - 1].data.push({ ...w }), a([...h]), window.requestAnimationFrame(() => {
|
|
3795
3795
|
const M = St(w.__tag__, t), K = !w.isHidden && ue(M);
|
|
3796
|
-
let
|
|
3796
|
+
let z = null;
|
|
3797
3797
|
if (m) {
|
|
3798
3798
|
const _ = M.querySelector(`*[data-hutkey="${m}"]`), C = ue(_);
|
|
3799
3799
|
h[h.length - 1].top = c.top - C.top, h[h.length - 1].height = c.height - h[h.length - 1].top, m = 0;
|
|
@@ -3803,53 +3803,53 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
|
|
|
3803
3803
|
h[h.length - 1].data.pop(), Z(), W({ ...w });
|
|
3804
3804
|
else if (L(M))
|
|
3805
3805
|
Z(), F++, W();
|
|
3806
|
-
else if (
|
|
3806
|
+
else if (oe(M))
|
|
3807
3807
|
h[h.length - 1].data.pop(), Z(), W({ ...w });
|
|
3808
3808
|
else {
|
|
3809
|
-
|
|
3809
|
+
z = It(M, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
|
|
3810
3810
|
const _ = M.querySelector(`*[data-content="${w.id}"]`);
|
|
3811
|
-
h[h.length - 1].height = ue(
|
|
3811
|
+
h[h.length - 1].height = ue(z.cut).top - c.top, Z(), _ != null && _.contains(z.cut) ? (m = Date.now(), z.cut.dataset.hutkey = m, W({ ...w, content: _.innerHTML })) : (h[h.length - 1].data.pop(), W({ ...w }));
|
|
3812
3812
|
}
|
|
3813
3813
|
else {
|
|
3814
3814
|
let _ = [], C = [];
|
|
3815
|
-
w.children.some((v,
|
|
3816
|
-
const
|
|
3815
|
+
w.children.some((v, H) => {
|
|
3816
|
+
const N = St(v.__tag__, t), me = ue(N);
|
|
3817
3817
|
if (u) {
|
|
3818
|
-
const he =
|
|
3818
|
+
const he = N.querySelector(`*[data-cutkey="${u}"]`), ie = ue(he);
|
|
3819
3819
|
h[h.length - 1].top = c.top - ie.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
|
|
3820
3820
|
}
|
|
3821
3821
|
if (me.height + me.top - c.top > h[h.length - 1].height) {
|
|
3822
|
-
if (L(
|
|
3823
|
-
_.push(v), C =
|
|
3824
|
-
else if (
|
|
3825
|
-
C = w.children.slice(
|
|
3822
|
+
if (L(N))
|
|
3823
|
+
_.push(v), C = H < w.children.length - 1 ? w.children.slice(H + 1) : [];
|
|
3824
|
+
else if (oe(N))
|
|
3825
|
+
C = w.children.slice(H);
|
|
3826
3826
|
else {
|
|
3827
|
-
|
|
3828
|
-
const he =
|
|
3829
|
-
if (
|
|
3830
|
-
_.push(v), C =
|
|
3831
|
-
else if (he && he.contains(
|
|
3832
|
-
u = Date.now(),
|
|
3827
|
+
z = It(N, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
|
|
3828
|
+
const he = N.querySelector(`*[data-content="${v.id}"]`);
|
|
3829
|
+
if (N === z.targetEl)
|
|
3830
|
+
_.push(v), C = H < w.children.length - 1 ? w.children.slice(H + 1) : [];
|
|
3831
|
+
else if (he && he.contains(z.cut))
|
|
3832
|
+
u = Date.now(), z.cut.dataset.cutkey = u, v.content = he.innerHTML, _.push(v), C = [{ ...v, content: he.innerHTML }, ...H < w.children.length - 1 ? w.children.slice(H + 1) : []], h[h.length - 1].height = ue(z.cut).top - c.top;
|
|
3833
3833
|
else {
|
|
3834
3834
|
if (!C.length) {
|
|
3835
3835
|
let ie = { ...v };
|
|
3836
3836
|
switch (v.problemType) {
|
|
3837
3837
|
case at.slove:
|
|
3838
|
-
const _e =
|
|
3839
|
-
_e != null && _e.contains(
|
|
3838
|
+
const _e = N.querySelector(`*[data-area="${v.id}"]`);
|
|
3839
|
+
_e != null && _e.contains(z.cut) && (u = Date.now(), z.cut.dataset.cutkey = u, v.answerArea = _e.innerHTML), N.contains(z.targetEl) && (v.chunk += 1);
|
|
3840
3840
|
break;
|
|
3841
3841
|
case at.art:
|
|
3842
|
-
const fe =
|
|
3843
|
-
if (fe != null && fe.contains(
|
|
3844
|
-
u = Date.now(),
|
|
3842
|
+
const fe = N.querySelector(`*[data-bart="${v.id}"]`), P = z.targetEl.dataset.block === ke && z.targetEl.dataset.size ? z.targetEl : null, $ = N.querySelector(`*[data-aart="${v.id}"]`);
|
|
3843
|
+
if (fe != null && fe.contains(z.cut))
|
|
3844
|
+
u = Date.now(), z.cut.dataset.cutkey = u, v.beforeArt = fe == null ? void 0 : fe.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
|
|
3845
3845
|
else if (P) {
|
|
3846
3846
|
const S = parseInt(P.dataset.size);
|
|
3847
3847
|
if (!v.artBlock)
|
|
3848
3848
|
if (v.beforeGuide && v.beforeGuide.length + (v.startAnswerLen ? 0 : 2) - v.startAnswerLen > S) {
|
|
3849
|
-
const Q =
|
|
3849
|
+
const Q = N.querySelector(`*[data-guide="${v.id}"]`), we = ue(Q);
|
|
3850
3850
|
if (we.height + we.top - c.top > c.height) {
|
|
3851
3851
|
Q.innerHTML = v.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
|
|
3852
|
-
const
|
|
3852
|
+
const ae = ue(P).top + P.offsetHeight, re = [...Array.from(Q.children)].findIndex((be) => ue(be).top > ae);
|
|
3853
3853
|
ie.beforeGuide = v.beforeGuide.substring(0, re), v.beforeGuide = v.beforeGuide.substring(re);
|
|
3854
3854
|
} else
|
|
3855
3855
|
v.beforeGuide = "";
|
|
@@ -3857,19 +3857,19 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
|
|
|
3857
3857
|
v.beforeGuide = "";
|
|
3858
3858
|
ie.endAnswerLen = S, v.startAnswerLen = S;
|
|
3859
3859
|
} else
|
|
3860
|
-
$ != null && $.contains(
|
|
3861
|
-
v.chunk += 1;
|
|
3860
|
+
$ != null && $.contains(z.cut) ? (u = Date.now(), z.cut.dataset.cutkey = u, v.beforeArt = "", v.beforeGuide = "", v.startAnswerLen = 1, v.endAnswerLen = -1, v.afterArt = $.innerHTML) : z.targetEl === fe ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", v.beforeArt = "") : (fe == null ? void 0 : fe.previousElementSibling) === z.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
|
|
3861
|
+
N.contains(z.targetEl) && (v.chunk += 1);
|
|
3862
3862
|
break;
|
|
3863
3863
|
}
|
|
3864
|
-
|
|
3864
|
+
N.contains(z.targetEl) && _.push(ie), u && (h[h.length - 1].height = ue(z.cut).top - c.top);
|
|
3865
3865
|
}
|
|
3866
|
-
C = [v, ...
|
|
3866
|
+
C = [v, ...H < w.children.length - 1 ? w.children.slice(H + 1) : []];
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
return !0;
|
|
3870
3870
|
} else
|
|
3871
3871
|
_.push(v);
|
|
3872
|
-
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Z(), W({ ...w, isHidden: !0, children: C })) : (
|
|
3872
|
+
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Z(), W({ ...w, isHidden: !0, children: C })) : (a([...h]), F++, W());
|
|
3873
3873
|
}
|
|
3874
3874
|
});
|
|
3875
3875
|
};
|
|
@@ -3892,8 +3892,8 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3892
3892
|
},
|
|
3893
3893
|
emits: ["change", "focus", "blur"],
|
|
3894
3894
|
setup(e, { emit: t }) {
|
|
3895
|
-
const o = e,
|
|
3896
|
-
|
|
3895
|
+
const o = e, l = Rt("ckeditorOrigin", ""), n = G();
|
|
3896
|
+
De(() => o.readonly, () => r()), Xe(() => r());
|
|
3897
3897
|
const r = () => {
|
|
3898
3898
|
if (window.CKEDITOR) {
|
|
3899
3899
|
if (o.readonly) {
|
|
@@ -3901,7 +3901,7 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3901
3901
|
return;
|
|
3902
3902
|
}
|
|
3903
3903
|
Je(() => {
|
|
3904
|
-
n.value = Ls("inline",
|
|
3904
|
+
n.value = Ls("inline", l), n.value && n.value.on("instanceReady", (u) => {
|
|
3905
3905
|
n.value.setData(o.value);
|
|
3906
3906
|
});
|
|
3907
3907
|
});
|
|
@@ -3911,7 +3911,7 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3911
3911
|
r();
|
|
3912
3912
|
}, u.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
|
|
3913
3913
|
}
|
|
3914
|
-
},
|
|
3914
|
+
}, a = () => {
|
|
3915
3915
|
t("blur");
|
|
3916
3916
|
const u = c(n.value.getData());
|
|
3917
3917
|
u !== o.value && t("change", u, o.name);
|
|
@@ -3929,15 +3929,15 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3929
3929
|
if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
|
|
3930
3930
|
O(F);
|
|
3931
3931
|
else if (F.nodeType === Node.TEXT_NODE) {
|
|
3932
|
-
const
|
|
3933
|
-
|
|
3932
|
+
const oe = document.createElement("span");
|
|
3933
|
+
oe.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (oe.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (W) => W.length > 5 ? `<span style="word-break: break-all">${W}</span>` : W)), (Z = F.parentElement) == null || Z.replaceChild(oe, F);
|
|
3934
3934
|
}
|
|
3935
3935
|
});
|
|
3936
3936
|
};
|
|
3937
3937
|
return O(), m.innerHTML;
|
|
3938
3938
|
};
|
|
3939
3939
|
return (u, m) => (s(), d("div", Fs, [
|
|
3940
|
-
o.readonly ? (s(), U(
|
|
3940
|
+
o.readonly ? (s(), U(Ae, {
|
|
3941
3941
|
key: 1,
|
|
3942
3942
|
data: o.value,
|
|
3943
3943
|
class: "raw_view"
|
|
@@ -3948,40 +3948,40 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3948
3948
|
contentEditable: !o.readonly,
|
|
3949
3949
|
id: x(pt),
|
|
3950
3950
|
onFocus: i,
|
|
3951
|
-
onBlur:
|
|
3951
|
+
onBlur: a
|
|
3952
3952
|
}, null, 40, Es))
|
|
3953
3953
|
]));
|
|
3954
3954
|
}
|
|
3955
3955
|
});
|
|
3956
3956
|
const Ps = /* @__PURE__ */ de(Ms, [["__scopeId", "data-v-1398ac85"]]);
|
|
3957
|
-
let
|
|
3957
|
+
let Ye = (e) => {
|
|
3958
3958
|
};
|
|
3959
3959
|
const Ds = {
|
|
3960
3960
|
updated: function(e, t) {
|
|
3961
|
-
document.body.removeEventListener("click",
|
|
3961
|
+
document.body.removeEventListener("click", Ye), Ye = (o) => {
|
|
3962
3962
|
!e.contains(o.target) && t.value && t.value(o);
|
|
3963
|
-
}, document.body.addEventListener("click",
|
|
3963
|
+
}, document.body.addEventListener("click", Ye);
|
|
3964
3964
|
},
|
|
3965
3965
|
unmounted: () => {
|
|
3966
|
-
document.body.removeEventListener("click",
|
|
3966
|
+
document.body.removeEventListener("click", Ye);
|
|
3967
3967
|
}
|
|
3968
3968
|
};
|
|
3969
3969
|
let ot = null;
|
|
3970
3970
|
const As = {
|
|
3971
3971
|
mounted: (e, t) => {
|
|
3972
|
-
let o = {},
|
|
3972
|
+
let o = {}, l = !1, n = !1, r = e.offsetParent, a = {}, i = {};
|
|
3973
3973
|
const c = e.querySelector(".move-target") || e;
|
|
3974
3974
|
c.style.cursor = "move", c.addEventListener("mousedown", (u) => {
|
|
3975
|
-
|
|
3975
|
+
l = !0, n = !!e.dataset.safe, r = e.offsetParent;
|
|
3976
3976
|
const m = window.getComputedStyle(e);
|
|
3977
|
-
o = { x: u.clientX, y: u.clientY },
|
|
3977
|
+
o = { x: u.clientX, y: u.clientY }, a = { x: parseInt(m.left), y: parseInt(m.top) };
|
|
3978
3978
|
}), document.addEventListener("mouseup", (u) => {
|
|
3979
|
-
|
|
3979
|
+
l = !1;
|
|
3980
3980
|
}), ot = (u) => {
|
|
3981
|
-
if (!
|
|
3981
|
+
if (!l || e.getAttribute("disabled") === "true")
|
|
3982
3982
|
return;
|
|
3983
3983
|
u.stopPropagation(), u.preventDefault(), i = { x: u.clientX, y: u.clientY };
|
|
3984
|
-
const m = n ? Math.min(Math.max(i.x - o.x +
|
|
3984
|
+
const m = n ? Math.min(Math.max(i.x - o.x + a.x, 0), r.offsetWidth - e.offsetWidth) : i.x - o.x + a.x, O = n ? Math.min(Math.max(i.y - o.y + a.y, 0), r.offsetHeight - e.offsetHeight) : i.y - o.y + a.y;
|
|
3985
3985
|
e.style.left = `${m}px`, e.style.top = `${O}px`, t.value && typeof t.value == "function" && t.value({ x: m, y: O });
|
|
3986
3986
|
}, document.addEventListener("mousemove", ot);
|
|
3987
3987
|
},
|
|
@@ -3998,7 +3998,7 @@ const As = {
|
|
|
3998
3998
|
},
|
|
3999
3999
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4000
4000
|
setup(e, { emit: t }) {
|
|
4001
|
-
const o = e,
|
|
4001
|
+
const o = e, l = Ds, n = As, r = [
|
|
4002
4002
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4003
4003
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4004
4004
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4007,7 +4007,7 @@ const As = {
|
|
|
4007
4007
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4008
4008
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4009
4009
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4010
|
-
],
|
|
4010
|
+
], a = G({}), i = G(), c = G(0), u = G(0), m = G(), O = G(), h = G({}), F = G(!1), Z = G(), oe = G(), L = G(), W = A(() => o.imgData.map((P) => ({
|
|
4011
4011
|
...P,
|
|
4012
4012
|
top: P.top - Math.floor(P.top / (g[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4013
4013
|
}))), w = A(() => o.txtData.map((P) => ({
|
|
@@ -4017,7 +4017,7 @@ const As = {
|
|
|
4017
4017
|
Xe(() => {
|
|
4018
4018
|
m.value = document.body.querySelector(".__layout__");
|
|
4019
4019
|
});
|
|
4020
|
-
const
|
|
4020
|
+
const z = (P) => {
|
|
4021
4021
|
i.value = { ...M.value, left: Math.max(P.x, 0), top: Math.max(P.y, 0) }, clearTimeout(O.value), O.value = setTimeout(() => {
|
|
4022
4022
|
var $;
|
|
4023
4023
|
(($ = M.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
@@ -4026,169 +4026,169 @@ const As = {
|
|
|
4026
4026
|
F.value = P;
|
|
4027
4027
|
}, C = () => {
|
|
4028
4028
|
const P = M.value, $ = P.left + P.width / 2, S = P.top + P.height / 2, Q = m.value.getBoundingClientRect() || {};
|
|
4029
|
-
h.value = { x: $ + Q.left, y: S + Q.top }, m.value.addEventListener("mousemove", v), m.value.addEventListener("mouseleave",
|
|
4029
|
+
h.value = { x: $ + Q.left, y: S + Q.top }, m.value.addEventListener("mousemove", v), m.value.addEventListener("mouseleave", H), m.value.addEventListener("mouseup", H);
|
|
4030
4030
|
}, v = (P) => {
|
|
4031
4031
|
P.stopPropagation(), P.preventDefault();
|
|
4032
4032
|
const $ = P.clientX - h.value.x, S = h.value.y - P.clientY, Q = Math.atan2(S, $) / (Math.PI / 180);
|
|
4033
4033
|
i.value = { ...M.value, rotate: -parseInt(Q.toString()) };
|
|
4034
|
-
},
|
|
4035
|
-
P.stopPropagation(), P.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove", v), m.value.removeEventListener("mouseleave",
|
|
4036
|
-
},
|
|
4034
|
+
}, H = (P) => {
|
|
4035
|
+
P.stopPropagation(), P.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove", v), m.value.removeEventListener("mouseleave", H), m.value.removeEventListener("mouseup", H);
|
|
4036
|
+
}, N = (P, $) => {
|
|
4037
4037
|
var S;
|
|
4038
|
-
P.stopPropagation(), c.value = $,
|
|
4038
|
+
P.stopPropagation(), c.value = $, a.value = { x: P.clientX, y: P.clientY, ...M.value }, ((S = M.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? m.value.addEventListener("mousemove", me) : m.value.addEventListener("mousemove", he), m.value.addEventListener("mouseleave", ie), m.value.addEventListener("mouseup", ie);
|
|
4039
4039
|
}, me = (P) => {
|
|
4040
|
-
const $ = { x: P.clientX -
|
|
4040
|
+
const $ = { x: P.clientX - a.value.x, y: P.clientY - a.value.y }, S = { ...M.value }, Q = $.x > $.y ? "width" : "height";
|
|
4041
4041
|
[
|
|
4042
4042
|
// 0
|
|
4043
4043
|
() => {
|
|
4044
|
-
const
|
|
4045
|
-
width:
|
|
4046
|
-
height:
|
|
4044
|
+
const ae = {
|
|
4045
|
+
width: a.value.width - $.x,
|
|
4046
|
+
height: a.value.width * (1 - $.y / a.value.height)
|
|
4047
4047
|
}[Q], re = {
|
|
4048
|
-
width:
|
|
4049
|
-
height:
|
|
4048
|
+
width: a.value.height * (1 - $.x / a.value.width),
|
|
4049
|
+
height: a.value.height - $.y
|
|
4050
4050
|
}[Q];
|
|
4051
4051
|
i.value = {
|
|
4052
4052
|
...S,
|
|
4053
|
-
width:
|
|
4053
|
+
width: ae,
|
|
4054
4054
|
height: re,
|
|
4055
|
-
left:
|
|
4056
|
-
top:
|
|
4055
|
+
left: a.value.left - (ae - a.value.width),
|
|
4056
|
+
top: a.value.top - (re - a.value.height)
|
|
4057
4057
|
};
|
|
4058
4058
|
},
|
|
4059
4059
|
// 1
|
|
4060
4060
|
() => {
|
|
4061
|
-
const
|
|
4061
|
+
const ae = a.value.width * (1 - $.y / a.value.height), re = a.value.height - $.y;
|
|
4062
4062
|
i.value = {
|
|
4063
4063
|
...S,
|
|
4064
|
-
width:
|
|
4064
|
+
width: ae,
|
|
4065
4065
|
height: re,
|
|
4066
|
-
left:
|
|
4067
|
-
top:
|
|
4066
|
+
left: a.value.left - (ae - a.value.width) / 2,
|
|
4067
|
+
top: a.value.top - (re - a.value.height)
|
|
4068
4068
|
};
|
|
4069
4069
|
},
|
|
4070
4070
|
// 2
|
|
4071
4071
|
() => {
|
|
4072
|
-
const
|
|
4073
|
-
width:
|
|
4074
|
-
height:
|
|
4072
|
+
const ae = {
|
|
4073
|
+
width: a.value.height * (1 + $.x / a.value.width),
|
|
4074
|
+
height: a.value.height - $.y
|
|
4075
4075
|
}[Q];
|
|
4076
4076
|
i.value = {
|
|
4077
4077
|
...S,
|
|
4078
4078
|
width: {
|
|
4079
|
-
width:
|
|
4080
|
-
height:
|
|
4079
|
+
width: a.value.width + $.x,
|
|
4080
|
+
height: a.value.width * (1 - $.y / a.value.height)
|
|
4081
4081
|
}[Q],
|
|
4082
|
-
height:
|
|
4083
|
-
top:
|
|
4082
|
+
height: ae,
|
|
4083
|
+
top: a.value.top - (ae - a.value.height)
|
|
4084
4084
|
};
|
|
4085
4085
|
},
|
|
4086
4086
|
// 3
|
|
4087
4087
|
() => {
|
|
4088
|
-
const
|
|
4088
|
+
const ae = a.value.width - $.x, re = a.value.height * (1 - $.x / a.value.width);
|
|
4089
4089
|
i.value = {
|
|
4090
4090
|
...S,
|
|
4091
|
-
width:
|
|
4091
|
+
width: ae,
|
|
4092
4092
|
height: re,
|
|
4093
|
-
left:
|
|
4094
|
-
top:
|
|
4093
|
+
left: a.value.left - (ae - a.value.width),
|
|
4094
|
+
top: a.value.top - (re - a.value.height) / 2
|
|
4095
4095
|
};
|
|
4096
4096
|
},
|
|
4097
4097
|
// 4
|
|
4098
4098
|
() => {
|
|
4099
|
-
const
|
|
4099
|
+
const ae = a.value.width + $.x, re = a.value.height * (1 + $.x / a.value.width);
|
|
4100
4100
|
i.value = {
|
|
4101
4101
|
...S,
|
|
4102
|
-
width:
|
|
4102
|
+
width: ae,
|
|
4103
4103
|
height: re,
|
|
4104
|
-
top:
|
|
4104
|
+
top: a.value.top - (re - a.value.height) / 2
|
|
4105
4105
|
};
|
|
4106
4106
|
},
|
|
4107
4107
|
// 5
|
|
4108
4108
|
() => {
|
|
4109
|
-
const
|
|
4110
|
-
width:
|
|
4111
|
-
height:
|
|
4109
|
+
const ae = {
|
|
4110
|
+
width: a.value.width - $.x,
|
|
4111
|
+
height: a.value.width * (1 + $.y / a.value.height)
|
|
4112
4112
|
}[Q], re = {
|
|
4113
|
-
width:
|
|
4114
|
-
height:
|
|
4113
|
+
width: a.value.height * (1 - $.x / a.value.width),
|
|
4114
|
+
height: a.value.height + $.y
|
|
4115
4115
|
}[Q];
|
|
4116
4116
|
i.value = {
|
|
4117
4117
|
...S,
|
|
4118
|
-
width:
|
|
4118
|
+
width: ae,
|
|
4119
4119
|
height: re,
|
|
4120
|
-
left:
|
|
4120
|
+
left: a.value.left - (ae - a.value.width)
|
|
4121
4121
|
};
|
|
4122
4122
|
},
|
|
4123
4123
|
// 6
|
|
4124
4124
|
() => {
|
|
4125
|
-
const
|
|
4125
|
+
const ae = a.value.width * (1 + $.y / a.value.height), re = a.value.height + $.y;
|
|
4126
4126
|
i.value = {
|
|
4127
4127
|
...S,
|
|
4128
|
-
width:
|
|
4128
|
+
width: ae,
|
|
4129
4129
|
height: re,
|
|
4130
|
-
left:
|
|
4130
|
+
left: a.value.left - (ae - a.value.width) / 2
|
|
4131
4131
|
};
|
|
4132
4132
|
},
|
|
4133
4133
|
// 7
|
|
4134
4134
|
() => {
|
|
4135
|
-
const
|
|
4136
|
-
width:
|
|
4137
|
-
height:
|
|
4135
|
+
const ae = {
|
|
4136
|
+
width: a.value.width + $.x,
|
|
4137
|
+
height: a.value.width * (1 + $.y / a.value.height)
|
|
4138
4138
|
}[Q], re = {
|
|
4139
|
-
width:
|
|
4140
|
-
height:
|
|
4139
|
+
width: a.value.height * (1 + $.x / a.value.width),
|
|
4140
|
+
height: a.value.height + $.y
|
|
4141
4141
|
}[Q];
|
|
4142
4142
|
i.value = {
|
|
4143
4143
|
...S,
|
|
4144
|
-
width:
|
|
4144
|
+
width: ae,
|
|
4145
4145
|
height: re
|
|
4146
4146
|
};
|
|
4147
4147
|
}
|
|
4148
4148
|
][c.value]();
|
|
4149
4149
|
}, he = (P) => {
|
|
4150
|
-
const $ = { x: P.clientX -
|
|
4150
|
+
const $ = { x: P.clientX - a.value.x, y: P.clientY - a.value.y }, S = { ...M.value }, Q = [
|
|
4151
4151
|
{
|
|
4152
4152
|
...S,
|
|
4153
|
-
width:
|
|
4154
|
-
height:
|
|
4155
|
-
left:
|
|
4156
|
-
top:
|
|
4153
|
+
width: a.value.width - $.x,
|
|
4154
|
+
height: a.value.height - $.y,
|
|
4155
|
+
left: a.value.left + $.x,
|
|
4156
|
+
top: a.value.top + $.y
|
|
4157
4157
|
},
|
|
4158
4158
|
{
|
|
4159
4159
|
...S,
|
|
4160
|
-
height:
|
|
4161
|
-
top:
|
|
4160
|
+
height: a.value.height - $.y,
|
|
4161
|
+
top: a.value.top + $.y
|
|
4162
4162
|
},
|
|
4163
4163
|
{
|
|
4164
4164
|
...S,
|
|
4165
|
-
width:
|
|
4166
|
-
height:
|
|
4167
|
-
top:
|
|
4165
|
+
width: a.value.width + $.x,
|
|
4166
|
+
height: a.value.height - $.y,
|
|
4167
|
+
top: a.value.top + $.y
|
|
4168
4168
|
},
|
|
4169
4169
|
{
|
|
4170
4170
|
...S,
|
|
4171
|
-
width:
|
|
4172
|
-
left:
|
|
4171
|
+
width: a.value.width - $.x,
|
|
4172
|
+
left: a.value.left + $.x
|
|
4173
4173
|
},
|
|
4174
4174
|
{
|
|
4175
4175
|
...S,
|
|
4176
|
-
width:
|
|
4176
|
+
width: a.value.width + $.x
|
|
4177
4177
|
},
|
|
4178
4178
|
{
|
|
4179
4179
|
...S,
|
|
4180
|
-
width:
|
|
4181
|
-
height:
|
|
4182
|
-
left:
|
|
4180
|
+
width: a.value.width - $.x,
|
|
4181
|
+
height: a.value.height + $.y,
|
|
4182
|
+
left: a.value.left + $.x
|
|
4183
4183
|
},
|
|
4184
4184
|
{
|
|
4185
4185
|
...S,
|
|
4186
|
-
height:
|
|
4186
|
+
height: a.value.height + $.y
|
|
4187
4187
|
},
|
|
4188
4188
|
{
|
|
4189
4189
|
...S,
|
|
4190
|
-
width:
|
|
4191
|
-
height:
|
|
4190
|
+
width: a.value.width + $.x,
|
|
4191
|
+
height: a.value.height + $.y
|
|
4192
4192
|
}
|
|
4193
4193
|
];
|
|
4194
4194
|
i.value = Q[c.value];
|
|
@@ -4204,19 +4204,19 @@ const As = {
|
|
|
4204
4204
|
}, fe = (P, $) => {
|
|
4205
4205
|
var Q;
|
|
4206
4206
|
const S = document.body.querySelector(`.cke_editor_${pt}`);
|
|
4207
|
-
!P && ((Q = ($ == null ? void 0 : $.target).dataset) != null && Q.safe || [...
|
|
4207
|
+
!P && ((Q = ($ == null ? void 0 : $.target).dataset) != null && Q.safe || [...oe.value, ...L.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (Z.value = P == null ? void 0 : P.key, i.value = P ? { ...P } : null);
|
|
4208
4208
|
};
|
|
4209
4209
|
return (P, $) => (s(), d(E, null, [
|
|
4210
4210
|
(s(!0), d(E, null, X(W.value, (S) => {
|
|
4211
|
-
var Q, we,
|
|
4211
|
+
var Q, we, ae, re, be, b, T;
|
|
4212
4212
|
return gt((s(), d("div", {
|
|
4213
4213
|
key: S.id,
|
|
4214
4214
|
ref_for: !0,
|
|
4215
4215
|
ref_key: "imgViewList",
|
|
4216
|
-
ref:
|
|
4216
|
+
ref: oe,
|
|
4217
4217
|
"data-safe": "true",
|
|
4218
|
-
class:
|
|
4219
|
-
style: Y({ left: Math.max(((we = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((
|
|
4218
|
+
class: te(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8" : "z-7"]),
|
|
4219
|
+
style: Y({ left: Math.max(((we = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = K.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = K.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = K.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = K.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
|
|
4220
4220
|
onMousedown: Le((le) => fe(S), ["stop"]),
|
|
4221
4221
|
"data-block": x(Ee)
|
|
4222
4222
|
}, [
|
|
@@ -4237,7 +4237,7 @@ const As = {
|
|
|
4237
4237
|
key: le,
|
|
4238
4238
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4239
4239
|
style: Y({ ...r[R], transform: "translate(-50%, -50%)" }),
|
|
4240
|
-
onMousedown: Le((ee) =>
|
|
4240
|
+
onMousedown: Le((ee) => N(ee, R), ["stop"])
|
|
4241
4241
|
}, null, 44, Hs)), 64))
|
|
4242
4242
|
]),
|
|
4243
4243
|
f("span", {
|
|
@@ -4251,12 +4251,12 @@ const As = {
|
|
|
4251
4251
|
], 40, Rs)
|
|
4252
4252
|
], 64)) : D("", !0)
|
|
4253
4253
|
], 46, Ns)), [
|
|
4254
|
-
[x(n),
|
|
4255
|
-
[x(
|
|
4254
|
+
[x(n), z],
|
|
4255
|
+
[x(l), (le) => fe(null, le)]
|
|
4256
4256
|
]);
|
|
4257
4257
|
}), 128)),
|
|
4258
4258
|
(s(!0), d(E, null, X(w.value, (S) => {
|
|
4259
|
-
var Q, we,
|
|
4259
|
+
var Q, we, ae, re, be, b, T;
|
|
4260
4260
|
return gt((s(), d("div", {
|
|
4261
4261
|
key: S.id,
|
|
4262
4262
|
ref_for: !0,
|
|
@@ -4264,8 +4264,8 @@ const As = {
|
|
|
4264
4264
|
ref: L,
|
|
4265
4265
|
disabled: F.value,
|
|
4266
4266
|
"data-safe": "true",
|
|
4267
|
-
class:
|
|
4268
|
-
style: Y({ left: Math.max(((we = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((
|
|
4267
|
+
class: te(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8 bg-white" : "z-7"]),
|
|
4268
|
+
style: Y({ left: Math.max(((we = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = K.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = K.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = K.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
|
|
4269
4269
|
onMousedown: Le((le) => fe(S), ["stop"]),
|
|
4270
4270
|
"data-block": x(Ee)
|
|
4271
4271
|
}, [
|
|
@@ -4293,13 +4293,13 @@ const As = {
|
|
|
4293
4293
|
key: le,
|
|
4294
4294
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4295
4295
|
style: Y({ ...r[R], transform: "translate(-50%, -50%)" }),
|
|
4296
|
-
onMousedown: (ee) =>
|
|
4296
|
+
onMousedown: (ee) => N(ee, R)
|
|
4297
4297
|
}, null, 44, qs)), 64))
|
|
4298
4298
|
])
|
|
4299
4299
|
], 64)) : D("", !0)
|
|
4300
4300
|
], 46, Ws)), [
|
|
4301
|
-
[x(n),
|
|
4302
|
-
[x(
|
|
4301
|
+
[x(n), z],
|
|
4302
|
+
[x(l), (le) => fe(null, le)]
|
|
4303
4303
|
]);
|
|
4304
4304
|
}), 128))
|
|
4305
4305
|
], 64));
|
|
@@ -4328,7 +4328,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4328
4328
|
setup(e, { emit: t }) {
|
|
4329
4329
|
const o = e;
|
|
4330
4330
|
Wt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4331
|
-
const
|
|
4331
|
+
const l = G([]), n = G([]), r = G(2), a = G(0), i = G(0), c = G(), u = G([]), m = G([]), O = G([]), h = G([]), F = A(() => o.data.map((b) => ({
|
|
4332
4332
|
...b,
|
|
4333
4333
|
__tag__: kt(),
|
|
4334
4334
|
rawChildren: b.children,
|
|
@@ -4336,10 +4336,10 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4336
4336
|
}))), Z = A(() => {
|
|
4337
4337
|
const b = F.value[F.value.length - 1], T = b.rawChildren[b.rawChildren.length - 1];
|
|
4338
4338
|
return K.value && [p.slove].includes(T == null ? void 0 : T.problemType) && T.id;
|
|
4339
|
-
}),
|
|
4339
|
+
}), oe = A(() => {
|
|
4340
4340
|
var b;
|
|
4341
|
-
return o.layout.bindFlag && !!((b =
|
|
4342
|
-
}), L = A(() => o.isFinal ? 0 : 10), W = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(
|
|
4341
|
+
return o.layout.bindFlag && !!((b = Oe.find((T) => T.code === o.layout.paper)) != null && b.isMultCol);
|
|
4342
|
+
}), L = A(() => o.isFinal ? 0 : 10), W = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), M = A(() => Math.ceil(w.value / 2) * 2), K = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), z = A(() => K.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || ct[o.layout.mode][o.layout.paper]), C = A(() => g[o.layout.paper].width - _.value.left - _.value.right), v = A(() => g[o.layout.paper].height - _.value.top - _.value.bottom), H = A(() => (C.value - (i.value ? i.value + S(0) : 0) + S(0)) / o.layout.column - S(0)), N = A(() => ({
|
|
4343
4343
|
width: `${g[o.layout.paper].width}px`,
|
|
4344
4344
|
height: `${(g[o.layout.paper].height + L.value) * M.value - L.value}px`
|
|
4345
4345
|
})), me = A(() => ({
|
|
@@ -4349,19 +4349,19 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4349
4349
|
marginBottom: `${L.value}px`
|
|
4350
4350
|
})), he = A(() => {
|
|
4351
4351
|
var T;
|
|
4352
|
-
const b = (T =
|
|
4352
|
+
const b = (T = Oe.find((le) => le.code === o.layout.paper)) == null ? void 0 : T.isMultCol;
|
|
4353
4353
|
return {
|
|
4354
4354
|
left: `${_.value.left + (i.value ? i.value + S(0) : 0)}px`,
|
|
4355
4355
|
top: `${_.value.top}px`,
|
|
4356
|
-
width: b ? `${
|
|
4356
|
+
width: b ? `${H.value}px` : `${C.value}px`
|
|
4357
4357
|
};
|
|
4358
4358
|
});
|
|
4359
|
-
|
|
4359
|
+
De(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4360
4360
|
setTimeout(() => {
|
|
4361
4361
|
re();
|
|
4362
4362
|
}, 100);
|
|
4363
|
-
}, { immediate: !0 }),
|
|
4364
|
-
i.value =
|
|
4363
|
+
}, { immediate: !0 }), De(() => oe.value, () => {
|
|
4364
|
+
i.value = oe.value ? 100 : 0;
|
|
4365
4365
|
}, { immediate: !0 });
|
|
4366
4366
|
const ie = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _e = (b, T) => Math.floor(T / 2) * (o.layout.column + o.layout.backColumn) + T % 2 * o.layout.column + b, fe = (b) => {
|
|
4367
4367
|
const T = b % (o.layout.column + o.layout.backColumn);
|
|
@@ -4370,22 +4370,22 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4370
4370
|
b ? u.value[T] = b : u.value.splice(T, 1);
|
|
4371
4371
|
}, $ = (b, T) => {
|
|
4372
4372
|
b ? m.value[T] = b : m.value.splice(T, 1);
|
|
4373
|
-
}, S = (b) => Et[o.layout.mode][o.layout.paper][ie(b)] || 0, Q = (b, T = !1) => (C.value - (i.value ? i.value + S(b) : 0) + S(b)) / ie(b) - S(b) -
|
|
4373
|
+
}, S = (b) => Et[o.layout.mode][o.layout.paper][ie(b)] || 0, Q = (b, T = !1) => (C.value - (i.value ? i.value + S(b) : 0) + S(b)) / ie(b) - S(b) - z.value.left - z.value.right + (T ? z.value.left + z.value.right : 0), we = (b, T) => {
|
|
4374
4374
|
var R, ee;
|
|
4375
4375
|
const le = b % (o.layout.column + o.layout.backColumn) ? 0 : ((R = O.value[Math.min(T, 1)]) == null ? void 0 : R.offsetHeight) || 0;
|
|
4376
4376
|
return {
|
|
4377
|
-
left: `${_.value.left + (T % 2 ? 0 : i.value ? i.value + S(b) : 0) +
|
|
4378
|
-
top: `${le + _.value.top + (!T && !b ? 0 :
|
|
4377
|
+
left: `${_.value.left + (T % 2 ? 0 : i.value ? i.value + S(b) : 0) + z.value.left + fe(b) * (Q(b) + S(b) + z.value.left + z.value.right)}px`,
|
|
4378
|
+
top: `${le + _.value.top + (!T && !b ? 0 : z.value.top)}px`,
|
|
4379
4379
|
width: `${Q(b)}px`,
|
|
4380
|
-
height: `${v.value - le - (!T && !b ? 0 :
|
|
4381
|
-
contentHeight: `${(ee =
|
|
4380
|
+
height: `${v.value - le - (!T && !b ? 0 : z.value.top) - z.value.bottom}px`,
|
|
4381
|
+
contentHeight: `${(ee = l.value[b]) == null ? void 0 : ee.height}px`
|
|
4382
4382
|
};
|
|
4383
|
-
},
|
|
4384
|
-
n.value = b.map((le) => ({ ...le })), T && (
|
|
4385
|
-
r.value = Math.ceil(
|
|
4383
|
+
}, ae = (b, T = !1) => {
|
|
4384
|
+
n.value = b.map((le) => ({ ...le })), T && (l.value = [...b], a.value += 1, Je(() => {
|
|
4385
|
+
r.value = Math.ceil(l.value.length / o.layout.column), n.value = [], m.value.forEach((le, R) => {
|
|
4386
4386
|
var ee, Se;
|
|
4387
|
-
!le || !le.col || ((ee =
|
|
4388
|
-
}),
|
|
4387
|
+
!le || !le.col || ((ee = l.value[R]) != null && ee.top ? le.col.style.marginTop = `${(Se = l.value[R]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
|
|
4388
|
+
}), setTimeout(() => {
|
|
4389
4389
|
const le = _s({
|
|
4390
4390
|
config: {
|
|
4391
4391
|
...o.info,
|
|
@@ -4397,7 +4397,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4397
4397
|
colDom: m.value.map((R) => R.col),
|
|
4398
4398
|
colViewDom: m.value.map((R) => R.colView)
|
|
4399
4399
|
},
|
|
4400
|
-
data:
|
|
4400
|
+
data: l.value
|
|
4401
4401
|
});
|
|
4402
4402
|
t("getFinalData", le);
|
|
4403
4403
|
}, 500);
|
|
@@ -4409,7 +4409,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4409
4409
|
column: o.layout.column,
|
|
4410
4410
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4411
4411
|
getColSize: we,
|
|
4412
|
-
change:
|
|
4412
|
+
change: ae
|
|
4413
4413
|
});
|
|
4414
4414
|
}, be = (b = { type: q.page, value: {} }) => {
|
|
4415
4415
|
t("toggleActive", b);
|
|
@@ -4419,7 +4419,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4419
4419
|
return s(), d(E, null, [
|
|
4420
4420
|
b.readonly ? D("", !0) : (s(), U($s, {
|
|
4421
4421
|
key: 0,
|
|
4422
|
-
ColList:
|
|
4422
|
+
ColList: l.value,
|
|
4423
4423
|
ColDom: m.value.map((R) => R.col),
|
|
4424
4424
|
ImgData: b.imgData,
|
|
4425
4425
|
TxtData: b.txtData,
|
|
@@ -4447,9 +4447,9 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4447
4447
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4448
4448
|
K.value ? (s(), d("div", {
|
|
4449
4449
|
key: 1,
|
|
4450
|
-
class:
|
|
4450
|
+
class: te([!R.children.length && R.problemType && "p-1 min-h-[2rem]"])
|
|
4451
4451
|
}, [
|
|
4452
|
-
(s(), U(
|
|
4452
|
+
(s(), U(Ge, {
|
|
4453
4453
|
data: R,
|
|
4454
4454
|
key: n.value.length,
|
|
4455
4455
|
layout: b.layout,
|
|
@@ -4457,7 +4457,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4457
4457
|
noPortrait: "",
|
|
4458
4458
|
width: Q(n.value.length - 1) - 10
|
|
4459
4459
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4460
|
-
], 2)) : (s(), U(
|
|
4460
|
+
], 2)) : (s(), U(Ge, {
|
|
4461
4461
|
data: R,
|
|
4462
4462
|
key: n.value.length,
|
|
4463
4463
|
layout: b.layout,
|
|
@@ -4467,8 +4467,8 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4467
4467
|
], 64))), 256)) : D("", !0)
|
|
4468
4468
|
], 512),
|
|
4469
4469
|
f("div", {
|
|
4470
|
-
class:
|
|
4471
|
-
style: Y(
|
|
4470
|
+
class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
|
|
4471
|
+
style: Y(N.value)
|
|
4472
4472
|
}, [
|
|
4473
4473
|
j(Us, {
|
|
4474
4474
|
imgData: b.imgData,
|
|
@@ -4481,10 +4481,10 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4481
4481
|
onDelAbsTxtItem: T[6] || (T[6] = (R) => t("delAbsTxtItem", R))
|
|
4482
4482
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4483
4483
|
(s(), d("svg", {
|
|
4484
|
-
viewBox: `0 0 ${parseFloat(
|
|
4484
|
+
viewBox: `0 0 ${parseFloat(N.value.width)} ${parseFloat(N.value.height)}`,
|
|
4485
4485
|
version: "1.1",
|
|
4486
4486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4487
|
-
key:
|
|
4487
|
+
key: a.value
|
|
4488
4488
|
}, [
|
|
4489
4489
|
(s(), d("foreignObject", Ks, [
|
|
4490
4490
|
(s(!0), d(E, null, X(M.value, (R, ee) => (s(), d("div", {
|
|
@@ -4517,14 +4517,14 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4517
4517
|
currentPage: ee,
|
|
4518
4518
|
width: i.value,
|
|
4519
4519
|
height: v.value,
|
|
4520
|
-
isBindFlag:
|
|
4520
|
+
isBindFlag: oe.value
|
|
4521
4521
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
|
|
4522
4522
|
!(ee % 2) || ee === 1 && w.value < 3 ? (s(), d("div", {
|
|
4523
4523
|
key: 1,
|
|
4524
4524
|
ref_for: !0,
|
|
4525
4525
|
ref_key: "titleDom",
|
|
4526
4526
|
ref: O,
|
|
4527
|
-
class:
|
|
4527
|
+
class: te(["absolute text-black", ee === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4528
4528
|
style: Y(he.value)
|
|
4529
4529
|
}, [
|
|
4530
4530
|
j(Mo, {
|
|
@@ -4541,12 +4541,12 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4541
4541
|
j(ka, {
|
|
4542
4542
|
layout: b.layout,
|
|
4543
4543
|
info: b.info,
|
|
4544
|
-
isBindFlag:
|
|
4544
|
+
isBindFlag: oe.value,
|
|
4545
4545
|
onChange: T[9] || (T[9] = (Se) => t("changeExtentInfo", Se))
|
|
4546
4546
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4547
4547
|
j(Ba, {
|
|
4548
4548
|
layout: b.layout,
|
|
4549
|
-
isBindFlag:
|
|
4549
|
+
isBindFlag: oe.value
|
|
4550
4550
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4551
4551
|
ee ? D("", !0) : (s(), U(Ya, {
|
|
4552
4552
|
key: 0,
|
|
@@ -4561,16 +4561,16 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4561
4561
|
], 6)) : D("", !0),
|
|
4562
4562
|
(s(!0), d(E, null, X(ee % 2 ? b.layout.backColumn : b.layout.column, (Se, Me) => (s(), U(Qa, {
|
|
4563
4563
|
ref_for: !0,
|
|
4564
|
-
ref: (
|
|
4564
|
+
ref: (We) => $(We, _e(Me, ee)),
|
|
4565
4565
|
styleInfo: we(_e(Me, ee), ee),
|
|
4566
4566
|
column: b.layout.column,
|
|
4567
4567
|
currentColumn: _e(Me, ee),
|
|
4568
4568
|
showColBorder: K.value
|
|
4569
4569
|
}, {
|
|
4570
4570
|
default: Lt(() => {
|
|
4571
|
-
var
|
|
4571
|
+
var We;
|
|
4572
4572
|
return [
|
|
4573
|
-
(s(!0), d(E, null, X(((
|
|
4573
|
+
(s(!0), d(E, null, X(((We = l.value[_e(Me, ee)]) == null ? void 0 : We.data) || [], (ge, zt) => {
|
|
4574
4574
|
var mt;
|
|
4575
4575
|
return s(), d(E, null, [
|
|
4576
4576
|
ge.isHidden ? D("", !0) : (s(), U($t, {
|
|
@@ -4585,11 +4585,11 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4585
4585
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
4586
4586
|
K.value ? (s(), d("div", {
|
|
4587
4587
|
key: 1,
|
|
4588
|
-
class:
|
|
4588
|
+
class: te([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(q).headline && b.target.value.id === ge.id && "active_headline"]),
|
|
4589
4589
|
onClick: Le((Ce) => be({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }), ["stop"]),
|
|
4590
4590
|
onDblclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4591
4591
|
}, [
|
|
4592
|
-
j(
|
|
4592
|
+
j(Ge, {
|
|
4593
4593
|
data: ge,
|
|
4594
4594
|
layout: b.layout,
|
|
4595
4595
|
target: b.target,
|
|
@@ -4602,7 +4602,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4602
4602
|
class: "border-t",
|
|
4603
4603
|
"data-block": x(Ee)
|
|
4604
4604
|
}, null, 8, Xs)) : D("", !0)
|
|
4605
|
-
], 42, Vs)) : (s(), U(
|
|
4605
|
+
], 42, Vs)) : (s(), U(Ge, {
|
|
4606
4606
|
key: 2,
|
|
4607
4607
|
data: ge,
|
|
4608
4608
|
layout: b.layout,
|
|
@@ -4627,7 +4627,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4627
4627
|
};
|
|
4628
4628
|
}
|
|
4629
4629
|
});
|
|
4630
|
-
const ti = /* @__PURE__ */ de(Js, [["__scopeId", "data-v-
|
|
4630
|
+
const ti = /* @__PURE__ */ de(Js, [["__scopeId", "data-v-5cbc6855"]]);
|
|
4631
4631
|
export {
|
|
4632
4632
|
ei as Config,
|
|
4633
4633
|
ti as default
|