alit-layout 1.1.24 → 1.1.25
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 +53 -46
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as se, computed as R, 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 D, ref as U, watch as Oe, normalizeClass as oe, createBlock as ee, createTextVNode as et, createVNode as le, pushScopeId as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as se, computed as R, 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 D, 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 Re = {
|
|
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
|
+
...Re,
|
|
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: _,
|
|
@@ -1856,11 +1863,11 @@ const je = {
|
|
|
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
1865
|
})[i], c = () => ({
|
|
1859
|
-
[
|
|
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
|
}
|
|
@@ -1916,7 +1923,7 @@ const je = {
|
|
|
1916
1923
|
key: 0,
|
|
1917
1924
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1918
1925
|
style: Z({ right: `${i.padding.right - 12}px` })
|
|
1919
|
-
}, "提示:本卷" + te((n = F(
|
|
1926
|
+
}, "提示:本卷" + te((n = F(Ge).find((d) => d.code === i.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
|
|
1920
1927
|
w("span", {
|
|
1921
1928
|
class: "absolute text-sm red_sheet",
|
|
1922
1929
|
style: Z({ right: `${i.padding.bottom - 20 + 75}px`, bottom: `${i.padding.bottom - 20 - 3}px` })
|
|
@@ -2316,7 +2323,7 @@ const zt = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
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",
|
|
@@ -2357,7 +2364,7 @@ const zt = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
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 = [
|
|
@@ -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 = [
|
|
@@ -2617,7 +2624,7 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2617
2624
|
},
|
|
2618
2625
|
setup(e) {
|
|
2619
2626
|
const t = e, o = U(), l = U(!1), c = U(!1), s = U(!1), a = U([]), i = R(() => t.layout.scoreAddStars === st.star.code);
|
|
2620
|
-
Oe(() => [t.item.score], () => y()),
|
|
2627
|
+
Oe(() => [t.item.score], () => y()), Ke(() => {
|
|
2621
2628
|
y();
|
|
2622
2629
|
});
|
|
2623
2630
|
const y = () => {
|
|
@@ -2670,7 +2677,7 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2670
2677
|
], 10, _l))
|
|
2671
2678
|
], 64)) : D("", !0);
|
|
2672
2679
|
}
|
|
2673
|
-
}), Rt = (e) => (
|
|
2680
|
+
}), Rt = (e) => (qe("data-v-a8dbd3b0"), e = e(), Ye(), e), bl = ["data-xine"], vl = /* @__PURE__ */ Rt(() => /* @__PURE__ */ w("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), wl = /* @__PURE__ */ Rt(() => /* @__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,7 +2728,7 @@ 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 = {
|
|
@@ -2739,7 +2746,7 @@ const Ne = /* @__PURE__ */ me(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2739
2746
|
emits: ["click", "dbclick"],
|
|
2740
2747
|
setup(e, { emit: t }) {
|
|
2741
2748
|
const o = e, l = U(!1), c = U(), s = R(() => [ke.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), a = R(() => [ke.another_choice].includes(o.item.problemType)), i = R(() => [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 = R(() => [...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]))]);
|
|
2742
|
-
return
|
|
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,
|
|
@@ -3014,7 +3021,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3014
3021
|
})), d = R(() => ({
|
|
3015
3022
|
width: `${y.value}px`
|
|
3016
3023
|
})), A = R(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3017
|
-
return
|
|
3024
|
+
return Ke(() => {
|
|
3018
3025
|
if (!t.item.artBlock)
|
|
3019
3026
|
return;
|
|
3020
3027
|
nt(() => {
|
|
@@ -3205,7 +3212,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3205
3212
|
let b = [];
|
|
3206
3213
|
e.data.children.forEach((T) => {
|
|
3207
3214
|
let H = b[b.length - 1];
|
|
3208
|
-
((T.polymerId || l.includes(e.data.problemType)) && l.includes(T.problemType) || [
|
|
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 ? (!H || H.type !== "polymer" || H.polymerId !== T.polymerId) && (b.push({
|
|
3209
3216
|
type: "polymer",
|
|
3210
3217
|
problemType: T.problemType,
|
|
3211
3218
|
polymerId: T.polymerId,
|
|
@@ -3252,7 +3259,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3252
3259
|
} else if (T.styleInfo[u[e.layout.mode].choice_a] === _.choice_3) {
|
|
3253
3260
|
let f = [], v = 0, k = 0, M = 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, M = Math.min(Math.floor(e.width / k), de), K = ce ? M * 20 : M * T.styleInfo[u[e.layout.mode].choice_e], v = E.optList.length, f.push({ children: [], col: M, colList: [...Array(M).keys()].map((W) => E.optList.length) })), (!Object.values(
|
|
3262
|
+
E.optList.length !== v && (k = E.optList.length * (Fe[e.layout.fillSize].value + 9) + ae, M = Math.min(Math.floor(e.width / k), de), K = ce ? M * 20 : M * T.styleInfo[u[e.layout.mode].choice_e], v = E.optList.length, f.push({ children: [], col: M, colList: [...Array(M).keys()].map((W) => E.optList.length) })), (!Object.values(Re).includes(E.problemType) && !f.length || f[f.length - 1].children.length >= K) && f.push({ children: [], col: M, colList: [...Array(M).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);
|
|
@@ -3316,7 +3323,7 @@ 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(Re).includes(b.problemType)) {
|
|
3320
3327
|
if (b.styleInfo[u[e.layout.mode].choice_a] === _.choice_2)
|
|
3321
3328
|
return $;
|
|
3322
3329
|
let H = [];
|
|
@@ -3352,7 +3359,7 @@ 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 (
|
|
3362
|
+
if (Object.values(Re).includes(b.problemType) && b.style[u[e.layout.mode].choice_a] === _.choice_2) {
|
|
3356
3363
|
const H = 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 / (H * b.style[u[e.layout.mode].choice_c] + 10)), Q = (e.width - H * 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
3365
|
"min-width": `${H - 5}px`,
|
|
@@ -3370,7 +3377,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3370
3377
|
return T;
|
|
3371
3378
|
if (l.includes(b.problemType)) {
|
|
3372
3379
|
let ce = {};
|
|
3373
|
-
if (Object.values(
|
|
3380
|
+
if (Object.values(Re).includes(e.data.problemType)) {
|
|
3374
3381
|
const Q = Math.max(.../*props.data.rawChildren || */
|
|
3375
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[((H = e.data.children[0]) == null ? void 0 : H.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` };
|
|
@@ -3496,7 +3503,7 @@ function rs(e, t, o, l, c, s) {
|
|
|
3496
3503
|
}), 256))
|
|
3497
3504
|
], 64))), 256);
|
|
3498
3505
|
}
|
|
3499
|
-
const
|
|
3506
|
+
const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
3500
3507
|
const c = (e.length > 1 ? [e[0], e[e.length - 1]] : e).map((i) => i.split(".")).map((i) => `${i[0] ? `<span>${i[0]}</span>` : ""}${i[1] ? `<span> - </span><span>${i[1]}</span>` : ""}${i[2] ? `<span> - </span><span class="flex items-center justify-center w-8 h-8 border rounded-full scale-75">${i[2]}</span>` : ""}`).filter((i) => i).join(""), s = (i) => {
|
|
3501
3508
|
if (!o)
|
|
3502
3509
|
return "";
|
|
@@ -3581,7 +3588,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
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 (i =
|
|
3591
|
+
return (i = Ge.find((y) => y.code === e.layout.paper)) != null && i.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
|
|
@@ -3942,7 +3949,7 @@ 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
|
}],
|
|
@@ -4308,11 +4315,11 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4308
4315
|
if (!he.length) {
|
|
4309
4316
|
let f = { ...$ };
|
|
4310
4317
|
switch ($.problemType) {
|
|
4311
|
-
case
|
|
4318
|
+
case We.slove:
|
|
4312
4319
|
const v = H.querySelector(`*[data-area="${$.id}"]`);
|
|
4313
4320
|
v != null && v.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = v.innerHTML), H.contains(S.targetEl) && ($.chunk += 1);
|
|
4314
4321
|
break;
|
|
4315
|
-
case
|
|
4322
|
+
case We.art:
|
|
4316
4323
|
if ($.artEditor) {
|
|
4317
4324
|
const k = H.querySelector(`*[data-area="${$.id}"]`);
|
|
4318
4325
|
k != null && k.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = k.innerHTML), H.contains(S.targetEl) && ($.chunk += 1);
|
|
@@ -4375,7 +4382,7 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4375
4382
|
emits: ["change", "focus", "blur"],
|
|
4376
4383
|
setup(e, { emit: t }) {
|
|
4377
4384
|
const o = e, l = Kt("ckeditorOrigin", ""), c = U();
|
|
4378
|
-
Oe(() => o.readonly, () => s()),
|
|
4385
|
+
Oe(() => o.readonly, () => s()), Ke(() => s());
|
|
4379
4386
|
const s = () => {
|
|
4380
4387
|
if (window.CKEDITOR) {
|
|
4381
4388
|
if (o.readonly) {
|
|
@@ -4436,16 +4443,16 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4436
4443
|
}
|
|
4437
4444
|
});
|
|
4438
4445
|
const Hs = /* @__PURE__ */ me(zs, [["__scopeId", "data-v-1398ac85"]]);
|
|
4439
|
-
let
|
|
4446
|
+
let je = (e) => {
|
|
4440
4447
|
};
|
|
4441
4448
|
const Rs = {
|
|
4442
4449
|
updated: function(e, t) {
|
|
4443
|
-
document.body.removeEventListener("click",
|
|
4450
|
+
document.body.removeEventListener("click", je), je = (o) => {
|
|
4444
4451
|
!e.contains(o.target) && t.value && t.value(o);
|
|
4445
|
-
}, document.body.addEventListener("click",
|
|
4452
|
+
}, document.body.addEventListener("click", je);
|
|
4446
4453
|
},
|
|
4447
4454
|
unmounted: () => {
|
|
4448
|
-
document.body.removeEventListener("click",
|
|
4455
|
+
document.body.removeEventListener("click", je);
|
|
4449
4456
|
}
|
|
4450
4457
|
};
|
|
4451
4458
|
let ut = null;
|
|
@@ -4496,7 +4503,7 @@ const Ws = {
|
|
|
4496
4503
|
...f,
|
|
4497
4504
|
top: f.top - Math.floor(f.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4498
4505
|
}))), N = R(() => B.value ? B.value.split("-")[0] === "img" ? q.value.find((v) => v.key === B.value) : C.value.find((v) => v.key === B.value) : null), j = R(() => N.value ? { [N.value.key]: { ...i.value } } : {});
|
|
4499
|
-
|
|
4506
|
+
Ke(() => {
|
|
4500
4507
|
d.value = document.body.querySelector(".__layout__");
|
|
4501
4508
|
});
|
|
4502
4509
|
const S = (f) => {
|
|
@@ -4822,7 +4829,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4822
4829
|
return j.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
|
|
4823
4830
|
}), V = R(() => {
|
|
4824
4831
|
var g;
|
|
4825
|
-
return o.layout.bindFlag && !!((g =
|
|
4832
|
+
return o.layout.bindFlag && !!((g = Ge.find((I) => I.code === o.layout.paper)) != null && g.isMultCol);
|
|
4826
4833
|
}), X = R(() => o.isFinal ? 0 : 10), q = R(() => o.isFinal ? 10 : 0), C = R(() => 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) || s.value || 1), N = R(() => Math.ceil(C.value / 2) * 2), j = R(() => ["sheet", "sheetCard"].includes(o.layout.mode)), S = R(() => j.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), Y = R(() => 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 = R(() => x[o.layout.paper].width - Y.value.left - Y.value.right), b = R(() => x[o.layout.paper].height - Y.value.top - Y.value.bottom), $ = R(() => (he.value - (i.value ? i.value + K(0) : 0) + K(0)) / o.layout.column - K(0)), T = R(() => ({
|
|
4827
4834
|
width: `${x[o.layout.paper].width}px`,
|
|
4828
4835
|
height: `${(x[o.layout.paper].height + X.value) * N.value - X.value}px`
|
|
@@ -4833,7 +4840,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4833
4840
|
marginBottom: `${X.value}px`
|
|
4834
4841
|
})), ce = R(() => {
|
|
4835
4842
|
var I;
|
|
4836
|
-
const g = (I =
|
|
4843
|
+
const g = (I = Ge.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : I.isFullTitle;
|
|
4837
4844
|
return {
|
|
4838
4845
|
left: `${Y.value.left + (i.value ? i.value + K(0) : 0)}px`,
|
|
4839
4846
|
top: `${Y.value.top}px`,
|
|
@@ -4945,7 +4952,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4945
4952
|
key: 1,
|
|
4946
4953
|
class: oe([!J.children.length && J.problemType && "p-1 min-h-[2rem]"])
|
|
4947
4954
|
}, [
|
|
4948
|
-
(r(), ee(
|
|
4955
|
+
(r(), ee(Ve, {
|
|
4949
4956
|
data: J,
|
|
4950
4957
|
key: c.value.length,
|
|
4951
4958
|
layout: g.layout,
|
|
@@ -4953,7 +4960,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4953
4960
|
noPortrait: "",
|
|
4954
4961
|
width: E(c.value.length - 1)
|
|
4955
4962
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4956
|
-
], 2)) : (r(), ee(
|
|
4963
|
+
], 2)) : (r(), ee(Ve, {
|
|
4957
4964
|
data: J,
|
|
4958
4965
|
key: c.value.length,
|
|
4959
4966
|
layout: g.layout,
|
|
@@ -5059,16 +5066,16 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5059
5066
|
], 6)) : D("", !0),
|
|
5060
5067
|
(r(!0), h(O, null, ne(ie % 2 ? g.layout.backColumn : g.layout.column, (Te, Me) => (r(), ee(Xa, {
|
|
5061
5068
|
ref_for: !0,
|
|
5062
|
-
ref: (
|
|
5069
|
+
ref: (Ue) => M(Ue, f(Me, ie)),
|
|
5063
5070
|
styleInfo: W(f(Me, ie), ie),
|
|
5064
5071
|
column: g.layout.column,
|
|
5065
5072
|
currentColumn: f(Me, ie),
|
|
5066
5073
|
showColBorder: j.value
|
|
5067
5074
|
}, {
|
|
5068
5075
|
default: Mt(() => {
|
|
5069
|
-
var
|
|
5076
|
+
var Ue;
|
|
5070
5077
|
return [
|
|
5071
|
-
(r(!0), h(O, null, ne(((
|
|
5078
|
+
(r(!0), h(O, null, ne(((Ue = l.value[f(Me, ie)]) == null ? void 0 : Ue.data) || [], (ve, qt) => {
|
|
5072
5079
|
var kt;
|
|
5073
5080
|
return r(), h(O, null, [
|
|
5074
5081
|
ve.isHidden ? D("", !0) : (r(), ee(Ft, {
|
|
@@ -5087,7 +5094,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5087
5094
|
onClick: De((Ie) => be({ type: ve.problemType ? F(z).headline : F(z).headlineNotarea, value: ve }), ["stop"]),
|
|
5088
5095
|
onDblclick: (Ie) => t("dbHeadLineClick", ve)
|
|
5089
5096
|
}, [
|
|
5090
|
-
le(
|
|
5097
|
+
le(Ve, {
|
|
5091
5098
|
data: ve,
|
|
5092
5099
|
layout: g.layout,
|
|
5093
5100
|
target: g.target,
|
|
@@ -5100,7 +5107,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5100
5107
|
class: "border-t",
|
|
5101
5108
|
"data-block": F(Ae)
|
|
5102
5109
|
}, null, 8, li)) : D("", !0)
|
|
5103
|
-
], 42, ai)) : (r(), ee(
|
|
5110
|
+
], 42, ai)) : (r(), ee(Ve, {
|
|
5104
5111
|
key: 2,
|
|
5105
5112
|
data: ve,
|
|
5106
5113
|
layout: g.layout,
|