alit-layout 1.1.6 → 1.1.8
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 +278 -277
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as
|
|
1
|
+
import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as M, renderList as oe, createElementVNode as v, normalizeStyle as j, unref as I, toDisplayString as X, createCommentVNode as P, ref as Q, watch as Ne, normalizeClass as Z, computed as A, createBlock as V, createTextVNode as Je, createVNode as te, pushScopeId as Ge, popScopeId as Qe, renderSlot as pt, onMounted as qe, nextTick as ot, withModifiers as Me, resolveComponent as Gt, resolveDynamicComponent as vt, normalizeProps as wt, guardReactiveProps as kt, withCtx as Ft, inject as Qt, withDirectives as xt, provide as qt } from "vue";
|
|
2
2
|
const je = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -530,7 +530,7 @@ const je = {
|
|
|
530
530
|
2: 1,
|
|
531
531
|
3: 1
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, D = {
|
|
534
534
|
page: "page",
|
|
535
535
|
headline: "headline",
|
|
536
536
|
text: "text",
|
|
@@ -746,7 +746,7 @@ const je = {
|
|
|
746
746
|
fill_f: "cardEmptyNum",
|
|
747
747
|
// 每行空数
|
|
748
748
|
fill_g: "cardArrange",
|
|
749
|
-
//
|
|
749
|
+
// 排列方向
|
|
750
750
|
fill_h: "cardQuesNum",
|
|
751
751
|
// 每组个数
|
|
752
752
|
// 选填题
|
|
@@ -786,7 +786,7 @@ const je = {
|
|
|
786
786
|
type: "radio",
|
|
787
787
|
label: "横向分栏",
|
|
788
788
|
key: d.article.col_a,
|
|
789
|
-
target: [
|
|
789
|
+
target: [D.headline],
|
|
790
790
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
791
791
|
option: [
|
|
792
792
|
{ name: "1栏", code: g.col_1 },
|
|
@@ -799,7 +799,7 @@ const je = {
|
|
|
799
799
|
type: "radio",
|
|
800
800
|
label: "横向分栏",
|
|
801
801
|
key: d.article.col_a,
|
|
802
|
-
target: [
|
|
802
|
+
target: [D.headline],
|
|
803
803
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
804
804
|
option: [
|
|
805
805
|
{ name: "1栏", code: g.col_1 },
|
|
@@ -816,7 +816,7 @@ const je = {
|
|
|
816
816
|
label: "插入题号样式控制",
|
|
817
817
|
key: d.article.slove_d,
|
|
818
818
|
code: "slove_insert_sub",
|
|
819
|
-
target: [
|
|
819
|
+
target: [D.problem],
|
|
820
820
|
option: [
|
|
821
821
|
{ name: "无", code: g.slove_5 },
|
|
822
822
|
{ name: "下划线", code: g.slove_6 }
|
|
@@ -899,7 +899,7 @@ const je = {
|
|
|
899
899
|
label: "插入题号样式控制",
|
|
900
900
|
key: d.article.slove_d,
|
|
901
901
|
code: "slove_insert_sub",
|
|
902
|
-
target: [
|
|
902
|
+
target: [D.problem],
|
|
903
903
|
option: [
|
|
904
904
|
{ name: "无", code: g.slove_5 },
|
|
905
905
|
{ name: "下划线", code: g.slove_6 }
|
|
@@ -922,7 +922,7 @@ const je = {
|
|
|
922
922
|
key: d.article.art_c,
|
|
923
923
|
detail: !0,
|
|
924
924
|
unit: "字",
|
|
925
|
-
target: [
|
|
925
|
+
target: [D.problem]
|
|
926
926
|
},
|
|
927
927
|
{
|
|
928
928
|
type: "slider",
|
|
@@ -931,7 +931,7 @@ const je = {
|
|
|
931
931
|
detail: !0,
|
|
932
932
|
min: () => 1,
|
|
933
933
|
max: (e) => Math.floor(e.style[d.article.art_c] / e.style[d.article.art_e]),
|
|
934
|
-
target: [
|
|
934
|
+
target: [D.problem]
|
|
935
935
|
},
|
|
936
936
|
{
|
|
937
937
|
type: "radio",
|
|
@@ -942,7 +942,7 @@ const je = {
|
|
|
942
942
|
{ name: "100", code: 100 }
|
|
943
943
|
],
|
|
944
944
|
detail: !0,
|
|
945
|
-
target: [
|
|
945
|
+
target: [D.problem]
|
|
946
946
|
}
|
|
947
947
|
]
|
|
948
948
|
},
|
|
@@ -983,7 +983,7 @@ const je = {
|
|
|
983
983
|
{
|
|
984
984
|
type: "slider",
|
|
985
985
|
label: "每组个数",
|
|
986
|
-
target: [
|
|
986
|
+
target: [D.page, D.headline],
|
|
987
987
|
key: d.sheet.choice_e,
|
|
988
988
|
show: (e) => e.style[d.sheet.choice_a] !== g.choice_2,
|
|
989
989
|
min: () => 1,
|
|
@@ -992,7 +992,7 @@ const je = {
|
|
|
992
992
|
{
|
|
993
993
|
type: "slider",
|
|
994
994
|
label: "列数",
|
|
995
|
-
target: [
|
|
995
|
+
target: [D.page, D.headline],
|
|
996
996
|
key: d.sheet.choice_d,
|
|
997
997
|
show: (e) => e.style[d.sheet.choice_a] === g.choice_1,
|
|
998
998
|
min: () => 1,
|
|
@@ -1038,7 +1038,7 @@ const je = {
|
|
|
1038
1038
|
type: "radio",
|
|
1039
1039
|
label: "分题换行",
|
|
1040
1040
|
key: d.sheet.fill_c,
|
|
1041
|
-
target: [
|
|
1041
|
+
target: [D.page, D.headline],
|
|
1042
1042
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1043
1043
|
option: [
|
|
1044
1044
|
{ name: "开启", code: g.fill_1 },
|
|
@@ -1079,7 +1079,7 @@ const je = {
|
|
|
1079
1079
|
type: "slider",
|
|
1080
1080
|
label: "每空高度",
|
|
1081
1081
|
key: d.sheet.fill_e,
|
|
1082
|
-
target: [
|
|
1082
|
+
target: [D.page, D.headline],
|
|
1083
1083
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1084
1084
|
max: () => 20
|
|
1085
1085
|
}
|
|
@@ -1101,7 +1101,7 @@ const je = {
|
|
|
1101
1101
|
label: "每空宽度",
|
|
1102
1102
|
key: d.sheet.fill_d,
|
|
1103
1103
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1104
|
-
target: [
|
|
1104
|
+
target: [D.problem],
|
|
1105
1105
|
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1106
1106
|
option: [
|
|
1107
1107
|
{ name: "1", code: 1 },
|
|
@@ -1133,7 +1133,7 @@ const je = {
|
|
|
1133
1133
|
type: "radio",
|
|
1134
1134
|
label: "排列方向",
|
|
1135
1135
|
key: d.sheet.choice_b,
|
|
1136
|
-
target: [
|
|
1136
|
+
target: [D.problem],
|
|
1137
1137
|
show: (e) => !e.style[d.sheet.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1138
1138
|
option: [
|
|
1139
1139
|
{ name: "横向", code: g.landscape },
|
|
@@ -1196,7 +1196,7 @@ const je = {
|
|
|
1196
1196
|
key: d.sheet.art_c,
|
|
1197
1197
|
detail: !0,
|
|
1198
1198
|
unit: "字",
|
|
1199
|
-
target: [
|
|
1199
|
+
target: [D.problem]
|
|
1200
1200
|
},
|
|
1201
1201
|
{
|
|
1202
1202
|
type: "slider",
|
|
@@ -1205,7 +1205,7 @@ const je = {
|
|
|
1205
1205
|
detail: !0,
|
|
1206
1206
|
min: () => 1,
|
|
1207
1207
|
max: (e) => Math.floor(e.style[d.sheet.art_c] / e.style[d.sheet.art_e]),
|
|
1208
|
-
target: [
|
|
1208
|
+
target: [D.problem]
|
|
1209
1209
|
},
|
|
1210
1210
|
{
|
|
1211
1211
|
type: "radio",
|
|
@@ -1216,7 +1216,7 @@ const je = {
|
|
|
1216
1216
|
{ name: "100", code: 100 }
|
|
1217
1217
|
],
|
|
1218
1218
|
detail: !0,
|
|
1219
|
-
target: [
|
|
1219
|
+
target: [D.problem]
|
|
1220
1220
|
},
|
|
1221
1221
|
{
|
|
1222
1222
|
type: "radio",
|
|
@@ -1289,7 +1289,7 @@ const je = {
|
|
|
1289
1289
|
{
|
|
1290
1290
|
type: "slider",
|
|
1291
1291
|
label: "每组个数",
|
|
1292
|
-
target: (e, t) => [p.synthesis].includes(e.problemType) ? [
|
|
1292
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [D.problem] : [D.page, D.headline],
|
|
1293
1293
|
key: d.sheetCard.choice_e,
|
|
1294
1294
|
show: (e) => e.style[d.sheetCard.choice_a] === g.choice_1 || e.style[d.sheetCard.choice_a] === g.choice_3 && e.style[d.sheetCard.choice_b] === g.portrait,
|
|
1295
1295
|
min: () => 1,
|
|
@@ -1298,7 +1298,7 @@ const je = {
|
|
|
1298
1298
|
{
|
|
1299
1299
|
type: "slider",
|
|
1300
1300
|
label: "列数",
|
|
1301
|
-
target: (e, t) => [p.synthesis].includes(e.problemType) ? [
|
|
1301
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [D.problem] : [D.page, D.headline],
|
|
1302
1302
|
key: d.sheetCard.choice_d,
|
|
1303
1303
|
show: (e) => e.style[d.sheetCard.choice_a] !== g.choice_2,
|
|
1304
1304
|
min: () => 1,
|
|
@@ -1307,7 +1307,7 @@ const je = {
|
|
|
1307
1307
|
{
|
|
1308
1308
|
type: "radio",
|
|
1309
1309
|
label: "排列偏好",
|
|
1310
|
-
target: (e, t) => [p.synthesis].includes(e.problemType) ? [
|
|
1310
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [D.problem] : [D.page, D.headline],
|
|
1311
1311
|
key: d.sheetCard.choice_f,
|
|
1312
1312
|
show: (e) => e.style[d.sheetCard.choice_a] !== g.choice_2,
|
|
1313
1313
|
option: [
|
|
@@ -1345,7 +1345,7 @@ const je = {
|
|
|
1345
1345
|
type: "radio",
|
|
1346
1346
|
label: "分题换行",
|
|
1347
1347
|
key: d.sheetCard.fill_c,
|
|
1348
|
-
target: (e, t) => [p.synthesis].includes(e.problemType) ? [
|
|
1348
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [D.problem] : [p.mix].includes(e.problemType) ? [] : [D.page, D.headline],
|
|
1349
1349
|
show: (e) => !e.style[d.sheetCard.fill_b],
|
|
1350
1350
|
option: [
|
|
1351
1351
|
{ name: "开启", code: g.fill_1 },
|
|
@@ -1356,7 +1356,7 @@ const je = {
|
|
|
1356
1356
|
type: "radio",
|
|
1357
1357
|
label: "排列方向",
|
|
1358
1358
|
key: d.sheetCard.fill_g,
|
|
1359
|
-
target: [
|
|
1359
|
+
target: [D.page, D.headline],
|
|
1360
1360
|
show: (e) => e.style[d.sheetCard.fill_c] === g.fill_2 && [p.fill, p.fill_english].includes(e.problemType),
|
|
1361
1361
|
option: [
|
|
1362
1362
|
{ name: "横向", code: g.landscape },
|
|
@@ -1367,7 +1367,7 @@ const je = {
|
|
|
1367
1367
|
type: "slider",
|
|
1368
1368
|
label: "每组个数",
|
|
1369
1369
|
key: d.sheetCard.fill_h,
|
|
1370
|
-
target: [
|
|
1370
|
+
target: [D.page, D.headline],
|
|
1371
1371
|
show: (e) => e.style[d.sheetCard.fill_g] === g.portrait,
|
|
1372
1372
|
min: () => 1,
|
|
1373
1373
|
max: () => 10
|
|
@@ -1377,7 +1377,7 @@ const je = {
|
|
|
1377
1377
|
type: "radio",
|
|
1378
1378
|
label: "每空宽度",
|
|
1379
1379
|
key: d.sheetCard.fill_d,
|
|
1380
|
-
target: [
|
|
1380
|
+
target: [D.problem],
|
|
1381
1381
|
detail: !0,
|
|
1382
1382
|
problemCode: [p.fill, p.fill_english],
|
|
1383
1383
|
show: (e) => !e.style[d.sheetCard.fill_b] && e.style[d.sheetCard.fill_g] !== g.portrait,
|
|
@@ -1395,7 +1395,7 @@ const je = {
|
|
|
1395
1395
|
type: "radio",
|
|
1396
1396
|
label: "每行空数",
|
|
1397
1397
|
key: d.sheetCard.fill_f,
|
|
1398
|
-
target: [
|
|
1398
|
+
target: [D.page, D.headline],
|
|
1399
1399
|
show: (e) => !e.style[d.sheetCard.fill_b] && e.children.length,
|
|
1400
1400
|
option: [
|
|
1401
1401
|
{ name: "1", code: 1 },
|
|
@@ -1410,7 +1410,7 @@ const je = {
|
|
|
1410
1410
|
type: "slider",
|
|
1411
1411
|
label: "每空高度",
|
|
1412
1412
|
key: d.sheetCard.fill_e,
|
|
1413
|
-
target: (e, t) => [p.synthesis, p.mix].includes(e.problemType) ? [
|
|
1413
|
+
target: (e, t) => [p.synthesis, p.mix].includes(e.problemType) ? [D.problem] : [D.page, D.headline],
|
|
1414
1414
|
show: (e) => !e.style[d.sheetCard.fill_b],
|
|
1415
1415
|
max: () => 20
|
|
1416
1416
|
}
|
|
@@ -1437,7 +1437,7 @@ const je = {
|
|
|
1437
1437
|
type: "radio",
|
|
1438
1438
|
label: "主客分离",
|
|
1439
1439
|
key: d.sheetCard.mix_c,
|
|
1440
|
-
show: (e) => !e.style[d.sheetCard.mix_a],
|
|
1440
|
+
show: (e) => !e.style[d.sheetCard.mix_a] && !e.rootPolymer,
|
|
1441
1441
|
option: [
|
|
1442
1442
|
{ name: "分离", code: !0 },
|
|
1443
1443
|
{ name: "不分离", code: !1 }
|
|
@@ -1460,17 +1460,17 @@ const je = {
|
|
|
1460
1460
|
// { name: 'TF', code: problemLayoutVal.decide_2 }
|
|
1461
1461
|
// ]
|
|
1462
1462
|
// },
|
|
1463
|
-
{
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
},
|
|
1463
|
+
// {
|
|
1464
|
+
// type: 'radio',
|
|
1465
|
+
// label: '排列方向',
|
|
1466
|
+
// key: problemLayoutKey.sheetCard.choice_b,
|
|
1467
|
+
// target: [toolGroup.problem],
|
|
1468
|
+
// show: (item: Strany) => !item.style[problemLayoutKey.sheetCard.mix_a] && !item.style[problemLayoutKey.sheetCard.mix_c] && (!(item.mixType || []).find((v: Strany) => ![problemCode.choice, problemCode.choice_multiple].includes(v.problemType))),
|
|
1469
|
+
// option: [
|
|
1470
|
+
// { name: '横向', code: problemLayoutVal.landscape },
|
|
1471
|
+
// { name: '竖向', code: problemLayoutVal.portrait }
|
|
1472
|
+
// ]
|
|
1473
|
+
// },
|
|
1474
1474
|
{
|
|
1475
1475
|
type: "radio",
|
|
1476
1476
|
label: "题目计分提示",
|
|
@@ -1518,7 +1518,7 @@ const je = {
|
|
|
1518
1518
|
label: "格子尺寸",
|
|
1519
1519
|
key: d.article.art_b,
|
|
1520
1520
|
detail: !0,
|
|
1521
|
-
target: [
|
|
1521
|
+
target: [D.problem],
|
|
1522
1522
|
show: (e) => e.artBlock,
|
|
1523
1523
|
min: () => 27,
|
|
1524
1524
|
max: () => 40,
|
|
@@ -1533,7 +1533,7 @@ const je = {
|
|
|
1533
1533
|
key: d.sheetCard.art_c,
|
|
1534
1534
|
detail: !0,
|
|
1535
1535
|
unit: "字",
|
|
1536
|
-
target: [
|
|
1536
|
+
target: [D.problem],
|
|
1537
1537
|
show: (e) => e.artBlock
|
|
1538
1538
|
},
|
|
1539
1539
|
{
|
|
@@ -1543,7 +1543,7 @@ const je = {
|
|
|
1543
1543
|
detail: !0,
|
|
1544
1544
|
min: () => 1,
|
|
1545
1545
|
max: (e) => Math.floor(e.style[d.sheetCard.art_c] / e.style[d.sheetCard.art_e]),
|
|
1546
|
-
target: [
|
|
1546
|
+
target: [D.problem],
|
|
1547
1547
|
show: (e) => e.artBlock
|
|
1548
1548
|
},
|
|
1549
1549
|
{
|
|
@@ -1555,7 +1555,7 @@ const je = {
|
|
|
1555
1555
|
{ name: "100", code: 100 }
|
|
1556
1556
|
],
|
|
1557
1557
|
detail: !0,
|
|
1558
|
-
target: [
|
|
1558
|
+
target: [D.problem],
|
|
1559
1559
|
show: (e) => e.artBlock
|
|
1560
1560
|
},
|
|
1561
1561
|
{
|
|
@@ -1564,7 +1564,7 @@ const je = {
|
|
|
1564
1564
|
key: d.sheetCard.art_c,
|
|
1565
1565
|
detail: !0,
|
|
1566
1566
|
unit: "行",
|
|
1567
|
-
target: [
|
|
1567
|
+
target: [D.problem],
|
|
1568
1568
|
show: (e) => !e.artBlock
|
|
1569
1569
|
},
|
|
1570
1570
|
{
|
|
@@ -1584,6 +1584,7 @@ const je = {
|
|
|
1584
1584
|
type: "radio",
|
|
1585
1585
|
label: "主客分离",
|
|
1586
1586
|
key: d.sheetCard.synthesis_a,
|
|
1587
|
+
show: (e) => !e.rootPolymer,
|
|
1587
1588
|
option: [
|
|
1588
1589
|
{ name: "分离", code: !0 },
|
|
1589
1590
|
{ name: "不分离", code: !1 }
|
|
@@ -1747,7 +1748,7 @@ const je = {
|
|
|
1747
1748
|
subRangeOption: ao,
|
|
1748
1749
|
subRule: Ve,
|
|
1749
1750
|
subRuleOption: lo,
|
|
1750
|
-
toolGroup:
|
|
1751
|
+
toolGroup: D
|
|
1751
1752
|
}, Symbol.toStringTag, { value: "Module" })), yt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), _o = "TF".split(""), fo = {
|
|
1752
1753
|
a4: "TYPE_A4",
|
|
1753
1754
|
a4x: "TYPE_A4",
|
|
@@ -1868,22 +1869,22 @@ const je = {
|
|
|
1868
1869
|
};
|
|
1869
1870
|
return (a, c) => {
|
|
1870
1871
|
var y;
|
|
1871
|
-
return i(), h(
|
|
1872
|
-
(i(), h(
|
|
1872
|
+
return i(), h(M, null, [
|
|
1873
|
+
(i(), h(M, null, oe(["lt", "rt", "lb", "rb"], (n) => v("span", {
|
|
1873
1874
|
key: n,
|
|
1874
1875
|
class: "absolute w-8 bg-black point_item",
|
|
1875
1876
|
style: j(o(n)),
|
|
1876
1877
|
"data-xine": I(T).point + n
|
|
1877
1878
|
}, null, 12, go)), 64)),
|
|
1878
|
-
(i(!0), h(
|
|
1879
|
-
(i(), h(
|
|
1879
|
+
(i(!0), h(M, null, oe((a.currentPage % 2 ? a.layout.backColumn : a.layout.column) - 1, (n) => (i(), h(M, { key: n }, [
|
|
1880
|
+
(i(), h(M, null, oe(["t", "b"], (u) => v("span", {
|
|
1880
1881
|
key: u,
|
|
1881
1882
|
class: "absolute bg-black w-8 point_item",
|
|
1882
1883
|
style: j(r(n, u)),
|
|
1883
1884
|
"data-xine": I(T).point + u
|
|
1884
1885
|
}, null, 12, bo)), 64))
|
|
1885
1886
|
], 64))), 128)),
|
|
1886
|
-
(i(), h(
|
|
1887
|
+
(i(), h(M, null, oe(["l", "r"], (n) => v("span", {
|
|
1887
1888
|
key: n,
|
|
1888
1889
|
class: "absolute bg-black h-8",
|
|
1889
1890
|
style: j(s(n)),
|
|
@@ -1894,7 +1895,7 @@ const je = {
|
|
|
1894
1895
|
style: j(l()),
|
|
1895
1896
|
"data-xine": I(T).page
|
|
1896
1897
|
}, [
|
|
1897
|
-
(i(!0), h(
|
|
1898
|
+
(i(!0), h(M, null, oe(a.currentPage + 1, (n, u) => (i(), h("span", {
|
|
1898
1899
|
key: n,
|
|
1899
1900
|
class: "inline-block bg-black mx-2 page_item",
|
|
1900
1901
|
"data-xine": I(T).page_item + u
|
|
@@ -2156,7 +2157,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2156
2157
|
name: s.value,
|
|
2157
2158
|
class: "p-0 -translate-y-[1px]"
|
|
2158
2159
|
}, null, 8, ["name"])) : (i(), h("span", Zo, "分")),
|
|
2159
|
-
a.layout.writeScoreFlag ? (i(), h(
|
|
2160
|
+
a.layout.writeScoreFlag ? (i(), h(M, { key: 4 }, [
|
|
2160
2161
|
v("span", null, "(试题" + X(l.value), 1),
|
|
2161
2162
|
s.value ? (i(), V(ve, {
|
|
2162
2163
|
key: 0,
|
|
@@ -2171,7 +2172,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2171
2172
|
}, null, 8, ["name"])) : (i(), h("span", ta, "分")),
|
|
2172
2173
|
oa
|
|
2173
2174
|
], 64)) : P("", !0),
|
|
2174
|
-
r.value ? (i(), h(
|
|
2175
|
+
r.value ? (i(), h(M, { key: 5 }, [
|
|
2175
2176
|
v("span", null, ";附加题:" + X(r.value), 1),
|
|
2176
2177
|
s.value ? (i(), V(ve, {
|
|
2177
2178
|
key: 0,
|
|
@@ -2196,7 +2197,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2196
2197
|
return (l, r) => (i(), h("ul", {
|
|
2197
2198
|
class: Z(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2198
2199
|
}, [
|
|
2199
|
-
(i(), h(
|
|
2200
|
+
(i(), h(M, null, oe(o, (s, a) => v("li", {
|
|
2200
2201
|
key: s,
|
|
2201
2202
|
class: Z(["flex flex-1 min-w-[12rem]", l.isRow && a && "ml-2"])
|
|
2202
2203
|
}, [
|
|
@@ -2229,12 +2230,12 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2229
2230
|
class: "flex-1 flex flex-col",
|
|
2230
2231
|
"data-xine": I(T).en_num
|
|
2231
2232
|
}, [
|
|
2232
|
-
(i(), h(
|
|
2233
|
+
(i(), h(M, null, oe(3, (l, r) => v("p", {
|
|
2233
2234
|
key: l,
|
|
2234
2235
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2235
2236
|
"data-xine": I(T).en_num_group
|
|
2236
2237
|
}, [
|
|
2237
|
-
(i(), h(
|
|
2238
|
+
(i(), h(M, null, oe(10, (s) => v("span", {
|
|
2238
2239
|
key: s,
|
|
2239
2240
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2240
2241
|
"data-xine": I(T).en_num_item
|
|
@@ -2262,12 +2263,12 @@ const ua = /* @__PURE__ */ ye(da, [["__scopeId", "data-v-91b25fab"]]), ha = ["da
|
|
|
2262
2263
|
class: "flex-1 flex flex-col",
|
|
2263
2264
|
"data-xine": I(T).en_num
|
|
2264
2265
|
}, [
|
|
2265
|
-
(i(), h(
|
|
2266
|
+
(i(), h(M, null, oe(4, (l, r) => v("p", {
|
|
2266
2267
|
key: l,
|
|
2267
2268
|
class: Z(["flex-1 flex items-center text-0 px-1", r && "border-t"]),
|
|
2268
2269
|
"data-xine": I(T).en_num_group
|
|
2269
2270
|
}, [
|
|
2270
|
-
(i(), h(
|
|
2271
|
+
(i(), h(M, null, oe(10, (s) => v("span", {
|
|
2271
2272
|
key: s,
|
|
2272
2273
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2273
2274
|
"data-xine": I(T).en_num_item
|
|
@@ -2289,7 +2290,7 @@ const Bt = /* @__PURE__ */ ye(fa, [["__scopeId", "data-v-96e8d41d"]]), ga = /* @
|
|
|
2289
2290
|
return (l, r) => (i(), h("ul", {
|
|
2290
2291
|
class: Z(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2291
2292
|
}, [
|
|
2292
|
-
(i(), h(
|
|
2293
|
+
(i(), h(M, null, oe(o, (s, a) => v("li", {
|
|
2293
2294
|
key: s,
|
|
2294
2295
|
class: Z(["flex flex-1", l.isRow && a && "ml-2"])
|
|
2295
2296
|
}, [
|
|
@@ -2374,11 +2375,11 @@ const Ca = /* @__PURE__ */ ye(xa, [["__scopeId", "data-v-4d37cd56"]]), Oe = (e)
|
|
|
2374
2375
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2375
2376
|
];
|
|
2376
2377
|
});
|
|
2377
|
-
return (l, r) => (i(), h(
|
|
2378
|
+
return (l, r) => (i(), h(M, null, [
|
|
2378
2379
|
l.layout.noteFlag ? (i(), h("div", Sa, [
|
|
2379
2380
|
$a,
|
|
2380
2381
|
v("div", Ta, [
|
|
2381
|
-
(i(!0), h(
|
|
2382
|
+
(i(!0), h(M, null, oe(o.value, (s) => (i(), h("p", {
|
|
2382
2383
|
key: s,
|
|
2383
2384
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2384
2385
|
}, X(s), 1))), 128))
|
|
@@ -2442,7 +2443,7 @@ const Ra = {
|
|
|
2442
2443
|
const t = e, o = A(() => t.data.filter((l) => l.problemType));
|
|
2443
2444
|
return (l, r) => l.layout.scoreFlag ? (i(), h("ul", Ra, [
|
|
2444
2445
|
Ha,
|
|
2445
|
-
(i(!0), h(
|
|
2446
|
+
(i(!0), h(M, null, oe(o.value, (s, a) => (i(), h("li", {
|
|
2446
2447
|
key: s.id,
|
|
2447
2448
|
class: "flex-1 flex flex-col border-l"
|
|
2448
2449
|
}, [
|
|
@@ -2477,7 +2478,7 @@ const Ra = {
|
|
|
2477
2478
|
bottom: `${Ie.bottom - 1}px`,
|
|
2478
2479
|
right: `${Ie.right - 1}px`
|
|
2479
2480
|
})), c = A(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2480
|
-
return (y, n) => (i(), h(
|
|
2481
|
+
return (y, n) => (i(), h(M, null, [
|
|
2481
2482
|
y.showColBorder ? (i(), h("div", {
|
|
2482
2483
|
key: 0,
|
|
2483
2484
|
class: Z(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
|
|
@@ -2540,7 +2541,7 @@ const Ua = /* @__PURE__ */ ye(Ya, [["__scopeId", "data-v-e102e805"]]), Ka = (e)
|
|
|
2540
2541
|
style: j({ width: `${o.height - 20}px` })
|
|
2541
2542
|
}, [
|
|
2542
2543
|
v("div", ja, [
|
|
2543
|
-
(i(!0), h(
|
|
2544
|
+
(i(!0), h(M, null, oe(o.bindInfo, (r, s) => (i(), h(M, { key: r }, [
|
|
2544
2545
|
s === 2 && o.bindInfo.length === 5 ? (i(), h("span", Va)) : P("", !0),
|
|
2545
2546
|
v("span", {
|
|
2546
2547
|
class: Z(["flex-1 whitespace-nowrap w-20 mr-4 mt-8 overflow-hidden", o.bindInfo.length === 4 && "min-w-[40%] max-w-[50%]", o.bindInfo.length === 5 && "min-w-[30%] max-w-[35%]"])
|
|
@@ -2582,7 +2583,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2582
2583
|
class: "flex h-full divide-x divide-solid",
|
|
2583
2584
|
"data-xine": I(T).score_base
|
|
2584
2585
|
}, [
|
|
2585
|
-
(i(!0), h(
|
|
2586
|
+
(i(!0), h(M, null, oe(l.value, (a, c) => (i(), h("li", {
|
|
2586
2587
|
class: "flex items-center justify-center relative score_line",
|
|
2587
2588
|
style: j({ width: `${I(et)[r.layout.scoreLineSize].value}px` }),
|
|
2588
2589
|
"data-xine": I(T).score_item
|
|
@@ -2622,7 +2623,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2622
2623
|
t.item.hasHalfScore && u.push([0.5]), a.value = u, r.value = !!u.flat().find((z) => `${z}`.length > 3);
|
|
2623
2624
|
});
|
|
2624
2625
|
}, n = (u) => t.item.hasHalfScore ? [T.score_half, T.score_base, T.score_tenbit][a.value.length - u - 1] : [T.score_base, T.score_tenbit][a.value.length - u - 1];
|
|
2625
|
-
return (u, z) => u.layout.handReadFlag ? (i(), h(
|
|
2626
|
+
return (u, z) => u.layout.handReadFlag ? (i(), h(M, { key: 0 }, [
|
|
2626
2627
|
u.layout.simpleScoreBarFlag && !u.static ? (i(), V(ul, {
|
|
2627
2628
|
key: 0,
|
|
2628
2629
|
item: u.item,
|
|
@@ -2635,11 +2636,11 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2635
2636
|
"data-block": I(Se),
|
|
2636
2637
|
"data-xine": I(T).score
|
|
2637
2638
|
}, [
|
|
2638
|
-
(i(!0), h(
|
|
2639
|
+
(i(!0), h(M, null, oe(a.value, (m, F) => (i(), h("ul", {
|
|
2639
2640
|
class: "flex divide-x divide-solid",
|
|
2640
2641
|
"data-xine": n(F)
|
|
2641
2642
|
}, [
|
|
2642
|
-
(i(!0), h(
|
|
2643
|
+
(i(!0), h(M, null, oe(m, (B) => (i(), h("li", {
|
|
2643
2644
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2644
2645
|
style: j({ width: `${I(et)[u.layout.scoreLineSize].value}px` }),
|
|
2645
2646
|
"data-xine": B.toString() ? I(T).score_item : ""
|
|
@@ -2754,7 +2755,7 @@ const Be = /* @__PURE__ */ ye(wl, [["__scopeId", "data-v-e6258dec"]]), kl = ["da
|
|
|
2754
2755
|
"data-xine": I(T).choice + n.item.id
|
|
2755
2756
|
}, [
|
|
2756
2757
|
Ml,
|
|
2757
|
-
(i(!0), h(
|
|
2758
|
+
(i(!0), h(M, null, oe(y.value, (z, m) => (i(), h("span", Dl, [
|
|
2758
2759
|
v("span", null, X(z), 1),
|
|
2759
2760
|
v("span", {
|
|
2760
2761
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
@@ -2788,7 +2789,7 @@ const zl = /* @__PURE__ */ ye(Nl, [["render", Ol]]), Rl = ["data-block"], Hl = [
|
|
|
2788
2789
|
class: "flex items-center red_sheet",
|
|
2789
2790
|
"data-block": I(Se)
|
|
2790
2791
|
}, [
|
|
2791
|
-
(i(!0), h(
|
|
2792
|
+
(i(!0), h(M, null, oe(t.item.optList, (l, r) => (i(), h("span", {
|
|
2792
2793
|
class: Z(["fill_block", t.layout.showAnswer && t.item.answer.includes(I(dt)[r]) && "bg-success border-success"]),
|
|
2793
2794
|
style: j({ width: `${I(Le)[t.layout.fillSize].value + 1}px`, height: `${I(Le)[t.layout.fillSize].height + 1}px` }),
|
|
2794
2795
|
"data-xine": I(T).fill + r
|
|
@@ -2823,7 +2824,7 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2823
2824
|
class: "flex red_sheet",
|
|
2824
2825
|
"data-block": I(Se)
|
|
2825
2826
|
}, [
|
|
2826
|
-
l.item.style[I(d)[l.layout.mode].decide_a] === I(g).decide_1 ? (i(), h(
|
|
2827
|
+
l.item.style[I(d)[l.layout.mode].decide_a] === I(g).decide_1 ? (i(), h(M, { key: 0 }, [
|
|
2827
2828
|
v("span", {
|
|
2828
2829
|
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2829
2830
|
style: j(o.value),
|
|
@@ -2844,7 +2845,7 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2844
2845
|
width: 1
|
|
2845
2846
|
})
|
|
2846
2847
|
], 14, Kl)
|
|
2847
|
-
], 64)) : (i(), h(
|
|
2848
|
+
], 64)) : (i(), h(M, { key: 1 }, [
|
|
2848
2849
|
v("span", {
|
|
2849
2850
|
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2850
2851
|
style: j(o.value),
|
|
@@ -2899,7 +2900,7 @@ const ln = /* @__PURE__ */ ye(on, [["render", an]]), nn = ["data-block", "data-x
|
|
|
2899
2900
|
},
|
|
2900
2901
|
setup(e) {
|
|
2901
2902
|
const t = e;
|
|
2902
|
-
return (o, l) => (i(), h(
|
|
2903
|
+
return (o, l) => (i(), h(M, null, [
|
|
2903
2904
|
v("div", {
|
|
2904
2905
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2905
2906
|
style: j({ height: `${20 + o.item.style[I(d)[t.layout.mode].fill_e]}px` }),
|
|
@@ -2958,7 +2959,7 @@ const vn = /* @__PURE__ */ ye(gn, [["render", bn]]), wn = /* @__PURE__ */ v("div
|
|
|
2958
2959
|
layout: {}
|
|
2959
2960
|
},
|
|
2960
2961
|
setup(e) {
|
|
2961
|
-
return (t, o) => (i(), h(
|
|
2962
|
+
return (t, o) => (i(), h(M, null, [
|
|
2962
2963
|
wn,
|
|
2963
2964
|
te(nt, {
|
|
2964
2965
|
item: t.item,
|
|
@@ -3037,14 +3038,14 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3037
3038
|
}, null, 8, ["item", "layout"])
|
|
3038
3039
|
])
|
|
3039
3040
|
], 8, zn)),
|
|
3040
|
-
m.item.artBlock ? (i(), h(
|
|
3041
|
+
m.item.artBlock ? (i(), h(M, { key: 1 }, [
|
|
3041
3042
|
m.item.beforeArt && !m.item.startAnswerLen ? (i(), V(Be, {
|
|
3042
3043
|
key: 0,
|
|
3043
3044
|
data: m.item.beforeArt,
|
|
3044
3045
|
"data-bart": m.item.id,
|
|
3045
3046
|
class: "indent-[2em]"
|
|
3046
3047
|
}, null, 8, ["data", "data-bart"])) : P("", !0),
|
|
3047
|
-
(i(!0), h(
|
|
3048
|
+
(i(!0), h(M, null, oe(c.value, (B, J) => (i(), h("p", {
|
|
3048
3049
|
ref_for: !0,
|
|
3049
3050
|
ref_key: "line",
|
|
3050
3051
|
ref: s,
|
|
@@ -3053,11 +3054,11 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3053
3054
|
"data-size": m.item.startAnswerLen + (J + 1) * o.value,
|
|
3054
3055
|
style: j(n.value)
|
|
3055
3056
|
}, [
|
|
3056
|
-
(i(!0), h(
|
|
3057
|
+
(i(!0), h(M, null, oe(o.value, (L, H) => (i(), h("span", {
|
|
3057
3058
|
class: Z([z.value[J * o.value + H] && "flex items-center justify-center"]),
|
|
3058
3059
|
style: j(u.value)
|
|
3059
3060
|
}, X(z.value[J * o.value + H] || ""), 7))), 256)),
|
|
3060
|
-
(i(!0), h(
|
|
3061
|
+
(i(!0), h(M, null, oe(a.value, (L) => (i(), h(M, null, [
|
|
3061
3062
|
m.item.startAnswerLen + J * o.value < L && m.item.startAnswerLen + (J + 1) * o.value >= L ? (i(), h("span", {
|
|
3062
3063
|
key: 0,
|
|
3063
3064
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
@@ -3123,7 +3124,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3123
3124
|
style: j({ width: l.value }),
|
|
3124
3125
|
"data-block": I(De)
|
|
3125
3126
|
}, [
|
|
3126
|
-
(i(!0), h(
|
|
3127
|
+
(i(!0), h(M, null, oe(o.value, (c, y) => (i(), h(M, null, [
|
|
3127
3128
|
y ? (i(), h("span", Un, " - ")) : P("", !0),
|
|
3128
3129
|
c[0] ? (i(), h("span", Kn, X(c[0]), 1)) : P("", !0),
|
|
3129
3130
|
c[1] ? (i(), h("span", jn, "(" + X(c[1]) + ")", 1)) : P("", !0),
|
|
@@ -3188,77 +3189,77 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3188
3189
|
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
3189
3190
|
fill: [p.fill, p.fill_english]
|
|
3190
3191
|
};
|
|
3191
|
-
return Object.keys(p).reduce((
|
|
3192
|
+
return Object.keys(p).reduce((_, O) => ({ ..._, [p[O]]: Object.keys(b).find((q) => b[q].includes(p[O])) || `${O}${o}` }), {});
|
|
3192
3193
|
}), a = A(() => [ke.one_choice, ke.another_choice].includes(e.data.problemType)), c = A(() => {
|
|
3193
3194
|
let b = [];
|
|
3194
|
-
return e.data.children.forEach((
|
|
3195
|
+
return e.data.children.forEach((_) => {
|
|
3195
3196
|
let O = b[b.length - 1];
|
|
3196
|
-
((
|
|
3197
|
+
((_.polymerId || l.includes(e.data.problemType)) && l.includes(_.problemType) || [Re.fill, Re.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === g.portrait) && _.style ? (!O || O.type !== "polymer" || O.polymerId !== _.polymerId) && (b.push({
|
|
3197
3198
|
type: "polymer",
|
|
3198
|
-
problemType:
|
|
3199
|
-
polymerId:
|
|
3200
|
-
styleInfo:
|
|
3199
|
+
problemType: _.problemType,
|
|
3200
|
+
polymerId: _.polymerId,
|
|
3201
|
+
styleInfo: _.polymerId ? _.style : e.data.style,
|
|
3201
3202
|
children: [],
|
|
3202
3203
|
rawChildren: e.data.rawChildren || []
|
|
3203
3204
|
}), O = b[b.length - 1]) : (!O || O.type !== "base") && (b.push({
|
|
3204
3205
|
type: "base",
|
|
3205
3206
|
children: []
|
|
3206
|
-
}), O = b[b.length - 1]), O.children.push({ ...
|
|
3207
|
-
}), b = b.map((
|
|
3207
|
+
}), O = b[b.length - 1]), O.children.push({ ..._, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3208
|
+
}), b = b.map((_) => {
|
|
3208
3209
|
var O;
|
|
3209
|
-
if (
|
|
3210
|
-
const q = Math.min(Math.floor(e.width / (Math.max(...
|
|
3211
|
-
if (
|
|
3212
|
-
const Y =
|
|
3210
|
+
if (_.type === "polymer") {
|
|
3211
|
+
const q = Math.min(Math.floor(e.width / (Math.max(..._.children.map((Y) => Y.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[_.polymerId] || n.value[((O = _.children[0]) == null ? void 0 : O.polymerId) || ""] || 0) * 10 + 10)), _.styleInfo[d[e.layout.mode].choice_d] || 10), fe = _.styleInfo[d[e.layout.mode].choice_b] === g.landscape;
|
|
3212
|
+
if (_.styleInfo[d[e.layout.mode].choice_a] === g.choice_1) {
|
|
3213
|
+
const Y = _.styleInfo[d[e.layout.mode].choice_e], ge = fe ? (
|
|
3213
3214
|
/*col * line || */
|
|
3214
|
-
|
|
3215
|
+
_.styleInfo[d[e.layout.mode].choice_e] || 20
|
|
3215
3216
|
) : q * Y;
|
|
3216
|
-
return [...Array(Math.ceil(
|
|
3217
|
-
...
|
|
3217
|
+
return [...Array(Math.ceil(_.children.length / ge)).keys()].map((de, x) => ({
|
|
3218
|
+
..._,
|
|
3218
3219
|
groupIndex: x,
|
|
3219
|
-
children:
|
|
3220
|
+
children: _.children.slice(x * ge, (x + 1) * ge)
|
|
3220
3221
|
}));
|
|
3221
|
-
} else if (
|
|
3222
|
+
} else if (_.styleInfo[d[e.layout.mode].choice_a] === g.choice_3) {
|
|
3222
3223
|
let Y = [], ge = 0;
|
|
3223
|
-
const de = q *
|
|
3224
|
-
return
|
|
3224
|
+
const de = q * _.styleInfo[d[e.layout.mode].choice_e];
|
|
3225
|
+
return _.children.forEach((x) => {
|
|
3225
3226
|
(x.optList.length !== ge || !Object.values(je).includes(x.problemType) && !Y.length || Y[Y.length - 1].length >= de) && (Y.push([]), ge = x.optList.length), Y[Y.length - 1].push(x);
|
|
3226
|
-
}), Y.map((x, C) => ({ ...
|
|
3227
|
-
} else if (
|
|
3228
|
-
const Y = Math.floor(
|
|
3229
|
-
return [...Array(Math.ceil(
|
|
3230
|
-
...
|
|
3227
|
+
}), Y.map((x, C) => ({ ..._, groupIndex: C, children: x }));
|
|
3228
|
+
} else if (_.styleInfo[d[e.layout.mode].fill_g] === g.portrait) {
|
|
3229
|
+
const Y = Math.floor(_.styleInfo[d[e.layout.mode].fill_f]) * (_.styleInfo[d[e.layout.mode].fill_h] || 10);
|
|
3230
|
+
return [...Array(Math.ceil(_.children.length / Y)).keys()].map((ge, de) => ({
|
|
3231
|
+
..._,
|
|
3231
3232
|
groupIndex: de,
|
|
3232
|
-
children:
|
|
3233
|
+
children: _.children.slice(de * Y, (de + 1) * Y).map((x) => ({
|
|
3233
3234
|
...x,
|
|
3234
3235
|
style: {
|
|
3235
3236
|
...x.style,
|
|
3236
3237
|
[d[e.layout.mode].fill_b]: !1,
|
|
3237
|
-
[d[e.layout.mode].fill_d]:
|
|
3238
|
+
[d[e.layout.mode].fill_d]: _.styleInfo[d[e.layout.mode].fill_d]
|
|
3238
3239
|
}
|
|
3239
3240
|
}))
|
|
3240
3241
|
}));
|
|
3241
3242
|
} else
|
|
3242
|
-
return
|
|
3243
|
+
return _;
|
|
3243
3244
|
} else
|
|
3244
|
-
return
|
|
3245
|
+
return _;
|
|
3245
3246
|
}).flat(), b;
|
|
3246
3247
|
}), y = A(() => {
|
|
3247
3248
|
let b = {};
|
|
3248
|
-
return e.data.children.forEach((
|
|
3249
|
-
|
|
3249
|
+
return e.data.children.forEach((_) => {
|
|
3250
|
+
_.polymerId && (b[_.polymerId] || (b[_.polymerId] = []), b[_.polymerId][_.polymerOrder || 0] = _.id);
|
|
3250
3251
|
}), b;
|
|
3251
3252
|
}), n = A(() => {
|
|
3252
3253
|
if (l.includes(e.data.problemType)) {
|
|
3253
|
-
const b = (e.data.rawChildren || e.data.children).map((
|
|
3254
|
+
const b = (e.data.rawChildren || e.data.children).map((_) => _.subStr.length);
|
|
3254
3255
|
return { [`h${e.data.id}`]: Math.max(...b) };
|
|
3255
3256
|
} else
|
|
3256
3257
|
return Object.keys(y.value).map((b) => {
|
|
3257
|
-
const
|
|
3258
|
+
const _ = (e.data.rawChildren || e.data.children).filter((O) => O.polymerId === b).map((O) => O.subStr.length);
|
|
3258
3259
|
return {
|
|
3259
|
-
[b]: Math.max(...
|
|
3260
|
+
[b]: Math.max(..._)
|
|
3260
3261
|
};
|
|
3261
|
-
}).reduce((b,
|
|
3262
|
+
}).reduce((b, _) => ({ ...b, ..._ }), {});
|
|
3262
3263
|
});
|
|
3263
3264
|
return {
|
|
3264
3265
|
Gps_cls: T,
|
|
@@ -3274,11 +3275,11 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3274
3275
|
ComputPolymerCls: (b) => [p.decide].includes(b.problemType) ? [] : b.styleInfo[d[e.layout.mode].choice_a] === g.choice_2 ? ["port_view"] : ["grid", b.groupIndex && "mt-6"],
|
|
3275
3276
|
ComputPolymerStyle: (b) => {
|
|
3276
3277
|
var q;
|
|
3277
|
-
let
|
|
3278
|
+
let _ = {}, O = !0;
|
|
3278
3279
|
if ([p.fill, p.fill_english].includes(b.problemType))
|
|
3279
3280
|
switch (b.styleInfo[d[e.layout.mode].fill_g]) {
|
|
3280
3281
|
case g.portrait:
|
|
3281
|
-
|
|
3282
|
+
_ = {
|
|
3282
3283
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
3283
3284
|
"grid-template-columns": `repeat(${Math.floor(b.styleInfo[d[e.layout.mode].fill_f])}, 1fr)`,
|
|
3284
3285
|
"grid-template-rows": `repeat(${Math.ceil(b.children.length / Math.floor(b.styleInfo[d[e.layout.mode].fill_f]))}, 1fr)`
|
|
@@ -3293,15 +3294,15 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3293
3294
|
})) * (Le[e.layout.fillSize].value + 9) + de;
|
|
3294
3295
|
let C = Math.min(Math.floor(e.width / x), ge), $ = [], ee = [], ue = [];
|
|
3295
3296
|
const G = (ce = C) => {
|
|
3296
|
-
$ = (fe ? [...Array(ce).keys()].map((ne,
|
|
3297
|
+
$ = (fe ? [...Array(ce).keys()].map((ne, f) => b.children.filter((S, pe) => pe % ce === f)).filter((ne) => ne.length) : [...Array(ce).keys()].map((ne) => b.children.slice(ne * Y, (ne + 1) * Y))).filter((ne) => ne.length).map((ne) => Math.max(...ne.map((f) => {
|
|
3297
3298
|
var S;
|
|
3298
|
-
return ((S =
|
|
3299
|
+
return ((S = f.optList) == null ? void 0 : S.length) || 0;
|
|
3299
3300
|
})));
|
|
3300
3301
|
};
|
|
3301
3302
|
for (G(C), ee = [...$]; O && C < ge; )
|
|
3302
3303
|
G(C + 1), O = C + 1 <= ge && $.reduce((ce, ne) => ce + ne, 0) * (Le[e.layout.fillSize].value + 9) + (C + 1) * de < e.width, O && (C += 1, ee = [...$]);
|
|
3303
3304
|
b.children.length % Y;
|
|
3304
|
-
const se = [...Array(Math.ceil(b.children.length / Y)).keys()].map((ce) => b.children.filter((ne,
|
|
3305
|
+
const se = [...Array(Math.ceil(b.children.length / Y)).keys()].map((ce) => b.children.filter((ne, f) => f >= ce * Y && f < (ce + 1) * Y)).map((ce, ne) => ce.map((f, S) => ({ ...f, _grid_area_: fe ? null : dt[S] + ne }))), Ce = ee.map((ce) => ce * (Le[e.layout.fillSize].value + 9) + de);
|
|
3305
3306
|
switch (b.styleInfo[d[e.layout.mode].choice_f]) {
|
|
3306
3307
|
case g.choice_6:
|
|
3307
3308
|
ue = Ce.map((ce) => `${ce}px`);
|
|
@@ -3314,9 +3315,9 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3314
3315
|
case g.choice_1:
|
|
3315
3316
|
case g.choice_3:
|
|
3316
3317
|
fe && !e.noPortrait && se.flat(2).forEach((ce) => {
|
|
3317
|
-
const ne = b.children.find((
|
|
3318
|
+
const ne = b.children.find((f) => f.id === ce.id);
|
|
3318
3319
|
ne._grid_area_ = ce._grid_area_;
|
|
3319
|
-
}),
|
|
3320
|
+
}), _ = fe ? {
|
|
3320
3321
|
// 横排竖向按列排
|
|
3321
3322
|
// 'grid-template': `${colList[0].map((k: Strany, i: number) => `"${[...Array(colList.length).keys()].map(j => colList[j][i] ? ChoiceSub[i] + j : '.').join(' ')}" 1fr`).join('')} / ${colListW.join(' ')}`
|
|
3322
3323
|
"grid-template": `repeat(${Math.ceil(b.children.length / C)}, 1fr) / ${ue.join(" ")}`
|
|
@@ -3329,9 +3330,9 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3329
3330
|
break;
|
|
3330
3331
|
}
|
|
3331
3332
|
}
|
|
3332
|
-
return
|
|
3333
|
+
return _;
|
|
3333
3334
|
},
|
|
3334
|
-
ComputPolymerItemStyle: (b,
|
|
3335
|
+
ComputPolymerItemStyle: (b, _) => {
|
|
3335
3336
|
var O;
|
|
3336
3337
|
if (b._grid_area_)
|
|
3337
3338
|
return {
|
|
@@ -3339,14 +3340,14 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3339
3340
|
};
|
|
3340
3341
|
if (l.includes(b.problemType) && b.style[d[e.layout.mode].choice_a] === g.choice_2) {
|
|
3341
3342
|
const q = Math.max(Le[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[(O = b.children[0]) == null ? void 0 : O.polymerId] || 0) * 10 + 10), fe = Math.floor(e.width / (q * b.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - q * fe * b.style[d[e.layout.mode].choice_c]) / (fe - 1 || 1);
|
|
3342
|
-
if (!((
|
|
3343
|
+
if (!((_ + 1) % b.style[d[e.layout.mode].choice_c]) && ((_ + 1) % (b.style[d[e.layout.mode].choice_c] * fe) || fe < 2))
|
|
3343
3344
|
return {
|
|
3344
3345
|
"margin-right": `${Y}px`
|
|
3345
3346
|
};
|
|
3346
3347
|
}
|
|
3347
3348
|
return {};
|
|
3348
3349
|
},
|
|
3349
|
-
ComputStyle: (b,
|
|
3350
|
+
ComputStyle: (b, _) => {
|
|
3350
3351
|
var q;
|
|
3351
3352
|
let O = {};
|
|
3352
3353
|
if (!o)
|
|
@@ -3356,7 +3357,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3356
3357
|
if (Object.values(je).includes(e.data.problemType)) {
|
|
3357
3358
|
const Y = Math.max(.../*props.data.rawChildren || */
|
|
3358
3359
|
e.data.children.map((de) => de.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((q = e.data.children[0]) == null ? void 0 : q.polymerId) || ""] || 0) * 10 + 10, ge = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
|
|
3359
|
-
fe =
|
|
3360
|
+
fe = _ % ge ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * ge) / (ge - 1) - 5}px` } : { minWidth: `${Y}px` };
|
|
3360
3361
|
}
|
|
3361
3362
|
O = {
|
|
3362
3363
|
...O,
|
|
@@ -3373,15 +3374,15 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3373
3374
|
return O;
|
|
3374
3375
|
},
|
|
3375
3376
|
ComputBlock: (b) => {
|
|
3376
|
-
const
|
|
3377
|
-
if (o && (
|
|
3377
|
+
const _ = [...l, p.fill, p.fill_english];
|
|
3378
|
+
if (o && (_.includes(b.problemType) || typeof b.groupIndex == "number"))
|
|
3378
3379
|
return Se;
|
|
3379
3380
|
},
|
|
3380
3381
|
ComputItemScore: (b) => [p.slove, p.easy_slove, p.art].includes(b.problemType) && b.style[d.public.scoreShowFlag] !== g.bracket_none ? [b.score].flat(2).reduce((O, q) => O + q, 0) : null,
|
|
3381
|
-
ComputPayload: (b,
|
|
3382
|
+
ComputPayload: (b, _) => {
|
|
3382
3383
|
switch (b.problemType) {
|
|
3383
3384
|
case p.slove:
|
|
3384
|
-
return { isFirst: !
|
|
3385
|
+
return { isFirst: !_ };
|
|
3385
3386
|
default:
|
|
3386
3387
|
return {};
|
|
3387
3388
|
}
|
|
@@ -3392,21 +3393,21 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3392
3393
|
handleHoverOut: (b) => {
|
|
3393
3394
|
r.value = "";
|
|
3394
3395
|
},
|
|
3395
|
-
handleClick: (b,
|
|
3396
|
-
e.data.isPolymer || (b.stopPropagation(), t("click",
|
|
3396
|
+
handleClick: (b, _) => {
|
|
3397
|
+
e.data.isPolymer || (b.stopPropagation(), t("click", _));
|
|
3397
3398
|
},
|
|
3398
|
-
handleGroupClick: (b,
|
|
3399
|
-
|
|
3399
|
+
handleGroupClick: (b, _) => {
|
|
3400
|
+
(Object.values(ke).includes(_.__rootProblemType__) || !e.layout.polymerFlag || [p.mix, p.synthesis].includes(_.problemType)) && (b.stopPropagation(), t("click", _));
|
|
3400
3401
|
},
|
|
3401
|
-
handleDblClick: (b,
|
|
3402
|
-
e.data.isPolymer || (b.stopPropagation(), t("dbclick",
|
|
3402
|
+
handleDblClick: (b, _) => {
|
|
3403
|
+
e.data.isPolymer || (b.stopPropagation(), t("dbclick", _));
|
|
3403
3404
|
}
|
|
3404
3405
|
};
|
|
3405
3406
|
}
|
|
3406
3407
|
}, es = ["data-block", "data-polymer"], ts = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], os = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], as = { key: 0 };
|
|
3407
3408
|
function ls(e, t, o, l, r, s) {
|
|
3408
3409
|
const a = Gt("Sub");
|
|
3409
|
-
return i(!0), h(
|
|
3410
|
+
return i(!0), h(M, null, oe(l.GroupData, (c, y) => (i(), h(M, null, [
|
|
3410
3411
|
c.type === "polymer" ? (i(), h("div", {
|
|
3411
3412
|
key: 0,
|
|
3412
3413
|
"data-block": l.ComputBlock(c),
|
|
@@ -3414,7 +3415,7 @@ function ls(e, t, o, l, r, s) {
|
|
|
3414
3415
|
class: Z([...l.ComputPolymerCls(c)]),
|
|
3415
3416
|
style: j(l.ComputPolymerStyle(c))
|
|
3416
3417
|
}, [
|
|
3417
|
-
(i(!0), h(
|
|
3418
|
+
(i(!0), h(M, null, oe(c.children, (n, u) => {
|
|
3418
3419
|
var z;
|
|
3419
3420
|
return i(), h("div", {
|
|
3420
3421
|
class: Z(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((z = o.target.value) == null ? void 0 : z.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
@@ -3437,9 +3438,9 @@ function ls(e, t, o, l, r, s) {
|
|
|
3437
3438
|
(i(), V(vt(l.ComputName(n)), wt(kt({ item: n, layout: o.layout, ...l.ComputPayload(n, u) })), null, 16))
|
|
3438
3439
|
], 46, ts);
|
|
3439
3440
|
}), 256))
|
|
3440
|
-
], 14, es)) : (i(!0), h(
|
|
3441
|
+
], 14, es)) : (i(!0), h(M, { key: 1 }, oe(c.children, (n, u) => {
|
|
3441
3442
|
var z;
|
|
3442
|
-
return i(), h(
|
|
3443
|
+
return i(), h(M, null, [
|
|
3443
3444
|
v("div", {
|
|
3444
3445
|
class: Z(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((z = o.target.value) == null ? void 0 : z.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3445
3446
|
style: j(l.ComputStyle(n, u)),
|
|
@@ -3752,8 +3753,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3752
3753
|
case p.fill_english:
|
|
3753
3754
|
const U = Ee(T.fill, E), N = Ee(T.fill_line, E);
|
|
3754
3755
|
w = {
|
|
3755
|
-
children: [L.score].flat().map((le, b,
|
|
3756
|
-
id:
|
|
3756
|
+
children: [L.score].flat().map((le, b, _) => ({
|
|
3757
|
+
id: _.length > 1 ? `${L._sub}.${b + 1}` : L._sub,
|
|
3757
3758
|
score: le,
|
|
3758
3759
|
problemType: L.problemType,
|
|
3759
3760
|
isHiddenContent: !L.style[d[e.layout.mode].fill_b],
|
|
@@ -3771,13 +3772,13 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3771
3772
|
scoreList: W ? [he(T.score_tenbit, W), he(T.score_base, W), he(T.score_half, W)].map((le, b) => {
|
|
3772
3773
|
if (!le)
|
|
3773
3774
|
return {};
|
|
3774
|
-
const
|
|
3775
|
+
const _ = Ee(T.score_item, le);
|
|
3775
3776
|
return {
|
|
3776
3777
|
position: Ae(le, F, n, !0),
|
|
3777
3778
|
itemPosition: {
|
|
3778
|
-
width:
|
|
3779
|
+
width: _[0].offsetWidth
|
|
3779
3780
|
},
|
|
3780
|
-
score:
|
|
3781
|
+
score: _.map((O) => Math.abs(parseFloat(O.innerText)) * (b ? 1 : 10))
|
|
3781
3782
|
};
|
|
3782
3783
|
}).filter((le) => le.position) : null
|
|
3783
3784
|
};
|
|
@@ -4122,7 +4123,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4122
4123
|
v("span", xs, "排版" + X(l.value.length ? "异常" : "良好"), 1)
|
|
4123
4124
|
], 2),
|
|
4124
4125
|
l.value.length ? (i(), h("ul", Cs, [
|
|
4125
|
-
(i(!0), h(
|
|
4126
|
+
(i(!0), h(M, null, oe(l.value, (y, n) => (i(), h("li", {
|
|
4126
4127
|
key: n,
|
|
4127
4128
|
class: "layt-moni_err_item"
|
|
4128
4129
|
}, [
|
|
@@ -4260,9 +4261,9 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4260
4261
|
}
|
|
4261
4262
|
else {
|
|
4262
4263
|
let W = [], le = [], b = !1;
|
|
4263
|
-
if (w.children.some((
|
|
4264
|
+
if (w.children.some((_, O) => {
|
|
4264
4265
|
var Y, ge;
|
|
4265
|
-
const q = it(
|
|
4266
|
+
const q = it(_.__tag__, t), fe = _e(q);
|
|
4266
4267
|
if (n) {
|
|
4267
4268
|
const de = q.querySelector(`*[data-cutkey="${n}"]`), x = _e(de);
|
|
4268
4269
|
m[m.length - 1].top = y.top - x.top, m[m.length - 1].height = y.height - m[m.length - 1].top, n = 0;
|
|
@@ -4274,61 +4275,61 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4274
4275
|
return it(de.__tag__, t).dataset.polymer !== ((x = q.parentElement) == null ? void 0 : x.dataset.polymer);
|
|
4275
4276
|
}), le = w.children.slice(W.length)) : (m[m.length - 1].data.pop(), W = [], b = !0, B(), H({ ...w }));
|
|
4276
4277
|
else if (L(q))
|
|
4277
|
-
W.push(
|
|
4278
|
+
W.push(_), le = O < w.children.length - 1 ? w.children.slice(O + 1) : [];
|
|
4278
4279
|
else if (J(q))
|
|
4279
4280
|
le = w.children.slice(O);
|
|
4280
4281
|
else {
|
|
4281
4282
|
N = Lt(q, y.top, m[m.length - 1].height, m.length % (l + r) >= l);
|
|
4282
|
-
const de = q.querySelector(`*[data-content="${
|
|
4283
|
+
const de = q.querySelector(`*[data-content="${_.id}"]`);
|
|
4283
4284
|
if (q === N.targetEl)
|
|
4284
|
-
W.push(
|
|
4285
|
+
W.push(_), le = O < w.children.length - 1 ? w.children.slice(O + 1) : [];
|
|
4285
4286
|
else if (de && de.contains(N.cut))
|
|
4286
|
-
n = Date.now(), N.cut.dataset.cutkey = n,
|
|
4287
|
+
n = Date.now(), N.cut.dataset.cutkey = n, _.content = de.innerHTML, W.push(_), le = [{ ..._, content: de.innerHTML }, ...O < w.children.length - 1 ? w.children.slice(O + 1) : []], m[m.length - 1].height = _e(N.cut).top - y.top;
|
|
4287
4288
|
else {
|
|
4288
4289
|
if (!le.length) {
|
|
4289
|
-
let x = { ...
|
|
4290
|
-
switch (
|
|
4290
|
+
let x = { ..._ };
|
|
4291
|
+
switch (_.problemType) {
|
|
4291
4292
|
case Re.slove:
|
|
4292
|
-
const C = q.querySelector(`*[data-area="${
|
|
4293
|
-
C != null && C.contains(N.cut) && (n = Date.now(), N.cut.dataset.cutkey = n,
|
|
4293
|
+
const C = q.querySelector(`*[data-area="${_.id}"]`);
|
|
4294
|
+
C != null && C.contains(N.cut) && (n = Date.now(), N.cut.dataset.cutkey = n, _.answerArea = C.innerHTML), q.contains(N.targetEl) && (_.chunk += 1);
|
|
4294
4295
|
break;
|
|
4295
4296
|
case Re.art:
|
|
4296
|
-
if (
|
|
4297
|
-
const $ = q.querySelector(`*[data-area="${
|
|
4298
|
-
$ != null && $.contains(N.cut) && (n = Date.now(), N.cut.dataset.cutkey = n,
|
|
4297
|
+
if (_.artEditor) {
|
|
4298
|
+
const $ = q.querySelector(`*[data-area="${_.id}"]`);
|
|
4299
|
+
$ != null && $.contains(N.cut) && (n = Date.now(), N.cut.dataset.cutkey = n, _.answerArea = $.innerHTML), q.contains(N.targetEl) && (_.chunk += 1);
|
|
4299
4300
|
break;
|
|
4300
4301
|
} else {
|
|
4301
|
-
const $ = q.querySelector(`*[data-bart="${
|
|
4302
|
+
const $ = q.querySelector(`*[data-bart="${_.id}"]`), ee = N.targetEl.dataset.block === Se && N.targetEl.dataset.size ? N.targetEl : null, ue = q.querySelector(`*[data-aart="${_.id}"]`);
|
|
4302
4303
|
if ($ != null && $.contains(N.cut))
|
|
4303
|
-
n = Date.now(), N.cut.dataset.cutkey = n,
|
|
4304
|
+
n = Date.now(), N.cut.dataset.cutkey = n, _.beforeArt = $ == null ? void 0 : $.innerHTML, x.beforeGuide = "", x.afterArt = "", x.endAnswerLen = -1;
|
|
4304
4305
|
else if (ee) {
|
|
4305
4306
|
const G = parseInt(ee.dataset.size);
|
|
4306
|
-
if (!
|
|
4307
|
-
if (
|
|
4308
|
-
const se = q.querySelector(`*[data-guide="${
|
|
4307
|
+
if (!_.artBlock)
|
|
4308
|
+
if (_.beforeGuide && _.beforeGuide.length + (_.startAnswerLen ? 0 : 2) - _.startAnswerLen > G) {
|
|
4309
|
+
const se = q.querySelector(`*[data-guide="${_.id}"]`), Ce = _e(se);
|
|
4309
4310
|
if (Ce.height + Ce.top - y.top > y.height) {
|
|
4310
|
-
se.innerHTML =
|
|
4311
|
-
const ce = _e(ee).top + ee.offsetHeight, ne = [...Array.from(se.children)].findIndex((
|
|
4312
|
-
x.beforeGuide =
|
|
4311
|
+
se.innerHTML = _.beforeGuide.split("").map((f) => `<span>${f}</span>`).join("");
|
|
4312
|
+
const ce = _e(ee).top + ee.offsetHeight, ne = [...Array.from(se.children)].findIndex((f) => _e(f).top > ce);
|
|
4313
|
+
x.beforeGuide = _.beforeGuide.substring(0, ne), _.beforeGuide = _.beforeGuide.substring(ne);
|
|
4313
4314
|
} else
|
|
4314
|
-
|
|
4315
|
+
_.beforeGuide = "";
|
|
4315
4316
|
} else
|
|
4316
|
-
|
|
4317
|
-
x.endAnswerLen = G,
|
|
4317
|
+
_.beforeGuide = "";
|
|
4318
|
+
x.endAnswerLen = G, _.startAnswerLen = G;
|
|
4318
4319
|
} else
|
|
4319
|
-
ue != null && ue.contains(N.cut) ? (n = Date.now(), N.cut.dataset.cutkey = n,
|
|
4320
|
-
q.contains(N.targetEl) && (
|
|
4320
|
+
ue != null && ue.contains(N.cut) ? (n = Date.now(), N.cut.dataset.cutkey = n, _.beforeArt = "", _.beforeGuide = "", _.startAnswerLen = 1, _.endAnswerLen = -1, _.afterArt = ue.innerHTML) : N.targetEl === $ ? (x.endAnswerLen = -1, x.beforeGuide = "", x.afterArt = "", _.beforeArt = "") : ($ == null ? void 0 : $.previousElementSibling) === N.cut && (x.endAnswerLen = -1, x.beforeArt = "", x.beforeGuide = "", x.afterArt = "");
|
|
4321
|
+
q.contains(N.targetEl) && (_.chunk += 1);
|
|
4321
4322
|
break;
|
|
4322
4323
|
}
|
|
4323
4324
|
}
|
|
4324
4325
|
q.contains(N.targetEl) && W.push(x), n && (m[m.length - 1].height = _e(N.cut).top - y.top);
|
|
4325
4326
|
}
|
|
4326
|
-
le = [
|
|
4327
|
+
le = [_, ...O < w.children.length - 1 ? w.children.slice(O + 1) : []];
|
|
4327
4328
|
}
|
|
4328
4329
|
}
|
|
4329
4330
|
return !0;
|
|
4330
4331
|
} else
|
|
4331
|
-
W.push(
|
|
4332
|
+
W.push(_);
|
|
4332
4333
|
}), b)
|
|
4333
4334
|
return;
|
|
4334
4335
|
m[m.length - 1].data[m[m.length - 1].data.length - 1].children = W, le.length ? (B(), H({ ...w, isHidden: !0, children: le })) : (a([...m]), F++, H());
|
|
@@ -4488,13 +4489,13 @@ const Os = {
|
|
|
4488
4489
|
F.value = x;
|
|
4489
4490
|
}, le = () => {
|
|
4490
4491
|
const x = E.value, C = x.left + x.width / 2, $ = x.top + x.height / 2, ee = u.value.getBoundingClientRect() || {};
|
|
4491
|
-
m.value = { x: C + ee.left, y: $ + ee.top }, u.value.addEventListener("mousemove", b), u.value.addEventListener("mouseleave",
|
|
4492
|
+
m.value = { x: C + ee.left, y: $ + ee.top }, u.value.addEventListener("mousemove", b), u.value.addEventListener("mouseleave", _), u.value.addEventListener("mouseup", _);
|
|
4492
4493
|
}, b = (x) => {
|
|
4493
4494
|
x.stopPropagation(), x.preventDefault();
|
|
4494
4495
|
const C = x.clientX - m.value.x, $ = m.value.y - x.clientY, ee = Math.atan2($, C) / (Math.PI / 180);
|
|
4495
4496
|
c.value = { ...E.value, rotate: -parseInt(ee.toString()) };
|
|
4496
|
-
},
|
|
4497
|
-
x.stopPropagation(), x.preventDefault(), t("changeAbsImgItem", c.value), u.value.removeEventListener("mousemove", b), u.value.removeEventListener("mouseleave",
|
|
4497
|
+
}, _ = (x) => {
|
|
4498
|
+
x.stopPropagation(), x.preventDefault(), t("changeAbsImgItem", c.value), u.value.removeEventListener("mousemove", b), u.value.removeEventListener("mouseleave", _), u.value.removeEventListener("mouseup", _);
|
|
4498
4499
|
}, O = (x, C) => {
|
|
4499
4500
|
var $;
|
|
4500
4501
|
x.stopPropagation(), y.value = C, a.value = { x: x.clientX, y: x.clientY, ...E.value }, (($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? u.value.addEventListener("mousemove", q) : u.value.addEventListener("mousemove", fe), u.value.addEventListener("mouseleave", Y), u.value.addEventListener("mouseup", Y);
|
|
@@ -4668,8 +4669,8 @@ const Os = {
|
|
|
4668
4669
|
const $ = document.body.querySelector(`.cke_editor_${gt}`);
|
|
4669
4670
|
!x && ((ee = (C == null ? void 0 : C.target).dataset) != null && ee.safe || [...J.value, ...L.value].find((ue) => ue.contains(C == null ? void 0 : C.target)) || $ && window.getComputedStyle($).display !== "none") || (B.value = x == null ? void 0 : x.key, c.value = x ? { ...x } : null);
|
|
4670
4671
|
};
|
|
4671
|
-
return (x, C) => (i(), h(
|
|
4672
|
-
(i(!0), h(
|
|
4672
|
+
return (x, C) => (i(), h(M, null, [
|
|
4673
|
+
(i(!0), h(M, null, oe(H.value, ($) => {
|
|
4673
4674
|
var ee, ue, G, se, Ce, ce, ne;
|
|
4674
4675
|
return xt((i(), h("div", {
|
|
4675
4676
|
key: $.id,
|
|
@@ -4679,24 +4680,24 @@ const Os = {
|
|
|
4679
4680
|
"data-safe": "true",
|
|
4680
4681
|
class: Z(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8" : "z-7"]),
|
|
4681
4682
|
style: j({ left: Math.max(((ue = U.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = U.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((se = U.value[$.key]) == null ? void 0 : se.width) || $.width) + "px", height: (((Ce = U.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px", transform: `rotate(${((ce = U.value[$.key]) == null ? void 0 : ce.rotate) || $.rotate}deg)` }),
|
|
4682
|
-
onMousedown: Me((
|
|
4683
|
+
onMousedown: Me((f) => de($), ["stop"]),
|
|
4683
4684
|
"data-block": I(De)
|
|
4684
4685
|
}, [
|
|
4685
4686
|
v("img", {
|
|
4686
4687
|
src: $.url
|
|
4687
4688
|
}, null, 8, Rs),
|
|
4688
|
-
((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(
|
|
4689
|
+
((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(M, { key: 0 }, [
|
|
4689
4690
|
v("span", Hs, [
|
|
4690
4691
|
te(ve, {
|
|
4691
4692
|
name: "close",
|
|
4692
4693
|
width: 2,
|
|
4693
4694
|
class: "cursor-pointer",
|
|
4694
|
-
onClick: (
|
|
4695
|
+
onClick: (f) => t("delAbsImgItem", $)
|
|
4695
4696
|
}, null, 8, ["onClick"])
|
|
4696
4697
|
]),
|
|
4697
4698
|
v("div", Ws, [
|
|
4698
|
-
(i(), h(
|
|
4699
|
-
key:
|
|
4699
|
+
(i(), h(M, null, oe(8, (f, S) => v("div", {
|
|
4700
|
+
key: f,
|
|
4700
4701
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4701
4702
|
style: j({ ...s[S], transform: "translate(-50%, -50%)" }),
|
|
4702
4703
|
onMousedown: Me((pe) => O(pe, S), ["stop"])
|
|
@@ -4714,10 +4715,10 @@ const Os = {
|
|
|
4714
4715
|
], 64)) : P("", !0)
|
|
4715
4716
|
], 46, zs)), [
|
|
4716
4717
|
[I(r), N],
|
|
4717
|
-
[I(l), (
|
|
4718
|
+
[I(l), (f) => de(null, f)]
|
|
4718
4719
|
]);
|
|
4719
4720
|
}), 128)),
|
|
4720
|
-
(i(!0), h(
|
|
4721
|
+
(i(!0), h(M, null, oe(w.value, ($) => {
|
|
4721
4722
|
var ee, ue, G, se, Ce, ce, ne;
|
|
4722
4723
|
return xt((i(), h("div", {
|
|
4723
4724
|
key: $.id,
|
|
@@ -4728,7 +4729,7 @@ const Os = {
|
|
|
4728
4729
|
"data-safe": "true",
|
|
4729
4730
|
class: Z(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8 bg-white" : "z-7"]),
|
|
4730
4731
|
style: j({ left: Math.max(((ue = U.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = U.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((se = U.value[$.key]) == null ? void 0 : se.width) || $.width) + "px", height: (((Ce = U.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px" }),
|
|
4731
|
-
onMousedown: Me((
|
|
4732
|
+
onMousedown: Me((f) => de($), ["stop"]),
|
|
4732
4733
|
"data-block": I(De)
|
|
4733
4734
|
}, [
|
|
4734
4735
|
(i(), V(Bs, {
|
|
@@ -4738,21 +4739,21 @@ const Os = {
|
|
|
4738
4739
|
value: $.content,
|
|
4739
4740
|
name: $.id.toString(),
|
|
4740
4741
|
onChange: ge,
|
|
4741
|
-
onFocus: C[0] || (C[0] = (
|
|
4742
|
-
onBlur: C[1] || (C[1] = (
|
|
4742
|
+
onFocus: C[0] || (C[0] = (f) => W(!0)),
|
|
4743
|
+
onBlur: C[1] || (C[1] = (f) => W(!1))
|
|
4743
4744
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4744
|
-
((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(
|
|
4745
|
+
((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(M, { key: 0 }, [
|
|
4745
4746
|
v("span", Ys, [
|
|
4746
4747
|
te(ve, {
|
|
4747
4748
|
name: "close",
|
|
4748
4749
|
width: 2,
|
|
4749
4750
|
class: "cursor-pointer",
|
|
4750
|
-
onClick: (
|
|
4751
|
+
onClick: (f) => t("delAbsTxtItem", $)
|
|
4751
4752
|
}, null, 8, ["onClick"])
|
|
4752
4753
|
]),
|
|
4753
4754
|
v("div", Us, [
|
|
4754
|
-
(i(), h(
|
|
4755
|
-
key:
|
|
4755
|
+
(i(), h(M, null, oe(8, (f, S) => v("div", {
|
|
4756
|
+
key: f,
|
|
4756
4757
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4757
4758
|
style: j({ ...s[S], transform: "translate(-50%, -50%)" }),
|
|
4758
4759
|
onMousedown: (pe) => O(pe, S)
|
|
@@ -4761,7 +4762,7 @@ const Os = {
|
|
|
4761
4762
|
], 64)) : P("", !0)
|
|
4762
4763
|
], 46, qs)), [
|
|
4763
4764
|
[I(r), N],
|
|
4764
|
-
[I(l), (
|
|
4765
|
+
[I(l), (f) => de(null, f)]
|
|
4765
4766
|
]);
|
|
4766
4767
|
}), 128))
|
|
4767
4768
|
], 64));
|
|
@@ -4790,20 +4791,20 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4790
4791
|
setup(e, { emit: t }) {
|
|
4791
4792
|
const o = e;
|
|
4792
4793
|
qt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4793
|
-
const l = Q([]), r = Q([]), s = Q(2), a = Q(0), c = Q(0), y = Q(), n = Q([]), u = Q([]), z = Q([]), m = Q([]), F = A(() => o.data.map((
|
|
4794
|
-
...
|
|
4794
|
+
const l = Q([]), r = Q([]), s = Q(2), a = Q(0), c = Q(0), y = Q(), n = Q([]), u = Q([]), z = Q([]), m = Q([]), F = A(() => o.data.map((f) => ({
|
|
4795
|
+
...f,
|
|
4795
4796
|
__tag__: St(),
|
|
4796
|
-
rawChildren:
|
|
4797
|
-
children:
|
|
4797
|
+
rawChildren: f.children,
|
|
4798
|
+
children: f.children.map((S) => ({ ...S, ...ge(S), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: St() }))
|
|
4798
4799
|
}))), B = A(() => {
|
|
4799
4800
|
if (!F.value.length)
|
|
4800
4801
|
return;
|
|
4801
|
-
const
|
|
4802
|
+
const f = F.value[F.value.length - 1], S = f.rawChildren[f.rawChildren.length - 1];
|
|
4802
4803
|
return U.value && [p.slove].includes(S == null ? void 0 : S.problemType) && S.id;
|
|
4803
4804
|
}), J = A(() => {
|
|
4804
|
-
var
|
|
4805
|
-
return o.layout.bindFlag && !!((
|
|
4806
|
-
}), L = A(() => o.isFinal ? 0 : 10), H = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || s.value || 1), E = A(() => Math.ceil(w.value / 2) * 2), U = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), N = A(() => U.value ? Ie : { top: 0, right: 0, bottom: 0, left: 0 }), W = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || mt[o.layout.mode][o.layout.paper]), le = A(() => k[o.layout.paper].width - W.value.left - W.value.right), b = A(() => k[o.layout.paper].height - W.value.top - W.value.bottom),
|
|
4805
|
+
var f;
|
|
4806
|
+
return o.layout.bindFlag && !!((f = He.find((S) => S.code === o.layout.paper)) != null && f.isMultCol);
|
|
4807
|
+
}), L = A(() => o.isFinal ? 0 : 10), H = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || s.value || 1), E = A(() => Math.ceil(w.value / 2) * 2), U = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), N = A(() => U.value ? Ie : { top: 0, right: 0, bottom: 0, left: 0 }), W = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || mt[o.layout.mode][o.layout.paper]), le = A(() => k[o.layout.paper].width - W.value.left - W.value.right), b = A(() => k[o.layout.paper].height - W.value.top - W.value.bottom), _ = A(() => (le.value - (c.value ? c.value + ue(0) : 0) + ue(0)) / o.layout.column - ue(0)), O = A(() => ({
|
|
4807
4808
|
width: `${k[o.layout.paper].width}px`,
|
|
4808
4809
|
height: `${(k[o.layout.paper].height + L.value) * E.value - L.value}px`
|
|
4809
4810
|
})), q = A(() => ({
|
|
@@ -4813,13 +4814,13 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4813
4814
|
marginBottom: `${L.value}px`
|
|
4814
4815
|
})), fe = A(() => {
|
|
4815
4816
|
var S;
|
|
4816
|
-
const
|
|
4817
|
+
const f = (S = He.find((pe) => pe.code === o.layout.paper)) == null ? void 0 : S.isFullTitle;
|
|
4817
4818
|
return {
|
|
4818
4819
|
left: `${W.value.left + (c.value ? c.value + ue(0) : 0)}px`,
|
|
4819
4820
|
top: `${W.value.top}px`,
|
|
4820
|
-
width:
|
|
4821
|
+
width: f ? `${le.value}px` : `${_.value}px`
|
|
4821
4822
|
};
|
|
4822
|
-
}), Y = A(() => Mt.filter((
|
|
4823
|
+
}), Y = A(() => Mt.filter((f) => o.info.bindExtentInfo[f.code]).map((f) => o.info.bindExtentInfo[f.key]));
|
|
4823
4824
|
Ne(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4824
4825
|
setTimeout(() => {
|
|
4825
4826
|
ce();
|
|
@@ -4827,8 +4828,8 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4827
4828
|
}, { immediate: !0 }), Ne(() => J.value, () => {
|
|
4828
4829
|
c.value = J.value ? 100 : 0;
|
|
4829
4830
|
}, { immediate: !0 });
|
|
4830
|
-
const ge = (
|
|
4831
|
-
let S = { ...
|
|
4831
|
+
const ge = (f) => {
|
|
4832
|
+
let S = { ...f };
|
|
4832
4833
|
if ([p.slove].includes(S.problemType) && U.value) {
|
|
4833
4834
|
const pe = document.createElement("div");
|
|
4834
4835
|
pe.innerHTML = S.answerArea;
|
|
@@ -4839,25 +4840,25 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4839
4840
|
}
|
|
4840
4841
|
}
|
|
4841
4842
|
return S;
|
|
4842
|
-
}, de = (
|
|
4843
|
-
const S =
|
|
4843
|
+
}, de = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, x = (f, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + f, C = (f) => {
|
|
4844
|
+
const S = f % (o.layout.column + o.layout.backColumn);
|
|
4844
4845
|
return S >= o.layout.column ? S - o.layout.column : S;
|
|
4845
|
-
}, $ = (
|
|
4846
|
-
|
|
4847
|
-
}, ee = (
|
|
4848
|
-
|
|
4849
|
-
}, ue = (
|
|
4846
|
+
}, $ = (f, S) => {
|
|
4847
|
+
f ? n.value[S] = f : n.value.splice(S, 1);
|
|
4848
|
+
}, ee = (f, S) => {
|
|
4849
|
+
f ? u.value[S] = f : u.value.splice(S, 1);
|
|
4850
|
+
}, ue = (f) => Pt[o.layout.mode][o.layout.paper][de(f)] || 0, G = (f, S = !1) => (le.value - (c.value ? c.value + ue(f) : 0) + ue(f)) / de(f) - ue(f) - N.value.left - N.value.right + (S ? N.value.left + N.value.right : 0), se = (f, S) => {
|
|
4850
4851
|
var K, ie;
|
|
4851
|
-
const pe =
|
|
4852
|
+
const pe = f % (o.layout.column + o.layout.backColumn) ? 0 : ((K = z.value[Math.min(S, 1)]) == null ? void 0 : K.offsetHeight) || 0;
|
|
4852
4853
|
return {
|
|
4853
|
-
left: `${W.value.left + (S % 2 ? 0 : c.value ? c.value + ue(
|
|
4854
|
-
top: `${pe + W.value.top + (!S && !
|
|
4855
|
-
width: `${G(
|
|
4856
|
-
height: `${b.value - pe - (!S && !
|
|
4857
|
-
contentHeight: `${(ie = l.value[
|
|
4854
|
+
left: `${W.value.left + (S % 2 ? 0 : c.value ? c.value + ue(f) : 0) + N.value.left + C(f) * (G(f) + ue(f) + N.value.left + N.value.right)}px`,
|
|
4855
|
+
top: `${pe + W.value.top + (!S && !f ? 0 : N.value.top)}px`,
|
|
4856
|
+
width: `${G(f)}px`,
|
|
4857
|
+
height: `${b.value - pe - (!S && !f ? 0 : N.value.top) - N.value.bottom}px`,
|
|
4858
|
+
contentHeight: `${(ie = l.value[f]) == null ? void 0 : ie.height}px`
|
|
4858
4859
|
};
|
|
4859
|
-
}, Ce = (
|
|
4860
|
-
r.value =
|
|
4860
|
+
}, Ce = (f, S = !1) => {
|
|
4861
|
+
r.value = f.map((pe) => ({ ...pe })), S && (l.value = [...f], a.value += 1, ot(() => {
|
|
4861
4862
|
s.value = Math.ceil(l.value.length / o.layout.column), r.value = [], u.value.forEach((pe, K) => {
|
|
4862
4863
|
var ie, $e;
|
|
4863
4864
|
!pe || !pe.col || ((ie = l.value[K]) != null && ie.top ? pe.col.style.marginTop = `${($e = l.value[K]) == null ? void 0 : $e.top}px` : pe.col.style.marginTop = "");
|
|
@@ -4887,18 +4888,18 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4887
4888
|
getColSize: se,
|
|
4888
4889
|
change: Ce
|
|
4889
4890
|
});
|
|
4890
|
-
}, ne = (
|
|
4891
|
-
t("toggleActive",
|
|
4891
|
+
}, ne = (f = { type: D.page, value: {} }) => {
|
|
4892
|
+
t("toggleActive", f);
|
|
4892
4893
|
};
|
|
4893
|
-
return (
|
|
4894
|
+
return (f, S) => {
|
|
4894
4895
|
var pe;
|
|
4895
|
-
return i(), h(
|
|
4896
|
-
|
|
4896
|
+
return i(), h(M, null, [
|
|
4897
|
+
f.readonly ? P("", !0) : (i(), V(Is, {
|
|
4897
4898
|
key: 0,
|
|
4898
4899
|
ColList: l.value,
|
|
4899
4900
|
ColDom: u.value.map((K) => K.col),
|
|
4900
|
-
ImgData:
|
|
4901
|
-
TxtData:
|
|
4901
|
+
ImgData: f.imgData,
|
|
4902
|
+
TxtData: f.txtData,
|
|
4902
4903
|
onDelAbsImgItem: S[0] || (S[0] = (K) => t("delAbsImgItem", K)),
|
|
4903
4904
|
onDelAbsTxtItem: S[1] || (S[1] = (K) => t("delAbsTxtItem", K)),
|
|
4904
4905
|
onChangeLayoutStatus: S[2] || (S[2] = (K) => t("changeLayoutStatus", K))
|
|
@@ -4913,13 +4914,13 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4913
4914
|
ref_key: "rawDom",
|
|
4914
4915
|
ref: y
|
|
4915
4916
|
}, [
|
|
4916
|
-
r.value.length ? (i(!0), h(
|
|
4917
|
+
r.value.length ? (i(!0), h(M, { key: 0 }, oe((pe = r.value[r.value.length - 1]) == null ? void 0 : pe.data, (K, ie) => (i(), h(M, null, [
|
|
4917
4918
|
K.isHidden ? P("", !0) : (i(), V(Tt, {
|
|
4918
4919
|
key: 0,
|
|
4919
4920
|
item: K,
|
|
4920
4921
|
showColBorder: U.value,
|
|
4921
4922
|
isFirst: !ie && r.value.length === 1,
|
|
4922
|
-
layout:
|
|
4923
|
+
layout: f.layout
|
|
4923
4924
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4924
4925
|
U.value ? (i(), h("div", {
|
|
4925
4926
|
key: 1,
|
|
@@ -4928,28 +4929,28 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4928
4929
|
(i(), V(Ue, {
|
|
4929
4930
|
data: K,
|
|
4930
4931
|
key: r.value.length,
|
|
4931
|
-
layout:
|
|
4932
|
-
target:
|
|
4932
|
+
layout: f.layout,
|
|
4933
|
+
target: f.target,
|
|
4933
4934
|
noPortrait: "",
|
|
4934
4935
|
width: G(r.value.length - 1)
|
|
4935
4936
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4936
4937
|
], 2)) : (i(), V(Ue, {
|
|
4937
4938
|
data: K,
|
|
4938
4939
|
key: r.value.length,
|
|
4939
|
-
layout:
|
|
4940
|
-
target:
|
|
4940
|
+
layout: f.layout,
|
|
4941
|
+
target: f.target,
|
|
4941
4942
|
width: G(r.value.length - 1)
|
|
4942
4943
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4943
4944
|
], 64))), 256)) : P("", !0)
|
|
4944
4945
|
], 512),
|
|
4945
4946
|
v("div", {
|
|
4946
|
-
class: Z(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__",
|
|
4947
|
+
class: Z(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", f.layout.redFlag && "red_mode", f.readonly && "pointer-events-none"]),
|
|
4947
4948
|
style: j(O.value)
|
|
4948
4949
|
}, [
|
|
4949
4950
|
te(Vs, {
|
|
4950
|
-
imgData:
|
|
4951
|
-
txtData:
|
|
4952
|
-
layout:
|
|
4951
|
+
imgData: f.imgData,
|
|
4952
|
+
txtData: f.txtData,
|
|
4953
|
+
layout: f.layout,
|
|
4953
4954
|
pageMargin: H.value,
|
|
4954
4955
|
onChangeAbsImgItem: S[3] || (S[3] = (K) => t("changeAbsImgItem", K)),
|
|
4955
4956
|
onDelAbsImgItem: S[4] || (S[4] = (K) => t("delAbsImgItem", K)),
|
|
@@ -4963,27 +4964,27 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4963
4964
|
key: a.value
|
|
4964
4965
|
}, [
|
|
4965
4966
|
(i(), h("foreignObject", Js, [
|
|
4966
|
-
(i(!0), h(
|
|
4967
|
+
(i(!0), h(M, null, oe(E.value, (K, ie) => (i(), h("div", {
|
|
4967
4968
|
key: K,
|
|
4968
4969
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4969
4970
|
ref_for: !0,
|
|
4970
4971
|
ref: ($e) => $($e, ie),
|
|
4971
4972
|
style: j(q.value)
|
|
4972
4973
|
}, [
|
|
4973
|
-
ie < w.value ? (i(), h(
|
|
4974
|
+
ie < w.value ? (i(), h(M, { key: 0 }, [
|
|
4974
4975
|
te(Co, {
|
|
4975
|
-
layout:
|
|
4976
|
+
layout: f.layout,
|
|
4976
4977
|
currentPage: ie,
|
|
4977
4978
|
totalPage: w.value,
|
|
4978
|
-
columnContentWidth: G(ie % 2 ?
|
|
4979
|
-
columnMargin: ue(ie % 2 ?
|
|
4979
|
+
columnContentWidth: G(ie % 2 ? f.layout.column : 0, !0),
|
|
4980
|
+
columnMargin: ue(ie % 2 ? f.layout.column : 0),
|
|
4980
4981
|
bindWidth: c.value,
|
|
4981
4982
|
padding: W.value
|
|
4982
4983
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4983
|
-
|
|
4984
|
+
f.layout.sloganFlag ? (i(), V(Io, {
|
|
4984
4985
|
key: 0,
|
|
4985
|
-
info:
|
|
4986
|
-
layout:
|
|
4986
|
+
info: f.info,
|
|
4987
|
+
layout: f.layout,
|
|
4987
4988
|
onChange: S[7] || (S[7] = ($e) => t("changeInfo", $e))
|
|
4988
4989
|
}, null, 8, ["info", "layout"])) : P("", !0),
|
|
4989
4990
|
te(ol, {
|
|
@@ -4994,7 +4995,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4994
4995
|
width: c.value,
|
|
4995
4996
|
height: b.value,
|
|
4996
4997
|
isBindFlag: J.value,
|
|
4997
|
-
bindSeatType:
|
|
4998
|
+
bindSeatType: f.layout.bindSeatType,
|
|
4998
4999
|
bindInfo: Y.value
|
|
4999
5000
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
5000
5001
|
!(ie % 2) || ie === 1 && w.value < 3 ? (i(), h("div", {
|
|
@@ -5006,73 +5007,73 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
5006
5007
|
style: j(fe.value)
|
|
5007
5008
|
}, [
|
|
5008
5009
|
te(Ao, {
|
|
5009
|
-
layout:
|
|
5010
|
-
code:
|
|
5010
|
+
layout: f.layout,
|
|
5011
|
+
code: f.info.textCode
|
|
5011
5012
|
}, null, 8, ["layout", "code"]),
|
|
5012
5013
|
te(la, {
|
|
5013
|
-
info:
|
|
5014
|
-
layout:
|
|
5015
|
-
fontConfig:
|
|
5016
|
-
data:
|
|
5014
|
+
info: f.info,
|
|
5015
|
+
layout: f.layout,
|
|
5016
|
+
fontConfig: f.fontConfig,
|
|
5017
|
+
data: f.data,
|
|
5017
5018
|
onChange: S[8] || (S[8] = ($e) => t("changeInfo", $e))
|
|
5018
5019
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5019
5020
|
te(Ca, {
|
|
5020
|
-
layout:
|
|
5021
|
-
info:
|
|
5021
|
+
layout: f.layout,
|
|
5022
|
+
info: f.info,
|
|
5022
5023
|
isBindFlag: J.value,
|
|
5023
5024
|
onChange: S[9] || (S[9] = ($e) => t("changeExtentInfo", $e))
|
|
5024
5025
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5025
5026
|
te(Oa, {
|
|
5026
|
-
layout:
|
|
5027
|
+
layout: f.layout,
|
|
5027
5028
|
isBindFlag: J.value
|
|
5028
5029
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5029
5030
|
ie ? P("", !0) : (i(), V(qa, {
|
|
5030
5031
|
key: 0,
|
|
5031
|
-
layout:
|
|
5032
|
-
data:
|
|
5032
|
+
layout: f.layout,
|
|
5033
|
+
data: f.data
|
|
5033
5034
|
}, null, 8, ["layout", "data"])),
|
|
5034
|
-
|
|
5035
|
+
f.layout.writeScoreFlag && !ie ? (i(), V(bl, {
|
|
5035
5036
|
key: 1,
|
|
5036
|
-
info:
|
|
5037
|
-
layout:
|
|
5037
|
+
info: f.info,
|
|
5038
|
+
layout: f.layout
|
|
5038
5039
|
}, null, 8, ["info", "layout"])) : P("", !0)
|
|
5039
5040
|
], 6)) : P("", !0),
|
|
5040
|
-
(i(!0), h(
|
|
5041
|
+
(i(!0), h(M, null, oe(ie % 2 ? f.layout.backColumn : f.layout.column, ($e, Pe) => (i(), V(Ua, {
|
|
5041
5042
|
ref_for: !0,
|
|
5042
5043
|
ref: (Ye) => ee(Ye, x(Pe, ie)),
|
|
5043
5044
|
styleInfo: se(x(Pe, ie), ie),
|
|
5044
|
-
column:
|
|
5045
|
+
column: f.layout.column,
|
|
5045
5046
|
currentColumn: x(Pe, ie),
|
|
5046
5047
|
showColBorder: U.value
|
|
5047
5048
|
}, {
|
|
5048
5049
|
default: Ft(() => {
|
|
5049
5050
|
var Ye;
|
|
5050
5051
|
return [
|
|
5051
|
-
(i(!0), h(
|
|
5052
|
+
(i(!0), h(M, null, oe(((Ye = l.value[x(Pe, ie)]) == null ? void 0 : Ye.data) || [], (we, Wt) => {
|
|
5052
5053
|
var bt;
|
|
5053
|
-
return i(), h(
|
|
5054
|
+
return i(), h(M, null, [
|
|
5054
5055
|
we.isHidden ? P("", !0) : (i(), V(Tt, {
|
|
5055
5056
|
key: 0,
|
|
5056
5057
|
item: we,
|
|
5057
5058
|
showColBorder: U.value,
|
|
5058
5059
|
isFirst: !ie && !Pe && !Wt,
|
|
5059
|
-
layout:
|
|
5060
|
-
isActive: ((bt =
|
|
5061
|
-
onClick: (Te) => ne({ type: we.problemType ? I(
|
|
5060
|
+
layout: f.layout,
|
|
5061
|
+
isActive: ((bt = f.target.value) == null ? void 0 : bt.id) === we.id,
|
|
5062
|
+
onClick: (Te) => ne({ type: we.problemType ? I(D).headline : I(D).headlineNotarea, value: we }),
|
|
5062
5063
|
onDbclick: (Te) => t("dbHeadLineClick", we)
|
|
5063
5064
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5064
5065
|
U.value ? (i(), h("div", {
|
|
5065
5066
|
key: 1,
|
|
5066
|
-
class: Z([!we.children.length && we.problemType && "p-1 min-h-[2rem]",
|
|
5067
|
-
onClick: Me((Te) => ne({ type: we.problemType ? I(
|
|
5067
|
+
class: Z([!we.children.length && we.problemType && "p-1 min-h-[2rem]", f.target.type === I(D).headline && f.target.value.id === we.id && "active_headline"]),
|
|
5068
|
+
onClick: Me((Te) => ne({ type: we.problemType ? I(D).headline : I(D).headlineNotarea, value: we }), ["stop"]),
|
|
5068
5069
|
onDblclick: (Te) => t("dbHeadLineClick", we)
|
|
5069
5070
|
}, [
|
|
5070
5071
|
te(Ue, {
|
|
5071
5072
|
data: we,
|
|
5072
|
-
layout:
|
|
5073
|
-
target:
|
|
5073
|
+
layout: f.layout,
|
|
5074
|
+
target: f.target,
|
|
5074
5075
|
width: G(x(Pe, ie)),
|
|
5075
|
-
onClick: S[10] || (S[10] = (Te) => ne({ type: Te.problemType ? I(
|
|
5076
|
+
onClick: S[10] || (S[10] = (Te) => ne({ type: Te.problemType ? I(D).problem : I(D).problemNotarea, value: Te })),
|
|
5076
5077
|
onDbclick: S[11] || (S[11] = (Te) => t("dbProblemClick", Te))
|
|
5077
5078
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5078
5079
|
we.children.length && we.children[we.children.length - 1].id === B.value ? (i(), h("div", {
|
|
@@ -5083,10 +5084,10 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
5083
5084
|
], 42, Zs)) : (i(), V(Ue, {
|
|
5084
5085
|
key: 2,
|
|
5085
5086
|
data: we,
|
|
5086
|
-
layout:
|
|
5087
|
-
target:
|
|
5087
|
+
layout: f.layout,
|
|
5088
|
+
target: f.target,
|
|
5088
5089
|
width: G(x(Pe, ie)),
|
|
5089
|
-
onClick: S[12] || (S[12] = (Te) => ne({ type: Te.problemType ? I(
|
|
5090
|
+
onClick: S[12] || (S[12] = (Te) => ne({ type: Te.problemType ? I(D).problem : I(D).problemNotarea, value: Te })),
|
|
5090
5091
|
onDbclick: S[13] || (S[13] = (Te) => t("dbProblemClick", Te))
|
|
5091
5092
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5092
5093
|
], 64);
|