alit-layout 1.1.5 → 1.1.6
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 +202 -202
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as D, renderList as oe, createElementVNode as v, normalizeStyle as
|
|
1
|
+
import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as D, renderList as oe, createElementVNode as v, normalizeStyle as j, unref as I, toDisplayString as X, createCommentVNode as P, ref as Q, watch as Ne, normalizeClass as Z, computed as A, createBlock as V, createTextVNode as Je, createVNode as te, pushScopeId as Ge, popScopeId as Qe, renderSlot as pt, onMounted as qe, nextTick as ot, withModifiers as Me, resolveComponent as Gt, resolveDynamicComponent as vt, normalizeProps as wt, guardReactiveProps as kt, withCtx as Ft, inject as Qt, withDirectives as xt, provide as qt } from "vue";
|
|
2
2
|
const je = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -1872,26 +1872,26 @@ const je = {
|
|
|
1872
1872
|
(i(), h(D, null, oe(["lt", "rt", "lb", "rb"], (n) => v("span", {
|
|
1873
1873
|
key: n,
|
|
1874
1874
|
class: "absolute w-8 bg-black point_item",
|
|
1875
|
-
style:
|
|
1875
|
+
style: j(o(n)),
|
|
1876
1876
|
"data-xine": I(T).point + n
|
|
1877
1877
|
}, null, 12, go)), 64)),
|
|
1878
1878
|
(i(!0), h(D, null, oe((a.currentPage % 2 ? a.layout.backColumn : a.layout.column) - 1, (n) => (i(), h(D, { key: n }, [
|
|
1879
1879
|
(i(), h(D, null, oe(["t", "b"], (u) => v("span", {
|
|
1880
1880
|
key: u,
|
|
1881
1881
|
class: "absolute bg-black w-8 point_item",
|
|
1882
|
-
style:
|
|
1882
|
+
style: j(r(n, u)),
|
|
1883
1883
|
"data-xine": I(T).point + u
|
|
1884
1884
|
}, null, 12, bo)), 64))
|
|
1885
1885
|
], 64))), 128)),
|
|
1886
1886
|
(i(), h(D, null, oe(["l", "r"], (n) => v("span", {
|
|
1887
1887
|
key: n,
|
|
1888
1888
|
class: "absolute bg-black h-8",
|
|
1889
|
-
style:
|
|
1889
|
+
style: j(s(n)),
|
|
1890
1890
|
"data-xine": I(T).point + n
|
|
1891
1891
|
}, null, 12, vo)), 64)),
|
|
1892
1892
|
v("p", {
|
|
1893
1893
|
class: "absolute leading-none text-0",
|
|
1894
|
-
style:
|
|
1894
|
+
style: j(l()),
|
|
1895
1895
|
"data-xine": I(T).page
|
|
1896
1896
|
}, [
|
|
1897
1897
|
(i(!0), h(D, null, oe(a.currentPage + 1, (n, u) => (i(), h("span", {
|
|
@@ -1903,11 +1903,11 @@ const je = {
|
|
|
1903
1903
|
a.currentPage % 2 ? P("", !0) : (i(), h("span", {
|
|
1904
1904
|
key: 0,
|
|
1905
1905
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1906
|
-
style:
|
|
1906
|
+
style: j({ right: `${a.padding.right - 12}px` })
|
|
1907
1907
|
}, "提示:本卷" + X((y = I(He).find((n) => n.code === a.layout.paper)) == null ? void 0 : y.name) + "纸张", 5)),
|
|
1908
1908
|
v("span", {
|
|
1909
1909
|
class: "absolute text-sm red_sheet",
|
|
1910
|
-
style:
|
|
1910
|
+
style: j({ right: `${a.padding.bottom - 20 + 75}px`, bottom: `${a.padding.bottom - 20 - 3}px` })
|
|
1911
1911
|
}, X(a.currentPage + 1) + "/" + X(a.totalPage), 5)
|
|
1912
1912
|
], 64);
|
|
1913
1913
|
};
|
|
@@ -1990,7 +1990,7 @@ const ye = (e, t) => {
|
|
|
1990
1990
|
size: "small",
|
|
1991
1991
|
autoLine: "",
|
|
1992
1992
|
dir: "right",
|
|
1993
|
-
style:
|
|
1993
|
+
style: j(r.value),
|
|
1994
1994
|
onChange: a[0] || (a[0] = (c) => t("change", { slogin: c }))
|
|
1995
1995
|
}, null, 8, ["value", "style"]));
|
|
1996
1996
|
}
|
|
@@ -2095,14 +2095,14 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2095
2095
|
te(ze, {
|
|
2096
2096
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2097
2097
|
value: a.info.title,
|
|
2098
|
-
style:
|
|
2098
|
+
style: j(a.fontConfig.titleStyle),
|
|
2099
2099
|
onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
|
|
2100
2100
|
}, null, 8, ["value", "style"]),
|
|
2101
2101
|
a.layout.secTitleFlag ? (i(), V(ze, {
|
|
2102
2102
|
key: 0,
|
|
2103
2103
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2104
2104
|
value: a.info.secTitle,
|
|
2105
|
-
style:
|
|
2105
|
+
style: j(a.fontConfig.halfTitleStyle),
|
|
2106
2106
|
onChange: c[1] || (c[1] = (y) => t("change", { secTitle: y }))
|
|
2107
2107
|
}, null, 8, ["value", "style"])) : P("", !0),
|
|
2108
2108
|
v("div", Ro, [
|
|
@@ -2481,24 +2481,24 @@ const Ra = {
|
|
|
2481
2481
|
y.showColBorder ? (i(), h("div", {
|
|
2482
2482
|
key: 0,
|
|
2483
2483
|
class: Z(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
|
|
2484
|
-
style:
|
|
2484
|
+
style: j(s.value)
|
|
2485
2485
|
}, [
|
|
2486
2486
|
v("span", {
|
|
2487
2487
|
class: "absolute border border-black",
|
|
2488
|
-
style:
|
|
2488
|
+
style: j(a.value)
|
|
2489
2489
|
}, null, 4)
|
|
2490
2490
|
], 6)) : P("", !0),
|
|
2491
2491
|
v("div", {
|
|
2492
2492
|
class: "absolute overflow-hidden",
|
|
2493
2493
|
ref_key: "colView",
|
|
2494
2494
|
ref: r,
|
|
2495
|
-
style:
|
|
2495
|
+
style: j(y.styleInfo)
|
|
2496
2496
|
}, [
|
|
2497
2497
|
v("div", {
|
|
2498
2498
|
ref_key: "col",
|
|
2499
2499
|
ref: l,
|
|
2500
2500
|
class: "overflow-hidden __col__",
|
|
2501
|
-
style:
|
|
2501
|
+
style: j({ height: y.styleInfo.contentHeight })
|
|
2502
2502
|
}, [
|
|
2503
2503
|
pt(y.$slots, "default", {}, void 0, !0)
|
|
2504
2504
|
], 4)
|
|
@@ -2525,7 +2525,7 @@ const Ua = /* @__PURE__ */ ye(Ya, [["__scopeId", "data-v-e102e805"]]), Ka = (e)
|
|
|
2525
2525
|
const t = Q();
|
|
2526
2526
|
return (o, l) => o.isBindFlag ? (i(), h("div", {
|
|
2527
2527
|
key: 0,
|
|
2528
|
-
style:
|
|
2528
|
+
style: j({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2529
2529
|
class: Z([o.currentPage % 2 && "right_view"]),
|
|
2530
2530
|
ref_key: "view",
|
|
2531
2531
|
ref: t
|
|
@@ -2533,11 +2533,11 @@ const Ua = /* @__PURE__ */ ye(Ya, [["__scopeId", "data-v-e102e805"]]), Ka = (e)
|
|
|
2533
2533
|
o.currentPage % 2 ? (i(), h("div", {
|
|
2534
2534
|
key: 0,
|
|
2535
2535
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2536
|
-
style:
|
|
2536
|
+
style: j({ width: `${o.height - 20}px`, height: `${o.width}px` })
|
|
2537
2537
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(), h("div", {
|
|
2538
2538
|
key: 1,
|
|
2539
2539
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2540
|
-
style:
|
|
2540
|
+
style: j({ width: `${o.height - 20}px` })
|
|
2541
2541
|
}, [
|
|
2542
2542
|
v("div", ja, [
|
|
2543
2543
|
(i(!0), h(D, null, oe(o.bindInfo, (r, s) => (i(), h(D, { key: r }, [
|
|
@@ -2584,7 +2584,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2584
2584
|
}, [
|
|
2585
2585
|
(i(!0), h(D, null, oe(l.value, (a, c) => (i(), h("li", {
|
|
2586
2586
|
class: "flex items-center justify-center relative score_line",
|
|
2587
|
-
style:
|
|
2587
|
+
style: j({ width: `${I(et)[r.layout.scoreLineSize].value}px` }),
|
|
2588
2588
|
"data-xine": I(T).score_item
|
|
2589
2589
|
}, [
|
|
2590
2590
|
v("span", dl, X(a), 1),
|
|
@@ -2641,7 +2641,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2641
2641
|
}, [
|
|
2642
2642
|
(i(!0), h(D, null, oe(m, (B) => (i(), h("li", {
|
|
2643
2643
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2644
|
-
style:
|
|
2644
|
+
style: j({ width: `${I(et)[u.layout.scoreLineSize].value}px` }),
|
|
2645
2645
|
"data-xine": B.toString() ? I(T).score_item : ""
|
|
2646
2646
|
}, [
|
|
2647
2647
|
v("span", {
|
|
@@ -2790,7 +2790,7 @@ const zl = /* @__PURE__ */ ye(Nl, [["render", Ol]]), Rl = ["data-block"], Hl = [
|
|
|
2790
2790
|
}, [
|
|
2791
2791
|
(i(!0), h(D, null, oe(t.item.optList, (l, r) => (i(), h("span", {
|
|
2792
2792
|
class: Z(["fill_block", t.layout.showAnswer && t.item.answer.includes(I(dt)[r]) && "bg-success border-success"]),
|
|
2793
|
-
style:
|
|
2793
|
+
style: j({ width: `${I(Le)[t.layout.fillSize].value + 1}px`, height: `${I(Le)[t.layout.fillSize].height + 1}px` }),
|
|
2794
2794
|
"data-xine": I(T).fill + r
|
|
2795
2795
|
}, [
|
|
2796
2796
|
te(ve, {
|
|
@@ -2826,7 +2826,7 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2826
2826
|
l.item.style[I(d)[l.layout.mode].decide_a] === I(g).decide_1 ? (i(), h(D, { key: 0 }, [
|
|
2827
2827
|
v("span", {
|
|
2828
2828
|
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2829
|
-
style:
|
|
2829
|
+
style: j(o.value),
|
|
2830
2830
|
"data-xine": I(T).fill + "0"
|
|
2831
2831
|
}, [
|
|
2832
2832
|
te(ve, {
|
|
@@ -2836,7 +2836,7 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2836
2836
|
], 14, Ul),
|
|
2837
2837
|
v("span", {
|
|
2838
2838
|
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2839
|
-
style:
|
|
2839
|
+
style: j(o.value),
|
|
2840
2840
|
"data-xine": I(T).fill + "1"
|
|
2841
2841
|
}, [
|
|
2842
2842
|
te(ve, {
|
|
@@ -2847,12 +2847,12 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2847
2847
|
], 64)) : (i(), h(D, { key: 1 }, [
|
|
2848
2848
|
v("span", {
|
|
2849
2849
|
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2850
|
-
style:
|
|
2850
|
+
style: j(o.value),
|
|
2851
2851
|
"data-xine": I(T).fill + "0"
|
|
2852
2852
|
}, Xl, 14, jl),
|
|
2853
2853
|
v("span", {
|
|
2854
2854
|
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2855
|
-
style:
|
|
2855
|
+
style: j(o.value),
|
|
2856
2856
|
"data-xine": I(T).fill + "1"
|
|
2857
2857
|
}, en, 14, Jl)
|
|
2858
2858
|
], 64))
|
|
@@ -2902,7 +2902,7 @@ const ln = /* @__PURE__ */ ye(on, [["render", an]]), nn = ["data-block", "data-x
|
|
|
2902
2902
|
return (o, l) => (i(), h(D, null, [
|
|
2903
2903
|
v("div", {
|
|
2904
2904
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2905
|
-
style:
|
|
2905
|
+
style: j({ height: `${20 + o.item.style[I(d)[t.layout.mode].fill_e]}px` }),
|
|
2906
2906
|
"data-xine": I(T).fill_line
|
|
2907
2907
|
}, null, 12, dn),
|
|
2908
2908
|
o.layout.handReadFlag ? (i(), V(cn, {
|
|
@@ -3051,17 +3051,17 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3051
3051
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3052
3052
|
"data-block": I(Se),
|
|
3053
3053
|
"data-size": m.item.startAnswerLen + (J + 1) * o.value,
|
|
3054
|
-
style:
|
|
3054
|
+
style: j(n.value)
|
|
3055
3055
|
}, [
|
|
3056
3056
|
(i(!0), h(D, null, oe(o.value, (L, H) => (i(), h("span", {
|
|
3057
3057
|
class: Z([z.value[J * o.value + H] && "flex items-center justify-center"]),
|
|
3058
|
-
style:
|
|
3058
|
+
style: j(u.value)
|
|
3059
3059
|
}, X(z.value[J * o.value + H] || ""), 7))), 256)),
|
|
3060
3060
|
(i(!0), h(D, null, oe(a.value, (L) => (i(), h(D, null, [
|
|
3061
3061
|
m.item.startAnswerLen + J * o.value < L && m.item.startAnswerLen + (J + 1) * o.value >= L ? (i(), h("span", {
|
|
3062
3062
|
key: 0,
|
|
3063
3063
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3064
|
-
style:
|
|
3064
|
+
style: j({ left: `${(L - m.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3065
3065
|
"data-block": I(De)
|
|
3066
3066
|
}, X(L), 13, Wn)) : P("", !0)
|
|
3067
3067
|
], 64))), 256))
|
|
@@ -3120,7 +3120,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3120
3120
|
};
|
|
3121
3121
|
return (s, a) => (i(), h("span", {
|
|
3122
3122
|
class: Z(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", s.isFull && "justify-end"]),
|
|
3123
|
-
style:
|
|
3123
|
+
style: j({ width: l.value }),
|
|
3124
3124
|
"data-block": I(De)
|
|
3125
3125
|
}, [
|
|
3126
3126
|
(i(!0), h(D, null, oe(o.value, (c, y) => (i(), h(D, null, [
|
|
@@ -3207,29 +3207,29 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3207
3207
|
}), b = b.map((f) => {
|
|
3208
3208
|
var O;
|
|
3209
3209
|
if (f.type === "polymer") {
|
|
3210
|
-
const q = Math.min(Math.floor(e.width / (Math.max(...f.children.map((
|
|
3210
|
+
const q = Math.min(Math.floor(e.width / (Math.max(...f.children.map((Y) => Y.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[f.polymerId] || n.value[((O = f.children[0]) == null ? void 0 : O.polymerId) || ""] || 0) * 10 + 10)), f.styleInfo[d[e.layout.mode].choice_d] || 10), fe = f.styleInfo[d[e.layout.mode].choice_b] === g.landscape;
|
|
3211
3211
|
if (f.styleInfo[d[e.layout.mode].choice_a] === g.choice_1) {
|
|
3212
|
-
const
|
|
3212
|
+
const Y = f.styleInfo[d[e.layout.mode].choice_e], ge = fe ? (
|
|
3213
3213
|
/*col * line || */
|
|
3214
3214
|
f.styleInfo[d[e.layout.mode].choice_e] || 20
|
|
3215
|
-
) : q *
|
|
3215
|
+
) : q * Y;
|
|
3216
3216
|
return [...Array(Math.ceil(f.children.length / ge)).keys()].map((de, x) => ({
|
|
3217
3217
|
...f,
|
|
3218
3218
|
groupIndex: x,
|
|
3219
3219
|
children: f.children.slice(x * ge, (x + 1) * ge)
|
|
3220
3220
|
}));
|
|
3221
3221
|
} else if (f.styleInfo[d[e.layout.mode].choice_a] === g.choice_3) {
|
|
3222
|
-
let
|
|
3222
|
+
let Y = [], ge = 0;
|
|
3223
3223
|
const de = q * f.styleInfo[d[e.layout.mode].choice_e];
|
|
3224
3224
|
return f.children.forEach((x) => {
|
|
3225
|
-
(x.optList.length !== ge || !Object.values(je).includes(x.problemType) ||
|
|
3226
|
-
}),
|
|
3225
|
+
(x.optList.length !== ge || !Object.values(je).includes(x.problemType) && !Y.length || Y[Y.length - 1].length >= de) && (Y.push([]), ge = x.optList.length), Y[Y.length - 1].push(x);
|
|
3226
|
+
}), Y.map((x, C) => ({ ...f, groupIndex: C, children: x }));
|
|
3227
3227
|
} else if (f.styleInfo[d[e.layout.mode].fill_g] === g.portrait) {
|
|
3228
|
-
const
|
|
3229
|
-
return [...Array(Math.ceil(f.children.length /
|
|
3228
|
+
const Y = Math.floor(f.styleInfo[d[e.layout.mode].fill_f]) * (f.styleInfo[d[e.layout.mode].fill_h] || 10);
|
|
3229
|
+
return [...Array(Math.ceil(f.children.length / Y)).keys()].map((ge, de) => ({
|
|
3230
3230
|
...f,
|
|
3231
3231
|
groupIndex: de,
|
|
3232
|
-
children: f.children.slice(de *
|
|
3232
|
+
children: f.children.slice(de * Y, (de + 1) * Y).map((x) => ({
|
|
3233
3233
|
...x,
|
|
3234
3234
|
style: {
|
|
3235
3235
|
...x.style,
|
|
@@ -3286,36 +3286,36 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3286
3286
|
break;
|
|
3287
3287
|
}
|
|
3288
3288
|
else if (Object.values(je).includes(b.problemType)) {
|
|
3289
|
-
const fe = b.styleInfo[d[e.layout.mode].choice_b] === g.landscape,
|
|
3290
|
-
b.children.map((
|
|
3289
|
+
const fe = b.styleInfo[d[e.layout.mode].choice_b] === g.landscape, Y = b.styleInfo[d[e.layout.mode].choice_e] || 20, ge = e.data.style[d[e.layout.mode].choice_d] || 10, de = (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[((q = e.data.children[0]) == null ? void 0 : q.polymerId) || ""] || 0) * 10 + 10, x = Math.max(.../* item.rawChildren || */
|
|
3290
|
+
b.children.map((ce) => {
|
|
3291
3291
|
var ne;
|
|
3292
|
-
return ((ne =
|
|
3292
|
+
return ((ne = ce.optList) == null ? void 0 : ne.length) || 0;
|
|
3293
3293
|
})) * (Le[e.layout.fillSize].value + 9) + de;
|
|
3294
3294
|
let C = Math.min(Math.floor(e.width / x), ge), $ = [], ee = [], ue = [];
|
|
3295
|
-
const G = (
|
|
3296
|
-
$ = (fe ? [...Array(
|
|
3295
|
+
const G = (ce = C) => {
|
|
3296
|
+
$ = (fe ? [...Array(ce).keys()].map((ne, _) => b.children.filter((S, pe) => pe % ce === _)).filter((ne) => ne.length) : [...Array(ce).keys()].map((ne) => b.children.slice(ne * Y, (ne + 1) * Y))).filter((ne) => ne.length).map((ne) => Math.max(...ne.map((_) => {
|
|
3297
3297
|
var S;
|
|
3298
3298
|
return ((S = _.optList) == null ? void 0 : S.length) || 0;
|
|
3299
3299
|
})));
|
|
3300
3300
|
};
|
|
3301
3301
|
for (G(C), ee = [...$]; O && C < ge; )
|
|
3302
|
-
G(C + 1), O = C + 1 <= ge && $.reduce((
|
|
3303
|
-
b.children.length %
|
|
3304
|
-
const
|
|
3302
|
+
G(C + 1), O = C + 1 <= ge && $.reduce((ce, ne) => ce + ne, 0) * (Le[e.layout.fillSize].value + 9) + (C + 1) * de < e.width, O && (C += 1, ee = [...$]);
|
|
3303
|
+
b.children.length % Y;
|
|
3304
|
+
const se = [...Array(Math.ceil(b.children.length / Y)).keys()].map((ce) => b.children.filter((ne, _) => _ >= ce * Y && _ < (ce + 1) * Y)).map((ce, ne) => ce.map((_, S) => ({ ..._, _grid_area_: fe ? null : dt[S] + ne }))), Ce = ee.map((ce) => ce * (Le[e.layout.fillSize].value + 9) + de);
|
|
3305
3305
|
switch (b.styleInfo[d[e.layout.mode].choice_f]) {
|
|
3306
3306
|
case g.choice_6:
|
|
3307
|
-
ue = Ce.map((
|
|
3307
|
+
ue = Ce.map((ce) => `${ce}px`);
|
|
3308
3308
|
break;
|
|
3309
3309
|
case g.choice_7:
|
|
3310
3310
|
default:
|
|
3311
|
-
ue = Ce.map((
|
|
3311
|
+
ue = Ce.map((ce) => `${ce / Math.max(...Ce)}fr`);
|
|
3312
3312
|
}
|
|
3313
3313
|
switch (b.styleInfo[d[e.layout.mode].choice_a]) {
|
|
3314
3314
|
case g.choice_1:
|
|
3315
3315
|
case g.choice_3:
|
|
3316
|
-
fe && !e.noPortrait &&
|
|
3317
|
-
const ne = b.children.find((_) => _.id ===
|
|
3318
|
-
ne._grid_area_ =
|
|
3316
|
+
fe && !e.noPortrait && se.flat(2).forEach((ce) => {
|
|
3317
|
+
const ne = b.children.find((_) => _.id === ce.id);
|
|
3318
|
+
ne._grid_area_ = ce._grid_area_;
|
|
3319
3319
|
}), f = fe ? {
|
|
3320
3320
|
// 横排竖向按列排
|
|
3321
3321
|
// 'grid-template': `${colList[0].map((k: Strany, i: number) => `"${[...Array(colList.length).keys()].map(j => colList[j][i] ? ChoiceSub[i] + j : '.').join(' ')}" 1fr`).join('')} / ${colListW.join(' ')}`
|
|
@@ -3338,10 +3338,10 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3338
3338
|
"grid-area": b._grid_area_
|
|
3339
3339
|
};
|
|
3340
3340
|
if (l.includes(b.problemType) && b.style[d[e.layout.mode].choice_a] === g.choice_2) {
|
|
3341
|
-
const q = Math.max(Le[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[(O = b.children[0]) == null ? void 0 : O.polymerId] || 0) * 10 + 10), fe = Math.floor(e.width / (q * b.style[d[e.layout.mode].choice_c] + 10)),
|
|
3341
|
+
const q = Math.max(Le[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[(O = b.children[0]) == null ? void 0 : O.polymerId] || 0) * 10 + 10), fe = Math.floor(e.width / (q * b.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - q * fe * b.style[d[e.layout.mode].choice_c]) / (fe - 1 || 1);
|
|
3342
3342
|
if (!((f + 1) % b.style[d[e.layout.mode].choice_c]) && ((f + 1) % (b.style[d[e.layout.mode].choice_c] * fe) || fe < 2))
|
|
3343
3343
|
return {
|
|
3344
|
-
"margin-right": `${
|
|
3344
|
+
"margin-right": `${Y}px`
|
|
3345
3345
|
};
|
|
3346
3346
|
}
|
|
3347
3347
|
return {};
|
|
@@ -3354,9 +3354,9 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3354
3354
|
if (l.includes(b.problemType)) {
|
|
3355
3355
|
let fe = {};
|
|
3356
3356
|
if (Object.values(je).includes(e.data.problemType)) {
|
|
3357
|
-
const
|
|
3358
|
-
e.data.children.map((de) => de.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((q = e.data.children[0]) == null ? void 0 : q.polymerId) || ""] || 0) * 10 + 10, ge = Math.min(Math.floor(e.width /
|
|
3359
|
-
fe = f % ge ? { minWidth: `${
|
|
3357
|
+
const Y = Math.max(.../*props.data.rawChildren || */
|
|
3358
|
+
e.data.children.map((de) => de.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((q = e.data.children[0]) == null ? void 0 : q.polymerId) || ""] || 0) * 10 + 10, ge = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
|
|
3359
|
+
fe = f % ge ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * ge) / (ge - 1) - 5}px` } : { minWidth: `${Y}px` };
|
|
3360
3360
|
}
|
|
3361
3361
|
O = {
|
|
3362
3362
|
...O,
|
|
@@ -3412,13 +3412,13 @@ function ls(e, t, o, l, r, s) {
|
|
|
3412
3412
|
"data-block": l.ComputBlock(c),
|
|
3413
3413
|
"data-polymer": y,
|
|
3414
3414
|
class: Z([...l.ComputPolymerCls(c)]),
|
|
3415
|
-
style:
|
|
3415
|
+
style: j(l.ComputPolymerStyle(c))
|
|
3416
3416
|
}, [
|
|
3417
3417
|
(i(!0), h(D, null, oe(c.children, (n, u) => {
|
|
3418
3418
|
var z;
|
|
3419
3419
|
return i(), h("div", {
|
|
3420
3420
|
class: Z(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((z = o.target.value) == null ? void 0 : z.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3421
|
-
style:
|
|
3421
|
+
style: j(l.ComputPolymerItemStyle(n, u)),
|
|
3422
3422
|
"data-tag": n.__tag__,
|
|
3423
3423
|
"data-polymer": y,
|
|
3424
3424
|
"data-block": l.ComputBlock(n),
|
|
@@ -3442,7 +3442,7 @@ function ls(e, t, o, l, r, s) {
|
|
|
3442
3442
|
return i(), h(D, null, [
|
|
3443
3443
|
v("div", {
|
|
3444
3444
|
class: Z(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((z = o.target.value) == null ? void 0 : z.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3445
|
-
style:
|
|
3445
|
+
style: j(l.ComputStyle(n, u)),
|
|
3446
3446
|
"data-tag": n.__tag__,
|
|
3447
3447
|
"data-block": l.ComputBlock(n),
|
|
3448
3448
|
"data-xine": l.Gps_cls.item + n._sub,
|
|
@@ -3511,7 +3511,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3511
3511
|
width: s.width,
|
|
3512
3512
|
height: a - (l ? 2 : 0)
|
|
3513
3513
|
} : null;
|
|
3514
|
-
},
|
|
3514
|
+
}, re = (e, t = !1) => {
|
|
3515
3515
|
if (!e)
|
|
3516
3516
|
return null;
|
|
3517
3517
|
const o = t ? zt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -3533,18 +3533,18 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3533
3533
|
return e.bindWidth ? {
|
|
3534
3534
|
choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
|
|
3535
3535
|
yRowOffset: Math.round((l.list[0][0].y - l.list[0][1].y - l.list[0][1].height) * Fe),
|
|
3536
|
-
firstChoicePosition:
|
|
3536
|
+
firstChoicePosition: re(l.list[0][9]),
|
|
3537
3537
|
crosswised: !1,
|
|
3538
|
-
choiceQuestionPosition:
|
|
3538
|
+
choiceQuestionPosition: re(l.area),
|
|
3539
3539
|
choiceQuestionCount: l.list.length,
|
|
3540
3540
|
xColOffset: Math.round((l.list[1][0].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3541
3541
|
questionNOList: [...Array(l.list.length).keys()].map((r, s) => s + 1)
|
|
3542
3542
|
} : {
|
|
3543
3543
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3544
3544
|
yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) * Fe),
|
|
3545
|
-
firstChoicePosition:
|
|
3545
|
+
firstChoicePosition: re(l.list[0][0]),
|
|
3546
3546
|
crosswised: !0,
|
|
3547
|
-
choiceQuestionPosition:
|
|
3547
|
+
choiceQuestionPosition: re(l.area),
|
|
3548
3548
|
choiceQuestionCount: l.list.length,
|
|
3549
3549
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3550
3550
|
questionNOList: [...Array(l.list.length).keys()].map((r, s) => s + 1)
|
|
@@ -3560,29 +3560,29 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3560
3560
|
const t = R(e.pageDom[0]), o = R(e.pageDom[1]), l = (r) => {
|
|
3561
3561
|
var a;
|
|
3562
3562
|
const s = e.layout.backColumn > 2 ? {
|
|
3563
|
-
trdLeftTopPos:
|
|
3564
|
-
trdLeftBottomPos:
|
|
3563
|
+
trdLeftTopPos: re(me(R(Ee(`${T.point}t`, e.pageDom[r])[1]), R(e.pageDom[r]))),
|
|
3564
|
+
trdLeftBottomPos: re(me(R(Ee(`${T.point}b`, e.pageDom[r])[1]), R(e.pageDom[r])))
|
|
3565
3565
|
} : {};
|
|
3566
3566
|
return (a = He.find((c) => c.code === e.layout.paper)) != null && a.isMultCol ? {
|
|
3567
|
-
secLeftTopPos:
|
|
3568
|
-
secLeftBottomPos:
|
|
3567
|
+
secLeftTopPos: re(me(R(Ee(`${T.point}t`, e.pageDom[r])[0]), R(e.pageDom[r]))),
|
|
3568
|
+
secLeftBottomPos: re(me(R(Ee(`${T.point}b`, e.pageDom[r])[0]), R(e.pageDom[r]))),
|
|
3569
3569
|
...s
|
|
3570
3570
|
} : null;
|
|
3571
3571
|
};
|
|
3572
3572
|
return {
|
|
3573
3573
|
// 取第一/二页定位点信息
|
|
3574
|
-
leftTopPos:
|
|
3575
|
-
rightTopPos:
|
|
3576
|
-
leftBottomPos:
|
|
3577
|
-
rightBottomPos:
|
|
3574
|
+
leftTopPos: re(me(R(he(`${T.point}lt`, e.pageDom[0])), t)),
|
|
3575
|
+
rightTopPos: re(me(R(he(`${T.point}rt`, e.pageDom[0])), t)),
|
|
3576
|
+
leftBottomPos: re(me(R(he(`${T.point}lb`, e.pageDom[0])), t)),
|
|
3577
|
+
rightBottomPos: re(me(R(he(`${T.point}rb`, e.pageDom[0])), t)),
|
|
3578
3578
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3579
3579
|
verticalAuxInfo: [
|
|
3580
|
-
|
|
3581
|
-
|
|
3580
|
+
re(me(R(he(`${T.point}l`, e.pageDom[0])), t)),
|
|
3581
|
+
re(me(R(he(`${T.point}r`, e.pageDom[0])), t))
|
|
3582
3582
|
],
|
|
3583
3583
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3584
|
-
|
|
3585
|
-
|
|
3584
|
+
re(me(R(he(`${T.point}l`, e.pageDom[1])), o)),
|
|
3585
|
+
re(me(R(he(`${T.point}r`, e.pageDom[1])), o))
|
|
3586
3586
|
] : null,
|
|
3587
3587
|
auxAnchorInfo: l(0),
|
|
3588
3588
|
auxAnchorInfo2: e.pageDom[1] ? l(1) : null
|
|
@@ -3601,9 +3601,9 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3601
3601
|
// 固定值
|
|
3602
3602
|
questionNOList: [1],
|
|
3603
3603
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3604
|
-
choiceQuestionPosition:
|
|
3604
|
+
choiceQuestionPosition: re(o, !0),
|
|
3605
3605
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3606
|
-
firstChoicePosition:
|
|
3606
|
+
firstChoicePosition: re(me(R(he(`${T.page_item}0`, e.pageDom[e.pageTotal - 1])), R(e.pageDom[e.pageTotal - 1]))),
|
|
3607
3607
|
// 页码点最大值,展开为数组
|
|
3608
3608
|
choiceGridSequenceNOList: yt.filter((l, r) => r < e.pageTotal),
|
|
3609
3609
|
// 排列方向
|
|
@@ -3622,9 +3622,9 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3622
3622
|
// 固定值
|
|
3623
3623
|
questionNOList: [1],
|
|
3624
3624
|
// 方框业务坐标
|
|
3625
|
-
choiceQuestionPosition:
|
|
3625
|
+
choiceQuestionPosition: re(me(R(t), R(e.pageDom[0])), !0),
|
|
3626
3626
|
// 数据坐标
|
|
3627
|
-
firstChoicePosition:
|
|
3627
|
+
firstChoicePosition: re(me(R(t), R(e.pageDom[0]))),
|
|
3628
3628
|
// 固定值
|
|
3629
3629
|
choiceGridSequenceNOList: [
|
|
3630
3630
|
"true"
|
|
@@ -3636,7 +3636,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3636
3636
|
} : null;
|
|
3637
3637
|
}, hs = (e) => {
|
|
3638
3638
|
let t = me(R(he(T.en_code, e.pageDom[0])), R(e.pageDom[0]));
|
|
3639
|
-
return
|
|
3639
|
+
return re(t);
|
|
3640
3640
|
}, ps = (e) => {
|
|
3641
3641
|
const t = he(T.write_view, e.pageDom[0]);
|
|
3642
3642
|
if (!t)
|
|
@@ -3750,7 +3750,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3750
3750
|
break;
|
|
3751
3751
|
case p.fill:
|
|
3752
3752
|
case p.fill_english:
|
|
3753
|
-
const
|
|
3753
|
+
const U = Ee(T.fill, E), N = Ee(T.fill_line, E);
|
|
3754
3754
|
w = {
|
|
3755
3755
|
children: [L.score].flat().map((le, b, f) => ({
|
|
3756
3756
|
id: f.length > 1 ? `${L._sub}.${b + 1}` : L._sub,
|
|
@@ -3758,7 +3758,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3758
3758
|
problemType: L.problemType,
|
|
3759
3759
|
isHiddenContent: !L.style[d[e.layout.mode].fill_b],
|
|
3760
3760
|
position: Ae(E, F, n),
|
|
3761
|
-
scorePosition: Ae(
|
|
3761
|
+
scorePosition: Ae(U[b], F, n),
|
|
3762
3762
|
answerPosition: Ae(N[b], F, n)
|
|
3763
3763
|
})).filter((le) => le.position)
|
|
3764
3764
|
};
|
|
@@ -3802,7 +3802,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3802
3802
|
_parentProblemType: st[e._parentProblemType]
|
|
3803
3803
|
}, {
|
|
3804
3804
|
// 块位置
|
|
3805
|
-
sectionPosition:
|
|
3805
|
+
sectionPosition: re(s.position, !0),
|
|
3806
3806
|
// 块ID,前端生成,同一道题同一个ID
|
|
3807
3807
|
sectionID: s.id,
|
|
3808
3808
|
// 块内序号ID,按切块自增
|
|
@@ -3829,7 +3829,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3829
3829
|
// 单个选项的信息数组
|
|
3830
3830
|
choiceUnitSectionList: e.optList.map((s, a) => ({
|
|
3831
3831
|
...o(s, !0),
|
|
3832
|
-
choicePosition:
|
|
3832
|
+
choicePosition: re(s.position),
|
|
3833
3833
|
choiceResult: [p.decide].includes(e.problemType) ? _o[a] : yt[a]
|
|
3834
3834
|
}))
|
|
3835
3835
|
}]
|
|
@@ -3845,10 +3845,10 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3845
3845
|
// 每个小题的切图块
|
|
3846
3846
|
singleBlankSectionList: (e.children || [e]).map((s) => ({
|
|
3847
3847
|
...o(s, !0),
|
|
3848
|
-
answerPosition:
|
|
3848
|
+
answerPosition: re(s.answerPosition, !0),
|
|
3849
3849
|
correctFrame: s.scorePosition && s.scorePosition.width && s.scorePosition.height ? [{
|
|
3850
|
-
correctSectionPosition:
|
|
3851
|
-
firstBlockPostion:
|
|
3850
|
+
correctSectionPosition: re(s.scorePosition, !0),
|
|
3851
|
+
firstBlockPostion: re(s.scorePosition),
|
|
3852
3852
|
gridScoresList: [s.score].flat(),
|
|
3853
3853
|
lineMeanGetScore: !1,
|
|
3854
3854
|
weight: 1
|
|
@@ -3870,8 +3870,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3870
3870
|
...o(e, !0),
|
|
3871
3871
|
answerPosition: null,
|
|
3872
3872
|
correctFrame: (e.scoreList || []).map((s) => ({
|
|
3873
|
-
correctSectionPosition:
|
|
3874
|
-
firstBlockPostion:
|
|
3873
|
+
correctSectionPosition: re(s.position, !0),
|
|
3874
|
+
firstBlockPostion: re({ ...s.position, ...s.itemPosition }),
|
|
3875
3875
|
gridScoresList: [s.score].flat(),
|
|
3876
3876
|
lineMeanGetScore: !0,
|
|
3877
3877
|
weight: 1
|
|
@@ -3897,7 +3897,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3897
3897
|
// 单个选项的信息数组
|
|
3898
3898
|
choiceUnitSectionList: e.optList.map((s, a) => ({
|
|
3899
3899
|
...o(s),
|
|
3900
|
-
choicePosition:
|
|
3900
|
+
choicePosition: re(s.position),
|
|
3901
3901
|
choiceResult: (e.baseIndex + a).toString()
|
|
3902
3902
|
}))
|
|
3903
3903
|
}]
|
|
@@ -3943,12 +3943,12 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3943
3943
|
if (n.length === 1)
|
|
3944
3944
|
c.push(n[0]);
|
|
3945
3945
|
else {
|
|
3946
|
-
const H = n.map((N) => N.subjectiveQuestionSectionList || []).flat(), w = n.map((N) => N.choiceQuestionPartialSectionList || []).flat(), E = w.length ? { choiceQuestionPartialSectionList: w } : {},
|
|
3946
|
+
const H = n.map((N) => N.subjectiveQuestionSectionList || []).flat(), w = n.map((N) => N.choiceQuestionPartialSectionList || []).flat(), E = w.length ? { choiceQuestionPartialSectionList: w } : {}, U = H.length ? { subjectiveQuestionSectionList: H } : {};
|
|
3947
3947
|
c.push({
|
|
3948
3948
|
...n[0],
|
|
3949
3949
|
// cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
|
|
3950
3950
|
...E,
|
|
3951
|
-
...
|
|
3951
|
+
...U
|
|
3952
3952
|
});
|
|
3953
3953
|
}
|
|
3954
3954
|
n = [];
|
|
@@ -3963,12 +3963,12 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3963
3963
|
(F = y.subjectiveQuestionSectionList) == null || F.forEach((B, J, L) => {
|
|
3964
3964
|
const H = r(B, z);
|
|
3965
3965
|
let w = !1, E = !1;
|
|
3966
|
-
if (u.find((
|
|
3966
|
+
if (u.find((U) => r(U, z) === H && U.secitonSeqID === B.secitonSeqID) && (u.push(B), w = J < L.length - 1, E = !0), !w) {
|
|
3967
3967
|
if (u.length) {
|
|
3968
3968
|
if (u.length === 1)
|
|
3969
3969
|
n.push(u[0]);
|
|
3970
3970
|
else {
|
|
3971
|
-
const
|
|
3971
|
+
const U = u.map((W) => W.singleBlankSectionList || []).flat(), N = U.length ? { singleBlankSectionList: U, unitCount: U.length } : {};
|
|
3972
3972
|
n.push({
|
|
3973
3973
|
...u[0],
|
|
3974
3974
|
// cuttingSectionQuestionType: typeResult[subjectTmp[0].sectionID]._parentProblemType || subjectTmp[0].cuttingSectionQuestionType,
|
|
@@ -4008,8 +4008,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4008
4008
|
// 试卷二维码
|
|
4009
4009
|
cardSerialNumber: {
|
|
4010
4010
|
// 条形码虚线框位置, x, y, width, height
|
|
4011
|
-
encodePictureArea:
|
|
4012
|
-
qrCodePosition:
|
|
4011
|
+
encodePictureArea: re(me(R(he(T.art_code, e.pageDom[0])), o), !0),
|
|
4012
|
+
qrCodePosition: re(me(R(he(T.art_code, e.pageDom[0])), o)),
|
|
4013
4013
|
// 条形码或二维码,不确定,固定此值
|
|
4014
4014
|
pictureType: "TYPE_QRCODE"
|
|
4015
4015
|
},
|
|
@@ -4040,7 +4040,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4040
4040
|
layerType: rs(e),
|
|
4041
4041
|
// 定位点信息
|
|
4042
4042
|
...cs(e),
|
|
4043
|
-
pottedLineXPos: e.bindWidth ? (l =
|
|
4043
|
+
pottedLineXPos: e.bindWidth ? (l = re(me(R(he(T.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4044
4044
|
// 页码点信息
|
|
4045
4045
|
pageSideAnchorsList: ds(e),
|
|
4046
4046
|
// 缺考标记
|
|
@@ -4194,8 +4194,8 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4194
4194
|
if (E)
|
|
4195
4195
|
return tt(E);
|
|
4196
4196
|
if (u.children.length) {
|
|
4197
|
-
const
|
|
4198
|
-
return r(
|
|
4197
|
+
const U = ut(u);
|
|
4198
|
+
return r(U, c);
|
|
4199
4199
|
} else
|
|
4200
4200
|
return It(u, t, c);
|
|
4201
4201
|
}
|
|
@@ -4211,7 +4211,7 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4211
4211
|
const c = _e(t).top;
|
|
4212
4212
|
let y = {}, n = 0, u = 0;
|
|
4213
4213
|
const z = (w) => {
|
|
4214
|
-
const E = w % (l + r),
|
|
4214
|
+
const E = w % (l + r), U = Math.floor(w / (l + r)) * 2 + (E >= l ? 1 : 0), N = s(w, U);
|
|
4215
4215
|
y = {
|
|
4216
4216
|
top: c,
|
|
4217
4217
|
width: parseFloat(N.width),
|
|
@@ -4240,13 +4240,13 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4240
4240
|
return;
|
|
4241
4241
|
}
|
|
4242
4242
|
m[m.length - 1].data.push({ ...w }), a([...m]), window.requestAnimationFrame(() => {
|
|
4243
|
-
const E = it(w.__tag__, t),
|
|
4243
|
+
const E = it(w.__tag__, t), U = !w.isHidden && _e(E);
|
|
4244
4244
|
let N = null;
|
|
4245
4245
|
if (u) {
|
|
4246
4246
|
const W = E.querySelector(`*[data-hutkey="${u}"]`), le = _e(W);
|
|
4247
4247
|
m[m.length - 1].top = y.top - le.top, m[m.length - 1].height = y.height - m[m.length - 1].top, u = 0;
|
|
4248
4248
|
}
|
|
4249
|
-
if (
|
|
4249
|
+
if (U && U.height + U.top - y.top > m[m.length - 1].height)
|
|
4250
4250
|
if (w.problemType)
|
|
4251
4251
|
m[m.length - 1].data.pop(), B(), H({ ...w });
|
|
4252
4252
|
else if (L(E))
|
|
@@ -4261,14 +4261,14 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4261
4261
|
else {
|
|
4262
4262
|
let W = [], le = [], b = !1;
|
|
4263
4263
|
if (w.children.some((f, O) => {
|
|
4264
|
-
var
|
|
4264
|
+
var Y, ge;
|
|
4265
4265
|
const q = it(f.__tag__, t), fe = _e(q);
|
|
4266
4266
|
if (n) {
|
|
4267
4267
|
const de = q.querySelector(`*[data-cutkey="${n}"]`), x = _e(de);
|
|
4268
4268
|
m[m.length - 1].top = y.top - x.top, m[m.length - 1].height = y.height - m[m.length - 1].top, n = 0;
|
|
4269
4269
|
}
|
|
4270
4270
|
if (fe.height + fe.top - y.top > m[m.length - 1].height) {
|
|
4271
|
-
if ((
|
|
4271
|
+
if ((Y = q.parentElement) != null && Y.dataset.polymer)
|
|
4272
4272
|
parseInt((ge = q.parentElement) == null ? void 0 : ge.dataset.polymer) ? (W = W.filter((de) => {
|
|
4273
4273
|
var x;
|
|
4274
4274
|
return it(de.__tag__, t).dataset.polymer !== ((x = q.parentElement) == null ? void 0 : x.dataset.polymer);
|
|
@@ -4305,10 +4305,10 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4305
4305
|
const G = parseInt(ee.dataset.size);
|
|
4306
4306
|
if (!f.artBlock)
|
|
4307
4307
|
if (f.beforeGuide && f.beforeGuide.length + (f.startAnswerLen ? 0 : 2) - f.startAnswerLen > G) {
|
|
4308
|
-
const
|
|
4308
|
+
const se = q.querySelector(`*[data-guide="${f.id}"]`), Ce = _e(se);
|
|
4309
4309
|
if (Ce.height + Ce.top - y.top > y.height) {
|
|
4310
|
-
|
|
4311
|
-
const
|
|
4310
|
+
se.innerHTML = f.beforeGuide.split("").map((_) => `<span>${_}</span>`).join("");
|
|
4311
|
+
const ce = _e(ee).top + ee.offsetHeight, ne = [...Array.from(se.children)].findIndex((_) => _e(_).top > ce);
|
|
4312
4312
|
x.beforeGuide = f.beforeGuide.substring(0, ne), f.beforeGuide = f.beforeGuide.substring(ne);
|
|
4313
4313
|
} else
|
|
4314
4314
|
f.beforeGuide = "";
|
|
@@ -4475,7 +4475,7 @@ const Os = {
|
|
|
4475
4475
|
}))), w = A(() => o.txtData.map((x) => ({
|
|
4476
4476
|
...x,
|
|
4477
4477
|
top: x.top - Math.floor(x.top / (k[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4478
|
-
}))), E = A(() => B.value ? B.value.split("-")[0] === "img" ? H.value.find((C) => C.key === B.value) : w.value.find((C) => C.key === B.value) : null),
|
|
4478
|
+
}))), E = A(() => B.value ? B.value.split("-")[0] === "img" ? H.value.find((C) => C.key === B.value) : w.value.find((C) => C.key === B.value) : null), U = A(() => E.value ? { [E.value.key]: { ...c.value } } : {});
|
|
4479
4479
|
qe(() => {
|
|
4480
4480
|
u.value = document.body.querySelector(".__layout__");
|
|
4481
4481
|
});
|
|
@@ -4497,7 +4497,7 @@ const Os = {
|
|
|
4497
4497
|
x.stopPropagation(), x.preventDefault(), t("changeAbsImgItem", c.value), u.value.removeEventListener("mousemove", b), u.value.removeEventListener("mouseleave", f), u.value.removeEventListener("mouseup", f);
|
|
4498
4498
|
}, O = (x, C) => {
|
|
4499
4499
|
var $;
|
|
4500
|
-
x.stopPropagation(), y.value = C, a.value = { x: x.clientX, y: x.clientY, ...E.value }, (($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? u.value.addEventListener("mousemove", q) : u.value.addEventListener("mousemove", fe), u.value.addEventListener("mouseleave",
|
|
4500
|
+
x.stopPropagation(), y.value = C, a.value = { x: x.clientX, y: x.clientY, ...E.value }, (($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? u.value.addEventListener("mousemove", q) : u.value.addEventListener("mousemove", fe), u.value.addEventListener("mouseleave", Y), u.value.addEventListener("mouseup", Y);
|
|
4501
4501
|
}, q = (x) => {
|
|
4502
4502
|
const C = { x: x.clientX - a.value.x, y: x.clientY - a.value.y }, $ = { ...E.value }, ee = C.x > C.y ? "width" : "height";
|
|
4503
4503
|
[
|
|
@@ -4506,27 +4506,27 @@ const Os = {
|
|
|
4506
4506
|
const G = {
|
|
4507
4507
|
width: a.value.width - C.x,
|
|
4508
4508
|
height: a.value.width * (1 - C.y / a.value.height)
|
|
4509
|
-
}[ee],
|
|
4509
|
+
}[ee], se = {
|
|
4510
4510
|
width: a.value.height * (1 - C.x / a.value.width),
|
|
4511
4511
|
height: a.value.height - C.y
|
|
4512
4512
|
}[ee];
|
|
4513
4513
|
c.value = {
|
|
4514
4514
|
...$,
|
|
4515
4515
|
width: G,
|
|
4516
|
-
height:
|
|
4516
|
+
height: se,
|
|
4517
4517
|
left: a.value.left - (G - a.value.width),
|
|
4518
|
-
top: a.value.top - (
|
|
4518
|
+
top: a.value.top - (se - a.value.height)
|
|
4519
4519
|
};
|
|
4520
4520
|
},
|
|
4521
4521
|
// 1
|
|
4522
4522
|
() => {
|
|
4523
|
-
const G = a.value.width * (1 - C.y / a.value.height),
|
|
4523
|
+
const G = a.value.width * (1 - C.y / a.value.height), se = a.value.height - C.y;
|
|
4524
4524
|
c.value = {
|
|
4525
4525
|
...$,
|
|
4526
4526
|
width: G,
|
|
4527
|
-
height:
|
|
4527
|
+
height: se,
|
|
4528
4528
|
left: a.value.left - (G - a.value.width) / 2,
|
|
4529
|
-
top: a.value.top - (
|
|
4529
|
+
top: a.value.top - (se - a.value.height)
|
|
4530
4530
|
};
|
|
4531
4531
|
},
|
|
4532
4532
|
// 2
|
|
@@ -4547,23 +4547,23 @@ const Os = {
|
|
|
4547
4547
|
},
|
|
4548
4548
|
// 3
|
|
4549
4549
|
() => {
|
|
4550
|
-
const G = a.value.width - C.x,
|
|
4550
|
+
const G = a.value.width - C.x, se = a.value.height * (1 - C.x / a.value.width);
|
|
4551
4551
|
c.value = {
|
|
4552
4552
|
...$,
|
|
4553
4553
|
width: G,
|
|
4554
|
-
height:
|
|
4554
|
+
height: se,
|
|
4555
4555
|
left: a.value.left - (G - a.value.width),
|
|
4556
|
-
top: a.value.top - (
|
|
4556
|
+
top: a.value.top - (se - a.value.height) / 2
|
|
4557
4557
|
};
|
|
4558
4558
|
},
|
|
4559
4559
|
// 4
|
|
4560
4560
|
() => {
|
|
4561
|
-
const G = a.value.width + C.x,
|
|
4561
|
+
const G = a.value.width + C.x, se = a.value.height * (1 + C.x / a.value.width);
|
|
4562
4562
|
c.value = {
|
|
4563
4563
|
...$,
|
|
4564
4564
|
width: G,
|
|
4565
|
-
height:
|
|
4566
|
-
top: a.value.top - (
|
|
4565
|
+
height: se,
|
|
4566
|
+
top: a.value.top - (se - a.value.height) / 2
|
|
4567
4567
|
};
|
|
4568
4568
|
},
|
|
4569
4569
|
// 5
|
|
@@ -4571,24 +4571,24 @@ const Os = {
|
|
|
4571
4571
|
const G = {
|
|
4572
4572
|
width: a.value.width - C.x,
|
|
4573
4573
|
height: a.value.width * (1 + C.y / a.value.height)
|
|
4574
|
-
}[ee],
|
|
4574
|
+
}[ee], se = {
|
|
4575
4575
|
width: a.value.height * (1 - C.x / a.value.width),
|
|
4576
4576
|
height: a.value.height + C.y
|
|
4577
4577
|
}[ee];
|
|
4578
4578
|
c.value = {
|
|
4579
4579
|
...$,
|
|
4580
4580
|
width: G,
|
|
4581
|
-
height:
|
|
4581
|
+
height: se,
|
|
4582
4582
|
left: a.value.left - (G - a.value.width)
|
|
4583
4583
|
};
|
|
4584
4584
|
},
|
|
4585
4585
|
// 6
|
|
4586
4586
|
() => {
|
|
4587
|
-
const G = a.value.width * (1 + C.y / a.value.height),
|
|
4587
|
+
const G = a.value.width * (1 + C.y / a.value.height), se = a.value.height + C.y;
|
|
4588
4588
|
c.value = {
|
|
4589
4589
|
...$,
|
|
4590
4590
|
width: G,
|
|
4591
|
-
height:
|
|
4591
|
+
height: se,
|
|
4592
4592
|
left: a.value.left - (G - a.value.width) / 2
|
|
4593
4593
|
};
|
|
4594
4594
|
},
|
|
@@ -4597,14 +4597,14 @@ const Os = {
|
|
|
4597
4597
|
const G = {
|
|
4598
4598
|
width: a.value.width + C.x,
|
|
4599
4599
|
height: a.value.width * (1 + C.y / a.value.height)
|
|
4600
|
-
}[ee],
|
|
4600
|
+
}[ee], se = {
|
|
4601
4601
|
width: a.value.height * (1 + C.x / a.value.width),
|
|
4602
4602
|
height: a.value.height + C.y
|
|
4603
4603
|
}[ee];
|
|
4604
4604
|
c.value = {
|
|
4605
4605
|
...$,
|
|
4606
4606
|
width: G,
|
|
4607
|
-
height:
|
|
4607
|
+
height: se
|
|
4608
4608
|
};
|
|
4609
4609
|
}
|
|
4610
4610
|
][y.value]();
|
|
@@ -4654,9 +4654,9 @@ const Os = {
|
|
|
4654
4654
|
}
|
|
4655
4655
|
];
|
|
4656
4656
|
c.value = ee[y.value];
|
|
4657
|
-
},
|
|
4657
|
+
}, Y = () => {
|
|
4658
4658
|
var x;
|
|
4659
|
-
u.value.removeEventListener("mousemove", q), u.value.removeEventListener("mousemove", fe), u.value.removeEventListener("mouseleave",
|
|
4659
|
+
u.value.removeEventListener("mousemove", q), u.value.removeEventListener("mousemove", fe), u.value.removeEventListener("mouseleave", Y), u.value.removeEventListener("mouseup", Y), ((x = E.value) == null ? void 0 : x.key.split("-")[0]) === "img" ? t("changeAbsImgItem", c.value) : t("changeAbsTxtItem", c.value), c.value = null;
|
|
4660
4660
|
}, ge = (x) => {
|
|
4661
4661
|
if (!x || x === E.value.content) {
|
|
4662
4662
|
n.value++;
|
|
@@ -4670,7 +4670,7 @@ const Os = {
|
|
|
4670
4670
|
};
|
|
4671
4671
|
return (x, C) => (i(), h(D, null, [
|
|
4672
4672
|
(i(!0), h(D, null, oe(H.value, ($) => {
|
|
4673
|
-
var ee, ue, G,
|
|
4673
|
+
var ee, ue, G, se, Ce, ce, ne;
|
|
4674
4674
|
return xt((i(), h("div", {
|
|
4675
4675
|
key: $.id,
|
|
4676
4676
|
ref_for: !0,
|
|
@@ -4678,7 +4678,7 @@ const Os = {
|
|
|
4678
4678
|
ref: J,
|
|
4679
4679
|
"data-safe": "true",
|
|
4680
4680
|
class: Z(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8" : "z-7"]),
|
|
4681
|
-
style:
|
|
4681
|
+
style: j({ left: Math.max(((ue = U.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = U.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((se = U.value[$.key]) == null ? void 0 : se.width) || $.width) + "px", height: (((Ce = U.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px", transform: `rotate(${((ce = U.value[$.key]) == null ? void 0 : ce.rotate) || $.rotate}deg)` }),
|
|
4682
4682
|
onMousedown: Me((_) => de($), ["stop"]),
|
|
4683
4683
|
"data-block": I(De)
|
|
4684
4684
|
}, [
|
|
@@ -4698,7 +4698,7 @@ const Os = {
|
|
|
4698
4698
|
(i(), h(D, null, oe(8, (_, S) => v("div", {
|
|
4699
4699
|
key: _,
|
|
4700
4700
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4701
|
-
style:
|
|
4701
|
+
style: j({ ...s[S], transform: "translate(-50%, -50%)" }),
|
|
4702
4702
|
onMousedown: Me((pe) => O(pe, S), ["stop"])
|
|
4703
4703
|
}, null, 44, Gs)), 64))
|
|
4704
4704
|
]),
|
|
@@ -4718,7 +4718,7 @@ const Os = {
|
|
|
4718
4718
|
]);
|
|
4719
4719
|
}), 128)),
|
|
4720
4720
|
(i(!0), h(D, null, oe(w.value, ($) => {
|
|
4721
|
-
var ee, ue, G,
|
|
4721
|
+
var ee, ue, G, se, Ce, ce, ne;
|
|
4722
4722
|
return xt((i(), h("div", {
|
|
4723
4723
|
key: $.id,
|
|
4724
4724
|
ref_for: !0,
|
|
@@ -4727,14 +4727,14 @@ const Os = {
|
|
|
4727
4727
|
disabled: F.value,
|
|
4728
4728
|
"data-safe": "true",
|
|
4729
4729
|
class: Z(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8 bg-white" : "z-7"]),
|
|
4730
|
-
style:
|
|
4730
|
+
style: j({ left: Math.max(((ue = U.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = U.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((se = U.value[$.key]) == null ? void 0 : se.width) || $.width) + "px", height: (((Ce = U.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px" }),
|
|
4731
4731
|
onMousedown: Me((_) => de($), ["stop"]),
|
|
4732
4732
|
"data-block": I(De)
|
|
4733
4733
|
}, [
|
|
4734
4734
|
(i(), V(Bs, {
|
|
4735
4735
|
key: n.value,
|
|
4736
4736
|
class: "border-0 relative z-4",
|
|
4737
|
-
readonly: ((
|
|
4737
|
+
readonly: ((ce = E.value) == null ? void 0 : ce.key) !== $.key,
|
|
4738
4738
|
value: $.content,
|
|
4739
4739
|
name: $.id.toString(),
|
|
4740
4740
|
onChange: ge,
|
|
@@ -4754,7 +4754,7 @@ const Os = {
|
|
|
4754
4754
|
(i(), h(D, null, oe(8, (_, S) => v("div", {
|
|
4755
4755
|
key: _,
|
|
4756
4756
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4757
|
-
style:
|
|
4757
|
+
style: j({ ...s[S], transform: "translate(-50%, -50%)" }),
|
|
4758
4758
|
onMousedown: (pe) => O(pe, S)
|
|
4759
4759
|
}, null, 44, Ks)), 64))
|
|
4760
4760
|
])
|
|
@@ -4799,11 +4799,11 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4799
4799
|
if (!F.value.length)
|
|
4800
4800
|
return;
|
|
4801
4801
|
const _ = F.value[F.value.length - 1], S = _.rawChildren[_.rawChildren.length - 1];
|
|
4802
|
-
return
|
|
4802
|
+
return U.value && [p.slove].includes(S == null ? void 0 : S.problemType) && S.id;
|
|
4803
4803
|
}), J = A(() => {
|
|
4804
4804
|
var _;
|
|
4805
4805
|
return o.layout.bindFlag && !!((_ = He.find((S) => S.code === o.layout.paper)) != null && _.isMultCol);
|
|
4806
|
-
}), L = A(() => o.isFinal ? 0 : 10), H = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || s.value || 1), E = A(() => Math.ceil(w.value / 2) * 2),
|
|
4806
|
+
}), L = A(() => o.isFinal ? 0 : 10), H = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || s.value || 1), E = A(() => Math.ceil(w.value / 2) * 2), U = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), N = A(() => U.value ? Ie : { top: 0, right: 0, bottom: 0, left: 0 }), W = 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 || mt[o.layout.mode][o.layout.paper]), le = A(() => k[o.layout.paper].width - W.value.left - W.value.right), b = A(() => k[o.layout.paper].height - W.value.top - W.value.bottom), f = A(() => (le.value - (c.value ? c.value + ue(0) : 0) + ue(0)) / o.layout.column - ue(0)), O = A(() => ({
|
|
4807
4807
|
width: `${k[o.layout.paper].width}px`,
|
|
4808
4808
|
height: `${(k[o.layout.paper].height + L.value) * E.value - L.value}px`
|
|
4809
4809
|
})), q = A(() => ({
|
|
@@ -4819,23 +4819,23 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4819
4819
|
top: `${W.value.top}px`,
|
|
4820
4820
|
width: _ ? `${le.value}px` : `${f.value}px`
|
|
4821
4821
|
};
|
|
4822
|
-
}),
|
|
4822
|
+
}), Y = A(() => Mt.filter((_) => o.info.bindExtentInfo[_.code]).map((_) => o.info.bindExtentInfo[_.key]));
|
|
4823
4823
|
Ne(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4824
4824
|
setTimeout(() => {
|
|
4825
|
-
|
|
4825
|
+
ce();
|
|
4826
4826
|
}, 100);
|
|
4827
4827
|
}, { immediate: !0 }), Ne(() => J.value, () => {
|
|
4828
4828
|
c.value = J.value ? 100 : 0;
|
|
4829
4829
|
}, { immediate: !0 });
|
|
4830
4830
|
const ge = (_) => {
|
|
4831
4831
|
let S = { ..._ };
|
|
4832
|
-
if ([p.slove].includes(S.problemType) &&
|
|
4832
|
+
if ([p.slove].includes(S.problemType) && U.value) {
|
|
4833
4833
|
const pe = document.createElement("div");
|
|
4834
4834
|
pe.innerHTML = S.answerArea;
|
|
4835
|
-
const
|
|
4836
|
-
if (
|
|
4837
|
-
const
|
|
4838
|
-
|
|
4835
|
+
const K = pe.querySelector(At.sub);
|
|
4836
|
+
if (K) {
|
|
4837
|
+
const ie = document.createElement("div");
|
|
4838
|
+
ie.innerHTML = ns(S.sub, S.style[d.public.scoreShowFlag] === g.bracket_none ? void 0 : [S.score].flat(2).reduce(($e, Pe) => $e + Pe, 0), S.style[d.public.scoreShowFlag]), K.replaceWith(ie.children[0]), S.answerArea = pe.innerHTML, S.customSub = !0, pe.remove(), ie.remove();
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
4841
|
return S;
|
|
@@ -4846,21 +4846,21 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4846
4846
|
_ ? n.value[S] = _ : n.value.splice(S, 1);
|
|
4847
4847
|
}, ee = (_, S) => {
|
|
4848
4848
|
_ ? u.value[S] = _ : u.value.splice(S, 1);
|
|
4849
|
-
}, ue = (_) => Pt[o.layout.mode][o.layout.paper][de(_)] || 0, G = (_, S = !1) => (le.value - (c.value ? c.value + ue(_) : 0) + ue(_)) / de(_) - ue(_) - N.value.left - N.value.right + (S ? N.value.left + N.value.right : 0),
|
|
4850
|
-
var
|
|
4851
|
-
const pe = _ % (o.layout.column + o.layout.backColumn) ? 0 : ((
|
|
4849
|
+
}, ue = (_) => Pt[o.layout.mode][o.layout.paper][de(_)] || 0, G = (_, S = !1) => (le.value - (c.value ? c.value + ue(_) : 0) + ue(_)) / de(_) - ue(_) - N.value.left - N.value.right + (S ? N.value.left + N.value.right : 0), se = (_, S) => {
|
|
4850
|
+
var K, ie;
|
|
4851
|
+
const pe = _ % (o.layout.column + o.layout.backColumn) ? 0 : ((K = z.value[Math.min(S, 1)]) == null ? void 0 : K.offsetHeight) || 0;
|
|
4852
4852
|
return {
|
|
4853
4853
|
left: `${W.value.left + (S % 2 ? 0 : c.value ? c.value + ue(_) : 0) + N.value.left + C(_) * (G(_) + ue(_) + N.value.left + N.value.right)}px`,
|
|
4854
4854
|
top: `${pe + W.value.top + (!S && !_ ? 0 : N.value.top)}px`,
|
|
4855
4855
|
width: `${G(_)}px`,
|
|
4856
4856
|
height: `${b.value - pe - (!S && !_ ? 0 : N.value.top) - N.value.bottom}px`,
|
|
4857
|
-
contentHeight: `${(
|
|
4857
|
+
contentHeight: `${(ie = l.value[_]) == null ? void 0 : ie.height}px`
|
|
4858
4858
|
};
|
|
4859
4859
|
}, Ce = (_, S = !1) => {
|
|
4860
4860
|
r.value = _.map((pe) => ({ ...pe })), S && (l.value = [..._], a.value += 1, ot(() => {
|
|
4861
|
-
s.value = Math.ceil(l.value.length / o.layout.column), r.value = [], u.value.forEach((pe,
|
|
4862
|
-
var
|
|
4863
|
-
!pe || !pe.col || ((
|
|
4861
|
+
s.value = Math.ceil(l.value.length / o.layout.column), r.value = [], u.value.forEach((pe, K) => {
|
|
4862
|
+
var ie, $e;
|
|
4863
|
+
!pe || !pe.col || ((ie = l.value[K]) != null && ie.top ? pe.col.style.marginTop = `${($e = l.value[K]) == null ? void 0 : $e.top}px` : pe.col.style.marginTop = "");
|
|
4864
4864
|
}), o.isFinal && setTimeout(() => {
|
|
4865
4865
|
const pe = bs({
|
|
4866
4866
|
config: {
|
|
@@ -4870,21 +4870,21 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4870
4870
|
bindWidth: c.value,
|
|
4871
4871
|
pageMargin: L.value,
|
|
4872
4872
|
pageDom: n.value.slice(0, w.value),
|
|
4873
|
-
colDom: u.value.map((
|
|
4874
|
-
colViewDom: u.value.map((
|
|
4873
|
+
colDom: u.value.map((K) => K.col),
|
|
4874
|
+
colViewDom: u.value.map((K) => K.colView)
|
|
4875
4875
|
},
|
|
4876
4876
|
data: l.value
|
|
4877
4877
|
});
|
|
4878
4878
|
t("getFinalData", pe);
|
|
4879
4879
|
}, 500);
|
|
4880
4880
|
}));
|
|
4881
|
-
},
|
|
4881
|
+
}, ce = () => {
|
|
4882
4882
|
Es({
|
|
4883
4883
|
el: y.value,
|
|
4884
4884
|
data: F.value,
|
|
4885
4885
|
column: o.layout.column,
|
|
4886
4886
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4887
|
-
getColSize:
|
|
4887
|
+
getColSize: se,
|
|
4888
4888
|
change: Ce
|
|
4889
4889
|
});
|
|
4890
4890
|
}, ne = (_ = { type: M.page, value: {} }) => {
|
|
@@ -4896,37 +4896,37 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4896
4896
|
_.readonly ? P("", !0) : (i(), V(Is, {
|
|
4897
4897
|
key: 0,
|
|
4898
4898
|
ColList: l.value,
|
|
4899
|
-
ColDom: u.value.map((
|
|
4899
|
+
ColDom: u.value.map((K) => K.col),
|
|
4900
4900
|
ImgData: _.imgData,
|
|
4901
4901
|
TxtData: _.txtData,
|
|
4902
|
-
onDelAbsImgItem: S[0] || (S[0] = (
|
|
4903
|
-
onDelAbsTxtItem: S[1] || (S[1] = (
|
|
4904
|
-
onChangeLayoutStatus: S[2] || (S[2] = (
|
|
4902
|
+
onDelAbsImgItem: S[0] || (S[0] = (K) => t("delAbsImgItem", K)),
|
|
4903
|
+
onDelAbsTxtItem: S[1] || (S[1] = (K) => t("delAbsTxtItem", K)),
|
|
4904
|
+
onChangeLayoutStatus: S[2] || (S[2] = (K) => t("changeLayoutStatus", K))
|
|
4905
4905
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4906
4906
|
v("div", {
|
|
4907
4907
|
class: "flex-1 overflow-auto relative z-1",
|
|
4908
4908
|
id: "alit-layout",
|
|
4909
|
-
onClick: S[14] || (S[14] = (
|
|
4909
|
+
onClick: S[14] || (S[14] = (K) => ne())
|
|
4910
4910
|
}, [
|
|
4911
4911
|
v("div", {
|
|
4912
4912
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4913
4913
|
ref_key: "rawDom",
|
|
4914
4914
|
ref: y
|
|
4915
4915
|
}, [
|
|
4916
|
-
r.value.length ? (i(!0), h(D, { key: 0 }, oe((pe = r.value[r.value.length - 1]) == null ? void 0 : pe.data, (
|
|
4917
|
-
|
|
4916
|
+
r.value.length ? (i(!0), h(D, { key: 0 }, oe((pe = r.value[r.value.length - 1]) == null ? void 0 : pe.data, (K, ie) => (i(), h(D, null, [
|
|
4917
|
+
K.isHidden ? P("", !0) : (i(), V(Tt, {
|
|
4918
4918
|
key: 0,
|
|
4919
|
-
item:
|
|
4920
|
-
showColBorder:
|
|
4921
|
-
isFirst: !
|
|
4919
|
+
item: K,
|
|
4920
|
+
showColBorder: U.value,
|
|
4921
|
+
isFirst: !ie && r.value.length === 1,
|
|
4922
4922
|
layout: _.layout
|
|
4923
4923
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4924
|
-
|
|
4924
|
+
U.value ? (i(), h("div", {
|
|
4925
4925
|
key: 1,
|
|
4926
|
-
class: Z([!
|
|
4926
|
+
class: Z([!K.children.length && K.problemType && "p-1 min-h-[2rem]"])
|
|
4927
4927
|
}, [
|
|
4928
4928
|
(i(), V(Ue, {
|
|
4929
|
-
data:
|
|
4929
|
+
data: K,
|
|
4930
4930
|
key: r.value.length,
|
|
4931
4931
|
layout: _.layout,
|
|
4932
4932
|
target: _.target,
|
|
@@ -4934,7 +4934,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4934
4934
|
width: G(r.value.length - 1)
|
|
4935
4935
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4936
4936
|
], 2)) : (i(), V(Ue, {
|
|
4937
|
-
data:
|
|
4937
|
+
data: K,
|
|
4938
4938
|
key: r.value.length,
|
|
4939
4939
|
layout: _.layout,
|
|
4940
4940
|
target: _.target,
|
|
@@ -4944,17 +4944,17 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4944
4944
|
], 512),
|
|
4945
4945
|
v("div", {
|
|
4946
4946
|
class: Z(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", _.layout.redFlag && "red_mode", _.readonly && "pointer-events-none"]),
|
|
4947
|
-
style:
|
|
4947
|
+
style: j(O.value)
|
|
4948
4948
|
}, [
|
|
4949
4949
|
te(Vs, {
|
|
4950
4950
|
imgData: _.imgData,
|
|
4951
4951
|
txtData: _.txtData,
|
|
4952
4952
|
layout: _.layout,
|
|
4953
4953
|
pageMargin: H.value,
|
|
4954
|
-
onChangeAbsImgItem: S[3] || (S[3] = (
|
|
4955
|
-
onDelAbsImgItem: S[4] || (S[4] = (
|
|
4956
|
-
onChangeAbsTxtItem: S[5] || (S[5] = (
|
|
4957
|
-
onDelAbsTxtItem: S[6] || (S[6] = (
|
|
4954
|
+
onChangeAbsImgItem: S[3] || (S[3] = (K) => t("changeAbsImgItem", K)),
|
|
4955
|
+
onDelAbsImgItem: S[4] || (S[4] = (K) => t("delAbsImgItem", K)),
|
|
4956
|
+
onChangeAbsTxtItem: S[5] || (S[5] = (K) => t("changeAbsTxtItem", K)),
|
|
4957
|
+
onDelAbsTxtItem: S[6] || (S[6] = (K) => t("delAbsTxtItem", K))
|
|
4958
4958
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4959
4959
|
(i(), h("svg", {
|
|
4960
4960
|
viewBox: `0 0 ${parseFloat(O.value.width)} ${parseFloat(O.value.height)}`,
|
|
@@ -4963,20 +4963,20 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4963
4963
|
key: a.value
|
|
4964
4964
|
}, [
|
|
4965
4965
|
(i(), h("foreignObject", Js, [
|
|
4966
|
-
(i(!0), h(D, null, oe(E.value, (
|
|
4967
|
-
key:
|
|
4966
|
+
(i(!0), h(D, null, oe(E.value, (K, ie) => (i(), h("div", {
|
|
4967
|
+
key: K,
|
|
4968
4968
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4969
4969
|
ref_for: !0,
|
|
4970
|
-
ref: ($e) => $($e,
|
|
4971
|
-
style:
|
|
4970
|
+
ref: ($e) => $($e, ie),
|
|
4971
|
+
style: j(q.value)
|
|
4972
4972
|
}, [
|
|
4973
|
-
|
|
4973
|
+
ie < w.value ? (i(), h(D, { key: 0 }, [
|
|
4974
4974
|
te(Co, {
|
|
4975
4975
|
layout: _.layout,
|
|
4976
|
-
currentPage:
|
|
4976
|
+
currentPage: ie,
|
|
4977
4977
|
totalPage: w.value,
|
|
4978
|
-
columnContentWidth: G(
|
|
4979
|
-
columnMargin: ue(
|
|
4978
|
+
columnContentWidth: G(ie % 2 ? _.layout.column : 0, !0),
|
|
4979
|
+
columnMargin: ue(ie % 2 ? _.layout.column : 0),
|
|
4980
4980
|
bindWidth: c.value,
|
|
4981
4981
|
padding: W.value
|
|
4982
4982
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
@@ -4990,20 +4990,20 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4990
4990
|
ref_for: !0,
|
|
4991
4991
|
ref_key: "bindDom",
|
|
4992
4992
|
ref: m,
|
|
4993
|
-
currentPage:
|
|
4993
|
+
currentPage: ie,
|
|
4994
4994
|
width: c.value,
|
|
4995
4995
|
height: b.value,
|
|
4996
4996
|
isBindFlag: J.value,
|
|
4997
4997
|
bindSeatType: _.layout.bindSeatType,
|
|
4998
|
-
bindInfo:
|
|
4998
|
+
bindInfo: Y.value
|
|
4999
4999
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
5000
|
-
!(
|
|
5000
|
+
!(ie % 2) || ie === 1 && w.value < 3 ? (i(), h("div", {
|
|
5001
5001
|
key: 1,
|
|
5002
5002
|
ref_for: !0,
|
|
5003
5003
|
ref_key: "titleDom",
|
|
5004
5004
|
ref: z,
|
|
5005
|
-
class: Z(["absolute text-black",
|
|
5006
|
-
style:
|
|
5005
|
+
class: Z(["absolute text-black", ie === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5006
|
+
style: j(fe.value)
|
|
5007
5007
|
}, [
|
|
5008
5008
|
te(Ao, {
|
|
5009
5009
|
layout: _.layout,
|
|
@@ -5026,42 +5026,42 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
5026
5026
|
layout: _.layout,
|
|
5027
5027
|
isBindFlag: J.value
|
|
5028
5028
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5029
|
-
|
|
5029
|
+
ie ? P("", !0) : (i(), V(qa, {
|
|
5030
5030
|
key: 0,
|
|
5031
5031
|
layout: _.layout,
|
|
5032
5032
|
data: _.data
|
|
5033
5033
|
}, null, 8, ["layout", "data"])),
|
|
5034
|
-
_.layout.writeScoreFlag && !
|
|
5034
|
+
_.layout.writeScoreFlag && !ie ? (i(), V(bl, {
|
|
5035
5035
|
key: 1,
|
|
5036
5036
|
info: _.info,
|
|
5037
5037
|
layout: _.layout
|
|
5038
5038
|
}, null, 8, ["info", "layout"])) : P("", !0)
|
|
5039
5039
|
], 6)) : P("", !0),
|
|
5040
|
-
(i(!0), h(D, null, oe(
|
|
5040
|
+
(i(!0), h(D, null, oe(ie % 2 ? _.layout.backColumn : _.layout.column, ($e, Pe) => (i(), V(Ua, {
|
|
5041
5041
|
ref_for: !0,
|
|
5042
|
-
ref: (Ye) => ee(Ye, x(Pe,
|
|
5043
|
-
styleInfo:
|
|
5042
|
+
ref: (Ye) => ee(Ye, x(Pe, ie)),
|
|
5043
|
+
styleInfo: se(x(Pe, ie), ie),
|
|
5044
5044
|
column: _.layout.column,
|
|
5045
|
-
currentColumn: x(Pe,
|
|
5046
|
-
showColBorder:
|
|
5045
|
+
currentColumn: x(Pe, ie),
|
|
5046
|
+
showColBorder: U.value
|
|
5047
5047
|
}, {
|
|
5048
5048
|
default: Ft(() => {
|
|
5049
5049
|
var Ye;
|
|
5050
5050
|
return [
|
|
5051
|
-
(i(!0), h(D, null, oe(((Ye = l.value[x(Pe,
|
|
5051
|
+
(i(!0), h(D, null, oe(((Ye = l.value[x(Pe, ie)]) == null ? void 0 : Ye.data) || [], (we, Wt) => {
|
|
5052
5052
|
var bt;
|
|
5053
5053
|
return i(), h(D, null, [
|
|
5054
5054
|
we.isHidden ? P("", !0) : (i(), V(Tt, {
|
|
5055
5055
|
key: 0,
|
|
5056
5056
|
item: we,
|
|
5057
|
-
showColBorder:
|
|
5058
|
-
isFirst: !
|
|
5057
|
+
showColBorder: U.value,
|
|
5058
|
+
isFirst: !ie && !Pe && !Wt,
|
|
5059
5059
|
layout: _.layout,
|
|
5060
5060
|
isActive: ((bt = _.target.value) == null ? void 0 : bt.id) === we.id,
|
|
5061
5061
|
onClick: (Te) => ne({ type: we.problemType ? I(M).headline : I(M).headlineNotarea, value: we }),
|
|
5062
5062
|
onDbclick: (Te) => t("dbHeadLineClick", we)
|
|
5063
5063
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5064
|
-
|
|
5064
|
+
U.value ? (i(), h("div", {
|
|
5065
5065
|
key: 1,
|
|
5066
5066
|
class: Z([!we.children.length && we.problemType && "p-1 min-h-[2rem]", _.target.type === I(M).headline && _.target.value.id === we.id && "active_headline"]),
|
|
5067
5067
|
onClick: Me((Te) => ne({ type: we.problemType ? I(M).headline : I(M).headlineNotarea, value: we }), ["stop"]),
|
|
@@ -5071,7 +5071,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
5071
5071
|
data: we,
|
|
5072
5072
|
layout: _.layout,
|
|
5073
5073
|
target: _.target,
|
|
5074
|
-
width: G(x(Pe,
|
|
5074
|
+
width: G(x(Pe, ie)),
|
|
5075
5075
|
onClick: S[10] || (S[10] = (Te) => ne({ type: Te.problemType ? I(M).problem : I(M).problemNotarea, value: Te })),
|
|
5076
5076
|
onDbclick: S[11] || (S[11] = (Te) => t("dbProblemClick", Te))
|
|
5077
5077
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
@@ -5085,7 +5085,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
5085
5085
|
data: we,
|
|
5086
5086
|
layout: _.layout,
|
|
5087
5087
|
target: _.target,
|
|
5088
|
-
width: G(x(Pe,
|
|
5088
|
+
width: G(x(Pe, ie)),
|
|
5089
5089
|
onClick: S[12] || (S[12] = (Te) => ne({ type: Te.problemType ? I(M).problem : I(M).problemNotarea, value: Te })),
|
|
5090
5090
|
onDbclick: S[13] || (S[13] = (Te) => t("dbProblemClick", Te))
|
|
5091
5091
|
}, null, 8, ["data", "layout", "target", "width"]))
|