alit-layout 1.0.14 → 1.0.16
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 +498 -492
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, openBlock as s, createElementBlock as d, Fragment as M, renderList as X, createElementVNode as g, normalizeStyle as G, unref as x, toDisplayString as j, createCommentVNode as P, ref as q, watch as Ae, normalizeClass as te, computed as A, createBlock as Q, createTextVNode as Ke, createVNode as U, pushScopeId as Re, popScopeId as We, renderSlot as it, onMounted as Ve, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as It, inject as Rt, withDirectives as ft, provide as Wt } 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
|
+
}, Gt = {
|
|
40
40
|
// 文本
|
|
41
41
|
__text: "TXT",
|
|
42
42
|
// 文案
|
|
@@ -530,7 +530,7 @@ const Lt = {
|
|
|
530
530
|
2: 1,
|
|
531
531
|
3: 1
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, Y = {
|
|
534
534
|
page: "page",
|
|
535
535
|
headline: "headline",
|
|
536
536
|
text: "text",
|
|
@@ -738,7 +738,7 @@ const Lt = {
|
|
|
738
738
|
type: "radio",
|
|
739
739
|
label: "横向分栏",
|
|
740
740
|
key: y.article.col_a,
|
|
741
|
-
target: [
|
|
741
|
+
target: [Y.headline],
|
|
742
742
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
743
743
|
option: [
|
|
744
744
|
{ name: "1栏", code: T.col_1 },
|
|
@@ -751,7 +751,7 @@ const Lt = {
|
|
|
751
751
|
type: "radio",
|
|
752
752
|
label: "横向分栏",
|
|
753
753
|
key: y.article.col_a,
|
|
754
|
-
target: [
|
|
754
|
+
target: [Y.headline],
|
|
755
755
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
756
756
|
option: [
|
|
757
757
|
{ name: "1栏", code: T.col_1 },
|
|
@@ -768,7 +768,7 @@ const Lt = {
|
|
|
768
768
|
label: "插入题号样式控制",
|
|
769
769
|
key: y.article.slove_d,
|
|
770
770
|
code: "slove_insert_sub",
|
|
771
|
-
target: [
|
|
771
|
+
target: [Y.problem],
|
|
772
772
|
option: [
|
|
773
773
|
{ name: "无", code: T.slove_5 },
|
|
774
774
|
{ name: "下划线", code: T.slove_6 }
|
|
@@ -851,7 +851,7 @@ const Lt = {
|
|
|
851
851
|
label: "插入题号样式控制",
|
|
852
852
|
key: y.article.slove_d,
|
|
853
853
|
code: "slove_insert_sub",
|
|
854
|
-
target: [
|
|
854
|
+
target: [Y.problem],
|
|
855
855
|
option: [
|
|
856
856
|
{ name: "无", code: T.slove_5 },
|
|
857
857
|
{ name: "下划线", code: T.slove_6 }
|
|
@@ -874,7 +874,7 @@ const Lt = {
|
|
|
874
874
|
key: y.article.art_c,
|
|
875
875
|
detail: !0,
|
|
876
876
|
unit: "字",
|
|
877
|
-
target: [
|
|
877
|
+
target: [Y.problem]
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
type: "slider",
|
|
@@ -883,7 +883,7 @@ const Lt = {
|
|
|
883
883
|
detail: !0,
|
|
884
884
|
min: () => 1,
|
|
885
885
|
max: (e) => Math.floor(e.style[y.article.art_c] / e.style[y.article.art_e]),
|
|
886
|
-
target: [
|
|
886
|
+
target: [Y.problem]
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
type: "radio",
|
|
@@ -894,7 +894,7 @@ const Lt = {
|
|
|
894
894
|
{ name: "100", code: 100 }
|
|
895
895
|
],
|
|
896
896
|
detail: !0,
|
|
897
|
-
target: [
|
|
897
|
+
target: [Y.problem]
|
|
898
898
|
}
|
|
899
899
|
]
|
|
900
900
|
},
|
|
@@ -971,7 +971,7 @@ const Lt = {
|
|
|
971
971
|
type: "radio",
|
|
972
972
|
label: "分题换行",
|
|
973
973
|
key: y.sheet.fill_c,
|
|
974
|
-
target: [
|
|
974
|
+
target: [Y.page, Y.headline],
|
|
975
975
|
show: (e) => !e.style[y.sheet.fill_b],
|
|
976
976
|
option: [
|
|
977
977
|
{ name: "开启", code: T.fill_1 },
|
|
@@ -1012,7 +1012,7 @@ const Lt = {
|
|
|
1012
1012
|
type: "slider",
|
|
1013
1013
|
label: "每空高度",
|
|
1014
1014
|
key: y.sheet.fill_e,
|
|
1015
|
-
target: [
|
|
1015
|
+
target: [Y.page, Y.headline],
|
|
1016
1016
|
show: (e) => !e.style[y.sheet.fill_b],
|
|
1017
1017
|
max: () => 20
|
|
1018
1018
|
}
|
|
@@ -1034,7 +1034,7 @@ const Lt = {
|
|
|
1034
1034
|
label: "每空宽度",
|
|
1035
1035
|
key: y.sheet.fill_d,
|
|
1036
1036
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1037
|
-
target: [
|
|
1037
|
+
target: [Y.problem],
|
|
1038
1038
|
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1039
1039
|
option: [
|
|
1040
1040
|
{ name: "1", code: 1 },
|
|
@@ -1066,7 +1066,7 @@ const Lt = {
|
|
|
1066
1066
|
type: "radio",
|
|
1067
1067
|
label: "排列方向",
|
|
1068
1068
|
key: y.sheet.choice_b,
|
|
1069
|
-
target: [
|
|
1069
|
+
target: [Y.problem],
|
|
1070
1070
|
show: (e) => !e.style[y.sheet.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1071
1071
|
option: [
|
|
1072
1072
|
{ name: "横向", code: T.landscape },
|
|
@@ -1092,7 +1092,7 @@ const Lt = {
|
|
|
1092
1092
|
key: y.sheet.art_c,
|
|
1093
1093
|
detail: !0,
|
|
1094
1094
|
unit: "字",
|
|
1095
|
-
target: [
|
|
1095
|
+
target: [Y.problem]
|
|
1096
1096
|
},
|
|
1097
1097
|
{
|
|
1098
1098
|
type: "slider",
|
|
@@ -1101,7 +1101,7 @@ const Lt = {
|
|
|
1101
1101
|
detail: !0,
|
|
1102
1102
|
min: () => 1,
|
|
1103
1103
|
max: (e) => Math.floor(e.style[y.sheet.art_c] / e.style[y.sheet.art_e]),
|
|
1104
|
-
target: [
|
|
1104
|
+
target: [Y.problem]
|
|
1105
1105
|
},
|
|
1106
1106
|
{
|
|
1107
1107
|
type: "radio",
|
|
@@ -1112,7 +1112,7 @@ const Lt = {
|
|
|
1112
1112
|
{ name: "100", code: 100 }
|
|
1113
1113
|
],
|
|
1114
1114
|
detail: !0,
|
|
1115
|
-
target: [
|
|
1115
|
+
target: [Y.problem]
|
|
1116
1116
|
}
|
|
1117
1117
|
],
|
|
1118
1118
|
// 综合题
|
|
@@ -1165,7 +1165,7 @@ const Lt = {
|
|
|
1165
1165
|
{
|
|
1166
1166
|
type: "slider",
|
|
1167
1167
|
label: "列数",
|
|
1168
|
-
target: [
|
|
1168
|
+
target: [Y.headline],
|
|
1169
1169
|
key: y.sheetCard.choice_d,
|
|
1170
1170
|
show: (e) => e.style[y.sheetCard.choice_a] !== T.choice_2,
|
|
1171
1171
|
min: () => 2,
|
|
@@ -1201,7 +1201,7 @@ const Lt = {
|
|
|
1201
1201
|
type: "radio",
|
|
1202
1202
|
label: "分题换行",
|
|
1203
1203
|
key: y.sheetCard.fill_c,
|
|
1204
|
-
target: [
|
|
1204
|
+
target: [Y.page, Y.headline],
|
|
1205
1205
|
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1206
1206
|
option: [
|
|
1207
1207
|
{ name: "开启", code: T.fill_1 },
|
|
@@ -1242,7 +1242,7 @@ const Lt = {
|
|
|
1242
1242
|
type: "slider",
|
|
1243
1243
|
label: "每空高度",
|
|
1244
1244
|
key: y.sheetCard.fill_e,
|
|
1245
|
-
target: [
|
|
1245
|
+
target: [Y.page, Y.headline],
|
|
1246
1246
|
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1247
1247
|
max: () => 20
|
|
1248
1248
|
}
|
|
@@ -1255,7 +1255,7 @@ const Lt = {
|
|
|
1255
1255
|
label: "每空宽度",
|
|
1256
1256
|
key: y.sheetCard.fill_d,
|
|
1257
1257
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1258
|
-
target: [
|
|
1258
|
+
target: [Y.problem],
|
|
1259
1259
|
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1260
1260
|
option: [
|
|
1261
1261
|
{ name: "1", code: 1 },
|
|
@@ -1287,7 +1287,7 @@ const Lt = {
|
|
|
1287
1287
|
type: "radio",
|
|
1288
1288
|
label: "排列方向",
|
|
1289
1289
|
key: y.sheetCard.choice_b,
|
|
1290
|
-
target: [
|
|
1290
|
+
target: [Y.problem],
|
|
1291
1291
|
show: (e) => !e.style[y.sheetCard.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1292
1292
|
option: [
|
|
1293
1293
|
{ name: "横向", code: T.landscape },
|
|
@@ -1302,8 +1302,13 @@ const Lt = {
|
|
|
1302
1302
|
label: "格子尺寸",
|
|
1303
1303
|
key: y.article.art_b,
|
|
1304
1304
|
detail: !0,
|
|
1305
|
+
target: [Y.problem],
|
|
1305
1306
|
min: () => 27,
|
|
1306
|
-
max: () => 40
|
|
1307
|
+
max: () => 40,
|
|
1308
|
+
formatTip: (e, t) => {
|
|
1309
|
+
const o = document.querySelector(`*[data-viewid="${e.id}"]`);
|
|
1310
|
+
return o ? `单行${Math.floor(o.offsetWidth / t)}格` : t;
|
|
1311
|
+
}
|
|
1307
1312
|
},
|
|
1308
1313
|
{
|
|
1309
1314
|
type: "input",
|
|
@@ -1311,7 +1316,7 @@ const Lt = {
|
|
|
1311
1316
|
key: y.sheetCard.art_c,
|
|
1312
1317
|
detail: !0,
|
|
1313
1318
|
unit: "字",
|
|
1314
|
-
target: [
|
|
1319
|
+
target: [Y.problem]
|
|
1315
1320
|
},
|
|
1316
1321
|
{
|
|
1317
1322
|
type: "slider",
|
|
@@ -1320,7 +1325,7 @@ const Lt = {
|
|
|
1320
1325
|
detail: !0,
|
|
1321
1326
|
min: () => 1,
|
|
1322
1327
|
max: (e) => Math.floor(e.style[y.sheetCard.art_c] / e.style[y.sheetCard.art_e]),
|
|
1323
|
-
target: [
|
|
1328
|
+
target: [Y.problem]
|
|
1324
1329
|
},
|
|
1325
1330
|
{
|
|
1326
1331
|
type: "radio",
|
|
@@ -1331,7 +1336,7 @@ const Lt = {
|
|
|
1331
1336
|
{ name: "100", code: 100 }
|
|
1332
1337
|
],
|
|
1333
1338
|
detail: !0,
|
|
1334
|
-
target: [
|
|
1339
|
+
target: [Y.problem]
|
|
1335
1340
|
}
|
|
1336
1341
|
],
|
|
1337
1342
|
// 综合题
|
|
@@ -1348,7 +1353,7 @@ const Lt = {
|
|
|
1348
1353
|
]
|
|
1349
1354
|
}
|
|
1350
1355
|
}, no = {
|
|
1351
|
-
[
|
|
1356
|
+
[Gt.__cdest]: [
|
|
1352
1357
|
{
|
|
1353
1358
|
type: "radio",
|
|
1354
1359
|
label: "边框显示控制",
|
|
@@ -1449,7 +1454,7 @@ const Lt = {
|
|
|
1449
1454
|
sloveScoreHalfErr: "简易打分条含小数分值",
|
|
1450
1455
|
absImgOverErr: "浮层图片超出纸张",
|
|
1451
1456
|
absTxtOverErr: "浮层文本超出纸张"
|
|
1452
|
-
},
|
|
1457
|
+
}, ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1453
1458
|
__proto__: null,
|
|
1454
1459
|
ErrLayoutCode: uo,
|
|
1455
1460
|
MixNodeTag: co,
|
|
@@ -1489,7 +1494,7 @@ const Lt = {
|
|
|
1489
1494
|
subRangeOption: Jt,
|
|
1490
1495
|
subRule: Qe,
|
|
1491
1496
|
subRuleOption: Zt,
|
|
1492
|
-
toolGroup:
|
|
1497
|
+
toolGroup: Y
|
|
1493
1498
|
}, Symbol.toStringTag, { value: "Module" })), ct = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
|
|
1494
1499
|
a4: "TYPE_A4",
|
|
1495
1500
|
a4x: "TYPE_A4",
|
|
@@ -1568,7 +1573,7 @@ const Lt = {
|
|
|
1568
1573
|
// 选做题
|
|
1569
1574
|
[be.another_choice]: "TYPE_SINGLECHOICE"
|
|
1570
1575
|
// 附加选做题
|
|
1571
|
-
}, yo = ["data-xine"], _o = ["data-xine"], fo = ["data-xine"], go = ["data-xine"], bo = ["data-xine"], vo = /* @__PURE__ */
|
|
1576
|
+
}, yo = ["data-xine"], _o = ["data-xine"], fo = ["data-xine"], go = ["data-xine"], bo = ["data-xine"], vo = /* @__PURE__ */ V({
|
|
1572
1577
|
__name: "point",
|
|
1573
1578
|
props: {
|
|
1574
1579
|
layout: {},
|
|
@@ -1611,32 +1616,32 @@ const Lt = {
|
|
|
1611
1616
|
return (l, i) => {
|
|
1612
1617
|
var c;
|
|
1613
1618
|
return s(), d(M, null, [
|
|
1614
|
-
(s(), d(M, null,
|
|
1619
|
+
(s(), d(M, null, X(["lt", "rt", "lb", "rb"], (u) => g("span", {
|
|
1615
1620
|
key: u,
|
|
1616
1621
|
class: "absolute w-8 bg-black point_item",
|
|
1617
|
-
style:
|
|
1622
|
+
style: G(o(u)),
|
|
1618
1623
|
"data-xine": x(C).point + u
|
|
1619
1624
|
}, null, 12, yo)), 64)),
|
|
1620
|
-
(s(!0), d(M, null,
|
|
1621
|
-
(s(), d(M, null,
|
|
1625
|
+
(s(!0), d(M, null, X((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(M, { key: u }, [
|
|
1626
|
+
(s(), d(M, null, X(["t", "b"], (m) => g("span", {
|
|
1622
1627
|
key: m,
|
|
1623
1628
|
class: "absolute bg-black w-8 point_item",
|
|
1624
|
-
style:
|
|
1629
|
+
style: G(n(u, m)),
|
|
1625
1630
|
"data-xine": x(C).point + m
|
|
1626
1631
|
}, null, 12, _o)), 64))
|
|
1627
1632
|
], 64))), 128)),
|
|
1628
|
-
(s(), d(M, null,
|
|
1633
|
+
(s(), d(M, null, X(["l", "r"], (u) => g("span", {
|
|
1629
1634
|
key: u,
|
|
1630
1635
|
class: "absolute bg-black h-8",
|
|
1631
|
-
style:
|
|
1636
|
+
style: G(r(u)),
|
|
1632
1637
|
"data-xine": x(C).point + u
|
|
1633
1638
|
}, null, 12, fo)), 64)),
|
|
1634
1639
|
g("p", {
|
|
1635
1640
|
class: "absolute leading-none text-0",
|
|
1636
|
-
style:
|
|
1641
|
+
style: G(a()),
|
|
1637
1642
|
"data-xine": x(C).page
|
|
1638
1643
|
}, [
|
|
1639
|
-
(s(!0), d(M, null,
|
|
1644
|
+
(s(!0), d(M, null, X(l.currentPage + 1, (u, m) => (s(), d("span", {
|
|
1640
1645
|
key: u,
|
|
1641
1646
|
class: "inline-block bg-black mx-2 page_item",
|
|
1642
1647
|
"data-xine": x(C).page_item + m
|
|
@@ -1645,12 +1650,12 @@ const Lt = {
|
|
|
1645
1650
|
l.currentPage % 2 ? P("", !0) : (s(), d("span", {
|
|
1646
1651
|
key: 0,
|
|
1647
1652
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1648
|
-
style:
|
|
1649
|
-
}, "提示:本卷" +
|
|
1653
|
+
style: G({ right: `${l.padding.right - 12}px` })
|
|
1654
|
+
}, "提示:本卷" + j((c = x(ze).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
|
|
1650
1655
|
g("span", {
|
|
1651
1656
|
class: "absolute text-sm red_sheet",
|
|
1652
|
-
style:
|
|
1653
|
-
},
|
|
1657
|
+
style: G({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
|
|
1658
|
+
}, j(l.currentPage + 1) + "/" + j(l.totalPage), 5)
|
|
1654
1659
|
], 64);
|
|
1655
1660
|
};
|
|
1656
1661
|
}
|
|
@@ -1663,7 +1668,7 @@ const ce = (e, t) => {
|
|
|
1663
1668
|
}, wo = /* @__PURE__ */ ce(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1664
1669
|
key: 0,
|
|
1665
1670
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1666
|
-
}, et = /* @__PURE__ */
|
|
1671
|
+
}, et = /* @__PURE__ */ V({
|
|
1667
1672
|
__name: "index",
|
|
1668
1673
|
props: {
|
|
1669
1674
|
value: { default: "" },
|
|
@@ -1678,7 +1683,7 @@ const ce = (e, t) => {
|
|
|
1678
1683
|
},
|
|
1679
1684
|
emits: ["change", "input", "focus", "blur"],
|
|
1680
1685
|
setup(e, { emit: t }) {
|
|
1681
|
-
const o = e, a =
|
|
1686
|
+
const o = e, a = q(o.value), n = q(!1);
|
|
1682
1687
|
Ae(() => o.value, () => {
|
|
1683
1688
|
a.value = o.value;
|
|
1684
1689
|
});
|
|
@@ -1709,10 +1714,10 @@ const ce = (e, t) => {
|
|
|
1709
1714
|
onBlur: c
|
|
1710
1715
|
}, null, 42, ko)
|
|
1711
1716
|
]),
|
|
1712
|
-
u.unit ? (s(), d("span", Co,
|
|
1717
|
+
u.unit ? (s(), d("span", Co, j(u.unit), 1)) : P("", !0)
|
|
1713
1718
|
], 2));
|
|
1714
1719
|
}
|
|
1715
|
-
}), $o = /* @__PURE__ */
|
|
1720
|
+
}), $o = /* @__PURE__ */ V({
|
|
1716
1721
|
__name: "slogan",
|
|
1717
1722
|
props: {
|
|
1718
1723
|
info: {},
|
|
@@ -1724,7 +1729,7 @@ const ce = (e, t) => {
|
|
|
1724
1729
|
right: `${a.value.right + 97}px`,
|
|
1725
1730
|
bottom: `${a.value.bottom - 25}px`
|
|
1726
1731
|
}));
|
|
1727
|
-
return (r, l) => (s(),
|
|
1732
|
+
return (r, l) => (s(), Q(et, {
|
|
1728
1733
|
class: "absolute w-72 text-sm",
|
|
1729
1734
|
value: r.info.slogan,
|
|
1730
1735
|
maxLength: 12,
|
|
@@ -1732,11 +1737,11 @@ const ce = (e, t) => {
|
|
|
1732
1737
|
size: "small",
|
|
1733
1738
|
autoLine: "",
|
|
1734
1739
|
dir: "right",
|
|
1735
|
-
style:
|
|
1740
|
+
style: G(n.value),
|
|
1736
1741
|
onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
|
|
1737
1742
|
}, null, 8, ["value", "style"]));
|
|
1738
1743
|
}
|
|
1739
|
-
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */
|
|
1744
|
+
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ V({
|
|
1740
1745
|
__name: "index",
|
|
1741
1746
|
props: {
|
|
1742
1747
|
width: { default: 1.5 },
|
|
@@ -1762,7 +1767,7 @@ const ce = (e, t) => {
|
|
|
1762
1767
|
const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
|
|
1763
1768
|
key: 0,
|
|
1764
1769
|
class: "flex items-center"
|
|
1765
|
-
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */
|
|
1770
|
+
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ V({
|
|
1766
1771
|
__name: "secrecy",
|
|
1767
1772
|
props: {
|
|
1768
1773
|
layout: {},
|
|
@@ -1772,17 +1777,17 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1772
1777
|
return (t, o) => (s(), d("div", Lo, [
|
|
1773
1778
|
t.layout.secrecyFlag ? (s(), d("p", Fo, [
|
|
1774
1779
|
Ke("绝密"),
|
|
1775
|
-
|
|
1780
|
+
U(_e, {
|
|
1776
1781
|
name: "fiveArrow",
|
|
1777
1782
|
width: 1.4,
|
|
1778
1783
|
class: "px-0 py-0"
|
|
1779
1784
|
}),
|
|
1780
1785
|
Ke("启用前")
|
|
1781
1786
|
])) : P("", !0),
|
|
1782
|
-
g("p", Eo, "ID:" +
|
|
1787
|
+
g("p", Eo, "ID:" + j(t.code), 1)
|
|
1783
1788
|
]));
|
|
1784
1789
|
}
|
|
1785
|
-
}), Po = ["innerHTML"], Oe = /* @__PURE__ */
|
|
1790
|
+
}), Po = ["innerHTML"], Oe = /* @__PURE__ */ V({
|
|
1786
1791
|
__name: "index",
|
|
1787
1792
|
props: {
|
|
1788
1793
|
value: {},
|
|
@@ -1806,7 +1811,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1806
1811
|
}, zo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
|
|
1807
1812
|
key: 1,
|
|
1808
1813
|
class: "flex items-center w-40 mx-4"
|
|
1809
|
-
}, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1),
|
|
1814
|
+
}, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Wo = /* @__PURE__ */ g("span", null, "分钟", -1), Go = {
|
|
1810
1815
|
key: 2,
|
|
1811
1816
|
class: "flex mx-4 min-w-[80px]"
|
|
1812
1817
|
}, Yo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
|
|
@@ -1815,7 +1820,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1815
1820
|
}, Qo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
|
|
1816
1821
|
key: 4,
|
|
1817
1822
|
class: "flex items-center mx-4"
|
|
1818
|
-
}, Ko = /* @__PURE__ */ g("span", null, "总", -1), jo = { key: 1 }, Xo = { key: 3 }, Vo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ g("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */
|
|
1823
|
+
}, Ko = /* @__PURE__ */ g("span", null, "总", -1), jo = { key: 1 }, Xo = { key: 3 }, Vo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ g("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ V({
|
|
1819
1824
|
__name: "title",
|
|
1820
1825
|
props: {
|
|
1821
1826
|
info: {},
|
|
@@ -1834,23 +1839,23 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1834
1839
|
"data-xine": x(C).art_code
|
|
1835
1840
|
}, null, 8, Ao),
|
|
1836
1841
|
g("div", No, [
|
|
1837
|
-
|
|
1842
|
+
U(Oe, {
|
|
1838
1843
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1839
1844
|
value: l.info.title,
|
|
1840
|
-
style:
|
|
1845
|
+
style: G(l.fontConfig.titleStyle),
|
|
1841
1846
|
onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
|
|
1842
1847
|
}, null, 8, ["value", "style"]),
|
|
1843
|
-
l.layout.secTitleFlag ? (s(),
|
|
1848
|
+
l.layout.secTitleFlag ? (s(), Q(Oe, {
|
|
1844
1849
|
key: 0,
|
|
1845
1850
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1846
1851
|
value: l.info.secTitle,
|
|
1847
|
-
style:
|
|
1852
|
+
style: G(l.fontConfig.halfTitleStyle),
|
|
1848
1853
|
onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
|
|
1849
1854
|
}, null, 8, ["value", "style"])) : P("", !0),
|
|
1850
1855
|
g("div", Bo, [
|
|
1851
1856
|
l.layout.examExtentFlag ? (s(), d("p", Oo, [
|
|
1852
1857
|
zo,
|
|
1853
|
-
|
|
1858
|
+
U(Oe, {
|
|
1854
1859
|
class: "flex-1",
|
|
1855
1860
|
value: l.info.extent,
|
|
1856
1861
|
onChange: i[2] || (i[2] = (c) => t("change", { extent: c }))
|
|
@@ -1858,7 +1863,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1858
1863
|
])) : P("", !0),
|
|
1859
1864
|
l.layout.examTimeFlag ? (s(), d("p", Ho, [
|
|
1860
1865
|
Ro,
|
|
1861
|
-
|
|
1866
|
+
U(et, {
|
|
1862
1867
|
value: l.info.time,
|
|
1863
1868
|
class: "text-center",
|
|
1864
1869
|
type: "number",
|
|
@@ -1867,11 +1872,11 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1867
1872
|
placeholder: "",
|
|
1868
1873
|
onChange: i[3] || (i[3] = (c) => t("change", { time: c }))
|
|
1869
1874
|
}, null, 8, ["value"]),
|
|
1870
|
-
|
|
1875
|
+
Wo
|
|
1871
1876
|
])) : P("", !0),
|
|
1872
|
-
l.layout.authorFlag ? (s(), d("p",
|
|
1877
|
+
l.layout.authorFlag ? (s(), d("p", Go, [
|
|
1873
1878
|
Yo,
|
|
1874
|
-
|
|
1879
|
+
U(Oe, {
|
|
1875
1880
|
class: "flex-1",
|
|
1876
1881
|
value: l.info.author,
|
|
1877
1882
|
onChange: i[4] || (i[4] = (c) => t("change", { author: c }))
|
|
@@ -1879,7 +1884,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1879
1884
|
])) : P("", !0),
|
|
1880
1885
|
l.layout.reviewerFlag ? (s(), d("p", qo, [
|
|
1881
1886
|
Qo,
|
|
1882
|
-
|
|
1887
|
+
U(Oe, {
|
|
1883
1888
|
class: "flex-1",
|
|
1884
1889
|
value: l.info.reviewer,
|
|
1885
1890
|
onChange: i[5] || (i[5] = (c) => t("change", { reviewer: c }))
|
|
@@ -1887,26 +1892,26 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1887
1892
|
])) : P("", !0),
|
|
1888
1893
|
l.layout.totalScoreFlag ? (s(), d("p", Uo, [
|
|
1889
1894
|
Ko,
|
|
1890
|
-
r.value ? (s(),
|
|
1895
|
+
r.value ? (s(), Q(_e, {
|
|
1891
1896
|
key: 0,
|
|
1892
1897
|
name: r.value,
|
|
1893
1898
|
class: "p-0 -translate-y-[1px]"
|
|
1894
1899
|
}, null, 8, ["name"])) : (s(), d("span", jo, "分")),
|
|
1895
|
-
g("span", null, ":" +
|
|
1896
|
-
r.value ? (s(),
|
|
1900
|
+
g("span", null, ":" + j(a.value + (l.layout.writeScoreFlag ? l.info.writeScore : 0)), 1),
|
|
1901
|
+
r.value ? (s(), Q(_e, {
|
|
1897
1902
|
key: 2,
|
|
1898
1903
|
name: r.value,
|
|
1899
1904
|
class: "p-0 -translate-y-[1px]"
|
|
1900
1905
|
}, null, 8, ["name"])) : (s(), d("span", Xo, "分")),
|
|
1901
1906
|
l.layout.writeScoreFlag ? (s(), d(M, { key: 4 }, [
|
|
1902
|
-
g("span", null, "(试题" +
|
|
1903
|
-
r.value ? (s(),
|
|
1907
|
+
g("span", null, "(试题" + j(a.value), 1),
|
|
1908
|
+
r.value ? (s(), Q(_e, {
|
|
1904
1909
|
key: 0,
|
|
1905
1910
|
name: r.value,
|
|
1906
1911
|
class: "p-0 -translate-y-[1px]"
|
|
1907
1912
|
}, null, 8, ["name"])) : (s(), d("span", Vo, "分")),
|
|
1908
|
-
g("span", null, "+卷面" +
|
|
1909
|
-
r.value ? (s(),
|
|
1913
|
+
g("span", null, "+卷面" + j(l.info.writeScore || 0), 1),
|
|
1914
|
+
r.value ? (s(), Q(_e, {
|
|
1910
1915
|
key: 2,
|
|
1911
1916
|
name: r.value,
|
|
1912
1917
|
class: "p-0 -translate-y-[1px]"
|
|
@@ -1914,8 +1919,8 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1914
1919
|
Zo
|
|
1915
1920
|
], 64)) : P("", !0),
|
|
1916
1921
|
n.value ? (s(), d(M, { key: 5 }, [
|
|
1917
|
-
g("span", null, ";附加题:" +
|
|
1918
|
-
r.value ? (s(),
|
|
1922
|
+
g("span", null, ";附加题:" + j(n.value), 1),
|
|
1923
|
+
r.value ? (s(), Q(_e, {
|
|
1919
1924
|
key: 0,
|
|
1920
1925
|
name: r.value,
|
|
1921
1926
|
class: "p-0 -translate-y-[1px]"
|
|
@@ -1926,7 +1931,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1926
1931
|
])
|
|
1927
1932
|
]));
|
|
1928
1933
|
}
|
|
1929
|
-
}), oa = { class: "flex-1 flex flex-col ml-2" }, gt = /* @__PURE__ */
|
|
1934
|
+
}), oa = { class: "flex-1 flex flex-col ml-2" }, gt = /* @__PURE__ */ V({
|
|
1930
1935
|
__name: "examInfoNone",
|
|
1931
1936
|
props: {
|
|
1932
1937
|
extent: {}
|
|
@@ -1935,11 +1940,11 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1935
1940
|
setup(e, { emit: t }) {
|
|
1936
1941
|
const o = ["examNumField", "examRoomField", "seatField"];
|
|
1937
1942
|
return (a, n) => (s(), d("ul", oa, [
|
|
1938
|
-
(s(), d(M, null,
|
|
1943
|
+
(s(), d(M, null, X(o, (r) => g("li", {
|
|
1939
1944
|
key: r,
|
|
1940
1945
|
class: "flex flex-1"
|
|
1941
1946
|
}, [
|
|
1942
|
-
|
|
1947
|
+
U(et, {
|
|
1943
1948
|
value: a.extent[r],
|
|
1944
1949
|
class: "px-0",
|
|
1945
1950
|
placeholder: "",
|
|
@@ -1949,7 +1954,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1949
1954
|
])), 64))
|
|
1950
1955
|
]));
|
|
1951
1956
|
}
|
|
1952
|
-
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */
|
|
1957
|
+
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */ V({
|
|
1953
1958
|
__name: "examInfoSeat",
|
|
1954
1959
|
setup(e) {
|
|
1955
1960
|
return (t, o) => (s(), d("div", {
|
|
@@ -1957,7 +1962,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1957
1962
|
"data-xine": x(C).en_num_view
|
|
1958
1963
|
}, [
|
|
1959
1964
|
g("p", la, [
|
|
1960
|
-
|
|
1965
|
+
U(_e, {
|
|
1961
1966
|
class: "pt-1",
|
|
1962
1967
|
name: "fiveArrow"
|
|
1963
1968
|
}),
|
|
@@ -1967,22 +1972,22 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1967
1972
|
class: "flex-1 flex flex-col",
|
|
1968
1973
|
"data-xine": x(C).en_num
|
|
1969
1974
|
}, [
|
|
1970
|
-
(s(), d(M, null,
|
|
1975
|
+
(s(), d(M, null, X(3, (a, n) => g("p", {
|
|
1971
1976
|
key: a,
|
|
1972
1977
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
1973
1978
|
"data-xine": x(C).en_num_group
|
|
1974
1979
|
}, [
|
|
1975
|
-
(s(), d(M, null,
|
|
1980
|
+
(s(), d(M, null, X(10, (r) => g("span", {
|
|
1976
1981
|
key: r,
|
|
1977
1982
|
class: "flex items-center justify-between flex-nowrap item",
|
|
1978
1983
|
"data-xine": x(C).en_num_item
|
|
1979
|
-
},
|
|
1984
|
+
}, j(r - 1), 9, ia)), 64))
|
|
1980
1985
|
], 8, sa)), 64))
|
|
1981
1986
|
], 8, na)
|
|
1982
1987
|
], 8, aa));
|
|
1983
1988
|
}
|
|
1984
1989
|
});
|
|
1985
|
-
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__ */
|
|
1990
|
+
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__ */ V({
|
|
1986
1991
|
__name: "examInfoShort",
|
|
1987
1992
|
setup(e) {
|
|
1988
1993
|
return (t, o) => (s(), d("div", {
|
|
@@ -1990,7 +1995,7 @@ const bt = /* @__PURE__ */ ce(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
1990
1995
|
"data-xine": x(C).en_num_view
|
|
1991
1996
|
}, [
|
|
1992
1997
|
g("p", da, [
|
|
1993
|
-
|
|
1998
|
+
U(_e, {
|
|
1994
1999
|
class: "px-1 pt-1",
|
|
1995
2000
|
name: "fiveArrow"
|
|
1996
2001
|
}),
|
|
@@ -2000,22 +2005,22 @@ const bt = /* @__PURE__ */ ce(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
2000
2005
|
class: "flex-1 flex flex-col",
|
|
2001
2006
|
"data-xine": x(C).en_num
|
|
2002
2007
|
}, [
|
|
2003
|
-
(s(), d(M, null,
|
|
2008
|
+
(s(), d(M, null, X(4, (a, n) => g("p", {
|
|
2004
2009
|
key: a,
|
|
2005
2010
|
class: te(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
|
|
2006
2011
|
"data-xine": x(C).en_num_group
|
|
2007
2012
|
}, [
|
|
2008
|
-
(s(), d(M, null,
|
|
2013
|
+
(s(), d(M, null, X(10, (r) => g("span", {
|
|
2009
2014
|
key: r,
|
|
2010
2015
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2011
2016
|
"data-xine": x(C).en_num_item
|
|
2012
|
-
},
|
|
2017
|
+
}, j(r - 1), 9, pa)), 64))
|
|
2013
2018
|
], 10, ha)), 64))
|
|
2014
2019
|
], 8, ua)
|
|
2015
2020
|
], 8, ca));
|
|
2016
2021
|
}
|
|
2017
2022
|
});
|
|
2018
|
-
const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */
|
|
2023
|
+
const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ V({
|
|
2019
2024
|
__name: "examInfoBase",
|
|
2020
2025
|
props: {
|
|
2021
2026
|
extent: {}
|
|
@@ -2024,11 +2029,11 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2024
2029
|
setup(e, { emit: t }) {
|
|
2025
2030
|
const o = ["nameField", "classField", "scoreField"];
|
|
2026
2031
|
return (a, n) => (s(), d("ul", ya, [
|
|
2027
|
-
(s(), d(M, null,
|
|
2032
|
+
(s(), d(M, null, X(o, (r) => g("li", {
|
|
2028
2033
|
key: r,
|
|
2029
2034
|
class: "flex flex-1"
|
|
2030
2035
|
}, [
|
|
2031
|
-
|
|
2036
|
+
U(et, {
|
|
2032
2037
|
value: a.extent[r],
|
|
2033
2038
|
class: "px-0",
|
|
2034
2039
|
placeholder: "",
|
|
@@ -2038,12 +2043,12 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2038
2043
|
])), 64))
|
|
2039
2044
|
]));
|
|
2040
2045
|
}
|
|
2041
|
-
}), fa = (e) => (Re("data-v-44e44996"), e = e(),
|
|
2046
|
+
}), fa = (e) => (Re("data-v-44e44996"), e = e(), We(), e), ga = {
|
|
2042
2047
|
key: 0,
|
|
2043
2048
|
class: "flex"
|
|
2044
2049
|
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ g("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
|
|
2045
2050
|
va
|
|
2046
|
-
], xa = /* @__PURE__ */
|
|
2051
|
+
], xa = /* @__PURE__ */ V({
|
|
2047
2052
|
__name: "examInfo",
|
|
2048
2053
|
props: {
|
|
2049
2054
|
layout: {},
|
|
@@ -2055,22 +2060,22 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2055
2060
|
const o = e, a = A(() => o.layout.column >= 3 && o.layout.seatType === ve.none);
|
|
2056
2061
|
return (n, r) => n.isBindFlag ? P("", !0) : (s(), d("div", ga, [
|
|
2057
2062
|
a.value ? (s(), d(M, { key: 0 }, [
|
|
2058
|
-
n.layout.seatType === x(ve).none ? (s(),
|
|
2063
|
+
n.layout.seatType === x(ve).none ? (s(), Q(gt, {
|
|
2059
2064
|
key: 0,
|
|
2060
2065
|
extent: n.info.extentInfo,
|
|
2061
2066
|
onChange: r[0] || (r[0] = (l) => t("change", l))
|
|
2062
|
-
}, null, 8, ["extent"])) : n.layout.seatType === x(ve).seat ? (s(),
|
|
2067
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(ve).seat ? (s(), Q(bt, { key: 1 })) : n.layout.seatType === x(ve).shortId ? (s(), Q(vt, { key: 2 })) : P("", !0)
|
|
2063
2068
|
], 64)) : P("", !0),
|
|
2064
|
-
|
|
2069
|
+
U(_a, {
|
|
2065
2070
|
extent: n.info.extentInfo,
|
|
2066
2071
|
onChange: r[1] || (r[1] = (l) => t("change", l))
|
|
2067
2072
|
}, null, 8, ["extent"]),
|
|
2068
2073
|
a.value ? P("", !0) : (s(), d(M, { key: 1 }, [
|
|
2069
|
-
n.layout.seatType === x(ve).none ? (s(),
|
|
2074
|
+
n.layout.seatType === x(ve).none ? (s(), Q(gt, {
|
|
2070
2075
|
key: 0,
|
|
2071
2076
|
extent: n.info.extentInfo,
|
|
2072
2077
|
onChange: r[2] || (r[2] = (l) => t("change", l))
|
|
2073
|
-
}, null, 8, ["extent"])) : n.layout.seatType === x(ve).seat ? (s(),
|
|
2078
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(ve).seat ? (s(), Q(bt, { key: 1 })) : n.layout.seatType === x(ve).shortId ? (s(), Q(vt, { key: 2 })) : P("", !0)
|
|
2074
2079
|
], 64)),
|
|
2075
2080
|
g("div", {
|
|
2076
2081
|
class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
|
|
@@ -2079,7 +2084,7 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2079
2084
|
]));
|
|
2080
2085
|
}
|
|
2081
2086
|
});
|
|
2082
|
-
const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(),
|
|
2087
|
+
const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), We(), e), Ca = {
|
|
2083
2088
|
key: 0,
|
|
2084
2089
|
class: "flex border mt-2 red_sheet"
|
|
2085
2090
|
}, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "[", -1)), Ma = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", { class: "ml-4" }, "]", -1)), Pa = [
|
|
@@ -2088,7 +2093,7 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2088
2093
|
], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2089
2094
|
/* @__PURE__ */ g("span", null, "正确填涂示例"),
|
|
2090
2095
|
/* @__PURE__ */ g("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2091
|
-
], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */
|
|
2096
|
+
], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ V({
|
|
2092
2097
|
__name: "notice",
|
|
2093
2098
|
props: {
|
|
2094
2099
|
layout: {},
|
|
@@ -2112,10 +2117,10 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2112
2117
|
a.layout.noteFlag ? (s(), d("div", Ca, [
|
|
2113
2118
|
$a,
|
|
2114
2119
|
g("div", Sa, [
|
|
2115
|
-
(s(!0), d(M, null,
|
|
2120
|
+
(s(!0), d(M, null, X(o.value, (r) => (s(), d("p", {
|
|
2116
2121
|
key: r,
|
|
2117
2122
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2118
|
-
},
|
|
2123
|
+
}, j(r), 1))), 128))
|
|
2119
2124
|
])
|
|
2120
2125
|
])) : P("", !0),
|
|
2121
2126
|
a.layout.lackFlag ? (s(), d("div", {
|
|
@@ -2125,7 +2130,7 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2125
2130
|
g("p", Ta, [
|
|
2126
2131
|
Ia,
|
|
2127
2132
|
g("span", La, [
|
|
2128
|
-
|
|
2133
|
+
U(_e, { name: "rightArrow" }),
|
|
2129
2134
|
g("span", {
|
|
2130
2135
|
class: "flex items-center leading-4",
|
|
2131
2136
|
"data-xine": x(C).lack
|
|
@@ -2163,10 +2168,10 @@ const za = {
|
|
|
2163
2168
|
}, Ha = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col" }, [
|
|
2164
2169
|
/* @__PURE__ */ g("p", { class: "flex-1" }, "题号"),
|
|
2165
2170
|
/* @__PURE__ */ g("p", { class: "flex-1 border-t" }, "得分")
|
|
2166
|
-
], -1), Ra = { class: "flex-1" },
|
|
2171
|
+
], -1), Ra = { class: "flex-1" }, Wa = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Ga = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2167
2172
|
/* @__PURE__ */ g("p", { class: "flex-1" }, "总分"),
|
|
2168
2173
|
/* @__PURE__ */ g("p", { class: "flex-1 border-t" })
|
|
2169
|
-
], -1), Ya = /* @__PURE__ */
|
|
2174
|
+
], -1), Ya = /* @__PURE__ */ V({
|
|
2170
2175
|
__name: "scoreTable",
|
|
2171
2176
|
props: {
|
|
2172
2177
|
layout: {},
|
|
@@ -2176,17 +2181,17 @@ const za = {
|
|
|
2176
2181
|
const t = e, o = A(() => t.data.filter((a) => a.problemType));
|
|
2177
2182
|
return (a, n) => a.layout.scoreFlag ? (s(), d("ul", za, [
|
|
2178
2183
|
Ha,
|
|
2179
|
-
(s(!0), d(M, null,
|
|
2184
|
+
(s(!0), d(M, null, X(o.value, (r, l) => (s(), d("li", {
|
|
2180
2185
|
key: r.id,
|
|
2181
2186
|
class: "flex-1 flex flex-col border-l"
|
|
2182
2187
|
}, [
|
|
2183
|
-
g("p", Ra,
|
|
2184
|
-
|
|
2188
|
+
g("p", Ra, j(x(Pt)(l)), 1),
|
|
2189
|
+
Wa
|
|
2185
2190
|
]))), 128)),
|
|
2186
|
-
|
|
2191
|
+
Ga
|
|
2187
2192
|
])) : P("", !0);
|
|
2188
2193
|
}
|
|
2189
|
-
}), qa = /* @__PURE__ */
|
|
2194
|
+
}), qa = /* @__PURE__ */ V({
|
|
2190
2195
|
__name: "columnDom",
|
|
2191
2196
|
props: {
|
|
2192
2197
|
column: {},
|
|
@@ -2195,7 +2200,7 @@ const za = {
|
|
|
2195
2200
|
styleInfo: {}
|
|
2196
2201
|
},
|
|
2197
2202
|
setup(e, { expose: t }) {
|
|
2198
|
-
const o = e, a =
|
|
2203
|
+
const o = e, a = q(), n = q();
|
|
2199
2204
|
t({ col: a, colView: n });
|
|
2200
2205
|
const r = A(() => {
|
|
2201
2206
|
const { top: c, width: u, height: m, left: O } = o.styleInfo;
|
|
@@ -2215,24 +2220,24 @@ const za = {
|
|
|
2215
2220
|
c.showColBorder ? (s(), d("div", {
|
|
2216
2221
|
key: 0,
|
|
2217
2222
|
class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
|
|
2218
|
-
style:
|
|
2223
|
+
style: G(r.value)
|
|
2219
2224
|
}, [
|
|
2220
2225
|
g("span", {
|
|
2221
2226
|
class: "absolute border border-black",
|
|
2222
|
-
style:
|
|
2227
|
+
style: G(l.value)
|
|
2223
2228
|
}, null, 4)
|
|
2224
2229
|
], 6)) : P("", !0),
|
|
2225
2230
|
g("div", {
|
|
2226
2231
|
class: "absolute overflow-hidden",
|
|
2227
2232
|
ref_key: "colView",
|
|
2228
2233
|
ref: n,
|
|
2229
|
-
style:
|
|
2234
|
+
style: G(c.styleInfo)
|
|
2230
2235
|
}, [
|
|
2231
2236
|
g("div", {
|
|
2232
2237
|
ref_key: "col",
|
|
2233
2238
|
ref: a,
|
|
2234
2239
|
class: "overflow-hidden __col__",
|
|
2235
|
-
style:
|
|
2240
|
+
style: G({ height: c.styleInfo.contentHeight })
|
|
2236
2241
|
}, [
|
|
2237
2242
|
it(c.$slots, "default", {}, void 0, !0)
|
|
2238
2243
|
], 4)
|
|
@@ -2240,9 +2245,9 @@ const za = {
|
|
|
2240
2245
|
], 64));
|
|
2241
2246
|
}
|
|
2242
2247
|
});
|
|
2243
|
-
const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(),
|
|
2248
|
+
const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), We(), 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 = [
|
|
2244
2249
|
ja
|
|
2245
|
-
], Va = ["data-xine"], Ja = /* @__PURE__ */
|
|
2250
|
+
], Va = ["data-xine"], Ja = /* @__PURE__ */ V({
|
|
2246
2251
|
__name: "bind",
|
|
2247
2252
|
props: {
|
|
2248
2253
|
currentPage: {},
|
|
@@ -2251,10 +2256,10 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2251
2256
|
isBindFlag: { type: Boolean }
|
|
2252
2257
|
},
|
|
2253
2258
|
setup(e) {
|
|
2254
|
-
const t =
|
|
2259
|
+
const t = q(), o = ["学校", "班级", "准考证号", "姓名"];
|
|
2255
2260
|
return (a, n) => a.isBindFlag ? (s(), d("div", {
|
|
2256
2261
|
key: 0,
|
|
2257
|
-
style:
|
|
2262
|
+
style: G({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
|
|
2258
2263
|
class: te([a.currentPage % 2 && "right_view"]),
|
|
2259
2264
|
ref_key: "view",
|
|
2260
2265
|
ref: t
|
|
@@ -2262,17 +2267,17 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2262
2267
|
a.currentPage % 2 ? (s(), d("div", {
|
|
2263
2268
|
key: 0,
|
|
2264
2269
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2265
|
-
style:
|
|
2270
|
+
style: G({ width: `${a.height - 20}px`, height: `${a.width}px` })
|
|
2266
2271
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
|
|
2267
2272
|
key: 1,
|
|
2268
2273
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2269
|
-
style:
|
|
2274
|
+
style: G({ width: `${a.height - 20}px` })
|
|
2270
2275
|
}, [
|
|
2271
|
-
(s(), d(M, null,
|
|
2276
|
+
(s(), d(M, null, X(o, (r) => g("p", {
|
|
2272
2277
|
key: r,
|
|
2273
2278
|
class: "flex items-end flex-1 mr-4"
|
|
2274
2279
|
}, [
|
|
2275
|
-
g("span", null,
|
|
2280
|
+
g("span", null, j(r), 1),
|
|
2276
2281
|
Ua
|
|
2277
2282
|
])), 64)),
|
|
2278
2283
|
g("div", {
|
|
@@ -2286,7 +2291,7 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2286
2291
|
], 6)) : P("", !0);
|
|
2287
2292
|
}
|
|
2288
2293
|
});
|
|
2289
|
-
const Za = /* @__PURE__ */ ce(Ja, [["__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__ */
|
|
2294
|
+
const Za = /* @__PURE__ */ ce(Ja, [["__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__ */ V({
|
|
2290
2295
|
__name: "simple",
|
|
2291
2296
|
props: {
|
|
2292
2297
|
item: {},
|
|
@@ -2306,13 +2311,13 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2306
2311
|
class: "flex h-full divide-x divide-solid",
|
|
2307
2312
|
"data-xine": x(C).score_base
|
|
2308
2313
|
}, [
|
|
2309
|
-
(s(!0), d(M, null,
|
|
2314
|
+
(s(!0), d(M, null, X(a.value, (l, i) => (s(), d("li", {
|
|
2310
2315
|
class: "flex items-center justify-center relative score_line",
|
|
2311
|
-
style:
|
|
2316
|
+
style: G({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
|
|
2312
2317
|
"data-xine": x(C).score_item
|
|
2313
2318
|
}, [
|
|
2314
|
-
g("span", il,
|
|
2315
|
-
|
|
2319
|
+
g("span", il, j(l), 1),
|
|
2320
|
+
U(_e, {
|
|
2316
2321
|
class: "p-0",
|
|
2317
2322
|
name: o[i]
|
|
2318
2323
|
}, null, 8, ["name"])
|
|
@@ -2320,7 +2325,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2320
2325
|
], 8, nl)
|
|
2321
2326
|
], 8, ll));
|
|
2322
2327
|
}
|
|
2323
|
-
}), cl = ["data-block", "data-xine"], dl = ["data-xine"], ul = ["data-xine"], tt = /* @__PURE__ */
|
|
2328
|
+
}), cl = ["data-block", "data-xine"], dl = ["data-xine"], ul = ["data-xine"], tt = /* @__PURE__ */ V({
|
|
2324
2329
|
__name: "index",
|
|
2325
2330
|
props: {
|
|
2326
2331
|
item: {},
|
|
@@ -2328,7 +2333,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2328
2333
|
static: { type: Boolean }
|
|
2329
2334
|
},
|
|
2330
2335
|
setup(e) {
|
|
2331
|
-
const t = e, o =
|
|
2336
|
+
const t = e, o = q(), a = q(!1), n = q(!1), r = q(!1), l = q([]), i = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2332
2337
|
Ae(() => [t.item.score], () => c()), Ve(() => {
|
|
2333
2338
|
c();
|
|
2334
2339
|
});
|
|
@@ -2347,7 +2352,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2347
2352
|
});
|
|
2348
2353
|
}, u = (m) => t.item.hasHalfScore ? [C.score_half, C.score_base, C.score_tenbit][l.value.length - m - 1] : [C.score_base, C.score_tenbit][l.value.length - m - 1];
|
|
2349
2354
|
return (m, O) => m.layout.handReadFlag ? (s(), d(M, { key: 0 }, [
|
|
2350
|
-
m.layout.simpleScoreBarFlag && !m.static ? (s(),
|
|
2355
|
+
m.layout.simpleScoreBarFlag && !m.static ? (s(), Q(rl, {
|
|
2351
2356
|
key: 0,
|
|
2352
2357
|
item: m.item,
|
|
2353
2358
|
layout: m.layout
|
|
@@ -2359,19 +2364,19 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2359
2364
|
"data-block": x(we),
|
|
2360
2365
|
"data-xine": x(C).score
|
|
2361
2366
|
}, [
|
|
2362
|
-
(s(!0), d(M, null,
|
|
2367
|
+
(s(!0), d(M, null, X(l.value, (h, E) => (s(), d("ul", {
|
|
2363
2368
|
class: "flex divide-x divide-solid",
|
|
2364
2369
|
"data-xine": u(E)
|
|
2365
2370
|
}, [
|
|
2366
|
-
(s(!0), d(M, null,
|
|
2371
|
+
(s(!0), d(M, null, X(h, (J) => (s(), d("li", {
|
|
2367
2372
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2368
|
-
style:
|
|
2369
|
-
"data-xine":
|
|
2373
|
+
style: G({ width: `${x(je)[m.layout.scoreLineSize].value}px` }),
|
|
2374
|
+
"data-xine": J.toString() ? x(C).score_item : ""
|
|
2370
2375
|
}, [
|
|
2371
2376
|
g("span", {
|
|
2372
2377
|
class: te(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
|
|
2373
|
-
},
|
|
2374
|
-
i.value &&
|
|
2378
|
+
}, j(m.layout.minusFlag && J.toString().length && !i.value ? "-" : "") + j(J), 3),
|
|
2379
|
+
i.value && J.toString().length ? (s(), Q(_e, {
|
|
2375
2380
|
key: 0,
|
|
2376
2381
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2377
2382
|
name: m.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
@@ -2382,7 +2387,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2382
2387
|
], 8, cl))
|
|
2383
2388
|
], 64)) : P("", !0);
|
|
2384
2389
|
}
|
|
2385
|
-
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(),
|
|
2390
|
+
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), We(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ V({
|
|
2386
2391
|
__name: "writeScore",
|
|
2387
2392
|
props: {
|
|
2388
2393
|
info: {},
|
|
@@ -2395,7 +2400,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2395
2400
|
}, [
|
|
2396
2401
|
pl,
|
|
2397
2402
|
ml,
|
|
2398
|
-
|
|
2403
|
+
U(tt, {
|
|
2399
2404
|
item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
|
|
2400
2405
|
layout: t.layout,
|
|
2401
2406
|
static: ""
|
|
@@ -2403,7 +2408,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2403
2408
|
], 8, hl));
|
|
2404
2409
|
}
|
|
2405
2410
|
});
|
|
2406
|
-
const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */
|
|
2411
|
+
const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ V({
|
|
2407
2412
|
__name: "index",
|
|
2408
2413
|
props: {
|
|
2409
2414
|
data: {}
|
|
@@ -2416,7 +2421,7 @@ const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2416
2421
|
}, null, 8, fl));
|
|
2417
2422
|
}
|
|
2418
2423
|
});
|
|
2419
|
-
const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */
|
|
2424
|
+
const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ V({
|
|
2420
2425
|
__name: "notArea",
|
|
2421
2426
|
props: {
|
|
2422
2427
|
item: {}
|
|
@@ -2427,19 +2432,19 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2427
2432
|
"data-tag": t.item.__tag__,
|
|
2428
2433
|
"data-block": x(dt)
|
|
2429
2434
|
}, [
|
|
2430
|
-
|
|
2435
|
+
U(Ne, {
|
|
2431
2436
|
"data-content": t.item.id,
|
|
2432
2437
|
data: t.item.content
|
|
2433
2438
|
}, null, 8, ["data-content", "data"])
|
|
2434
2439
|
], 8, bl));
|
|
2435
2440
|
}
|
|
2436
|
-
}), wl = (e) => (Re("data-v-257ae24a"), e = e(),
|
|
2441
|
+
}), wl = (e) => (Re("data-v-257ae24a"), e = e(), We(), e), xl = ["data-tag", "data-block"], kl = {
|
|
2437
2442
|
key: 0,
|
|
2438
2443
|
class: "flex-shrink-0"
|
|
2439
2444
|
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
|
|
2440
2445
|
key: 1,
|
|
2441
2446
|
class: "indent-2"
|
|
2442
|
-
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ g("span", null, "我选答的题目是:", -1)), Ml = { class: "flex items-center" }, Pl = ["data-xine"], Dl = /* @__PURE__ */
|
|
2447
|
+
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ g("span", null, "我选答的题目是:", -1)), Ml = { class: "flex items-center" }, Pl = ["data-xine"], Dl = /* @__PURE__ */ V({
|
|
2443
2448
|
__name: "index",
|
|
2444
2449
|
props: {
|
|
2445
2450
|
item: {},
|
|
@@ -2459,23 +2464,23 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2459
2464
|
"data-block": x(we),
|
|
2460
2465
|
onDblclick: c[3] || (c[3] = Le((u) => t("dbclick", i.item), ["stop"]))
|
|
2461
2466
|
}, [
|
|
2462
|
-
!i.layout.listIndexFlag && i.item.sub ? (s(), d("span", kl,
|
|
2467
|
+
!i.layout.listIndexFlag && i.item.sub ? (s(), d("span", kl, j(x(Pt)(i.item.sub - 1)) + "、", 1)) : P("", !0),
|
|
2463
2468
|
g("div", null, [
|
|
2464
2469
|
g("div", Cl, [
|
|
2465
|
-
g("span", null,
|
|
2466
|
-
i.item.desc ? (s(), d("span", $l, "(" +
|
|
2467
|
-
i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" +
|
|
2470
|
+
g("span", null, j(i.item.name), 1),
|
|
2471
|
+
i.item.desc ? (s(), d("span", $l, "(" + j(i.item.desc) + ")", 1)) : P("", !0),
|
|
2472
|
+
i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" + j(r.value) + "题,共" + j(i.item.totalScore) + "分)", 1)) : P("", !0)
|
|
2468
2473
|
]),
|
|
2469
2474
|
a.value || n.value ? (s(), d("div", Tl, [
|
|
2470
|
-
a.value ? (s(), d("p", Il, "请在以下" +
|
|
2475
|
+
a.value ? (s(), d("p", Il, "请在以下" + j(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2471
2476
|
g("p", {
|
|
2472
2477
|
class: "flex flex-wrap",
|
|
2473
2478
|
"data-block": x(we),
|
|
2474
2479
|
"data-xine": x(C).choice + i.item.id
|
|
2475
2480
|
}, [
|
|
2476
2481
|
El,
|
|
2477
|
-
(s(!0), d(M, null,
|
|
2478
|
-
g("span", null,
|
|
2482
|
+
(s(!0), d(M, null, X(l.value, (u, m) => (s(), d("span", Ml, [
|
|
2483
|
+
g("span", null, j(u), 1),
|
|
2479
2484
|
g("span", {
|
|
2480
2485
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2481
2486
|
"data-xine": x(C).fill
|
|
@@ -2484,7 +2489,7 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2484
2489
|
], 8, Fl)
|
|
2485
2490
|
])) : P("", !0)
|
|
2486
2491
|
])
|
|
2487
|
-
], 42, xl)) : (s(),
|
|
2492
|
+
], 42, xl)) : (s(), Q(vl, {
|
|
2488
2493
|
key: 0,
|
|
2489
2494
|
class: te([i.isActive && "border-current", i.isFirst && "mt-9"]),
|
|
2490
2495
|
item: i.item,
|
|
@@ -2497,7 +2502,7 @@ const Ct = /* @__PURE__ */ ce(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
|
|
|
2497
2502
|
function Nl(e, t) {
|
|
2498
2503
|
return null;
|
|
2499
2504
|
}
|
|
2500
|
-
const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */
|
|
2505
|
+
const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */ V({
|
|
2501
2506
|
__name: "sheet",
|
|
2502
2507
|
props: {
|
|
2503
2508
|
item: {},
|
|
@@ -2508,12 +2513,12 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2508
2513
|
class: "flex items-center red_sheet",
|
|
2509
2514
|
"data-block": x(we)
|
|
2510
2515
|
}, [
|
|
2511
|
-
(s(!0), d(M, null,
|
|
2516
|
+
(s(!0), d(M, null, X(t.item.optList, (a, n) => (s(), d("span", {
|
|
2512
2517
|
class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
|
|
2513
|
-
style:
|
|
2518
|
+
style: G({ width: `${x(Te)[t.layout.fillSize].value + 1}px`, height: `${x(Te)[t.layout.fillSize].height + 1}px` }),
|
|
2514
2519
|
"data-xine": x(C).fill + n
|
|
2515
2520
|
}, [
|
|
2516
|
-
|
|
2521
|
+
U(_e, {
|
|
2517
2522
|
width: 1,
|
|
2518
2523
|
name: x(wt)[n]
|
|
2519
2524
|
}, null, 8, ["name"])
|
|
@@ -2521,14 +2526,14 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2521
2526
|
], 8, Ol));
|
|
2522
2527
|
}
|
|
2523
2528
|
}), Rl = {};
|
|
2524
|
-
function
|
|
2529
|
+
function Wl(e, t) {
|
|
2525
2530
|
return null;
|
|
2526
2531
|
}
|
|
2527
|
-
const
|
|
2532
|
+
const Gl = /* @__PURE__ */ ce(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
|
|
2528
2533
|
Kl
|
|
2529
2534
|
], Xl = ["data-xine"], Vl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
|
|
2530
2535
|
Vl
|
|
2531
|
-
], Zl = /* @__PURE__ */
|
|
2536
|
+
], Zl = /* @__PURE__ */ V({
|
|
2532
2537
|
__name: "sheet",
|
|
2533
2538
|
props: {
|
|
2534
2539
|
item: {},
|
|
@@ -2546,20 +2551,20 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2546
2551
|
a.item.style[x(y)[a.layout.mode].decide_a] === x(T).decide_1 ? (s(), d(M, { key: 0 }, [
|
|
2547
2552
|
g("span", {
|
|
2548
2553
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2549
|
-
style:
|
|
2554
|
+
style: G(o.value),
|
|
2550
2555
|
"data-xine": x(C).fill + "0"
|
|
2551
2556
|
}, [
|
|
2552
|
-
|
|
2557
|
+
U(_e, {
|
|
2553
2558
|
name: "right",
|
|
2554
2559
|
width: 1
|
|
2555
2560
|
})
|
|
2556
2561
|
], 14, ql),
|
|
2557
2562
|
g("span", {
|
|
2558
2563
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2559
|
-
style:
|
|
2564
|
+
style: G(o.value),
|
|
2560
2565
|
"data-xine": x(C).fill + "1"
|
|
2561
2566
|
}, [
|
|
2562
|
-
|
|
2567
|
+
U(_e, {
|
|
2563
2568
|
name: "wrong",
|
|
2564
2569
|
width: 1
|
|
2565
2570
|
})
|
|
@@ -2567,12 +2572,12 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2567
2572
|
], 64)) : (s(), d(M, { key: 1 }, [
|
|
2568
2573
|
g("span", {
|
|
2569
2574
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2570
|
-
style:
|
|
2575
|
+
style: G(o.value),
|
|
2571
2576
|
"data-xine": x(C).fill + "0"
|
|
2572
2577
|
}, jl, 14, Ul),
|
|
2573
2578
|
g("span", {
|
|
2574
2579
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2575
|
-
style:
|
|
2580
|
+
style: G(o.value),
|
|
2576
2581
|
"data-xine": x(C).fill + "1"
|
|
2577
2582
|
}, Jl, 14, Xl)
|
|
2578
2583
|
], 64))
|
|
@@ -2585,7 +2590,7 @@ function tn(e, t) {
|
|
|
2585
2590
|
const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-xine"], ln = {
|
|
2586
2591
|
key: 0,
|
|
2587
2592
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2588
|
-
}, nn = { key: 1 }, sn = /* @__PURE__ */
|
|
2593
|
+
}, nn = { key: 1 }, sn = /* @__PURE__ */ V({
|
|
2589
2594
|
__name: "index",
|
|
2590
2595
|
props: {
|
|
2591
2596
|
item: {},
|
|
@@ -2601,8 +2606,8 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2601
2606
|
"data-xine": x(C).fill
|
|
2602
2607
|
}, [
|
|
2603
2608
|
a.showScoreCn ? (s(), d("span", ln, [
|
|
2604
|
-
g("span", null,
|
|
2605
|
-
o.value ? (s(),
|
|
2609
|
+
g("span", null, j(a.layout.minusFlag && !o.value ? "-" : "") + j(a.item.score), 1),
|
|
2610
|
+
o.value ? (s(), Q(_e, {
|
|
2606
2611
|
key: 0,
|
|
2607
2612
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2608
2613
|
name: a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
@@ -2611,7 +2616,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2611
2616
|
])) : P("", !0)
|
|
2612
2617
|
], 8, an)) : P("", !0);
|
|
2613
2618
|
}
|
|
2614
|
-
}), rn = ["data-xine"], cn = /* @__PURE__ */
|
|
2619
|
+
}), rn = ["data-xine"], cn = /* @__PURE__ */ V({
|
|
2615
2620
|
__name: "sheet",
|
|
2616
2621
|
props: {
|
|
2617
2622
|
item: {},
|
|
@@ -2622,10 +2627,10 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2622
2627
|
return (o, a) => (s(), d(M, null, [
|
|
2623
2628
|
g("div", {
|
|
2624
2629
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2625
|
-
style:
|
|
2630
|
+
style: G({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
2626
2631
|
"data-xine": x(C).fill_line
|
|
2627
2632
|
}, null, 12, rn),
|
|
2628
|
-
o.layout.handReadFlag ? (s(),
|
|
2633
|
+
o.layout.handReadFlag ? (s(), Q(sn, {
|
|
2629
2634
|
key: 0,
|
|
2630
2635
|
item: o.item,
|
|
2631
2636
|
layout: o.layout,
|
|
@@ -2637,7 +2642,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2637
2642
|
function un(e, t) {
|
|
2638
2643
|
return null;
|
|
2639
2644
|
}
|
|
2640
|
-
const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */
|
|
2645
|
+
const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */ V({
|
|
2641
2646
|
__name: "sheet",
|
|
2642
2647
|
props: {
|
|
2643
2648
|
item: {},
|
|
@@ -2655,13 +2660,13 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2655
2660
|
}, [
|
|
2656
2661
|
it(t.$slots, "default"),
|
|
2657
2662
|
g("div", mn, [
|
|
2658
|
-
|
|
2663
|
+
U(tt, {
|
|
2659
2664
|
item: t.item,
|
|
2660
2665
|
layout: t.layout
|
|
2661
2666
|
}, null, 8, ["item", "layout"])
|
|
2662
2667
|
])
|
|
2663
2668
|
], 8, pn)),
|
|
2664
|
-
|
|
2669
|
+
U(Ne, {
|
|
2665
2670
|
"data-area": t.item.id,
|
|
2666
2671
|
data: t.item.answerArea
|
|
2667
2672
|
}, null, 8, ["data-area", "data"])
|
|
@@ -2671,7 +2676,7 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2671
2676
|
function fn(e, t) {
|
|
2672
2677
|
return null;
|
|
2673
2678
|
}
|
|
2674
|
-
const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */
|
|
2679
|
+
const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ V({
|
|
2675
2680
|
__name: "sheet",
|
|
2676
2681
|
props: {
|
|
2677
2682
|
item: {},
|
|
@@ -2680,7 +2685,7 @@ const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div
|
|
|
2680
2685
|
setup(e) {
|
|
2681
2686
|
return (t, o) => (s(), d(M, null, [
|
|
2682
2687
|
bn,
|
|
2683
|
-
|
|
2688
|
+
U(tt, {
|
|
2684
2689
|
item: t.item,
|
|
2685
2690
|
layout: t.layout
|
|
2686
2691
|
}, null, 8, ["item", "layout"])
|
|
@@ -2706,14 +2711,14 @@ const Mn = /* @__PURE__ */ ce(Fn, [["render", En]]), Pn = {};
|
|
|
2706
2711
|
function Dn(e, t) {
|
|
2707
2712
|
return null;
|
|
2708
2713
|
}
|
|
2709
|
-
const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-
|
|
2714
|
+
const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn = ["data-block"], On = { class: "flex-1 flex justify-end overflow-hidden" }, zn = ["data-block", "data-guide"], Hn = ["data-block", "data-size"], Rn = ["data-block"], Wn = /* @__PURE__ */ V({
|
|
2710
2715
|
__name: "sheet",
|
|
2711
2716
|
props: {
|
|
2712
2717
|
item: {},
|
|
2713
2718
|
layout: {}
|
|
2714
2719
|
},
|
|
2715
2720
|
setup(e) {
|
|
2716
|
-
const t = e, o =
|
|
2721
|
+
const t = e, o = q(0), a = q({}), n = q(), r = q(), l = q([]), i = A(() => {
|
|
2717
2722
|
const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, O.value.length, 0);
|
|
2718
2723
|
return h ? Math.ceil(h / (o.value || h)) : 0;
|
|
2719
2724
|
}), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), u = A(() => ({
|
|
@@ -2727,19 +2732,20 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2727
2732
|
o.value = Math.floor(n.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
2728
2733
|
if (!n.value)
|
|
2729
2734
|
return;
|
|
2730
|
-
const
|
|
2735
|
+
const L = n.value.getBoundingClientRect(), D = r.value[0].getBoundingClientRect();
|
|
2731
2736
|
a.value = {
|
|
2732
|
-
left: `${
|
|
2733
|
-
top: `${
|
|
2737
|
+
left: `${D.left - L.left}px`,
|
|
2738
|
+
top: `${D.top - L.top}px`
|
|
2734
2739
|
};
|
|
2735
2740
|
}, 20);
|
|
2736
2741
|
});
|
|
2737
|
-
const h =
|
|
2738
|
-
l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1,
|
|
2742
|
+
const h = parseInt(t.item.style[y[t.layout.mode].art_c]), E = t.item.style[y[t.layout.mode].art_e], J = Math.floor(h / E), Z = Math.round(J / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * E;
|
|
2743
|
+
l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, J) - 1 || 0).keys()].map((L) => (L + 1) * Z).concat(h / E < 2 ? E : h).filter((L) => L);
|
|
2739
2744
|
}), (h, E) => (s(), d("div", {
|
|
2740
2745
|
class: "w-full relative min-h-[10rem]",
|
|
2741
2746
|
ref_key: "view",
|
|
2742
|
-
ref: n
|
|
2747
|
+
ref: n,
|
|
2748
|
+
"data-viewid": h.item.id
|
|
2743
2749
|
}, [
|
|
2744
2750
|
h.item.chunk ? P("", !0) : (s(), d("div", {
|
|
2745
2751
|
key: 0,
|
|
@@ -2747,14 +2753,14 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2747
2753
|
"data-block": x(we)
|
|
2748
2754
|
}, [
|
|
2749
2755
|
it(h.$slots, "default"),
|
|
2750
|
-
g("div",
|
|
2751
|
-
|
|
2756
|
+
g("div", On, [
|
|
2757
|
+
U(tt, {
|
|
2752
2758
|
item: h.item,
|
|
2753
2759
|
layout: h.layout
|
|
2754
2760
|
}, null, 8, ["item", "layout"])
|
|
2755
2761
|
])
|
|
2756
|
-
], 8,
|
|
2757
|
-
h.item.beforeArt && !h.item.startAnswerLen ? (s(),
|
|
2762
|
+
], 8, Bn)),
|
|
2763
|
+
h.item.beforeArt && !h.item.startAnswerLen ? (s(), Q(Ne, {
|
|
2758
2764
|
key: 1,
|
|
2759
2765
|
data: h.item.beforeArt,
|
|
2760
2766
|
"data-bart": h.item.id,
|
|
@@ -2765,39 +2771,39 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2765
2771
|
"data-block": x(Ee),
|
|
2766
2772
|
"data-guide": h.item.id,
|
|
2767
2773
|
class: te(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
|
|
2768
|
-
style:
|
|
2769
|
-
},
|
|
2770
|
-
(s(!0), d(M, null,
|
|
2774
|
+
style: G({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
|
|
2775
|
+
}, j(h.item.beforeGuide), 15, zn)) : P("", !0),
|
|
2776
|
+
(s(!0), d(M, null, X(i.value, (J, Z) => (s(), d("p", {
|
|
2771
2777
|
ref_for: !0,
|
|
2772
2778
|
ref_key: "line",
|
|
2773
2779
|
ref: r,
|
|
2774
2780
|
class: te(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
|
|
2775
2781
|
"data-block": x(we),
|
|
2776
2782
|
"data-size": h.item.startAnswerLen + (Z + 1) * o.value,
|
|
2777
|
-
style:
|
|
2783
|
+
style: G(u.value)
|
|
2778
2784
|
}, [
|
|
2779
|
-
h.item.artBlock ? (s(!0), d(M, { key: 0 },
|
|
2785
|
+
h.item.artBlock ? (s(!0), d(M, { key: 0 }, X(o.value, (L, D) => (s(), d("span", {
|
|
2780
2786
|
class: te([O.value[Z * o.value + D] && "flex items-center justify-center"]),
|
|
2781
|
-
style:
|
|
2782
|
-
},
|
|
2783
|
-
(s(!0), d(M, null,
|
|
2784
|
-
h.item.startAnswerLen + Z * o.value <
|
|
2787
|
+
style: G(m.value)
|
|
2788
|
+
}, j(O.value[Z * o.value + D]), 7))), 256)) : P("", !0),
|
|
2789
|
+
(s(!0), d(M, null, X(l.value, (L) => (s(), d(M, null, [
|
|
2790
|
+
h.item.startAnswerLen + Z * o.value < L && h.item.startAnswerLen + (Z + 1) * o.value >= L ? (s(), d("span", {
|
|
2785
2791
|
key: 0,
|
|
2786
2792
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2787
|
-
style:
|
|
2793
|
+
style: G({ left: `${(L - h.item.startAnswerLen) % o.value * c.value}px` }),
|
|
2788
2794
|
"data-block": x(Ee)
|
|
2789
|
-
},
|
|
2795
|
+
}, j(L), 13, Rn)) : P("", !0)
|
|
2790
2796
|
], 64))), 256))
|
|
2791
|
-
], 14,
|
|
2792
|
-
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(),
|
|
2797
|
+
], 14, Hn))), 256)),
|
|
2798
|
+
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), Q(Ne, {
|
|
2793
2799
|
key: 3,
|
|
2794
2800
|
data: h.item.afterArt,
|
|
2795
2801
|
"data-aart": h.item.id,
|
|
2796
2802
|
class: "mt-2 indent-[2em]"
|
|
2797
2803
|
}, null, 8, ["data", "data-aart"])) : P("", !0)
|
|
2798
|
-
],
|
|
2804
|
+
], 8, Nn));
|
|
2799
2805
|
}
|
|
2800
|
-
}), Gn = ["data-block"],
|
|
2806
|
+
}), Gn = ["data-block"], Yn = /* @__PURE__ */ V({
|
|
2801
2807
|
__name: "index",
|
|
2802
2808
|
props: {
|
|
2803
2809
|
item: {},
|
|
@@ -2809,16 +2815,16 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2809
2815
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
2810
2816
|
"data-block": x(dt)
|
|
2811
2817
|
}, [
|
|
2812
|
-
|
|
2818
|
+
U(Ne, {
|
|
2813
2819
|
"data-content": o.item.id,
|
|
2814
2820
|
data: o.item.content
|
|
2815
2821
|
}, null, 8, ["data-content", "data"])
|
|
2816
2822
|
], 8, Gn));
|
|
2817
2823
|
}
|
|
2818
|
-
}),
|
|
2824
|
+
}), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, Kn = { key: 2 }, jn = {
|
|
2819
2825
|
key: 3,
|
|
2820
2826
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
2821
|
-
},
|
|
2827
|
+
}, Xn = /* @__PURE__ */ V({
|
|
2822
2828
|
__name: "index",
|
|
2823
2829
|
props: {
|
|
2824
2830
|
sub: {},
|
|
@@ -2829,22 +2835,22 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2829
2835
|
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` : "");
|
|
2830
2836
|
return (n, r) => (s(), d("span", {
|
|
2831
2837
|
class: te(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
|
|
2832
|
-
style:
|
|
2838
|
+
style: G({ width: a.value }),
|
|
2833
2839
|
"data-block": x(Ee)
|
|
2834
2840
|
}, [
|
|
2835
|
-
(s(!0), d(M, null,
|
|
2836
|
-
i ? (s(), d("span",
|
|
2837
|
-
l[0] ? (s(), d("span",
|
|
2838
|
-
l[1] ? (s(), d("span",
|
|
2839
|
-
l[2] ? (s(), d("span",
|
|
2841
|
+
(s(!0), d(M, null, X(o.value, (l, i) => (s(), d(M, null, [
|
|
2842
|
+
i ? (s(), d("span", Qn, " - ")) : P("", !0),
|
|
2843
|
+
l[0] ? (s(), d("span", Un, j(l[0]), 1)) : P("", !0),
|
|
2844
|
+
l[1] ? (s(), d("span", Kn, "(" + j(l[1]) + ")", 1)) : P("", !0),
|
|
2845
|
+
l[2] ? (s(), d("span", jn, j(l[2]), 1)) : P("", !0)
|
|
2840
2846
|
], 64))), 256))
|
|
2841
|
-
], 14,
|
|
2847
|
+
], 14, qn));
|
|
2842
2848
|
}
|
|
2843
|
-
}),
|
|
2849
|
+
}), Vn = {
|
|
2844
2850
|
components: {
|
|
2845
2851
|
choice: Bl,
|
|
2846
2852
|
choiceSheet: Hl,
|
|
2847
|
-
decide:
|
|
2853
|
+
decide: Gl,
|
|
2848
2854
|
decideSheet: Zl,
|
|
2849
2855
|
fill: on,
|
|
2850
2856
|
fillSheet: cn,
|
|
@@ -2857,9 +2863,9 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2857
2863
|
synthesis: Ln,
|
|
2858
2864
|
synthesisSheet: Mn,
|
|
2859
2865
|
art: An,
|
|
2860
|
-
artSheet:
|
|
2861
|
-
notArea:
|
|
2862
|
-
Sub:
|
|
2866
|
+
artSheet: Wn,
|
|
2867
|
+
notArea: Yn,
|
|
2868
|
+
Sub: Xn
|
|
2863
2869
|
},
|
|
2864
2870
|
props: {
|
|
2865
2871
|
data: {
|
|
@@ -2888,7 +2894,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2888
2894
|
dbclick: null
|
|
2889
2895
|
},
|
|
2890
2896
|
setup(e, { emit: t }) {
|
|
2891
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", a = Object.values(Ft), n =
|
|
2897
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", a = Object.values(Ft), n = q(""), r = A(() => {
|
|
2892
2898
|
const _ = o ? {
|
|
2893
2899
|
choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2894
2900
|
fillSheet: [p.fill, p.fill_english]
|
|
@@ -2959,7 +2965,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2959
2965
|
ComputPolymerStyle: (_) => {
|
|
2960
2966
|
var he, se;
|
|
2961
2967
|
let k = {};
|
|
2962
|
-
const w = Math.max(...(_.rawChildren || _.children).map((
|
|
2968
|
+
const w = Math.max(...(_.rawChildren || _.children).map((F) => F.optList.length)) * (Te[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((F) => F.optList.length)) * (Te[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[y[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
|
|
2963
2969
|
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2964
2970
|
case T.choice_1:
|
|
2965
2971
|
_.styleInfo[y[e.layout.mode].choice_b] === T.portrait && (k = {
|
|
@@ -3045,43 +3051,43 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
3045
3051
|
}
|
|
3046
3052
|
};
|
|
3047
3053
|
}
|
|
3048
|
-
},
|
|
3049
|
-
function
|
|
3054
|
+
}, Jn = ["data-block"], Zn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], es = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ts = { key: 0 };
|
|
3055
|
+
function os(e, t, o, a, n, r) {
|
|
3050
3056
|
const l = Ht("Sub");
|
|
3051
|
-
return s(!0), d(M, null,
|
|
3057
|
+
return s(!0), d(M, null, X(a.GroupData, (i) => (s(), d(M, null, [
|
|
3052
3058
|
i.type === "polymer" ? (s(), d("div", {
|
|
3053
3059
|
key: 0,
|
|
3054
3060
|
"data-block": a.ComputBlock(i),
|
|
3055
3061
|
class: te([...a.ComputPolymerCls(i)]),
|
|
3056
|
-
style:
|
|
3062
|
+
style: G(a.ComputPolymerStyle(i))
|
|
3057
3063
|
}, [
|
|
3058
|
-
(s(!0), d(M, null,
|
|
3064
|
+
(s(!0), d(M, null, X(i.children, (c, u) => {
|
|
3059
3065
|
var m;
|
|
3060
3066
|
return s(), d("div", {
|
|
3061
3067
|
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", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3062
|
-
style:
|
|
3068
|
+
style: G(a.ComputPolymerItemStyle(c, u)),
|
|
3063
3069
|
"data-tag": c.__tag__,
|
|
3064
3070
|
"data-block": a.ComputBlock(c),
|
|
3065
3071
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
3066
3072
|
onMouseenter: (O) => a.handleHoverIn(c),
|
|
3067
3073
|
onMouseleave: (O) => a.handleHoverOut(c)
|
|
3068
3074
|
}, [
|
|
3069
|
-
c.problemType ? (s(),
|
|
3075
|
+
c.problemType ? (s(), Q(l, {
|
|
3070
3076
|
key: 0,
|
|
3071
3077
|
sub: c.sub,
|
|
3072
3078
|
isFull: !!a.ModuleTag,
|
|
3073
3079
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0,
|
|
3074
3080
|
class: te(["sub_item", a.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
|
|
3075
3081
|
}, null, 8, ["sub", "isFull", "width", "class"])) : P("", !0),
|
|
3076
|
-
(s(),
|
|
3077
|
-
], 46,
|
|
3082
|
+
(s(), Q(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), null, 16))
|
|
3083
|
+
], 46, Zn);
|
|
3078
3084
|
}), 256))
|
|
3079
|
-
], 14,
|
|
3085
|
+
], 14, Jn)) : (s(!0), d(M, { key: 1 }, X(i.children, (c, u) => {
|
|
3080
3086
|
var m;
|
|
3081
3087
|
return s(), d(M, null, [
|
|
3082
3088
|
g("div", {
|
|
3083
3089
|
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", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3084
|
-
style:
|
|
3090
|
+
style: G(a.ComputStyle(c, u)),
|
|
3085
3091
|
"data-tag": c.__tag__,
|
|
3086
3092
|
"data-block": a.ComputBlock(c),
|
|
3087
3093
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
@@ -3090,15 +3096,15 @@ function ts(e, t, o, a, n, r) {
|
|
|
3090
3096
|
onMouseenter: (O) => a.handleHoverIn(c),
|
|
3091
3097
|
onMouseleave: (O) => a.handleHoverOut(c)
|
|
3092
3098
|
}, [
|
|
3093
|
-
c.problemType && !a.ComputAbs(c) ? (s(),
|
|
3099
|
+
c.problemType && !a.ComputAbs(c) ? (s(), Q(l, {
|
|
3094
3100
|
key: 0,
|
|
3095
3101
|
sub: c.sub,
|
|
3096
3102
|
isFull: !!a.ModuleTag,
|
|
3097
3103
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
|
|
3098
3104
|
}, null, 8, ["sub", "isFull", "width"])) : P("", !0),
|
|
3099
|
-
(s(),
|
|
3105
|
+
(s(), Q(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), {
|
|
3100
3106
|
default: It(() => [
|
|
3101
|
-
|
|
3107
|
+
U(l, {
|
|
3102
3108
|
sub: c.sub,
|
|
3103
3109
|
isFull: !!a.ModuleTag,
|
|
3104
3110
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
|
|
@@ -3106,13 +3112,13 @@ function ts(e, t, o, a, n, r) {
|
|
|
3106
3112
|
]),
|
|
3107
3113
|
_: 2
|
|
3108
3114
|
}, 1040))
|
|
3109
|
-
], 46,
|
|
3110
|
-
c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div",
|
|
3115
|
+
], 46, es),
|
|
3116
|
+
c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) : P("", !0)
|
|
3111
3117
|
], 64);
|
|
3112
3118
|
}), 256))
|
|
3113
3119
|
], 64))), 256);
|
|
3114
3120
|
}
|
|
3115
|
-
const Ye = /* @__PURE__ */ ce(
|
|
3121
|
+
const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as = 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}"]`) || []), ls = (e, t, o) => {
|
|
3116
3122
|
const a = N(le(`${C.item}${e._sub}`, t));
|
|
3117
3123
|
return !(a.top >= o.top + o.height || a.top + a.height < o.top);
|
|
3118
3124
|
}, re = (e, t, o = !1) => !e || !t ? null : {
|
|
@@ -3164,14 +3170,14 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3164
3170
|
xColOffset: Math.round((a.list[0][1].x - a.list[0][0].x - a.list[0][0].width) * Fe),
|
|
3165
3171
|
questionNOList: [...Array(a.list.length).keys()].map((n, r) => r + 1)
|
|
3166
3172
|
};
|
|
3167
|
-
},
|
|
3173
|
+
}, ns = (e) => ({
|
|
3168
3174
|
cardSizeType: po[e.layout.paper],
|
|
3169
3175
|
cardColumnCount: e.layout.column,
|
|
3170
3176
|
cardColumnCount2: e.layout.backColumn,
|
|
3171
3177
|
doubleCard: !0,
|
|
3172
3178
|
paperWidth: Math.round(b[e.layout.paper].width * Fe),
|
|
3173
3179
|
paperHeight: Math.round(b[e.layout.paper].height * Fe)
|
|
3174
|
-
}),
|
|
3180
|
+
}), ss = (e) => {
|
|
3175
3181
|
const t = N(e.pageDom[0]), o = N(e.pageDom[1]), a = (n) => {
|
|
3176
3182
|
var l;
|
|
3177
3183
|
const r = e.layout.backColumn > 2 ? {
|
|
@@ -3202,7 +3208,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3202
3208
|
auxAnchorInfo: a(0),
|
|
3203
3209
|
auxAnchorInfo2: e.pageDom[1] ? a(1) : null
|
|
3204
3210
|
};
|
|
3205
|
-
},
|
|
3211
|
+
}, is = (e) => {
|
|
3206
3212
|
let t = 10;
|
|
3207
3213
|
if (e.pageDom[1]) {
|
|
3208
3214
|
const a = le(`${C.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
@@ -3229,7 +3235,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3229
3235
|
xColOffset: Math.round(t * Fe)
|
|
3230
3236
|
}
|
|
3231
3237
|
];
|
|
3232
|
-
},
|
|
3238
|
+
}, rs = (e) => {
|
|
3233
3239
|
const t = le(C.lack, e.pageDom[0]);
|
|
3234
3240
|
return t ? {
|
|
3235
3241
|
// 固定值
|
|
@@ -3249,10 +3255,10 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3249
3255
|
yRowOffset: 0,
|
|
3250
3256
|
xColOffset: 0
|
|
3251
3257
|
} : null;
|
|
3252
|
-
},
|
|
3258
|
+
}, cs = (e) => {
|
|
3253
3259
|
let t = re(N(le(C.en_code, e.pageDom[0])), N(e.pageDom[0]));
|
|
3254
3260
|
return oe(t);
|
|
3255
|
-
},
|
|
3261
|
+
}, ds = (e) => {
|
|
3256
3262
|
const t = le(C.write_view, e.pageDom[0]);
|
|
3257
3263
|
if (!t)
|
|
3258
3264
|
return null;
|
|
@@ -3269,8 +3275,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3269
3275
|
score: Math.abs(parseFloat(o[n].innerText))
|
|
3270
3276
|
}))
|
|
3271
3277
|
};
|
|
3272
|
-
},
|
|
3273
|
-
const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], a =
|
|
3278
|
+
}, us = (e, t) => {
|
|
3279
|
+
const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], a = as + Nt, n = (r) => parseFloat(r.toFixed(2));
|
|
3274
3280
|
return t.flat().filter((r) => o.includes(r.problemType) && r.colIndex < 2).map((r) => {
|
|
3275
3281
|
switch (r.problemType) {
|
|
3276
3282
|
case p.fill:
|
|
@@ -3318,39 +3324,39 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3318
3324
|
});
|
|
3319
3325
|
}
|
|
3320
3326
|
}).flat();
|
|
3321
|
-
},
|
|
3327
|
+
}, hs = (e, t) => {
|
|
3322
3328
|
let o = 0, a = {};
|
|
3323
3329
|
return [...Array(e.pageDom.length).keys()].map((n) => {
|
|
3324
3330
|
const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
|
|
3325
3331
|
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((l, i) => r + i < t.length).map((l, i) => {
|
|
3326
|
-
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], E = N(h),
|
|
3327
|
-
const D = le(`${C.choice}${
|
|
3332
|
+
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], E = N(h), J = t[r + i].data.map((L) => L.children.filter((D) => D.problemType)).flat(), Z = t[r + i].data.filter((L) => [be.one_choice, be.another_choice].includes(L.problemType) && L.children.length).map((L) => {
|
|
3333
|
+
const D = le(`${C.choice}${L.id}`, m);
|
|
3328
3334
|
return D ? {
|
|
3329
3335
|
id: `${++o}`,
|
|
3330
|
-
baseIndex: parseInt(
|
|
3336
|
+
baseIndex: parseInt(L.children[0]._sub),
|
|
3331
3337
|
position: re(N(D), u),
|
|
3332
|
-
problemType:
|
|
3338
|
+
problemType: L.problemType,
|
|
3333
3339
|
isOneChoice: !0,
|
|
3334
3340
|
optList: $e(C.fill, D).map((v, z) => ({
|
|
3335
3341
|
id: `${o}.${z + 1}`,
|
|
3336
3342
|
position: re(N(v), u)
|
|
3337
3343
|
})).filter((v) => v.position)
|
|
3338
3344
|
} : {};
|
|
3339
|
-
}).filter((
|
|
3340
|
-
return
|
|
3345
|
+
}).filter((L) => L.position);
|
|
3346
|
+
return J.filter((L) => ls(L, m, O)).map((L, D, v) => {
|
|
3341
3347
|
let z = {};
|
|
3342
|
-
a[
|
|
3343
|
-
const ne = le(`${C.item}${
|
|
3344
|
-
switch (
|
|
3348
|
+
a[L._sub] ? a[L._sub] += 1 : a[L._sub] = 1;
|
|
3349
|
+
const ne = le(`${C.item}${L._sub}`, m);
|
|
3350
|
+
switch (L.problemType) {
|
|
3345
3351
|
case p.choice:
|
|
3346
3352
|
case p.choice_english:
|
|
3347
3353
|
case p.choice_multiple:
|
|
3348
3354
|
case p.cloze:
|
|
3349
3355
|
z = {
|
|
3350
|
-
score:
|
|
3351
|
-
isColumn:
|
|
3352
|
-
optList:
|
|
3353
|
-
id: `${
|
|
3356
|
+
score: L.score,
|
|
3357
|
+
isColumn: L.style[y[e.layout.mode].choice_a] !== T.choice_2,
|
|
3358
|
+
optList: L.optList.map((w, R) => ({
|
|
3359
|
+
id: `${L._sub}.${R + 1}`,
|
|
3354
3360
|
position: Pe(le(`${C.fill}${R}`, ne), E, u)
|
|
3355
3361
|
})).filter((w) => w.position)
|
|
3356
3362
|
};
|
|
@@ -3358,7 +3364,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3358
3364
|
case p.decide:
|
|
3359
3365
|
z = {
|
|
3360
3366
|
optList: [0, 1].map((w, R) => ({
|
|
3361
|
-
id: `${
|
|
3367
|
+
id: `${L._sub}.${R}`,
|
|
3362
3368
|
position: Pe(le(`${C.fill}${R}`, ne), E, u)
|
|
3363
3369
|
})).filter((w) => w.position)
|
|
3364
3370
|
};
|
|
@@ -3367,11 +3373,11 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3367
3373
|
case p.fill_english:
|
|
3368
3374
|
const H = $e(C.fill, ne), _ = $e(C.fill_line, ne);
|
|
3369
3375
|
z = {
|
|
3370
|
-
children: [
|
|
3371
|
-
id: B.length > 1 ? `${
|
|
3376
|
+
children: [L.score].flat().map((w, R, B) => ({
|
|
3377
|
+
id: B.length > 1 ? `${L._sub}.${R + 1}` : L._sub,
|
|
3372
3378
|
score: w,
|
|
3373
|
-
problemType:
|
|
3374
|
-
isHiddenContent: !
|
|
3379
|
+
problemType: L.problemType,
|
|
3380
|
+
isHiddenContent: !L.style[y[e.layout.mode].fill_b],
|
|
3375
3381
|
position: Pe(ne, E, u),
|
|
3376
3382
|
scorePosition: Pe(H[R], E, u),
|
|
3377
3383
|
answerPosition: Pe(_[R], E, u)
|
|
@@ -3398,17 +3404,17 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3398
3404
|
};
|
|
3399
3405
|
}
|
|
3400
3406
|
return {
|
|
3401
|
-
id:
|
|
3402
|
-
elId:
|
|
3403
|
-
colIndex: a[
|
|
3404
|
-
problemType:
|
|
3405
|
-
position: Pe(ne, E, u, !1, D === v.length - 1 && [p.slove].includes(
|
|
3407
|
+
id: L._sub,
|
|
3408
|
+
elId: L.id,
|
|
3409
|
+
colIndex: a[L._sub],
|
|
3410
|
+
problemType: L.problemType,
|
|
3411
|
+
position: Pe(ne, E, u, !1, D === v.length - 1 && [p.slove].includes(L.problemType)),
|
|
3406
3412
|
...z
|
|
3407
3413
|
};
|
|
3408
|
-
}).concat(Z).filter((
|
|
3414
|
+
}).concat(Z).filter((L) => L.position);
|
|
3409
3415
|
});
|
|
3410
3416
|
}).map((n) => n.flat());
|
|
3411
|
-
},
|
|
3417
|
+
}, ps = (e) => {
|
|
3412
3418
|
const t = (a = e, n = !1) => ({
|
|
3413
3419
|
// 块位置
|
|
3414
3420
|
sectionPosition: oe(a.position, !0),
|
|
@@ -3517,7 +3523,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3517
3523
|
...t(e, !e.isOneChoice),
|
|
3518
3524
|
...o
|
|
3519
3525
|
};
|
|
3520
|
-
},
|
|
3526
|
+
}, ms = (e, t) => [...Array(e.pageTotal).keys()].map((o) => ({
|
|
3521
3527
|
// 当前页数
|
|
3522
3528
|
pageIndexID: o + 1,
|
|
3523
3529
|
// 保留字段
|
|
@@ -3534,8 +3540,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3534
3540
|
noAnswerTag: !1
|
|
3535
3541
|
}],
|
|
3536
3542
|
// 按题切块信息
|
|
3537
|
-
cardCuttingSectionList: t[o].map((a) =>
|
|
3538
|
-
})),
|
|
3543
|
+
cardCuttingSectionList: t[o].map((a) => ps(a)).flat()
|
|
3544
|
+
})), ys = (e, t) => {
|
|
3539
3545
|
var a;
|
|
3540
3546
|
const o = N(e.pageDom[0]);
|
|
3541
3547
|
return {
|
|
@@ -3563,7 +3569,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3563
3569
|
studentID: {
|
|
3564
3570
|
// 条形码虚线框位置, x, y, width, height
|
|
3565
3571
|
// encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
3566
|
-
encodePictureArea:
|
|
3572
|
+
encodePictureArea: cs(e),
|
|
3567
3573
|
// ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
3568
3574
|
// 固定值
|
|
3569
3575
|
qrCodePosition: null,
|
|
@@ -3583,21 +3589,21 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3583
3589
|
// 哪些面有选做老师布置题的信息,固定值
|
|
3584
3590
|
onlyAssignInfoList: [],
|
|
3585
3591
|
// 页面布局信息
|
|
3586
|
-
layerType:
|
|
3592
|
+
layerType: ns(e),
|
|
3587
3593
|
// 定位点信息
|
|
3588
|
-
...
|
|
3594
|
+
...ss(e),
|
|
3589
3595
|
pottedLineXPos: e.bindWidth ? (a = oe(re(N(le(C.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
|
|
3590
3596
|
// 页码点信息
|
|
3591
|
-
pageSideAnchorsList:
|
|
3597
|
+
pageSideAnchorsList: is(e),
|
|
3592
3598
|
// 缺考标记
|
|
3593
|
-
absenceMark:
|
|
3599
|
+
absenceMark: rs(e),
|
|
3594
3600
|
// 业务数据
|
|
3595
3601
|
oneFullPageCardList: t
|
|
3596
3602
|
};
|
|
3597
|
-
},
|
|
3598
|
-
const { config: t, data: o } = e, a =
|
|
3603
|
+
}, _s = (e) => {
|
|
3604
|
+
const { config: t, data: o } = e, a = ds(t), n = hs(t, o);
|
|
3599
3605
|
a && n[0].unshift(a);
|
|
3600
|
-
const r =
|
|
3606
|
+
const r = us(t, n), l = ms(t, n), i = ys(t, l), c = Bt(t, C.en_num_view) || {};
|
|
3601
3607
|
return {
|
|
3602
3608
|
engineData: i,
|
|
3603
3609
|
pageTotal: t.pageTotal,
|
|
@@ -3605,10 +3611,10 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3605
3611
|
localData: r,
|
|
3606
3612
|
extendInfo: { shortCoordinate: c }
|
|
3607
3613
|
};
|
|
3608
|
-
},
|
|
3614
|
+
}, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
|
|
3609
3615
|
key: 0,
|
|
3610
3616
|
class: "layt-moni_err_view"
|
|
3611
|
-
},
|
|
3617
|
+
}, xs = { class: "layt-moni_err_item_msg" }, ks = ["onClick"], Cs = /* @__PURE__ */ V({
|
|
3612
3618
|
__name: "index",
|
|
3613
3619
|
props: {
|
|
3614
3620
|
ColList: {},
|
|
@@ -3618,19 +3624,19 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3618
3624
|
},
|
|
3619
3625
|
emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
|
|
3620
3626
|
setup(e, { emit: t }) {
|
|
3621
|
-
const o = e, a =
|
|
3627
|
+
const o = e, a = q([]);
|
|
3622
3628
|
Ae(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
3623
3629
|
a.value = [], setTimeout(() => {
|
|
3624
3630
|
var u;
|
|
3625
3631
|
o.ColList.forEach((m, O) => {
|
|
3626
3632
|
m.data.map((h) => h.children).flat().filter((h) => [p.slove, p.art].includes(h.problemType) && !h.chunk).forEach((h) => {
|
|
3627
|
-
var
|
|
3628
|
-
const E = (
|
|
3633
|
+
var L;
|
|
3634
|
+
const E = (L = o.ColDom[O].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : L.querySelector(`*[data-xine="${C.score}"]`);
|
|
3629
3635
|
if (!E)
|
|
3630
3636
|
return;
|
|
3631
3637
|
E.classList.remove("err_lack");
|
|
3632
|
-
const
|
|
3633
|
-
E.offsetWidth - parseFloat(
|
|
3638
|
+
const J = window.getComputedStyle(E), Z = [...Array.from(E.children)].map((D) => D.offsetWidth).reduce((D, v) => D + v, 0);
|
|
3639
|
+
E.offsetWidth - parseFloat(J.borderLeft) - parseFloat(J.borderRight) < Z && (a.value.push({ msg: `${h.subStr}题打分条超长` }), E.classList.add("err_lack"), E.title = "打分条超长,请调整排版或使用自编打分条");
|
|
3634
3640
|
});
|
|
3635
3641
|
});
|
|
3636
3642
|
const l = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
|
|
@@ -3651,43 +3657,43 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3651
3657
|
var i;
|
|
3652
3658
|
(((i = a.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
|
|
3653
3659
|
};
|
|
3654
|
-
return (l, i) => (s(), d("div",
|
|
3655
|
-
g("div",
|
|
3660
|
+
return (l, i) => (s(), d("div", fs, [
|
|
3661
|
+
g("div", gs, [
|
|
3656
3662
|
g("div", {
|
|
3657
3663
|
class: te(["layt-moni_status", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3658
3664
|
}, null, 2),
|
|
3659
3665
|
g("div", {
|
|
3660
3666
|
class: te(["layt-moni_info", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3661
3667
|
}, [
|
|
3662
|
-
g("span",
|
|
3663
|
-
|
|
3668
|
+
g("span", bs, [
|
|
3669
|
+
U(_e, {
|
|
3664
3670
|
width: 1.6,
|
|
3665
3671
|
name: a.value.length ? "wrong" : "right"
|
|
3666
3672
|
}, null, 8, ["name"])
|
|
3667
3673
|
]),
|
|
3668
|
-
g("span",
|
|
3674
|
+
g("span", vs, "排版" + j(a.value.length ? "异常" : "良好"), 1)
|
|
3669
3675
|
], 2),
|
|
3670
|
-
a.value.length ? (s(), d("ul",
|
|
3671
|
-
(s(!0), d(M, null,
|
|
3676
|
+
a.value.length ? (s(), d("ul", ws, [
|
|
3677
|
+
(s(!0), d(M, null, X(a.value, (c, u) => (s(), d("li", {
|
|
3672
3678
|
key: u,
|
|
3673
3679
|
class: "layt-moni_err_item"
|
|
3674
3680
|
}, [
|
|
3675
|
-
g("span",
|
|
3681
|
+
g("span", xs, j(c.msg), 1),
|
|
3676
3682
|
c.fn ? (s(), d("span", {
|
|
3677
3683
|
key: 0,
|
|
3678
3684
|
class: "layt-moni_err_item_fn",
|
|
3679
3685
|
onClick: c.fn
|
|
3680
|
-
},
|
|
3686
|
+
}, j(c.btnTxt || "删除"), 9, ks)) : P("", !0)
|
|
3681
3687
|
]))), 128))
|
|
3682
3688
|
])) : P("", !0)
|
|
3683
3689
|
])
|
|
3684
3690
|
]));
|
|
3685
3691
|
}
|
|
3686
3692
|
});
|
|
3687
|
-
const
|
|
3693
|
+
const $s = /* @__PURE__ */ ce(Cs, [["__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, Ss = (e) => {
|
|
3688
3694
|
const t = e.parentElement, o = document.createElement("span");
|
|
3689
3695
|
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;
|
|
3690
|
-
},
|
|
3696
|
+
}, Ts = (e, t, o, a) => {
|
|
3691
3697
|
let n = null;
|
|
3692
3698
|
if (e.dataset.block === dt && !e.dataset.used) {
|
|
3693
3699
|
const r = window.getComputedStyle(e);
|
|
@@ -3699,7 +3705,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3699
3705
|
const a = e.textContent || "", n = a.split("").map((c) => `<span>${c}</span>`).join("");
|
|
3700
3706
|
e.innerHTML = n;
|
|
3701
3707
|
const r = [...Array.from(e.children)].findIndex((c) => de(c).top - t + c.offsetHeight > o);
|
|
3702
|
-
if (
|
|
3708
|
+
if (r < 1)
|
|
3703
3709
|
return e.innerHTML = a, e;
|
|
3704
3710
|
const l = document.createElement("span");
|
|
3705
3711
|
l.textContent = a.slice(0, r);
|
|
@@ -3711,7 +3717,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3711
3717
|
return r || (r = Xe(e), de(r).top + r.offsetHeight - t > o && (r = st(r, t, o))), r;
|
|
3712
3718
|
}, Tt = (e, t, o, a) => {
|
|
3713
3719
|
const n = (l, i = o) => {
|
|
3714
|
-
var Z,
|
|
3720
|
+
var Z, L, D;
|
|
3715
3721
|
const c = l.map((v) => {
|
|
3716
3722
|
const z = de(v);
|
|
3717
3723
|
return {
|
|
@@ -3722,7 +3728,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3722
3728
|
}), u = c.filter((v) => v.el.offsetHeight + v.top > i).sort((v, z) => v.top - z.top), m = (Z = u.shift()) == null ? void 0 : Z.el;
|
|
3723
3729
|
if (!m) {
|
|
3724
3730
|
const v = document.createElement("div");
|
|
3725
|
-
return (
|
|
3731
|
+
return (L = l[0].parentElement) == null || L.appendChild(v), v.style.height = i - (de(v).top - t) + "px", v;
|
|
3726
3732
|
}
|
|
3727
3733
|
const O = de(m), h = O.top - t, E = O.left;
|
|
3728
3734
|
if (u.filter((v) => v.top < h + m.offsetHeight && v.top + v.el.offsetHeight - 1 > h && (v.left + v.el.offsetWidth - 1 < E || v.left + 1 > E + m.offsetWidth)).length) {
|
|
@@ -3736,7 +3742,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3736
3742
|
const v = getComputedStyle(m);
|
|
3737
3743
|
if (h + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > i)
|
|
3738
3744
|
return st(m, t, h);
|
|
3739
|
-
const z =
|
|
3745
|
+
const z = Ts(m, i - h, i, a);
|
|
3740
3746
|
if (z)
|
|
3741
3747
|
return Xe(z);
|
|
3742
3748
|
if (m.children.length) {
|
|
@@ -3746,8 +3752,8 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3746
3752
|
return St(m, t, i);
|
|
3747
3753
|
}
|
|
3748
3754
|
}, r = n([e]);
|
|
3749
|
-
return { cut:
|
|
3750
|
-
},
|
|
3755
|
+
return { cut: Ss(r), targetEl: r };
|
|
3756
|
+
}, Is = (e) => {
|
|
3751
3757
|
const { el: t, data: o, column: a, backColumn: n, getColSize: r, change: l } = e;
|
|
3752
3758
|
if (!t || !o.length) {
|
|
3753
3759
|
l([], !0);
|
|
@@ -3765,7 +3771,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3765
3771
|
};
|
|
3766
3772
|
};
|
|
3767
3773
|
let h = [], E = 0;
|
|
3768
|
-
const
|
|
3774
|
+
const J = () => {
|
|
3769
3775
|
O(h.length), t.style.width = `${c.width}px`, h.push({
|
|
3770
3776
|
top: 0,
|
|
3771
3777
|
data: [],
|
|
@@ -3773,11 +3779,11 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3773
3779
|
height: c.height
|
|
3774
3780
|
}), l([...h]);
|
|
3775
3781
|
};
|
|
3776
|
-
|
|
3782
|
+
J();
|
|
3777
3783
|
const Z = (v) => {
|
|
3778
3784
|
const z = getComputedStyle(v);
|
|
3779
3785
|
return de(v).top - c.top + parseFloat(z.borderTop) + parseFloat(z.paddingTop) + parseFloat(z.lineHeight) > h[h.length - 1].height;
|
|
3780
|
-
},
|
|
3786
|
+
}, L = (v) => {
|
|
3781
3787
|
const z = getComputedStyle(v);
|
|
3782
3788
|
return de(v).top + v.offsetHeight - c.top - (v.dataset.block === we ? 0 : parseFloat(z.paddingBottom) - parseFloat(z.borderBottom)) <= h[h.length - 1].height;
|
|
3783
3789
|
}, D = (v = JSON.parse(JSON.stringify(o[E] || {}))) => {
|
|
@@ -3794,15 +3800,15 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3794
3800
|
}
|
|
3795
3801
|
if (ne && ne.height + ne.top - c.top > h[h.length - 1].height)
|
|
3796
3802
|
if (v.problemType)
|
|
3797
|
-
h[h.length - 1].data.pop(),
|
|
3798
|
-
else if (
|
|
3799
|
-
|
|
3803
|
+
h[h.length - 1].data.pop(), J(), D({ ...v });
|
|
3804
|
+
else if (L(z))
|
|
3805
|
+
J(), E++, D();
|
|
3800
3806
|
else if (Z(z))
|
|
3801
|
-
h[h.length - 1].data.pop(),
|
|
3807
|
+
h[h.length - 1].data.pop(), J(), D({ ...v });
|
|
3802
3808
|
else {
|
|
3803
3809
|
H = Tt(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3804
3810
|
const _ = z.querySelector(`*[data-content="${v.id}"]`);
|
|
3805
|
-
h[h.length - 1].height = de(H.cut).top - c.top,
|
|
3811
|
+
h[h.length - 1].height = de(H.cut).top - c.top, J(), _ != null && _.contains(H.cut) ? (m = Date.now(), H.cut.dataset.hutkey = m, D({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), D({ ...v }));
|
|
3806
3812
|
}
|
|
3807
3813
|
else {
|
|
3808
3814
|
let _ = [], k = [];
|
|
@@ -3813,7 +3819,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3813
3819
|
h[h.length - 1].top = c.top - se.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
|
|
3814
3820
|
}
|
|
3815
3821
|
if (ue.height + ue.top - c.top > h[h.length - 1].height) {
|
|
3816
|
-
if (
|
|
3822
|
+
if (L(B))
|
|
3817
3823
|
_.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3818
3824
|
else if (Z(B))
|
|
3819
3825
|
k = v.children.slice(R);
|
|
@@ -3829,8 +3835,8 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3829
3835
|
let se = { ...w };
|
|
3830
3836
|
switch (w.problemType) {
|
|
3831
3837
|
case at.slove:
|
|
3832
|
-
const
|
|
3833
|
-
|
|
3838
|
+
const F = B.querySelector(`*[data-area="${w.id}"]`);
|
|
3839
|
+
F != null && F.contains(H.cut) && (u = Date.now(), H.cut.dataset.cutkey = u, w.answerArea = F.innerHTML), w.chunk += 1;
|
|
3834
3840
|
break;
|
|
3835
3841
|
case at.art:
|
|
3836
3842
|
const $ = B.querySelector(`*[data-bart="${w.id}"]`), I = H.targetEl.dataset.block === we && H.targetEl.dataset.size ? H.targetEl : null, ee = B.querySelector(`*[data-aart="${w.id}"]`);
|
|
@@ -3840,10 +3846,10 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3840
3846
|
const pe = parseInt(I.dataset.size);
|
|
3841
3847
|
if (!w.artBlock)
|
|
3842
3848
|
if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > pe) {
|
|
3843
|
-
const
|
|
3849
|
+
const W = B.querySelector(`*[data-guide="${w.id}"]`), ae = de(W);
|
|
3844
3850
|
if (ae.height + ae.top - c.top > c.height) {
|
|
3845
|
-
|
|
3846
|
-
const Ie = de(I).top + I.offsetHeight, Se = [...Array.from(
|
|
3851
|
+
W.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
|
|
3852
|
+
const Ie = de(I).top + I.offsetHeight, Se = [...Array.from(W.children)].findIndex((ge) => de(ge).top > Ie);
|
|
3847
3853
|
se.beforeGuide = w.beforeGuide.substring(0, Se), w.beforeGuide = w.beforeGuide.substring(Se);
|
|
3848
3854
|
} else
|
|
3849
3855
|
w.beforeGuide = "";
|
|
@@ -3863,7 +3869,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3863
3869
|
return !0;
|
|
3864
3870
|
} else
|
|
3865
3871
|
_.push(w);
|
|
3866
|
-
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, k.length ? (
|
|
3872
|
+
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, k.length ? (J(), D({ ...v, isHidden: !0, children: k })) : (l([...h]), E++, D());
|
|
3867
3873
|
}
|
|
3868
3874
|
});
|
|
3869
3875
|
};
|
|
@@ -3871,13 +3877,13 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3871
3877
|
}, Ot = window.CKEDITOR;
|
|
3872
3878
|
Ot.disableAutoInline = !0;
|
|
3873
3879
|
const ht = `dx${Math.random().toString(32).substring(2)}`;
|
|
3874
|
-
function
|
|
3880
|
+
function Ls(e, t) {
|
|
3875
3881
|
return Ot[e](ht, {
|
|
3876
3882
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
3877
3883
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
3878
3884
|
});
|
|
3879
3885
|
}
|
|
3880
|
-
const
|
|
3886
|
+
const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Es = ["disabled", "contentEditable", "id"], Ms = /* @__PURE__ */ V({
|
|
3881
3887
|
__name: "index",
|
|
3882
3888
|
props: {
|
|
3883
3889
|
value: {},
|
|
@@ -3886,7 +3892,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3886
3892
|
},
|
|
3887
3893
|
emits: ["change", "focus", "blur"],
|
|
3888
3894
|
setup(e, { emit: t }) {
|
|
3889
|
-
const o = e, a = Rt("ckeditorOrigin", ""), n =
|
|
3895
|
+
const o = e, a = Rt("ckeditorOrigin", ""), n = q();
|
|
3890
3896
|
Ae(() => o.readonly, () => r()), Ve(() => r());
|
|
3891
3897
|
const r = () => {
|
|
3892
3898
|
if (window.CKEDITOR) {
|
|
@@ -3895,7 +3901,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3895
3901
|
return;
|
|
3896
3902
|
}
|
|
3897
3903
|
Je(() => {
|
|
3898
|
-
n.value =
|
|
3904
|
+
n.value = Ls("inline", a), n.value && n.value.on("instanceReady", (u) => {
|
|
3899
3905
|
n.value.setData(o.value);
|
|
3900
3906
|
});
|
|
3901
3907
|
});
|
|
@@ -3919,19 +3925,19 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3919
3925
|
});
|
|
3920
3926
|
const O = (h = m) => {
|
|
3921
3927
|
[...Array.from(h.childNodes)].forEach((E) => {
|
|
3922
|
-
var
|
|
3928
|
+
var J;
|
|
3923
3929
|
if (E.nodeType === Node.ELEMENT_NODE && E.children.length)
|
|
3924
3930
|
O(E);
|
|
3925
3931
|
else if (E.nodeType === Node.TEXT_NODE) {
|
|
3926
3932
|
const Z = document.createElement("span");
|
|
3927
|
-
Z.textContent = E.textContent, window.REGULAR.underscore.test(E.textContent || "") && (window.getComputedStyle(E.parentNode).wordBreak !== "break-all" || !(E.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (E.textContent || "").length > 5 && (Z.innerHTML = (E.textContent || "").replace(window.REGULAR.underscore, (D) => D.length > 5 ? `<span style="word-break: break-all">${D}</span>` : D)), (
|
|
3933
|
+
Z.textContent = E.textContent, window.REGULAR.underscore.test(E.textContent || "") && (window.getComputedStyle(E.parentNode).wordBreak !== "break-all" || !(E.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (E.textContent || "").length > 5 && (Z.innerHTML = (E.textContent || "").replace(window.REGULAR.underscore, (D) => D.length > 5 ? `<span style="word-break: break-all">${D}</span>` : D)), (J = E.parentElement) == null || J.replaceChild(Z, E);
|
|
3928
3934
|
}
|
|
3929
3935
|
});
|
|
3930
3936
|
};
|
|
3931
3937
|
return O(), m.innerHTML;
|
|
3932
3938
|
};
|
|
3933
|
-
return (u, m) => (s(), d("div",
|
|
3934
|
-
o.readonly ? (s(),
|
|
3939
|
+
return (u, m) => (s(), d("div", Fs, [
|
|
3940
|
+
o.readonly ? (s(), Q(Ne, {
|
|
3935
3941
|
key: 1,
|
|
3936
3942
|
data: o.value,
|
|
3937
3943
|
class: "raw_view"
|
|
@@ -3943,14 +3949,14 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3943
3949
|
id: x(ht),
|
|
3944
3950
|
onFocus: i,
|
|
3945
3951
|
onBlur: l
|
|
3946
|
-
}, null, 40,
|
|
3952
|
+
}, null, 40, Es))
|
|
3947
3953
|
]));
|
|
3948
3954
|
}
|
|
3949
3955
|
});
|
|
3950
|
-
const
|
|
3956
|
+
const Ps = /* @__PURE__ */ ce(Ms, [["__scopeId", "data-v-1398ac85"]]);
|
|
3951
3957
|
let qe = (e) => {
|
|
3952
3958
|
};
|
|
3953
|
-
const
|
|
3959
|
+
const Ds = {
|
|
3954
3960
|
updated: function(e, t) {
|
|
3955
3961
|
document.body.removeEventListener("click", qe), qe = (o) => {
|
|
3956
3962
|
!e.contains(o.target) && t.value && t.value(o);
|
|
@@ -3961,7 +3967,7 @@ const Ps = {
|
|
|
3961
3967
|
}
|
|
3962
3968
|
};
|
|
3963
3969
|
let ot = null;
|
|
3964
|
-
const
|
|
3970
|
+
const As = {
|
|
3965
3971
|
mounted: (e, t) => {
|
|
3966
3972
|
let o = {}, a = !1, n = !1, r = e.offsetParent, l = {}, i = {};
|
|
3967
3973
|
const c = e.querySelector(".move-target") || e;
|
|
@@ -3982,7 +3988,7 @@ const Ds = {
|
|
|
3982
3988
|
unmounted: () => {
|
|
3983
3989
|
document.removeEventListener("mousemove", ot);
|
|
3984
3990
|
}
|
|
3985
|
-
},
|
|
3991
|
+
}, Ns = ["onMousedown", "data-block"], Bs = ["src"], Os = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, zs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Hs = ["onMousedown"], Rs = ["onMousedown"], Ws = ["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" }, Ys = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, qs = ["onMousedown"], Qs = /* @__PURE__ */ V({
|
|
3986
3992
|
__name: "absItem",
|
|
3987
3993
|
props: {
|
|
3988
3994
|
imgData: {},
|
|
@@ -3992,7 +3998,7 @@ const Ds = {
|
|
|
3992
3998
|
},
|
|
3993
3999
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
3994
4000
|
setup(e, { emit: t }) {
|
|
3995
|
-
const o = e, a =
|
|
4001
|
+
const o = e, a = Ds, n = As, r = [
|
|
3996
4002
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
3997
4003
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
3998
4004
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4001,41 +4007,41 @@ const Ds = {
|
|
|
4001
4007
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4002
4008
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4003
4009
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4004
|
-
], l =
|
|
4005
|
-
...
|
|
4006
|
-
top:
|
|
4007
|
-
}))),
|
|
4008
|
-
...
|
|
4009
|
-
top:
|
|
4010
|
-
}))), D = A(() =>
|
|
4010
|
+
], l = q({}), i = q(), c = q(0), u = q(0), m = q(), O = q(), h = q({}), E = q(!1), J = q(), Z = A(() => o.imgData.map((F) => ({
|
|
4011
|
+
...F,
|
|
4012
|
+
top: F.top - Math.floor(F.top / (b[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4013
|
+
}))), L = A(() => o.txtData.map((F) => ({
|
|
4014
|
+
...F,
|
|
4015
|
+
top: F.top - Math.floor(F.top / (b[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4016
|
+
}))), D = A(() => J.value ? J.value.split("-")[0] === "img" ? Z.value.find(($) => $.key === J.value) : L.value.find(($) => $.key === J.value) : null), v = A(() => D.value ? { [D.value.key]: { ...i.value } } : {});
|
|
4011
4017
|
Ve(() => {
|
|
4012
4018
|
m.value = document.body.querySelector(".__layout__");
|
|
4013
4019
|
});
|
|
4014
|
-
const z = (
|
|
4015
|
-
i.value = { ...D.value, left: Math.max(
|
|
4020
|
+
const z = (F) => {
|
|
4021
|
+
i.value = { ...D.value, left: Math.max(F.x, 0), top: Math.max(F.y, 0) }, clearTimeout(O.value), O.value = setTimeout(() => {
|
|
4016
4022
|
var $;
|
|
4017
4023
|
(($ = D.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4018
4024
|
}, 400);
|
|
4019
|
-
}, ne = (
|
|
4020
|
-
E.value =
|
|
4025
|
+
}, ne = (F) => {
|
|
4026
|
+
E.value = F;
|
|
4021
4027
|
}, H = () => {
|
|
4022
|
-
const
|
|
4028
|
+
const F = D.value, $ = F.left + F.width / 2, I = F.top + F.height / 2, ee = m.value.getBoundingClientRect() || {};
|
|
4023
4029
|
h.value = { x: $ + ee.left, y: I + ee.top }, m.value.addEventListener("mousemove", _), m.value.addEventListener("mouseleave", k), m.value.addEventListener("mouseup", k);
|
|
4024
|
-
}, _ = (
|
|
4025
|
-
|
|
4026
|
-
const $ =
|
|
4030
|
+
}, _ = (F) => {
|
|
4031
|
+
F.stopPropagation(), F.preventDefault();
|
|
4032
|
+
const $ = F.clientX - h.value.x, I = h.value.y - F.clientY, ee = Math.atan2(I, $) / (Math.PI / 180);
|
|
4027
4033
|
i.value = { ...D.value, rotate: -parseInt(ee.toString()) };
|
|
4028
|
-
}, k = (
|
|
4029
|
-
|
|
4030
|
-
}, w = (
|
|
4034
|
+
}, k = (F) => {
|
|
4035
|
+
F.stopPropagation(), F.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove", _), m.value.removeEventListener("mouseleave", k), m.value.removeEventListener("mouseup", k);
|
|
4036
|
+
}, w = (F, $) => {
|
|
4031
4037
|
var I;
|
|
4032
|
-
|
|
4033
|
-
}, R = (
|
|
4034
|
-
const $ = { x:
|
|
4038
|
+
F.stopPropagation(), c.value = $, l.value = { x: F.clientX, y: F.clientY, ...D.value }, ((I = D.value) == null ? void 0 : I.key.split("-")[0]) === "img" ? m.value.addEventListener("mousemove", R) : m.value.addEventListener("mousemove", B), m.value.addEventListener("mouseleave", ue), m.value.addEventListener("mouseup", ue);
|
|
4039
|
+
}, R = (F) => {
|
|
4040
|
+
const $ = { x: F.clientX - l.value.x, y: F.clientY - l.value.y }, I = { ...D.value }, ee = $.x > $.y ? "width" : "height";
|
|
4035
4041
|
[
|
|
4036
4042
|
// 0
|
|
4037
4043
|
() => {
|
|
4038
|
-
const
|
|
4044
|
+
const W = {
|
|
4039
4045
|
width: l.value.width - $.x,
|
|
4040
4046
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4041
4047
|
}[ee], ae = {
|
|
@@ -4044,26 +4050,26 @@ const Ds = {
|
|
|
4044
4050
|
}[ee];
|
|
4045
4051
|
i.value = {
|
|
4046
4052
|
...I,
|
|
4047
|
-
width:
|
|
4053
|
+
width: W,
|
|
4048
4054
|
height: ae,
|
|
4049
|
-
left: l.value.left - (
|
|
4055
|
+
left: l.value.left - (W - l.value.width),
|
|
4050
4056
|
top: l.value.top - (ae - l.value.height)
|
|
4051
4057
|
};
|
|
4052
4058
|
},
|
|
4053
4059
|
// 1
|
|
4054
4060
|
() => {
|
|
4055
|
-
const
|
|
4061
|
+
const W = l.value.width * (1 - $.y / l.value.height), ae = l.value.height - $.y;
|
|
4056
4062
|
i.value = {
|
|
4057
4063
|
...I,
|
|
4058
|
-
width:
|
|
4064
|
+
width: W,
|
|
4059
4065
|
height: ae,
|
|
4060
|
-
left: l.value.left - (
|
|
4066
|
+
left: l.value.left - (W - l.value.width) / 2,
|
|
4061
4067
|
top: l.value.top - (ae - l.value.height)
|
|
4062
4068
|
};
|
|
4063
4069
|
},
|
|
4064
4070
|
// 2
|
|
4065
4071
|
() => {
|
|
4066
|
-
const
|
|
4072
|
+
const W = {
|
|
4067
4073
|
width: l.value.height * (1 + $.x / l.value.width),
|
|
4068
4074
|
height: l.value.height - $.y
|
|
4069
4075
|
}[ee];
|
|
@@ -4073,34 +4079,34 @@ const Ds = {
|
|
|
4073
4079
|
width: l.value.width + $.x,
|
|
4074
4080
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4075
4081
|
}[ee],
|
|
4076
|
-
height:
|
|
4077
|
-
top: l.value.top - (
|
|
4082
|
+
height: W,
|
|
4083
|
+
top: l.value.top - (W - l.value.height)
|
|
4078
4084
|
};
|
|
4079
4085
|
},
|
|
4080
4086
|
// 3
|
|
4081
4087
|
() => {
|
|
4082
|
-
const
|
|
4088
|
+
const W = l.value.width - $.x, ae = l.value.height * (1 - $.x / l.value.width);
|
|
4083
4089
|
i.value = {
|
|
4084
4090
|
...I,
|
|
4085
|
-
width:
|
|
4091
|
+
width: W,
|
|
4086
4092
|
height: ae,
|
|
4087
|
-
left: l.value.left - (
|
|
4093
|
+
left: l.value.left - (W - l.value.width),
|
|
4088
4094
|
top: l.value.top - (ae - l.value.height) / 2
|
|
4089
4095
|
};
|
|
4090
4096
|
},
|
|
4091
4097
|
// 4
|
|
4092
4098
|
() => {
|
|
4093
|
-
const
|
|
4099
|
+
const W = l.value.width + $.x, ae = l.value.height * (1 + $.x / l.value.width);
|
|
4094
4100
|
i.value = {
|
|
4095
4101
|
...I,
|
|
4096
|
-
width:
|
|
4102
|
+
width: W,
|
|
4097
4103
|
height: ae,
|
|
4098
4104
|
top: l.value.top - (ae - l.value.height) / 2
|
|
4099
4105
|
};
|
|
4100
4106
|
},
|
|
4101
4107
|
// 5
|
|
4102
4108
|
() => {
|
|
4103
|
-
const
|
|
4109
|
+
const W = {
|
|
4104
4110
|
width: l.value.width - $.x,
|
|
4105
4111
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4106
4112
|
}[ee], ae = {
|
|
@@ -4109,24 +4115,24 @@ const Ds = {
|
|
|
4109
4115
|
}[ee];
|
|
4110
4116
|
i.value = {
|
|
4111
4117
|
...I,
|
|
4112
|
-
width:
|
|
4118
|
+
width: W,
|
|
4113
4119
|
height: ae,
|
|
4114
|
-
left: l.value.left - (
|
|
4120
|
+
left: l.value.left - (W - l.value.width)
|
|
4115
4121
|
};
|
|
4116
4122
|
},
|
|
4117
4123
|
// 6
|
|
4118
4124
|
() => {
|
|
4119
|
-
const
|
|
4125
|
+
const W = l.value.width * (1 + $.y / l.value.height), ae = l.value.height + $.y;
|
|
4120
4126
|
i.value = {
|
|
4121
4127
|
...I,
|
|
4122
|
-
width:
|
|
4128
|
+
width: W,
|
|
4123
4129
|
height: ae,
|
|
4124
|
-
left: l.value.left - (
|
|
4130
|
+
left: l.value.left - (W - l.value.width) / 2
|
|
4125
4131
|
};
|
|
4126
4132
|
},
|
|
4127
4133
|
// 7
|
|
4128
4134
|
() => {
|
|
4129
|
-
const
|
|
4135
|
+
const W = {
|
|
4130
4136
|
width: l.value.width + $.x,
|
|
4131
4137
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4132
4138
|
}[ee], ae = {
|
|
@@ -4135,13 +4141,13 @@ const Ds = {
|
|
|
4135
4141
|
}[ee];
|
|
4136
4142
|
i.value = {
|
|
4137
4143
|
...I,
|
|
4138
|
-
width:
|
|
4144
|
+
width: W,
|
|
4139
4145
|
height: ae
|
|
4140
4146
|
};
|
|
4141
4147
|
}
|
|
4142
4148
|
][c.value]();
|
|
4143
|
-
}, B = (
|
|
4144
|
-
const $ = { x:
|
|
4149
|
+
}, B = (F) => {
|
|
4150
|
+
const $ = { x: F.clientX - l.value.x, y: F.clientY - l.value.y }, I = { ...D.value }, ee = [
|
|
4145
4151
|
{
|
|
4146
4152
|
...I,
|
|
4147
4153
|
width: l.value.width - $.x,
|
|
@@ -4187,77 +4193,77 @@ const Ds = {
|
|
|
4187
4193
|
];
|
|
4188
4194
|
i.value = ee[c.value];
|
|
4189
4195
|
}, ue = () => {
|
|
4190
|
-
var
|
|
4191
|
-
m.value.removeEventListener("mousemove", R), m.value.removeEventListener("mousemove", B), m.value.removeEventListener("mouseleave", ue), m.value.removeEventListener("mouseup", ue), ((
|
|
4192
|
-
}, he = (
|
|
4193
|
-
if (!
|
|
4196
|
+
var F;
|
|
4197
|
+
m.value.removeEventListener("mousemove", R), m.value.removeEventListener("mousemove", B), m.value.removeEventListener("mouseleave", ue), m.value.removeEventListener("mouseup", ue), ((F = D.value) == null ? void 0 : F.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4198
|
+
}, he = (F) => {
|
|
4199
|
+
if (!F || F === D.value.content) {
|
|
4194
4200
|
u.value++;
|
|
4195
4201
|
return;
|
|
4196
4202
|
}
|
|
4197
|
-
t("changeAbsTxtItem", { ...D.value, content:
|
|
4198
|
-
}, se = (
|
|
4203
|
+
t("changeAbsTxtItem", { ...D.value, content: F });
|
|
4204
|
+
}, se = (F, $) => {
|
|
4199
4205
|
var ee;
|
|
4200
4206
|
const I = document.body.querySelector(`.cke_editor_${ht}`);
|
|
4201
|
-
!
|
|
4207
|
+
!F && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe || I && window.getComputedStyle(I).display !== "none") || (J.value = F == null ? void 0 : F.key, i.value = F ? { ...F } : null);
|
|
4202
4208
|
};
|
|
4203
|
-
return (
|
|
4204
|
-
(s(!0), d(M, null,
|
|
4205
|
-
var ee, pe,
|
|
4209
|
+
return (F, $) => (s(), d(M, null, [
|
|
4210
|
+
(s(!0), d(M, null, X(Z.value, (I) => {
|
|
4211
|
+
var ee, pe, W, ae, Ie, Se, ge;
|
|
4206
4212
|
return ft((s(), d("div", {
|
|
4207
4213
|
key: I.id,
|
|
4208
4214
|
"data-safe": "true",
|
|
4209
4215
|
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8" : "z-7"]),
|
|
4210
|
-
style:
|
|
4216
|
+
style: G({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((W = v.value[I.key]) == null ? void 0 : W.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px", transform: `rotate(${((Se = v.value[I.key]) == null ? void 0 : Se.rotate) || I.rotate}deg)` }),
|
|
4211
4217
|
onMousedown: Le((f) => se(I), ["stop"]),
|
|
4212
4218
|
"data-block": x(Ee)
|
|
4213
4219
|
}, [
|
|
4214
4220
|
g("img", {
|
|
4215
4221
|
src: I.url
|
|
4216
|
-
}, null, 8,
|
|
4222
|
+
}, null, 8, Bs),
|
|
4217
4223
|
((ge = D.value) == null ? void 0 : ge.key) === I.key ? (s(), d(M, { key: 0 }, [
|
|
4218
|
-
g("span",
|
|
4219
|
-
|
|
4224
|
+
g("span", Os, [
|
|
4225
|
+
U(_e, {
|
|
4220
4226
|
name: "close",
|
|
4221
4227
|
width: 2,
|
|
4222
4228
|
class: "cursor-pointer",
|
|
4223
4229
|
onClick: (f) => t("delAbsImgItem", I)
|
|
4224
4230
|
}, null, 8, ["onClick"])
|
|
4225
4231
|
]),
|
|
4226
|
-
g("div",
|
|
4227
|
-
(s(), d(M, null,
|
|
4232
|
+
g("div", zs, [
|
|
4233
|
+
(s(), d(M, null, X(8, (f, S) => g("div", {
|
|
4228
4234
|
key: f,
|
|
4229
4235
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4230
|
-
style:
|
|
4236
|
+
style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
|
|
4231
4237
|
onMousedown: Le((ye) => w(ye, S), ["stop"])
|
|
4232
|
-
}, null, 44,
|
|
4238
|
+
}, null, 44, Hs)), 64))
|
|
4233
4239
|
]),
|
|
4234
4240
|
g("span", {
|
|
4235
4241
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4236
4242
|
onMousedown: Le(H, ["stop"])
|
|
4237
4243
|
}, [
|
|
4238
|
-
|
|
4244
|
+
U(_e, {
|
|
4239
4245
|
name: "reset",
|
|
4240
4246
|
width: 2
|
|
4241
4247
|
})
|
|
4242
|
-
], 40,
|
|
4248
|
+
], 40, Rs)
|
|
4243
4249
|
], 64)) : P("", !0)
|
|
4244
|
-
], 46,
|
|
4250
|
+
], 46, Ns)), [
|
|
4245
4251
|
[x(n), z],
|
|
4246
4252
|
[x(a), (f) => se(null, f)]
|
|
4247
4253
|
]);
|
|
4248
4254
|
}), 128)),
|
|
4249
|
-
(s(!0), d(M, null,
|
|
4250
|
-
var ee, pe,
|
|
4255
|
+
(s(!0), d(M, null, X(L.value, (I) => {
|
|
4256
|
+
var ee, pe, W, ae, Ie, Se, ge;
|
|
4251
4257
|
return ft((s(), d("div", {
|
|
4252
4258
|
key: I.id,
|
|
4253
4259
|
disabled: E.value,
|
|
4254
4260
|
"data-safe": "true",
|
|
4255
4261
|
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8 bg-white" : "z-7"]),
|
|
4256
|
-
style:
|
|
4262
|
+
style: G({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((W = v.value[I.key]) == null ? void 0 : W.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px" }),
|
|
4257
4263
|
onMousedown: Le((f) => se(I), ["stop"]),
|
|
4258
4264
|
"data-block": x(Ee)
|
|
4259
4265
|
}, [
|
|
4260
|
-
(s(),
|
|
4266
|
+
(s(), Q(Ps, {
|
|
4261
4267
|
key: u.value,
|
|
4262
4268
|
class: "border-0 relative z-4",
|
|
4263
4269
|
readonly: ((Se = D.value) == null ? void 0 : Se.key) !== I.key,
|
|
@@ -4269,23 +4275,23 @@ const Ds = {
|
|
|
4269
4275
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4270
4276
|
((ge = D.value) == null ? void 0 : ge.key) === I.key ? (s(), d(M, { key: 0 }, [
|
|
4271
4277
|
g("span", Gs, [
|
|
4272
|
-
|
|
4278
|
+
U(_e, {
|
|
4273
4279
|
name: "close",
|
|
4274
4280
|
width: 2,
|
|
4275
4281
|
class: "cursor-pointer",
|
|
4276
4282
|
onClick: (f) => t("delAbsTxtItem", I)
|
|
4277
4283
|
}, null, 8, ["onClick"])
|
|
4278
4284
|
]),
|
|
4279
|
-
g("div",
|
|
4280
|
-
(s(), d(M, null,
|
|
4285
|
+
g("div", Ys, [
|
|
4286
|
+
(s(), d(M, null, X(8, (f, S) => g("div", {
|
|
4281
4287
|
key: f,
|
|
4282
4288
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4283
|
-
style:
|
|
4289
|
+
style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
|
|
4284
4290
|
onMousedown: (ye) => w(ye, S)
|
|
4285
|
-
}, null, 44,
|
|
4291
|
+
}, null, 44, qs)), 64))
|
|
4286
4292
|
])
|
|
4287
4293
|
], 64)) : P("", !0)
|
|
4288
|
-
], 46,
|
|
4294
|
+
], 46, Ws)), [
|
|
4289
4295
|
[x(n), z],
|
|
4290
4296
|
[x(a), (f) => se(null, f)]
|
|
4291
4297
|
]);
|
|
@@ -4293,12 +4299,12 @@ const Ds = {
|
|
|
4293
4299
|
], 64));
|
|
4294
4300
|
}
|
|
4295
4301
|
});
|
|
4296
|
-
const
|
|
4302
|
+
const Us = /* @__PURE__ */ ce(Qs, [["__scopeId", "data-v-09e89b79"]]), Ks = ["viewBox"], js = {
|
|
4297
4303
|
x: "0",
|
|
4298
4304
|
y: "0",
|
|
4299
4305
|
width: "100%",
|
|
4300
4306
|
height: "100%"
|
|
4301
|
-
},
|
|
4307
|
+
}, Xs = ["onClick", "onDblclick"], Vs = ["data-block"], Js = /* @__PURE__ */ V({
|
|
4302
4308
|
__name: "index",
|
|
4303
4309
|
props: {
|
|
4304
4310
|
layout: {},
|
|
@@ -4315,26 +4321,26 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4315
4321
|
emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
|
|
4316
4322
|
setup(e, { emit: t }) {
|
|
4317
4323
|
const o = e;
|
|
4318
|
-
|
|
4319
|
-
const a =
|
|
4324
|
+
Wt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4325
|
+
const a = q([]), n = q([]), r = q(2), l = q(0), i = q(0), c = q(), u = q([]), m = q([]), O = q([]), h = q([]), E = A(() => o.data.map((f) => ({
|
|
4320
4326
|
...f,
|
|
4321
4327
|
__tag__: xt(),
|
|
4322
4328
|
rawChildren: f.children,
|
|
4323
4329
|
children: f.children.map((S) => ({ ...S, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: xt() }))
|
|
4324
|
-
}))),
|
|
4330
|
+
}))), J = A(() => {
|
|
4325
4331
|
const f = E.value[E.value.length - 1], S = f.rawChildren[f.rawChildren.length - 1];
|
|
4326
4332
|
return ne.value && [p.slove].includes(S == null ? void 0 : S.problemType) && S.id;
|
|
4327
4333
|
}), Z = A(() => {
|
|
4328
4334
|
var f;
|
|
4329
4335
|
return o.layout.bindFlag && !!((f = ze.find((S) => S.code === o.layout.paper)) != null && f.isMultCol);
|
|
4330
|
-
}),
|
|
4336
|
+
}), L = 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
4337
|
width: `${b[o.layout.paper].width}px`,
|
|
4332
|
-
height: `${(b[o.layout.paper].height +
|
|
4338
|
+
height: `${(b[o.layout.paper].height + L.value) * z.value - L.value}px`
|
|
4333
4339
|
})), ue = A(() => ({
|
|
4334
4340
|
width: `${b[o.layout.paper].width}px`,
|
|
4335
4341
|
height: `${b[o.layout.paper].height}px`,
|
|
4336
4342
|
padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
|
|
4337
|
-
marginBottom: `${
|
|
4343
|
+
marginBottom: `${L.value}px`
|
|
4338
4344
|
})), he = A(() => {
|
|
4339
4345
|
var S;
|
|
4340
4346
|
const f = (S = ze.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : S.isMultCol;
|
|
@@ -4351,39 +4357,39 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4351
4357
|
}, { immediate: !0 }), Ae(() => Z.value, () => {
|
|
4352
4358
|
i.value = Z.value ? 100 : 0;
|
|
4353
4359
|
}, { immediate: !0 });
|
|
4354
|
-
const se = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column,
|
|
4360
|
+
const se = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, F = (f, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + f, $ = (f) => {
|
|
4355
4361
|
const S = f % (o.layout.column + o.layout.backColumn);
|
|
4356
4362
|
return S >= o.layout.column ? S - o.layout.column : S;
|
|
4357
4363
|
}, I = (f, S) => {
|
|
4358
4364
|
f ? u.value[S] = f : u.value.splice(S, 1);
|
|
4359
4365
|
}, ee = (f, S) => {
|
|
4360
4366
|
f ? m.value[S] = f : m.value.splice(S, 1);
|
|
4361
|
-
}, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0,
|
|
4362
|
-
var
|
|
4363
|
-
const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((
|
|
4367
|
+
}, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, W = (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), ae = (f, S) => {
|
|
4368
|
+
var K, ie;
|
|
4369
|
+
const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((K = O.value[Math.min(S, 1)]) == null ? void 0 : K.offsetHeight) || 0;
|
|
4364
4370
|
return {
|
|
4365
|
-
left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (
|
|
4371
|
+
left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (W(f) + pe(f) + H.value.left + H.value.right)}px`,
|
|
4366
4372
|
top: `${ye + _.value.top + (!S && !f ? 0 : H.value.top)}px`,
|
|
4367
|
-
width: `${
|
|
4373
|
+
width: `${W(f)}px`,
|
|
4368
4374
|
height: `${w.value - ye - (!S && !f ? 0 : H.value.top) - H.value.bottom}px`,
|
|
4369
4375
|
contentHeight: `${(ie = a.value[f]) == null ? void 0 : ie.height}px`
|
|
4370
4376
|
};
|
|
4371
4377
|
}, Ie = (f, S = !1) => {
|
|
4372
4378
|
n.value = f.map((ye) => ({ ...ye })), S && (a.value = [...f], l.value += 1, Je(() => {
|
|
4373
|
-
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((ye,
|
|
4379
|
+
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((ye, K) => {
|
|
4374
4380
|
var ie, Ce;
|
|
4375
|
-
!ye || !ye.col || ((ie = a.value[
|
|
4381
|
+
!ye || !ye.col || ((ie = a.value[K]) != null && ie.top ? ye.col.style.marginTop = `${(Ce = a.value[K]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
|
|
4376
4382
|
}), o.isFinal && setTimeout(() => {
|
|
4377
|
-
const ye =
|
|
4383
|
+
const ye = _s({
|
|
4378
4384
|
config: {
|
|
4379
4385
|
...o.info,
|
|
4380
4386
|
layout: o.layout,
|
|
4381
4387
|
pageTotal: v.value,
|
|
4382
4388
|
bindWidth: i.value,
|
|
4383
|
-
pageMargin:
|
|
4389
|
+
pageMargin: L.value,
|
|
4384
4390
|
pageDom: u.value.slice(0, v.value),
|
|
4385
|
-
colDom: m.value.map((
|
|
4386
|
-
colViewDom: m.value.map((
|
|
4391
|
+
colDom: m.value.map((K) => K.col),
|
|
4392
|
+
colViewDom: m.value.map((K) => K.colView)
|
|
4387
4393
|
},
|
|
4388
4394
|
data: a.value
|
|
4389
4395
|
});
|
|
@@ -4391,7 +4397,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4391
4397
|
}, 500);
|
|
4392
4398
|
}));
|
|
4393
4399
|
}, Se = () => {
|
|
4394
|
-
|
|
4400
|
+
Is({
|
|
4395
4401
|
el: c.value,
|
|
4396
4402
|
data: E.value,
|
|
4397
4403
|
column: o.layout.column,
|
|
@@ -4399,74 +4405,74 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4399
4405
|
getColSize: ae,
|
|
4400
4406
|
change: Ie
|
|
4401
4407
|
});
|
|
4402
|
-
}, ge = (f = { type:
|
|
4408
|
+
}, ge = (f = { type: Y.page, value: {} }) => {
|
|
4403
4409
|
t("toggleActive", f);
|
|
4404
4410
|
};
|
|
4405
4411
|
return (f, S) => {
|
|
4406
4412
|
var ye;
|
|
4407
4413
|
return s(), d(M, null, [
|
|
4408
|
-
f.readonly ? P("", !0) : (s(),
|
|
4414
|
+
f.readonly ? P("", !0) : (s(), Q($s, {
|
|
4409
4415
|
key: 0,
|
|
4410
4416
|
ColList: a.value,
|
|
4411
|
-
ColDom: m.value.map((
|
|
4417
|
+
ColDom: m.value.map((K) => K.col),
|
|
4412
4418
|
ImgData: f.imgData,
|
|
4413
4419
|
TxtData: f.txtData,
|
|
4414
|
-
onDelAbsImgItem: S[0] || (S[0] = (
|
|
4415
|
-
onDelAbsTxtItem: S[1] || (S[1] = (
|
|
4416
|
-
onChangeLayoutStatus: S[2] || (S[2] = (
|
|
4420
|
+
onDelAbsImgItem: S[0] || (S[0] = (K) => t("delAbsImgItem", K)),
|
|
4421
|
+
onDelAbsTxtItem: S[1] || (S[1] = (K) => t("delAbsTxtItem", K)),
|
|
4422
|
+
onChangeLayoutStatus: S[2] || (S[2] = (K) => t("changeLayoutStatus", K))
|
|
4417
4423
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4418
4424
|
g("div", {
|
|
4419
4425
|
class: "flex-1 overflow-auto relative z-1",
|
|
4420
4426
|
id: "alit-layout",
|
|
4421
|
-
onClick: S[14] || (S[14] = (
|
|
4427
|
+
onClick: S[14] || (S[14] = (K) => ge())
|
|
4422
4428
|
}, [
|
|
4423
4429
|
g("div", {
|
|
4424
4430
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4425
4431
|
ref_key: "rawDom",
|
|
4426
4432
|
ref: c
|
|
4427
4433
|
}, [
|
|
4428
|
-
n.value.length ? (s(!0), d(M, { key: 0 },
|
|
4429
|
-
|
|
4434
|
+
n.value.length ? (s(!0), d(M, { key: 0 }, X((ye = n.value[n.value.length - 1]) == null ? void 0 : ye.data, (K, ie) => (s(), d(M, null, [
|
|
4435
|
+
K.isHidden ? P("", !0) : (s(), Q(Ct, {
|
|
4430
4436
|
key: 0,
|
|
4431
|
-
item:
|
|
4437
|
+
item: K,
|
|
4432
4438
|
showColBorder: ne.value,
|
|
4433
4439
|
isFirst: !ie && n.value.length === 1,
|
|
4434
4440
|
layout: f.layout
|
|
4435
4441
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4436
4442
|
ne.value ? (s(), d("div", {
|
|
4437
4443
|
key: 1,
|
|
4438
|
-
class: te([!
|
|
4444
|
+
class: te([!K.children.length && K.problemType && "p-1 min-h-[2rem]"])
|
|
4439
4445
|
}, [
|
|
4440
|
-
(s(),
|
|
4441
|
-
data:
|
|
4446
|
+
(s(), Q(Ye, {
|
|
4447
|
+
data: K,
|
|
4442
4448
|
key: n.value.length,
|
|
4443
4449
|
layout: f.layout,
|
|
4444
4450
|
target: f.target,
|
|
4445
4451
|
noPortrait: "",
|
|
4446
|
-
width:
|
|
4452
|
+
width: W(n.value.length - 1) - 10
|
|
4447
4453
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4448
|
-
], 2)) : (s(),
|
|
4449
|
-
data:
|
|
4454
|
+
], 2)) : (s(), Q(Ye, {
|
|
4455
|
+
data: K,
|
|
4450
4456
|
key: n.value.length,
|
|
4451
4457
|
layout: f.layout,
|
|
4452
4458
|
target: f.target,
|
|
4453
|
-
width:
|
|
4459
|
+
width: W(n.value.length - 1)
|
|
4454
4460
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4455
4461
|
], 64))), 256)) : P("", !0)
|
|
4456
4462
|
], 512),
|
|
4457
4463
|
g("div", {
|
|
4458
4464
|
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:
|
|
4465
|
+
style: G(B.value)
|
|
4460
4466
|
}, [
|
|
4461
|
-
|
|
4467
|
+
U(Us, {
|
|
4462
4468
|
imgData: f.imgData,
|
|
4463
4469
|
txtData: f.txtData,
|
|
4464
4470
|
layout: f.layout,
|
|
4465
4471
|
pageMargin: D.value,
|
|
4466
|
-
onChangeAbsImgItem: S[3] || (S[3] = (
|
|
4467
|
-
onDelAbsImgItem: S[4] || (S[4] = (
|
|
4468
|
-
onChangeAbsTxtItem: S[5] || (S[5] = (
|
|
4469
|
-
onDelAbsTxtItem: S[6] || (S[6] = (
|
|
4472
|
+
onChangeAbsImgItem: S[3] || (S[3] = (K) => t("changeAbsImgItem", K)),
|
|
4473
|
+
onDelAbsImgItem: S[4] || (S[4] = (K) => t("delAbsImgItem", K)),
|
|
4474
|
+
onChangeAbsTxtItem: S[5] || (S[5] = (K) => t("changeAbsTxtItem", K)),
|
|
4475
|
+
onDelAbsTxtItem: S[6] || (S[6] = (K) => t("delAbsTxtItem", K))
|
|
4470
4476
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4471
4477
|
(s(), d("svg", {
|
|
4472
4478
|
viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
|
|
@@ -4474,31 +4480,31 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4474
4480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4475
4481
|
key: l.value
|
|
4476
4482
|
}, [
|
|
4477
|
-
(s(), d("foreignObject",
|
|
4478
|
-
(s(!0), d(M, null,
|
|
4479
|
-
key:
|
|
4483
|
+
(s(), d("foreignObject", js, [
|
|
4484
|
+
(s(!0), d(M, null, X(z.value, (K, ie) => (s(), d("div", {
|
|
4485
|
+
key: K,
|
|
4480
4486
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4481
4487
|
ref_for: !0,
|
|
4482
4488
|
ref: (Ce) => I(Ce, ie),
|
|
4483
|
-
style:
|
|
4489
|
+
style: G(ue.value)
|
|
4484
4490
|
}, [
|
|
4485
4491
|
ie < v.value ? (s(), d(M, { key: 0 }, [
|
|
4486
|
-
|
|
4492
|
+
U(wo, {
|
|
4487
4493
|
layout: f.layout,
|
|
4488
4494
|
currentPage: ie,
|
|
4489
4495
|
totalPage: v.value,
|
|
4490
|
-
columnContentWidth:
|
|
4496
|
+
columnContentWidth: W(ie % 2 ? f.layout.column : 0, !0),
|
|
4491
4497
|
columnMargin: pe(ie % 2 ? f.layout.column : 0),
|
|
4492
4498
|
bindWidth: i.value,
|
|
4493
4499
|
padding: _.value
|
|
4494
4500
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4495
|
-
f.layout.sloganFlag ? (s(),
|
|
4501
|
+
f.layout.sloganFlag ? (s(), Q($o, {
|
|
4496
4502
|
key: 0,
|
|
4497
4503
|
info: f.info,
|
|
4498
4504
|
layout: f.layout,
|
|
4499
4505
|
onChange: S[7] || (S[7] = (Ce) => t("changeInfo", Ce))
|
|
4500
4506
|
}, null, 8, ["info", "layout"])) : P("", !0),
|
|
4501
|
-
|
|
4507
|
+
U(Za, {
|
|
4502
4508
|
ref_for: !0,
|
|
4503
4509
|
ref_key: "bindDom",
|
|
4504
4510
|
ref: h,
|
|
@@ -4513,90 +4519,90 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4513
4519
|
ref_key: "titleDom",
|
|
4514
4520
|
ref: O,
|
|
4515
4521
|
class: te(["absolute text-black", ie === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4516
|
-
style:
|
|
4522
|
+
style: G(he.value)
|
|
4517
4523
|
}, [
|
|
4518
|
-
|
|
4524
|
+
U(Mo, {
|
|
4519
4525
|
layout: f.layout,
|
|
4520
4526
|
code: f.info.textCode
|
|
4521
4527
|
}, null, 8, ["layout", "code"]),
|
|
4522
|
-
|
|
4528
|
+
U(ta, {
|
|
4523
4529
|
info: f.info,
|
|
4524
4530
|
layout: f.layout,
|
|
4525
4531
|
fontConfig: f.fontConfig,
|
|
4526
4532
|
data: f.data,
|
|
4527
4533
|
onChange: S[8] || (S[8] = (Ce) => t("changeInfo", Ce))
|
|
4528
4534
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
4529
|
-
|
|
4535
|
+
U(ka, {
|
|
4530
4536
|
layout: f.layout,
|
|
4531
4537
|
info: f.info,
|
|
4532
4538
|
isBindFlag: Z.value,
|
|
4533
4539
|
onChange: S[9] || (S[9] = (Ce) => t("changeExtentInfo", Ce))
|
|
4534
4540
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4535
|
-
|
|
4541
|
+
U(Ba, {
|
|
4536
4542
|
layout: f.layout,
|
|
4537
4543
|
isBindFlag: Z.value
|
|
4538
4544
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4539
|
-
ie ? P("", !0) : (s(),
|
|
4545
|
+
ie ? P("", !0) : (s(), Q(Ya, {
|
|
4540
4546
|
key: 0,
|
|
4541
4547
|
layout: f.layout,
|
|
4542
4548
|
data: f.data
|
|
4543
4549
|
}, null, 8, ["layout", "data"])),
|
|
4544
|
-
f.layout.writeScoreFlag && !ie ? (s(),
|
|
4550
|
+
f.layout.writeScoreFlag && !ie ? (s(), Q(_l, {
|
|
4545
4551
|
key: 1,
|
|
4546
4552
|
info: f.info,
|
|
4547
4553
|
layout: f.layout
|
|
4548
4554
|
}, null, 8, ["info", "layout"])) : P("", !0)
|
|
4549
4555
|
], 6)) : P("", !0),
|
|
4550
|
-
(s(!0), d(M, null,
|
|
4556
|
+
(s(!0), d(M, null, X(ie % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), Q(Qa, {
|
|
4551
4557
|
ref_for: !0,
|
|
4552
|
-
ref: (
|
|
4553
|
-
styleInfo: ae(
|
|
4558
|
+
ref: (Ge) => ee(Ge, F(Me, ie)),
|
|
4559
|
+
styleInfo: ae(F(Me, ie), ie),
|
|
4554
4560
|
column: f.layout.column,
|
|
4555
|
-
currentColumn:
|
|
4561
|
+
currentColumn: F(Me, ie),
|
|
4556
4562
|
showColBorder: ne.value
|
|
4557
4563
|
}, {
|
|
4558
4564
|
default: It(() => {
|
|
4559
|
-
var
|
|
4565
|
+
var Ge;
|
|
4560
4566
|
return [
|
|
4561
|
-
(s(!0), d(M, null,
|
|
4567
|
+
(s(!0), d(M, null, X(((Ge = a.value[F(Me, ie)]) == null ? void 0 : Ge.data) || [], (fe, zt) => {
|
|
4562
4568
|
var pt;
|
|
4563
4569
|
return s(), d(M, null, [
|
|
4564
|
-
fe.isHidden ? P("", !0) : (s(),
|
|
4570
|
+
fe.isHidden ? P("", !0) : (s(), Q(Ct, {
|
|
4565
4571
|
key: 0,
|
|
4566
4572
|
item: fe,
|
|
4567
4573
|
showColBorder: ne.value,
|
|
4568
4574
|
isFirst: !ie && !Me && !zt,
|
|
4569
4575
|
layout: f.layout,
|
|
4570
4576
|
isActive: ((pt = f.target.value) == null ? void 0 : pt.id) === fe.id,
|
|
4571
|
-
onClick: (xe) => ge({ type: fe.problemType ? x(
|
|
4577
|
+
onClick: (xe) => ge({ type: fe.problemType ? x(Y).headline : x(Y).headlineNotarea, value: fe }),
|
|
4572
4578
|
onDbclick: (xe) => t("dbHeadLineClick", fe)
|
|
4573
4579
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
4574
4580
|
ne.value ? (s(), d("div", {
|
|
4575
4581
|
key: 1,
|
|
4576
|
-
class: te([!fe.children.length && fe.problemType && "p-1 min-h-[2rem]", f.target.type === x(
|
|
4577
|
-
onClick: Le((xe) => ge({ type: fe.problemType ? x(
|
|
4582
|
+
class: te([!fe.children.length && fe.problemType && "p-1 min-h-[2rem]", f.target.type === x(Y).headline && f.target.value.id === fe.id && "active_headline"]),
|
|
4583
|
+
onClick: Le((xe) => ge({ type: fe.problemType ? x(Y).headline : x(Y).headlineNotarea, value: fe }), ["stop"]),
|
|
4578
4584
|
onDblclick: (xe) => t("dbHeadLineClick", fe)
|
|
4579
4585
|
}, [
|
|
4580
|
-
|
|
4586
|
+
U(Ye, {
|
|
4581
4587
|
data: fe,
|
|
4582
4588
|
layout: f.layout,
|
|
4583
4589
|
target: f.target,
|
|
4584
|
-
width:
|
|
4585
|
-
onClick: S[10] || (S[10] = (xe) => ge({ type: xe.problemType ? x(
|
|
4590
|
+
width: W(F(Me, ie)) - 10,
|
|
4591
|
+
onClick: S[10] || (S[10] = (xe) => ge({ type: xe.problemType ? x(Y).problem : x(Y).problemNotarea, value: xe })),
|
|
4586
4592
|
onDbclick: S[11] || (S[11] = (xe) => t("dbProblemClick", xe))
|
|
4587
4593
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4588
|
-
fe.children.length && fe.children[fe.children.length - 1].id ===
|
|
4594
|
+
fe.children.length && fe.children[fe.children.length - 1].id === J.value ? (s(), d("div", {
|
|
4589
4595
|
key: 0,
|
|
4590
4596
|
class: "border-t",
|
|
4591
4597
|
"data-block": x(Ee)
|
|
4592
|
-
}, null, 8,
|
|
4593
|
-
], 42,
|
|
4598
|
+
}, null, 8, Vs)) : P("", !0)
|
|
4599
|
+
], 42, Xs)) : (s(), Q(Ye, {
|
|
4594
4600
|
key: 2,
|
|
4595
4601
|
data: fe,
|
|
4596
4602
|
layout: f.layout,
|
|
4597
4603
|
target: f.target,
|
|
4598
|
-
width:
|
|
4599
|
-
onClick: S[12] || (S[12] = (xe) => ge({ type: xe.problemType ? x(
|
|
4604
|
+
width: W(F(Me, ie)),
|
|
4605
|
+
onClick: S[12] || (S[12] = (xe) => ge({ type: xe.problemType ? x(Y).problem : x(Y).problemNotarea, value: xe })),
|
|
4600
4606
|
onDbclick: S[13] || (S[13] = (xe) => t("dbProblemClick", xe))
|
|
4601
4607
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4602
4608
|
], 64);
|
|
@@ -4608,15 +4614,15 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4608
4614
|
], 64)) : P("", !0)
|
|
4609
4615
|
], 4))), 128))
|
|
4610
4616
|
]))
|
|
4611
|
-
], 8,
|
|
4617
|
+
], 8, Ks))
|
|
4612
4618
|
], 6)
|
|
4613
4619
|
])
|
|
4614
4620
|
], 64);
|
|
4615
4621
|
};
|
|
4616
4622
|
}
|
|
4617
4623
|
});
|
|
4618
|
-
const
|
|
4624
|
+
const ti = /* @__PURE__ */ ce(Js, [["__scopeId", "data-v-823af0fa"]]);
|
|
4619
4625
|
export {
|
|
4620
|
-
|
|
4621
|
-
|
|
4626
|
+
ei as Config,
|
|
4627
|
+
ti as default
|
|
4622
4628
|
};
|