alit-layout 1.0.34 → 1.0.35
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 +141 -143
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, openBlock as r, createElementBlock as u, Fragment as
|
|
1
|
+
import { defineComponent as ee, openBlock as r, createElementBlock as u, Fragment as E, renderList as Z, createElementVNode as f, normalizeStyle as Q, unref as x, toDisplayString as J, createCommentVNode as M, ref as q, watch as Me, normalizeClass as oe, computed as A, createBlock as V, createTextVNode as Ue, createVNode as X, pushScopeId as He, popScopeId as Re, renderSlot as rt, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as _t, normalizeProps as ft, guardReactiveProps as gt, withCtx as Ft, inject as Wt, withDirectives as bt, provide as Gt } from "vue";
|
|
2
2
|
const ct = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -8,7 +8,7 @@ const ct = {
|
|
|
8
8
|
choice_english: "LISTEN_AFTER_SELECTION",
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
|
-
},
|
|
11
|
+
}, Pt = {
|
|
12
12
|
...ct,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
@@ -46,7 +46,7 @@ const ct = {
|
|
|
46
46
|
// 非作答区(试题)
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
48
|
}, m = {
|
|
49
|
-
...
|
|
49
|
+
...Pt,
|
|
50
50
|
...lt
|
|
51
51
|
}, Oe = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
@@ -335,7 +335,7 @@ const ct = {
|
|
|
335
335
|
}, Ut = {
|
|
336
336
|
left: 5,
|
|
337
337
|
right: 5
|
|
338
|
-
},
|
|
338
|
+
}, Et = {
|
|
339
339
|
article: {
|
|
340
340
|
a3: {
|
|
341
341
|
2: 30,
|
|
@@ -1459,7 +1459,7 @@ const ct = {
|
|
|
1459
1459
|
ErrLayoutCode: ho,
|
|
1460
1460
|
MixNodeTag: uo,
|
|
1461
1461
|
column: qt,
|
|
1462
|
-
columnMargin:
|
|
1462
|
+
columnMargin: Et,
|
|
1463
1463
|
defaultProblemLayout: lo,
|
|
1464
1464
|
fillSize: Ie,
|
|
1465
1465
|
fontFamily: io,
|
|
@@ -1615,22 +1615,22 @@ const ct = {
|
|
|
1615
1615
|
};
|
|
1616
1616
|
return (o, s) => {
|
|
1617
1617
|
var c;
|
|
1618
|
-
return r(), u(
|
|
1619
|
-
(r(), u(
|
|
1618
|
+
return r(), u(E, null, [
|
|
1619
|
+
(r(), u(E, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
|
|
1620
1620
|
key: d,
|
|
1621
1621
|
class: "absolute w-8 bg-black point_item",
|
|
1622
1622
|
style: Q(a(d)),
|
|
1623
1623
|
"data-xine": x(k).point + d
|
|
1624
1624
|
}, null, 12, yo)), 64)),
|
|
1625
|
-
(r(!0), u(
|
|
1626
|
-
(r(), u(
|
|
1625
|
+
(r(!0), u(E, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (d) => (r(), u(E, { key: d }, [
|
|
1626
|
+
(r(), u(E, null, Z(["t", "b"], (h) => f("span", {
|
|
1627
1627
|
key: h,
|
|
1628
1628
|
class: "absolute bg-black w-8 point_item",
|
|
1629
1629
|
style: Q(i(d, h)),
|
|
1630
1630
|
"data-xine": x(k).point + h
|
|
1631
1631
|
}, null, 12, _o)), 64))
|
|
1632
1632
|
], 64))), 128)),
|
|
1633
|
-
(r(), u(
|
|
1633
|
+
(r(), u(E, null, Z(["l", "r"], (d) => f("span", {
|
|
1634
1634
|
key: d,
|
|
1635
1635
|
class: "absolute bg-black h-8",
|
|
1636
1636
|
style: Q(n(d)),
|
|
@@ -1641,7 +1641,7 @@ const ct = {
|
|
|
1641
1641
|
style: Q(l()),
|
|
1642
1642
|
"data-xine": x(k).page
|
|
1643
1643
|
}, [
|
|
1644
|
-
(r(!0), u(
|
|
1644
|
+
(r(!0), u(E, null, Z(o.currentPage + 1, (d, h) => (r(), u("span", {
|
|
1645
1645
|
key: d,
|
|
1646
1646
|
class: "inline-block bg-black mx-2 page_item",
|
|
1647
1647
|
"data-xine": x(k).page_item + h
|
|
@@ -1767,7 +1767,7 @@ const de = (e, t) => {
|
|
|
1767
1767
|
const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
|
|
1768
1768
|
key: 0,
|
|
1769
1769
|
class: "flex items-center"
|
|
1770
|
-
},
|
|
1770
|
+
}, Po = { class: "px-2 ml-2 border leading-none" }, Eo = /* @__PURE__ */ ee({
|
|
1771
1771
|
__name: "secrecy",
|
|
1772
1772
|
props: {
|
|
1773
1773
|
layout: {},
|
|
@@ -1784,7 +1784,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1784
1784
|
}),
|
|
1785
1785
|
Ue("启用前")
|
|
1786
1786
|
])) : M("", !0),
|
|
1787
|
-
f("p",
|
|
1787
|
+
f("p", Po, "ID:" + J(t.code), 1)
|
|
1788
1788
|
]));
|
|
1789
1789
|
}
|
|
1790
1790
|
}), Do = ["innerHTML"], Be = /* @__PURE__ */ ee({
|
|
@@ -1903,7 +1903,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1903
1903
|
name: n.value,
|
|
1904
1904
|
class: "p-0 -translate-y-[1px]"
|
|
1905
1905
|
}, null, 8, ["name"])) : (r(), u("span", Vo, "分")),
|
|
1906
|
-
o.layout.writeScoreFlag ? (r(), u(
|
|
1906
|
+
o.layout.writeScoreFlag ? (r(), u(E, { key: 4 }, [
|
|
1907
1907
|
f("span", null, "(试题" + J(l.value), 1),
|
|
1908
1908
|
n.value ? (r(), V(_e, {
|
|
1909
1909
|
key: 0,
|
|
@@ -1918,7 +1918,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1918
1918
|
}, null, 8, ["name"])) : (r(), u("span", Jo, "分")),
|
|
1919
1919
|
Zo
|
|
1920
1920
|
], 64)) : M("", !0),
|
|
1921
|
-
i.value ? (r(), u(
|
|
1921
|
+
i.value ? (r(), u(E, { key: 5 }, [
|
|
1922
1922
|
f("span", null, ";附加题:" + J(i.value), 1),
|
|
1923
1923
|
n.value ? (r(), V(_e, {
|
|
1924
1924
|
key: 0,
|
|
@@ -1940,7 +1940,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1940
1940
|
setup(e, { emit: t }) {
|
|
1941
1941
|
const a = ["examNumField", "examRoomField", "seatField"];
|
|
1942
1942
|
return (l, i) => (r(), u("ul", oa, [
|
|
1943
|
-
(r(), u(
|
|
1943
|
+
(r(), u(E, null, Z(a, (n) => f("li", {
|
|
1944
1944
|
key: n,
|
|
1945
1945
|
class: "flex flex-1"
|
|
1946
1946
|
}, [
|
|
@@ -1972,12 +1972,12 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1972
1972
|
class: "flex-1 flex flex-col",
|
|
1973
1973
|
"data-xine": x(k).en_num
|
|
1974
1974
|
}, [
|
|
1975
|
-
(r(), u(
|
|
1975
|
+
(r(), u(E, null, Z(3, (l, i) => f("p", {
|
|
1976
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
|
}, [
|
|
1980
|
-
(r(), u(
|
|
1980
|
+
(r(), u(E, null, Z(10, (n) => f("span", {
|
|
1981
1981
|
key: n,
|
|
1982
1982
|
class: "flex items-center justify-between flex-nowrap item",
|
|
1983
1983
|
"data-xine": x(k).en_num_item
|
|
@@ -2005,12 +2005,12 @@ const wt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
2005
2005
|
class: "flex-1 flex flex-col",
|
|
2006
2006
|
"data-xine": x(k).en_num
|
|
2007
2007
|
}, [
|
|
2008
|
-
(r(), u(
|
|
2008
|
+
(r(), u(E, null, Z(4, (l, i) => f("p", {
|
|
2009
2009
|
key: l,
|
|
2010
2010
|
class: oe(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
|
|
2011
2011
|
"data-xine": x(k).en_num_group
|
|
2012
2012
|
}, [
|
|
2013
|
-
(r(), u(
|
|
2013
|
+
(r(), u(E, null, Z(10, (n) => f("span", {
|
|
2014
2014
|
key: n,
|
|
2015
2015
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2016
2016
|
"data-xine": x(k).en_num_item
|
|
@@ -2029,7 +2029,7 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2029
2029
|
setup(e, { emit: t }) {
|
|
2030
2030
|
const a = ["nameField", "classField", "scoreField"];
|
|
2031
2031
|
return (l, i) => (r(), u("ul", ya, [
|
|
2032
|
-
(r(), u(
|
|
2032
|
+
(r(), u(E, null, Z(a, (n) => f("li", {
|
|
2033
2033
|
key: n,
|
|
2034
2034
|
class: "flex flex-1"
|
|
2035
2035
|
}, [
|
|
@@ -2059,7 +2059,7 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2059
2059
|
setup(e, { emit: t }) {
|
|
2060
2060
|
const a = e, l = A(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
|
|
2061
2061
|
return (i, n) => i.isBindFlag ? M("", !0) : (r(), u("div", ga, [
|
|
2062
|
-
l.value ? (r(), u(
|
|
2062
|
+
l.value ? (r(), u(E, { key: 0 }, [
|
|
2063
2063
|
i.layout.seatType === x(xe).none ? (r(), V(vt, {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
extent: i.info.extentInfo,
|
|
@@ -2070,7 +2070,7 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2070
2070
|
extent: i.info.extentInfo,
|
|
2071
2071
|
onChange: n[1] || (n[1] = (o) => t("change", o))
|
|
2072
2072
|
}, null, 8, ["extent"]),
|
|
2073
|
-
l.value ? M("", !0) : (r(), u(
|
|
2073
|
+
l.value ? M("", !0) : (r(), u(E, { key: 1 }, [
|
|
2074
2074
|
i.layout.seatType === x(xe).none ? (r(), V(vt, {
|
|
2075
2075
|
key: 0,
|
|
2076
2076
|
extent: i.info.extentInfo,
|
|
@@ -2087,9 +2087,9 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2087
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__ */ 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"],
|
|
2091
|
-
|
|
2092
|
-
|
|
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"], Pa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Da = [
|
|
2091
|
+
Pa,
|
|
2092
|
+
Ea
|
|
2093
2093
|
], Ma = /* @__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" })
|
|
@@ -2113,11 +2113,11 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2113
2113
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2114
2114
|
];
|
|
2115
2115
|
});
|
|
2116
|
-
return (l, i) => (r(), u(
|
|
2116
|
+
return (l, i) => (r(), u(E, null, [
|
|
2117
2117
|
l.layout.noteFlag ? (r(), u("div", Ca, [
|
|
2118
2118
|
$a,
|
|
2119
2119
|
f("div", Sa, [
|
|
2120
|
-
(r(!0), u(
|
|
2120
|
+
(r(!0), u(E, null, Z(a.value, (n) => (r(), u("p", {
|
|
2121
2121
|
key: n,
|
|
2122
2122
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2123
2123
|
}, J(n), 1))), 128))
|
|
@@ -2181,7 +2181,7 @@ const za = {
|
|
|
2181
2181
|
const t = e, a = A(() => t.data.filter((l) => l.problemType));
|
|
2182
2182
|
return (l, i) => l.layout.scoreFlag ? (r(), u("ul", za, [
|
|
2183
2183
|
Ha,
|
|
2184
|
-
(r(!0), u(
|
|
2184
|
+
(r(!0), u(E, null, Z(a.value, (n, o) => (r(), u("li", {
|
|
2185
2185
|
key: n.id,
|
|
2186
2186
|
class: "flex-1 flex flex-col border-l"
|
|
2187
2187
|
}, [
|
|
@@ -2216,7 +2216,7 @@ const za = {
|
|
|
2216
2216
|
bottom: `${$e.bottom - 1}px`,
|
|
2217
2217
|
right: `${$e.right - 1}px`
|
|
2218
2218
|
})), s = A(() => a.column < 3 || a.currentColumn % 3 === 1);
|
|
2219
|
-
return (c, d) => (r(), u(
|
|
2219
|
+
return (c, d) => (r(), u(E, null, [
|
|
2220
2220
|
c.showColBorder ? (r(), u("div", {
|
|
2221
2221
|
key: 0,
|
|
2222
2222
|
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
|
|
@@ -2273,7 +2273,7 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
|
|
|
2273
2273
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2274
2274
|
style: Q({ width: `${l.height - 20}px` })
|
|
2275
2275
|
}, [
|
|
2276
|
-
(r(), u(
|
|
2276
|
+
(r(), u(E, null, Z(a, (n) => f("p", {
|
|
2277
2277
|
key: n,
|
|
2278
2278
|
class: "flex items-end flex-1 mr-4"
|
|
2279
2279
|
}, [
|
|
@@ -2291,7 +2291,7 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
|
|
|
2291
2291
|
], 6)) : M("", !0);
|
|
2292
2292
|
}
|
|
2293
2293
|
});
|
|
2294
|
-
const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm",
|
|
2294
|
+
const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Pe = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ht = "MC5yYjk3NGY2OTcyOA", pt = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ ee({
|
|
2295
2295
|
__name: "simple",
|
|
2296
2296
|
props: {
|
|
2297
2297
|
item: {},
|
|
@@ -2311,7 +2311,7 @@ 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
|
-
(r(!0), u(
|
|
2314
|
+
(r(!0), u(E, null, Z(l.value, (o, s) => (r(), u("li", {
|
|
2315
2315
|
class: "flex items-center justify-center relative score_line",
|
|
2316
2316
|
style: Q({ width: `${x(Ke)[i.layout.scoreLineSize].value}px` }),
|
|
2317
2317
|
"data-xine": x(k).score_item
|
|
@@ -2351,7 +2351,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2351
2351
|
t.item.hasHalfScore && h.push([0.5]), o.value = h, i.value = !!h.flat().find((O) => `${O}`.length > 3);
|
|
2352
2352
|
});
|
|
2353
2353
|
}, d = (h) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - h - 1] : [k.score_base, k.score_tenbit][o.value.length - h - 1];
|
|
2354
|
-
return (h, O) => h.layout.handReadFlag ? (r(), u(
|
|
2354
|
+
return (h, O) => h.layout.handReadFlag ? (r(), u(E, { key: 0 }, [
|
|
2355
2355
|
h.layout.simpleScoreBarFlag && !h.static ? (r(), V(rl, {
|
|
2356
2356
|
key: 0,
|
|
2357
2357
|
item: h.item,
|
|
@@ -2364,11 +2364,11 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2364
2364
|
"data-block": x(ke),
|
|
2365
2365
|
"data-xine": x(k).score
|
|
2366
2366
|
}, [
|
|
2367
|
-
(r(!0), u(
|
|
2367
|
+
(r(!0), u(E, null, Z(o.value, (p, F) => (r(), u("ul", {
|
|
2368
2368
|
class: "flex divide-x divide-solid",
|
|
2369
2369
|
"data-xine": d(F)
|
|
2370
2370
|
}, [
|
|
2371
|
-
(r(!0), u(
|
|
2371
|
+
(r(!0), u(E, null, Z(p, (N) => (r(), u("li", {
|
|
2372
2372
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2373
2373
|
style: Q({ width: `${x(Ke)[h.layout.scoreLineSize].value}px` }),
|
|
2374
2374
|
"data-xine": N.toString() ? x(k).score_item : ""
|
|
@@ -2444,7 +2444,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2444
2444
|
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
|
|
2445
2445
|
key: 1,
|
|
2446
2446
|
class: "indent-2"
|
|
2447
|
-
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"],
|
|
2447
|
+
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], Pl = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), El = { class: "flex items-center" }, Dl = ["data-xine"], Ml = /* @__PURE__ */ ee({
|
|
2448
2448
|
__name: "index",
|
|
2449
2449
|
props: {
|
|
2450
2450
|
item: {},
|
|
@@ -2478,8 +2478,8 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2478
2478
|
"data-block": x(ke),
|
|
2479
2479
|
"data-xine": x(k).choice + s.item.id
|
|
2480
2480
|
}, [
|
|
2481
|
-
|
|
2482
|
-
(r(!0), u(
|
|
2481
|
+
Pl,
|
|
2482
|
+
(r(!0), u(E, null, Z(o.value, (d, h) => (r(), u("span", El, [
|
|
2483
2483
|
f("span", null, J(d), 1),
|
|
2484
2484
|
f("span", {
|
|
2485
2485
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
@@ -2513,7 +2513,7 @@ 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
|
-
(r(!0), u(
|
|
2516
|
+
(r(!0), u(E, null, Z(t.item.optList, (l, i) => (r(), u("span", {
|
|
2517
2517
|
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[i]) && "bg-success border-success"]),
|
|
2518
2518
|
style: Q({ 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 + i
|
|
@@ -2548,7 +2548,7 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2548
2548
|
class: "flex red_sheet",
|
|
2549
2549
|
"data-block": x(ke)
|
|
2550
2550
|
}, [
|
|
2551
|
-
l.item.style[x(y)[l.layout.mode].decide_a] === x(L).decide_1 ? (r(), u(
|
|
2551
|
+
l.item.style[x(y)[l.layout.mode].decide_a] === x(L).decide_1 ? (r(), u(E, { key: 0 }, [
|
|
2552
2552
|
f("span", {
|
|
2553
2553
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2554
2554
|
style: Q(a.value),
|
|
@@ -2569,7 +2569,7 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2569
2569
|
width: 1
|
|
2570
2570
|
})
|
|
2571
2571
|
], 14, Ql)
|
|
2572
|
-
], 64)) : (r(), u(
|
|
2572
|
+
], 64)) : (r(), u(E, { key: 1 }, [
|
|
2573
2573
|
f("span", {
|
|
2574
2574
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2575
2575
|
style: Q(a.value),
|
|
@@ -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 (a, l) => (r(), u(
|
|
2627
|
+
return (a, l) => (r(), u(E, null, [
|
|
2628
2628
|
f("div", {
|
|
2629
2629
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2630
2630
|
style: Q({ height: `${20 + a.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
@@ -2683,7 +2683,7 @@ const gn = /* @__PURE__ */ de(_n, [["render", fn]]), bn = /* @__PURE__ */ f("div
|
|
|
2683
2683
|
layout: {}
|
|
2684
2684
|
},
|
|
2685
2685
|
setup(e) {
|
|
2686
|
-
return (t, a) => (r(), u(
|
|
2686
|
+
return (t, a) => (r(), u(E, null, [
|
|
2687
2687
|
bn,
|
|
2688
2688
|
X(tt, {
|
|
2689
2689
|
item: t.item,
|
|
@@ -2704,10 +2704,10 @@ function In(e, t) {
|
|
|
2704
2704
|
return null;
|
|
2705
2705
|
}
|
|
2706
2706
|
const Ln = /* @__PURE__ */ de(Tn, [["render", In]]), Fn = {};
|
|
2707
|
-
function
|
|
2707
|
+
function Pn(e, t) {
|
|
2708
2708
|
return null;
|
|
2709
2709
|
}
|
|
2710
|
-
const
|
|
2710
|
+
const En = /* @__PURE__ */ de(Fn, [["render", Pn]]), Dn = {};
|
|
2711
2711
|
function Mn(e, t) {
|
|
2712
2712
|
return null;
|
|
2713
2713
|
}
|
|
@@ -2768,12 +2768,12 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2768
2768
|
}, null, 8, ["data", "data-bart"])) : M("", !0),
|
|
2769
2769
|
p.item.beforeGuide && !p.item.artBlock ? (r(), u("p", {
|
|
2770
2770
|
key: 2,
|
|
2771
|
-
"data-block": x(
|
|
2771
|
+
"data-block": x(Pe),
|
|
2772
2772
|
"data-guide": p.item.id,
|
|
2773
2773
|
class: oe(["absolute", !p.item.startAnswerLen && "indent-[2em]"]),
|
|
2774
2774
|
style: Q({ ...l.value, width: d.value.width, lineHeight: `${c.value + 7}px` })
|
|
2775
2775
|
}, J(p.item.beforeGuide), 15, zn)) : M("", !0),
|
|
2776
|
-
(r(!0), u(
|
|
2776
|
+
(r(!0), u(E, null, Z(s.value, (N, j) => (r(), u("p", {
|
|
2777
2777
|
ref_for: !0,
|
|
2778
2778
|
ref_key: "line",
|
|
2779
2779
|
ref: n,
|
|
@@ -2782,16 +2782,16 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2782
2782
|
"data-size": p.item.startAnswerLen + (j + 1) * a.value,
|
|
2783
2783
|
style: Q(d.value)
|
|
2784
2784
|
}, [
|
|
2785
|
-
p.item.artBlock ? (r(!0), u(
|
|
2785
|
+
p.item.artBlock ? (r(!0), u(E, { key: 0 }, Z(a.value, (T, z) => (r(), u("span", {
|
|
2786
2786
|
class: oe([O.value[j * a.value + z] && "flex items-center justify-center"]),
|
|
2787
2787
|
style: Q(h.value)
|
|
2788
2788
|
}, J(O.value[j * a.value + z]), 7))), 256)) : M("", !0),
|
|
2789
|
-
(r(!0), u(
|
|
2789
|
+
(r(!0), u(E, null, Z(o.value, (T) => (r(), u(E, null, [
|
|
2790
2790
|
p.item.startAnswerLen + j * a.value < T && p.item.startAnswerLen + (j + 1) * a.value >= T ? (r(), u("span", {
|
|
2791
2791
|
key: 0,
|
|
2792
2792
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2793
2793
|
style: Q({ left: `${(T - p.item.startAnswerLen) % a.value * c.value}px` }),
|
|
2794
|
-
"data-block": x(
|
|
2794
|
+
"data-block": x(Pe)
|
|
2795
2795
|
}, J(T), 13, Rn)) : M("", !0)
|
|
2796
2796
|
], 64))), 256))
|
|
2797
2797
|
], 14, Hn))), 256)),
|
|
@@ -2836,9 +2836,9 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2836
2836
|
return (i, n) => (r(), u("span", {
|
|
2837
2837
|
class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", i.isFull && "justify-end"]),
|
|
2838
2838
|
style: Q({ width: l.value }),
|
|
2839
|
-
"data-block": x(
|
|
2839
|
+
"data-block": x(Pe)
|
|
2840
2840
|
}, [
|
|
2841
|
-
(r(!0), u(
|
|
2841
|
+
(r(!0), u(E, null, Z(a.value, (o, s) => (r(), u(E, null, [
|
|
2842
2842
|
s ? (r(), u("span", Qn, " - ")) : M("", !0),
|
|
2843
2843
|
o[0] ? (r(), u("span", Un, J(o[0]), 1)) : M("", !0),
|
|
2844
2844
|
o[1] ? (r(), u("span", jn, "(" + J(o[1]) + ")", 1)) : M("", !0),
|
|
@@ -2861,7 +2861,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2861
2861
|
mix: kn,
|
|
2862
2862
|
mixSheet: Sn,
|
|
2863
2863
|
synthesis: Ln,
|
|
2864
|
-
synthesisSheet:
|
|
2864
|
+
synthesisSheet: En,
|
|
2865
2865
|
art: An,
|
|
2866
2866
|
artSheet: Wn,
|
|
2867
2867
|
notArea: Yn,
|
|
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2894
2894
|
dbclick: null
|
|
2895
2895
|
},
|
|
2896
2896
|
setup(e, { emit: t }) {
|
|
2897
|
-
const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(
|
|
2897
|
+
const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Pt), i = q(""), n = A(() => {
|
|
2898
2898
|
const _ = a ? {
|
|
2899
2899
|
choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
2900
2900
|
fillSheet: [m.fill, m.fill_english]
|
|
@@ -3060,14 +3060,14 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
3060
3060
|
}, 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 };
|
|
3061
3061
|
function os(e, t, a, l, i, n) {
|
|
3062
3062
|
const o = Rt("Sub");
|
|
3063
|
-
return r(!0), u(
|
|
3063
|
+
return r(!0), u(E, null, Z(l.GroupData, (s) => (r(), u(E, null, [
|
|
3064
3064
|
s.type === "polymer" ? (r(), u("div", {
|
|
3065
3065
|
key: 0,
|
|
3066
3066
|
"data-block": l.ComputBlock(s),
|
|
3067
3067
|
class: oe([...l.ComputPolymerCls(s)]),
|
|
3068
3068
|
style: Q(l.ComputPolymerStyle(s))
|
|
3069
3069
|
}, [
|
|
3070
|
-
(r(!0), u(
|
|
3070
|
+
(r(!0), u(E, null, Z(s.children, (c, d) => {
|
|
3071
3071
|
var h;
|
|
3072
3072
|
return r(), u("div", {
|
|
3073
3073
|
class: oe(["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", ((h = a.target.value) == null ? void 0 : h.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
@@ -3088,9 +3088,9 @@ function os(e, t, a, l, i, n) {
|
|
|
3088
3088
|
(r(), V(_t(l.ComputName(c)), ft(gt({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), null, 16))
|
|
3089
3089
|
], 46, Zn);
|
|
3090
3090
|
}), 256))
|
|
3091
|
-
], 14, Jn)) : (r(!0), u(
|
|
3091
|
+
], 14, Jn)) : (r(!0), u(E, { key: 1 }, Z(s.children, (c, d) => {
|
|
3092
3092
|
var h;
|
|
3093
|
-
return r(), u(
|
|
3093
|
+
return r(), u(E, null, [
|
|
3094
3094
|
f("div", {
|
|
3095
3095
|
class: oe(["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", ((h = a.target.value) == null ? void 0 : h.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3096
3096
|
style: Q(l.ComputStyle(c, d)),
|
|
@@ -3343,14 +3343,14 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3343
3343
|
position: ce(R(z), d),
|
|
3344
3344
|
problemType: T.problemType,
|
|
3345
3345
|
isOneChoice: !0,
|
|
3346
|
-
optList: Te(k.fill, z).map((v,
|
|
3347
|
-
id: `${a}.${
|
|
3346
|
+
optList: Te(k.fill, z).map((v, P) => ({
|
|
3347
|
+
id: `${a}.${P + 1}`,
|
|
3348
3348
|
position: ce(R(v), d)
|
|
3349
3349
|
})).filter((v) => v.position)
|
|
3350
3350
|
} : {};
|
|
3351
3351
|
}).filter((T) => T.position);
|
|
3352
3352
|
return N.filter((T) => ls(T, h, O)).map((T, z, v) => {
|
|
3353
|
-
let
|
|
3353
|
+
let P = {};
|
|
3354
3354
|
l[T._sub] ? l[T._sub] += 1 : l[T._sub] = 1;
|
|
3355
3355
|
const W = se(`${k.item}${T._sub}`, h);
|
|
3356
3356
|
switch (T.problemType) {
|
|
@@ -3358,7 +3358,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3358
3358
|
case m.choice_english:
|
|
3359
3359
|
case m.choice_multiple:
|
|
3360
3360
|
case m.cloze:
|
|
3361
|
-
|
|
3361
|
+
P = {
|
|
3362
3362
|
score: T.score,
|
|
3363
3363
|
isColumn: T.style[y[e.layout.mode].choice_a] !== L.choice_2,
|
|
3364
3364
|
optList: T.optList.map((w, G) => ({
|
|
@@ -3368,7 +3368,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3368
3368
|
};
|
|
3369
3369
|
break;
|
|
3370
3370
|
case m.decide:
|
|
3371
|
-
|
|
3371
|
+
P = {
|
|
3372
3372
|
optList: [0, 1].map((w, G) => ({
|
|
3373
3373
|
id: `${T._sub}.${G + 1}`,
|
|
3374
3374
|
position: De(se(`${k.fill}${G}`, W), F, d)
|
|
@@ -3378,7 +3378,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3378
3378
|
case m.fill:
|
|
3379
3379
|
case m.fill_english:
|
|
3380
3380
|
const B = Te(k.fill, W), _ = Te(k.fill_line, W);
|
|
3381
|
-
|
|
3381
|
+
P = {
|
|
3382
3382
|
children: [T.score].flat().map((w, G, H) => ({
|
|
3383
3383
|
id: H.length > 1 ? `${T._sub}.${G + 1}` : T._sub,
|
|
3384
3384
|
score: w,
|
|
@@ -3394,7 +3394,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3394
3394
|
case m.easy_slove:
|
|
3395
3395
|
case m.art:
|
|
3396
3396
|
const C = se(k.score, W);
|
|
3397
|
-
|
|
3397
|
+
P = {
|
|
3398
3398
|
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, G) => {
|
|
3399
3399
|
if (!w)
|
|
3400
3400
|
return {};
|
|
@@ -3417,7 +3417,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3417
3417
|
_rootProblemType: T._rootProblemType,
|
|
3418
3418
|
_parentProblemType: T._parentProblemType,
|
|
3419
3419
|
position: De(W, F, d, !1, z === v.length - 1 && [m.slove].includes(T.problemType)),
|
|
3420
|
-
...
|
|
3420
|
+
...P
|
|
3421
3421
|
};
|
|
3422
3422
|
}).concat(j).filter((T) => T.position);
|
|
3423
3423
|
});
|
|
@@ -3473,7 +3473,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3473
3473
|
singleBlankSectionList: (e.children || [e]).map((n) => ({
|
|
3474
3474
|
...a(n, !0),
|
|
3475
3475
|
answerPosition: ne(n.answerPosition, !0),
|
|
3476
|
-
correctFrame: n.scorePosition ? [{
|
|
3476
|
+
correctFrame: n.scorePosition && n.scorePosition.width && n.scorePosition.height ? [{
|
|
3477
3477
|
correctSectionPosition: ne(n.scorePosition, !0),
|
|
3478
3478
|
firstBlockPostion: ne(n.scorePosition),
|
|
3479
3479
|
gridScoresList: [n.score].flat(),
|
|
@@ -3558,9 +3558,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3558
3558
|
const c = ps(s);
|
|
3559
3559
|
return a = { ...a, ...c.typeData }, c.data;
|
|
3560
3560
|
}).flat()
|
|
3561
|
-
}))
|
|
3562
|
-
console.log(a);
|
|
3563
|
-
const i = (o, s) => (o.sectionID || "").split(".").filter((c, d) => d < s).join("."), n = l.map((o) => {
|
|
3561
|
+
})), i = (o, s) => (o.sectionID || "").split(".").filter((c, d) => d < s).join("."), n = l.map((o) => {
|
|
3564
3562
|
let s = [], c = [], d = [];
|
|
3565
3563
|
return o.cardCuttingSectionList.forEach((h, O, p) => {
|
|
3566
3564
|
const F = i(h, 1);
|
|
@@ -3572,11 +3570,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3572
3570
|
if (d.length === 1)
|
|
3573
3571
|
s.push(d[0]);
|
|
3574
3572
|
else {
|
|
3575
|
-
const z = d.map((B) => B.subjectiveQuestionSectionList || []).flat(), v = d.map((B) => B.choiceQuestionPartialSectionList || []).flat(),
|
|
3573
|
+
const z = d.map((B) => B.subjectiveQuestionSectionList || []).flat(), v = d.map((B) => B.choiceQuestionPartialSectionList || []).flat(), P = v.length ? { choiceQuestionPartialSectionList: v } : {}, W = z.length ? { subjectiveQuestionSectionList: z } : {};
|
|
3576
3574
|
s.push({
|
|
3577
3575
|
...d[0],
|
|
3578
3576
|
// cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
|
|
3579
|
-
...
|
|
3577
|
+
...P,
|
|
3580
3578
|
...W
|
|
3581
3579
|
});
|
|
3582
3580
|
}
|
|
@@ -3591,8 +3589,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3591
3589
|
const O = Math.max(...(c.subjectiveQuestionSectionList || []).map((N) => N.sectionID.split(".").length - 1), 1);
|
|
3592
3590
|
(F = c.subjectiveQuestionSectionList) == null || F.forEach((N, j, T) => {
|
|
3593
3591
|
const z = i(N, O);
|
|
3594
|
-
let v = !1,
|
|
3595
|
-
if (h.find((W) => i(W, O) === z && W.secitonSeqID === N.secitonSeqID) && (h.push(N), v = j < T.length - 1,
|
|
3592
|
+
let v = !1, P = !1;
|
|
3593
|
+
if (h.find((W) => i(W, O) === z && W.secitonSeqID === N.secitonSeqID) && (h.push(N), v = j < T.length - 1, P = !0), !v) {
|
|
3596
3594
|
if (h.length) {
|
|
3597
3595
|
if (h.length === 1)
|
|
3598
3596
|
d.push(h[0]);
|
|
@@ -3606,7 +3604,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3606
3604
|
}
|
|
3607
3605
|
h = [];
|
|
3608
3606
|
}
|
|
3609
|
-
|
|
3607
|
+
P || h.push(N);
|
|
3610
3608
|
}
|
|
3611
3609
|
});
|
|
3612
3610
|
const p = Math.max(...[...d, ...h].map((N) => N.sectionID.split(".").length));
|
|
@@ -3751,7 +3749,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3751
3749
|
f("span", vs, "排版" + J(l.value.length ? "异常" : "良好"), 1)
|
|
3752
3750
|
], 2),
|
|
3753
3751
|
l.value.length ? (r(), u("ul", ws, [
|
|
3754
|
-
(r(!0), u(
|
|
3752
|
+
(r(!0), u(E, null, Z(l.value, (c, d) => (r(), u("li", {
|
|
3755
3753
|
key: d,
|
|
3756
3754
|
class: "layt-moni_err_item"
|
|
3757
3755
|
}, [
|
|
@@ -3767,7 +3765,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3767
3765
|
]));
|
|
3768
3766
|
}
|
|
3769
3767
|
});
|
|
3770
|
-
const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e) => e == null ? void 0 : e.getBoundingClientRect(), Tt = (e, t) => t.querySelector(`*[data-tag="${e}"]`), st = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![
|
|
3768
|
+
const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e) => e == null ? void 0 : e.getBoundingClientRect(), Tt = (e, t) => t.querySelector(`*[data-tag="${e}"]`), st = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Pe, pt].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Pe, pt].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
|
|
3771
3769
|
const t = e.parentElement, a = document.createElement("span");
|
|
3772
3770
|
return a.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", a.dataset.block = pt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(a, e.nextElementSibling) : t.appendChild(a), a;
|
|
3773
3771
|
}, Ts = (e, t, a, l) => {
|
|
@@ -3796,32 +3794,32 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
|
|
|
3796
3794
|
const i = (o, s = a) => {
|
|
3797
3795
|
var j, T, z;
|
|
3798
3796
|
const c = o.map((v) => {
|
|
3799
|
-
const
|
|
3797
|
+
const P = he(v);
|
|
3800
3798
|
return {
|
|
3801
3799
|
el: v,
|
|
3802
|
-
top:
|
|
3803
|
-
left:
|
|
3800
|
+
top: P.top - t,
|
|
3801
|
+
left: P.left
|
|
3804
3802
|
};
|
|
3805
|
-
}), d = c.filter((v) => v.el.offsetHeight + v.top > s).sort((v,
|
|
3803
|
+
}), d = c.filter((v) => v.el.offsetHeight + v.top > s).sort((v, P) => v.top - P.top), h = (j = d.shift()) == null ? void 0 : j.el;
|
|
3806
3804
|
if (!h) {
|
|
3807
3805
|
const v = document.createElement("div");
|
|
3808
3806
|
return (T = o[0].parentElement) == null || T.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
|
|
3809
3807
|
}
|
|
3810
3808
|
const O = he(h), p = O.top - t, F = O.left;
|
|
3811
3809
|
if (d.filter((v) => v.top < p + h.offsetHeight && v.top + v.el.offsetHeight - 1 > p && (v.left + v.el.offsetWidth - 1 < F || v.left + 1 > F + h.offsetWidth)).length) {
|
|
3812
|
-
const v = (z = c.filter((
|
|
3810
|
+
const v = (z = c.filter((P) => P.top < p).pop()) == null ? void 0 : z.el;
|
|
3813
3811
|
if (v != null && v.children.length) {
|
|
3814
|
-
const
|
|
3815
|
-
return i(
|
|
3812
|
+
const P = st(v);
|
|
3813
|
+
return i(P, p) || v;
|
|
3816
3814
|
} else
|
|
3817
3815
|
return v ? he(v).top - t + v.offsetHeight > p ? It(v, t, p) : v : it(h.parentElement, t, p);
|
|
3818
3816
|
} else {
|
|
3819
3817
|
const v = getComputedStyle(h);
|
|
3820
3818
|
if (p + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > s)
|
|
3821
3819
|
return it(h, t, p);
|
|
3822
|
-
const
|
|
3823
|
-
if (
|
|
3824
|
-
return Ve(
|
|
3820
|
+
const P = Ts(h, s - p, s, l);
|
|
3821
|
+
if (P)
|
|
3822
|
+
return Ve(P);
|
|
3825
3823
|
if (h.children.length) {
|
|
3826
3824
|
const W = st(h);
|
|
3827
3825
|
return i(W, s);
|
|
@@ -3840,7 +3838,7 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
|
|
|
3840
3838
|
const s = he(t).top;
|
|
3841
3839
|
let c = {}, d = 0, h = 0;
|
|
3842
3840
|
const O = (v) => {
|
|
3843
|
-
const
|
|
3841
|
+
const P = v % (l + i), W = Math.floor(v / (l + i)) * 2 + (P >= l ? 1 : 0), B = n(v, W);
|
|
3844
3842
|
c = {
|
|
3845
3843
|
top: s,
|
|
3846
3844
|
width: parseFloat(B.width),
|
|
@@ -3858,33 +3856,33 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
|
|
|
3858
3856
|
};
|
|
3859
3857
|
N();
|
|
3860
3858
|
const j = (v) => {
|
|
3861
|
-
const
|
|
3862
|
-
return he(v).top - c.top + parseFloat(
|
|
3859
|
+
const P = getComputedStyle(v);
|
|
3860
|
+
return he(v).top - c.top + parseFloat(P.borderTop) + parseFloat(P.paddingTop) + parseFloat(P.lineHeight) > p[p.length - 1].height;
|
|
3863
3861
|
}, T = (v) => {
|
|
3864
|
-
const
|
|
3865
|
-
return he(v).top + v.offsetHeight - c.top - (v.dataset.block === ke ? 0 : parseFloat(
|
|
3862
|
+
const P = getComputedStyle(v);
|
|
3863
|
+
return he(v).top + v.offsetHeight - c.top - (v.dataset.block === ke ? 0 : parseFloat(P.paddingBottom) - parseFloat(P.borderBottom)) <= p[p.length - 1].height;
|
|
3866
3864
|
}, z = (v = JSON.parse(JSON.stringify(a[F] || {}))) => {
|
|
3867
3865
|
if (F >= a.length || !Object.keys(v).length) {
|
|
3868
3866
|
o([...p], !0), console.timeEnd("layout"), p = [], d = 0;
|
|
3869
3867
|
return;
|
|
3870
3868
|
}
|
|
3871
3869
|
p[p.length - 1].data.push({ ...v }), o([...p]), window.requestAnimationFrame(() => {
|
|
3872
|
-
const
|
|
3870
|
+
const P = Tt(v.__tag__, t), W = !v.isHidden && he(P);
|
|
3873
3871
|
let B = null;
|
|
3874
3872
|
if (h) {
|
|
3875
|
-
const _ =
|
|
3873
|
+
const _ = P.querySelector(`*[data-hutkey="${h}"]`), C = he(_);
|
|
3876
3874
|
p[p.length - 1].top = c.top - C.top, p[p.length - 1].height = c.height - p[p.length - 1].top, h = 0;
|
|
3877
3875
|
}
|
|
3878
3876
|
if (W && W.height + W.top - c.top > p[p.length - 1].height)
|
|
3879
3877
|
if (v.problemType)
|
|
3880
3878
|
p[p.length - 1].data.pop(), N(), z({ ...v });
|
|
3881
|
-
else if (T(
|
|
3879
|
+
else if (T(P))
|
|
3882
3880
|
N(), F++, z();
|
|
3883
|
-
else if (j(
|
|
3881
|
+
else if (j(P))
|
|
3884
3882
|
p[p.length - 1].data.pop(), N(), z({ ...v });
|
|
3885
3883
|
else {
|
|
3886
|
-
B = Lt(
|
|
3887
|
-
const _ =
|
|
3884
|
+
B = Lt(P, c.top, p[p.length - 1].height, p.length % (l + i) >= l);
|
|
3885
|
+
const _ = P.querySelector(`*[data-content="${v.id}"]`);
|
|
3888
3886
|
p[p.length - 1].height = he(B.cut).top - c.top, N(), _ != null && _.contains(B.cut) ? (h = Date.now(), B.cut.dataset.hutkey = h, z({ ...v, content: _.innerHTML })) : (p[p.length - 1].data.pop(), z({ ...v }));
|
|
3889
3887
|
}
|
|
3890
3888
|
else {
|
|
@@ -3960,7 +3958,7 @@ function Ls(e, t) {
|
|
|
3960
3958
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
3961
3959
|
});
|
|
3962
3960
|
}
|
|
3963
|
-
const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" },
|
|
3961
|
+
const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Ps = ["disabled", "contentEditable", "id"], Es = /* @__PURE__ */ ee({
|
|
3964
3962
|
__name: "index",
|
|
3965
3963
|
props: {
|
|
3966
3964
|
value: {},
|
|
@@ -4026,11 +4024,11 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4026
4024
|
id: x(mt),
|
|
4027
4025
|
onFocus: s,
|
|
4028
4026
|
onBlur: o
|
|
4029
|
-
}, null, 40,
|
|
4027
|
+
}, null, 40, Ps))
|
|
4030
4028
|
]));
|
|
4031
4029
|
}
|
|
4032
4030
|
});
|
|
4033
|
-
const Ds = /* @__PURE__ */ de(
|
|
4031
|
+
const Ds = /* @__PURE__ */ de(Es, [["__scopeId", "data-v-1398ac85"]]);
|
|
4034
4032
|
let Ye = (e) => {
|
|
4035
4033
|
};
|
|
4036
4034
|
const Ms = {
|
|
@@ -4090,31 +4088,31 @@ const As = {
|
|
|
4090
4088
|
}))), v = A(() => a.txtData.map((D) => ({
|
|
4091
4089
|
...D,
|
|
4092
4090
|
top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
|
|
4093
|
-
}))),
|
|
4091
|
+
}))), P = A(() => N.value ? N.value.split("-")[0] === "img" ? z.value.find(($) => $.key === N.value) : v.value.find(($) => $.key === N.value) : null), W = A(() => P.value ? { [P.value.key]: { ...s.value } } : {});
|
|
4094
4092
|
Xe(() => {
|
|
4095
4093
|
h.value = document.body.querySelector(".__layout__");
|
|
4096
4094
|
});
|
|
4097
4095
|
const B = (D) => {
|
|
4098
|
-
s.value = { ...
|
|
4096
|
+
s.value = { ...P.value, left: Math.max(D.x, 0), top: Math.max(D.y, 0) }, clearTimeout(O.value), O.value = setTimeout(() => {
|
|
4099
4097
|
var $;
|
|
4100
|
-
(($ =
|
|
4098
|
+
(($ = P.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4101
4099
|
}, 400);
|
|
4102
4100
|
}, _ = (D) => {
|
|
4103
4101
|
F.value = D;
|
|
4104
4102
|
}, C = () => {
|
|
4105
|
-
const D =
|
|
4103
|
+
const D = P.value, $ = D.left + D.width / 2, S = D.top + D.height / 2, K = h.value.getBoundingClientRect() || {};
|
|
4106
4104
|
p.value = { x: $ + K.left, y: S + K.top }, h.value.addEventListener("mousemove", w), h.value.addEventListener("mouseleave", G), h.value.addEventListener("mouseup", G);
|
|
4107
4105
|
}, w = (D) => {
|
|
4108
4106
|
D.stopPropagation(), D.preventDefault();
|
|
4109
4107
|
const $ = D.clientX - p.value.x, S = p.value.y - D.clientY, K = Math.atan2(S, $) / (Math.PI / 180);
|
|
4110
|
-
s.value = { ...
|
|
4108
|
+
s.value = { ...P.value, rotate: -parseInt(K.toString()) };
|
|
4111
4109
|
}, G = (D) => {
|
|
4112
4110
|
D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", s.value), h.value.removeEventListener("mousemove", w), h.value.removeEventListener("mouseleave", G), h.value.removeEventListener("mouseup", G);
|
|
4113
4111
|
}, H = (D, $) => {
|
|
4114
4112
|
var S;
|
|
4115
|
-
D.stopPropagation(), c.value = $, o.value = { x: D.clientX, y: D.clientY, ...
|
|
4113
|
+
D.stopPropagation(), c.value = $, o.value = { x: D.clientX, y: D.clientY, ...P.value }, ((S = P.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? h.value.addEventListener("mousemove", ye) : h.value.addEventListener("mousemove", pe), h.value.addEventListener("mouseleave", ie), h.value.addEventListener("mouseup", ie);
|
|
4116
4114
|
}, ye = (D) => {
|
|
4117
|
-
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...
|
|
4115
|
+
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = $.x > $.y ? "width" : "height";
|
|
4118
4116
|
[
|
|
4119
4117
|
// 0
|
|
4120
4118
|
() => {
|
|
@@ -4224,7 +4222,7 @@ const As = {
|
|
|
4224
4222
|
}
|
|
4225
4223
|
][c.value]();
|
|
4226
4224
|
}, pe = (D) => {
|
|
4227
|
-
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...
|
|
4225
|
+
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = [
|
|
4228
4226
|
{
|
|
4229
4227
|
...S,
|
|
4230
4228
|
width: o.value.width - $.x,
|
|
@@ -4271,20 +4269,20 @@ const As = {
|
|
|
4271
4269
|
s.value = K[c.value];
|
|
4272
4270
|
}, ie = () => {
|
|
4273
4271
|
var D;
|
|
4274
|
-
h.value.removeEventListener("mousemove", ye), h.value.removeEventListener("mousemove", pe), h.value.removeEventListener("mouseleave", ie), h.value.removeEventListener("mouseup", ie), ((D =
|
|
4272
|
+
h.value.removeEventListener("mousemove", ye), h.value.removeEventListener("mousemove", pe), h.value.removeEventListener("mouseleave", ie), h.value.removeEventListener("mouseup", ie), ((D = P.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4275
4273
|
}, fe = (D) => {
|
|
4276
|
-
if (!D || D ===
|
|
4274
|
+
if (!D || D === P.value.content) {
|
|
4277
4275
|
d.value++;
|
|
4278
4276
|
return;
|
|
4279
4277
|
}
|
|
4280
|
-
t("changeAbsTxtItem", { ...
|
|
4278
|
+
t("changeAbsTxtItem", { ...P.value, content: D });
|
|
4281
4279
|
}, ue = (D, $) => {
|
|
4282
4280
|
var K;
|
|
4283
4281
|
const S = document.body.querySelector(`.cke_editor_${mt}`);
|
|
4284
4282
|
!D && ((K = ($ == null ? void 0 : $.target).dataset) != null && K.safe || [...j.value, ...T.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (N.value = D == null ? void 0 : D.key, s.value = D ? { ...D } : null);
|
|
4285
4283
|
};
|
|
4286
|
-
return (D, $) => (r(), u(
|
|
4287
|
-
(r(!0), u(
|
|
4284
|
+
return (D, $) => (r(), u(E, null, [
|
|
4285
|
+
(r(!0), u(E, null, Z(z.value, (S) => {
|
|
4288
4286
|
var K, we, ae, re, be, b, I;
|
|
4289
4287
|
return bt((r(), u("div", {
|
|
4290
4288
|
key: S.id,
|
|
@@ -4292,15 +4290,15 @@ const As = {
|
|
|
4292
4290
|
ref_key: "imgViewList",
|
|
4293
4291
|
ref: j,
|
|
4294
4292
|
"data-safe": "true",
|
|
4295
|
-
class: oe(["absolute", ((K =
|
|
4293
|
+
class: oe(["absolute", ((K = P.value) == null ? void 0 : K.key) === S.key ? "z-8" : "z-7"]),
|
|
4296
4294
|
style: Q({ left: Math.max(((we = W.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = W.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = W.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = W.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = W.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
|
|
4297
4295
|
onMousedown: Le((le) => ue(S), ["stop"]),
|
|
4298
|
-
"data-block": x(
|
|
4296
|
+
"data-block": x(Pe)
|
|
4299
4297
|
}, [
|
|
4300
4298
|
f("img", {
|
|
4301
4299
|
src: S.url
|
|
4302
4300
|
}, null, 8, Bs),
|
|
4303
|
-
((I =
|
|
4301
|
+
((I = P.value) == null ? void 0 : I.key) === S.key ? (r(), u(E, { key: 0 }, [
|
|
4304
4302
|
f("span", Os, [
|
|
4305
4303
|
X(_e, {
|
|
4306
4304
|
name: "close",
|
|
@@ -4310,7 +4308,7 @@ const As = {
|
|
|
4310
4308
|
}, null, 8, ["onClick"])
|
|
4311
4309
|
]),
|
|
4312
4310
|
f("div", zs, [
|
|
4313
|
-
(r(), u(
|
|
4311
|
+
(r(), u(E, null, Z(8, (le, Y) => f("div", {
|
|
4314
4312
|
key: le,
|
|
4315
4313
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4316
4314
|
style: Q({ ...n[Y], transform: "translate(-50%, -50%)" }),
|
|
@@ -4332,7 +4330,7 @@ const As = {
|
|
|
4332
4330
|
[x(l), (le) => ue(null, le)]
|
|
4333
4331
|
]);
|
|
4334
4332
|
}), 128)),
|
|
4335
|
-
(r(!0), u(
|
|
4333
|
+
(r(!0), u(E, null, Z(v.value, (S) => {
|
|
4336
4334
|
var K, we, ae, re, be, b, I;
|
|
4337
4335
|
return bt((r(), u("div", {
|
|
4338
4336
|
key: S.id,
|
|
@@ -4341,22 +4339,22 @@ const As = {
|
|
|
4341
4339
|
ref: T,
|
|
4342
4340
|
disabled: F.value,
|
|
4343
4341
|
"data-safe": "true",
|
|
4344
|
-
class: oe(["absolute", ((K =
|
|
4342
|
+
class: oe(["absolute", ((K = P.value) == null ? void 0 : K.key) === S.key ? "z-8 bg-white" : "z-7"]),
|
|
4345
4343
|
style: Q({ left: Math.max(((we = W.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = W.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = W.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = W.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
|
|
4346
4344
|
onMousedown: Le((le) => ue(S), ["stop"]),
|
|
4347
|
-
"data-block": x(
|
|
4345
|
+
"data-block": x(Pe)
|
|
4348
4346
|
}, [
|
|
4349
4347
|
(r(), V(Ds, {
|
|
4350
4348
|
key: d.value,
|
|
4351
4349
|
class: "border-0 relative z-4",
|
|
4352
|
-
readonly: ((b =
|
|
4350
|
+
readonly: ((b = P.value) == null ? void 0 : b.key) !== S.key,
|
|
4353
4351
|
value: S.content,
|
|
4354
4352
|
name: S.id.toString(),
|
|
4355
4353
|
onChange: fe,
|
|
4356
4354
|
onFocus: $[0] || ($[0] = (le) => _(!0)),
|
|
4357
4355
|
onBlur: $[1] || ($[1] = (le) => _(!1))
|
|
4358
4356
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4359
|
-
((I =
|
|
4357
|
+
((I = P.value) == null ? void 0 : I.key) === S.key ? (r(), u(E, { key: 0 }, [
|
|
4360
4358
|
f("span", Gs, [
|
|
4361
4359
|
X(_e, {
|
|
4362
4360
|
name: "close",
|
|
@@ -4366,7 +4364,7 @@ const As = {
|
|
|
4366
4364
|
}, null, 8, ["onClick"])
|
|
4367
4365
|
]),
|
|
4368
4366
|
f("div", Ys, [
|
|
4369
|
-
(r(), u(
|
|
4367
|
+
(r(), u(E, null, Z(8, (le, Y) => f("div", {
|
|
4370
4368
|
key: le,
|
|
4371
4369
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4372
4370
|
style: Q({ ...n[Y], transform: "translate(-50%, -50%)" }),
|
|
@@ -4416,9 +4414,9 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4416
4414
|
}), j = A(() => {
|
|
4417
4415
|
var b;
|
|
4418
4416
|
return a.layout.bindFlag && !!((b = Oe.find((I) => I.code === a.layout.paper)) != null && b.isMultCol);
|
|
4419
|
-
}), T = A(() => a.isFinal ? 0 : 10), z = A(() => a.isFinal ? 10 : 0), v = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || n.value || 1),
|
|
4417
|
+
}), T = A(() => a.isFinal ? 0 : 10), z = A(() => a.isFinal ? 10 : 0), v = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || n.value || 1), P = A(() => Math.ceil(v.value / 2) * 2), W = A(() => ["sheet", "sheetCard"].includes(a.layout.mode)), B = A(() => W.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || dt[a.layout.mode][a.layout.paper]), C = A(() => g[a.layout.paper].width - _.value.left - _.value.right), w = A(() => g[a.layout.paper].height - _.value.top - _.value.bottom), G = A(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), H = A(() => ({
|
|
4420
4418
|
width: `${g[a.layout.paper].width}px`,
|
|
4421
|
-
height: `${(g[a.layout.paper].height + T.value) *
|
|
4419
|
+
height: `${(g[a.layout.paper].height + T.value) * P.value - T.value}px`
|
|
4422
4420
|
})), ye = A(() => ({
|
|
4423
4421
|
width: `${g[a.layout.paper].width}px`,
|
|
4424
4422
|
height: `${g[a.layout.paper].height}px`,
|
|
@@ -4447,7 +4445,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4447
4445
|
b ? d.value[I] = b : d.value.splice(I, 1);
|
|
4448
4446
|
}, $ = (b, I) => {
|
|
4449
4447
|
b ? h.value[I] = b : h.value.splice(I, 1);
|
|
4450
|
-
}, S = (b) =>
|
|
4448
|
+
}, S = (b) => Et[a.layout.mode][a.layout.paper][ie(b)] || 0, K = (b, I = !1) => (C.value - (s.value ? s.value + S(b) : 0) + S(b)) / ie(b) - S(b) - B.value.left - B.value.right + (I ? B.value.left + B.value.right : 0), we = (b, I) => {
|
|
4451
4449
|
var Y, te;
|
|
4452
4450
|
const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((Y = O.value[Math.min(I, 1)]) == null ? void 0 : Y.offsetHeight) || 0;
|
|
4453
4451
|
return {
|
|
@@ -4493,7 +4491,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4493
4491
|
};
|
|
4494
4492
|
return (b, I) => {
|
|
4495
4493
|
var le;
|
|
4496
|
-
return r(), u(
|
|
4494
|
+
return r(), u(E, null, [
|
|
4497
4495
|
b.readonly ? M("", !0) : (r(), V($s, {
|
|
4498
4496
|
key: 0,
|
|
4499
4497
|
ColList: l.value,
|
|
@@ -4514,7 +4512,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4514
4512
|
ref_key: "rawDom",
|
|
4515
4513
|
ref: c
|
|
4516
4514
|
}, [
|
|
4517
|
-
i.value.length ? (r(!0), u(
|
|
4515
|
+
i.value.length ? (r(!0), u(E, { key: 0 }, Z((le = i.value[i.value.length - 1]) == null ? void 0 : le.data, (Y, te) => (r(), u(E, null, [
|
|
4518
4516
|
Y.isHidden ? M("", !0) : (r(), V(St, {
|
|
4519
4517
|
key: 0,
|
|
4520
4518
|
item: Y,
|
|
@@ -4564,14 +4562,14 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4564
4562
|
key: o.value
|
|
4565
4563
|
}, [
|
|
4566
4564
|
(r(), u("foreignObject", Ks, [
|
|
4567
|
-
(r(!0), u(
|
|
4565
|
+
(r(!0), u(E, null, Z(P.value, (Y, te) => (r(), u("div", {
|
|
4568
4566
|
key: Y,
|
|
4569
4567
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4570
4568
|
ref_for: !0,
|
|
4571
4569
|
ref: (Se) => D(Se, te),
|
|
4572
4570
|
style: Q(ye.value)
|
|
4573
4571
|
}, [
|
|
4574
|
-
te < v.value ? (r(), u(
|
|
4572
|
+
te < v.value ? (r(), u(E, { key: 0 }, [
|
|
4575
4573
|
X(wo, {
|
|
4576
4574
|
layout: b.layout,
|
|
4577
4575
|
currentPage: te,
|
|
@@ -4604,7 +4602,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4604
4602
|
class: oe(["absolute text-black", te === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4605
4603
|
style: Q(pe.value)
|
|
4606
4604
|
}, [
|
|
4607
|
-
X(
|
|
4605
|
+
X(Eo, {
|
|
4608
4606
|
layout: b.layout,
|
|
4609
4607
|
code: b.info.textCode
|
|
4610
4608
|
}, null, 8, ["layout", "code"]),
|
|
@@ -4636,25 +4634,25 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4636
4634
|
layout: b.layout
|
|
4637
4635
|
}, null, 8, ["info", "layout"])) : M("", !0)
|
|
4638
4636
|
], 6)) : M("", !0),
|
|
4639
|
-
(r(!0), u(
|
|
4637
|
+
(r(!0), u(E, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Ee) => (r(), V(Qa, {
|
|
4640
4638
|
ref_for: !0,
|
|
4641
|
-
ref: (We) => $(We, fe(
|
|
4642
|
-
styleInfo: we(fe(
|
|
4639
|
+
ref: (We) => $(We, fe(Ee, te)),
|
|
4640
|
+
styleInfo: we(fe(Ee, te), te),
|
|
4643
4641
|
column: b.layout.column,
|
|
4644
|
-
currentColumn: fe(
|
|
4642
|
+
currentColumn: fe(Ee, te),
|
|
4645
4643
|
showColBorder: W.value
|
|
4646
4644
|
}, {
|
|
4647
4645
|
default: Ft(() => {
|
|
4648
4646
|
var We;
|
|
4649
4647
|
return [
|
|
4650
|
-
(r(!0), u(
|
|
4648
|
+
(r(!0), u(E, null, Z(((We = l.value[fe(Ee, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
|
|
4651
4649
|
var yt;
|
|
4652
|
-
return r(), u(
|
|
4650
|
+
return r(), u(E, null, [
|
|
4653
4651
|
ge.isHidden ? M("", !0) : (r(), V(St, {
|
|
4654
4652
|
key: 0,
|
|
4655
4653
|
item: ge,
|
|
4656
4654
|
showColBorder: W.value,
|
|
4657
|
-
isFirst: !te && !
|
|
4655
|
+
isFirst: !te && !Ee && !Ht,
|
|
4658
4656
|
layout: b.layout,
|
|
4659
4657
|
isActive: ((yt = b.target.value) == null ? void 0 : yt.id) === ge.id,
|
|
4660
4658
|
onClick: (Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }),
|
|
@@ -4670,21 +4668,21 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4670
4668
|
data: ge,
|
|
4671
4669
|
layout: b.layout,
|
|
4672
4670
|
target: b.target,
|
|
4673
|
-
width: K(fe(
|
|
4671
|
+
width: K(fe(Ee, te)) - 10,
|
|
4674
4672
|
onClick: I[10] || (I[10] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
|
|
4675
4673
|
onDbclick: I[11] || (I[11] = (Ce) => t("dbProblemClick", Ce))
|
|
4676
4674
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4677
4675
|
ge.children.length && ge.children[ge.children.length - 1].id === N.value ? (r(), u("div", {
|
|
4678
4676
|
key: 0,
|
|
4679
4677
|
class: "border-t",
|
|
4680
|
-
"data-block": x(
|
|
4678
|
+
"data-block": x(Pe)
|
|
4681
4679
|
}, null, 8, Xs)) : M("", !0)
|
|
4682
4680
|
], 42, Vs)) : (r(), V(Ge, {
|
|
4683
4681
|
key: 2,
|
|
4684
4682
|
data: ge,
|
|
4685
4683
|
layout: b.layout,
|
|
4686
4684
|
target: b.target,
|
|
4687
|
-
width: K(fe(
|
|
4685
|
+
width: K(fe(Ee, te)),
|
|
4688
4686
|
onClick: I[12] || (I[12] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
|
|
4689
4687
|
onDbclick: I[13] || (I[13] = (Ce) => t("dbProblemClick", Ce))
|
|
4690
4688
|
}, null, 8, ["data", "layout", "target", "width"]))
|