alit-layout 1.1.24 → 1.1.26
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 +605 -595
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as se, computed as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as se, computed as H, openBlock as r, createElementBlock as h, Fragment as O, renderList as ne, createElementVNode as w, normalizeStyle as Z, unref as F, toDisplayString as te, createCommentVNode as A, ref as U, watch as Oe, normalizeClass as oe, createBlock as ee, createTextVNode as et, createVNode as le, pushScopeId as qe, popScopeId as Ye, renderSlot as _t, onMounted as Ke, nextTick as nt, withModifiers as De, resolveComponent as Yt, resolveDynamicComponent as xt, normalizeProps as Ct, guardReactiveProps as St, withCtx as Mt, inject as Kt, withDirectives as $t, provide as Ut } from "vue";
|
|
2
|
+
const He = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
5
5
|
// 多选题
|
|
@@ -9,10 +9,10 @@ const je = {
|
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
11
|
}, Dt = {
|
|
12
|
-
...
|
|
12
|
+
...He,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
15
|
-
},
|
|
15
|
+
}, We = {
|
|
16
16
|
// 填空题
|
|
17
17
|
fill: "FILL_BLANKS",
|
|
18
18
|
// 听后填空
|
|
@@ -47,8 +47,8 @@ const je = {
|
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
48
|
}, m = {
|
|
49
49
|
...Dt,
|
|
50
|
-
...
|
|
51
|
-
},
|
|
50
|
+
...We
|
|
51
|
+
}, Ge = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
53
53
|
{ name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0, disabled: !0 },
|
|
54
54
|
{ name: "A4", code: "a4", size: "210*297mm", isFullTitle: !0 },
|
|
@@ -475,7 +475,8 @@ const je = {
|
|
|
475
475
|
handReadFlag: "手阅",
|
|
476
476
|
fillScoreFlag: "填空题分数显示",
|
|
477
477
|
minusFlag: "减分制",
|
|
478
|
-
simpleScoreBarFlag: "简易打分条"
|
|
478
|
+
simpleScoreBarFlag: "简易打分条",
|
|
479
|
+
scoreTipFlag: "计分提示"
|
|
479
480
|
},
|
|
480
481
|
sheetCard: {
|
|
481
482
|
secTitleFlag: "副标题",
|
|
@@ -1064,6 +1065,7 @@ const je = {
|
|
|
1064
1065
|
{ name: "1/2", code: 2 },
|
|
1065
1066
|
{ name: "1/3", code: 3 },
|
|
1066
1067
|
{ name: "1/4", code: 4 },
|
|
1068
|
+
{ name: "1/5", code: 5 },
|
|
1067
1069
|
{ name: "2/3", code: 1.5 },
|
|
1068
1070
|
{ name: "3/4", code: 1.34 }
|
|
1069
1071
|
]
|
|
@@ -1079,6 +1081,7 @@ const je = {
|
|
|
1079
1081
|
{ name: "1/2", code: 2 },
|
|
1080
1082
|
{ name: "1/3", code: 3 },
|
|
1081
1083
|
{ name: "1/4", code: 4 },
|
|
1084
|
+
{ name: "1/5", code: 5 },
|
|
1082
1085
|
{ name: "2/3", code: 1.5 },
|
|
1083
1086
|
{ name: "3/4", code: 1.34 }
|
|
1084
1087
|
]
|
|
@@ -1116,6 +1119,7 @@ const je = {
|
|
|
1116
1119
|
{ name: "1/2", code: 2 },
|
|
1117
1120
|
{ name: "1/3", code: 3 },
|
|
1118
1121
|
{ name: "1/4", code: 4 },
|
|
1122
|
+
{ name: "1/5", code: 5 },
|
|
1119
1123
|
{ name: "2/3", code: 1.5 },
|
|
1120
1124
|
{ name: "3/4", code: 1.34 }
|
|
1121
1125
|
]
|
|
@@ -1394,6 +1398,7 @@ const je = {
|
|
|
1394
1398
|
{ name: "1/2", code: 2 },
|
|
1395
1399
|
{ name: "1/3", code: 3 },
|
|
1396
1400
|
{ name: "1/4", code: 4 },
|
|
1401
|
+
{ name: "1/5", code: 5 },
|
|
1397
1402
|
{ name: "2/3", code: 1.5 },
|
|
1398
1403
|
{ name: "3/4", code: 1.34 }
|
|
1399
1404
|
]
|
|
@@ -1410,6 +1415,7 @@ const je = {
|
|
|
1410
1415
|
{ name: "1/2", code: 2 },
|
|
1411
1416
|
{ name: "1/3", code: 3 },
|
|
1412
1417
|
{ name: "1/4", code: 4 },
|
|
1418
|
+
{ name: "1/5", code: 5 },
|
|
1413
1419
|
{ name: "2/3", code: 1.5 },
|
|
1414
1420
|
{ name: "3/4", code: 1.34 }
|
|
1415
1421
|
]
|
|
@@ -1437,6 +1443,7 @@ const je = {
|
|
|
1437
1443
|
// { name: '1/2', code: 2 },
|
|
1438
1444
|
// { name: '1/3', code: 3 },
|
|
1439
1445
|
// { name: '1/4', code: 4 },
|
|
1446
|
+
// { name: '1/5', code: 5 },
|
|
1440
1447
|
// { name: '2/3', code: 1.5 },
|
|
1441
1448
|
// { name: '3/4', code: 1.34 }
|
|
1442
1449
|
// ]
|
|
@@ -1686,7 +1693,7 @@ const je = {
|
|
|
1686
1693
|
code: "star",
|
|
1687
1694
|
value: "star"
|
|
1688
1695
|
}
|
|
1689
|
-
},
|
|
1696
|
+
}, Qe = {
|
|
1690
1697
|
left_down: {
|
|
1691
1698
|
name: "左下",
|
|
1692
1699
|
code: "left_down",
|
|
@@ -1736,10 +1743,10 @@ const je = {
|
|
|
1736
1743
|
paddDiff: Xt,
|
|
1737
1744
|
pageMargin: Zt,
|
|
1738
1745
|
pagePadding: ft,
|
|
1739
|
-
pagePointPosition:
|
|
1746
|
+
pagePointPosition: Qe,
|
|
1740
1747
|
pageSize: x,
|
|
1741
1748
|
pageTitleBlockCol: to,
|
|
1742
|
-
paper:
|
|
1749
|
+
paper: Ge,
|
|
1743
1750
|
problemLayout: mo,
|
|
1744
1751
|
problemLayoutKey: u,
|
|
1745
1752
|
problemLayoutVal: _,
|
|
@@ -1850,21 +1857,21 @@ const je = {
|
|
|
1850
1857
|
padding: {}
|
|
1851
1858
|
},
|
|
1852
1859
|
setup(e) {
|
|
1853
|
-
const t = e, o =
|
|
1860
|
+
const t = e, o = H(() => tt.includes(t.layout.paper) ? 2 : (t.currentPage % 2 ? t.layout.backColumn : t.layout.column) - 1), l = (s) => ({
|
|
1854
1861
|
lt: { left: `${t.padding.left - we}px`, top: `${t.padding.top - we}px` },
|
|
1855
1862
|
rt: { right: `${t.padding.right - we}px`, top: `${t.padding.top - we}px` },
|
|
1856
1863
|
lb: { left: `${t.padding.left - we}px`, bottom: `${t.padding.bottom - we}px` },
|
|
1857
1864
|
rb: { right: `${t.padding.right - we}px`, bottom: `${t.padding.bottom - we}px` }
|
|
1858
|
-
})[
|
|
1859
|
-
[
|
|
1865
|
+
})[s], c = () => ({
|
|
1866
|
+
[Qe.left_down.code]: {
|
|
1860
1867
|
left: `${t.padding.left - we + 100}px`,
|
|
1861
1868
|
bottom: `${t.padding.bottom - we}px`
|
|
1862
1869
|
},
|
|
1863
|
-
[
|
|
1870
|
+
[Qe.right_up.code]: {
|
|
1864
1871
|
right: `${t.padding.right - we + 100}px`,
|
|
1865
1872
|
top: `${t.padding.top - we}px`
|
|
1866
1873
|
}
|
|
1867
|
-
})[t.layout.pagePoint],
|
|
1874
|
+
})[t.layout.pagePoint], i = (s, y) => {
|
|
1868
1875
|
const n = {
|
|
1869
1876
|
t: {
|
|
1870
1877
|
top: `${t.padding.top - we}px`
|
|
@@ -1873,12 +1880,12 @@ const je = {
|
|
|
1873
1880
|
bottom: `${t.padding.bottom - we}px`
|
|
1874
1881
|
}
|
|
1875
1882
|
}, d = (x[t.layout.paper].width - t.padding.left - t.padding.right + we) / (tt.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
1876
|
-
return { left: `${
|
|
1877
|
-
}, a = (
|
|
1878
|
-
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, d = ["", "l", "r"].findIndex((
|
|
1883
|
+
return { left: `${s * d + t.padding.left - we}px`, width: `${we}px`, ...n[y] };
|
|
1884
|
+
}, a = (s) => {
|
|
1885
|
+
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, d = ["", "l", "r"].findIndex((B) => B === s);
|
|
1879
1886
|
return { top: `${y * d + t.padding.top - 10}px`, width: "11px", ...n };
|
|
1880
1887
|
};
|
|
1881
|
-
return (
|
|
1888
|
+
return (s, y) => {
|
|
1882
1889
|
var n;
|
|
1883
1890
|
return r(), h(O, null, [
|
|
1884
1891
|
(r(), h(O, null, ne(["lt", "rt", "lb", "rb"], (d) => w("span", {
|
|
@@ -1888,11 +1895,11 @@ const je = {
|
|
|
1888
1895
|
"data-xine": F(L).point + d
|
|
1889
1896
|
}, null, 12, ko)), 64)),
|
|
1890
1897
|
(r(!0), h(O, null, ne(o.value, (d) => (r(), h(O, { key: d }, [
|
|
1891
|
-
(r(), h(O, null, ne(["t", "b"], (
|
|
1892
|
-
key:
|
|
1898
|
+
(r(), h(O, null, ne(["t", "b"], (B) => w("span", {
|
|
1899
|
+
key: B,
|
|
1893
1900
|
class: "absolute bg-black w-8 point_item",
|
|
1894
|
-
style: Z(
|
|
1895
|
-
"data-xine": F(L).point +
|
|
1901
|
+
style: Z(i(d, B)),
|
|
1902
|
+
"data-xine": F(L).point + B
|
|
1896
1903
|
}, null, 12, xo)), 64))
|
|
1897
1904
|
], 64))), 128)),
|
|
1898
1905
|
(r(), h(O, null, ne(["l", "r"], (d) => w("span", {
|
|
@@ -1906,21 +1913,21 @@ const je = {
|
|
|
1906
1913
|
style: Z(c()),
|
|
1907
1914
|
"data-xine": F(L).page
|
|
1908
1915
|
}, [
|
|
1909
|
-
(r(!0), h(O, null, ne(
|
|
1916
|
+
(r(!0), h(O, null, ne(s.currentPage + 1, (d, B) => (r(), h("span", {
|
|
1910
1917
|
key: d,
|
|
1911
1918
|
class: "inline-block bg-black mx-2 page_item",
|
|
1912
|
-
"data-xine": F(L).page_item +
|
|
1919
|
+
"data-xine": F(L).page_item + B
|
|
1913
1920
|
}, null, 8, $o))), 128))
|
|
1914
1921
|
], 12, So),
|
|
1915
|
-
|
|
1922
|
+
s.currentPage % 2 ? A("", !0) : (r(), h("span", {
|
|
1916
1923
|
key: 0,
|
|
1917
1924
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1918
|
-
style: Z({ right: `${
|
|
1919
|
-
}, "提示:本卷" + te((n = F(
|
|
1925
|
+
style: Z({ right: `${s.padding.right - 12}px` })
|
|
1926
|
+
}, "提示:本卷" + te((n = F(Ge).find((d) => d.code === s.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
|
|
1920
1927
|
w("span", {
|
|
1921
1928
|
class: "absolute text-sm red_sheet",
|
|
1922
|
-
style: Z({ right: `${
|
|
1923
|
-
}, te(
|
|
1929
|
+
style: Z({ right: `${s.padding.bottom - 20 + 75}px`, bottom: `${s.padding.bottom - 20 - 3}px` })
|
|
1930
|
+
}, te(s.currentPage + 1) + "/" + te(s.totalPage), 5)
|
|
1924
1931
|
], 64);
|
|
1925
1932
|
};
|
|
1926
1933
|
}
|
|
@@ -1952,13 +1959,13 @@ const me = (e, t) => {
|
|
|
1952
1959
|
Oe(() => o.value, () => {
|
|
1953
1960
|
l.value = o.value;
|
|
1954
1961
|
});
|
|
1955
|
-
const
|
|
1962
|
+
const i = (n) => {
|
|
1956
1963
|
l.value = n.target.value, t("input", o.type === "number" ? parseFloat(l.value) : l.value);
|
|
1957
1964
|
}, a = (n) => {
|
|
1958
1965
|
l.value = n.target.value, t("change", o.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
|
|
1959
1966
|
l.value = o.value;
|
|
1960
1967
|
}, 400);
|
|
1961
|
-
},
|
|
1968
|
+
}, s = (n) => {
|
|
1962
1969
|
l.value = n.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value), c.value = !0;
|
|
1963
1970
|
}, y = () => {
|
|
1964
1971
|
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), c.value = !1;
|
|
@@ -1973,13 +1980,13 @@ const me = (e, t) => {
|
|
|
1973
1980
|
placeholder: n.placeholder,
|
|
1974
1981
|
maxlength: n.maxLength,
|
|
1975
1982
|
value: l.value,
|
|
1976
|
-
onInput:
|
|
1983
|
+
onInput: i,
|
|
1977
1984
|
onChange: a,
|
|
1978
|
-
onFocus:
|
|
1985
|
+
onFocus: s,
|
|
1979
1986
|
onBlur: y
|
|
1980
1987
|
}, null, 42, Fo)
|
|
1981
1988
|
]),
|
|
1982
|
-
n.unit ? (r(), h("span", Eo, te(n.unit), 1)) :
|
|
1989
|
+
n.unit ? (r(), h("span", Eo, te(n.unit), 1)) : A("", !0)
|
|
1983
1990
|
], 2));
|
|
1984
1991
|
}
|
|
1985
1992
|
}), Po = /* @__PURE__ */ se({
|
|
@@ -1990,20 +1997,20 @@ const me = (e, t) => {
|
|
|
1990
1997
|
},
|
|
1991
1998
|
emits: ["change"],
|
|
1992
1999
|
setup(e, { emit: t }) {
|
|
1993
|
-
const o = e, l =
|
|
2000
|
+
const o = e, l = H(() => ft[o.layout.mode][o.layout.paper]), c = H(() => ({
|
|
1994
2001
|
right: `${l.value.right + 97}px`,
|
|
1995
2002
|
bottom: `${l.value.bottom - 25}px`
|
|
1996
2003
|
}));
|
|
1997
|
-
return (
|
|
2004
|
+
return (i, a) => (r(), ee(it, {
|
|
1998
2005
|
class: "absolute w-72 text-sm",
|
|
1999
|
-
value:
|
|
2006
|
+
value: i.info.slogan,
|
|
2000
2007
|
maxLength: 12,
|
|
2001
2008
|
placeholder: "",
|
|
2002
2009
|
size: "small",
|
|
2003
2010
|
autoLine: "",
|
|
2004
2011
|
dir: "right",
|
|
2005
2012
|
style: Z(c.value),
|
|
2006
|
-
onChange: a[0] || (a[0] = (
|
|
2013
|
+
onChange: a[0] || (a[0] = (s) => t("change", { slogin: s }))
|
|
2007
2014
|
}, null, 8, ["value", "style"]));
|
|
2008
2015
|
}
|
|
2009
2016
|
}), Mo = ["width", "height"], Do = ["xlink:href"], Ao = /* @__PURE__ */ se({
|
|
@@ -2015,10 +2022,10 @@ const me = (e, t) => {
|
|
|
2015
2022
|
},
|
|
2016
2023
|
emits: ["click"],
|
|
2017
2024
|
setup(e, { emit: t }) {
|
|
2018
|
-
const o = e, l =
|
|
2019
|
-
return (c,
|
|
2025
|
+
const o = e, l = H(() => `#icon-${o.name}`);
|
|
2026
|
+
return (c, i) => (r(), h("span", {
|
|
2020
2027
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
2021
|
-
onClick:
|
|
2028
|
+
onClick: i[0] || (i[0] = (a) => t("click"))
|
|
2022
2029
|
}, [
|
|
2023
2030
|
(r(), h("svg", {
|
|
2024
2031
|
width: c.width + "rem",
|
|
@@ -2048,11 +2055,11 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2048
2055
|
class: "px-0 py-0"
|
|
2049
2056
|
}),
|
|
2050
2057
|
et("启用前")
|
|
2051
|
-
])) :
|
|
2058
|
+
])) : A("", !0),
|
|
2052
2059
|
w("p", Oo, "ID:" + te(t.code), 1)
|
|
2053
2060
|
]));
|
|
2054
2061
|
}
|
|
2055
|
-
}),
|
|
2062
|
+
}), Ro = ["innerHTML"], Re = /* @__PURE__ */ se({
|
|
2056
2063
|
__name: "index",
|
|
2057
2064
|
props: {
|
|
2058
2065
|
value: {},
|
|
@@ -2064,13 +2071,13 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2064
2071
|
const o = e, l = (c) => {
|
|
2065
2072
|
t("change", c.target.innerHTML, o.name);
|
|
2066
2073
|
};
|
|
2067
|
-
return (c,
|
|
2074
|
+
return (c, i) => (r(), h("div", {
|
|
2068
2075
|
innerHTML: c.value,
|
|
2069
2076
|
contenteditable: "",
|
|
2070
2077
|
onBlur: l
|
|
2071
|
-
}, null, 40,
|
|
2078
|
+
}, null, 40, Ro));
|
|
2072
2079
|
}
|
|
2073
|
-
}),
|
|
2080
|
+
}), Ho = { class: "flex w-full" }, Wo = ["src", "data-xine"], Go = { class: "flex-1 mx-4" }, Qo = { class: "flex items-center justify-center flex-wrap" }, qo = {
|
|
2074
2081
|
key: 0,
|
|
2075
2082
|
class: "flex mx-4 min-w-[70px]"
|
|
2076
2083
|
}, Yo = /* @__PURE__ */ w("span", { class: "flex-shrink-0" }, "范围:", -1), Ko = {
|
|
@@ -2095,8 +2102,8 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2095
2102
|
},
|
|
2096
2103
|
emits: ["change"],
|
|
2097
2104
|
setup(e, { emit: t }) {
|
|
2098
|
-
const o = e, l =
|
|
2099
|
-
return (a,
|
|
2105
|
+
const o = e, l = H(() => o.data.filter((a) => ![ke.another, ke.another_choice, ke.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, s) => a + s, 0)), c = H(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, s) => a + s, 0)), i = H(() => o.layout.scoreAddStars === st.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2106
|
+
return (a, s) => (r(), h("div", Ho, [
|
|
2100
2107
|
w("img", {
|
|
2101
2108
|
src: a.info.qrCode,
|
|
2102
2109
|
alt: "QRCode",
|
|
@@ -2104,28 +2111,28 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2104
2111
|
"data-xine": F(L).art_code
|
|
2105
2112
|
}, null, 8, Wo),
|
|
2106
2113
|
w("div", Go, [
|
|
2107
|
-
le(
|
|
2114
|
+
le(Re, {
|
|
2108
2115
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2109
2116
|
value: a.info.title,
|
|
2110
2117
|
style: Z(a.fontConfig.titleStyle),
|
|
2111
|
-
onChange:
|
|
2118
|
+
onChange: s[0] || (s[0] = (y) => t("change", { title: y }))
|
|
2112
2119
|
}, null, 8, ["value", "style"]),
|
|
2113
|
-
a.layout.secTitleFlag ? (r(), ee(
|
|
2120
|
+
a.layout.secTitleFlag ? (r(), ee(Re, {
|
|
2114
2121
|
key: 0,
|
|
2115
2122
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2116
2123
|
value: a.info.secTitle,
|
|
2117
2124
|
style: Z(a.fontConfig.halfTitleStyle),
|
|
2118
|
-
onChange:
|
|
2119
|
-
}, null, 8, ["value", "style"])) :
|
|
2125
|
+
onChange: s[1] || (s[1] = (y) => t("change", { secTitle: y }))
|
|
2126
|
+
}, null, 8, ["value", "style"])) : A("", !0),
|
|
2120
2127
|
w("div", Qo, [
|
|
2121
2128
|
a.layout.examExtentFlag ? (r(), h("p", qo, [
|
|
2122
2129
|
Yo,
|
|
2123
|
-
le(
|
|
2130
|
+
le(Re, {
|
|
2124
2131
|
class: "flex-1",
|
|
2125
2132
|
value: a.info.extent,
|
|
2126
|
-
onChange:
|
|
2133
|
+
onChange: s[2] || (s[2] = (y) => t("change", { extent: y }))
|
|
2127
2134
|
}, null, 8, ["value"])
|
|
2128
|
-
])) :
|
|
2135
|
+
])) : A("", !0),
|
|
2129
2136
|
a.layout.examTimeFlag ? (r(), h("p", Ko, [
|
|
2130
2137
|
Uo,
|
|
2131
2138
|
le(it, {
|
|
@@ -2135,63 +2142,63 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2135
2142
|
autoLine: "",
|
|
2136
2143
|
size: "small",
|
|
2137
2144
|
placeholder: "",
|
|
2138
|
-
onChange:
|
|
2145
|
+
onChange: s[3] || (s[3] = (y) => t("change", { time: y }))
|
|
2139
2146
|
}, null, 8, ["value"]),
|
|
2140
2147
|
Vo
|
|
2141
|
-
])) :
|
|
2148
|
+
])) : A("", !0),
|
|
2142
2149
|
a.layout.authorFlag ? (r(), h("p", jo, [
|
|
2143
2150
|
Xo,
|
|
2144
|
-
le(
|
|
2151
|
+
le(Re, {
|
|
2145
2152
|
class: "flex-1",
|
|
2146
2153
|
value: a.info.author,
|
|
2147
|
-
onChange:
|
|
2154
|
+
onChange: s[4] || (s[4] = (y) => t("change", { author: y }))
|
|
2148
2155
|
}, null, 8, ["value"])
|
|
2149
|
-
])) :
|
|
2156
|
+
])) : A("", !0),
|
|
2150
2157
|
a.layout.reviewerFlag ? (r(), h("p", Jo, [
|
|
2151
2158
|
Zo,
|
|
2152
|
-
le(
|
|
2159
|
+
le(Re, {
|
|
2153
2160
|
class: "flex-1",
|
|
2154
2161
|
value: a.info.reviewer,
|
|
2155
|
-
onChange:
|
|
2162
|
+
onChange: s[5] || (s[5] = (y) => t("change", { reviewer: y }))
|
|
2156
2163
|
}, null, 8, ["value"])
|
|
2157
|
-
])) :
|
|
2164
|
+
])) : A("", !0),
|
|
2158
2165
|
a.layout.totalScoreFlag ? (r(), h("p", ea, [
|
|
2159
2166
|
ta,
|
|
2160
|
-
|
|
2167
|
+
i.value ? (r(), ee(ge, {
|
|
2161
2168
|
key: 0,
|
|
2162
|
-
name:
|
|
2169
|
+
name: i.value,
|
|
2163
2170
|
class: "p-0 -translate-y-[1px]"
|
|
2164
2171
|
}, null, 8, ["name"])) : (r(), h("span", oa, "分")),
|
|
2165
2172
|
w("span", null, ":" + te(l.value + (a.layout.writeScoreFlag ? a.info.writeScore : 0)), 1),
|
|
2166
|
-
|
|
2173
|
+
i.value ? (r(), ee(ge, {
|
|
2167
2174
|
key: 2,
|
|
2168
|
-
name:
|
|
2175
|
+
name: i.value,
|
|
2169
2176
|
class: "p-0 -translate-y-[1px]"
|
|
2170
2177
|
}, null, 8, ["name"])) : (r(), h("span", aa, "分")),
|
|
2171
2178
|
a.layout.writeScoreFlag ? (r(), h(O, { key: 4 }, [
|
|
2172
2179
|
w("span", null, "(试题" + te(l.value), 1),
|
|
2173
|
-
|
|
2180
|
+
i.value ? (r(), ee(ge, {
|
|
2174
2181
|
key: 0,
|
|
2175
|
-
name:
|
|
2182
|
+
name: i.value,
|
|
2176
2183
|
class: "p-0 -translate-y-[1px]"
|
|
2177
2184
|
}, null, 8, ["name"])) : (r(), h("span", la, "分")),
|
|
2178
2185
|
w("span", null, "+卷面" + te(a.info.writeScore || 0), 1),
|
|
2179
|
-
|
|
2186
|
+
i.value ? (r(), ee(ge, {
|
|
2180
2187
|
key: 2,
|
|
2181
|
-
name:
|
|
2188
|
+
name: i.value,
|
|
2182
2189
|
class: "p-0 -translate-y-[1px]"
|
|
2183
2190
|
}, null, 8, ["name"])) : (r(), h("span", na, "分")),
|
|
2184
2191
|
sa
|
|
2185
|
-
], 64)) :
|
|
2192
|
+
], 64)) : A("", !0),
|
|
2186
2193
|
c.value ? (r(), h(O, { key: 5 }, [
|
|
2187
2194
|
w("span", null, ";附加题:" + te(c.value), 1),
|
|
2188
|
-
|
|
2195
|
+
i.value ? (r(), ee(ge, {
|
|
2189
2196
|
key: 0,
|
|
2190
|
-
name:
|
|
2197
|
+
name: i.value,
|
|
2191
2198
|
class: "p-0 -translate-y-[1px]"
|
|
2192
2199
|
}, null, 8, ["name"])) : (r(), h("span", ia, "分"))
|
|
2193
|
-
], 64)) :
|
|
2194
|
-
])) :
|
|
2200
|
+
], 64)) : A("", !0)
|
|
2201
|
+
])) : A("", !0)
|
|
2195
2202
|
])
|
|
2196
2203
|
])
|
|
2197
2204
|
]));
|
|
@@ -2208,17 +2215,17 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2208
2215
|
return (l, c) => (r(), h("ul", {
|
|
2209
2216
|
class: oe(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2210
2217
|
}, [
|
|
2211
|
-
(r(), h(O, null, ne(o, (
|
|
2212
|
-
key:
|
|
2218
|
+
(r(), h(O, null, ne(o, (i, a) => w("li", {
|
|
2219
|
+
key: i,
|
|
2213
2220
|
class: oe(["flex flex-1 min-w-[12rem]", l.isRow && a && "ml-2"])
|
|
2214
2221
|
}, [
|
|
2215
2222
|
le(it, {
|
|
2216
|
-
value: l.extent[
|
|
2223
|
+
value: l.extent[i],
|
|
2217
2224
|
class: "px-0",
|
|
2218
2225
|
placeholder: "",
|
|
2219
2226
|
maxLength: 80,
|
|
2220
2227
|
autoLine: "",
|
|
2221
|
-
onChange: (
|
|
2228
|
+
onChange: (s) => t("change", { [i]: s })
|
|
2222
2229
|
}, null, 8, ["value", "onChange"])
|
|
2223
2230
|
], 2)), 64))
|
|
2224
2231
|
], 2));
|
|
@@ -2246,11 +2253,11 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2246
2253
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2247
2254
|
"data-xine": F(L).en_num_group
|
|
2248
2255
|
}, [
|
|
2249
|
-
(r(), h(O, null, ne(10, (
|
|
2250
|
-
key:
|
|
2256
|
+
(r(), h(O, null, ne(10, (i) => w("span", {
|
|
2257
|
+
key: i,
|
|
2251
2258
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2252
2259
|
"data-xine": F(L).en_num_item
|
|
2253
|
-
}, te(
|
|
2260
|
+
}, te(i - 1), 9, pa)), 64))
|
|
2254
2261
|
], 8, ha)), 64))
|
|
2255
2262
|
], 8, ua)
|
|
2256
2263
|
], 8, ca));
|
|
@@ -2279,11 +2286,11 @@ const ya = /* @__PURE__ */ me(ma, [["__scopeId", "data-v-91b25fab"]]), _a = ["da
|
|
|
2279
2286
|
class: oe(["flex-1 flex items-center text-0 px-1", c && "border-t"]),
|
|
2280
2287
|
"data-xine": F(L).en_num_group
|
|
2281
2288
|
}, [
|
|
2282
|
-
(r(), h(O, null, ne(10, (
|
|
2283
|
-
key:
|
|
2289
|
+
(r(), h(O, null, ne(10, (i) => w("span", {
|
|
2290
|
+
key: i,
|
|
2284
2291
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2285
2292
|
"data-xine": F(L).en_num_item
|
|
2286
|
-
}, te(
|
|
2293
|
+
}, te(i - 1), 9, va)), 64))
|
|
2287
2294
|
], 10, ba)), 64))
|
|
2288
2295
|
], 8, ga)
|
|
2289
2296
|
], 8, _a));
|
|
@@ -2301,22 +2308,22 @@ const zt = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2301
2308
|
return (l, c) => (r(), h("ul", {
|
|
2302
2309
|
class: oe(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2303
2310
|
}, [
|
|
2304
|
-
(r(), h(O, null, ne(o, (
|
|
2305
|
-
key:
|
|
2311
|
+
(r(), h(O, null, ne(o, (i, a) => w("li", {
|
|
2312
|
+
key: i,
|
|
2306
2313
|
class: oe(["flex flex-1", l.isRow && a && "ml-2"])
|
|
2307
2314
|
}, [
|
|
2308
2315
|
le(it, {
|
|
2309
|
-
value: l.extent[
|
|
2316
|
+
value: l.extent[i],
|
|
2310
2317
|
class: "px-0",
|
|
2311
2318
|
placeholder: "",
|
|
2312
2319
|
maxLength: 80,
|
|
2313
2320
|
autoLine: "",
|
|
2314
|
-
onChange: (
|
|
2321
|
+
onChange: (s) => t("change", { [i]: s })
|
|
2315
2322
|
}, null, 8, ["value", "onChange"])
|
|
2316
2323
|
], 2)), 64))
|
|
2317
2324
|
], 2));
|
|
2318
2325
|
}
|
|
2319
|
-
}), xa = (e) => (
|
|
2326
|
+
}), xa = (e) => (qe("data-v-4d37cd56"), e = e(), Ye(), e), Ca = ["data-xine"], Sa = /* @__PURE__ */ xa(() => /* @__PURE__ */ w("span", { class: "font-bold tips" }, "贴条码区域", -1)), $a = [
|
|
2320
2327
|
Sa
|
|
2321
2328
|
], Ta = /* @__PURE__ */ se({
|
|
2322
2329
|
__name: "examInfo",
|
|
@@ -2327,37 +2334,37 @@ const zt = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2327
2334
|
},
|
|
2328
2335
|
emits: ["change"],
|
|
2329
2336
|
setup(e, { emit: t }) {
|
|
2330
|
-
const o = e, l =
|
|
2331
|
-
return (a,
|
|
2337
|
+
const o = e, l = H(() => o.layout.seatType === xe.none || !o.layout.seatBar), c = H(() => o.layout.column >= 3 && l.value), i = H(() => o.layout.column >= 3 && o.layout.seatType !== xe.none && o.layout.seatBar);
|
|
2338
|
+
return (a, s) => a.isBindFlag ? A("", !0) : (r(), h("div", {
|
|
2332
2339
|
key: 0,
|
|
2333
|
-
class: oe(["flex justify-between", (
|
|
2340
|
+
class: oe(["flex justify-between", (i.value || c.value) && "flex-wrap"])
|
|
2334
2341
|
}, [
|
|
2335
2342
|
c.value ? (r(), ee(Tt, {
|
|
2336
2343
|
key: 0,
|
|
2337
2344
|
isRow: "",
|
|
2338
2345
|
extent: a.info.extentInfo,
|
|
2339
|
-
onChange:
|
|
2340
|
-
}, null, 8, ["extent"])) :
|
|
2346
|
+
onChange: s[0] || (s[0] = (y) => t("change", y))
|
|
2347
|
+
}, null, 8, ["extent"])) : A("", !0),
|
|
2341
2348
|
le(ka, {
|
|
2342
|
-
isRow:
|
|
2349
|
+
isRow: i.value,
|
|
2343
2350
|
extent: a.info.extentInfo,
|
|
2344
|
-
onChange:
|
|
2351
|
+
onChange: s[1] || (s[1] = (y) => t("change", y))
|
|
2345
2352
|
}, null, 8, ["isRow", "extent"]),
|
|
2346
2353
|
!c.value && l.value ? (r(), ee(Tt, {
|
|
2347
2354
|
key: 1,
|
|
2348
2355
|
extent: a.info.extentInfo,
|
|
2349
|
-
onChange:
|
|
2350
|
-
}, null, 8, ["extent"])) :
|
|
2351
|
-
a.layout.seatType === F(xe).seat ? (r(), ee(ya, { key: 2 })) : a.layout.seatType === F(xe).shortId ? (r(), ee(zt, { key: 3 })) :
|
|
2356
|
+
onChange: s[2] || (s[2] = (y) => t("change", y))
|
|
2357
|
+
}, null, 8, ["extent"])) : A("", !0),
|
|
2358
|
+
a.layout.seatType === F(xe).seat ? (r(), ee(ya, { key: 2 })) : a.layout.seatType === F(xe).shortId ? (r(), ee(zt, { key: 3 })) : A("", !0),
|
|
2352
2359
|
a.layout.seatBar ? (r(), h("div", {
|
|
2353
2360
|
key: 4,
|
|
2354
2361
|
class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
|
|
2355
2362
|
"data-xine": F(L).en_code
|
|
2356
|
-
}, $a, 8, Ca)) :
|
|
2363
|
+
}, $a, 8, Ca)) : A("", !0)
|
|
2357
2364
|
], 2));
|
|
2358
2365
|
}
|
|
2359
2366
|
});
|
|
2360
|
-
const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (
|
|
2367
|
+
const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (qe("data-v-936c144e"), e = e(), Ye(), e), La = {
|
|
2361
2368
|
key: 0,
|
|
2362
2369
|
class: "flex border mt-2 red_sheet"
|
|
2363
2370
|
}, Fa = /* @__PURE__ */ ze(() => /* @__PURE__ */ w("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Ea = { class: "flex-1 overflow-hidden" }, Pa = { class: "flex items-center flex-1 pl-2" }, Ma = /* @__PURE__ */ ze(() => /* @__PURE__ */ w("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), Da = { class: "flex items-center justify-center text-black" }, Aa = ["data-xine"], Ba = /* @__PURE__ */ ze(() => /* @__PURE__ */ w("span", null, "[", -1)), Na = /* @__PURE__ */ ze(() => /* @__PURE__ */ w("span", { class: "ml-4" }, "]", -1)), Oa = [
|
|
@@ -2366,14 +2373,14 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2366
2373
|
], za = /* @__PURE__ */ ze(() => /* @__PURE__ */ w("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2367
2374
|
/* @__PURE__ */ w("span", null, "正确填涂示例"),
|
|
2368
2375
|
/* @__PURE__ */ w("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2369
|
-
], -1)),
|
|
2376
|
+
], -1)), Ra = /* @__PURE__ */ ze(() => /* @__PURE__ */ w("div", { class: "h-2" }, null, -1)), Ha = /* @__PURE__ */ se({
|
|
2370
2377
|
__name: "notice",
|
|
2371
2378
|
props: {
|
|
2372
2379
|
layout: {},
|
|
2373
2380
|
isBindFlag: { type: Boolean }
|
|
2374
2381
|
},
|
|
2375
2382
|
setup(e) {
|
|
2376
|
-
const t = e, o =
|
|
2383
|
+
const t = e, o = H(() => {
|
|
2377
2384
|
const l = {
|
|
2378
2385
|
[xe.none]: "",
|
|
2379
2386
|
[xe.seat]: "座位号或",
|
|
@@ -2390,12 +2397,12 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2390
2397
|
l.layout.noteFlag ? (r(), h("div", La, [
|
|
2391
2398
|
Fa,
|
|
2392
2399
|
w("div", Ea, [
|
|
2393
|
-
(r(!0), h(O, null, ne(o.value, (
|
|
2394
|
-
key:
|
|
2400
|
+
(r(!0), h(O, null, ne(o.value, (i) => (r(), h("p", {
|
|
2401
|
+
key: i,
|
|
2395
2402
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2396
|
-
}, te(
|
|
2403
|
+
}, te(i), 1))), 128))
|
|
2397
2404
|
])
|
|
2398
|
-
])) :
|
|
2405
|
+
])) : A("", !0),
|
|
2399
2406
|
l.layout.lackFlag ? (r(), h("div", {
|
|
2400
2407
|
key: 1,
|
|
2401
2408
|
class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
@@ -2411,25 +2418,25 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2411
2418
|
])
|
|
2412
2419
|
]),
|
|
2413
2420
|
za
|
|
2414
|
-
], 2)) :
|
|
2415
|
-
|
|
2421
|
+
], 2)) : A("", !0),
|
|
2422
|
+
Ra
|
|
2416
2423
|
], 64));
|
|
2417
2424
|
}
|
|
2418
2425
|
});
|
|
2419
|
-
const Wa = /* @__PURE__ */ me(
|
|
2426
|
+
const Wa = /* @__PURE__ */ me(Ha, [["__scopeId", "data-v-936c144e"]]), pt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Ga = (e, t = "", o = !0, l = "children") => {
|
|
2420
2427
|
let c = [];
|
|
2421
|
-
const
|
|
2422
|
-
(a[l] || []).length ? (o && c.push(t ? a[t] : a[l]), a[l].forEach((
|
|
2428
|
+
const i = (a) => {
|
|
2429
|
+
(a[l] || []).length ? (o && c.push(t ? a[t] : a[l]), a[l].forEach((s) => i(s))) : c.push(t ? a[t] : a);
|
|
2423
2430
|
};
|
|
2424
|
-
return e.forEach((a) =>
|
|
2431
|
+
return e.forEach((a) => i(a)), c.flat(5);
|
|
2425
2432
|
};
|
|
2426
|
-
function
|
|
2433
|
+
function Rt(e) {
|
|
2427
2434
|
if (e < 0 || e > 99)
|
|
2428
2435
|
throw Error("下标超限");
|
|
2429
2436
|
const t = "零一二三四五六七八九".split("");
|
|
2430
2437
|
return [...Array(100)].map((l, c) => {
|
|
2431
|
-
const
|
|
2432
|
-
return
|
|
2438
|
+
const i = Math.floor(c / t.length), a = c % t.length;
|
|
2439
|
+
return i ? `${i > 1 ? t[i] : ""}十${a ? t[a] : ""}` : t[a];
|
|
2433
2440
|
})[e + 1];
|
|
2434
2441
|
}
|
|
2435
2442
|
function It(e) {
|
|
@@ -2451,18 +2458,18 @@ const Qa = {
|
|
|
2451
2458
|
data: {}
|
|
2452
2459
|
},
|
|
2453
2460
|
setup(e) {
|
|
2454
|
-
const t = e, o =
|
|
2461
|
+
const t = e, o = H(() => t.data.filter((l) => l.problemType));
|
|
2455
2462
|
return (l, c) => l.layout.scoreFlag ? (r(), h("ul", Qa, [
|
|
2456
2463
|
qa,
|
|
2457
|
-
(r(!0), h(O, null, ne(o.value, (
|
|
2458
|
-
key:
|
|
2464
|
+
(r(!0), h(O, null, ne(o.value, (i, a) => (r(), h("li", {
|
|
2465
|
+
key: i.id,
|
|
2459
2466
|
class: "flex-1 flex flex-col border-l"
|
|
2460
2467
|
}, [
|
|
2461
|
-
w("p", Ya, te(F(
|
|
2468
|
+
w("p", Ya, te(F(Rt)(a)), 1),
|
|
2462
2469
|
Ka
|
|
2463
2470
|
]))), 128)),
|
|
2464
2471
|
Ua
|
|
2465
|
-
])) :
|
|
2472
|
+
])) : A("", !0);
|
|
2466
2473
|
}
|
|
2467
2474
|
}), ja = /* @__PURE__ */ se({
|
|
2468
2475
|
__name: "columnDom",
|
|
@@ -2475,31 +2482,31 @@ const Qa = {
|
|
|
2475
2482
|
setup(e, { expose: t }) {
|
|
2476
2483
|
const o = e, l = U(), c = U();
|
|
2477
2484
|
t({ col: l, colView: c });
|
|
2478
|
-
const
|
|
2479
|
-
const { top: y, width: n, height: d, left:
|
|
2485
|
+
const i = H(() => {
|
|
2486
|
+
const { top: y, width: n, height: d, left: B } = o.styleInfo;
|
|
2480
2487
|
return {
|
|
2481
2488
|
top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
|
|
2482
|
-
left: `${parseFloat(
|
|
2489
|
+
left: `${parseFloat(B) - Le.left}px`,
|
|
2483
2490
|
width: `${parseFloat(n) + Le.left + Le.right}px`,
|
|
2484
2491
|
height: `${parseFloat(d) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
|
|
2485
2492
|
};
|
|
2486
|
-
}), a =
|
|
2493
|
+
}), a = H(() => ({
|
|
2487
2494
|
left: `${Le.left - 1}px`,
|
|
2488
2495
|
top: `${Le.top - 1}px`,
|
|
2489
2496
|
bottom: `${Le.bottom - 1}px`,
|
|
2490
2497
|
right: `${Le.right - 1}px`
|
|
2491
|
-
})),
|
|
2498
|
+
})), s = H(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2492
2499
|
return (y, n) => (r(), h(O, null, [
|
|
2493
2500
|
y.showColBorder ? (r(), h("div", {
|
|
2494
2501
|
key: 0,
|
|
2495
|
-
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet",
|
|
2496
|
-
style: Z(
|
|
2502
|
+
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
|
|
2503
|
+
style: Z(i.value)
|
|
2497
2504
|
}, [
|
|
2498
2505
|
w("span", {
|
|
2499
2506
|
class: "absolute border border-black",
|
|
2500
2507
|
style: Z(a.value)
|
|
2501
2508
|
}, null, 4)
|
|
2502
|
-
], 6)) :
|
|
2509
|
+
], 6)) : A("", !0),
|
|
2503
2510
|
w("div", {
|
|
2504
2511
|
class: "absolute overflow-hidden",
|
|
2505
2512
|
ref_key: "colView",
|
|
@@ -2518,7 +2525,7 @@ const Qa = {
|
|
|
2518
2525
|
], 64));
|
|
2519
2526
|
}
|
|
2520
2527
|
});
|
|
2521
|
-
const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e) => (
|
|
2528
|
+
const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e) => (qe("data-v-531dbd62"), e = e(), Ye(), e), Za = { class: "flex-1 flex items-center flex-wrap relative" }, el = {
|
|
2522
2529
|
key: 0,
|
|
2523
2530
|
class: "flex-1 mr-4 mb-4 min-w-[30%] max-w-[35%]"
|
|
2524
2531
|
}, tl = ["data-xine"], ol = /* @__PURE__ */ Ja(() => /* @__PURE__ */ w("span", null, "贴条码区域", -1)), al = [
|
|
@@ -2552,8 +2559,8 @@ const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e)
|
|
|
2552
2559
|
style: Z({ width: `${o.height - 20}px` })
|
|
2553
2560
|
}, [
|
|
2554
2561
|
w("div", Za, [
|
|
2555
|
-
(r(!0), h(O, null, ne(o.bindInfo, (c,
|
|
2556
|
-
|
|
2562
|
+
(r(!0), h(O, null, ne(o.bindInfo, (c, i) => (r(), h(O, { key: c }, [
|
|
2563
|
+
i === 2 && o.bindInfo.length === 5 ? (r(), h("span", el)) : A("", !0),
|
|
2557
2564
|
w("span", {
|
|
2558
2565
|
class: oe(["flex-1 whitespace-nowrap w-20 mr-4 mt-8 overflow-hidden", o.bindInfo.length === 4 && "min-w-[40%] max-w-[50%]", o.bindInfo.length === 5 && "min-w-[30%] max-w-[35%]"])
|
|
2559
2566
|
}, te(c), 3)
|
|
@@ -2566,12 +2573,12 @@ const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e)
|
|
|
2566
2573
|
}, al, 8, tl)) : o.bindSeatType === F(xe).shortId ? (r(), ee(zt, {
|
|
2567
2574
|
key: 1,
|
|
2568
2575
|
class: "h-40"
|
|
2569
|
-
})) :
|
|
2576
|
+
})) : A("", !0),
|
|
2570
2577
|
w("span", {
|
|
2571
2578
|
"data-xine": F(L).bind_line
|
|
2572
2579
|
}, null, 8, ll)
|
|
2573
2580
|
], 4))
|
|
2574
|
-
], 6)) :
|
|
2581
|
+
], 6)) : A("", !0);
|
|
2575
2582
|
}
|
|
2576
2583
|
});
|
|
2577
2584
|
const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5jdmxyN28zYWRl", il = "YWNhdnN2cmIydmcZm", Ae = "MC4wYWx1ZXJvcWhm", Lt = "MC5sZGN2NzJ0ZXE0bw", bt = "MC5yYjk3NGY2OTcyOA", vt = "MC42cWRzbGM0c21jbw", rl = "MC45amVuM25vajRk", cl = "MC44YjJkb212djRu", dl = ["img", "table", "svg"], ul = ["data-block", "data-xine"], hl = ["data-xine"], pl = ["data-xine"], ml = { class: "absolute opacity-0 pointer-events-none" }, yl = /* @__PURE__ */ se({
|
|
@@ -2581,11 +2588,11 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2581
2588
|
layout: {}
|
|
2582
2589
|
},
|
|
2583
2590
|
setup(e) {
|
|
2584
|
-
const t = e, o = ["right", "half_right", "wrong"], l =
|
|
2591
|
+
const t = e, o = ["right", "half_right", "wrong"], l = H(() => {
|
|
2585
2592
|
const c = t.item.score;
|
|
2586
2593
|
return [c, Math.round(c / 2 * 100) / 100, 0];
|
|
2587
2594
|
});
|
|
2588
|
-
return (c,
|
|
2595
|
+
return (c, i) => (r(), h("div", {
|
|
2589
2596
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2590
2597
|
"data-block": F(Se),
|
|
2591
2598
|
"data-xine": F(L).score
|
|
@@ -2594,7 +2601,7 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2594
2601
|
class: "flex h-full divide-x divide-solid",
|
|
2595
2602
|
"data-xine": F(L).score_base
|
|
2596
2603
|
}, [
|
|
2597
|
-
(r(!0), h(O, null, ne(l.value, (a,
|
|
2604
|
+
(r(!0), h(O, null, ne(l.value, (a, s) => (r(), h("li", {
|
|
2598
2605
|
class: "flex items-center justify-center relative score_line",
|
|
2599
2606
|
style: Z({ width: `${F(at)[c.layout.scoreLineSize].value}px` }),
|
|
2600
2607
|
"data-xine": F(L).score_item
|
|
@@ -2602,7 +2609,7 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2602
2609
|
w("span", ml, te(a), 1),
|
|
2603
2610
|
le(ge, {
|
|
2604
2611
|
class: "p-0",
|
|
2605
|
-
name: o[
|
|
2612
|
+
name: o[s]
|
|
2606
2613
|
}, null, 8, ["name"])
|
|
2607
2614
|
], 12, pl))), 256))
|
|
2608
2615
|
], 8, hl)
|
|
@@ -2616,8 +2623,8 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2616
2623
|
static: { type: Boolean }
|
|
2617
2624
|
},
|
|
2618
2625
|
setup(e) {
|
|
2619
|
-
const t = e, o = U(), l = U(!1), c = U(!1),
|
|
2620
|
-
Oe(() => [t.item.score], () => y()),
|
|
2626
|
+
const t = e, o = U(), l = U(!1), c = U(!1), i = U(!1), a = U([]), s = H(() => t.layout.scoreAddStars === st.star.code);
|
|
2627
|
+
Oe(() => [t.item.score], () => y()), Ke(() => {
|
|
2621
2628
|
y();
|
|
2622
2629
|
});
|
|
2623
2630
|
const y = () => {
|
|
@@ -2626,15 +2633,15 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2626
2633
|
if (t.item.scoreLineType === ot.custom)
|
|
2627
2634
|
d = [[...t.item.customScore, 0]];
|
|
2628
2635
|
else if (t.item.scoreStep)
|
|
2629
|
-
d.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((
|
|
2636
|
+
d.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((B) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * B)).reverse());
|
|
2630
2637
|
else {
|
|
2631
|
-
const
|
|
2632
|
-
l.value =
|
|
2638
|
+
const B = o.value.offsetWidth, p = at[t.layout.scoreLineSize].value + 1;
|
|
2639
|
+
l.value = B - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (d.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((M) => M && M * 10).reverse()), d.push([...Array(10).keys()].reverse()), i.value = !0) : d.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2633
2640
|
}
|
|
2634
|
-
t.item.hasHalfScore && d.push([0.5]), a.value = d, c.value = !!d.flat().find((
|
|
2641
|
+
t.item.hasHalfScore && d.push([0.5]), a.value = d, c.value = !!d.flat().find((B) => `${B}`.length > 3);
|
|
2635
2642
|
});
|
|
2636
2643
|
}, n = (d) => t.item.hasHalfScore ? [L.score_half, L.score_base, L.score_tenbit][a.value.length - d - 1] : [L.score_base, L.score_tenbit][a.value.length - d - 1];
|
|
2637
|
-
return (d,
|
|
2644
|
+
return (d, B) => d.layout.handReadFlag ? (r(), h(O, { key: 0 }, [
|
|
2638
2645
|
d.layout.simpleScoreBarFlag && !d.static ? (r(), ee(yl, {
|
|
2639
2646
|
key: 0,
|
|
2640
2647
|
item: d.item,
|
|
@@ -2647,30 +2654,30 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2647
2654
|
"data-block": F(Se),
|
|
2648
2655
|
"data-xine": F(L).score
|
|
2649
2656
|
}, [
|
|
2650
|
-
(r(!0), h(O, null, ne(a.value, (p,
|
|
2657
|
+
(r(!0), h(O, null, ne(a.value, (p, M) => (r(), h("ul", {
|
|
2651
2658
|
class: "flex divide-x divide-solid",
|
|
2652
|
-
"data-xine": n(
|
|
2659
|
+
"data-xine": n(M)
|
|
2653
2660
|
}, [
|
|
2654
|
-
(r(!0), h(O, null, ne(p, (
|
|
2661
|
+
(r(!0), h(O, null, ne(p, (N) => (r(), h("li", {
|
|
2655
2662
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2656
2663
|
style: Z({ width: `${F(at)[d.layout.scoreLineSize].value}px` }),
|
|
2657
|
-
"data-xine":
|
|
2664
|
+
"data-xine": N.toString() ? F(L).score_item : ""
|
|
2658
2665
|
}, [
|
|
2659
2666
|
w("span", {
|
|
2660
|
-
class: oe(["whitespace-nowrap",
|
|
2661
|
-
}, te(d.layout.minusFlag &&
|
|
2662
|
-
|
|
2667
|
+
class: oe(["whitespace-nowrap", s.value && "origin-right", c.value && "scale-75"])
|
|
2668
|
+
}, te(d.layout.minusFlag && N.toString().length && !s.value ? "-" : "") + te(N), 3),
|
|
2669
|
+
s.value && N.toString().length ? (r(), ee(ge, {
|
|
2663
2670
|
key: 0,
|
|
2664
2671
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2665
2672
|
name: d.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2666
2673
|
width: c.value ? 0.9 : 1.2
|
|
2667
|
-
}, null, 8, ["name", "width"])) :
|
|
2674
|
+
}, null, 8, ["name", "width"])) : A("", !0)
|
|
2668
2675
|
], 12, gl))), 256))
|
|
2669
2676
|
], 8, fl))), 256))
|
|
2670
2677
|
], 10, _l))
|
|
2671
|
-
], 64)) :
|
|
2678
|
+
], 64)) : A("", !0);
|
|
2672
2679
|
}
|
|
2673
|
-
}),
|
|
2680
|
+
}), Ht = (e) => (qe("data-v-a8dbd3b0"), e = e(), Ye(), e), bl = ["data-xine"], vl = /* @__PURE__ */ Ht(() => /* @__PURE__ */ w("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), wl = /* @__PURE__ */ Ht(() => /* @__PURE__ */ w("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), kl = /* @__PURE__ */ se({
|
|
2674
2681
|
__name: "writeScore",
|
|
2675
2682
|
props: {
|
|
2676
2683
|
info: {},
|
|
@@ -2721,13 +2728,13 @@ const Ne = /* @__PURE__ */ me(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2721
2728
|
}, null, 8, ["data-content", "data"])
|
|
2722
2729
|
], 8, $l));
|
|
2723
2730
|
}
|
|
2724
|
-
}), Il = (e) => (
|
|
2731
|
+
}), Il = (e) => (qe("data-v-8b8ee819"), e = e(), Ye(), e), Ll = ["data-tag", "data-block"], Fl = {
|
|
2725
2732
|
key: 0,
|
|
2726
2733
|
class: "flex-shrink-0"
|
|
2727
2734
|
}, El = { key: 0 }, Pl = {
|
|
2728
2735
|
key: 1,
|
|
2729
2736
|
class: "indent-2"
|
|
2730
|
-
}, Ml = { key: 0 }, Dl = { key: 0 }, Al = { key: 1 }, Bl = ["data-block", "data-xine"], Nl = /* @__PURE__ */ Il(() => /* @__PURE__ */ w("span", null, "我选答的题目是:", -1)), Ol = { class: "flex items-center" }, zl = ["data-xine"],
|
|
2737
|
+
}, Ml = { key: 0 }, Dl = { key: 0 }, Al = { key: 1 }, Bl = ["data-block", "data-xine"], Nl = /* @__PURE__ */ Il(() => /* @__PURE__ */ w("span", null, "我选答的题目是:", -1)), Ol = { class: "flex items-center" }, zl = ["data-xine"], Rl = /* @__PURE__ */ se({
|
|
2731
2738
|
__name: "index",
|
|
2732
2739
|
props: {
|
|
2733
2740
|
item: {},
|
|
@@ -2738,58 +2745,58 @@ const Ne = /* @__PURE__ */ me(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2738
2745
|
},
|
|
2739
2746
|
emits: ["click", "dbclick"],
|
|
2740
2747
|
setup(e, { emit: t }) {
|
|
2741
|
-
const o = e, l = U(!1), c = U(),
|
|
2742
|
-
return
|
|
2748
|
+
const o = e, l = U(!1), c = U(), i = H(() => [ke.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), a = H(() => [ke.another_choice].includes(o.item.problemType)), s = H(() => [ke.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Ga(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = H(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((d) => d.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
|
|
2749
|
+
return Ke(() => {
|
|
2743
2750
|
o.isFirst && o.item.problemType && (c.value.offsetHeight / parseFloat(window.getComputedStyle(c.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
2744
2751
|
}), (n, d) => n.item.problemType ? (r(), h("div", {
|
|
2745
2752
|
key: 1,
|
|
2746
2753
|
class: oe(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
2747
|
-
onClick: d[2] || (d[2] = De((
|
|
2754
|
+
onClick: d[2] || (d[2] = De((B) => t("click", n.item), ["stop"])),
|
|
2748
2755
|
ref_key: "view",
|
|
2749
2756
|
ref: c,
|
|
2750
2757
|
"data-tag": n.item.__tag__,
|
|
2751
2758
|
"data-block": F(Se),
|
|
2752
|
-
onDblclick: d[3] || (d[3] = De((
|
|
2759
|
+
onDblclick: d[3] || (d[3] = De((B) => t("dbclick", n.item), ["stop"]))
|
|
2753
2760
|
}, [
|
|
2754
|
-
!n.layout.listIndexFlag && n.item.sub ? (r(), h("span", Fl, te(F(
|
|
2761
|
+
!n.layout.listIndexFlag && n.item.sub ? (r(), h("span", Fl, te(F(Rt)(n.item.sub - 1)) + "、", 1)) : A("", !0),
|
|
2755
2762
|
w("div", null, [
|
|
2756
2763
|
w("div", null, [
|
|
2757
2764
|
w("span", null, te(n.item.name), 1),
|
|
2758
|
-
n.item.desc ? (r(), h("span", El, "(" + te(n.item.desc) + ")", 1)) :
|
|
2759
|
-
n.layout.scoreTipFlag ? (r(), h("span", Pl, "(共" + te(
|
|
2765
|
+
n.item.desc ? (r(), h("span", El, "(" + te(n.item.desc) + ")", 1)) : A("", !0),
|
|
2766
|
+
n.layout.scoreTipFlag ? (r(), h("span", Pl, "(共" + te(s.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : A("", !0)
|
|
2760
2767
|
]),
|
|
2761
|
-
|
|
2762
|
-
|
|
2768
|
+
i.value || a.value ? (r(), h("div", Ml, [
|
|
2769
|
+
i.value ? (r(), h("p", Dl, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), h("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2763
2770
|
w("p", {
|
|
2764
2771
|
class: "flex flex-wrap",
|
|
2765
2772
|
"data-block": F(Se),
|
|
2766
2773
|
"data-xine": F(L).choice + n.item.id
|
|
2767
2774
|
}, [
|
|
2768
2775
|
Nl,
|
|
2769
|
-
(r(!0), h(O, null, ne(y.value, (
|
|
2770
|
-
w("span", null, te(
|
|
2776
|
+
(r(!0), h(O, null, ne(y.value, (B, p) => (r(), h("span", Ol, [
|
|
2777
|
+
w("span", null, te(B), 1),
|
|
2771
2778
|
w("span", {
|
|
2772
2779
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2773
2780
|
"data-xine": F(L).fill
|
|
2774
2781
|
}, null, 8, zl)
|
|
2775
2782
|
]))), 256))
|
|
2776
2783
|
], 8, Bl)
|
|
2777
|
-
])) :
|
|
2784
|
+
])) : A("", !0)
|
|
2778
2785
|
])
|
|
2779
2786
|
], 42, Ll)) : (r(), ee(Tl, {
|
|
2780
2787
|
key: 0,
|
|
2781
2788
|
class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
|
|
2782
2789
|
item: n.item,
|
|
2783
|
-
onClick: d[0] || (d[0] = De((
|
|
2784
|
-
onDblclick: d[1] || (d[1] = De((
|
|
2790
|
+
onClick: d[0] || (d[0] = De((B) => t("click", n.item), ["stop"])),
|
|
2791
|
+
onDblclick: d[1] || (d[1] = De((B) => t("dbclick", n.item), ["stop"]))
|
|
2785
2792
|
}, null, 8, ["class", "item"]));
|
|
2786
2793
|
}
|
|
2787
2794
|
});
|
|
2788
|
-
const Ft = /* @__PURE__ */ me(
|
|
2795
|
+
const Ft = /* @__PURE__ */ me(Rl, [["__scopeId", "data-v-8b8ee819"]]), Hl = {};
|
|
2789
2796
|
function Wl(e, t) {
|
|
2790
2797
|
return null;
|
|
2791
2798
|
}
|
|
2792
|
-
const Gl = /* @__PURE__ */ me(
|
|
2799
|
+
const Gl = /* @__PURE__ */ me(Hl, [["render", Wl]]), Ql = ["data-block"], ql = ["data-xine"], Yl = /* @__PURE__ */ se({
|
|
2793
2800
|
__name: "sheet",
|
|
2794
2801
|
props: {
|
|
2795
2802
|
item: {},
|
|
@@ -2827,7 +2834,7 @@ const Vl = /* @__PURE__ */ me(Kl, [["render", Ul]]), jl = ["data-block"], Xl = [
|
|
|
2827
2834
|
layout: {}
|
|
2828
2835
|
},
|
|
2829
2836
|
setup(e) {
|
|
2830
|
-
const t = e, o =
|
|
2837
|
+
const t = e, o = H(() => ({
|
|
2831
2838
|
width: `${Fe[t.layout.fillSize].value + 1}px`,
|
|
2832
2839
|
height: `${Fe[t.layout.fillSize].height + 1}px`
|
|
2833
2840
|
}));
|
|
@@ -2885,7 +2892,7 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2885
2892
|
showScoreCn: { type: Boolean }
|
|
2886
2893
|
},
|
|
2887
2894
|
setup(e) {
|
|
2888
|
-
const t = e, o =
|
|
2895
|
+
const t = e, o = H(() => t.layout.scoreAddStars === st.star.code);
|
|
2889
2896
|
return (l, c) => l.layout.handReadFlag ? (r(), h("div", {
|
|
2890
2897
|
key: 0,
|
|
2891
2898
|
class: "score_fill flex items-center",
|
|
@@ -2900,8 +2907,8 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2900
2907
|
name: "fiveArrowLine",
|
|
2901
2908
|
width: 1.2
|
|
2902
2909
|
})) : (r(), h("span", hn, "分"))
|
|
2903
|
-
])) :
|
|
2904
|
-
], 8, dn)) :
|
|
2910
|
+
])) : A("", !0)
|
|
2911
|
+
], 8, dn)) : A("", !0);
|
|
2905
2912
|
}
|
|
2906
2913
|
}), mn = ["data-xine"], yn = /* @__PURE__ */ se({
|
|
2907
2914
|
__name: "sheet",
|
|
@@ -2922,7 +2929,7 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2922
2929
|
item: o.item,
|
|
2923
2930
|
layout: o.layout,
|
|
2924
2931
|
showScoreCn: o.layout.fillScoreFlag
|
|
2925
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
2932
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : A("", !0)
|
|
2926
2933
|
], 64));
|
|
2927
2934
|
}
|
|
2928
2935
|
}), _n = {};
|
|
@@ -2940,7 +2947,7 @@ const gn = /* @__PURE__ */ me(_n, [["render", fn]]), bn = ["data-block"], vn = {
|
|
|
2940
2947
|
return (t, o) => (r(), h("div", {
|
|
2941
2948
|
class: oe(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
2942
2949
|
}, [
|
|
2943
|
-
t.item.chunk ?
|
|
2950
|
+
t.item.chunk ? A("", !0) : (r(), h("div", {
|
|
2944
2951
|
key: 0,
|
|
2945
2952
|
class: "absolute left-0 top-2 w-full flex items-center",
|
|
2946
2953
|
"data-block": F(Se)
|
|
@@ -2995,48 +3002,48 @@ function Nn(e, t) {
|
|
|
2995
3002
|
return null;
|
|
2996
3003
|
}
|
|
2997
3004
|
const On = /* @__PURE__ */ me(Bn, [["render", Nn]]), zn = {};
|
|
2998
|
-
function
|
|
3005
|
+
function Rn(e, t) {
|
|
2999
3006
|
return null;
|
|
3000
3007
|
}
|
|
3001
|
-
const
|
|
3008
|
+
const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn = ["data-block"], Qn = { class: "flex-1 flex justify-end overflow-hidden" }, qn = ["data-block", "data-size"], Yn = ["data-block"], Kn = /* @__PURE__ */ se({
|
|
3002
3009
|
__name: "sheet",
|
|
3003
3010
|
props: {
|
|
3004
3011
|
item: {},
|
|
3005
3012
|
layout: {}
|
|
3006
3013
|
},
|
|
3007
3014
|
setup(e) {
|
|
3008
|
-
const t = e, o = U(0), l = U({}), c = U(),
|
|
3009
|
-
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[u[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen,
|
|
3015
|
+
const t = e, o = U(0), l = U({}), c = U(), i = U(), a = U([]), s = H(() => {
|
|
3016
|
+
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[u[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, B.value.length, 0);
|
|
3010
3017
|
return p ? Math.ceil(p / (o.value || p)) : 0;
|
|
3011
|
-
}), y =
|
|
3018
|
+
}), y = H(() => parseInt(t.item.style[u[t.layout.mode].art_b])), n = H(() => ({
|
|
3012
3019
|
width: `${o.value * y.value}px`,
|
|
3013
3020
|
height: `${y.value}px`
|
|
3014
|
-
})), d =
|
|
3021
|
+
})), d = H(() => ({
|
|
3015
3022
|
width: `${y.value}px`
|
|
3016
|
-
})),
|
|
3017
|
-
return
|
|
3023
|
+
})), B = H(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3024
|
+
return Ke(() => {
|
|
3018
3025
|
if (!t.item.artBlock)
|
|
3019
3026
|
return;
|
|
3020
3027
|
nt(() => {
|
|
3021
3028
|
o.value = Math.floor(c.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3022
3029
|
if (!c.value)
|
|
3023
3030
|
return;
|
|
3024
|
-
const X = c.value.getBoundingClientRect(), q =
|
|
3031
|
+
const X = c.value.getBoundingClientRect(), q = i.value[0].getBoundingClientRect();
|
|
3025
3032
|
l.value = {
|
|
3026
3033
|
left: `${q.left - X.left}px`,
|
|
3027
3034
|
top: `${q.top - X.top}px`
|
|
3028
3035
|
};
|
|
3029
3036
|
}, 20);
|
|
3030
3037
|
});
|
|
3031
|
-
const p = parseInt(t.item.style[u[t.layout.mode].art_c]),
|
|
3032
|
-
a.value = [...Array(Math.min(t.item.style[u[t.layout.mode].art_d] || 1,
|
|
3033
|
-
}), (p,
|
|
3038
|
+
const p = parseInt(t.item.style[u[t.layout.mode].art_c]), M = t.item.style[u[t.layout.mode].art_e], N = Math.floor(p / M), V = Math.round(N / (t.item.style[u[t.layout.mode].art_d] || 1) - 0.01) * M;
|
|
3039
|
+
a.value = [...Array(Math.min(t.item.style[u[t.layout.mode].art_d] || 1, N) - 1 || 0).keys()].map((X) => (X + 1) * V).concat(p / M < 2 ? M : p).filter((X) => X);
|
|
3040
|
+
}), (p, M) => (r(), h("div", {
|
|
3034
3041
|
class: "w-full relative min-h-[10rem]",
|
|
3035
3042
|
ref_key: "view",
|
|
3036
3043
|
ref: c,
|
|
3037
3044
|
"data-viewid": p.item.id
|
|
3038
3045
|
}, [
|
|
3039
|
-
p.item.chunk ?
|
|
3046
|
+
p.item.chunk ? A("", !0) : (r(), h("div", {
|
|
3040
3047
|
key: 0,
|
|
3041
3048
|
class: "flex items-center mt-1 mb-4",
|
|
3042
3049
|
"data-block": F(Se)
|
|
@@ -3055,27 +3062,27 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3055
3062
|
data: p.item.beforeArt,
|
|
3056
3063
|
"data-bart": p.item.id,
|
|
3057
3064
|
class: "indent-[2em]"
|
|
3058
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
3059
|
-
(r(!0), h(O, null, ne(
|
|
3065
|
+
}, null, 8, ["data", "data-bart"])) : A("", !0),
|
|
3066
|
+
(r(!0), h(O, null, ne(s.value, (N, V) => (r(), h("p", {
|
|
3060
3067
|
ref_for: !0,
|
|
3061
3068
|
ref_key: "line",
|
|
3062
|
-
ref:
|
|
3069
|
+
ref: i,
|
|
3063
3070
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3064
3071
|
"data-block": F(Se),
|
|
3065
3072
|
"data-size": p.item.startAnswerLen + (V + 1) * o.value,
|
|
3066
3073
|
style: Z(n.value)
|
|
3067
3074
|
}, [
|
|
3068
3075
|
(r(!0), h(O, null, ne(o.value, (X, q) => (r(), h("span", {
|
|
3069
|
-
class: oe([
|
|
3076
|
+
class: oe([B.value[V * o.value + q] && "flex items-center justify-center"]),
|
|
3070
3077
|
style: Z(d.value)
|
|
3071
|
-
}, te(
|
|
3078
|
+
}, te(B.value[V * o.value + q] || ""), 7))), 256)),
|
|
3072
3079
|
(r(!0), h(O, null, ne(a.value, (X) => (r(), h(O, null, [
|
|
3073
3080
|
p.item.startAnswerLen + V * o.value < X && p.item.startAnswerLen + (V + 1) * o.value >= X ? (r(), h("span", {
|
|
3074
3081
|
key: 0,
|
|
3075
3082
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3076
3083
|
style: Z({ left: `${(X - p.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3077
3084
|
"data-block": F(Ae)
|
|
3078
|
-
}, te(X), 13, Yn)) :
|
|
3085
|
+
}, te(X), 13, Yn)) : A("", !0)
|
|
3079
3086
|
], 64))), 256))
|
|
3080
3087
|
], 12, qn))), 256)),
|
|
3081
3088
|
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), ee(Ne, {
|
|
@@ -3083,7 +3090,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3083
3090
|
data: p.item.afterArt,
|
|
3084
3091
|
"data-aart": p.item.id,
|
|
3085
3092
|
class: "mt-2 indent-[2em]"
|
|
3086
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
3093
|
+
}, null, 8, ["data", "data-aart"])) : A("", !0)
|
|
3087
3094
|
], 64)) : (r(), ee(Ne, {
|
|
3088
3095
|
key: 2,
|
|
3089
3096
|
"data-area": p.item.id,
|
|
@@ -3122,26 +3129,26 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3122
3129
|
bracketType: {}
|
|
3123
3130
|
},
|
|
3124
3131
|
setup(e) {
|
|
3125
|
-
const t = e, o =
|
|
3132
|
+
const t = e, o = H(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((a) => a.split(".")).map((a) => t.isFull ? a : a.map((s, y) => y === a.length - 1 ? s : ""))), l = H(() => t.width ? `${Math.max(t.width * 5 / 7, 1)}em` : ""), c = (i) => {
|
|
3126
3133
|
if (!t.bracketType)
|
|
3127
3134
|
return "";
|
|
3128
|
-
if (
|
|
3135
|
+
if (i === "prev")
|
|
3129
3136
|
return t.bracketType === _.bracket_cn ? "(" : "(";
|
|
3130
|
-
if (
|
|
3137
|
+
if (i === "after")
|
|
3131
3138
|
return t.bracketType === _.bracket_cn ? ")" : ")";
|
|
3132
3139
|
};
|
|
3133
|
-
return (
|
|
3134
|
-
class: oe(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]",
|
|
3140
|
+
return (i, a) => (r(), h("span", {
|
|
3141
|
+
class: oe(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", i.isFull && "justify-end"]),
|
|
3135
3142
|
style: Z({ width: l.value }),
|
|
3136
3143
|
"data-block": F(Ae)
|
|
3137
3144
|
}, [
|
|
3138
|
-
(r(!0), h(O, null, ne(o.value, (
|
|
3139
|
-
y ? (r(), h("span", Xn, " - ")) :
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3145
|
+
(r(!0), h(O, null, ne(o.value, (s, y) => (r(), h(O, null, [
|
|
3146
|
+
y ? (r(), h("span", Xn, " - ")) : A("", !0),
|
|
3147
|
+
s[0] ? (r(), h("span", Jn, te(s[0]), 1)) : A("", !0),
|
|
3148
|
+
s[1] ? (r(), h("span", Zn, "(" + te(s[1]) + ")", 1)) : A("", !0),
|
|
3149
|
+
s[2] ? (r(), h("span", es, te(s[2]), 1)) : A("", !0)
|
|
3143
3150
|
], 64))), 256)),
|
|
3144
|
-
|
|
3151
|
+
i.score ? (r(), h("span", ts, te(c("prev")) + te(i.score) + "分" + te(c("after")), 1)) : A("", !0)
|
|
3145
3152
|
], 14, jn));
|
|
3146
3153
|
}
|
|
3147
3154
|
}), as = {
|
|
@@ -3160,7 +3167,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3160
3167
|
mixSheet: Pn,
|
|
3161
3168
|
synthesis: An,
|
|
3162
3169
|
synthesisSheet: On,
|
|
3163
|
-
art:
|
|
3170
|
+
art: Hn,
|
|
3164
3171
|
artSheet: Kn,
|
|
3165
3172
|
notArea: Vn,
|
|
3166
3173
|
Sub: os
|
|
@@ -3192,7 +3199,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3192
3199
|
dbclick: null
|
|
3193
3200
|
},
|
|
3194
3201
|
setup(e, { emit: t }) {
|
|
3195
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Dt), c = U(""),
|
|
3202
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Dt), c = U(""), i = H(() => {
|
|
3196
3203
|
const b = o ? {
|
|
3197
3204
|
choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
3198
3205
|
fillSheet: [m.fill, m.fill_english]
|
|
@@ -3200,69 +3207,69 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3200
3207
|
choice: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
3201
3208
|
fill: [m.fill, m.fill_english]
|
|
3202
3209
|
};
|
|
3203
|
-
return Object.keys(m).reduce(($, T) => ({ ...$, [m[T]]: Object.keys(b).find((
|
|
3204
|
-
}), a =
|
|
3210
|
+
return Object.keys(m).reduce(($, T) => ({ ...$, [m[T]]: Object.keys(b).find((R) => b[R].includes(m[T])) || `${T}${o}` }), {});
|
|
3211
|
+
}), a = H(() => [ke.one_choice, ke.another_choice].includes(e.data.problemType)), s = H(() => {
|
|
3205
3212
|
let b = [];
|
|
3206
3213
|
e.data.children.forEach((T) => {
|
|
3207
|
-
let
|
|
3208
|
-
((T.polymerId || l.includes(e.data.problemType)) && l.includes(T.problemType) || [
|
|
3214
|
+
let R = b[b.length - 1];
|
|
3215
|
+
((T.polymerId || l.includes(e.data.problemType)) && l.includes(T.problemType) || [We.fill, We.fill_english].includes(e.data.problemType) && e.data.style[u[e.layout.mode].fill_g] === _.portrait) && T.style ? (!R || R.type !== "polymer" || R.polymerId !== T.polymerId) && (b.push({
|
|
3209
3216
|
type: "polymer",
|
|
3210
3217
|
problemType: T.problemType,
|
|
3211
3218
|
polymerId: T.polymerId,
|
|
3212
3219
|
styleInfo: T.polymerId ? T.style : e.data.style,
|
|
3213
3220
|
children: [],
|
|
3214
3221
|
rawChildren: e.data.rawChildren || []
|
|
3215
|
-
}),
|
|
3222
|
+
}), R = b[b.length - 1]) : (!R || R.type !== "base") && (b.push({
|
|
3216
3223
|
type: "base",
|
|
3217
3224
|
children: []
|
|
3218
|
-
}),
|
|
3225
|
+
}), R = b[b.length - 1]), R.children.push({ ...T, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3219
3226
|
});
|
|
3220
|
-
const $ = (T,
|
|
3221
|
-
let f = Math.min(Math.floor(e.width /
|
|
3227
|
+
const $ = (T, R, ce, Q, de, ae) => {
|
|
3228
|
+
let f = Math.min(Math.floor(e.width / R), ce), v = [], k = [], D = !0;
|
|
3222
3229
|
const K = (E = f) => {
|
|
3223
3230
|
v = (ae ? [...Array(E).keys()].map((W, Ce) => T.children.filter(($e, be) => be < (ae ? Q : Q * f) && be % E === Ce)).filter((W) => W.length) : [...Array(E).keys()].map((W) => T.children.slice(W * Q, (W + 1) * Q))).filter((W) => W.length).map((W) => Math.max(...W.map((Ce) => {
|
|
3224
3231
|
var $e;
|
|
3225
3232
|
return (($e = Ce.optList) == null ? void 0 : $e.length) || 0;
|
|
3226
3233
|
})));
|
|
3227
3234
|
};
|
|
3228
|
-
for (K(f), k = [...v];
|
|
3229
|
-
K(f + 1),
|
|
3235
|
+
for (K(f), k = [...v]; D && f < ce; )
|
|
3236
|
+
K(f + 1), D = f + 1 <= ce && v.reduce((E, W) => E + W, 0) * (Fe[e.layout.fillSize].value + 9) + (f + 1) * de < e.width, D && (f += 1, k = [...v]);
|
|
3230
3237
|
return { children: T.children.slice(0, ae ? Q : Q * f), col: f, colList: [...k] };
|
|
3231
3238
|
};
|
|
3232
3239
|
return b = b.map((T) => {
|
|
3233
|
-
var
|
|
3240
|
+
var R;
|
|
3234
3241
|
if (T.type === "polymer") {
|
|
3235
|
-
const ce = T.styleInfo[u[e.layout.mode].choice_b] === _.landscape, Q = T.styleInfo[u[e.layout.mode].choice_e] || 20, de = e.data.style[u[e.layout.mode].choice_d] || 10, ae = (n.value[`h${e.data.id}`] || n.value[T.polymerId] || n.value[((
|
|
3242
|
+
const ce = T.styleInfo[u[e.layout.mode].choice_b] === _.landscape, Q = T.styleInfo[u[e.layout.mode].choice_e] || 20, de = e.data.style[u[e.layout.mode].choice_d] || 10, ae = (n.value[`h${e.data.id}`] || n.value[T.polymerId] || n.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""] || 0) * 10 + 10;
|
|
3236
3243
|
if (T.styleInfo[u[e.layout.mode].choice_a] === _.choice_1) {
|
|
3237
3244
|
let f = [], v = 0;
|
|
3238
3245
|
for (; v < T.children.length; ) {
|
|
3239
|
-
const k = T.children.slice(v),
|
|
3246
|
+
const k = T.children.slice(v), D = Math.max(...k.map((E) => {
|
|
3240
3247
|
var W;
|
|
3241
3248
|
return ((W = E.optList) == null ? void 0 : W.length) || 0;
|
|
3242
|
-
})) * (Fe[e.layout.fillSize].value + 9) + ae, K = $({ ...T, children: k },
|
|
3249
|
+
})) * (Fe[e.layout.fillSize].value + 9) + ae, K = $({ ...T, children: k }, D, de, Q, ae, ce);
|
|
3243
3250
|
f.push({ ...T, groupIndex: f.length, children: K.children, col: K.col, colList: K.colList }), v = f.map((E) => E.children.length).reduce((E, W) => E + W, 0);
|
|
3244
3251
|
}
|
|
3245
3252
|
return f;
|
|
3246
3253
|
} else if (T.styleInfo[u[e.layout.mode].choice_a] === _.choice_2) {
|
|
3247
3254
|
const f = Math.max(Fe[e.layout.fillSize].value + 9, ae), v = Math.floor(e.width / (f * T.styleInfo[u[e.layout.mode].choice_c] + 10)), k = v * T.styleInfo[u[e.layout.mode].choice_c];
|
|
3248
|
-
let
|
|
3255
|
+
let D = [{ children: [], col: v }];
|
|
3249
3256
|
return T.children.forEach((K, E) => {
|
|
3250
|
-
E >= k *
|
|
3251
|
-
}),
|
|
3257
|
+
E >= k * D.length && D.push({ children: [], col: v }), D[D.length - 1].children.push(K);
|
|
3258
|
+
}), D.map((K, E) => ({ ...T, groupIndex: E, children: K.children, col: K.col, colList: [] }));
|
|
3252
3259
|
} else if (T.styleInfo[u[e.layout.mode].choice_a] === _.choice_3) {
|
|
3253
|
-
let f = [], v = 0, k = 0,
|
|
3260
|
+
let f = [], v = 0, k = 0, D = 0, K = 0;
|
|
3254
3261
|
return T.children.forEach((E) => {
|
|
3255
|
-
E.optList.length !== v && (k = E.optList.length * (Fe[e.layout.fillSize].value + 9) + ae,
|
|
3262
|
+
E.optList.length !== v && (k = E.optList.length * (Fe[e.layout.fillSize].value + 9) + ae, D = Math.min(Math.floor(e.width / k), de), K = ce ? D * 20 : D * T.styleInfo[u[e.layout.mode].choice_e], v = E.optList.length, f.push({ children: [], col: D, colList: [...Array(D).keys()].map((W) => E.optList.length) })), (!Object.values(He).includes(E.problemType) && !f.length || f[f.length - 1].children.length >= K) && f.push({ children: [], col: D, colList: [...Array(D).keys()].map((W) => E.optList.length) }), f[f.length - 1].children.push(E);
|
|
3256
3263
|
}), f.map((E, W) => ({ ...T, groupIndex: W, children: E.children, col: E.col, colList: E.colList }));
|
|
3257
3264
|
} else if ([m.fill, m.fill_english].includes(T.problemType) && T.styleInfo[u[e.layout.mode].fill_g] === _.portrait) {
|
|
3258
3265
|
const f = Math.floor(T.styleInfo[u[e.layout.mode].fill_f]) * (T.styleInfo[u[e.layout.mode].fill_h] || 10);
|
|
3259
3266
|
return [...Array(Math.ceil(T.children.length / f)).keys()].map((v, k) => ({
|
|
3260
3267
|
...T,
|
|
3261
3268
|
groupIndex: k,
|
|
3262
|
-
children: T.children.slice(k * f, (k + 1) * f).map((
|
|
3263
|
-
...
|
|
3269
|
+
children: T.children.slice(k * f, (k + 1) * f).map((D) => ({
|
|
3270
|
+
...D,
|
|
3264
3271
|
style: {
|
|
3265
|
-
...
|
|
3272
|
+
...D.style,
|
|
3266
3273
|
[u[e.layout.mode].fill_b]: !1,
|
|
3267
3274
|
[u[e.layout.mode].fill_d]: T.styleInfo[u[e.layout.mode].fill_d]
|
|
3268
3275
|
}
|
|
@@ -3273,12 +3280,12 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3273
3280
|
} else
|
|
3274
3281
|
return T;
|
|
3275
3282
|
}).flat(), b;
|
|
3276
|
-
}), y =
|
|
3283
|
+
}), y = H(() => {
|
|
3277
3284
|
let b = {};
|
|
3278
3285
|
return e.data.children.forEach(($) => {
|
|
3279
3286
|
$.polymerId && (b[$.polymerId] || (b[$.polymerId] = []), b[$.polymerId][$.polymerOrder || 0] = $.id);
|
|
3280
3287
|
}), b;
|
|
3281
|
-
}), n =
|
|
3288
|
+
}), n = H(() => {
|
|
3282
3289
|
if (l.includes(e.data.problemType)) {
|
|
3283
3290
|
const b = (e.data.rawChildren || e.data.children).map(($) => $.subStr.length);
|
|
3284
3291
|
return { [`h${e.data.id}`]: Math.max(...b) };
|
|
@@ -3297,10 +3304,10 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3297
3304
|
hoverActive: c,
|
|
3298
3305
|
ModuleTag: o,
|
|
3299
3306
|
ChoiceType: a,
|
|
3300
|
-
GroupData:
|
|
3307
|
+
GroupData: s,
|
|
3301
3308
|
PolymerData: y,
|
|
3302
3309
|
SubWidthInfo: n,
|
|
3303
|
-
ComputName: (b) => b.problemType ?
|
|
3310
|
+
ComputName: (b) => b.problemType ? i.value[b.problemType] : "notArea",
|
|
3304
3311
|
ComputAbs: (b) => o && [m.slove, m.art].includes(b.problemType),
|
|
3305
3312
|
ComputPolymerCls: (b) => [m.decide].includes(b.problemType) ? [] : b.styleInfo[u[e.layout.mode].choice_a] === _.choice_2 ? ["port_view"] : ["grid", b.groupIndex && "mt-6"],
|
|
3306
3313
|
ComputPolymerStyle: (b) => {
|
|
@@ -3316,30 +3323,30 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3316
3323
|
};
|
|
3317
3324
|
break;
|
|
3318
3325
|
}
|
|
3319
|
-
else if (Object.values(
|
|
3326
|
+
else if (Object.values(He).includes(b.problemType)) {
|
|
3320
3327
|
if (b.styleInfo[u[e.layout.mode].choice_a] === _.choice_2)
|
|
3321
3328
|
return $;
|
|
3322
|
-
let
|
|
3329
|
+
let R = [];
|
|
3323
3330
|
const ce = b.styleInfo[u[e.layout.mode].choice_b] === _.landscape, Q = b.styleInfo[u[e.layout.mode].choice_e] || 20, de = (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[((T = e.data.children[0]) == null ? void 0 : T.polymerId) || ""] || 0) * 10 + 10, ae = b.colList.map((f) => f * (Fe[e.layout.fillSize].value + 9) + de);
|
|
3324
3331
|
switch (b.styleInfo[u[e.layout.mode].choice_f]) {
|
|
3325
3332
|
case _.choice_6:
|
|
3326
|
-
|
|
3333
|
+
R = ae.map((f) => `${f}px`);
|
|
3327
3334
|
break;
|
|
3328
3335
|
case _.choice_7:
|
|
3329
3336
|
default:
|
|
3330
|
-
|
|
3337
|
+
R = ae.map((f) => `${f / Math.max(...ae)}fr`);
|
|
3331
3338
|
}
|
|
3332
3339
|
switch (b.styleInfo[u[e.layout.mode].choice_a]) {
|
|
3333
3340
|
case _.choice_1:
|
|
3334
3341
|
case _.choice_3:
|
|
3335
|
-
ce && !e.noPortrait && [...Array(Math.ceil(b.children.length / Q)).keys()].map((v) => b.children.filter((k,
|
|
3336
|
-
const k = b.children.find((
|
|
3342
|
+
ce && !e.noPortrait && [...Array(Math.ceil(b.children.length / Q)).keys()].map((v) => b.children.filter((k, D) => D >= v * Q && D < (v + 1) * Q)).map((v, k) => v.map((D, K) => ({ ...D, _grid_area_: ce ? null : pt[K] + k }))).flat(2).forEach((v) => {
|
|
3343
|
+
const k = b.children.find((D) => D.id === v.id);
|
|
3337
3344
|
k._grid_area_ = v._grid_area_;
|
|
3338
3345
|
}), $ = ce ? {
|
|
3339
|
-
"grid-template": `repeat(${Math.ceil(b.children.length / b.col)}, 1fr) / ${
|
|
3346
|
+
"grid-template": `repeat(${Math.ceil(b.children.length / b.col)}, 1fr) / ${R.join(" ")}`
|
|
3340
3347
|
} : {
|
|
3341
3348
|
"grid-auto-flow": "column",
|
|
3342
|
-
"grid-template": `repeat(${Math.min(Q, b.children.length)}, 1fr) / ${
|
|
3349
|
+
"grid-template": `repeat(${Math.min(Q, b.children.length)}, 1fr) / ${R.join(" ")}`
|
|
3343
3350
|
};
|
|
3344
3351
|
break;
|
|
3345
3352
|
}
|
|
@@ -3352,27 +3359,27 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3352
3359
|
return {
|
|
3353
3360
|
"grid-area": b._grid_area_
|
|
3354
3361
|
};
|
|
3355
|
-
if (
|
|
3356
|
-
const
|
|
3362
|
+
if (Object.values(He).includes(b.problemType) && b.style[u[e.layout.mode].choice_a] === _.choice_2) {
|
|
3363
|
+
const R = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[(T = b.children[0]) == null ? void 0 : T.polymerId] || 0) * 10 + 10), ce = Math.floor(e.width / (R * b.style[u[e.layout.mode].choice_c] + 10)), Q = (e.width - R * ce * b.style[u[e.layout.mode].choice_c]) / (ce - 1 || 1) - 1;
|
|
3357
3364
|
return !(($ + 1) % b.style[u[e.layout.mode].choice_c]) && (($ + 1) % (b.style[u[e.layout.mode].choice_c] * ce) || ce < 2) ? {
|
|
3358
|
-
"min-width": `${
|
|
3365
|
+
"min-width": `${R - 5}px`,
|
|
3359
3366
|
"margin-right": `${Q}px`
|
|
3360
3367
|
} : {
|
|
3361
|
-
"min-width": `${
|
|
3368
|
+
"min-width": `${R - 5}px`
|
|
3362
3369
|
};
|
|
3363
3370
|
}
|
|
3364
3371
|
return {};
|
|
3365
3372
|
},
|
|
3366
3373
|
ComputStyle: (b, $) => {
|
|
3367
|
-
var
|
|
3374
|
+
var R;
|
|
3368
3375
|
let T = {};
|
|
3369
3376
|
if (!o)
|
|
3370
3377
|
return T;
|
|
3371
3378
|
if (l.includes(b.problemType)) {
|
|
3372
3379
|
let ce = {};
|
|
3373
|
-
if (Object.values(
|
|
3380
|
+
if (Object.values(He).includes(e.data.problemType)) {
|
|
3374
3381
|
const Q = Math.max(.../*props.data.rawChildren || */
|
|
3375
|
-
e.data.children.map((ae) => ae.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((
|
|
3382
|
+
e.data.children.map((ae) => ae.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""] || 0) * 10 + 10, de = Math.min(Math.floor(e.width / Q), e.data.style[u[e.layout.mode].choice_d] || 10);
|
|
3376
3383
|
ce = $ % de ? { minWidth: `${Q}px`, marginLeft: `${(e.width - Q * de) / (de - 1) - 5}px` } : { minWidth: `${Q}px` };
|
|
3377
3384
|
}
|
|
3378
3385
|
T = {
|
|
@@ -3395,7 +3402,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3395
3402
|
if (o && ($.includes(b.problemType) || typeof b.groupIndex == "number"))
|
|
3396
3403
|
return Se;
|
|
3397
3404
|
},
|
|
3398
|
-
ComputItemScore: (b) => [m.slove, m.easy_slove, m.art].includes(b.problemType) && b.style[u.public.scoreShowFlag] !== _.bracket_none ? [b.score].flat(2).reduce((T,
|
|
3405
|
+
ComputItemScore: (b) => [m.slove, m.easy_slove, m.art].includes(b.problemType) && b.style[u.public.scoreShowFlag] !== _.bracket_none ? [b.score].flat(2).reduce((T, R) => T + R, 0) : null,
|
|
3399
3406
|
ComputPayload: (b, $) => {
|
|
3400
3407
|
switch (b.problemType) {
|
|
3401
3408
|
case m.slove:
|
|
@@ -3422,20 +3429,20 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3422
3429
|
};
|
|
3423
3430
|
}
|
|
3424
3431
|
}, ls = ["data-block", "data-polymer"], ns = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ss = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], is = { key: 0 };
|
|
3425
|
-
function rs(e, t, o, l, c,
|
|
3432
|
+
function rs(e, t, o, l, c, i) {
|
|
3426
3433
|
const a = Yt("Sub");
|
|
3427
|
-
return r(!0), h(O, null, ne(l.GroupData, (
|
|
3428
|
-
|
|
3434
|
+
return r(!0), h(O, null, ne(l.GroupData, (s, y) => (r(), h(O, null, [
|
|
3435
|
+
s.type === "polymer" ? (r(), h("div", {
|
|
3429
3436
|
key: 0,
|
|
3430
|
-
"data-block": l.ComputBlock(
|
|
3437
|
+
"data-block": l.ComputBlock(s),
|
|
3431
3438
|
"data-polymer": y,
|
|
3432
|
-
class: oe([...l.ComputPolymerCls(
|
|
3433
|
-
style: Z(l.ComputPolymerStyle(
|
|
3439
|
+
class: oe([...l.ComputPolymerCls(s)]),
|
|
3440
|
+
style: Z(l.ComputPolymerStyle(s))
|
|
3434
3441
|
}, [
|
|
3435
|
-
(r(!0), h(O, null, ne(
|
|
3436
|
-
var
|
|
3442
|
+
(r(!0), h(O, null, ne(s.children, (n, d) => {
|
|
3443
|
+
var B;
|
|
3437
3444
|
return r(), h("div", {
|
|
3438
|
-
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 === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3445
|
+
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 === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((B = o.target.value) == null ? void 0 : B.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3439
3446
|
style: Z(l.ComputPolymerItemStyle(n, d)),
|
|
3440
3447
|
"data-tag": n.__tag__,
|
|
3441
3448
|
"data-polymer": y,
|
|
@@ -3451,15 +3458,15 @@ function rs(e, t, o, l, c, s) {
|
|
|
3451
3458
|
isFull: !!l.ModuleTag,
|
|
3452
3459
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3453
3460
|
class: oe(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
|
|
3454
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3461
|
+
}, null, 8, ["sub", "isFull", "width", "class"])) : A("", !0),
|
|
3455
3462
|
(r(), ee(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, d) })), null, 16))
|
|
3456
3463
|
], 46, ns);
|
|
3457
3464
|
}), 256))
|
|
3458
|
-
], 14, ls)) : (r(!0), h(O, { key: 1 }, ne(
|
|
3459
|
-
var
|
|
3465
|
+
], 14, ls)) : (r(!0), h(O, { key: 1 }, ne(s.children, (n, d) => {
|
|
3466
|
+
var B;
|
|
3460
3467
|
return r(), h(O, null, [
|
|
3461
3468
|
w("div", {
|
|
3462
|
-
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 === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3469
|
+
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 === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((B = o.target.value) == null ? void 0 : B.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3463
3470
|
style: Z(l.ComputStyle(n, d)),
|
|
3464
3471
|
"data-tag": n.__tag__,
|
|
3465
3472
|
"data-block": l.ComputBlock(n),
|
|
@@ -3476,10 +3483,10 @@ function rs(e, t, o, l, c, s) {
|
|
|
3476
3483
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3477
3484
|
score: l.ComputItemScore(n),
|
|
3478
3485
|
bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3479
|
-
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) :
|
|
3486
|
+
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : A("", !0),
|
|
3480
3487
|
(r(), ee(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, d) })), {
|
|
3481
3488
|
default: Mt(() => [
|
|
3482
|
-
n.customSub ?
|
|
3489
|
+
n.customSub ? A("", !0) : (r(), ee(a, {
|
|
3483
3490
|
key: 0,
|
|
3484
3491
|
sub: n.sub,
|
|
3485
3492
|
isFull: !!l.ModuleTag,
|
|
@@ -3491,20 +3498,20 @@ function rs(e, t, o, l, c, s) {
|
|
|
3491
3498
|
_: 2
|
|
3492
3499
|
}, 1040))
|
|
3493
3500
|
], 46, ss),
|
|
3494
|
-
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), h("div", is)) :
|
|
3501
|
+
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), h("div", is)) : A("", !0)
|
|
3495
3502
|
], 64);
|
|
3496
3503
|
}), 256))
|
|
3497
3504
|
], 64))), 256);
|
|
3498
3505
|
}
|
|
3499
|
-
const
|
|
3500
|
-
const c = (e.length > 1 ? [e[0], e[e.length - 1]] : e).map((
|
|
3506
|
+
const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
3507
|
+
const c = (e.length > 1 ? [e[0], e[e.length - 1]] : e).map((s) => s.split(".")).map((s) => `${s[0] ? `<span>${s[0]}</span>` : ""}${s[1] ? `<span> - </span><span>${s[1]}</span>` : ""}${s[2] ? `<span> - </span><span class="flex items-center justify-center w-8 h-8 border rounded-full scale-75">${s[2]}</span>` : ""}`).filter((s) => s).join(""), i = (s) => {
|
|
3501
3508
|
if (!o)
|
|
3502
3509
|
return "";
|
|
3503
|
-
if (
|
|
3510
|
+
if (s === "prev")
|
|
3504
3511
|
return o === _.bracket_cn ? "(" : "(";
|
|
3505
|
-
if (
|
|
3512
|
+
if (s === "after")
|
|
3506
3513
|
return o === _.bracket_cn ? ")" : ")";
|
|
3507
|
-
}, a = t ? `<span>${
|
|
3514
|
+
}, a = t ? `<span>${i("prev")}${t}分${i("after")}</span>` : "";
|
|
3508
3515
|
return c ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Ae}>${c}${a}</span>` : "";
|
|
3509
3516
|
}, Ee = 200 / 96, Wt = 4, ds = 10, G = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, ue = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Pe = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), us = (e, t, o) => {
|
|
3510
3517
|
const l = G(ue(`${L.item}${e._sub}`, t));
|
|
@@ -3522,11 +3529,11 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3522
3529
|
width: 0,
|
|
3523
3530
|
height: 0
|
|
3524
3531
|
};
|
|
3525
|
-
const
|
|
3532
|
+
const i = G(e), a = Math.min(t.height, i.y < t.y ? i.y + i.height - t.y : i.y + i.height > t.y + t.height || c ? t.y + t.height - i.y : i.height);
|
|
3526
3533
|
return a > 5 ? {
|
|
3527
|
-
x:
|
|
3528
|
-
y: Math.max(
|
|
3529
|
-
width:
|
|
3534
|
+
x: i.x - o.x,
|
|
3535
|
+
y: Math.max(i.y, t.y) + (l ? 1 : 0) - o.y,
|
|
3536
|
+
width: i.width,
|
|
3530
3537
|
height: a - (l ? 2 : 0)
|
|
3531
3538
|
} : null;
|
|
3532
3539
|
}, re = (e, t = !1) => {
|
|
@@ -3546,7 +3553,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3546
3553
|
const l = {
|
|
3547
3554
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3548
3555
|
area: pe(G(o), G(e.pageDom[0])),
|
|
3549
|
-
list: Pe(L.en_num_group, o).map((c) => Pe(L.en_num_item, c).map((
|
|
3556
|
+
list: Pe(L.en_num_group, o).map((c) => Pe(L.en_num_item, c).map((i) => pe(G(i), G(e.pageDom[0]), !0)))
|
|
3550
3557
|
};
|
|
3551
3558
|
return e.bindWidth ? {
|
|
3552
3559
|
choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
|
|
@@ -3556,7 +3563,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3556
3563
|
choiceQuestionPosition: re(l.area),
|
|
3557
3564
|
choiceQuestionCount: l.list.length,
|
|
3558
3565
|
xColOffset: Math.round((l.list[1][0].x - l.list[0][0].x - l.list[0][0].width) * Ee),
|
|
3559
|
-
questionNOList: [...Array(l.list.length).keys()].map((c,
|
|
3566
|
+
questionNOList: [...Array(l.list.length).keys()].map((c, i) => i + 1)
|
|
3560
3567
|
} : {
|
|
3561
3568
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3562
3569
|
yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) * Ee),
|
|
@@ -3565,7 +3572,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3565
3572
|
choiceQuestionPosition: re(l.area),
|
|
3566
3573
|
choiceQuestionCount: l.list.length,
|
|
3567
3574
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Ee),
|
|
3568
|
-
questionNOList: [...Array(l.list.length).keys()].map((c,
|
|
3575
|
+
questionNOList: [...Array(l.list.length).keys()].map((c, i) => i + 1)
|
|
3569
3576
|
};
|
|
3570
3577
|
}, hs = (e) => ({
|
|
3571
3578
|
cardSizeType: wo[e.layout.paper],
|
|
@@ -3575,13 +3582,13 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3575
3582
|
paperWidth: Math.round(x[e.layout.paper].width * Ee),
|
|
3576
3583
|
paperHeight: Math.round(x[e.layout.paper].height * Ee)
|
|
3577
3584
|
}), ps = (e) => {
|
|
3578
|
-
const t = G(e.pageDom[0]), o = G(e.pageDom[1]), l = (c,
|
|
3579
|
-
var
|
|
3580
|
-
const a =
|
|
3585
|
+
const t = G(e.pageDom[0]), o = G(e.pageDom[1]), l = (c, i) => {
|
|
3586
|
+
var s;
|
|
3587
|
+
const a = i > 2 || tt.includes(e.layout.paper) ? {
|
|
3581
3588
|
trdLeftTopPos: re(pe(G(Pe(`${L.point}t`, e.pageDom[c])[1]), G(e.pageDom[c]))),
|
|
3582
3589
|
trdLeftBottomPos: re(pe(G(Pe(`${L.point}b`, e.pageDom[c])[1]), G(e.pageDom[c])))
|
|
3583
3590
|
} : {};
|
|
3584
|
-
return (
|
|
3591
|
+
return (s = Ge.find((y) => y.code === e.layout.paper)) != null && s.isMultCol ? {
|
|
3585
3592
|
secLeftTopPos: re(pe(G(Pe(`${L.point}t`, e.pageDom[c])[0]), G(e.pageDom[c]))),
|
|
3586
3593
|
secLeftBottomPos: re(pe(G(Pe(`${L.point}b`, e.pageDom[c])[0]), G(e.pageDom[c]))),
|
|
3587
3594
|
...a
|
|
@@ -3673,48 +3680,48 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3673
3680
|
}))
|
|
3674
3681
|
};
|
|
3675
3682
|
}, gs = (e, t) => {
|
|
3676
|
-
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = ds + Wt, c = (
|
|
3677
|
-
return t.flat().filter((
|
|
3678
|
-
switch (
|
|
3683
|
+
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = ds + Wt, c = (i) => parseFloat(i.toFixed(2));
|
|
3684
|
+
return t.flat().filter((i) => o.includes(i.problemType) && i.colIndex < 2).map((i) => {
|
|
3685
|
+
switch (i.problemType) {
|
|
3679
3686
|
case m.fill:
|
|
3680
3687
|
case m.fill_english:
|
|
3681
|
-
return !e.layout.handReadFlag &&
|
|
3682
|
-
const
|
|
3688
|
+
return !e.layout.handReadFlag && i.isHiddenContent ? [] : i.children.map((a) => {
|
|
3689
|
+
const s = a.scorePosition;
|
|
3683
3690
|
return {
|
|
3684
3691
|
sub: a.id,
|
|
3685
3692
|
position: {
|
|
3686
|
-
x: c(
|
|
3687
|
-
y: c(
|
|
3688
|
-
width:
|
|
3689
|
-
height:
|
|
3693
|
+
x: c(s.x - a.position.x),
|
|
3694
|
+
y: c(s.y - a.position.y) + l * (i.colIndex - 1),
|
|
3695
|
+
width: s.width,
|
|
3696
|
+
height: s.height
|
|
3690
3697
|
}
|
|
3691
3698
|
};
|
|
3692
3699
|
});
|
|
3693
3700
|
case m.slove:
|
|
3694
3701
|
case m.art:
|
|
3695
3702
|
return e.layout.handReadFlag ? [{
|
|
3696
|
-
sub:
|
|
3703
|
+
sub: i.id,
|
|
3697
3704
|
position: {
|
|
3698
|
-
x: c(
|
|
3699
|
-
y: c(
|
|
3700
|
-
width:
|
|
3701
|
-
height:
|
|
3705
|
+
x: c(i.scoreList[0].position.x - i.position.x),
|
|
3706
|
+
y: c(i.scoreList[0].position.y - i.position.y) + l * (i.colIndex - 1),
|
|
3707
|
+
width: i.scoreList.map((a) => a.position.width).reduce((a, s) => a + s, 0),
|
|
3708
|
+
height: i.scoreList[0].position.height
|
|
3702
3709
|
}
|
|
3703
3710
|
}] : [];
|
|
3704
3711
|
case m.mix:
|
|
3705
|
-
return !e.layout.handReadFlag &&
|
|
3712
|
+
return !e.layout.handReadFlag && i.isHiddenContent ? [] : (i.children || []).filter((a) => [m.fill, m.fill_english, m.easy_slove].includes(a.problemType)).map((a) => [m.easy_slove].includes(a.problemType) ? {
|
|
3706
3713
|
sub: a.id,
|
|
3707
3714
|
position: {
|
|
3708
|
-
x: c(a.scoreList[0].position.x - (a.isHiddenContent ? a.position.x :
|
|
3709
|
-
y: c(a.scoreList[0].position.y - (a.isHiddenContent ? a.position.y :
|
|
3710
|
-
width: a.scoreList.map((
|
|
3715
|
+
x: c(a.scoreList[0].position.x - (a.isHiddenContent ? a.position.x : i.position.x)),
|
|
3716
|
+
y: c(a.scoreList[0].position.y - (a.isHiddenContent ? a.position.y : i.position.y)) + l * (i.colIndex - 1),
|
|
3717
|
+
width: a.scoreList.map((s) => s.position.width).reduce((s, y) => s + y, 0),
|
|
3711
3718
|
height: a.position.height
|
|
3712
3719
|
}
|
|
3713
3720
|
} : {
|
|
3714
3721
|
sub: a.id,
|
|
3715
3722
|
position: {
|
|
3716
|
-
x: c(a.scorePosition.x - (a.isHiddenContent ? a.rawPosition.x :
|
|
3717
|
-
y: c(a.scorePosition.y - (a.isHiddenContent ? a.rawPosition.y :
|
|
3723
|
+
x: c(a.scorePosition.x - (a.isHiddenContent ? a.rawPosition.x : i.position.x)),
|
|
3724
|
+
y: c(a.scorePosition.y - (a.isHiddenContent ? a.rawPosition.y : i.position.y)) + l * (i.colIndex - 1),
|
|
3718
3725
|
width: a.scorePosition.width,
|
|
3719
3726
|
height: a.scorePosition.height
|
|
3720
3727
|
}
|
|
@@ -3724,24 +3731,24 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3724
3731
|
}, bs = (e, t) => {
|
|
3725
3732
|
let o = 0, l = {};
|
|
3726
3733
|
return [...Array(e.pageDom.length).keys()].map((c) => {
|
|
3727
|
-
var
|
|
3728
|
-
const
|
|
3729
|
-
return [...Array(c % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((
|
|
3730
|
-
const
|
|
3734
|
+
var s, y, n, d;
|
|
3735
|
+
const i = Math.floor(c / 2) * (e.layout.column + e.layout.backColumn) + (c % 2 ? e.layout.column : 0), a = (d = (n = t[t.length - 1]) == null ? void 0 : n.data[((y = (s = t[t.length - 1]) == null ? void 0 : s.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : d.children;
|
|
3736
|
+
return [...Array(c % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((B, p) => i + p < t.length).map((B, p) => {
|
|
3737
|
+
const M = e.pageDom[c], N = G(M), V = e.colDom[i + p], X = G(V), q = e.colViewDom[i + p], C = G(q), P = t[i + p].data.map((S) => S.children).flat(), j = t[i + p].data.filter((S) => [ke.one_choice, ke.another_choice].includes(S.problemType) && S.rawChildren.length).map((S) => {
|
|
3731
3738
|
const Y = ue(`${L.choice}${S.id}`, V);
|
|
3732
3739
|
return Y ? {
|
|
3733
3740
|
id: `${++o}`,
|
|
3734
3741
|
baseIndex: parseInt(S.rawChildren[0]._sub),
|
|
3735
|
-
position: pe(G(Y),
|
|
3742
|
+
position: pe(G(Y), N),
|
|
3736
3743
|
problemType: S.problemType,
|
|
3737
3744
|
isOneChoice: !0,
|
|
3738
3745
|
optList: Pe(L.fill, Y).map((he, b) => ({
|
|
3739
3746
|
id: `${o}.${b + 1}`,
|
|
3740
|
-
position: pe(G(he),
|
|
3747
|
+
position: pe(G(he), N)
|
|
3741
3748
|
})).filter((he) => he.position)
|
|
3742
3749
|
} : {};
|
|
3743
3750
|
}).filter((S) => S.position);
|
|
3744
|
-
return
|
|
3751
|
+
return P.filter((S) => S.problemType && us(S, V, X)).map((S, Y) => {
|
|
3745
3752
|
var $;
|
|
3746
3753
|
let he = {};
|
|
3747
3754
|
l[S._sub] ? l[S._sub] += 1 : l[S._sub] = 1;
|
|
@@ -3756,7 +3763,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3756
3763
|
isColumn: S.style[u[e.layout.mode].choice_a] !== _.choice_2,
|
|
3757
3764
|
optList: S.optList.map((Q, de) => ({
|
|
3758
3765
|
id: `${S._sub}.${de + 1}`,
|
|
3759
|
-
position: Be(ue(`${L.fill}${de}`, b), C,
|
|
3766
|
+
position: Be(ue(`${L.fill}${de}`, b), C, N)
|
|
3760
3767
|
})).filter((Q) => Q.position)
|
|
3761
3768
|
};
|
|
3762
3769
|
break;
|
|
@@ -3764,22 +3771,22 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3764
3771
|
he = {
|
|
3765
3772
|
optList: [0, 1].map((Q, de) => ({
|
|
3766
3773
|
id: `${S._sub}.${de + 1}`,
|
|
3767
|
-
position: Be(ue(`${L.fill}${de}`, b), C,
|
|
3774
|
+
position: Be(ue(`${L.fill}${de}`, b), C, N)
|
|
3768
3775
|
})).filter((Q) => Q.position)
|
|
3769
3776
|
};
|
|
3770
3777
|
break;
|
|
3771
3778
|
case m.fill:
|
|
3772
3779
|
case m.fill_english:
|
|
3773
|
-
const T = Pe(L.fill, b),
|
|
3780
|
+
const T = Pe(L.fill, b), R = Pe(L.fill_line, b);
|
|
3774
3781
|
he = {
|
|
3775
3782
|
children: [S.score].flat().map((Q, de, ae) => ({
|
|
3776
3783
|
id: ae.length > 1 ? `${S._sub}.${de + 1}` : S._sub,
|
|
3777
3784
|
score: Q,
|
|
3778
3785
|
problemType: S.problemType,
|
|
3779
3786
|
isHiddenContent: !S.style[u[e.layout.mode].fill_b],
|
|
3780
|
-
position: Be(b, C,
|
|
3781
|
-
scorePosition: Be(T[de], C,
|
|
3782
|
-
answerPosition: Be(
|
|
3787
|
+
position: Be(b, C, N),
|
|
3788
|
+
scorePosition: Be(T[de], C, N),
|
|
3789
|
+
answerPosition: Be(R[de], C, N)
|
|
3783
3790
|
})).filter((Q) => Q.position)
|
|
3784
3791
|
};
|
|
3785
3792
|
break;
|
|
@@ -3793,7 +3800,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3793
3800
|
return {};
|
|
3794
3801
|
const de = Pe(L.score_item, Q);
|
|
3795
3802
|
return {
|
|
3796
|
-
position: Be(Q, C,
|
|
3803
|
+
position: Be(Q, C, N, !0),
|
|
3797
3804
|
itemPosition: {
|
|
3798
3805
|
width: de[0].offsetWidth
|
|
3799
3806
|
},
|
|
@@ -3809,7 +3816,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3809
3816
|
problemType: S.problemType,
|
|
3810
3817
|
_rootProblemType: S._rootProblemType,
|
|
3811
3818
|
_parentProblemType: S._parentProblemType,
|
|
3812
|
-
position: Be(b, C,
|
|
3819
|
+
position: Be(b, C, N, !1, S.id === P[P.length - 1].id && S.id !== (($ = a[a.length - 1]) == null ? void 0 : $.id) && [m.slove].includes(S.problemType)),
|
|
3813
3820
|
...he
|
|
3814
3821
|
};
|
|
3815
3822
|
}).concat(j).filter((S) => S.position);
|
|
@@ -3817,20 +3824,20 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3817
3824
|
}).map((c) => c.flat());
|
|
3818
3825
|
}, vs = (e) => {
|
|
3819
3826
|
let t = {};
|
|
3820
|
-
const o = (
|
|
3827
|
+
const o = (i = e, a = !1) => (t[i.id] = {
|
|
3821
3828
|
_rootProblemType: ct[e._rootProblemType],
|
|
3822
3829
|
_parentProblemType: ct[e._parentProblemType]
|
|
3823
3830
|
}, {
|
|
3824
3831
|
// 块位置
|
|
3825
|
-
sectionPosition: re(
|
|
3832
|
+
sectionPosition: re(i.position, !0),
|
|
3826
3833
|
// 块ID,前端生成,同一道题同一个ID
|
|
3827
|
-
sectionID:
|
|
3834
|
+
sectionID: i.id,
|
|
3828
3835
|
// 块内序号ID,按切块自增
|
|
3829
|
-
secitonSeqID:
|
|
3836
|
+
secitonSeqID: i.colIndex || 1,
|
|
3830
3837
|
// 需要保存文件,固定值
|
|
3831
3838
|
needSavedFile: !!a || [m.mix].includes(e.problemType),
|
|
3832
3839
|
// 题型
|
|
3833
|
-
cuttingSectionQuestionType: ct[
|
|
3840
|
+
cuttingSectionQuestionType: ct[i.problemType || e.problemType]
|
|
3834
3841
|
});
|
|
3835
3842
|
let l = {};
|
|
3836
3843
|
switch (e.problemType) {
|
|
@@ -3847,9 +3854,9 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3847
3854
|
// 选项是否为横排
|
|
3848
3855
|
crosswised: e.isColumn,
|
|
3849
3856
|
// 单个选项的信息数组
|
|
3850
|
-
choiceUnitSectionList: e.optList.map((
|
|
3851
|
-
...o(
|
|
3852
|
-
choicePosition: re(
|
|
3857
|
+
choiceUnitSectionList: e.optList.map((i, a) => ({
|
|
3858
|
+
...o(i, !0),
|
|
3859
|
+
choicePosition: re(i.position),
|
|
3853
3860
|
choiceResult: [m.decide].includes(e.problemType) ? vo[a] : gt[a]
|
|
3854
3861
|
}))
|
|
3855
3862
|
}]
|
|
@@ -3863,13 +3870,13 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3863
3870
|
// 子题数 最小1 填空题取空数
|
|
3864
3871
|
unitCount: (e.children || [e]).length,
|
|
3865
3872
|
// 每个小题的切图块
|
|
3866
|
-
singleBlankSectionList: (e.children || [e]).map((
|
|
3867
|
-
...o(
|
|
3868
|
-
answerPosition: re(
|
|
3869
|
-
correctFrame:
|
|
3870
|
-
correctSectionPosition: re(
|
|
3871
|
-
firstBlockPostion: re(
|
|
3872
|
-
gridScoresList: [
|
|
3873
|
+
singleBlankSectionList: (e.children || [e]).map((i) => ({
|
|
3874
|
+
...o(i, !0),
|
|
3875
|
+
answerPosition: re(i.answerPosition, !0),
|
|
3876
|
+
correctFrame: i.scorePosition && i.scorePosition.width && i.scorePosition.height ? [{
|
|
3877
|
+
correctSectionPosition: re(i.scorePosition, !0),
|
|
3878
|
+
firstBlockPostion: re(i.scorePosition),
|
|
3879
|
+
gridScoresList: [i.score].flat(),
|
|
3873
3880
|
lineMeanGetScore: !1,
|
|
3874
3881
|
weight: 1
|
|
3875
3882
|
}] : []
|
|
@@ -3889,10 +3896,10 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3889
3896
|
singleBlankSectionList: [{
|
|
3890
3897
|
...o(e, !0),
|
|
3891
3898
|
answerPosition: null,
|
|
3892
|
-
correctFrame: (e.scoreList || []).map((
|
|
3893
|
-
correctSectionPosition: re(
|
|
3894
|
-
firstBlockPostion: re({ ...
|
|
3895
|
-
gridScoresList: [
|
|
3899
|
+
correctFrame: (e.scoreList || []).map((i) => ({
|
|
3900
|
+
correctSectionPosition: re(i.position, !0),
|
|
3901
|
+
firstBlockPostion: re({ ...i.position, ...i.itemPosition }),
|
|
3902
|
+
gridScoresList: [i.score].flat(),
|
|
3896
3903
|
lineMeanGetScore: !0,
|
|
3897
3904
|
weight: 1
|
|
3898
3905
|
}))
|
|
@@ -3915,9 +3922,9 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3915
3922
|
// 选项横排
|
|
3916
3923
|
crosswised: !0,
|
|
3917
3924
|
// 单个选项的信息数组
|
|
3918
|
-
choiceUnitSectionList: e.optList.map((
|
|
3919
|
-
...o(
|
|
3920
|
-
choicePosition: re(
|
|
3925
|
+
choiceUnitSectionList: e.optList.map((i, a) => ({
|
|
3926
|
+
...o(i),
|
|
3927
|
+
choicePosition: re(i.position),
|
|
3921
3928
|
choiceResult: (e.baseIndex + a).toString()
|
|
3922
3929
|
}))
|
|
3923
3930
|
}]
|
|
@@ -3942,48 +3949,48 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3942
3949
|
// 固定值
|
|
3943
3950
|
splitFileList: [],
|
|
3944
3951
|
// 依据当前页码设置答案
|
|
3945
|
-
answerResultList: gt.slice(e.layout.pagePoint ===
|
|
3952
|
+
answerResultList: gt.slice(e.layout.pagePoint === Qe.right_up.code ? e.pageTotal - a - 1 : 0, e.layout.pagePoint === Qe.right_up.code ? e.pageTotal : a + 1),
|
|
3946
3953
|
// 固定值
|
|
3947
3954
|
noAnswerTag: !1
|
|
3948
3955
|
}],
|
|
3949
3956
|
// 按题切块信息
|
|
3950
|
-
cardCuttingSectionList: t[a].map((
|
|
3951
|
-
const y = vs(
|
|
3957
|
+
cardCuttingSectionList: t[a].map((s) => {
|
|
3958
|
+
const y = vs(s);
|
|
3952
3959
|
return o = { ...o, ...y.typeData }, y.data;
|
|
3953
3960
|
}).flat()
|
|
3954
|
-
})), c = (a,
|
|
3955
|
-
let
|
|
3956
|
-
return a.cardCuttingSectionList.forEach((d,
|
|
3957
|
-
const
|
|
3958
|
-
let
|
|
3959
|
-
if (n.find((q) => c(q, 1) ===
|
|
3961
|
+
})), c = (a, s) => ([a.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < s).join("."), i = l.map((a) => {
|
|
3962
|
+
let s = [], y = [], n = [];
|
|
3963
|
+
return a.cardCuttingSectionList.forEach((d, B, p) => {
|
|
3964
|
+
const M = c(d, 1);
|
|
3965
|
+
let N = !1, V = !1;
|
|
3966
|
+
if (n.find((q) => c(q, 1) === M && q.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(d), N = B < p.length - 1, V = !0), N)
|
|
3960
3967
|
return;
|
|
3961
3968
|
let X = !1;
|
|
3962
3969
|
if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(d), X = !0), n.length) {
|
|
3963
3970
|
if (n.length === 1)
|
|
3964
|
-
|
|
3971
|
+
s.push(n[0]);
|
|
3965
3972
|
else {
|
|
3966
|
-
const q = n.map((S) => S.subjectiveQuestionSectionList || []).flat(), C = n.map((S) => S.choiceQuestionPartialSectionList || []).flat(),
|
|
3967
|
-
|
|
3973
|
+
const q = n.map((S) => S.subjectiveQuestionSectionList || []).flat(), C = n.map((S) => S.choiceQuestionPartialSectionList || []).flat(), P = C.length ? { choiceQuestionPartialSectionList: C } : {}, j = q.length ? { subjectiveQuestionSectionList: q } : {};
|
|
3974
|
+
s.push({
|
|
3968
3975
|
...n[0],
|
|
3969
3976
|
// cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
|
|
3970
|
-
...
|
|
3977
|
+
...P,
|
|
3971
3978
|
...j
|
|
3972
3979
|
});
|
|
3973
3980
|
}
|
|
3974
3981
|
n = [];
|
|
3975
3982
|
}
|
|
3976
3983
|
X || V || n.push(d);
|
|
3977
|
-
}),
|
|
3984
|
+
}), s = [...s, ...n].map((d) => ({ ...d, cuttingSectionQuestionType: o[d.sectionID]._rootProblemType || d.cuttingSectionQuestionType, sectionID: c(d, 1) })), { ...a, cardCuttingSectionList: [...s, ...y] };
|
|
3978
3985
|
}).map((a) => {
|
|
3979
|
-
const
|
|
3980
|
-
var
|
|
3986
|
+
const s = a.cardCuttingSectionList.map((y) => {
|
|
3987
|
+
var M;
|
|
3981
3988
|
let n = [], d = [];
|
|
3982
|
-
const
|
|
3983
|
-
(
|
|
3984
|
-
const q = c(
|
|
3985
|
-
let C = !1,
|
|
3986
|
-
if (d.find((j) => c(j,
|
|
3989
|
+
const B = Math.max(...(y.subjectiveQuestionSectionList || []).map((N) => N.sectionID.split(".").length - 1), 1);
|
|
3990
|
+
(M = y.subjectiveQuestionSectionList) == null || M.forEach((N, V, X) => {
|
|
3991
|
+
const q = c(N, B);
|
|
3992
|
+
let C = !1, P = !1;
|
|
3993
|
+
if (d.find((j) => c(j, B) === q && j.secitonSeqID === N.secitonSeqID) && (d.push(N), C = V < X.length - 1, P = !0), !C) {
|
|
3987
3994
|
if (d.length) {
|
|
3988
3995
|
if (d.length === 1)
|
|
3989
3996
|
n.push(d[0]);
|
|
@@ -3997,18 +4004,18 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3997
4004
|
}
|
|
3998
4005
|
d = [];
|
|
3999
4006
|
}
|
|
4000
|
-
|
|
4007
|
+
P || d.push(N);
|
|
4001
4008
|
}
|
|
4002
4009
|
});
|
|
4003
|
-
const p = Math.max(...[...n, ...d].map((
|
|
4004
|
-
return n = [...n, ...d].map((
|
|
4010
|
+
const p = Math.max(...[...n, ...d].map((N) => N.sectionID.split(".").length));
|
|
4011
|
+
return n = [...n, ...d].map((N) => ({ ...N, cuttingSectionQuestionType: o[N.sectionID]._parentProblemType || N.cuttingSectionQuestionType, sectionID: c(N, Math.max(p - 1, 1)) })), n.length ? {
|
|
4005
4012
|
...y,
|
|
4006
4013
|
subjectiveQuestionSectionList: n
|
|
4007
4014
|
} : y;
|
|
4008
4015
|
});
|
|
4009
|
-
return { ...a, cardCuttingSectionList:
|
|
4016
|
+
return { ...a, cardCuttingSectionList: s };
|
|
4010
4017
|
});
|
|
4011
|
-
return o = {},
|
|
4018
|
+
return o = {}, i;
|
|
4012
4019
|
}, ks = (e, t) => {
|
|
4013
4020
|
var l;
|
|
4014
4021
|
const o = G(e.pageDom[0]);
|
|
@@ -4071,12 +4078,12 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4071
4078
|
}, xs = (e) => {
|
|
4072
4079
|
const { config: t, data: o } = e, l = fs(t), c = bs(t, o);
|
|
4073
4080
|
l && c[0].unshift(l);
|
|
4074
|
-
const
|
|
4081
|
+
const i = gs(t, c), a = ws(t, c), s = ks(t, a), y = Gt(t, L.en_num_view) || {};
|
|
4075
4082
|
return {
|
|
4076
|
-
engineData:
|
|
4083
|
+
engineData: s,
|
|
4077
4084
|
pageTotal: t.pageTotal,
|
|
4078
4085
|
format: x[t.layout.paper],
|
|
4079
|
-
localData:
|
|
4086
|
+
localData: i,
|
|
4080
4087
|
extendInfo: { shortCoordinate: y }
|
|
4081
4088
|
};
|
|
4082
4089
|
}, Cs = { class: "layt-moni_view" }, Ss = { class: "layt-moni_content" }, $s = { class: "layt-moni_icon" }, Ts = { class: "layt-moni_msg" }, Is = {
|
|
@@ -4096,36 +4103,36 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4096
4103
|
Oe(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
4097
4104
|
l.value = [], setTimeout(() => {
|
|
4098
4105
|
var n;
|
|
4099
|
-
o.ColList.forEach((d,
|
|
4106
|
+
o.ColList.forEach((d, B) => {
|
|
4100
4107
|
d.data.map((p) => p.children).flat().filter((p) => [m.slove, m.art].includes(p.problemType) && !p.chunk).forEach((p) => {
|
|
4101
4108
|
var X;
|
|
4102
|
-
const
|
|
4103
|
-
if (!
|
|
4109
|
+
const M = (X = o.ColDom[B].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : X.querySelector(`*[data-xine="${L.score}"]`);
|
|
4110
|
+
if (!M)
|
|
4104
4111
|
return;
|
|
4105
|
-
|
|
4106
|
-
const
|
|
4107
|
-
|
|
4112
|
+
M.classList.remove("err_lack");
|
|
4113
|
+
const N = window.getComputedStyle(M), V = [...Array.from(M.children)].map((q) => q.offsetWidth).reduce((q, C) => q + C, 0);
|
|
4114
|
+
M.offsetWidth - parseFloat(N.borderLeft) - parseFloat(N.borderRight) < V && (l.value.push({ msg: `${p.subStr}题打分条超长` }), M.classList.add("err_lack"), M.title = "打分条超长,请调整排版或使用自编打分条");
|
|
4108
4115
|
});
|
|
4109
4116
|
});
|
|
4110
4117
|
const a = (n = document.querySelector(".__layout__")) == null ? void 0 : n.getBoundingClientRect();
|
|
4111
4118
|
if (!a)
|
|
4112
4119
|
return;
|
|
4113
|
-
let
|
|
4120
|
+
let s = [], y = [];
|
|
4114
4121
|
o.ImgData.forEach((d) => {
|
|
4115
|
-
(d.left + d.width > a.width || d.top + d.height > a.height) &&
|
|
4122
|
+
(d.left + d.width > a.width || d.top + d.height > a.height) && s.push(d);
|
|
4116
4123
|
}), o.TxtData.forEach((d) => {
|
|
4117
4124
|
(d.left + d.width > a.width || d.top + d.height > a.height) && y.push(d);
|
|
4118
|
-
}),
|
|
4125
|
+
}), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: c }), y.length && l.value.push({ type: "absTxt", value: y, msg: `${y.length}条插入文本溢出`, fn: i }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
|
|
4119
4126
|
}, 500);
|
|
4120
4127
|
});
|
|
4121
4128
|
const c = () => {
|
|
4122
|
-
var
|
|
4123
|
-
(((
|
|
4124
|
-
},
|
|
4125
|
-
var
|
|
4126
|
-
(((
|
|
4129
|
+
var s;
|
|
4130
|
+
(((s = l.value.find((y) => y.type === "absImg")) == null ? void 0 : s.value) || []).forEach((y) => t("delAbsImgItem", y));
|
|
4131
|
+
}, i = () => {
|
|
4132
|
+
var s;
|
|
4133
|
+
(((s = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((y) => t("delAbsTxtItem", y));
|
|
4127
4134
|
};
|
|
4128
|
-
return (a,
|
|
4135
|
+
return (a, s) => (r(), h("div", Cs, [
|
|
4129
4136
|
w("div", Ss, [
|
|
4130
4137
|
w("div", {
|
|
4131
4138
|
class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
@@ -4151,9 +4158,9 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4151
4158
|
key: 0,
|
|
4152
4159
|
class: "layt-moni_err_item_fn",
|
|
4153
4160
|
onClick: y.fn
|
|
4154
|
-
}, te(y.btnTxt || "删除"), 9, Fs)) :
|
|
4161
|
+
}, te(y.btnTxt || "删除"), 9, Fs)) : A("", !0)
|
|
4155
4162
|
]))), 128))
|
|
4156
|
-
])) :
|
|
4163
|
+
])) : A("", !0)
|
|
4157
4164
|
])
|
|
4158
4165
|
]));
|
|
4159
4166
|
}
|
|
@@ -4164,143 +4171,146 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4164
4171
|
}, Ds = (e, t, o, l) => {
|
|
4165
4172
|
let c = null;
|
|
4166
4173
|
if (e.dataset.block === bt && !e.dataset.used) {
|
|
4167
|
-
const
|
|
4168
|
-
t - parseFloat(
|
|
4174
|
+
const i = window.getComputedStyle(e);
|
|
4175
|
+
t - parseFloat(i.paddingTop) - parseFloat(i.borderTop) - 1 < 50 && (c = e.parentElement && e.parentElement.dataset.block === il ? e.parentElement : e), e.dataset.used = "1";
|
|
4169
4176
|
} else
|
|
4170
4177
|
e.dataset.block === Lt ? c = e.parentElement : e.dataset.block === rl && !e.dataset.used ? e.offsetHeight < o - 20 ? c = e.parentElement : e.dataset.used = "1" : e.dataset.block === Se && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${Lt}]`) ? e.dataset.used = "1" : c = e : (e.dataset.block === cl && l || dl.includes(e.tagName.toLowerCase())) && (c = e);
|
|
4171
4178
|
return c;
|
|
4172
4179
|
}, Et = (e, t, o) => {
|
|
4173
4180
|
const l = e.textContent || "", c = l.split("").map((y) => `<span>${y}</span>`).join("");
|
|
4174
4181
|
e.innerHTML = c;
|
|
4175
|
-
const
|
|
4176
|
-
if (
|
|
4182
|
+
const i = [...Array.from(e.children)].findIndex((y) => _e(y).top - t + y.offsetHeight > o);
|
|
4183
|
+
if (i < 1)
|
|
4177
4184
|
return e.innerHTML = l, e;
|
|
4178
4185
|
const a = document.createElement("span");
|
|
4179
|
-
a.textContent = l.slice(0,
|
|
4180
|
-
const
|
|
4181
|
-
return
|
|
4186
|
+
a.textContent = l.slice(0, i);
|
|
4187
|
+
const s = document.createElement("span");
|
|
4188
|
+
return s.textContent = l.slice(i), e.innerHTML = "", e.append(a, s), a;
|
|
4182
4189
|
}, yt = (e, t, o) => {
|
|
4183
|
-
const l = mt(
|
|
4184
|
-
let
|
|
4185
|
-
return
|
|
4190
|
+
const l = mt(e.parentElement), c = l.findIndex((a) => a === e);
|
|
4191
|
+
let i = l.filter((a, s) => _e(a).top + a.offsetHeight - 1 < _e(e).top || s < c && _e(a).top < _e(e).top).reverse()[0];
|
|
4192
|
+
return i || (i = lt(e), _e(i).top + i.offsetHeight - t > o && (i = yt(i, t, o))), i;
|
|
4186
4193
|
}, Pt = (e, t, o, l) => {
|
|
4187
|
-
const c = (a,
|
|
4194
|
+
const c = (a, s = o) => {
|
|
4188
4195
|
var V, X, q;
|
|
4189
4196
|
const y = a.map((C) => {
|
|
4190
|
-
const
|
|
4197
|
+
const P = _e(C);
|
|
4191
4198
|
return {
|
|
4192
4199
|
el: C,
|
|
4193
|
-
top:
|
|
4194
|
-
left:
|
|
4200
|
+
top: P.top - t,
|
|
4201
|
+
left: P.left
|
|
4195
4202
|
};
|
|
4196
|
-
}), n = y.filter((C) => C.el.offsetHeight + C.top >
|
|
4203
|
+
}), n = y.filter((C) => C.el.offsetHeight + C.top > s).sort((C, P) => C.top - P.top), d = (V = n.shift()) == null ? void 0 : V.el;
|
|
4197
4204
|
if (!d) {
|
|
4198
|
-
const C =
|
|
4199
|
-
|
|
4205
|
+
const C = _e(a[0].parentElement);
|
|
4206
|
+
if (C.top + C.height - t - 10 < s)
|
|
4207
|
+
return a[0].parentElement;
|
|
4208
|
+
const P = document.createElement("div");
|
|
4209
|
+
return (X = a[0].parentElement) == null || X.appendChild(P), P.style.height = s - (_e(P).top - t) + "px", P;
|
|
4200
4210
|
}
|
|
4201
|
-
const
|
|
4202
|
-
if (n.filter((C) => C.top < p + d.offsetHeight && C.top + C.el.offsetHeight - 1 > p && (C.left + C.el.offsetWidth - 1 <
|
|
4203
|
-
const C = (q = y.filter((
|
|
4211
|
+
const B = _e(d), p = B.top - t, M = B.left;
|
|
4212
|
+
if (n.filter((C) => C.top < p + d.offsetHeight && C.top + C.el.offsetHeight - 1 > p && (C.left + C.el.offsetWidth - 1 < M || C.left + 1 > M + d.offsetWidth)).length) {
|
|
4213
|
+
const C = (q = y.filter((P) => P.top < p).pop()) == null ? void 0 : q.el;
|
|
4204
4214
|
if (C != null && C.children.length) {
|
|
4205
|
-
const
|
|
4206
|
-
return c(
|
|
4215
|
+
const P = mt(C);
|
|
4216
|
+
return c(P, p) || C;
|
|
4207
4217
|
} else
|
|
4208
4218
|
return C ? _e(C).top - t + C.offsetHeight > p ? Et(C, t, p) : C : yt(d.parentElement, t, p);
|
|
4209
4219
|
} else {
|
|
4210
4220
|
const C = getComputedStyle(d);
|
|
4211
|
-
if (p + (parseFloat(C.fontSize) + (parseFloat(C.lineHeight) - parseFloat(C.fontSize)) / 2) >
|
|
4221
|
+
if (p + (parseFloat(C.fontSize) + (parseFloat(C.lineHeight) - parseFloat(C.fontSize)) / 2) > s)
|
|
4212
4222
|
return yt(d, t, p);
|
|
4213
|
-
const
|
|
4214
|
-
if (
|
|
4215
|
-
return lt(
|
|
4223
|
+
const P = Ds(d, s - p, s, l);
|
|
4224
|
+
if (P)
|
|
4225
|
+
return lt(P);
|
|
4216
4226
|
if (d.children.length) {
|
|
4217
4227
|
const j = mt(d);
|
|
4218
|
-
return c(j,
|
|
4228
|
+
return c(j, s);
|
|
4219
4229
|
} else
|
|
4220
|
-
return Et(d, t,
|
|
4230
|
+
return Et(d, t, s);
|
|
4221
4231
|
}
|
|
4222
|
-
},
|
|
4223
|
-
return { cut: Ms(
|
|
4232
|
+
}, i = c([e]);
|
|
4233
|
+
return { cut: Ms(i), targetEl: i };
|
|
4224
4234
|
}, As = (e) => {
|
|
4225
|
-
const { el: t, data: o, column: l, backColumn: c, getColSize:
|
|
4235
|
+
const { el: t, data: o, column: l, backColumn: c, getColSize: i, change: a } = e;
|
|
4226
4236
|
if (!t || !o.length) {
|
|
4227
4237
|
a([], !0);
|
|
4228
4238
|
return;
|
|
4229
4239
|
}
|
|
4230
4240
|
console.time("layout");
|
|
4231
|
-
const
|
|
4241
|
+
const s = _e(t).top;
|
|
4232
4242
|
let y = {}, n = 0, d = 0;
|
|
4233
|
-
const
|
|
4234
|
-
const
|
|
4243
|
+
const B = (C) => {
|
|
4244
|
+
const P = C % (l + c), j = Math.floor(C / (l + c)) * 2 + (P >= l ? 1 : 0), S = i(C, j);
|
|
4235
4245
|
y = {
|
|
4236
|
-
top:
|
|
4246
|
+
top: s,
|
|
4237
4247
|
width: parseFloat(S.width),
|
|
4238
4248
|
height: parseFloat(S.height)
|
|
4239
4249
|
};
|
|
4240
4250
|
};
|
|
4241
|
-
let p = [],
|
|
4242
|
-
const
|
|
4243
|
-
|
|
4251
|
+
let p = [], M = 0;
|
|
4252
|
+
const N = () => {
|
|
4253
|
+
B(p.length), t.style.width = `${y.width}px`, p.push({
|
|
4244
4254
|
top: 0,
|
|
4245
4255
|
data: [],
|
|
4246
4256
|
width: y.width,
|
|
4247
4257
|
height: y.height
|
|
4248
4258
|
}), a([...p]);
|
|
4249
4259
|
};
|
|
4250
|
-
|
|
4260
|
+
N();
|
|
4251
4261
|
const V = (C) => {
|
|
4252
|
-
const
|
|
4253
|
-
return _e(C).top - y.top + parseFloat(
|
|
4262
|
+
const P = getComputedStyle(C);
|
|
4263
|
+
return _e(C).top - y.top + parseFloat(P.borderTop) + parseFloat(P.paddingTop) + parseFloat(P.lineHeight) > p[p.length - 1].height;
|
|
4254
4264
|
}, X = (C) => {
|
|
4255
|
-
const
|
|
4256
|
-
return _e(C).top + C.offsetHeight - y.top - (C.dataset.block === Se ? 0 : parseFloat(
|
|
4257
|
-
}, q = (C = JSON.parse(JSON.stringify(o[
|
|
4258
|
-
if (
|
|
4265
|
+
const P = getComputedStyle(C);
|
|
4266
|
+
return _e(C).top + C.offsetHeight - y.top - (C.dataset.block === Se ? 0 : parseFloat(P.paddingBottom) - parseFloat(P.borderBottom)) <= p[p.length - 1].height;
|
|
4267
|
+
}, q = (C = JSON.parse(JSON.stringify(o[M] || {}))) => {
|
|
4268
|
+
if (M >= o.length || !Object.keys(C).length) {
|
|
4259
4269
|
a([...p], !0), console.timeEnd("layout"), p = [], n = 0;
|
|
4260
4270
|
return;
|
|
4261
4271
|
}
|
|
4262
4272
|
p[p.length - 1].data.push({ ...C }), a([...p]), window.requestAnimationFrame(() => {
|
|
4263
|
-
const
|
|
4273
|
+
const P = dt(C.__tag__, t), j = !C.isHidden && _e(P);
|
|
4264
4274
|
let S = null;
|
|
4265
4275
|
if (d) {
|
|
4266
|
-
const Y =
|
|
4276
|
+
const Y = P.querySelector(`*[data-hutkey="${d}"]`), he = _e(Y);
|
|
4267
4277
|
p[p.length - 1].top = y.top - he.top, p[p.length - 1].height = y.height - p[p.length - 1].top, d = 0;
|
|
4268
4278
|
}
|
|
4269
4279
|
if (j && j.height + j.top - y.top > p[p.length - 1].height)
|
|
4270
4280
|
if (C.problemType)
|
|
4271
|
-
p[p.length - 1].data.pop(),
|
|
4272
|
-
else if (X(
|
|
4273
|
-
|
|
4274
|
-
else if (V(
|
|
4275
|
-
p[p.length - 1].data.pop(),
|
|
4281
|
+
p[p.length - 1].data.pop(), N(), q({ ...C });
|
|
4282
|
+
else if (X(P))
|
|
4283
|
+
N(), M++, q();
|
|
4284
|
+
else if (V(P))
|
|
4285
|
+
p[p.length - 1].data.pop(), N(), q({ ...C });
|
|
4276
4286
|
else {
|
|
4277
|
-
S = Pt(
|
|
4278
|
-
const Y =
|
|
4279
|
-
p[p.length - 1].height = _e(S.cut).top - y.top,
|
|
4287
|
+
S = Pt(P, y.top, p[p.length - 1].height, p.length % (l + c) >= l), console.log(S);
|
|
4288
|
+
const Y = P.querySelector(`*[data-content="${C.id}"]`);
|
|
4289
|
+
p[p.length - 1].height = _e(S.cut).top - y.top, N(), Y != null && Y.contains(S.cut) ? (d = Date.now(), S.cut.dataset.hutkey = d, q({ ...C, content: Y.innerHTML })) : (p[p.length - 1].data.pop(), q({ ...C }));
|
|
4280
4290
|
}
|
|
4281
4291
|
else {
|
|
4282
4292
|
let Y = [], he = [], b = !1;
|
|
4283
4293
|
if (C.children.some(($, T) => {
|
|
4284
4294
|
var Q, de;
|
|
4285
|
-
const
|
|
4295
|
+
const R = dt($.__tag__, t), ce = _e(R);
|
|
4286
4296
|
if (n) {
|
|
4287
|
-
const ae =
|
|
4297
|
+
const ae = R.querySelector(`*[data-cutkey="${n}"]`), f = _e(ae);
|
|
4288
4298
|
p[p.length - 1].top = y.top - f.top, p[p.length - 1].height = y.height - p[p.length - 1].top, n = 0;
|
|
4289
4299
|
}
|
|
4290
4300
|
if (ce.height + ce.top - y.top > p[p.length - 1].height) {
|
|
4291
|
-
if ((Q =
|
|
4292
|
-
parseInt((de =
|
|
4301
|
+
if ((Q = R.parentElement) != null && Q.dataset.polymer)
|
|
4302
|
+
parseInt((de = R.parentElement) == null ? void 0 : de.dataset.polymer) ? (Y = Y.filter((ae) => {
|
|
4293
4303
|
var f;
|
|
4294
|
-
return dt(ae.__tag__, t).dataset.polymer !== ((f =
|
|
4295
|
-
}), he = C.children.slice(Y.length)) : (p[p.length - 1].data.pop(), Y = [], b = !0,
|
|
4296
|
-
else if (X(
|
|
4304
|
+
return dt(ae.__tag__, t).dataset.polymer !== ((f = R.parentElement) == null ? void 0 : f.dataset.polymer);
|
|
4305
|
+
}), he = C.children.slice(Y.length)) : (p[p.length - 1].data.pop(), Y = [], b = !0, N(), q({ ...C }));
|
|
4306
|
+
else if (X(R))
|
|
4297
4307
|
Y.push($), he = T < C.children.length - 1 ? C.children.slice(T + 1) : [];
|
|
4298
|
-
else if (V(
|
|
4308
|
+
else if (V(R))
|
|
4299
4309
|
he = C.children.slice(T);
|
|
4300
4310
|
else {
|
|
4301
|
-
S = Pt(
|
|
4302
|
-
const ae =
|
|
4303
|
-
if (
|
|
4311
|
+
S = Pt(R, y.top, p[p.length - 1].height, p.length % (l + c) >= l);
|
|
4312
|
+
const ae = R.querySelector(`*[data-content="${$.id}"]`);
|
|
4313
|
+
if (R === S.targetEl)
|
|
4304
4314
|
Y.push($), he = T < C.children.length - 1 ? C.children.slice(T + 1) : [];
|
|
4305
4315
|
else if (ae && ae.contains(S.cut))
|
|
4306
4316
|
n = Date.now(), S.cut.dataset.cutkey = n, $.content = ae.innerHTML, Y.push($), he = [{ ...$, content: ae.innerHTML }, ...T < C.children.length - 1 ? C.children.slice(T + 1) : []], p[p.length - 1].height = _e(S.cut).top - y.top;
|
|
@@ -4308,27 +4318,27 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4308
4318
|
if (!he.length) {
|
|
4309
4319
|
let f = { ...$ };
|
|
4310
4320
|
switch ($.problemType) {
|
|
4311
|
-
case
|
|
4312
|
-
const v =
|
|
4313
|
-
v != null && v.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = v.innerHTML),
|
|
4321
|
+
case We.slove:
|
|
4322
|
+
const v = R.querySelector(`*[data-area="${$.id}"]`);
|
|
4323
|
+
v != null && v.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = v.innerHTML), R.contains(S.targetEl) && ($.chunk += 1);
|
|
4314
4324
|
break;
|
|
4315
|
-
case
|
|
4325
|
+
case We.art:
|
|
4316
4326
|
if ($.artEditor) {
|
|
4317
|
-
const k =
|
|
4318
|
-
k != null && k.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = k.innerHTML),
|
|
4327
|
+
const k = R.querySelector(`*[data-area="${$.id}"]`);
|
|
4328
|
+
k != null && k.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = k.innerHTML), R.contains(S.targetEl) && ($.chunk += 1);
|
|
4319
4329
|
break;
|
|
4320
4330
|
} else {
|
|
4321
|
-
const k =
|
|
4331
|
+
const k = R.querySelector(`*[data-bart="${$.id}"]`), D = S.targetEl.dataset.block === Se && S.targetEl.dataset.size ? S.targetEl : null, K = R.querySelector(`*[data-aart="${$.id}"]`);
|
|
4322
4332
|
if (k != null && k.contains(S.cut))
|
|
4323
4333
|
n = Date.now(), S.cut.dataset.cutkey = n, $.beforeArt = k == null ? void 0 : k.innerHTML, f.beforeGuide = "", f.afterArt = "", f.endAnswerLen = -1;
|
|
4324
|
-
else if (
|
|
4325
|
-
const E = parseInt(
|
|
4334
|
+
else if (D) {
|
|
4335
|
+
const E = parseInt(D.dataset.size);
|
|
4326
4336
|
if (!$.artBlock)
|
|
4327
4337
|
if ($.beforeGuide && $.beforeGuide.length + ($.startAnswerLen ? 0 : 2) - $.startAnswerLen > E) {
|
|
4328
|
-
const W =
|
|
4338
|
+
const W = R.querySelector(`*[data-guide="${$.id}"]`), Ce = _e(W);
|
|
4329
4339
|
if (Ce.height + Ce.top - y.top > y.height) {
|
|
4330
4340
|
W.innerHTML = $.beforeGuide.split("").map((g) => `<span>${g}</span>`).join("");
|
|
4331
|
-
const $e = _e(
|
|
4341
|
+
const $e = _e(D).top + D.offsetHeight, be = [...Array.from(W.children)].findIndex((g) => _e(g).top > $e);
|
|
4332
4342
|
f.beforeGuide = $.beforeGuide.substring(0, be), $.beforeGuide = $.beforeGuide.substring(be);
|
|
4333
4343
|
} else
|
|
4334
4344
|
$.beforeGuide = "";
|
|
@@ -4337,11 +4347,11 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4337
4347
|
f.endAnswerLen = E, $.startAnswerLen = E;
|
|
4338
4348
|
} else
|
|
4339
4349
|
K != null && K.contains(S.cut) ? (n = Date.now(), S.cut.dataset.cutkey = n, $.beforeArt = "", $.beforeGuide = "", $.startAnswerLen = 1, $.endAnswerLen = -1, $.afterArt = K.innerHTML) : S.targetEl === k ? (f.endAnswerLen = -1, f.beforeGuide = "", f.afterArt = "", $.beforeArt = "") : (k == null ? void 0 : k.previousElementSibling) === S.cut && (f.endAnswerLen = -1, f.beforeArt = "", f.beforeGuide = "", f.afterArt = "");
|
|
4340
|
-
|
|
4350
|
+
R.contains(S.targetEl) && ($.chunk += 1);
|
|
4341
4351
|
break;
|
|
4342
4352
|
}
|
|
4343
4353
|
}
|
|
4344
|
-
|
|
4354
|
+
R.contains(S.targetEl) && Y.push(f), n && (p[p.length - 1].height = _e(S.cut).top - y.top);
|
|
4345
4355
|
}
|
|
4346
4356
|
he = [$, ...T < C.children.length - 1 ? C.children.slice(T + 1) : []];
|
|
4347
4357
|
}
|
|
@@ -4351,7 +4361,7 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4351
4361
|
Y.push($);
|
|
4352
4362
|
}), b)
|
|
4353
4363
|
return;
|
|
4354
|
-
p[p.length - 1].data[p[p.length - 1].data.length - 1].children = Y, he.length ? (
|
|
4364
|
+
p[p.length - 1].data[p[p.length - 1].data.length - 1].children = Y, he.length ? (N(), q({ ...C, isHidden: !0, children: he })) : (a([...p]), M++, q());
|
|
4355
4365
|
}
|
|
4356
4366
|
});
|
|
4357
4367
|
};
|
|
@@ -4375,8 +4385,8 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4375
4385
|
emits: ["change", "focus", "blur"],
|
|
4376
4386
|
setup(e, { emit: t }) {
|
|
4377
4387
|
const o = e, l = Kt("ckeditorOrigin", ""), c = U();
|
|
4378
|
-
Oe(() => o.readonly, () =>
|
|
4379
|
-
const
|
|
4388
|
+
Oe(() => o.readonly, () => i()), Ke(() => i());
|
|
4389
|
+
const i = () => {
|
|
4380
4390
|
if (window.CKEDITOR) {
|
|
4381
4391
|
if (o.readonly) {
|
|
4382
4392
|
c.value && (c.value.destroy(), c.value = null);
|
|
@@ -4390,33 +4400,33 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4390
4400
|
} else {
|
|
4391
4401
|
const n = document.createElement("script");
|
|
4392
4402
|
n.type = "text/javascript", document.body.appendChild(n), n.onload = () => {
|
|
4393
|
-
|
|
4403
|
+
i();
|
|
4394
4404
|
}, n.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
|
|
4395
4405
|
}
|
|
4396
4406
|
}, a = () => {
|
|
4397
4407
|
t("blur");
|
|
4398
4408
|
const n = y(c.value.getData());
|
|
4399
4409
|
n !== o.value && t("change", n, o.name);
|
|
4400
|
-
},
|
|
4410
|
+
}, s = () => {
|
|
4401
4411
|
t("focus");
|
|
4402
4412
|
}, y = (n) => {
|
|
4403
4413
|
const d = document.createElement("div");
|
|
4404
4414
|
d.innerHTML = n, [...Array.from(d.querySelectorAll("*"))].forEach((p) => {
|
|
4405
|
-
const
|
|
4406
|
-
(
|
|
4415
|
+
const M = window.getComputedStyle(p);
|
|
4416
|
+
(M.display === "none" || M.width === "0px" && M.height === "0px" || M.opacity === "0" || M.visibility === "hidden") && p.remove();
|
|
4407
4417
|
});
|
|
4408
|
-
const
|
|
4409
|
-
[...Array.from(p.childNodes)].forEach((
|
|
4410
|
-
var
|
|
4411
|
-
if (
|
|
4412
|
-
|
|
4413
|
-
else if (
|
|
4418
|
+
const B = (p = d) => {
|
|
4419
|
+
[...Array.from(p.childNodes)].forEach((M) => {
|
|
4420
|
+
var N;
|
|
4421
|
+
if (M.nodeType === Node.ELEMENT_NODE && M.children.length)
|
|
4422
|
+
B(M);
|
|
4423
|
+
else if (M.nodeType === Node.TEXT_NODE) {
|
|
4414
4424
|
const V = document.createElement("span");
|
|
4415
|
-
V.textContent =
|
|
4425
|
+
V.textContent = M.textContent, window.REGULAR.underscore.test(M.textContent || "") && (window.getComputedStyle(M.parentNode).wordBreak !== "break-all" || !(M.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (M.textContent || "").length > 5 && (V.innerHTML = (M.textContent || "").replace(window.REGULAR.underscore, (q) => q.length > 5 ? `<span style="word-break: break-all">${q}</span>` : q)), (N = M.parentElement) == null || N.replaceChild(V, M);
|
|
4416
4426
|
}
|
|
4417
4427
|
});
|
|
4418
4428
|
};
|
|
4419
|
-
return
|
|
4429
|
+
return B(), d.innerHTML;
|
|
4420
4430
|
};
|
|
4421
4431
|
return (n, d) => (r(), h("div", Ns, [
|
|
4422
4432
|
o.readonly ? (r(), ee(Ne, {
|
|
@@ -4429,32 +4439,32 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4429
4439
|
disabled: o.readonly,
|
|
4430
4440
|
contentEditable: !o.readonly,
|
|
4431
4441
|
id: F(wt),
|
|
4432
|
-
onFocus:
|
|
4442
|
+
onFocus: s,
|
|
4433
4443
|
onBlur: a
|
|
4434
4444
|
}, null, 40, Os))
|
|
4435
4445
|
]));
|
|
4436
4446
|
}
|
|
4437
4447
|
});
|
|
4438
|
-
const
|
|
4439
|
-
let
|
|
4448
|
+
const Rs = /* @__PURE__ */ me(zs, [["__scopeId", "data-v-1398ac85"]]);
|
|
4449
|
+
let je = (e) => {
|
|
4440
4450
|
};
|
|
4441
|
-
const
|
|
4451
|
+
const Hs = {
|
|
4442
4452
|
updated: function(e, t) {
|
|
4443
|
-
document.body.removeEventListener("click",
|
|
4453
|
+
document.body.removeEventListener("click", je), je = (o) => {
|
|
4444
4454
|
!e.contains(o.target) && t.value && t.value(o);
|
|
4445
|
-
}, document.body.addEventListener("click",
|
|
4455
|
+
}, document.body.addEventListener("click", je);
|
|
4446
4456
|
},
|
|
4447
4457
|
unmounted: () => {
|
|
4448
|
-
document.body.removeEventListener("click",
|
|
4458
|
+
document.body.removeEventListener("click", je);
|
|
4449
4459
|
}
|
|
4450
4460
|
};
|
|
4451
4461
|
let ut = null;
|
|
4452
4462
|
const Ws = {
|
|
4453
4463
|
mounted: (e, t) => {
|
|
4454
|
-
let o = {}, l = !1, c = !1,
|
|
4464
|
+
let o = {}, l = !1, c = !1, i = e.offsetParent, a = {}, s = {};
|
|
4455
4465
|
const y = e.querySelector(".move-target") || e;
|
|
4456
4466
|
y.style.cursor = "move", y.addEventListener("mousedown", (n) => {
|
|
4457
|
-
l = !0, c = !!e.dataset.safe,
|
|
4467
|
+
l = !0, c = !!e.dataset.safe, i = e.offsetParent;
|
|
4458
4468
|
const d = window.getComputedStyle(e);
|
|
4459
4469
|
o = { x: n.clientX, y: n.clientY }, a = { x: parseInt(d.left), y: parseInt(d.top) };
|
|
4460
4470
|
}), document.addEventListener("mouseup", (n) => {
|
|
@@ -4462,9 +4472,9 @@ const Ws = {
|
|
|
4462
4472
|
}), ut = (n) => {
|
|
4463
4473
|
if (!l || e.getAttribute("disabled") === "true")
|
|
4464
4474
|
return;
|
|
4465
|
-
n.stopPropagation(), n.preventDefault(),
|
|
4466
|
-
const d = c ? Math.min(Math.max(
|
|
4467
|
-
e.style.left = `${d}px`, e.style.top = `${
|
|
4475
|
+
n.stopPropagation(), n.preventDefault(), s = { x: n.clientX, y: n.clientY };
|
|
4476
|
+
const d = c ? Math.min(Math.max(s.x - o.x + a.x, 0), i.offsetWidth - e.offsetWidth) : s.x - o.x + a.x, B = c ? Math.min(Math.max(s.y - o.y + a.y, 0), i.offsetHeight - e.offsetHeight) : s.y - o.y + a.y;
|
|
4477
|
+
e.style.left = `${d}px`, e.style.top = `${B}px`, t.value && typeof t.value == "function" && t.value({ x: d, y: B });
|
|
4468
4478
|
}, document.addEventListener("mousemove", ut);
|
|
4469
4479
|
},
|
|
4470
4480
|
unmounted: () => {
|
|
@@ -4480,7 +4490,7 @@ const Ws = {
|
|
|
4480
4490
|
},
|
|
4481
4491
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4482
4492
|
setup(e, { emit: t }) {
|
|
4483
|
-
const o = e, l =
|
|
4493
|
+
const o = e, l = Hs, c = Ws, i = [
|
|
4484
4494
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4485
4495
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4486
4496
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4489,48 +4499,48 @@ const Ws = {
|
|
|
4489
4499
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4490
4500
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4491
4501
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4492
|
-
], a = U({}),
|
|
4502
|
+
], a = U({}), s = U(), y = U(0), n = U(0), d = U(), B = U(), p = U({}), M = U(!1), N = U(), V = U(), X = U(), q = H(() => o.imgData.map((f) => ({
|
|
4493
4503
|
...f,
|
|
4494
4504
|
top: f.top - Math.floor(f.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4495
|
-
}))), C =
|
|
4505
|
+
}))), C = H(() => o.txtData.map((f) => ({
|
|
4496
4506
|
...f,
|
|
4497
4507
|
top: f.top - Math.floor(f.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4498
|
-
}))),
|
|
4499
|
-
|
|
4508
|
+
}))), P = H(() => N.value ? N.value.split("-")[0] === "img" ? q.value.find((v) => v.key === N.value) : C.value.find((v) => v.key === N.value) : null), j = H(() => P.value ? { [P.value.key]: { ...s.value } } : {});
|
|
4509
|
+
Ke(() => {
|
|
4500
4510
|
d.value = document.body.querySelector(".__layout__");
|
|
4501
4511
|
});
|
|
4502
4512
|
const S = (f) => {
|
|
4503
|
-
|
|
4513
|
+
s.value = { ...P.value, left: Math.max(f.x, 0), top: Math.max(f.y, 0) }, clearTimeout(B.value), B.value = setTimeout(() => {
|
|
4504
4514
|
var v;
|
|
4505
|
-
((v =
|
|
4515
|
+
((v = P.value) == null ? void 0 : v.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4506
4516
|
}, 400);
|
|
4507
4517
|
}, Y = (f) => {
|
|
4508
|
-
|
|
4518
|
+
M.value = f;
|
|
4509
4519
|
}, he = () => {
|
|
4510
|
-
const f =
|
|
4511
|
-
p.value = { x: v +
|
|
4520
|
+
const f = P.value, v = f.left + f.width / 2, k = f.top + f.height / 2, D = d.value.getBoundingClientRect() || {};
|
|
4521
|
+
p.value = { x: v + D.left, y: k + D.top }, d.value.addEventListener("mousemove", b), d.value.addEventListener("mouseleave", $), d.value.addEventListener("mouseup", $);
|
|
4512
4522
|
}, b = (f) => {
|
|
4513
4523
|
f.stopPropagation(), f.preventDefault();
|
|
4514
|
-
const v = f.clientX - p.value.x, k = p.value.y - f.clientY,
|
|
4515
|
-
|
|
4524
|
+
const v = f.clientX - p.value.x, k = p.value.y - f.clientY, D = Math.atan2(k, v) / (Math.PI / 180);
|
|
4525
|
+
s.value = { ...P.value, rotate: -parseInt(D.toString()) };
|
|
4516
4526
|
}, $ = (f) => {
|
|
4517
|
-
f.stopPropagation(), f.preventDefault(), t("changeAbsImgItem",
|
|
4527
|
+
f.stopPropagation(), f.preventDefault(), t("changeAbsImgItem", s.value), d.value.removeEventListener("mousemove", b), d.value.removeEventListener("mouseleave", $), d.value.removeEventListener("mouseup", $);
|
|
4518
4528
|
}, T = (f, v) => {
|
|
4519
4529
|
var k;
|
|
4520
|
-
f.stopPropagation(), y.value = v, a.value = { x: f.clientX, y: f.clientY, ...
|
|
4521
|
-
},
|
|
4522
|
-
const v = { x: f.clientX - a.value.x, y: f.clientY - a.value.y }, k = { ...
|
|
4530
|
+
f.stopPropagation(), y.value = v, a.value = { x: f.clientX, y: f.clientY, ...P.value }, ((k = P.value) == null ? void 0 : k.key.split("-")[0]) === "img" ? d.value.addEventListener("mousemove", R) : d.value.addEventListener("mousemove", ce), d.value.addEventListener("mouseleave", Q), d.value.addEventListener("mouseup", Q);
|
|
4531
|
+
}, R = (f) => {
|
|
4532
|
+
const v = { x: f.clientX - a.value.x, y: f.clientY - a.value.y }, k = { ...P.value }, D = v.x > v.y ? "width" : "height";
|
|
4523
4533
|
[
|
|
4524
4534
|
// 0
|
|
4525
4535
|
() => {
|
|
4526
4536
|
const E = {
|
|
4527
4537
|
width: a.value.width - v.x,
|
|
4528
4538
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4529
|
-
}[
|
|
4539
|
+
}[D], W = {
|
|
4530
4540
|
width: a.value.height * (1 - v.x / a.value.width),
|
|
4531
4541
|
height: a.value.height - v.y
|
|
4532
|
-
}[
|
|
4533
|
-
|
|
4542
|
+
}[D];
|
|
4543
|
+
s.value = {
|
|
4534
4544
|
...k,
|
|
4535
4545
|
width: E,
|
|
4536
4546
|
height: W,
|
|
@@ -4541,7 +4551,7 @@ const Ws = {
|
|
|
4541
4551
|
// 1
|
|
4542
4552
|
() => {
|
|
4543
4553
|
const E = a.value.width * (1 - v.y / a.value.height), W = a.value.height - v.y;
|
|
4544
|
-
|
|
4554
|
+
s.value = {
|
|
4545
4555
|
...k,
|
|
4546
4556
|
width: E,
|
|
4547
4557
|
height: W,
|
|
@@ -4554,13 +4564,13 @@ const Ws = {
|
|
|
4554
4564
|
const E = {
|
|
4555
4565
|
width: a.value.height * (1 + v.x / a.value.width),
|
|
4556
4566
|
height: a.value.height - v.y
|
|
4557
|
-
}[
|
|
4558
|
-
|
|
4567
|
+
}[D];
|
|
4568
|
+
s.value = {
|
|
4559
4569
|
...k,
|
|
4560
4570
|
width: {
|
|
4561
4571
|
width: a.value.width + v.x,
|
|
4562
4572
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4563
|
-
}[
|
|
4573
|
+
}[D],
|
|
4564
4574
|
height: E,
|
|
4565
4575
|
top: a.value.top - (E - a.value.height)
|
|
4566
4576
|
};
|
|
@@ -4568,7 +4578,7 @@ const Ws = {
|
|
|
4568
4578
|
// 3
|
|
4569
4579
|
() => {
|
|
4570
4580
|
const E = a.value.width - v.x, W = a.value.height * (1 - v.x / a.value.width);
|
|
4571
|
-
|
|
4581
|
+
s.value = {
|
|
4572
4582
|
...k,
|
|
4573
4583
|
width: E,
|
|
4574
4584
|
height: W,
|
|
@@ -4579,7 +4589,7 @@ const Ws = {
|
|
|
4579
4589
|
// 4
|
|
4580
4590
|
() => {
|
|
4581
4591
|
const E = a.value.width + v.x, W = a.value.height * (1 + v.x / a.value.width);
|
|
4582
|
-
|
|
4592
|
+
s.value = {
|
|
4583
4593
|
...k,
|
|
4584
4594
|
width: E,
|
|
4585
4595
|
height: W,
|
|
@@ -4591,11 +4601,11 @@ const Ws = {
|
|
|
4591
4601
|
const E = {
|
|
4592
4602
|
width: a.value.width - v.x,
|
|
4593
4603
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4594
|
-
}[
|
|
4604
|
+
}[D], W = {
|
|
4595
4605
|
width: a.value.height * (1 - v.x / a.value.width),
|
|
4596
4606
|
height: a.value.height + v.y
|
|
4597
|
-
}[
|
|
4598
|
-
|
|
4607
|
+
}[D];
|
|
4608
|
+
s.value = {
|
|
4599
4609
|
...k,
|
|
4600
4610
|
width: E,
|
|
4601
4611
|
height: W,
|
|
@@ -4605,7 +4615,7 @@ const Ws = {
|
|
|
4605
4615
|
// 6
|
|
4606
4616
|
() => {
|
|
4607
4617
|
const E = a.value.width * (1 + v.y / a.value.height), W = a.value.height + v.y;
|
|
4608
|
-
|
|
4618
|
+
s.value = {
|
|
4609
4619
|
...k,
|
|
4610
4620
|
width: E,
|
|
4611
4621
|
height: W,
|
|
@@ -4617,11 +4627,11 @@ const Ws = {
|
|
|
4617
4627
|
const E = {
|
|
4618
4628
|
width: a.value.width + v.x,
|
|
4619
4629
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4620
|
-
}[
|
|
4630
|
+
}[D], W = {
|
|
4621
4631
|
width: a.value.height * (1 + v.x / a.value.width),
|
|
4622
4632
|
height: a.value.height + v.y
|
|
4623
|
-
}[
|
|
4624
|
-
|
|
4633
|
+
}[D];
|
|
4634
|
+
s.value = {
|
|
4625
4635
|
...k,
|
|
4626
4636
|
width: E,
|
|
4627
4637
|
height: W
|
|
@@ -4629,7 +4639,7 @@ const Ws = {
|
|
|
4629
4639
|
}
|
|
4630
4640
|
][y.value]();
|
|
4631
4641
|
}, ce = (f) => {
|
|
4632
|
-
const v = { x: f.clientX - a.value.x, y: f.clientY - a.value.y }, k = { ...
|
|
4642
|
+
const v = { x: f.clientX - a.value.x, y: f.clientY - a.value.y }, k = { ...P.value }, D = [
|
|
4633
4643
|
{
|
|
4634
4644
|
...k,
|
|
4635
4645
|
width: a.value.width - v.x,
|
|
@@ -4673,31 +4683,31 @@ const Ws = {
|
|
|
4673
4683
|
height: a.value.height + v.y
|
|
4674
4684
|
}
|
|
4675
4685
|
];
|
|
4676
|
-
|
|
4686
|
+
s.value = D[y.value];
|
|
4677
4687
|
}, Q = () => {
|
|
4678
4688
|
var f;
|
|
4679
|
-
d.value.removeEventListener("mousemove",
|
|
4689
|
+
d.value.removeEventListener("mousemove", R), d.value.removeEventListener("mousemove", ce), d.value.removeEventListener("mouseleave", Q), d.value.removeEventListener("mouseup", Q), ((f = P.value) == null ? void 0 : f.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4680
4690
|
}, de = (f) => {
|
|
4681
|
-
if (!f || f ===
|
|
4691
|
+
if (!f || f === P.value.content) {
|
|
4682
4692
|
n.value++;
|
|
4683
4693
|
return;
|
|
4684
4694
|
}
|
|
4685
|
-
t("changeAbsTxtItem", { ...
|
|
4695
|
+
t("changeAbsTxtItem", { ...P.value, content: f });
|
|
4686
4696
|
}, ae = (f, v) => {
|
|
4687
|
-
var
|
|
4697
|
+
var D;
|
|
4688
4698
|
const k = document.body.querySelector(`.cke_editor_${wt}`);
|
|
4689
|
-
!f && ((
|
|
4699
|
+
!f && ((D = (v == null ? void 0 : v.target).dataset) != null && D.safe || [...V.value, ...X.value].find((K) => K.contains(v == null ? void 0 : v.target)) || k && window.getComputedStyle(k).display !== "none") || (N.value = f == null ? void 0 : f.key, s.value = f ? { ...f } : null);
|
|
4690
4700
|
};
|
|
4691
4701
|
return (f, v) => (r(), h(O, null, [
|
|
4692
4702
|
(r(!0), h(O, null, ne(q.value, (k) => {
|
|
4693
|
-
var
|
|
4703
|
+
var D, K, E, W, Ce, $e, be;
|
|
4694
4704
|
return $t((r(), h("div", {
|
|
4695
4705
|
key: k.id,
|
|
4696
4706
|
ref_for: !0,
|
|
4697
4707
|
ref_key: "imgViewList",
|
|
4698
4708
|
ref: V,
|
|
4699
4709
|
"data-safe": "true",
|
|
4700
|
-
class: oe(["absolute", ((
|
|
4710
|
+
class: oe(["absolute", ((D = P.value) == null ? void 0 : D.key) === k.key ? "z-8" : "z-7"]),
|
|
4701
4711
|
style: Z({ left: Math.max(((K = j.value[k.key]) == null ? void 0 : K.left) || k.left, 0) + "px", top: Math.max(((E = j.value[k.key]) == null ? void 0 : E.top) || k.top, 0) + "px", width: (((W = j.value[k.key]) == null ? void 0 : W.width) || k.width) + "px", height: (((Ce = j.value[k.key]) == null ? void 0 : Ce.height) || k.height) + "px", transform: `rotate(${(($e = j.value[k.key]) == null ? void 0 : $e.rotate) || k.rotate}deg)` }),
|
|
4702
4712
|
onMousedown: De((g) => ae(k), ["stop"]),
|
|
4703
4713
|
"data-block": F(Ae)
|
|
@@ -4705,7 +4715,7 @@ const Ws = {
|
|
|
4705
4715
|
w("img", {
|
|
4706
4716
|
src: k.url
|
|
4707
4717
|
}, null, 8, Qs),
|
|
4708
|
-
((be =
|
|
4718
|
+
((be = P.value) == null ? void 0 : be.key) === k.key ? (r(), h(O, { key: 0 }, [
|
|
4709
4719
|
w("span", qs, [
|
|
4710
4720
|
le(ge, {
|
|
4711
4721
|
name: "close",
|
|
@@ -4718,7 +4728,7 @@ const Ws = {
|
|
|
4718
4728
|
(r(), h(O, null, ne(8, (g, I) => w("div", {
|
|
4719
4729
|
key: g,
|
|
4720
4730
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4721
|
-
style: Z({ ...
|
|
4731
|
+
style: Z({ ...i[I], transform: "translate(-50%, -50%)" }),
|
|
4722
4732
|
onMousedown: De((ye) => T(ye, I), ["stop"])
|
|
4723
4733
|
}, null, 44, Ks)), 64))
|
|
4724
4734
|
]),
|
|
@@ -4731,37 +4741,37 @@ const Ws = {
|
|
|
4731
4741
|
width: 2
|
|
4732
4742
|
})
|
|
4733
4743
|
], 40, Us)
|
|
4734
|
-
], 64)) :
|
|
4744
|
+
], 64)) : A("", !0)
|
|
4735
4745
|
], 46, Gs)), [
|
|
4736
4746
|
[F(c), S],
|
|
4737
4747
|
[F(l), (g) => ae(null, g)]
|
|
4738
4748
|
]);
|
|
4739
4749
|
}), 128)),
|
|
4740
4750
|
(r(!0), h(O, null, ne(C.value, (k) => {
|
|
4741
|
-
var
|
|
4751
|
+
var D, K, E, W, Ce, $e, be;
|
|
4742
4752
|
return $t((r(), h("div", {
|
|
4743
4753
|
key: k.id,
|
|
4744
4754
|
ref_for: !0,
|
|
4745
4755
|
ref_key: "txtViewList",
|
|
4746
4756
|
ref: X,
|
|
4747
|
-
disabled:
|
|
4757
|
+
disabled: M.value,
|
|
4748
4758
|
"data-safe": "true",
|
|
4749
|
-
class: oe(["absolute", ((
|
|
4759
|
+
class: oe(["absolute", ((D = P.value) == null ? void 0 : D.key) === k.key ? "z-8 bg-white" : "z-7"]),
|
|
4750
4760
|
style: Z({ left: Math.max(((K = j.value[k.key]) == null ? void 0 : K.left) || k.left, 0) + "px", top: Math.max(((E = j.value[k.key]) == null ? void 0 : E.top) || k.top, 0) + "px", width: (((W = j.value[k.key]) == null ? void 0 : W.width) || k.width) + "px", height: (((Ce = j.value[k.key]) == null ? void 0 : Ce.height) || k.height) + "px" }),
|
|
4751
4761
|
onMousedown: De((g) => ae(k), ["stop"]),
|
|
4752
4762
|
"data-block": F(Ae)
|
|
4753
4763
|
}, [
|
|
4754
|
-
(r(), ee(
|
|
4764
|
+
(r(), ee(Rs, {
|
|
4755
4765
|
key: n.value,
|
|
4756
4766
|
class: "border-0 relative z-4",
|
|
4757
|
-
readonly: (($e =
|
|
4767
|
+
readonly: (($e = P.value) == null ? void 0 : $e.key) !== k.key,
|
|
4758
4768
|
value: k.content,
|
|
4759
4769
|
name: k.id.toString(),
|
|
4760
4770
|
onChange: de,
|
|
4761
4771
|
onFocus: v[0] || (v[0] = (g) => Y(!0)),
|
|
4762
4772
|
onBlur: v[1] || (v[1] = (g) => Y(!1))
|
|
4763
4773
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4764
|
-
((be =
|
|
4774
|
+
((be = P.value) == null ? void 0 : be.key) === k.key ? (r(), h(O, { key: 0 }, [
|
|
4765
4775
|
w("span", js, [
|
|
4766
4776
|
le(ge, {
|
|
4767
4777
|
name: "close",
|
|
@@ -4774,11 +4784,11 @@ const Ws = {
|
|
|
4774
4784
|
(r(), h(O, null, ne(8, (g, I) => w("div", {
|
|
4775
4785
|
key: g,
|
|
4776
4786
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4777
|
-
style: Z({ ...
|
|
4787
|
+
style: Z({ ...i[I], transform: "translate(-50%, -50%)" }),
|
|
4778
4788
|
onMousedown: (ye) => T(ye, I)
|
|
4779
4789
|
}, null, 44, Js)), 64))
|
|
4780
4790
|
])
|
|
4781
|
-
], 64)) :
|
|
4791
|
+
], 64)) : A("", !0)
|
|
4782
4792
|
], 46, Vs)), [
|
|
4783
4793
|
[F(c), S],
|
|
4784
4794
|
[F(l), (g) => ae(null, g)]
|
|
@@ -4810,42 +4820,42 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4810
4820
|
setup(e, { emit: t }) {
|
|
4811
4821
|
const o = e;
|
|
4812
4822
|
Ut("ckeditorOrigin", o.ckeditorOrigin);
|
|
4813
|
-
const l = U([]), c = U([]),
|
|
4823
|
+
const l = U([]), c = U([]), i = U(2), a = U(0), s = U(0), y = U(), n = U([]), d = U([]), B = U([]), p = U([]), M = H(() => o.data.map((g) => ({
|
|
4814
4824
|
...g,
|
|
4815
4825
|
__tag__: It(),
|
|
4816
4826
|
rawChildren: g.children,
|
|
4817
4827
|
children: g.children.map((I) => ({ ...I, ...de(I), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: It() }))
|
|
4818
|
-
}))),
|
|
4819
|
-
if (!
|
|
4828
|
+
}))), N = H(() => {
|
|
4829
|
+
if (!M.value.length)
|
|
4820
4830
|
return;
|
|
4821
|
-
const g =
|
|
4831
|
+
const g = M.value[M.value.length - 1], I = g.rawChildren[g.rawChildren.length - 1];
|
|
4822
4832
|
return j.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
|
|
4823
|
-
}), V =
|
|
4833
|
+
}), V = H(() => {
|
|
4824
4834
|
var g;
|
|
4825
|
-
return o.layout.bindFlag && !!((g =
|
|
4826
|
-
}), X =
|
|
4835
|
+
return o.layout.bindFlag && !!((g = Ge.find((I) => I.code === o.layout.paper)) != null && g.isMultCol);
|
|
4836
|
+
}), X = H(() => o.isFinal ? 0 : 10), q = H(() => o.isFinal ? 10 : 0), C = H(() => 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) || i.value || 1), P = H(() => Math.ceil(C.value / 2) * 2), j = H(() => ["sheet", "sheetCard"].includes(o.layout.mode)), S = H(() => j.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), Y = H(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || ft[o.layout.mode][o.layout.paper]), he = H(() => x[o.layout.paper].width - Y.value.left - Y.value.right), b = H(() => x[o.layout.paper].height - Y.value.top - Y.value.bottom), $ = H(() => (he.value - (s.value ? s.value + K(0) : 0) + K(0)) / o.layout.column - K(0)), T = H(() => ({
|
|
4827
4837
|
width: `${x[o.layout.paper].width}px`,
|
|
4828
|
-
height: `${(x[o.layout.paper].height + X.value) *
|
|
4829
|
-
})),
|
|
4838
|
+
height: `${(x[o.layout.paper].height + X.value) * P.value - X.value}px`
|
|
4839
|
+
})), R = H(() => ({
|
|
4830
4840
|
width: `${x[o.layout.paper].width}px`,
|
|
4831
4841
|
height: `${x[o.layout.paper].height}px`,
|
|
4832
4842
|
padding: `${Y.value.top}px ${Y.value.right}px ${Y.value.bottom}px ${Y.value.left}px`,
|
|
4833
4843
|
marginBottom: `${X.value}px`
|
|
4834
|
-
})), ce =
|
|
4844
|
+
})), ce = H(() => {
|
|
4835
4845
|
var I;
|
|
4836
|
-
const g = (I =
|
|
4846
|
+
const g = (I = Ge.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : I.isFullTitle;
|
|
4837
4847
|
return {
|
|
4838
|
-
left: `${Y.value.left + (
|
|
4848
|
+
left: `${Y.value.left + (s.value ? s.value + K(0) : 0)}px`,
|
|
4839
4849
|
top: `${Y.value.top}px`,
|
|
4840
4850
|
width: g ? `${he.value}px` : `${$.value}px`
|
|
4841
4851
|
};
|
|
4842
|
-
}), Q =
|
|
4852
|
+
}), Q = H(() => Bt.filter((g) => o.info.bindExtentInfo[g.code]).map((g) => o.info.bindExtentInfo[g.key]));
|
|
4843
4853
|
Oe(() => [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(""), () => {
|
|
4844
4854
|
setTimeout(() => {
|
|
4845
4855
|
$e();
|
|
4846
4856
|
}, 100);
|
|
4847
4857
|
}, { immediate: !0 }), Oe(() => V.value, () => {
|
|
4848
|
-
|
|
4858
|
+
s.value = V.value ? 100 : 0;
|
|
4849
4859
|
}, { immediate: !0 });
|
|
4850
4860
|
const de = (g) => {
|
|
4851
4861
|
let I = { ...g };
|
|
@@ -4864,13 +4874,13 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4864
4874
|
return I >= o.layout.column ? I - o.layout.column : I;
|
|
4865
4875
|
}, k = (g, I) => {
|
|
4866
4876
|
g ? n.value[I] = g : n.value.splice(I, 1);
|
|
4867
|
-
},
|
|
4877
|
+
}, D = (g, I) => {
|
|
4868
4878
|
g ? d.value[I] = g : d.value.splice(I, 1);
|
|
4869
|
-
}, K = (g) => At[o.layout.mode][o.layout.paper][ae(g)] || 0, E = (g, I = !1) => (he.value - (
|
|
4879
|
+
}, K = (g) => At[o.layout.mode][o.layout.paper][ae(g)] || 0, E = (g, I = !1) => (he.value - (s.value ? s.value + K(g) : 0) + K(g)) / ae(g) - K(g) - S.value.left - S.value.right + (I ? S.value.left + S.value.right : 0), W = (g, I) => {
|
|
4870
4880
|
var J, ie;
|
|
4871
|
-
const ye = g % (o.layout.column + o.layout.backColumn) ? 0 : ((J =
|
|
4881
|
+
const ye = g % (o.layout.column + o.layout.backColumn) ? 0 : ((J = B.value[Math.min(I, 1)]) == null ? void 0 : J.offsetHeight) || 0;
|
|
4872
4882
|
return {
|
|
4873
|
-
left: `${Y.value.left + (I % 2 ? 0 :
|
|
4883
|
+
left: `${Y.value.left + (I % 2 ? 0 : s.value ? s.value + K(g) : 0) + S.value.left + v(g) * (E(g) + K(g) + S.value.left + S.value.right)}px`,
|
|
4874
4884
|
top: `${ye + Y.value.top + (!I && !g ? 0 : S.value.top)}px`,
|
|
4875
4885
|
width: `${E(g)}px`,
|
|
4876
4886
|
height: `${b.value - ye - (!I && !g ? 0 : S.value.top) - S.value.bottom}px`,
|
|
@@ -4878,7 +4888,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4878
4888
|
};
|
|
4879
4889
|
}, Ce = (g, I = !1) => {
|
|
4880
4890
|
c.value = g.map((ye) => ({ ...ye })), I && (l.value = [...g], a.value += 1, nt(() => {
|
|
4881
|
-
|
|
4891
|
+
i.value = Math.ceil(l.value.length / o.layout.column), c.value = [], d.value.forEach((ye, J) => {
|
|
4882
4892
|
var ie, Te;
|
|
4883
4893
|
!ye || !ye.col || ((ie = l.value[J]) != null && ie.top ? ye.col.style.marginTop = `${(Te = l.value[J]) == null ? void 0 : Te.top}px` : ye.col.style.marginTop = "");
|
|
4884
4894
|
}), o.isFinal && setTimeout(() => {
|
|
@@ -4887,7 +4897,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4887
4897
|
...o.info,
|
|
4888
4898
|
layout: o.layout,
|
|
4889
4899
|
pageTotal: C.value,
|
|
4890
|
-
bindWidth:
|
|
4900
|
+
bindWidth: s.value,
|
|
4891
4901
|
pageMargin: X.value,
|
|
4892
4902
|
pageDom: n.value.slice(0, C.value),
|
|
4893
4903
|
colDom: d.value.map((J) => J.col),
|
|
@@ -4901,7 +4911,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4901
4911
|
}, $e = () => {
|
|
4902
4912
|
As({
|
|
4903
4913
|
el: y.value,
|
|
4904
|
-
data:
|
|
4914
|
+
data: M.value,
|
|
4905
4915
|
column: o.layout.column,
|
|
4906
4916
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4907
4917
|
getColSize: W,
|
|
@@ -4913,7 +4923,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4913
4923
|
return (g, I) => {
|
|
4914
4924
|
var ye;
|
|
4915
4925
|
return r(), h(O, null, [
|
|
4916
|
-
g.readonly ?
|
|
4926
|
+
g.readonly ? A("", !0) : (r(), ee(Ps, {
|
|
4917
4927
|
key: 0,
|
|
4918
4928
|
ColList: l.value,
|
|
4919
4929
|
ColDom: d.value.map((J) => J.col),
|
|
@@ -4934,7 +4944,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4934
4944
|
ref: y
|
|
4935
4945
|
}, [
|
|
4936
4946
|
c.value.length ? (r(!0), h(O, { key: 0 }, ne((ye = c.value[c.value.length - 1]) == null ? void 0 : ye.data, (J, ie) => (r(), h(O, null, [
|
|
4937
|
-
J.isHidden ?
|
|
4947
|
+
J.isHidden ? A("", !0) : (r(), ee(Ft, {
|
|
4938
4948
|
key: 0,
|
|
4939
4949
|
item: J,
|
|
4940
4950
|
showColBorder: j.value,
|
|
@@ -4945,7 +4955,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4945
4955
|
key: 1,
|
|
4946
4956
|
class: oe([!J.children.length && J.problemType && "p-1 min-h-[2rem]"])
|
|
4947
4957
|
}, [
|
|
4948
|
-
(r(), ee(
|
|
4958
|
+
(r(), ee(Ve, {
|
|
4949
4959
|
data: J,
|
|
4950
4960
|
key: c.value.length,
|
|
4951
4961
|
layout: g.layout,
|
|
@@ -4953,14 +4963,14 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4953
4963
|
noPortrait: "",
|
|
4954
4964
|
width: E(c.value.length - 1)
|
|
4955
4965
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4956
|
-
], 2)) : (r(), ee(
|
|
4966
|
+
], 2)) : (r(), ee(Ve, {
|
|
4957
4967
|
data: J,
|
|
4958
4968
|
key: c.value.length,
|
|
4959
4969
|
layout: g.layout,
|
|
4960
4970
|
target: g.target,
|
|
4961
4971
|
width: E(c.value.length - 1)
|
|
4962
4972
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4963
|
-
], 64))), 256)) :
|
|
4973
|
+
], 64))), 256)) : A("", !0)
|
|
4964
4974
|
], 512),
|
|
4965
4975
|
w("div", {
|
|
4966
4976
|
class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", g.layout.redFlag && "red_mode", g.readonly && "pointer-events-none"]),
|
|
@@ -4983,12 +4993,12 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4983
4993
|
key: a.value
|
|
4984
4994
|
}, [
|
|
4985
4995
|
(r(), h("foreignObject", oi, [
|
|
4986
|
-
(r(!0), h(O, null, ne(
|
|
4996
|
+
(r(!0), h(O, null, ne(P.value, (J, ie) => (r(), h("div", {
|
|
4987
4997
|
key: J,
|
|
4988
4998
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4989
4999
|
ref_for: !0,
|
|
4990
5000
|
ref: (Te) => k(Te, ie),
|
|
4991
|
-
style: Z(
|
|
5001
|
+
style: Z(R.value)
|
|
4992
5002
|
}, [
|
|
4993
5003
|
ie < C.value ? (r(), h(O, { key: 0 }, [
|
|
4994
5004
|
le(Io, {
|
|
@@ -4997,7 +5007,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4997
5007
|
totalPage: C.value,
|
|
4998
5008
|
columnContentWidth: E(ie % 2 ? g.layout.column : 0, !0),
|
|
4999
5009
|
columnMargin: K(ie % 2 ? g.layout.column : 0),
|
|
5000
|
-
bindWidth:
|
|
5010
|
+
bindWidth: s.value,
|
|
5001
5011
|
padding: Y.value
|
|
5002
5012
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
5003
5013
|
g.layout.sloganFlag ? (r(), ee(Po, {
|
|
@@ -5005,13 +5015,13 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5005
5015
|
info: g.info,
|
|
5006
5016
|
layout: g.layout,
|
|
5007
5017
|
onChange: I[7] || (I[7] = (Te) => t("changeInfo", Te))
|
|
5008
|
-
}, null, 8, ["info", "layout"])) :
|
|
5018
|
+
}, null, 8, ["info", "layout"])) : A("", !0),
|
|
5009
5019
|
le(sl, {
|
|
5010
5020
|
ref_for: !0,
|
|
5011
5021
|
ref_key: "bindDom",
|
|
5012
5022
|
ref: p,
|
|
5013
5023
|
currentPage: ie,
|
|
5014
|
-
width:
|
|
5024
|
+
width: s.value,
|
|
5015
5025
|
height: b.value,
|
|
5016
5026
|
isBindFlag: V.value,
|
|
5017
5027
|
bindSeatType: g.layout.bindSeatType,
|
|
@@ -5021,7 +5031,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5021
5031
|
key: 1,
|
|
5022
5032
|
ref_for: !0,
|
|
5023
5033
|
ref_key: "titleDom",
|
|
5024
|
-
ref:
|
|
5034
|
+
ref: B,
|
|
5025
5035
|
class: oe(["absolute text-black", ie === 1 && C.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5026
5036
|
style: Z(ce.value)
|
|
5027
5037
|
}, [
|
|
@@ -5046,7 +5056,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5046
5056
|
layout: g.layout,
|
|
5047
5057
|
isBindFlag: V.value
|
|
5048
5058
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5049
|
-
ie ?
|
|
5059
|
+
ie ? A("", !0) : (r(), ee(Va, {
|
|
5050
5060
|
key: 0,
|
|
5051
5061
|
layout: g.layout,
|
|
5052
5062
|
data: g.data
|
|
@@ -5055,23 +5065,23 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5055
5065
|
key: 1,
|
|
5056
5066
|
info: g.info,
|
|
5057
5067
|
layout: g.layout
|
|
5058
|
-
}, null, 8, ["info", "layout"])) :
|
|
5059
|
-
], 6)) :
|
|
5068
|
+
}, null, 8, ["info", "layout"])) : A("", !0)
|
|
5069
|
+
], 6)) : A("", !0),
|
|
5060
5070
|
(r(!0), h(O, null, ne(ie % 2 ? g.layout.backColumn : g.layout.column, (Te, Me) => (r(), ee(Xa, {
|
|
5061
5071
|
ref_for: !0,
|
|
5062
|
-
ref: (
|
|
5072
|
+
ref: (Ue) => D(Ue, f(Me, ie)),
|
|
5063
5073
|
styleInfo: W(f(Me, ie), ie),
|
|
5064
5074
|
column: g.layout.column,
|
|
5065
5075
|
currentColumn: f(Me, ie),
|
|
5066
5076
|
showColBorder: j.value
|
|
5067
5077
|
}, {
|
|
5068
5078
|
default: Mt(() => {
|
|
5069
|
-
var
|
|
5079
|
+
var Ue;
|
|
5070
5080
|
return [
|
|
5071
|
-
(r(!0), h(O, null, ne(((
|
|
5081
|
+
(r(!0), h(O, null, ne(((Ue = l.value[f(Me, ie)]) == null ? void 0 : Ue.data) || [], (ve, qt) => {
|
|
5072
5082
|
var kt;
|
|
5073
5083
|
return r(), h(O, null, [
|
|
5074
|
-
ve.isHidden ?
|
|
5084
|
+
ve.isHidden ? A("", !0) : (r(), ee(Ft, {
|
|
5075
5085
|
key: 0,
|
|
5076
5086
|
item: ve,
|
|
5077
5087
|
showColBorder: j.value,
|
|
@@ -5087,7 +5097,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5087
5097
|
onClick: De((Ie) => be({ type: ve.problemType ? F(z).headline : F(z).headlineNotarea, value: ve }), ["stop"]),
|
|
5088
5098
|
onDblclick: (Ie) => t("dbHeadLineClick", ve)
|
|
5089
5099
|
}, [
|
|
5090
|
-
le(
|
|
5100
|
+
le(Ve, {
|
|
5091
5101
|
data: ve,
|
|
5092
5102
|
layout: g.layout,
|
|
5093
5103
|
target: g.target,
|
|
@@ -5095,12 +5105,12 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5095
5105
|
onClick: I[10] || (I[10] = (Ie) => be({ type: Ie.problemType ? F(z).problem : F(z).problemNotarea, value: Ie })),
|
|
5096
5106
|
onDbclick: I[11] || (I[11] = (Ie) => t("dbProblemClick", Ie))
|
|
5097
5107
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5098
|
-
ve.children.length && ve.children[ve.children.length - 1].id ===
|
|
5108
|
+
ve.children.length && ve.children[ve.children.length - 1].id === N.value ? (r(), h("div", {
|
|
5099
5109
|
key: 0,
|
|
5100
5110
|
class: "border-t",
|
|
5101
5111
|
"data-block": F(Ae)
|
|
5102
|
-
}, null, 8, li)) :
|
|
5103
|
-
], 42, ai)) : (r(), ee(
|
|
5112
|
+
}, null, 8, li)) : A("", !0)
|
|
5113
|
+
], 42, ai)) : (r(), ee(Ve, {
|
|
5104
5114
|
key: 2,
|
|
5105
5115
|
data: ve,
|
|
5106
5116
|
layout: g.layout,
|
|
@@ -5115,7 +5125,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5115
5125
|
}),
|
|
5116
5126
|
_: 2
|
|
5117
5127
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
5118
|
-
], 64)) :
|
|
5128
|
+
], 64)) : A("", !0)
|
|
5119
5129
|
], 4))), 128))
|
|
5120
5130
|
]))
|
|
5121
5131
|
], 8, ti))
|