alit-layout 1.0.2 → 1.0.4
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 +239 -242
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as
|
|
1
|
+
import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as W, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as De, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Ve, nextTick as Ze, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as Tt, inject as Rt, withDirectives as ft, provide as Gt } from "vue";
|
|
2
2
|
const Lt = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -36,7 +36,7 @@ const Lt = {
|
|
|
36
36
|
another: "ADDITIONAL_QUESTION",
|
|
37
37
|
// 附加选做题
|
|
38
38
|
another_choice: "ADDITIONAL_CHOOSE_QUESTION"
|
|
39
|
-
},
|
|
39
|
+
}, Wt = {
|
|
40
40
|
// 文本
|
|
41
41
|
__text: "TXT",
|
|
42
42
|
// 文案
|
|
@@ -1347,7 +1347,7 @@ const Lt = {
|
|
|
1347
1347
|
]
|
|
1348
1348
|
}
|
|
1349
1349
|
}, no = {
|
|
1350
|
-
[
|
|
1350
|
+
[Wt.__cdest]: [
|
|
1351
1351
|
{
|
|
1352
1352
|
type: "radio",
|
|
1353
1353
|
label: "边框显示控制",
|
|
@@ -1613,26 +1613,26 @@ const Lt = {
|
|
|
1613
1613
|
(s(), d(M, null, V(["lt", "rt", "lb", "rb"], (u) => g("span", {
|
|
1614
1614
|
key: u,
|
|
1615
1615
|
class: "absolute w-8 bg-black point_item",
|
|
1616
|
-
style:
|
|
1616
|
+
style: W(o(u)),
|
|
1617
1617
|
"data-xine": x(C).point + u
|
|
1618
1618
|
}, null, 12, yo)), 64)),
|
|
1619
1619
|
(s(!0), d(M, null, V((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(M, { key: u }, [
|
|
1620
1620
|
(s(), d(M, null, V(["t", "b"], (y) => g("span", {
|
|
1621
1621
|
key: y,
|
|
1622
1622
|
class: "absolute bg-black w-8 point_item",
|
|
1623
|
-
style:
|
|
1623
|
+
style: W(n(u, y)),
|
|
1624
1624
|
"data-xine": x(C).point + y
|
|
1625
1625
|
}, null, 12, _o)), 64))
|
|
1626
1626
|
], 64))), 128)),
|
|
1627
1627
|
(s(), d(M, null, V(["l", "r"], (u) => g("span", {
|
|
1628
1628
|
key: u,
|
|
1629
1629
|
class: "absolute bg-black h-8",
|
|
1630
|
-
style:
|
|
1630
|
+
style: W(r(u)),
|
|
1631
1631
|
"data-xine": x(C).point + u
|
|
1632
1632
|
}, null, 12, fo)), 64)),
|
|
1633
1633
|
g("p", {
|
|
1634
1634
|
class: "absolute leading-none text-0",
|
|
1635
|
-
style:
|
|
1635
|
+
style: W(a()),
|
|
1636
1636
|
"data-xine": x(C).page
|
|
1637
1637
|
}, [
|
|
1638
1638
|
(s(!0), d(M, null, V(l.currentPage + 1, (u, y) => (s(), d("span", {
|
|
@@ -1644,22 +1644,22 @@ const Lt = {
|
|
|
1644
1644
|
l.currentPage % 2 ? P("", !0) : (s(), d("span", {
|
|
1645
1645
|
key: 0,
|
|
1646
1646
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1647
|
-
style:
|
|
1647
|
+
style: W({ right: `${l.padding.right - 12}px` })
|
|
1648
1648
|
}, "提示:本卷" + X((c = x(Oe).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
|
|
1649
1649
|
g("span", {
|
|
1650
1650
|
class: "absolute text-sm red_sheet",
|
|
1651
|
-
style:
|
|
1651
|
+
style: W({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
|
|
1652
1652
|
}, X(l.currentPage + 1) + "/" + X(l.totalPage), 5)
|
|
1653
1653
|
], 64);
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
1656
|
});
|
|
1657
|
-
const
|
|
1657
|
+
const ce = (e, t) => {
|
|
1658
1658
|
const o = e.__vccOpts || e;
|
|
1659
1659
|
for (const [a, n] of t)
|
|
1660
1660
|
o[a] = n;
|
|
1661
1661
|
return o;
|
|
1662
|
-
}, wo = /* @__PURE__ */
|
|
1662
|
+
}, wo = /* @__PURE__ */ ce(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1663
1663
|
key: 0,
|
|
1664
1664
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1665
1665
|
}, et = /* @__PURE__ */ Z({
|
|
@@ -1731,7 +1731,7 @@ const re = (e, t) => {
|
|
|
1731
1731
|
size: "small",
|
|
1732
1732
|
autoLine: "",
|
|
1733
1733
|
dir: "right",
|
|
1734
|
-
style:
|
|
1734
|
+
style: W(n.value),
|
|
1735
1735
|
onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
|
|
1736
1736
|
}, null, 8, ["value", "style"]));
|
|
1737
1737
|
}
|
|
@@ -1758,7 +1758,7 @@ const re = (e, t) => {
|
|
|
1758
1758
|
]));
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
|
-
const _e = /* @__PURE__ */
|
|
1761
|
+
const _e = /* @__PURE__ */ ce(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
|
|
1762
1762
|
key: 0,
|
|
1763
1763
|
class: "flex items-center"
|
|
1764
1764
|
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ Z({
|
|
@@ -1805,7 +1805,7 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1805
1805
|
}, zo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
|
|
1806
1806
|
key: 1,
|
|
1807
1807
|
class: "flex items-center w-40 mx-4"
|
|
1808
|
-
}, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1),
|
|
1808
|
+
}, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Go = /* @__PURE__ */ g("span", null, "分钟", -1), Wo = {
|
|
1809
1809
|
key: 2,
|
|
1810
1810
|
class: "flex mx-4 min-w-[80px]"
|
|
1811
1811
|
}, Yo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
|
|
@@ -1836,14 +1836,14 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1836
1836
|
K(Be, {
|
|
1837
1837
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1838
1838
|
value: l.info.title,
|
|
1839
|
-
style:
|
|
1839
|
+
style: W(l.fontConfig.titleStyle),
|
|
1840
1840
|
onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
|
|
1841
1841
|
}, null, 8, ["value", "style"]),
|
|
1842
1842
|
l.layout.secTitleFlag ? (s(), U(Be, {
|
|
1843
1843
|
key: 0,
|
|
1844
1844
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1845
1845
|
value: l.info.secTitle,
|
|
1846
|
-
style:
|
|
1846
|
+
style: W(l.fontConfig.halfTitleStyle),
|
|
1847
1847
|
onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
|
|
1848
1848
|
}, null, 8, ["value", "style"])) : P("", !0),
|
|
1849
1849
|
g("div", Bo, [
|
|
@@ -1866,9 +1866,9 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1866
1866
|
placeholder: "",
|
|
1867
1867
|
onChange: i[3] || (i[3] = (c) => t("change", { time: c }))
|
|
1868
1868
|
}, null, 8, ["value"]),
|
|
1869
|
-
|
|
1869
|
+
Go
|
|
1870
1870
|
])) : P("", !0),
|
|
1871
|
-
l.layout.authorFlag ? (s(), d("p",
|
|
1871
|
+
l.layout.authorFlag ? (s(), d("p", Wo, [
|
|
1872
1872
|
Yo,
|
|
1873
1873
|
K(Be, {
|
|
1874
1874
|
class: "flex-1",
|
|
@@ -1981,7 +1981,7 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1981
1981
|
], 8, aa));
|
|
1982
1982
|
}
|
|
1983
1983
|
});
|
|
1984
|
-
const bt = /* @__PURE__ */
|
|
1984
|
+
const bt = /* @__PURE__ */ ce(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ Z({
|
|
1985
1985
|
__name: "examInfoShort",
|
|
1986
1986
|
setup(e) {
|
|
1987
1987
|
return (t, o) => (s(), d("div", {
|
|
@@ -2014,7 +2014,7 @@ const bt = /* @__PURE__ */ re(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
2014
2014
|
], 8, ca));
|
|
2015
2015
|
}
|
|
2016
2016
|
});
|
|
2017
|
-
const vt = /* @__PURE__ */
|
|
2017
|
+
const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ Z({
|
|
2018
2018
|
__name: "examInfoBase",
|
|
2019
2019
|
props: {
|
|
2020
2020
|
extent: {}
|
|
@@ -2078,7 +2078,7 @@ const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2078
2078
|
]));
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
2081
|
-
const ka = /* @__PURE__ */
|
|
2081
|
+
const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
|
|
2082
2082
|
key: 0,
|
|
2083
2083
|
class: "flex border mt-2 red_sheet"
|
|
2084
2084
|
}, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ia = { class: "flex items-center flex-1 pl-2" }, Ta = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", null, "[", -1)), Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", { class: "ml-4" }, "]", -1)), Pa = [
|
|
@@ -2137,7 +2137,7 @@ const ka = /* @__PURE__ */ re(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2137
2137
|
], 64));
|
|
2138
2138
|
}
|
|
2139
2139
|
});
|
|
2140
|
-
const Ba = /* @__PURE__ */
|
|
2140
|
+
const Ba = /* @__PURE__ */ ce(Na, [["__scopeId", "data-v-936c144e"]]), wt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, a = "children") => {
|
|
2141
2141
|
let n = [];
|
|
2142
2142
|
const r = (l) => {
|
|
2143
2143
|
(l[a] || []).length ? (o && n.push(t ? l[t] : l[a]), l[a].forEach((i) => r(i))) : n.push(t ? l[t] : l);
|
|
@@ -2162,7 +2162,7 @@ const za = {
|
|
|
2162
2162
|
}, Ha = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col" }, [
|
|
2163
2163
|
/* @__PURE__ */ g("p", { class: "flex-1" }, "题号"),
|
|
2164
2164
|
/* @__PURE__ */ g("p", { class: "flex-1 border-t" }, "得分")
|
|
2165
|
-
], -1), Ra = { class: "flex-1" },
|
|
2165
|
+
], -1), Ra = { class: "flex-1" }, Ga = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Wa = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2166
2166
|
/* @__PURE__ */ g("p", { class: "flex-1" }, "总分"),
|
|
2167
2167
|
/* @__PURE__ */ g("p", { class: "flex-1 border-t" })
|
|
2168
2168
|
], -1), Ya = /* @__PURE__ */ Z({
|
|
@@ -2180,9 +2180,9 @@ const za = {
|
|
|
2180
2180
|
class: "flex-1 flex flex-col border-l"
|
|
2181
2181
|
}, [
|
|
2182
2182
|
g("p", Ra, X(x(Pt)(l)), 1),
|
|
2183
|
-
|
|
2183
|
+
Ga
|
|
2184
2184
|
]))), 128)),
|
|
2185
|
-
|
|
2185
|
+
Wa
|
|
2186
2186
|
])) : P("", !0);
|
|
2187
2187
|
}
|
|
2188
2188
|
}), qa = /* @__PURE__ */ Z({
|
|
@@ -2214,24 +2214,24 @@ const za = {
|
|
|
2214
2214
|
c.showColBorder ? (s(), d("div", {
|
|
2215
2215
|
key: 0,
|
|
2216
2216
|
class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
|
|
2217
|
-
style:
|
|
2217
|
+
style: W(r.value)
|
|
2218
2218
|
}, [
|
|
2219
2219
|
g("span", {
|
|
2220
2220
|
class: "absolute border border-black",
|
|
2221
|
-
style:
|
|
2221
|
+
style: W(l.value)
|
|
2222
2222
|
}, null, 4)
|
|
2223
2223
|
], 6)) : P("", !0),
|
|
2224
2224
|
g("div", {
|
|
2225
2225
|
class: "absolute overflow-hidden",
|
|
2226
2226
|
ref_key: "colView",
|
|
2227
2227
|
ref: n,
|
|
2228
|
-
style:
|
|
2228
|
+
style: W(c.styleInfo)
|
|
2229
2229
|
}, [
|
|
2230
2230
|
g("div", {
|
|
2231
2231
|
ref_key: "col",
|
|
2232
2232
|
ref: a,
|
|
2233
2233
|
class: "overflow-hidden __col__",
|
|
2234
|
-
style:
|
|
2234
|
+
style: W({ height: c.styleInfo.contentHeight })
|
|
2235
2235
|
}, [
|
|
2236
2236
|
it(c.$slots, "default", {}, void 0, !0)
|
|
2237
2237
|
], 4)
|
|
@@ -2239,7 +2239,7 @@ const za = {
|
|
|
2239
2239
|
], 64));
|
|
2240
2240
|
}
|
|
2241
2241
|
});
|
|
2242
|
-
const Qa = /* @__PURE__ */
|
|
2242
|
+
const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
|
|
2243
2243
|
ja
|
|
2244
2244
|
], Va = ["data-xine"], Za = /* @__PURE__ */ Z({
|
|
2245
2245
|
__name: "bind",
|
|
@@ -2253,7 +2253,7 @@ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2253
2253
|
const t = Q(), o = ["学校", "班级", "准考证号", "姓名"];
|
|
2254
2254
|
return (a, n) => a.isBindFlag ? (s(), d("div", {
|
|
2255
2255
|
key: 0,
|
|
2256
|
-
style:
|
|
2256
|
+
style: W({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
|
|
2257
2257
|
class: te([a.currentPage % 2 && "right_view"]),
|
|
2258
2258
|
ref_key: "view",
|
|
2259
2259
|
ref: t
|
|
@@ -2261,11 +2261,11 @@ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2261
2261
|
a.currentPage % 2 ? (s(), d("div", {
|
|
2262
2262
|
key: 0,
|
|
2263
2263
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2264
|
-
style:
|
|
2264
|
+
style: W({ width: `${a.height - 20}px`, height: `${a.width}px` })
|
|
2265
2265
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
|
|
2266
2266
|
key: 1,
|
|
2267
2267
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2268
|
-
style:
|
|
2268
|
+
style: W({ width: `${a.height - 20}px` })
|
|
2269
2269
|
}, [
|
|
2270
2270
|
(s(), d(M, null, V(o, (r) => g("p", {
|
|
2271
2271
|
key: r,
|
|
@@ -2285,7 +2285,7 @@ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2285
2285
|
], 6)) : P("", !0);
|
|
2286
2286
|
}
|
|
2287
2287
|
});
|
|
2288
|
-
const Ja = /* @__PURE__ */
|
|
2288
|
+
const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", kt = "MC5sZGN2NzJ0ZXE0bw", dt = "MC5yYjk3NGY2OTcyOA", ut = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ Z({
|
|
2289
2289
|
__name: "simple",
|
|
2290
2290
|
props: {
|
|
2291
2291
|
item: {},
|
|
@@ -2307,7 +2307,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
|
|
|
2307
2307
|
}, [
|
|
2308
2308
|
(s(!0), d(M, null, V(a.value, (l, i) => (s(), d("li", {
|
|
2309
2309
|
class: "flex items-center justify-center relative score_line",
|
|
2310
|
-
style:
|
|
2310
|
+
style: W({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
|
|
2311
2311
|
"data-xine": x(C).score_item
|
|
2312
2312
|
}, [
|
|
2313
2313
|
g("span", il, X(l), 1),
|
|
@@ -2362,7 +2362,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
|
|
|
2362
2362
|
}, [
|
|
2363
2363
|
(s(!0), d(M, null, V(h, (Y) => (s(), d("li", {
|
|
2364
2364
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2365
|
-
style:
|
|
2365
|
+
style: W({ width: `${x(je)[y.layout.scoreLineSize].value}px` }),
|
|
2366
2366
|
"data-xine": Y.toString() ? x(C).score_item : ""
|
|
2367
2367
|
}, [
|
|
2368
2368
|
g("span", {
|
|
@@ -2400,7 +2400,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
|
|
|
2400
2400
|
], 8, hl));
|
|
2401
2401
|
}
|
|
2402
2402
|
});
|
|
2403
|
-
const _l = /* @__PURE__ */
|
|
2403
|
+
const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ Z({
|
|
2404
2404
|
__name: "index",
|
|
2405
2405
|
props: {
|
|
2406
2406
|
data: {}
|
|
@@ -2413,7 +2413,7 @@ const _l = /* @__PURE__ */ re(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2413
2413
|
}, null, 8, fl));
|
|
2414
2414
|
}
|
|
2415
2415
|
});
|
|
2416
|
-
const Ae = /* @__PURE__ */
|
|
2416
|
+
const Ae = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ Z({
|
|
2417
2417
|
__name: "notArea",
|
|
2418
2418
|
props: {
|
|
2419
2419
|
item: {}
|
|
@@ -2490,11 +2490,11 @@ const Ae = /* @__PURE__ */ re(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2490
2490
|
}, null, 8, ["class", "item"]));
|
|
2491
2491
|
}
|
|
2492
2492
|
});
|
|
2493
|
-
const Ct = /* @__PURE__ */
|
|
2493
|
+
const Ct = /* @__PURE__ */ ce(Dl, [["__scopeId", "data-v-7092617e"]]), Al = {};
|
|
2494
2494
|
function Nl(e, t) {
|
|
2495
2495
|
return null;
|
|
2496
2496
|
}
|
|
2497
|
-
const Bl = /* @__PURE__ */
|
|
2497
|
+
const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */ Z({
|
|
2498
2498
|
__name: "sheet",
|
|
2499
2499
|
props: {
|
|
2500
2500
|
item: {},
|
|
@@ -2507,7 +2507,7 @@ const Bl = /* @__PURE__ */ re(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2507
2507
|
}, [
|
|
2508
2508
|
(s(!0), d(M, null, V(t.item.optList, (a, n) => (s(), d("span", {
|
|
2509
2509
|
class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
|
|
2510
|
-
style:
|
|
2510
|
+
style: W({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
|
|
2511
2511
|
"data-xine": x(C).fill + n
|
|
2512
2512
|
}, [
|
|
2513
2513
|
K(_e, {
|
|
@@ -2518,10 +2518,10 @@ const Bl = /* @__PURE__ */ re(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2518
2518
|
], 8, Ol));
|
|
2519
2519
|
}
|
|
2520
2520
|
}), Rl = {};
|
|
2521
|
-
function
|
|
2521
|
+
function Gl(e, t) {
|
|
2522
2522
|
return null;
|
|
2523
2523
|
}
|
|
2524
|
-
const
|
|
2524
|
+
const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
|
|
2525
2525
|
Kl
|
|
2526
2526
|
], Xl = ["data-xine"], Vl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "F", -1), Zl = [
|
|
2527
2527
|
Vl
|
|
@@ -2543,7 +2543,7 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2543
2543
|
a.item.style[x(m)[a.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(M, { key: 0 }, [
|
|
2544
2544
|
g("span", {
|
|
2545
2545
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2546
|
-
style:
|
|
2546
|
+
style: W(o.value),
|
|
2547
2547
|
"data-xine": x(C).fill + "0"
|
|
2548
2548
|
}, [
|
|
2549
2549
|
K(_e, {
|
|
@@ -2553,7 +2553,7 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2553
2553
|
], 14, ql),
|
|
2554
2554
|
g("span", {
|
|
2555
2555
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2556
|
-
style:
|
|
2556
|
+
style: W(o.value),
|
|
2557
2557
|
"data-xine": x(C).fill + "1"
|
|
2558
2558
|
}, [
|
|
2559
2559
|
K(_e, {
|
|
@@ -2564,12 +2564,12 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2564
2564
|
], 64)) : (s(), d(M, { key: 1 }, [
|
|
2565
2565
|
g("span", {
|
|
2566
2566
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2567
|
-
style:
|
|
2567
|
+
style: W(o.value),
|
|
2568
2568
|
"data-xine": x(C).fill + "0"
|
|
2569
2569
|
}, jl, 14, Ul),
|
|
2570
2570
|
g("span", {
|
|
2571
2571
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2572
|
-
style:
|
|
2572
|
+
style: W(o.value),
|
|
2573
2573
|
"data-xine": x(C).fill + "1"
|
|
2574
2574
|
}, Zl, 14, Xl)
|
|
2575
2575
|
], 64))
|
|
@@ -2579,7 +2579,7 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2579
2579
|
function tn(e, t) {
|
|
2580
2580
|
return null;
|
|
2581
2581
|
}
|
|
2582
|
-
const on = /* @__PURE__ */
|
|
2582
|
+
const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-xine"], ln = {
|
|
2583
2583
|
key: 0,
|
|
2584
2584
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2585
2585
|
}, nn = { key: 1 }, sn = /* @__PURE__ */ Z({
|
|
@@ -2619,7 +2619,7 @@ const on = /* @__PURE__ */ re(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2619
2619
|
return (o, a) => (s(), d(M, null, [
|
|
2620
2620
|
g("div", {
|
|
2621
2621
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2622
|
-
style:
|
|
2622
|
+
style: W({ height: `${20 + o.item.style[x(m)[t.layout.mode].fill_e]}px` }),
|
|
2623
2623
|
"data-xine": x(C).fill_line
|
|
2624
2624
|
}, null, 12, rn),
|
|
2625
2625
|
o.layout.handReadFlag ? (s(), U(sn, {
|
|
@@ -2634,7 +2634,7 @@ const on = /* @__PURE__ */ re(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2634
2634
|
function un(e, t) {
|
|
2635
2635
|
return null;
|
|
2636
2636
|
}
|
|
2637
|
-
const hn = /* @__PURE__ */
|
|
2637
|
+
const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */ Z({
|
|
2638
2638
|
__name: "sheet",
|
|
2639
2639
|
props: {
|
|
2640
2640
|
item: {},
|
|
@@ -2668,7 +2668,7 @@ const hn = /* @__PURE__ */ re(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2668
2668
|
function fn(e, t) {
|
|
2669
2669
|
return null;
|
|
2670
2670
|
}
|
|
2671
|
-
const gn = /* @__PURE__ */
|
|
2671
|
+
const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ Z({
|
|
2672
2672
|
__name: "sheet",
|
|
2673
2673
|
props: {
|
|
2674
2674
|
item: {},
|
|
@@ -2687,23 +2687,23 @@ const gn = /* @__PURE__ */ re(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div
|
|
|
2687
2687
|
function xn(e, t) {
|
|
2688
2688
|
return null;
|
|
2689
2689
|
}
|
|
2690
|
-
const kn = /* @__PURE__ */
|
|
2690
|
+
const kn = /* @__PURE__ */ ce(wn, [["render", xn]]), Cn = {};
|
|
2691
2691
|
function $n(e, t) {
|
|
2692
2692
|
return null;
|
|
2693
2693
|
}
|
|
2694
|
-
const Sn = /* @__PURE__ */
|
|
2694
|
+
const Sn = /* @__PURE__ */ ce(Cn, [["render", $n]]), In = {};
|
|
2695
2695
|
function Tn(e, t) {
|
|
2696
2696
|
return null;
|
|
2697
2697
|
}
|
|
2698
|
-
const Ln = /* @__PURE__ */
|
|
2698
|
+
const Ln = /* @__PURE__ */ ce(In, [["render", Tn]]), Fn = {};
|
|
2699
2699
|
function En(e, t) {
|
|
2700
2700
|
return null;
|
|
2701
2701
|
}
|
|
2702
|
-
const Mn = /* @__PURE__ */
|
|
2702
|
+
const Mn = /* @__PURE__ */ ce(Fn, [["render", En]]), Pn = {};
|
|
2703
2703
|
function Dn(e, t) {
|
|
2704
2704
|
return null;
|
|
2705
2705
|
}
|
|
2706
|
-
const An = /* @__PURE__ */
|
|
2706
|
+
const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = { class: "flex-1 flex justify-end overflow-hidden" }, On = ["data-block", "data-guide"], zn = ["data-block", "data-size"], Hn = ["data-block"], Rn = /* @__PURE__ */ Z({
|
|
2707
2707
|
__name: "sheet",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
item: {},
|
|
@@ -2762,7 +2762,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2762
2762
|
"data-block": x(Ee),
|
|
2763
2763
|
"data-guide": h.item.id,
|
|
2764
2764
|
class: te(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
|
|
2765
|
-
style:
|
|
2765
|
+
style: W({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
|
|
2766
2766
|
}, X(h.item.beforeGuide), 15, On)) : P("", !0),
|
|
2767
2767
|
(s(!0), d(M, null, V(i.value, (Y, J) => (s(), d("p", {
|
|
2768
2768
|
ref_for: !0,
|
|
@@ -2771,17 +2771,17 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2771
2771
|
class: te(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
|
|
2772
2772
|
"data-block": x(we),
|
|
2773
2773
|
"data-size": h.item.startAnswerLen + (J + 1) * o.value,
|
|
2774
|
-
style:
|
|
2774
|
+
style: W(u.value)
|
|
2775
2775
|
}, [
|
|
2776
2776
|
h.item.artBlock ? (s(!0), d(M, { key: 0 }, V(o.value, (E, D) => (s(), d("span", {
|
|
2777
2777
|
class: te([O.value[J * o.value + D] && "flex items-center justify-center"]),
|
|
2778
|
-
style:
|
|
2778
|
+
style: W(y.value)
|
|
2779
2779
|
}, X(O.value[J * o.value + D]), 7))), 256)) : P("", !0),
|
|
2780
2780
|
(s(!0), d(M, null, V(l.value, (E) => (s(), d(M, null, [
|
|
2781
2781
|
h.item.startAnswerLen + J * o.value < E && h.item.startAnswerLen + (J + 1) * o.value >= E ? (s(), d("span", {
|
|
2782
2782
|
key: 0,
|
|
2783
2783
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2784
|
-
style:
|
|
2784
|
+
style: W({ left: `${(E - h.item.startAnswerLen) % o.value * c.value}px` }),
|
|
2785
2785
|
"data-block": x(Ee)
|
|
2786
2786
|
}, X(E), 13, Hn)) : P("", !0)
|
|
2787
2787
|
], 64))), 256))
|
|
@@ -2794,7 +2794,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2794
2794
|
}, null, 8, ["data", "data-aart"])) : P("", !0)
|
|
2795
2795
|
], 512));
|
|
2796
2796
|
}
|
|
2797
|
-
}),
|
|
2797
|
+
}), Gn = ["data-block"], Wn = /* @__PURE__ */ Z({
|
|
2798
2798
|
__name: "index",
|
|
2799
2799
|
props: {
|
|
2800
2800
|
item: {},
|
|
@@ -2810,7 +2810,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2810
2810
|
"data-content": o.item.id,
|
|
2811
2811
|
data: o.item.content
|
|
2812
2812
|
}, null, 8, ["data-content", "data"])
|
|
2813
|
-
], 8,
|
|
2813
|
+
], 8, Gn));
|
|
2814
2814
|
}
|
|
2815
2815
|
}), Yn = ["data-block"], qn = { key: 0 }, Qn = { key: 1 }, Un = { key: 2 }, Kn = {
|
|
2816
2816
|
key: 3,
|
|
@@ -2826,7 +2826,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2826
2826
|
const t = e, o = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((l, i) => i === r.length - 1 ? l : ""))), a = A(() => t.width ? `${t.width}em` : "");
|
|
2827
2827
|
return (n, r) => (s(), d("span", {
|
|
2828
2828
|
class: te(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
|
|
2829
|
-
style:
|
|
2829
|
+
style: W({ width: a.value }),
|
|
2830
2830
|
"data-block": x(Ee)
|
|
2831
2831
|
}, [
|
|
2832
2832
|
(s(!0), d(M, null, V(o.value, (l, i) => (s(), d(M, null, [
|
|
@@ -2841,7 +2841,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2841
2841
|
components: {
|
|
2842
2842
|
choice: Bl,
|
|
2843
2843
|
choiceSheet: Hl,
|
|
2844
|
-
decide:
|
|
2844
|
+
decide: Wl,
|
|
2845
2845
|
decideSheet: Jl,
|
|
2846
2846
|
fill: on,
|
|
2847
2847
|
fillSheet: cn,
|
|
@@ -2855,7 +2855,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2855
2855
|
synthesisSheet: Mn,
|
|
2856
2856
|
art: An,
|
|
2857
2857
|
artSheet: Rn,
|
|
2858
|
-
notArea:
|
|
2858
|
+
notArea: Wn,
|
|
2859
2859
|
Sub: jn
|
|
2860
2860
|
},
|
|
2861
2861
|
props: {
|
|
@@ -2893,7 +2893,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2893
2893
|
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2894
2894
|
fill: [p.fill, p.fill_english]
|
|
2895
2895
|
};
|
|
2896
|
-
return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(_).find((
|
|
2896
|
+
return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(_).find((R) => _[R].includes(p[w])) || `${w}${o}` }), {});
|
|
2897
2897
|
}), l = A(() => [be.one_choice, be.another_choice].includes(e.data.problemType)), i = A(() => {
|
|
2898
2898
|
let _ = [];
|
|
2899
2899
|
return e.data.children.forEach((k) => {
|
|
@@ -2912,13 +2912,13 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2912
2912
|
}), _ = _.map((k) => {
|
|
2913
2913
|
var w;
|
|
2914
2914
|
if (k.type === "polymer" && k.styleInfo[m[e.layout.mode].choice_a] === I.choice_3) {
|
|
2915
|
-
const
|
|
2916
|
-
if (k.children.length >
|
|
2915
|
+
const R = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((w = k.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
|
|
2916
|
+
if (k.children.length > R * 5) {
|
|
2917
2917
|
const B = k.children.length % 4 > 4 ? 5 : 4;
|
|
2918
|
-
return [...Array(Math.ceil(k.children.length / (
|
|
2918
|
+
return [...Array(Math.ceil(k.children.length / (R * B))).keys()].map((ue, he) => ({
|
|
2919
2919
|
...k,
|
|
2920
2920
|
groupIndex: he,
|
|
2921
|
-
children: k.children.slice(he *
|
|
2921
|
+
children: k.children.slice(he * R * B, (he + 1) * R * B)
|
|
2922
2922
|
}));
|
|
2923
2923
|
} else
|
|
2924
2924
|
return k;
|
|
@@ -2954,9 +2954,9 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2954
2954
|
ComputAbs: (_) => o && [p.slove, p.art].includes(_.problemType),
|
|
2955
2955
|
ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[m[e.layout.mode].choice_a] === I.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
|
|
2956
2956
|
ComputPolymerStyle: (_) => {
|
|
2957
|
-
var he,
|
|
2957
|
+
var he, se;
|
|
2958
2958
|
let k = {};
|
|
2959
|
-
const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20,
|
|
2959
|
+
const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((se = _.children[0]) == null ? void 0 : se.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[m[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
|
|
2960
2960
|
switch (_.styleInfo[m[e.layout.mode].choice_a]) {
|
|
2961
2961
|
case I.choice_1:
|
|
2962
2962
|
_.styleInfo[m[e.layout.mode].choice_b] === I.portrait && (k = {
|
|
@@ -2982,7 +2982,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2982
2982
|
ComputPolymerItemStyle: (_, k) => {
|
|
2983
2983
|
var w;
|
|
2984
2984
|
if (a.includes(_.problemType) && _.style[m[e.layout.mode].choice_a] === I.choice_2) {
|
|
2985
|
-
const
|
|
2985
|
+
const R = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (R * _.style[m[e.layout.mode].choice_c] + 10)), ue = (e.width - R * B * _.style[m[e.layout.mode].choice_c]) / (B - 1 || 1);
|
|
2986
2986
|
if (!((k + 1) % _.style[m[e.layout.mode].choice_c]) && ((k + 1) % (_.style[m[e.layout.mode].choice_c] * B) || B < 2))
|
|
2987
2987
|
return {
|
|
2988
2988
|
"margin-right": `${ue}px`
|
|
@@ -2991,14 +2991,14 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2991
2991
|
return {};
|
|
2992
2992
|
},
|
|
2993
2993
|
ComputStyle: (_, k) => {
|
|
2994
|
-
var
|
|
2994
|
+
var R;
|
|
2995
2995
|
let w = {};
|
|
2996
2996
|
if (!o)
|
|
2997
2997
|
return w;
|
|
2998
2998
|
if (a.includes(_.problemType)) {
|
|
2999
2999
|
let B = {};
|
|
3000
3000
|
if (Object.values(Lt).includes(e.data.problemType)) {
|
|
3001
|
-
const ue = Math.max(...(e.data.rawChildren || e.data.children).map((
|
|
3001
|
+
const ue = Math.max(...(e.data.rawChildren || e.data.children).map((se) => se.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / (ue + 10)), e.data.style[m[e.layout.mode].choice_d] || 10);
|
|
3002
3002
|
B = k % he ? { minWidth: `${ue}px`, marginLeft: `${(e.width - ue * he) / (he - 1) - 5}px` } : { minWidth: `${ue}px` };
|
|
3003
3003
|
}
|
|
3004
3004
|
w = {
|
|
@@ -3050,13 +3050,13 @@ function ts(e, t, o, a, n, r) {
|
|
|
3050
3050
|
key: 0,
|
|
3051
3051
|
"data-block": a.ComputBlock(i),
|
|
3052
3052
|
class: te([...a.ComputPolymerCls(i)]),
|
|
3053
|
-
style:
|
|
3053
|
+
style: W(a.ComputPolymerStyle(i))
|
|
3054
3054
|
}, [
|
|
3055
3055
|
(s(!0), d(M, null, V(i.children, (c, u) => {
|
|
3056
3056
|
var y;
|
|
3057
3057
|
return s(), d("div", {
|
|
3058
3058
|
class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((y = o.target.value) == null ? void 0 : y.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3059
|
-
style:
|
|
3059
|
+
style: W(a.ComputPolymerItemStyle(c, u)),
|
|
3060
3060
|
"data-tag": c.__tag__,
|
|
3061
3061
|
"data-block": a.ComputBlock(c),
|
|
3062
3062
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
@@ -3078,7 +3078,7 @@ function ts(e, t, o, a, n, r) {
|
|
|
3078
3078
|
return s(), d(M, null, [
|
|
3079
3079
|
g("div", {
|
|
3080
3080
|
class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((y = o.target.value) == null ? void 0 : y.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3081
|
-
style:
|
|
3081
|
+
style: W(a.ComputStyle(c, u)),
|
|
3082
3082
|
"data-tag": c.__tag__,
|
|
3083
3083
|
"data-block": a.ComputBlock(c),
|
|
3084
3084
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
@@ -3109,10 +3109,10 @@ function ts(e, t, o, a, n, r) {
|
|
|
3109
3109
|
}), 256))
|
|
3110
3110
|
], 64))), 256);
|
|
3111
3111
|
}
|
|
3112
|
-
const
|
|
3112
|
+
const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, le = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), $e = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), as = (e, t, o) => {
|
|
3113
3113
|
const a = N(le(`${C.item}${e._sub}`, t));
|
|
3114
3114
|
return !(a.top >= o.top + o.height || a.top + a.height < o.top);
|
|
3115
|
-
},
|
|
3115
|
+
}, re = (e, t, o = !1) => !e || !t ? null : {
|
|
3116
3116
|
x: e.x - t.x,
|
|
3117
3117
|
y: e.y - t.y + (o ? 1 : 0),
|
|
3118
3118
|
width: e.width,
|
|
@@ -3148,8 +3148,8 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3148
3148
|
return null;
|
|
3149
3149
|
const a = {
|
|
3150
3150
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3151
|
-
area:
|
|
3152
|
-
list: $e(C.en_num_group, o).map((n) => $e(C.en_num_item, n).map((r) =>
|
|
3151
|
+
area: re(N(o), N(e.pageDom[0])),
|
|
3152
|
+
list: $e(C.en_num_group, o).map((n) => $e(C.en_num_item, n).map((r) => re(N(r), N(e.pageDom[0]), !0)))
|
|
3153
3153
|
};
|
|
3154
3154
|
return {
|
|
3155
3155
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
@@ -3172,29 +3172,29 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3172
3172
|
const t = N(e.pageDom[0]), o = N(e.pageDom[1]), a = (n) => {
|
|
3173
3173
|
var l;
|
|
3174
3174
|
const r = e.layout.backColumn > 2 ? {
|
|
3175
|
-
trdLeftTopPos: ae(
|
|
3176
|
-
trdLeftBottomPos: ae(
|
|
3175
|
+
trdLeftTopPos: ae(re(N($e(`${C.point}t`, e.pageDom[n])[1]), N(e.pageDom[n]))),
|
|
3176
|
+
trdLeftBottomPos: ae(re(N($e(`${C.point}b`, e.pageDom[n])[1]), N(e.pageDom[n])))
|
|
3177
3177
|
} : {};
|
|
3178
3178
|
return (l = Oe.find((i) => i.code === e.layout.paper)) != null && l.isMultCol ? {
|
|
3179
|
-
secLeftTopPos: ae(
|
|
3180
|
-
secLeftBottomPos: ae(
|
|
3179
|
+
secLeftTopPos: ae(re(N($e(`${C.point}t`, e.pageDom[n])[0]), N(e.pageDom[n]))),
|
|
3180
|
+
secLeftBottomPos: ae(re(N($e(`${C.point}b`, e.pageDom[n])[0]), N(e.pageDom[n]))),
|
|
3181
3181
|
...r
|
|
3182
3182
|
} : null;
|
|
3183
3183
|
};
|
|
3184
3184
|
return {
|
|
3185
3185
|
// 取第一/二页定位点信息
|
|
3186
|
-
leftTopPos: ae(
|
|
3187
|
-
rightTopPos: ae(
|
|
3188
|
-
leftBottomPos: ae(
|
|
3189
|
-
rightBottomPos: ae(
|
|
3186
|
+
leftTopPos: ae(re(N(le(`${C.point}lt`, e.pageDom[0])), t)),
|
|
3187
|
+
rightTopPos: ae(re(N(le(`${C.point}rt`, e.pageDom[0])), t)),
|
|
3188
|
+
leftBottomPos: ae(re(N(le(`${C.point}lb`, e.pageDom[0])), t)),
|
|
3189
|
+
rightBottomPos: ae(re(N(le(`${C.point}rb`, e.pageDom[0])), t)),
|
|
3190
3190
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3191
3191
|
verticalAuxInfo: [
|
|
3192
|
-
ae(
|
|
3193
|
-
ae(
|
|
3192
|
+
ae(re(N(le(`${C.point}l`, e.pageDom[0])), t)),
|
|
3193
|
+
ae(re(N(le(`${C.point}r`, e.pageDom[0])), t))
|
|
3194
3194
|
],
|
|
3195
3195
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3196
|
-
ae(
|
|
3197
|
-
ae(
|
|
3196
|
+
ae(re(N(le(`${C.point}l`, e.pageDom[1])), o)),
|
|
3197
|
+
ae(re(N(le(`${C.point}r`, e.pageDom[1])), o))
|
|
3198
3198
|
] : null,
|
|
3199
3199
|
auxAnchorInfo: a(0),
|
|
3200
3200
|
auxAnchorInfo2: e.pageDom[1] ? a(1) : null
|
|
@@ -3205,7 +3205,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3205
3205
|
const a = le(`${C.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3206
3206
|
t = le(`${C.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - a.left - a.width;
|
|
3207
3207
|
}
|
|
3208
|
-
let o =
|
|
3208
|
+
let o = re(N(le(C.page, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]));
|
|
3209
3209
|
return o = { ...o, y: o.y % (b[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3210
3210
|
{
|
|
3211
3211
|
// 固定值
|
|
@@ -3215,7 +3215,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3215
3215
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3216
3216
|
choiceQuestionPosition: ae(o, !0),
|
|
3217
3217
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3218
|
-
firstChoicePosition: ae(
|
|
3218
|
+
firstChoicePosition: ae(re(N(le(`${C.page_item}0`, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]))),
|
|
3219
3219
|
// 页码点最大值,展开为数组
|
|
3220
3220
|
choiceGridSequenceNOList: ct.filter((a, n) => n < e.pageTotal),
|
|
3221
3221
|
// 排列方向
|
|
@@ -3234,9 +3234,9 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3234
3234
|
// 固定值
|
|
3235
3235
|
questionNOList: [1],
|
|
3236
3236
|
// 方框业务坐标
|
|
3237
|
-
choiceQuestionPosition: ae(
|
|
3237
|
+
choiceQuestionPosition: ae(re(N(t), N(e.pageDom[0])), !0),
|
|
3238
3238
|
// 数据坐标
|
|
3239
|
-
firstChoicePosition: ae(
|
|
3239
|
+
firstChoicePosition: ae(re(N(t), N(e.pageDom[0]))),
|
|
3240
3240
|
// 固定值
|
|
3241
3241
|
choiceGridSequenceNOList: [
|
|
3242
3242
|
"true"
|
|
@@ -3247,11 +3247,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3247
3247
|
xColOffset: 0
|
|
3248
3248
|
} : null;
|
|
3249
3249
|
}, rs = (e) => {
|
|
3250
|
-
let t =
|
|
3251
|
-
if (e.bindWidth) {
|
|
3252
|
-
const o = t.height;
|
|
3253
|
-
t.height = t.width, t.width = o;
|
|
3254
|
-
}
|
|
3250
|
+
let t = re(N(le(C.en_code, e.pageDom[0])), N(e.pageDom[0]));
|
|
3255
3251
|
return ae(t);
|
|
3256
3252
|
}, cs = (e) => {
|
|
3257
3253
|
const t = le(C.write_view, e.pageDom[0]);
|
|
@@ -3261,9 +3257,9 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3261
3257
|
return {
|
|
3262
3258
|
id: "0",
|
|
3263
3259
|
problemType: p.slove,
|
|
3264
|
-
position:
|
|
3260
|
+
position: re(N(t), N(e.pageDom[0])),
|
|
3265
3261
|
scoreList: o.map((a, n) => ({
|
|
3266
|
-
position:
|
|
3262
|
+
position: re(N(o[n]), N(e.pageDom[0])),
|
|
3267
3263
|
itemPosition: {
|
|
3268
3264
|
width: o[n].offsetWidth
|
|
3269
3265
|
},
|
|
@@ -3329,12 +3325,12 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3329
3325
|
return D ? {
|
|
3330
3326
|
id: `${++o}`,
|
|
3331
3327
|
baseIndex: parseInt(E.children[0]._sub),
|
|
3332
|
-
position:
|
|
3328
|
+
position: re(N(D), u),
|
|
3333
3329
|
problemType: E.problemType,
|
|
3334
3330
|
isOneChoice: !0,
|
|
3335
3331
|
optList: $e(C.fill, D).map((v, z) => ({
|
|
3336
3332
|
id: `${o}.${z + 1}`,
|
|
3337
|
-
position:
|
|
3333
|
+
position: re(N(v), u)
|
|
3338
3334
|
})).filter((v) => v.position)
|
|
3339
3335
|
} : {};
|
|
3340
3336
|
}).filter((E) => E.position);
|
|
@@ -3350,32 +3346,32 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3350
3346
|
z = {
|
|
3351
3347
|
score: E.score,
|
|
3352
3348
|
isColumn: E.style[m[e.layout.mode].choice_a] !== I.choice_2,
|
|
3353
|
-
optList: E.optList.map((w,
|
|
3354
|
-
id: `${E._sub}.${
|
|
3355
|
-
position: Pe(le(`${C.fill}${
|
|
3349
|
+
optList: E.optList.map((w, R) => ({
|
|
3350
|
+
id: `${E._sub}.${R + 1}`,
|
|
3351
|
+
position: Pe(le(`${C.fill}${R}`, ne), F, u)
|
|
3356
3352
|
})).filter((w) => w.position)
|
|
3357
3353
|
};
|
|
3358
3354
|
break;
|
|
3359
3355
|
case p.decide:
|
|
3360
3356
|
z = {
|
|
3361
|
-
optList: [0, 1].map((w,
|
|
3362
|
-
id: `${E._sub}.${
|
|
3363
|
-
position: Pe(le(`${C.fill}${
|
|
3357
|
+
optList: [0, 1].map((w, R) => ({
|
|
3358
|
+
id: `${E._sub}.${R}`,
|
|
3359
|
+
position: Pe(le(`${C.fill}${R}`, ne), F, u)
|
|
3364
3360
|
})).filter((w) => w.position)
|
|
3365
3361
|
};
|
|
3366
3362
|
break;
|
|
3367
3363
|
case p.fill:
|
|
3368
3364
|
case p.fill_english:
|
|
3369
|
-
const
|
|
3365
|
+
const H = $e(C.fill, ne), _ = $e(C.fill_line, ne);
|
|
3370
3366
|
z = {
|
|
3371
|
-
children: [E.score].flat().map((w,
|
|
3372
|
-
id: B.length > 1 ? `${E._sub}.${
|
|
3367
|
+
children: [E.score].flat().map((w, R, B) => ({
|
|
3368
|
+
id: B.length > 1 ? `${E._sub}.${R + 1}` : E._sub,
|
|
3373
3369
|
score: w,
|
|
3374
3370
|
problemType: E.problemType,
|
|
3375
3371
|
isHiddenContent: !E.style[m[e.layout.mode].fill_b],
|
|
3376
3372
|
position: Pe(ne, F, u),
|
|
3377
|
-
scorePosition: Pe(R
|
|
3378
|
-
answerPosition: Pe(_[
|
|
3373
|
+
scorePosition: Pe(H[R], F, u),
|
|
3374
|
+
answerPosition: Pe(_[R], F, u)
|
|
3379
3375
|
})).filter((w) => w.position)
|
|
3380
3376
|
};
|
|
3381
3377
|
break;
|
|
@@ -3384,7 +3380,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3384
3380
|
case p.art:
|
|
3385
3381
|
const k = le(C.score, ne);
|
|
3386
3382
|
z = {
|
|
3387
|
-
scoreList: k ? [le(C.score_tenbit, k), le(C.score_base, k), le(C.score_half, k)].map((w,
|
|
3383
|
+
scoreList: k ? [le(C.score_tenbit, k), le(C.score_base, k), le(C.score_half, k)].map((w, R) => {
|
|
3388
3384
|
if (!w)
|
|
3389
3385
|
return {};
|
|
3390
3386
|
const B = $e(C.score_item, w);
|
|
@@ -3393,7 +3389,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3393
3389
|
itemPosition: {
|
|
3394
3390
|
width: B[0].offsetWidth
|
|
3395
3391
|
},
|
|
3396
|
-
score: B.map((ue) => Math.abs(parseFloat(ue.innerText)) * (
|
|
3392
|
+
score: B.map((ue) => Math.abs(parseFloat(ue.innerText)) * (R ? 1 : 10))
|
|
3397
3393
|
};
|
|
3398
3394
|
}).filter((w) => w.position) : null
|
|
3399
3395
|
};
|
|
@@ -3555,8 +3551,8 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3555
3551
|
// 试卷二维码
|
|
3556
3552
|
cardSerialNumber: {
|
|
3557
3553
|
// 条形码虚线框位置, x, y, width, height
|
|
3558
|
-
encodePictureArea: ae(
|
|
3559
|
-
qrCodePosition: ae(
|
|
3554
|
+
encodePictureArea: ae(re(N(le(C.art_code, e.pageDom[0])), o), !0),
|
|
3555
|
+
qrCodePosition: ae(re(N(le(C.art_code, e.pageDom[0])), o)),
|
|
3560
3556
|
// 条形码或二维码,不确定,固定此值
|
|
3561
3557
|
pictureType: "TYPE_QRCODE"
|
|
3562
3558
|
},
|
|
@@ -3587,7 +3583,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3587
3583
|
layerType: ls(e),
|
|
3588
3584
|
// 定位点信息
|
|
3589
3585
|
...ns(e),
|
|
3590
|
-
pottedLineXPos: e.bindWidth ? (a = ae(
|
|
3586
|
+
pottedLineXPos: e.bindWidth ? (a = ae(re(N(le(C.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
|
|
3591
3587
|
// 页码点信息
|
|
3592
3588
|
pageSideAnchorsList: ss(e),
|
|
3593
3589
|
// 缺考标记
|
|
@@ -3685,7 +3681,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3685
3681
|
]));
|
|
3686
3682
|
}
|
|
3687
3683
|
});
|
|
3688
|
-
const Cs = /* @__PURE__ */
|
|
3684
|
+
const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Xe = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Xe(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Xe(e.parentElement) : document.body, $s = (e) => {
|
|
3689
3685
|
const t = e.parentElement, o = document.createElement("span");
|
|
3690
3686
|
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ut, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
3691
3687
|
}, Ss = (e, t, o, a) => {
|
|
@@ -3758,11 +3754,11 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3758
3754
|
const i = de(t).top;
|
|
3759
3755
|
let c = {}, u = 0, y = 0;
|
|
3760
3756
|
const O = (v) => {
|
|
3761
|
-
const z = v % (a + n), ne = Math.floor(v / (a + n)) * 2 + (z >= a ? 1 : 0),
|
|
3757
|
+
const z = v % (a + n), ne = Math.floor(v / (a + n)) * 2 + (z >= a ? 1 : 0), H = r(v, ne);
|
|
3762
3758
|
c = {
|
|
3763
3759
|
top: i,
|
|
3764
|
-
width: parseFloat(
|
|
3765
|
-
height: parseFloat(
|
|
3760
|
+
width: parseFloat(H.width),
|
|
3761
|
+
height: parseFloat(H.height)
|
|
3766
3762
|
};
|
|
3767
3763
|
};
|
|
3768
3764
|
let h = [], F = 0;
|
|
@@ -3788,7 +3784,7 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3788
3784
|
}
|
|
3789
3785
|
h[h.length - 1].data.push(v), l([...h]), window.requestAnimationFrame(() => {
|
|
3790
3786
|
const z = $t(v.__tag__, t), ne = !v.isHidden && de(z);
|
|
3791
|
-
let
|
|
3787
|
+
let H = null;
|
|
3792
3788
|
if (y) {
|
|
3793
3789
|
const _ = z.querySelector(`*[data-hutkey="${y}"]`), k = de(_);
|
|
3794
3790
|
h[h.length - 1].top = c.top - k.top, h[h.length - 1].height = c.height - h[h.length - 1].top, y = 0;
|
|
@@ -3801,63 +3797,64 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3801
3797
|
else if (J(z))
|
|
3802
3798
|
h[h.length - 1].data.pop(), Y(), D(v);
|
|
3803
3799
|
else {
|
|
3804
|
-
|
|
3800
|
+
H = It(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3805
3801
|
const _ = z.querySelector(`*[data-content="${v.id}"]`);
|
|
3806
|
-
h[h.length - 1].height = de(
|
|
3802
|
+
h[h.length - 1].height = de(H.cut).top - c.top, Y(), _ != null && _.contains(H.cut) ? (y = Date.now(), H.cut.dataset.hutkey = y, D({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), D(v));
|
|
3807
3803
|
}
|
|
3808
3804
|
else {
|
|
3809
3805
|
let _ = [], k = [];
|
|
3810
|
-
v.children.some((w,
|
|
3806
|
+
v.children.some((w, R) => {
|
|
3811
3807
|
const B = $t(w.__tag__, t), ue = de(B);
|
|
3812
3808
|
if (u) {
|
|
3813
|
-
const he = B.querySelector(`*[data-cutkey="${u}"]`),
|
|
3814
|
-
h[h.length - 1].top = c.top -
|
|
3809
|
+
const he = B.querySelector(`*[data-cutkey="${u}"]`), se = de(he);
|
|
3810
|
+
h[h.length - 1].top = c.top - se.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
|
|
3815
3811
|
}
|
|
3816
3812
|
if (ue.height + ue.top - c.top > h[h.length - 1].height) {
|
|
3817
3813
|
if (E(B))
|
|
3818
|
-
_.push(w), k =
|
|
3814
|
+
_.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3819
3815
|
else if (J(B))
|
|
3820
|
-
k = v.children.slice(
|
|
3816
|
+
k = v.children.slice(R);
|
|
3821
3817
|
else {
|
|
3822
|
-
|
|
3818
|
+
H = It(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3823
3819
|
const he = B.querySelector(`*[data-content="${w.id}"]`);
|
|
3824
|
-
if (B ===
|
|
3825
|
-
_.push(w), k =
|
|
3826
|
-
else if (he && he.contains(
|
|
3827
|
-
u = Date.now(),
|
|
3820
|
+
if (B === H.targetEl)
|
|
3821
|
+
_.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3822
|
+
else if (he && he.contains(H.cut))
|
|
3823
|
+
u = Date.now(), H.cut.dataset.cutkey = u, w.content = he.innerHTML, _.push(w), k = [{ ...w, content: he.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = de(H.cut).top - c.top;
|
|
3828
3824
|
else {
|
|
3829
3825
|
if (!k.length) {
|
|
3830
|
-
let
|
|
3826
|
+
let se = { ...w };
|
|
3831
3827
|
switch (w.problemType) {
|
|
3832
3828
|
case at.slove:
|
|
3833
3829
|
const L = B.querySelector(`*[data-area="${w.id}"]`);
|
|
3834
|
-
L != null && L.contains(
|
|
3830
|
+
L != null && L.contains(H.cut) && (u = Date.now(), H.cut.dataset.cutkey = u, w.answerArea = L.innerHTML), w.chunk += 1;
|
|
3835
3831
|
break;
|
|
3836
3832
|
case at.art:
|
|
3837
|
-
const $ = B.querySelector(`*[data-bart="${w.id}"]`), T =
|
|
3838
|
-
if ($ != null && $.contains(
|
|
3839
|
-
u = Date.now(),
|
|
3833
|
+
const $ = B.querySelector(`*[data-bart="${w.id}"]`), T = H.targetEl.dataset.block === we && H.targetEl.dataset.size ? H.targetEl : null, ee = B.querySelector(`*[data-aart="${w.id}"]`);
|
|
3834
|
+
if ($ != null && $.contains(H.cut))
|
|
3835
|
+
u = Date.now(), H.cut.dataset.cutkey = u, w.beforeArt = $ == null ? void 0 : $.innerHTML, se.beforeGuide = "", se.afterArt = "", se.endAnswerLen = -1;
|
|
3840
3836
|
else if (T) {
|
|
3841
3837
|
const pe = parseInt(T.dataset.size);
|
|
3842
3838
|
if (!w.artBlock)
|
|
3843
3839
|
if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > pe) {
|
|
3844
|
-
const
|
|
3845
|
-
if (console.log(
|
|
3846
|
-
|
|
3847
|
-
const Te = de(T).top + T.offsetHeight, Se = [...Array.from(
|
|
3848
|
-
|
|
3840
|
+
const G = B.querySelector(`*[data-guide="${w.id}"]`), oe = de(G);
|
|
3841
|
+
if (console.log(G, oe, c), oe.height + oe.top - c.top > c.height) {
|
|
3842
|
+
G.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
|
|
3843
|
+
const Te = de(T).top + T.offsetHeight, Se = [...Array.from(G.children)].findIndex((ge) => de(ge).top > Te);
|
|
3844
|
+
se.beforeGuide = w.beforeGuide.substring(0, Se), w.beforeGuide = w.beforeGuide.substring(Se);
|
|
3849
3845
|
} else
|
|
3850
3846
|
w.beforeGuide = "";
|
|
3851
3847
|
} else
|
|
3852
3848
|
w.beforeGuide = "";
|
|
3853
|
-
|
|
3849
|
+
se.endAnswerLen = pe, w.startAnswerLen = pe;
|
|
3854
3850
|
} else
|
|
3855
|
-
ee != null && ee.contains(
|
|
3851
|
+
ee != null && ee.contains(H.cut) ? (u = Date.now(), H.cut.dataset.cutkey = u, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = ee.innerHTML) : H.targetEl === $ ? (se.endAnswerLen = -1, se.beforeGuide = "", se.afterArt = "", w.beforeArt = "") : ($ == null ? void 0 : $.previousElementSibling) === H.cut && (se.endAnswerLen = -1, se.beforeArt = "", se.beforeGuide = "", se.afterArt = "");
|
|
3852
|
+
w.chunk += 1;
|
|
3856
3853
|
break;
|
|
3857
3854
|
}
|
|
3858
|
-
B.contains(
|
|
3855
|
+
B.contains(H.targetEl) && _.push(se), u && (h[h.length - 1].height = de(H.cut).top - c.top);
|
|
3859
3856
|
}
|
|
3860
|
-
k = [w, ...
|
|
3857
|
+
k = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
|
|
3861
3858
|
}
|
|
3862
3859
|
}
|
|
3863
3860
|
return !0;
|
|
@@ -3947,7 +3944,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3947
3944
|
]));
|
|
3948
3945
|
}
|
|
3949
3946
|
});
|
|
3950
|
-
const Ms = /* @__PURE__ */
|
|
3947
|
+
const Ms = /* @__PURE__ */ ce(Es, [["__scopeId", "data-v-1398ac85"]]);
|
|
3951
3948
|
let Ye = (e) => {
|
|
3952
3949
|
};
|
|
3953
3950
|
const Ps = {
|
|
@@ -3982,7 +3979,7 @@ const Ds = {
|
|
|
3982
3979
|
unmounted: () => {
|
|
3983
3980
|
document.removeEventListener("mousemove", ot);
|
|
3984
3981
|
}
|
|
3985
|
-
}, As = ["onMousedown", "data-block"], Ns = ["src"], Bs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Os = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, zs = ["onMousedown"], Hs = ["onMousedown"], Rs = ["disabled", "onMousedown", "data-block"],
|
|
3982
|
+
}, As = ["onMousedown", "data-block"], Ns = ["src"], Bs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Os = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, zs = ["onMousedown"], Hs = ["onMousedown"], Rs = ["disabled", "onMousedown", "data-block"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ws = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ys = ["onMousedown"], qs = /* @__PURE__ */ Z({
|
|
3986
3983
|
__name: "absItem",
|
|
3987
3984
|
props: {
|
|
3988
3985
|
imgData: {},
|
|
@@ -4018,7 +4015,7 @@ const Ds = {
|
|
|
4018
4015
|
}, 400);
|
|
4019
4016
|
}, ne = (L) => {
|
|
4020
4017
|
F.value = L;
|
|
4021
|
-
},
|
|
4018
|
+
}, H = () => {
|
|
4022
4019
|
const L = D.value, $ = L.left + L.width / 2, T = L.top + L.height / 2, ee = y.value.getBoundingClientRect() || {};
|
|
4023
4020
|
h.value = { x: $ + ee.left, y: T + ee.top }, y.value.addEventListener("mousemove", _), y.value.addEventListener("mouseleave", k), y.value.addEventListener("mouseup", k);
|
|
4024
4021
|
}, _ = (L) => {
|
|
@@ -4029,13 +4026,13 @@ const Ds = {
|
|
|
4029
4026
|
L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value), y.value.removeEventListener("mousemove", _), y.value.removeEventListener("mouseleave", k), y.value.removeEventListener("mouseup", k);
|
|
4030
4027
|
}, w = (L, $) => {
|
|
4031
4028
|
var T;
|
|
4032
|
-
L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? y.value.addEventListener("mousemove",
|
|
4033
|
-
},
|
|
4029
|
+
L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? y.value.addEventListener("mousemove", R) : y.value.addEventListener("mousemove", B), y.value.addEventListener("mouseleave", ue), y.value.addEventListener("mouseup", ue);
|
|
4030
|
+
}, R = (L) => {
|
|
4034
4031
|
const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, T = { ...D.value }, ee = $.x > $.y ? "width" : "height";
|
|
4035
4032
|
[
|
|
4036
4033
|
// 0
|
|
4037
4034
|
() => {
|
|
4038
|
-
const
|
|
4035
|
+
const G = {
|
|
4039
4036
|
width: l.value.width - $.x,
|
|
4040
4037
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4041
4038
|
}[ee], oe = {
|
|
@@ -4044,26 +4041,26 @@ const Ds = {
|
|
|
4044
4041
|
}[ee];
|
|
4045
4042
|
i.value = {
|
|
4046
4043
|
...T,
|
|
4047
|
-
width:
|
|
4044
|
+
width: G,
|
|
4048
4045
|
height: oe,
|
|
4049
|
-
left: l.value.left - (
|
|
4046
|
+
left: l.value.left - (G - l.value.width),
|
|
4050
4047
|
top: l.value.top - (oe - l.value.height)
|
|
4051
4048
|
};
|
|
4052
4049
|
},
|
|
4053
4050
|
// 1
|
|
4054
4051
|
() => {
|
|
4055
|
-
const
|
|
4052
|
+
const G = l.value.width * (1 - $.y / l.value.height), oe = l.value.height - $.y;
|
|
4056
4053
|
i.value = {
|
|
4057
4054
|
...T,
|
|
4058
|
-
width:
|
|
4055
|
+
width: G,
|
|
4059
4056
|
height: oe,
|
|
4060
|
-
left: l.value.left - (
|
|
4057
|
+
left: l.value.left - (G - l.value.width) / 2,
|
|
4061
4058
|
top: l.value.top - (oe - l.value.height)
|
|
4062
4059
|
};
|
|
4063
4060
|
},
|
|
4064
4061
|
// 2
|
|
4065
4062
|
() => {
|
|
4066
|
-
const
|
|
4063
|
+
const G = {
|
|
4067
4064
|
width: l.value.height * (1 + $.x / l.value.width),
|
|
4068
4065
|
height: l.value.height - $.y
|
|
4069
4066
|
}[ee];
|
|
@@ -4073,34 +4070,34 @@ const Ds = {
|
|
|
4073
4070
|
width: l.value.width + $.x,
|
|
4074
4071
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4075
4072
|
}[ee],
|
|
4076
|
-
height:
|
|
4077
|
-
top: l.value.top - (
|
|
4073
|
+
height: G,
|
|
4074
|
+
top: l.value.top - (G - l.value.height)
|
|
4078
4075
|
};
|
|
4079
4076
|
},
|
|
4080
4077
|
// 3
|
|
4081
4078
|
() => {
|
|
4082
|
-
const
|
|
4079
|
+
const G = l.value.width - $.x, oe = l.value.height * (1 - $.x / l.value.width);
|
|
4083
4080
|
i.value = {
|
|
4084
4081
|
...T,
|
|
4085
|
-
width:
|
|
4082
|
+
width: G,
|
|
4086
4083
|
height: oe,
|
|
4087
|
-
left: l.value.left - (
|
|
4084
|
+
left: l.value.left - (G - l.value.width),
|
|
4088
4085
|
top: l.value.top - (oe - l.value.height) / 2
|
|
4089
4086
|
};
|
|
4090
4087
|
},
|
|
4091
4088
|
// 4
|
|
4092
4089
|
() => {
|
|
4093
|
-
const
|
|
4090
|
+
const G = l.value.width + $.x, oe = l.value.height * (1 + $.x / l.value.width);
|
|
4094
4091
|
i.value = {
|
|
4095
4092
|
...T,
|
|
4096
|
-
width:
|
|
4093
|
+
width: G,
|
|
4097
4094
|
height: oe,
|
|
4098
4095
|
top: l.value.top - (oe - l.value.height) / 2
|
|
4099
4096
|
};
|
|
4100
4097
|
},
|
|
4101
4098
|
// 5
|
|
4102
4099
|
() => {
|
|
4103
|
-
const
|
|
4100
|
+
const G = {
|
|
4104
4101
|
width: l.value.width - $.x,
|
|
4105
4102
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4106
4103
|
}[ee], oe = {
|
|
@@ -4109,24 +4106,24 @@ const Ds = {
|
|
|
4109
4106
|
}[ee];
|
|
4110
4107
|
i.value = {
|
|
4111
4108
|
...T,
|
|
4112
|
-
width:
|
|
4109
|
+
width: G,
|
|
4113
4110
|
height: oe,
|
|
4114
|
-
left: l.value.left - (
|
|
4111
|
+
left: l.value.left - (G - l.value.width)
|
|
4115
4112
|
};
|
|
4116
4113
|
},
|
|
4117
4114
|
// 6
|
|
4118
4115
|
() => {
|
|
4119
|
-
const
|
|
4116
|
+
const G = l.value.width * (1 + $.y / l.value.height), oe = l.value.height + $.y;
|
|
4120
4117
|
i.value = {
|
|
4121
4118
|
...T,
|
|
4122
|
-
width:
|
|
4119
|
+
width: G,
|
|
4123
4120
|
height: oe,
|
|
4124
|
-
left: l.value.left - (
|
|
4121
|
+
left: l.value.left - (G - l.value.width) / 2
|
|
4125
4122
|
};
|
|
4126
4123
|
},
|
|
4127
4124
|
// 7
|
|
4128
4125
|
() => {
|
|
4129
|
-
const
|
|
4126
|
+
const G = {
|
|
4130
4127
|
width: l.value.width + $.x,
|
|
4131
4128
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4132
4129
|
}[ee], oe = {
|
|
@@ -4135,7 +4132,7 @@ const Ds = {
|
|
|
4135
4132
|
}[ee];
|
|
4136
4133
|
i.value = {
|
|
4137
4134
|
...T,
|
|
4138
|
-
width:
|
|
4135
|
+
width: G,
|
|
4139
4136
|
height: oe
|
|
4140
4137
|
};
|
|
4141
4138
|
}
|
|
@@ -4188,27 +4185,27 @@ const Ds = {
|
|
|
4188
4185
|
i.value = ee[c.value];
|
|
4189
4186
|
}, ue = () => {
|
|
4190
4187
|
var L;
|
|
4191
|
-
y.value.removeEventListener("mousemove",
|
|
4188
|
+
y.value.removeEventListener("mousemove", R), y.value.removeEventListener("mousemove", B), y.value.removeEventListener("mouseleave", ue), y.value.removeEventListener("mouseup", ue), ((L = D.value) == null ? void 0 : L.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4192
4189
|
}, he = (L) => {
|
|
4193
4190
|
if (!L || L === D.value.content) {
|
|
4194
4191
|
u.value++;
|
|
4195
4192
|
return;
|
|
4196
4193
|
}
|
|
4197
4194
|
t("changeAbsTxtItem", { ...D.value, content: L });
|
|
4198
|
-
},
|
|
4195
|
+
}, se = (L, $) => {
|
|
4199
4196
|
var ee;
|
|
4200
4197
|
const T = document.body.querySelector(`.cke_editor_${ht}`);
|
|
4201
4198
|
!L && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe || T && window.getComputedStyle(T).display !== "none") || (Y.value = L == null ? void 0 : L.key, i.value = L ? { ...L } : null);
|
|
4202
4199
|
};
|
|
4203
4200
|
return (L, $) => (s(), d(M, null, [
|
|
4204
4201
|
(s(!0), d(M, null, V(J.value, (T) => {
|
|
4205
|
-
var ee, pe,
|
|
4202
|
+
var ee, pe, G, oe, Te, Se, ge;
|
|
4206
4203
|
return ft((s(), d("div", {
|
|
4207
4204
|
key: T.id,
|
|
4208
4205
|
"data-safe": "true",
|
|
4209
4206
|
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === T.key ? "z-8" : "z-7"]),
|
|
4210
|
-
style:
|
|
4211
|
-
onMousedown: Le((f) =>
|
|
4207
|
+
style: W({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((G = v.value[T.key]) == null ? void 0 : G.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px", transform: `rotate(${((Se = v.value[T.key]) == null ? void 0 : Se.rotate) || T.rotate}deg)` }),
|
|
4208
|
+
onMousedown: Le((f) => se(T), ["stop"]),
|
|
4212
4209
|
"data-block": x(Ee)
|
|
4213
4210
|
}, [
|
|
4214
4211
|
g("img", {
|
|
@@ -4227,13 +4224,13 @@ const Ds = {
|
|
|
4227
4224
|
(s(), d(M, null, V(8, (f, S) => g("div", {
|
|
4228
4225
|
key: f,
|
|
4229
4226
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4230
|
-
style:
|
|
4227
|
+
style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
|
|
4231
4228
|
onMousedown: Le((ye) => w(ye, S), ["stop"])
|
|
4232
4229
|
}, null, 44, zs)), 64))
|
|
4233
4230
|
]),
|
|
4234
4231
|
g("span", {
|
|
4235
4232
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4236
|
-
onMousedown: Le(
|
|
4233
|
+
onMousedown: Le(H, ["stop"])
|
|
4237
4234
|
}, [
|
|
4238
4235
|
K(_e, {
|
|
4239
4236
|
name: "reset",
|
|
@@ -4243,18 +4240,18 @@ const Ds = {
|
|
|
4243
4240
|
], 64)) : P("", !0)
|
|
4244
4241
|
], 46, As)), [
|
|
4245
4242
|
[x(n), z],
|
|
4246
|
-
[x(a), (f) =>
|
|
4243
|
+
[x(a), (f) => se(null, f)]
|
|
4247
4244
|
]);
|
|
4248
4245
|
}), 128)),
|
|
4249
4246
|
(s(!0), d(M, null, V(E.value, (T) => {
|
|
4250
|
-
var ee, pe,
|
|
4247
|
+
var ee, pe, G, oe, Te, Se, ge;
|
|
4251
4248
|
return ft((s(), d("div", {
|
|
4252
4249
|
key: T.id,
|
|
4253
4250
|
disabled: F.value,
|
|
4254
4251
|
"data-safe": "true",
|
|
4255
4252
|
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === T.key ? "z-8 bg-white" : "z-7"]),
|
|
4256
|
-
style:
|
|
4257
|
-
onMousedown: Le((f) =>
|
|
4253
|
+
style: W({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((G = v.value[T.key]) == null ? void 0 : G.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px" }),
|
|
4254
|
+
onMousedown: Le((f) => se(T), ["stop"]),
|
|
4258
4255
|
"data-block": x(Ee)
|
|
4259
4256
|
}, [
|
|
4260
4257
|
(s(), U(Ms, {
|
|
@@ -4268,7 +4265,7 @@ const Ds = {
|
|
|
4268
4265
|
onBlur: $[1] || ($[1] = (f) => ne(!1))
|
|
4269
4266
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4270
4267
|
((ge = D.value) == null ? void 0 : ge.key) === T.key ? (s(), d(M, { key: 0 }, [
|
|
4271
|
-
g("span",
|
|
4268
|
+
g("span", Gs, [
|
|
4272
4269
|
K(_e, {
|
|
4273
4270
|
name: "close",
|
|
4274
4271
|
width: 2,
|
|
@@ -4276,24 +4273,24 @@ const Ds = {
|
|
|
4276
4273
|
onClick: (f) => t("delAbsTxtItem", T)
|
|
4277
4274
|
}, null, 8, ["onClick"])
|
|
4278
4275
|
]),
|
|
4279
|
-
g("div",
|
|
4276
|
+
g("div", Ws, [
|
|
4280
4277
|
(s(), d(M, null, V(8, (f, S) => g("div", {
|
|
4281
4278
|
key: f,
|
|
4282
4279
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4283
|
-
style:
|
|
4280
|
+
style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
|
|
4284
4281
|
onMousedown: (ye) => w(ye, S)
|
|
4285
4282
|
}, null, 44, Ys)), 64))
|
|
4286
4283
|
])
|
|
4287
4284
|
], 64)) : P("", !0)
|
|
4288
4285
|
], 46, Rs)), [
|
|
4289
4286
|
[x(n), z],
|
|
4290
|
-
[x(a), (f) =>
|
|
4287
|
+
[x(a), (f) => se(null, f)]
|
|
4291
4288
|
]);
|
|
4292
4289
|
}), 128))
|
|
4293
4290
|
], 64));
|
|
4294
4291
|
}
|
|
4295
4292
|
});
|
|
4296
|
-
const Qs = /* @__PURE__ */
|
|
4293
|
+
const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["viewBox"], Ks = {
|
|
4297
4294
|
x: "0",
|
|
4298
4295
|
y: "0",
|
|
4299
4296
|
width: "100%",
|
|
@@ -4315,7 +4312,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4315
4312
|
emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
|
|
4316
4313
|
setup(e, { emit: t }) {
|
|
4317
4314
|
const o = e;
|
|
4318
|
-
|
|
4315
|
+
Gt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4319
4316
|
const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]), y = Q([]), O = Q([]), h = Q([]), F = A(() => o.data.map((f) => ({
|
|
4320
4317
|
...f,
|
|
4321
4318
|
__tag__: xt(),
|
|
@@ -4327,7 +4324,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4327
4324
|
}), J = A(() => {
|
|
4328
4325
|
var f;
|
|
4329
4326
|
return o.layout.bindFlag && !!((f = Oe.find((S) => S.code === o.layout.paper)) != null && f.isMultCol);
|
|
4330
|
-
}), E = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)),
|
|
4327
|
+
}), E = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), k = A(() => b[o.layout.paper].width - _.value.left - _.value.right), w = A(() => b[o.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (k.value - (i.value ? i.value + pe(0) : 0) + pe(0)) / o.layout.column - pe(0)), B = A(() => ({
|
|
4331
4328
|
width: `${b[o.layout.paper].width}px`,
|
|
4332
4329
|
height: `${(b[o.layout.paper].height + E.value) * z.value - E.value}px`
|
|
4333
4330
|
})), ue = A(() => ({
|
|
@@ -4341,7 +4338,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4341
4338
|
return {
|
|
4342
4339
|
left: `${_.value.left + (i.value ? i.value + pe(0) : 0)}px`,
|
|
4343
4340
|
top: `${_.value.top}px`,
|
|
4344
|
-
width: f ? `${
|
|
4341
|
+
width: f ? `${R.value}px` : `${k.value}px`
|
|
4345
4342
|
};
|
|
4346
4343
|
});
|
|
4347
4344
|
De(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1, simpleScoreBarFlag: !1, minusFlag: !1, fillScoreFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
@@ -4351,28 +4348,28 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4351
4348
|
}, { immediate: !0 }), De(() => J.value, () => {
|
|
4352
4349
|
i.value = J.value ? 100 : 0;
|
|
4353
4350
|
}, { immediate: !0 });
|
|
4354
|
-
const
|
|
4351
|
+
const se = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (f, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + f, $ = (f) => {
|
|
4355
4352
|
const S = f % (o.layout.column + o.layout.backColumn);
|
|
4356
4353
|
return S >= o.layout.column ? S - o.layout.column : S;
|
|
4357
4354
|
}, T = (f, S) => {
|
|
4358
4355
|
f ? u.value[S] = f : u.value.splice(S, 1);
|
|
4359
4356
|
}, ee = (f, S) => {
|
|
4360
4357
|
f ? y.value[S] = f : y.value.splice(S, 1);
|
|
4361
|
-
}, pe = (f) => Et[o.layout.mode][o.layout.paper][
|
|
4362
|
-
var j,
|
|
4358
|
+
}, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, G = (f, S = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / se(f) - pe(f) - H.value.left - H.value.right + (S ? H.value.left + H.value.right : 0), oe = (f, S) => {
|
|
4359
|
+
var j, ie;
|
|
4363
4360
|
const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((j = O.value[Math.min(S, 1)]) == null ? void 0 : j.offsetHeight) || 0;
|
|
4364
4361
|
return {
|
|
4365
|
-
left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) +
|
|
4366
|
-
top: `${ye + _.value.top + (!S && !f ? 0 :
|
|
4367
|
-
width: `${
|
|
4368
|
-
height: `${w.value - ye - (!S && !f ? 0 :
|
|
4369
|
-
contentHeight: `${(
|
|
4362
|
+
left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (G(f) + pe(f) + H.value.left + H.value.right)}px`,
|
|
4363
|
+
top: `${ye + _.value.top + (!S && !f ? 0 : H.value.top)}px`,
|
|
4364
|
+
width: `${G(f)}px`,
|
|
4365
|
+
height: `${w.value - ye - (!S && !f ? 0 : H.value.top) - H.value.bottom}px`,
|
|
4366
|
+
contentHeight: `${(ie = a.value[f]) == null ? void 0 : ie.height}px`
|
|
4370
4367
|
};
|
|
4371
4368
|
}, Te = (f, S = !1) => {
|
|
4372
4369
|
n.value = f.map((ye) => ({ ...ye })), S && (a.value = [...f], Ze(() => {
|
|
4373
4370
|
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], y.value.forEach((ye, j) => {
|
|
4374
|
-
var
|
|
4375
|
-
!ye || !ye.col || ((
|
|
4371
|
+
var ie, Ce;
|
|
4372
|
+
!ye || !ye.col || ((ie = a.value[j]) != null && ie.top ? ye.col.style.marginTop = `${(Ce = a.value[j]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
|
|
4376
4373
|
}), o.isFinal && setTimeout(() => {
|
|
4377
4374
|
const ye = ys({
|
|
4378
4375
|
config: {
|
|
@@ -4425,38 +4422,38 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4425
4422
|
ref_key: "rawDom",
|
|
4426
4423
|
ref: c
|
|
4427
4424
|
}, [
|
|
4428
|
-
n.value.length ? (s(!0), d(M, { key: 0 }, V((ye = n.value[n.value.length - 1]) == null ? void 0 : ye.data, (j,
|
|
4425
|
+
n.value.length ? (s(!0), d(M, { key: 0 }, V((ye = n.value[n.value.length - 1]) == null ? void 0 : ye.data, (j, ie) => (s(), d(M, null, [
|
|
4429
4426
|
j.isHidden ? P("", !0) : (s(), U(Ct, {
|
|
4430
4427
|
key: 0,
|
|
4431
4428
|
item: j,
|
|
4432
4429
|
showColBorder: ne.value,
|
|
4433
|
-
isFirst: !
|
|
4430
|
+
isFirst: !ie && n.value.length === 1,
|
|
4434
4431
|
layout: f.layout
|
|
4435
4432
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4436
4433
|
ne.value ? (s(), d("div", {
|
|
4437
4434
|
key: 1,
|
|
4438
4435
|
class: te([!j.children.length && j.problemType && "p-1 min-h-[2rem]"])
|
|
4439
4436
|
}, [
|
|
4440
|
-
(s(), U(
|
|
4437
|
+
(s(), U(We, {
|
|
4441
4438
|
data: j,
|
|
4442
4439
|
key: n.value.length,
|
|
4443
4440
|
layout: f.layout,
|
|
4444
4441
|
target: f.target,
|
|
4445
4442
|
noPortrait: "",
|
|
4446
|
-
width:
|
|
4443
|
+
width: G(n.value.length - 1) - 10
|
|
4447
4444
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4448
|
-
], 2)) : (s(), U(
|
|
4445
|
+
], 2)) : (s(), U(We, {
|
|
4449
4446
|
data: j,
|
|
4450
4447
|
key: n.value.length,
|
|
4451
4448
|
layout: f.layout,
|
|
4452
4449
|
target: f.target,
|
|
4453
|
-
width:
|
|
4450
|
+
width: G(n.value.length - 1)
|
|
4454
4451
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4455
4452
|
], 64))), 256)) : P("", !0)
|
|
4456
4453
|
], 512),
|
|
4457
4454
|
g("div", {
|
|
4458
4455
|
class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", f.layout.redFlag && "red_mode", f.readonly && "pointer-events-none"]),
|
|
4459
|
-
style:
|
|
4456
|
+
style: W(B.value)
|
|
4460
4457
|
}, [
|
|
4461
4458
|
K(Qs, {
|
|
4462
4459
|
imgData: f.imgData,
|
|
@@ -4475,20 +4472,20 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4475
4472
|
key: l.value
|
|
4476
4473
|
}, [
|
|
4477
4474
|
(s(), d("foreignObject", Ks, [
|
|
4478
|
-
(s(!0), d(M, null, V(z.value, (j,
|
|
4475
|
+
(s(!0), d(M, null, V(z.value, (j, ie) => (s(), d("div", {
|
|
4479
4476
|
key: j,
|
|
4480
4477
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4481
4478
|
ref_for: !0,
|
|
4482
|
-
ref: (Ce) => T(Ce,
|
|
4483
|
-
style:
|
|
4479
|
+
ref: (Ce) => T(Ce, ie),
|
|
4480
|
+
style: W(ue.value)
|
|
4484
4481
|
}, [
|
|
4485
|
-
|
|
4482
|
+
ie < v.value ? (s(), d(M, { key: 0 }, [
|
|
4486
4483
|
K(wo, {
|
|
4487
4484
|
layout: f.layout,
|
|
4488
|
-
currentPage:
|
|
4485
|
+
currentPage: ie,
|
|
4489
4486
|
totalPage: v.value,
|
|
4490
|
-
columnContentWidth:
|
|
4491
|
-
columnMargin: pe(
|
|
4487
|
+
columnContentWidth: G(ie % 2 ? f.layout.column : 0, !0),
|
|
4488
|
+
columnMargin: pe(ie % 2 ? f.layout.column : 0),
|
|
4492
4489
|
bindWidth: i.value,
|
|
4493
4490
|
padding: _.value
|
|
4494
4491
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
@@ -4502,18 +4499,18 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4502
4499
|
ref_for: !0,
|
|
4503
4500
|
ref_key: "bindDom",
|
|
4504
4501
|
ref: h,
|
|
4505
|
-
currentPage:
|
|
4502
|
+
currentPage: ie,
|
|
4506
4503
|
width: i.value,
|
|
4507
4504
|
height: w.value,
|
|
4508
4505
|
isBindFlag: J.value
|
|
4509
4506
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
|
|
4510
|
-
!(
|
|
4507
|
+
!(ie % 2) || ie === 1 && v.value < 3 ? (s(), d("div", {
|
|
4511
4508
|
key: 1,
|
|
4512
4509
|
ref_for: !0,
|
|
4513
4510
|
ref_key: "titleDom",
|
|
4514
4511
|
ref: O,
|
|
4515
|
-
class: te(["absolute text-black",
|
|
4516
|
-
style:
|
|
4512
|
+
class: te(["absolute text-black", ie === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4513
|
+
style: W(he.value)
|
|
4517
4514
|
}, [
|
|
4518
4515
|
K(Mo, {
|
|
4519
4516
|
layout: f.layout,
|
|
@@ -4536,36 +4533,36 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4536
4533
|
layout: f.layout,
|
|
4537
4534
|
isBindFlag: J.value
|
|
4538
4535
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4539
|
-
|
|
4536
|
+
ie ? P("", !0) : (s(), U(Ya, {
|
|
4540
4537
|
key: 0,
|
|
4541
4538
|
layout: f.layout,
|
|
4542
4539
|
data: f.data
|
|
4543
4540
|
}, null, 8, ["layout", "data"])),
|
|
4544
|
-
f.layout.writeScoreFlag && !
|
|
4541
|
+
f.layout.writeScoreFlag && !ie ? (s(), U(_l, {
|
|
4545
4542
|
key: 1,
|
|
4546
4543
|
info: f.info,
|
|
4547
4544
|
layout: f.layout
|
|
4548
4545
|
}, null, 8, ["info", "layout"])) : P("", !0)
|
|
4549
4546
|
], 6)) : P("", !0),
|
|
4550
|
-
(s(!0), d(M, null, V(
|
|
4547
|
+
(s(!0), d(M, null, V(ie % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), U(Qa, {
|
|
4551
4548
|
ref_for: !0,
|
|
4552
|
-
ref: (
|
|
4553
|
-
styleInfo: oe(L(Me,
|
|
4549
|
+
ref: (Ge) => ee(Ge, L(Me, ie)),
|
|
4550
|
+
styleInfo: oe(L(Me, ie), ie),
|
|
4554
4551
|
column: f.layout.column,
|
|
4555
|
-
currentColumn: L(Me,
|
|
4552
|
+
currentColumn: L(Me, ie),
|
|
4556
4553
|
showColBorder: ne.value
|
|
4557
4554
|
}, {
|
|
4558
4555
|
default: Tt(() => {
|
|
4559
|
-
var
|
|
4556
|
+
var Ge;
|
|
4560
4557
|
return [
|
|
4561
|
-
(s(!0), d(M, null, V(((
|
|
4558
|
+
(s(!0), d(M, null, V(((Ge = a.value[L(Me, ie)]) == null ? void 0 : Ge.data) || [], (fe, zt) => {
|
|
4562
4559
|
var pt;
|
|
4563
4560
|
return s(), d(M, null, [
|
|
4564
4561
|
fe.isHidden ? P("", !0) : (s(), U(Ct, {
|
|
4565
4562
|
key: 0,
|
|
4566
4563
|
item: fe,
|
|
4567
4564
|
showColBorder: ne.value,
|
|
4568
|
-
isFirst: !
|
|
4565
|
+
isFirst: !ie && !Me && !zt,
|
|
4569
4566
|
layout: f.layout,
|
|
4570
4567
|
isActive: ((pt = f.target.value) == null ? void 0 : pt.id) === fe.id,
|
|
4571
4568
|
onClick: (xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }),
|
|
@@ -4577,11 +4574,11 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4577
4574
|
onClick: Le((xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }), ["stop"]),
|
|
4578
4575
|
onDblclick: (xe) => t("dbHeadLineClick", fe)
|
|
4579
4576
|
}, [
|
|
4580
|
-
K(
|
|
4577
|
+
K(We, {
|
|
4581
4578
|
data: fe,
|
|
4582
4579
|
layout: f.layout,
|
|
4583
4580
|
target: f.target,
|
|
4584
|
-
width:
|
|
4581
|
+
width: G(L(Me, ie)) - 10,
|
|
4585
4582
|
onClick: S[10] || (S[10] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
|
|
4586
4583
|
onDbclick: S[11] || (S[11] = (xe) => t("dbProblemClick", xe))
|
|
4587
4584
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
@@ -4590,12 +4587,12 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4590
4587
|
class: "border-t",
|
|
4591
4588
|
"data-block": x(Ee)
|
|
4592
4589
|
}, null, 8, Xs)) : P("", !0)
|
|
4593
|
-
], 42, js)) : (s(), U(
|
|
4590
|
+
], 42, js)) : (s(), U(We, {
|
|
4594
4591
|
key: 2,
|
|
4595
4592
|
data: fe,
|
|
4596
4593
|
layout: f.layout,
|
|
4597
4594
|
target: f.target,
|
|
4598
|
-
width:
|
|
4595
|
+
width: G(L(Me, ie)),
|
|
4599
4596
|
onClick: S[12] || (S[12] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
|
|
4600
4597
|
onDbclick: S[13] || (S[13] = (xe) => t("dbProblemClick", xe))
|
|
4601
4598
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
@@ -4615,7 +4612,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4615
4612
|
};
|
|
4616
4613
|
}
|
|
4617
4614
|
});
|
|
4618
|
-
const ei = /* @__PURE__ */
|
|
4615
|
+
const ei = /* @__PURE__ */ ce(Vs, [["__scopeId", "data-v-4825ba41"]]);
|
|
4619
4616
|
export {
|
|
4620
4617
|
Js as Config,
|
|
4621
4618
|
ei as default
|