alit-layout 1.1.3 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +877 -872
- 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 D, renderList as oe, createElementVNode as v, normalizeStyle as j, unref as I, toDisplayString as X, createCommentVNode as P, ref as Q, watch as Ne, normalizeClass as Z, computed as A, createBlock as V, createTextVNode as Je, createVNode as te, pushScopeId as Ge, popScopeId as Qe, renderSlot as pt, onMounted as qe, nextTick as ot, withModifiers as Me, resolveComponent as Gt, resolveDynamicComponent as vt, normalizeProps as wt, guardReactiveProps as kt, withCtx as Ft, inject as Qt, withDirectives as xt, provide as qt } from "vue";
|
|
2
2
|
const je = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -45,7 +45,7 @@ const je = {
|
|
|
45
45
|
__notarea: "NO_ANSWER_AREA",
|
|
46
46
|
// 非作答区(试题)
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
|
-
},
|
|
48
|
+
}, p = {
|
|
49
49
|
...Et,
|
|
50
50
|
...Re
|
|
51
51
|
}, He = [
|
|
@@ -530,7 +530,7 @@ const je = {
|
|
|
530
530
|
2: 1,
|
|
531
531
|
3: 1
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, M = {
|
|
534
534
|
page: "page",
|
|
535
535
|
headline: "headline",
|
|
536
536
|
text: "text",
|
|
@@ -786,8 +786,8 @@ const je = {
|
|
|
786
786
|
type: "radio",
|
|
787
787
|
label: "横向分栏",
|
|
788
788
|
key: d.article.col_a,
|
|
789
|
-
target: [
|
|
790
|
-
show: (e) => ![
|
|
789
|
+
target: [M.headline],
|
|
790
|
+
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
791
791
|
option: [
|
|
792
792
|
{ name: "1栏", code: g.col_1 },
|
|
793
793
|
{ name: "横向2栏", code: g.col_2 }
|
|
@@ -799,8 +799,8 @@ const je = {
|
|
|
799
799
|
type: "radio",
|
|
800
800
|
label: "横向分栏",
|
|
801
801
|
key: d.article.col_a,
|
|
802
|
-
target: [
|
|
803
|
-
show: (e) => ![
|
|
802
|
+
target: [M.headline],
|
|
803
|
+
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
804
804
|
option: [
|
|
805
805
|
{ name: "1栏", code: g.col_1 },
|
|
806
806
|
{ name: "横向2栏", code: g.col_2 }
|
|
@@ -810,13 +810,13 @@ const je = {
|
|
|
810
810
|
}, co = {
|
|
811
811
|
base: {
|
|
812
812
|
// 解答题
|
|
813
|
-
[
|
|
813
|
+
[p.slove]: [
|
|
814
814
|
{
|
|
815
815
|
type: "radio",
|
|
816
816
|
label: "插入题号样式控制",
|
|
817
817
|
key: d.article.slove_d,
|
|
818
818
|
code: "slove_insert_sub",
|
|
819
|
-
target: [
|
|
819
|
+
target: [M.problem],
|
|
820
820
|
option: [
|
|
821
821
|
{ name: "无", code: g.slove_5 },
|
|
822
822
|
{ name: "下划线", code: g.slove_6 }
|
|
@@ -826,7 +826,7 @@ const je = {
|
|
|
826
826
|
},
|
|
827
827
|
article: {
|
|
828
828
|
// 选择题
|
|
829
|
-
[
|
|
829
|
+
[p.choice]: [
|
|
830
830
|
{
|
|
831
831
|
type: "radio",
|
|
832
832
|
label: "展示样式",
|
|
@@ -838,7 +838,7 @@ const je = {
|
|
|
838
838
|
}
|
|
839
839
|
],
|
|
840
840
|
// 判断题
|
|
841
|
-
[
|
|
841
|
+
[p.decide]: [
|
|
842
842
|
{
|
|
843
843
|
type: "radio",
|
|
844
844
|
label: "展示样式",
|
|
@@ -850,7 +850,7 @@ const je = {
|
|
|
850
850
|
}
|
|
851
851
|
],
|
|
852
852
|
// 填空题
|
|
853
|
-
[
|
|
853
|
+
[p.fill]: [
|
|
854
854
|
{
|
|
855
855
|
type: "radio",
|
|
856
856
|
label: "打分框位置",
|
|
@@ -863,9 +863,9 @@ const je = {
|
|
|
863
863
|
}
|
|
864
864
|
],
|
|
865
865
|
// 选填题
|
|
866
|
-
[
|
|
866
|
+
[p.mix]: [],
|
|
867
867
|
// 解答题
|
|
868
|
-
[
|
|
868
|
+
[p.slove]: [
|
|
869
869
|
{
|
|
870
870
|
type: "radio",
|
|
871
871
|
label: "边框控制",
|
|
@@ -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: [M.problem],
|
|
903
903
|
option: [
|
|
904
904
|
{ name: "无", code: g.slove_5 },
|
|
905
905
|
{ name: "下划线", code: g.slove_6 }
|
|
@@ -907,7 +907,7 @@ const je = {
|
|
|
907
907
|
}
|
|
908
908
|
],
|
|
909
909
|
// 作文题
|
|
910
|
-
[
|
|
910
|
+
[p.art]: [
|
|
911
911
|
{
|
|
912
912
|
type: "slider",
|
|
913
913
|
label: "格子尺寸",
|
|
@@ -922,7 +922,7 @@ const je = {
|
|
|
922
922
|
key: d.article.art_c,
|
|
923
923
|
detail: !0,
|
|
924
924
|
unit: "字",
|
|
925
|
-
target: [
|
|
925
|
+
target: [M.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: [M.problem]
|
|
935
935
|
},
|
|
936
936
|
{
|
|
937
937
|
type: "radio",
|
|
@@ -942,13 +942,13 @@ const je = {
|
|
|
942
942
|
{ name: "100", code: 100 }
|
|
943
943
|
],
|
|
944
944
|
detail: !0,
|
|
945
|
-
target: [
|
|
945
|
+
target: [M.problem]
|
|
946
946
|
}
|
|
947
947
|
]
|
|
948
948
|
},
|
|
949
949
|
sheet: {
|
|
950
950
|
// 选择题
|
|
951
|
-
[
|
|
951
|
+
[p.choice]: [
|
|
952
952
|
{
|
|
953
953
|
type: "radio",
|
|
954
954
|
label: "排列样式",
|
|
@@ -983,7 +983,7 @@ const je = {
|
|
|
983
983
|
{
|
|
984
984
|
type: "slider",
|
|
985
985
|
label: "每组个数",
|
|
986
|
-
target: [
|
|
986
|
+
target: [M.page, M.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: [M.page, M.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,
|
|
@@ -1000,7 +1000,7 @@ const je = {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
],
|
|
1002
1002
|
// 判断题
|
|
1003
|
-
[
|
|
1003
|
+
[p.decide]: [
|
|
1004
1004
|
{
|
|
1005
1005
|
type: "radio",
|
|
1006
1006
|
label: "展示样式",
|
|
@@ -1013,7 +1013,7 @@ const je = {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
],
|
|
1015
1015
|
// 填空题
|
|
1016
|
-
[
|
|
1016
|
+
[p.fill]: [
|
|
1017
1017
|
{
|
|
1018
1018
|
type: "radio",
|
|
1019
1019
|
label: "题干显示控制",
|
|
@@ -1038,7 +1038,7 @@ const je = {
|
|
|
1038
1038
|
type: "radio",
|
|
1039
1039
|
label: "分题换行",
|
|
1040
1040
|
key: d.sheet.fill_c,
|
|
1041
|
-
target: [
|
|
1041
|
+
target: [M.page, M.headline],
|
|
1042
1042
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1043
1043
|
option: [
|
|
1044
1044
|
{ name: "开启", code: g.fill_1 },
|
|
@@ -1079,13 +1079,13 @@ const je = {
|
|
|
1079
1079
|
type: "slider",
|
|
1080
1080
|
label: "每空高度",
|
|
1081
1081
|
key: d.sheet.fill_e,
|
|
1082
|
-
target: [
|
|
1082
|
+
target: [M.page, M.headline],
|
|
1083
1083
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1084
1084
|
max: () => 20
|
|
1085
1085
|
}
|
|
1086
1086
|
],
|
|
1087
1087
|
// 选填题
|
|
1088
|
-
[
|
|
1088
|
+
[p.mix]: [
|
|
1089
1089
|
{
|
|
1090
1090
|
type: "radio",
|
|
1091
1091
|
label: "题干显示控制",
|
|
@@ -1100,9 +1100,9 @@ const je = {
|
|
|
1100
1100
|
type: "radio",
|
|
1101
1101
|
label: "每空宽度",
|
|
1102
1102
|
key: d.sheet.fill_d,
|
|
1103
|
-
filter: (e, t) => e.mixType[t].problemType ===
|
|
1104
|
-
target: [
|
|
1105
|
-
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType ===
|
|
1103
|
+
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1104
|
+
target: [M.problem],
|
|
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 },
|
|
1108
1108
|
{ name: "1/2", code: 2 },
|
|
@@ -1116,14 +1116,14 @@ const je = {
|
|
|
1116
1116
|
type: "slider",
|
|
1117
1117
|
label: "每空高度",
|
|
1118
1118
|
key: d.sheet.fill_e,
|
|
1119
|
-
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(
|
|
1119
|
+
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.fill),
|
|
1120
1120
|
max: () => 20
|
|
1121
1121
|
},
|
|
1122
1122
|
{
|
|
1123
1123
|
type: "radio",
|
|
1124
1124
|
label: "展示样式",
|
|
1125
1125
|
key: d.sheet.decide_a,
|
|
1126
|
-
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(
|
|
1126
|
+
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1127
1127
|
option: [
|
|
1128
1128
|
{ name: "对错", code: g.decide_1 },
|
|
1129
1129
|
{ name: "TF", code: g.decide_2 }
|
|
@@ -1133,8 +1133,8 @@ const je = {
|
|
|
1133
1133
|
type: "radio",
|
|
1134
1134
|
label: "排列方向",
|
|
1135
1135
|
key: d.sheet.choice_b,
|
|
1136
|
-
target: [
|
|
1137
|
-
show: (e) => !e.style[d.sheet.mix_a] && !(e.mixType || []).find((t) => ![
|
|
1136
|
+
target: [M.problem],
|
|
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 },
|
|
1140
1140
|
{ name: "竖向", code: g.portrait }
|
|
@@ -1153,7 +1153,7 @@ const je = {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
],
|
|
1155
1155
|
// 解答题
|
|
1156
|
-
[
|
|
1156
|
+
[p.slove]: [
|
|
1157
1157
|
{
|
|
1158
1158
|
type: "radio",
|
|
1159
1159
|
label: "题目计分提示",
|
|
@@ -1167,7 +1167,7 @@ const je = {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
],
|
|
1169
1169
|
// 简答题
|
|
1170
|
-
[
|
|
1170
|
+
[p.easy_slove]: [
|
|
1171
1171
|
{
|
|
1172
1172
|
type: "radio",
|
|
1173
1173
|
label: "题目计分提示",
|
|
@@ -1181,7 +1181,7 @@ const je = {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
],
|
|
1183
1183
|
// 作文题
|
|
1184
|
-
[
|
|
1184
|
+
[p.art]: [
|
|
1185
1185
|
{
|
|
1186
1186
|
type: "slider",
|
|
1187
1187
|
label: "格子尺寸",
|
|
@@ -1196,7 +1196,7 @@ const je = {
|
|
|
1196
1196
|
key: d.sheet.art_c,
|
|
1197
1197
|
detail: !0,
|
|
1198
1198
|
unit: "字",
|
|
1199
|
-
target: [
|
|
1199
|
+
target: [M.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: [M.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: [M.problem]
|
|
1220
1220
|
},
|
|
1221
1221
|
{
|
|
1222
1222
|
type: "radio",
|
|
@@ -1230,7 +1230,7 @@ const je = {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
],
|
|
1232
1232
|
// 综合题
|
|
1233
|
-
[
|
|
1233
|
+
[p.synthesis]: [
|
|
1234
1234
|
{
|
|
1235
1235
|
type: "radio",
|
|
1236
1236
|
label: "主客分离",
|
|
@@ -1254,7 +1254,7 @@ const je = {
|
|
|
1254
1254
|
},
|
|
1255
1255
|
sheetCard: {
|
|
1256
1256
|
// 选择题
|
|
1257
|
-
[
|
|
1257
|
+
[p.choice]: [
|
|
1258
1258
|
{
|
|
1259
1259
|
type: "radio",
|
|
1260
1260
|
label: "排列样式",
|
|
@@ -1289,16 +1289,16 @@ const je = {
|
|
|
1289
1289
|
{
|
|
1290
1290
|
type: "slider",
|
|
1291
1291
|
label: "每组个数",
|
|
1292
|
-
target: [
|
|
1292
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [M.problem] : [M.page, M.headline],
|
|
1293
1293
|
key: d.sheetCard.choice_e,
|
|
1294
|
-
show: (e) => e.style[d.sheetCard.choice_a] === g.choice_1,
|
|
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,
|
|
1296
1296
|
max: () => 20
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
1299
|
type: "slider",
|
|
1300
1300
|
label: "列数",
|
|
1301
|
-
target: [
|
|
1301
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [M.problem] : [M.page, M.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: [
|
|
1310
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [M.problem] : [M.page, M.headline],
|
|
1311
1311
|
key: d.sheetCard.choice_f,
|
|
1312
1312
|
show: (e) => e.style[d.sheetCard.choice_a] !== g.choice_2,
|
|
1313
1313
|
option: [
|
|
@@ -1317,7 +1317,7 @@ const je = {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
],
|
|
1319
1319
|
// 判断题
|
|
1320
|
-
[
|
|
1320
|
+
[p.decide]: [
|
|
1321
1321
|
{
|
|
1322
1322
|
type: "radio",
|
|
1323
1323
|
label: "展示样式",
|
|
@@ -1329,7 +1329,7 @@ const je = {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
],
|
|
1331
1331
|
// 填空题
|
|
1332
|
-
[
|
|
1332
|
+
[p.fill]: [
|
|
1333
1333
|
{
|
|
1334
1334
|
type: "radio",
|
|
1335
1335
|
label: "打分框位置",
|
|
@@ -1345,8 +1345,8 @@ const je = {
|
|
|
1345
1345
|
type: "radio",
|
|
1346
1346
|
label: "分题换行",
|
|
1347
1347
|
key: d.sheetCard.fill_c,
|
|
1348
|
-
target: [
|
|
1349
|
-
show: (e) => !e.style[d.sheetCard.fill_b]
|
|
1348
|
+
target: (e, t) => [p.synthesis].includes(e.problemType) ? [M.problem] : [p.mix].includes(e.problemType) ? [] : [M.page, M.headline],
|
|
1349
|
+
show: (e) => !e.style[d.sheetCard.fill_b],
|
|
1350
1350
|
option: [
|
|
1351
1351
|
{ name: "开启", code: g.fill_1 },
|
|
1352
1352
|
{ name: "关闭", code: g.fill_2 }
|
|
@@ -1356,8 +1356,8 @@ const je = {
|
|
|
1356
1356
|
type: "radio",
|
|
1357
1357
|
label: "排列方向",
|
|
1358
1358
|
key: d.sheetCard.fill_g,
|
|
1359
|
-
target: [
|
|
1360
|
-
show: (e) => e.style[d.sheetCard.fill_c] === g.fill_2 &&
|
|
1359
|
+
target: [M.page, M.headline],
|
|
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 },
|
|
1363
1363
|
{ name: "纵向", code: g.portrait }
|
|
@@ -1367,7 +1367,7 @@ const je = {
|
|
|
1367
1367
|
type: "slider",
|
|
1368
1368
|
label: "每组个数",
|
|
1369
1369
|
key: d.sheetCard.fill_h,
|
|
1370
|
-
target: [
|
|
1370
|
+
target: [M.page, M.headline],
|
|
1371
1371
|
show: (e) => e.style[d.sheetCard.fill_g] === g.portrait,
|
|
1372
1372
|
min: () => 1,
|
|
1373
1373
|
max: () => 10
|
|
@@ -1377,7 +1377,10 @@ const je = {
|
|
|
1377
1377
|
type: "radio",
|
|
1378
1378
|
label: "每空宽度",
|
|
1379
1379
|
key: d.sheetCard.fill_d,
|
|
1380
|
-
|
|
1380
|
+
target: [M.problem],
|
|
1381
|
+
detail: !0,
|
|
1382
|
+
problemCode: [p.fill, p.fill_english],
|
|
1383
|
+
show: (e) => !e.style[d.sheetCard.fill_b] && e.style[d.sheetCard.fill_g] !== g.portrait,
|
|
1381
1384
|
option: [
|
|
1382
1385
|
{ name: "1", code: 1 },
|
|
1383
1386
|
{ name: "1/2", code: 2 },
|
|
@@ -1392,7 +1395,8 @@ const je = {
|
|
|
1392
1395
|
type: "radio",
|
|
1393
1396
|
label: "每行空数",
|
|
1394
1397
|
key: d.sheetCard.fill_f,
|
|
1395
|
-
|
|
1398
|
+
target: [M.page, M.headline],
|
|
1399
|
+
show: (e) => !e.style[d.sheetCard.fill_b] && e.children.length,
|
|
1396
1400
|
option: [
|
|
1397
1401
|
{ name: "1", code: 1 },
|
|
1398
1402
|
{ name: "1/2", code: 2 },
|
|
@@ -1406,30 +1410,29 @@ const je = {
|
|
|
1406
1410
|
type: "slider",
|
|
1407
1411
|
label: "每空高度",
|
|
1408
1412
|
key: d.sheetCard.fill_e,
|
|
1409
|
-
target: [
|
|
1413
|
+
target: (e, t) => [p.synthesis, p.mix].includes(e.problemType) ? [M.problem] : [M.page, M.headline],
|
|
1410
1414
|
show: (e) => !e.style[d.sheetCard.fill_b],
|
|
1411
1415
|
max: () => 20
|
|
1412
1416
|
}
|
|
1413
1417
|
],
|
|
1414
1418
|
// 选填题
|
|
1415
|
-
[
|
|
1416
|
-
{
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
},
|
|
1419
|
+
[p.mix]: [
|
|
1420
|
+
// { // 试题自身
|
|
1421
|
+
// type: 'radio',
|
|
1422
|
+
// label: '每空宽度',
|
|
1423
|
+
// key: problemLayoutKey.sheetCard.fill_d,
|
|
1424
|
+
// filter: (item: Strany, i: number) => item.mixType[i].problemType === problemCode.fill,
|
|
1425
|
+
// target: [toolGroup.problem],
|
|
1426
|
+
// show: (item: Strany) => !item.style[problemLayoutKey.sheetCard.mix_a] && (item.mixType || []).find((v: Strany) => v.problemType === problemCode.fill),
|
|
1427
|
+
// option: [
|
|
1428
|
+
// { name: '1', code: 1 },
|
|
1429
|
+
// { name: '1/2', code: 2 },
|
|
1430
|
+
// { name: '1/3', code: 3 },
|
|
1431
|
+
// { name: '1/4', code: 4 },
|
|
1432
|
+
// { name: '2/3', code: 1.5 },
|
|
1433
|
+
// { name: '3/4', code: 1.34 }
|
|
1434
|
+
// ]
|
|
1435
|
+
// },
|
|
1433
1436
|
{
|
|
1434
1437
|
type: "radio",
|
|
1435
1438
|
label: "主客分离",
|
|
@@ -1461,8 +1464,8 @@ const je = {
|
|
|
1461
1464
|
type: "radio",
|
|
1462
1465
|
label: "排列方向",
|
|
1463
1466
|
key: d.sheetCard.choice_b,
|
|
1464
|
-
target: [
|
|
1465
|
-
show: (e) => !e.style[d.sheetCard.mix_a] && !e.
|
|
1467
|
+
target: [M.problem],
|
|
1468
|
+
show: (e) => !e.style[d.sheetCard.mix_a] && !e.style[d.sheetCard.mix_c] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1466
1469
|
option: [
|
|
1467
1470
|
{ name: "横向", code: g.landscape },
|
|
1468
1471
|
{ name: "竖向", code: g.portrait }
|
|
@@ -1472,7 +1475,7 @@ const je = {
|
|
|
1472
1475
|
type: "radio",
|
|
1473
1476
|
label: "题目计分提示",
|
|
1474
1477
|
key: d.public.scoreShowFlag,
|
|
1475
|
-
show: (e) => !e.style[d.sheetCard.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(
|
|
1478
|
+
show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [p.easy_slove].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(p).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [p.easy_slove].includes(t.problemType))),
|
|
1476
1479
|
option: [
|
|
1477
1480
|
{ name: "隐藏", code: g.bracket_none },
|
|
1478
1481
|
{ name: "显示(英文括号)", code: g.bracket_en },
|
|
@@ -1481,7 +1484,7 @@ const je = {
|
|
|
1481
1484
|
}
|
|
1482
1485
|
],
|
|
1483
1486
|
// 解答题
|
|
1484
|
-
[
|
|
1487
|
+
[p.slove]: [
|
|
1485
1488
|
{
|
|
1486
1489
|
type: "radio",
|
|
1487
1490
|
label: "题目计分提示",
|
|
@@ -1495,7 +1498,7 @@ const je = {
|
|
|
1495
1498
|
}
|
|
1496
1499
|
],
|
|
1497
1500
|
// 简答题
|
|
1498
|
-
[
|
|
1501
|
+
[p.easy_slove]: [
|
|
1499
1502
|
{
|
|
1500
1503
|
type: "radio",
|
|
1501
1504
|
label: "题目计分提示",
|
|
@@ -1509,13 +1512,13 @@ const je = {
|
|
|
1509
1512
|
}
|
|
1510
1513
|
],
|
|
1511
1514
|
// 作文题
|
|
1512
|
-
[
|
|
1515
|
+
[p.art]: [
|
|
1513
1516
|
{
|
|
1514
1517
|
type: "slider",
|
|
1515
1518
|
label: "格子尺寸",
|
|
1516
1519
|
key: d.article.art_b,
|
|
1517
1520
|
detail: !0,
|
|
1518
|
-
target: [
|
|
1521
|
+
target: [M.problem],
|
|
1519
1522
|
show: (e) => e.artBlock,
|
|
1520
1523
|
min: () => 27,
|
|
1521
1524
|
max: () => 40,
|
|
@@ -1530,7 +1533,7 @@ const je = {
|
|
|
1530
1533
|
key: d.sheetCard.art_c,
|
|
1531
1534
|
detail: !0,
|
|
1532
1535
|
unit: "字",
|
|
1533
|
-
target: [
|
|
1536
|
+
target: [M.problem],
|
|
1534
1537
|
show: (e) => e.artBlock
|
|
1535
1538
|
},
|
|
1536
1539
|
{
|
|
@@ -1540,7 +1543,7 @@ const je = {
|
|
|
1540
1543
|
detail: !0,
|
|
1541
1544
|
min: () => 1,
|
|
1542
1545
|
max: (e) => Math.floor(e.style[d.sheetCard.art_c] / e.style[d.sheetCard.art_e]),
|
|
1543
|
-
target: [
|
|
1546
|
+
target: [M.problem],
|
|
1544
1547
|
show: (e) => e.artBlock
|
|
1545
1548
|
},
|
|
1546
1549
|
{
|
|
@@ -1552,7 +1555,7 @@ const je = {
|
|
|
1552
1555
|
{ name: "100", code: 100 }
|
|
1553
1556
|
],
|
|
1554
1557
|
detail: !0,
|
|
1555
|
-
target: [
|
|
1558
|
+
target: [M.problem],
|
|
1556
1559
|
show: (e) => e.artBlock
|
|
1557
1560
|
},
|
|
1558
1561
|
{
|
|
@@ -1561,7 +1564,7 @@ const je = {
|
|
|
1561
1564
|
key: d.sheetCard.art_c,
|
|
1562
1565
|
detail: !0,
|
|
1563
1566
|
unit: "行",
|
|
1564
|
-
target: [
|
|
1567
|
+
target: [M.problem],
|
|
1565
1568
|
show: (e) => !e.artBlock
|
|
1566
1569
|
},
|
|
1567
1570
|
{
|
|
@@ -1576,7 +1579,7 @@ const je = {
|
|
|
1576
1579
|
}
|
|
1577
1580
|
],
|
|
1578
1581
|
// 综合题
|
|
1579
|
-
[
|
|
1582
|
+
[p.synthesis]: [
|
|
1580
1583
|
{
|
|
1581
1584
|
type: "radio",
|
|
1582
1585
|
label: "主客分离",
|
|
@@ -1590,6 +1593,7 @@ const je = {
|
|
|
1590
1593
|
type: "radio",
|
|
1591
1594
|
label: "题目计分提示",
|
|
1592
1595
|
key: d.public.scoreShowFlag,
|
|
1596
|
+
show: (e) => (e.children || []).filter((t) => Object.values(p).includes(t.problemType)).map((t) => (t.children || []).length ? t.children : t).flat(2).find((t) => [p.easy_slove, p.slove].includes(t.problemType)),
|
|
1593
1597
|
option: [
|
|
1594
1598
|
{ name: "隐藏", code: g.bracket_none },
|
|
1595
1599
|
{ name: "显示(英文括号)", code: g.bracket_en },
|
|
@@ -1743,7 +1747,7 @@ const je = {
|
|
|
1743
1747
|
subRangeOption: ao,
|
|
1744
1748
|
subRule: Ve,
|
|
1745
1749
|
subRuleOption: lo,
|
|
1746
|
-
toolGroup:
|
|
1750
|
+
toolGroup: M
|
|
1747
1751
|
}, Symbol.toStringTag, { value: "Module" })), yt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), _o = "TF".split(""), fo = {
|
|
1748
1752
|
a4: "TYPE_A4",
|
|
1749
1753
|
a4x: "TYPE_A4",
|
|
@@ -1799,24 +1803,24 @@ const je = {
|
|
|
1799
1803
|
// 密封线
|
|
1800
1804
|
bind_line: `__${be}bindline`
|
|
1801
1805
|
}, st = {
|
|
1802
|
-
[
|
|
1806
|
+
[p.choice]: "TYPE_SINGLECHOICE",
|
|
1803
1807
|
// 单项选择
|
|
1804
|
-
[
|
|
1805
|
-
[
|
|
1806
|
-
[
|
|
1808
|
+
[p.choice_english]: "TYPE_SINGLECHOICE",
|
|
1809
|
+
[p.cloze]: "TYPE_CLOZE_TEST",
|
|
1810
|
+
[p.choice_multiple]: "TYPE_MULTICHOICE",
|
|
1807
1811
|
// 多项选择
|
|
1808
|
-
[
|
|
1812
|
+
[p.decide]: "TYPE_JUDGE",
|
|
1809
1813
|
// 判断
|
|
1810
|
-
[
|
|
1814
|
+
[p.fill]: "TYPE_FILLBLANK",
|
|
1811
1815
|
// 填空
|
|
1812
|
-
[
|
|
1813
|
-
[
|
|
1814
|
-
[
|
|
1816
|
+
[p.fill_english]: "TYPE_FILLBLANK",
|
|
1817
|
+
[p.mix]: "TYPE_CHOICE_FILL",
|
|
1818
|
+
[p.slove]: "TYPE_SIMPLEQUESTION",
|
|
1815
1819
|
// 简(问)答
|
|
1816
|
-
[
|
|
1817
|
-
[
|
|
1820
|
+
[p.easy_slove]: "TYPE_SIMPLE_ANSWER",
|
|
1821
|
+
[p.art]: "TYPE_COMPOSITION",
|
|
1818
1822
|
// 作文
|
|
1819
|
-
[
|
|
1823
|
+
[p.synthesis]: "TYPE_MULTI",
|
|
1820
1824
|
// 综合题
|
|
1821
1825
|
[ke.one_choice]: "TYPE_SINGLECHOICE",
|
|
1822
1826
|
// 选做题
|
|
@@ -1849,7 +1853,7 @@ const je = {
|
|
|
1849
1853
|
top: `${t.padding.top - 20}px`
|
|
1850
1854
|
}
|
|
1851
1855
|
})[t.layout.pagePoint], r = (a, c) => {
|
|
1852
|
-
const
|
|
1856
|
+
const y = t.columnContentWidth + t.columnMargin, n = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, u = {
|
|
1853
1857
|
t: {
|
|
1854
1858
|
top: `${t.padding.top - 20}px`
|
|
1855
1859
|
},
|
|
@@ -1857,40 +1861,40 @@ const je = {
|
|
|
1857
1861
|
bottom: `${t.padding.bottom - 20}px`
|
|
1858
1862
|
}
|
|
1859
1863
|
};
|
|
1860
|
-
return { left: `${a *
|
|
1864
|
+
return { left: `${a * y + n}px`, ...u[c] };
|
|
1861
1865
|
}, s = (a) => {
|
|
1862
|
-
const c = (k[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3,
|
|
1863
|
-
return { top: `${c * n + t.padding.top - 10}px`, width: "11px", ...
|
|
1866
|
+
const c = (k[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, y = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, n = ["", "l", "r"].findIndex((u) => u === a);
|
|
1867
|
+
return { top: `${c * n + t.padding.top - 10}px`, width: "11px", ...y };
|
|
1864
1868
|
};
|
|
1865
1869
|
return (a, c) => {
|
|
1866
|
-
var
|
|
1867
|
-
return i(), h(
|
|
1868
|
-
(i(), h(
|
|
1870
|
+
var y;
|
|
1871
|
+
return i(), h(D, null, [
|
|
1872
|
+
(i(), h(D, null, oe(["lt", "rt", "lb", "rb"], (n) => v("span", {
|
|
1869
1873
|
key: n,
|
|
1870
1874
|
class: "absolute w-8 bg-black point_item",
|
|
1871
|
-
style:
|
|
1875
|
+
style: j(o(n)),
|
|
1872
1876
|
"data-xine": I(T).point + n
|
|
1873
1877
|
}, null, 12, go)), 64)),
|
|
1874
|
-
(i(!0), h(
|
|
1875
|
-
(i(), h(
|
|
1878
|
+
(i(!0), h(D, null, oe((a.currentPage % 2 ? a.layout.backColumn : a.layout.column) - 1, (n) => (i(), h(D, { key: n }, [
|
|
1879
|
+
(i(), h(D, null, oe(["t", "b"], (u) => v("span", {
|
|
1876
1880
|
key: u,
|
|
1877
1881
|
class: "absolute bg-black w-8 point_item",
|
|
1878
|
-
style:
|
|
1882
|
+
style: j(r(n, u)),
|
|
1879
1883
|
"data-xine": I(T).point + u
|
|
1880
1884
|
}, null, 12, bo)), 64))
|
|
1881
1885
|
], 64))), 128)),
|
|
1882
|
-
(i(), h(
|
|
1886
|
+
(i(), h(D, null, oe(["l", "r"], (n) => v("span", {
|
|
1883
1887
|
key: n,
|
|
1884
1888
|
class: "absolute bg-black h-8",
|
|
1885
|
-
style:
|
|
1889
|
+
style: j(s(n)),
|
|
1886
1890
|
"data-xine": I(T).point + n
|
|
1887
1891
|
}, null, 12, vo)), 64)),
|
|
1888
1892
|
v("p", {
|
|
1889
1893
|
class: "absolute leading-none text-0",
|
|
1890
|
-
style:
|
|
1894
|
+
style: j(l()),
|
|
1891
1895
|
"data-xine": I(T).page
|
|
1892
1896
|
}, [
|
|
1893
|
-
(i(!0), h(
|
|
1897
|
+
(i(!0), h(D, null, oe(a.currentPage + 1, (n, u) => (i(), h("span", {
|
|
1894
1898
|
key: n,
|
|
1895
1899
|
class: "inline-block bg-black mx-2 page_item",
|
|
1896
1900
|
"data-xine": I(T).page_item + u
|
|
@@ -1899,12 +1903,12 @@ const je = {
|
|
|
1899
1903
|
a.currentPage % 2 ? P("", !0) : (i(), h("span", {
|
|
1900
1904
|
key: 0,
|
|
1901
1905
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1902
|
-
style:
|
|
1903
|
-
}, "提示:本卷" +
|
|
1906
|
+
style: j({ right: `${a.padding.right - 12}px` })
|
|
1907
|
+
}, "提示:本卷" + X((y = I(He).find((n) => n.code === a.layout.paper)) == null ? void 0 : y.name) + "纸张", 5)),
|
|
1904
1908
|
v("span", {
|
|
1905
1909
|
class: "absolute text-sm red_sheet",
|
|
1906
|
-
style:
|
|
1907
|
-
},
|
|
1910
|
+
style: j({ right: `${a.padding.bottom - 20 + 75}px`, bottom: `${a.padding.bottom - 20 - 3}px` })
|
|
1911
|
+
}, X(a.currentPage + 1) + "/" + X(a.totalPage), 5)
|
|
1908
1912
|
], 64);
|
|
1909
1913
|
};
|
|
1910
1914
|
}
|
|
@@ -1944,15 +1948,15 @@ const ye = (e, t) => {
|
|
|
1944
1948
|
}, 400);
|
|
1945
1949
|
}, c = (n) => {
|
|
1946
1950
|
l.value = n.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value), r.value = !0;
|
|
1947
|
-
},
|
|
1951
|
+
}, y = () => {
|
|
1948
1952
|
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), r.value = !1;
|
|
1949
1953
|
};
|
|
1950
1954
|
return (n, u) => (i(), h("div", {
|
|
1951
|
-
class:
|
|
1955
|
+
class: Z(["flex-1 flex items-center border rounded-lg", n.autoLine ? r.value ? "border-gray4" : "border-transparent" : "border-gray4", n.size === "small" && "p-1", n.size === "stand" && "p-2", n.size === "large" && "p-2"])
|
|
1952
1956
|
}, [
|
|
1953
1957
|
v("div", So, [
|
|
1954
1958
|
v("input", {
|
|
1955
|
-
class:
|
|
1959
|
+
class: Z(["w-full", n.dir === "center" && "text-center", n.dir === "right" && "text-right"]),
|
|
1956
1960
|
type: n.type,
|
|
1957
1961
|
placeholder: n.placeholder,
|
|
1958
1962
|
maxlength: n.maxLength,
|
|
@@ -1960,10 +1964,10 @@ const ye = (e, t) => {
|
|
|
1960
1964
|
onInput: s,
|
|
1961
1965
|
onChange: a,
|
|
1962
1966
|
onFocus: c,
|
|
1963
|
-
onBlur:
|
|
1967
|
+
onBlur: y
|
|
1964
1968
|
}, null, 42, $o)
|
|
1965
1969
|
]),
|
|
1966
|
-
n.unit ? (i(), h("span", To,
|
|
1970
|
+
n.unit ? (i(), h("span", To, X(n.unit), 1)) : P("", !0)
|
|
1967
1971
|
], 2));
|
|
1968
1972
|
}
|
|
1969
1973
|
}), Io = /* @__PURE__ */ ae({
|
|
@@ -1974,11 +1978,11 @@ const ye = (e, t) => {
|
|
|
1974
1978
|
},
|
|
1975
1979
|
emits: ["change"],
|
|
1976
1980
|
setup(e, { emit: t }) {
|
|
1977
|
-
const o = e, l =
|
|
1981
|
+
const o = e, l = A(() => mt[o.layout.mode][o.layout.paper]), r = A(() => ({
|
|
1978
1982
|
right: `${l.value.right + 97}px`,
|
|
1979
1983
|
bottom: `${l.value.bottom - 25}px`
|
|
1980
1984
|
}));
|
|
1981
|
-
return (s, a) => (i(),
|
|
1985
|
+
return (s, a) => (i(), V(lt, {
|
|
1982
1986
|
class: "absolute w-72 text-sm",
|
|
1983
1987
|
value: s.info.slogan,
|
|
1984
1988
|
maxLength: 12,
|
|
@@ -1986,7 +1990,7 @@ const ye = (e, t) => {
|
|
|
1986
1990
|
size: "small",
|
|
1987
1991
|
autoLine: "",
|
|
1988
1992
|
dir: "right",
|
|
1989
|
-
style:
|
|
1993
|
+
style: j(r.value),
|
|
1990
1994
|
onChange: a[0] || (a[0] = (c) => t("change", { slogin: c }))
|
|
1991
1995
|
}, null, 8, ["value", "style"]));
|
|
1992
1996
|
}
|
|
@@ -1999,7 +2003,7 @@ const ye = (e, t) => {
|
|
|
1999
2003
|
},
|
|
2000
2004
|
emits: ["click"],
|
|
2001
2005
|
setup(e, { emit: t }) {
|
|
2002
|
-
const o = e, l =
|
|
2006
|
+
const o = e, l = A(() => `#icon-${o.name}`);
|
|
2003
2007
|
return (r, s) => (i(), h("span", {
|
|
2004
2008
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
2005
2009
|
onClick: s[0] || (s[0] = (a) => t("click"))
|
|
@@ -2033,7 +2037,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2033
2037
|
}),
|
|
2034
2038
|
Je("启用前")
|
|
2035
2039
|
])) : P("", !0),
|
|
2036
|
-
v("p", Do, "ID:" +
|
|
2040
|
+
v("p", Do, "ID:" + X(t.code), 1)
|
|
2037
2041
|
]));
|
|
2038
2042
|
}
|
|
2039
2043
|
}), Bo = ["innerHTML"], ze = /* @__PURE__ */ ae({
|
|
@@ -2079,7 +2083,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2079
2083
|
},
|
|
2080
2084
|
emits: ["change"],
|
|
2081
2085
|
setup(e, { emit: t }) {
|
|
2082
|
-
const o = e, l =
|
|
2086
|
+
const o = e, l = A(() => o.data.filter((a) => ![ke.another, ke.another_choice, ke.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), r = A(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), s = A(() => o.layout.scoreAddStars === at.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2083
2087
|
return (a, c) => (i(), h("div", No, [
|
|
2084
2088
|
v("img", {
|
|
2085
2089
|
src: a.info.qrCode,
|
|
@@ -2091,15 +2095,15 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2091
2095
|
te(ze, {
|
|
2092
2096
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2093
2097
|
value: a.info.title,
|
|
2094
|
-
style:
|
|
2095
|
-
onChange: c[0] || (c[0] = (
|
|
2098
|
+
style: j(a.fontConfig.titleStyle),
|
|
2099
|
+
onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
|
|
2096
2100
|
}, null, 8, ["value", "style"]),
|
|
2097
|
-
a.layout.secTitleFlag ? (i(),
|
|
2101
|
+
a.layout.secTitleFlag ? (i(), V(ze, {
|
|
2098
2102
|
key: 0,
|
|
2099
2103
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2100
2104
|
value: a.info.secTitle,
|
|
2101
|
-
style:
|
|
2102
|
-
onChange: c[1] || (c[1] = (
|
|
2105
|
+
style: j(a.fontConfig.halfTitleStyle),
|
|
2106
|
+
onChange: c[1] || (c[1] = (y) => t("change", { secTitle: y }))
|
|
2103
2107
|
}, null, 8, ["value", "style"])) : P("", !0),
|
|
2104
2108
|
v("div", Ro, [
|
|
2105
2109
|
a.layout.examExtentFlag ? (i(), h("p", Ho, [
|
|
@@ -2107,7 +2111,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2107
2111
|
te(ze, {
|
|
2108
2112
|
class: "flex-1",
|
|
2109
2113
|
value: a.info.extent,
|
|
2110
|
-
onChange: c[2] || (c[2] = (
|
|
2114
|
+
onChange: c[2] || (c[2] = (y) => t("change", { extent: y }))
|
|
2111
2115
|
}, null, 8, ["value"])
|
|
2112
2116
|
])) : P("", !0),
|
|
2113
2117
|
a.layout.examTimeFlag ? (i(), h("p", Go, [
|
|
@@ -2119,7 +2123,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2119
2123
|
autoLine: "",
|
|
2120
2124
|
size: "small",
|
|
2121
2125
|
placeholder: "",
|
|
2122
|
-
onChange: c[3] || (c[3] = (
|
|
2126
|
+
onChange: c[3] || (c[3] = (y) => t("change", { time: y }))
|
|
2123
2127
|
}, null, 8, ["value"]),
|
|
2124
2128
|
qo
|
|
2125
2129
|
])) : P("", !0),
|
|
@@ -2128,7 +2132,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2128
2132
|
te(ze, {
|
|
2129
2133
|
class: "flex-1",
|
|
2130
2134
|
value: a.info.author,
|
|
2131
|
-
onChange: c[4] || (c[4] = (
|
|
2135
|
+
onChange: c[4] || (c[4] = (y) => t("change", { author: y }))
|
|
2132
2136
|
}, null, 8, ["value"])
|
|
2133
2137
|
])) : P("", !0),
|
|
2134
2138
|
a.layout.reviewerFlag ? (i(), h("p", Ko, [
|
|
@@ -2136,40 +2140,40 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2136
2140
|
te(ze, {
|
|
2137
2141
|
class: "flex-1",
|
|
2138
2142
|
value: a.info.reviewer,
|
|
2139
|
-
onChange: c[5] || (c[5] = (
|
|
2143
|
+
onChange: c[5] || (c[5] = (y) => t("change", { reviewer: y }))
|
|
2140
2144
|
}, null, 8, ["value"])
|
|
2141
2145
|
])) : P("", !0),
|
|
2142
2146
|
a.layout.totalScoreFlag ? (i(), h("p", Vo, [
|
|
2143
2147
|
Xo,
|
|
2144
|
-
s.value ? (i(),
|
|
2148
|
+
s.value ? (i(), V(ve, {
|
|
2145
2149
|
key: 0,
|
|
2146
2150
|
name: s.value,
|
|
2147
2151
|
class: "p-0 -translate-y-[1px]"
|
|
2148
2152
|
}, null, 8, ["name"])) : (i(), h("span", Jo, "分")),
|
|
2149
|
-
v("span", null, ":" +
|
|
2150
|
-
s.value ? (i(),
|
|
2153
|
+
v("span", null, ":" + X(l.value + (a.layout.writeScoreFlag ? a.info.writeScore : 0)), 1),
|
|
2154
|
+
s.value ? (i(), V(ve, {
|
|
2151
2155
|
key: 2,
|
|
2152
2156
|
name: s.value,
|
|
2153
2157
|
class: "p-0 -translate-y-[1px]"
|
|
2154
2158
|
}, null, 8, ["name"])) : (i(), h("span", Zo, "分")),
|
|
2155
|
-
a.layout.writeScoreFlag ? (i(), h(
|
|
2156
|
-
v("span", null, "(试题" +
|
|
2157
|
-
s.value ? (i(),
|
|
2159
|
+
a.layout.writeScoreFlag ? (i(), h(D, { key: 4 }, [
|
|
2160
|
+
v("span", null, "(试题" + X(l.value), 1),
|
|
2161
|
+
s.value ? (i(), V(ve, {
|
|
2158
2162
|
key: 0,
|
|
2159
2163
|
name: s.value,
|
|
2160
2164
|
class: "p-0 -translate-y-[1px]"
|
|
2161
2165
|
}, null, 8, ["name"])) : (i(), h("span", ea, "分")),
|
|
2162
|
-
v("span", null, "+卷面" +
|
|
2163
|
-
s.value ? (i(),
|
|
2166
|
+
v("span", null, "+卷面" + X(a.info.writeScore || 0), 1),
|
|
2167
|
+
s.value ? (i(), V(ve, {
|
|
2164
2168
|
key: 2,
|
|
2165
2169
|
name: s.value,
|
|
2166
2170
|
class: "p-0 -translate-y-[1px]"
|
|
2167
2171
|
}, null, 8, ["name"])) : (i(), h("span", ta, "分")),
|
|
2168
2172
|
oa
|
|
2169
2173
|
], 64)) : P("", !0),
|
|
2170
|
-
r.value ? (i(), h(
|
|
2171
|
-
v("span", null, ";附加题:" +
|
|
2172
|
-
s.value ? (i(),
|
|
2174
|
+
r.value ? (i(), h(D, { key: 5 }, [
|
|
2175
|
+
v("span", null, ";附加题:" + X(r.value), 1),
|
|
2176
|
+
s.value ? (i(), V(ve, {
|
|
2173
2177
|
key: 0,
|
|
2174
2178
|
name: s.value,
|
|
2175
2179
|
class: "p-0 -translate-y-[1px]"
|
|
@@ -2190,11 +2194,11 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2190
2194
|
setup(e, { emit: t }) {
|
|
2191
2195
|
const o = ["examNumField", "examRoomField", "scoreField"];
|
|
2192
2196
|
return (l, r) => (i(), h("ul", {
|
|
2193
|
-
class:
|
|
2197
|
+
class: Z(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2194
2198
|
}, [
|
|
2195
|
-
(i(), h(
|
|
2199
|
+
(i(), h(D, null, oe(o, (s, a) => v("li", {
|
|
2196
2200
|
key: s,
|
|
2197
|
-
class:
|
|
2201
|
+
class: Z(["flex flex-1 min-w-[12rem]", l.isRow && a && "ml-2"])
|
|
2198
2202
|
}, [
|
|
2199
2203
|
te(lt, {
|
|
2200
2204
|
value: l.extent[s],
|
|
@@ -2225,16 +2229,16 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
|
|
|
2225
2229
|
class: "flex-1 flex flex-col",
|
|
2226
2230
|
"data-xine": I(T).en_num
|
|
2227
2231
|
}, [
|
|
2228
|
-
(i(), h(
|
|
2232
|
+
(i(), h(D, null, oe(3, (l, r) => v("p", {
|
|
2229
2233
|
key: l,
|
|
2230
2234
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2231
2235
|
"data-xine": I(T).en_num_group
|
|
2232
2236
|
}, [
|
|
2233
|
-
(i(), h(
|
|
2237
|
+
(i(), h(D, null, oe(10, (s) => v("span", {
|
|
2234
2238
|
key: s,
|
|
2235
2239
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2236
2240
|
"data-xine": I(T).en_num_item
|
|
2237
|
-
},
|
|
2241
|
+
}, X(s - 1), 9, ca)), 64))
|
|
2238
2242
|
], 8, ra)), 64))
|
|
2239
2243
|
], 8, ia)
|
|
2240
2244
|
], 8, na));
|
|
@@ -2258,16 +2262,16 @@ const ua = /* @__PURE__ */ ye(da, [["__scopeId", "data-v-91b25fab"]]), ha = ["da
|
|
|
2258
2262
|
class: "flex-1 flex flex-col",
|
|
2259
2263
|
"data-xine": I(T).en_num
|
|
2260
2264
|
}, [
|
|
2261
|
-
(i(), h(
|
|
2265
|
+
(i(), h(D, null, oe(4, (l, r) => v("p", {
|
|
2262
2266
|
key: l,
|
|
2263
|
-
class:
|
|
2267
|
+
class: Z(["flex-1 flex items-center text-0 px-1", r && "border-t"]),
|
|
2264
2268
|
"data-xine": I(T).en_num_group
|
|
2265
2269
|
}, [
|
|
2266
|
-
(i(), h(
|
|
2270
|
+
(i(), h(D, null, oe(10, (s) => v("span", {
|
|
2267
2271
|
key: s,
|
|
2268
2272
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2269
2273
|
"data-xine": I(T).en_num_item
|
|
2270
|
-
},
|
|
2274
|
+
}, X(s - 1), 9, _a)), 64))
|
|
2271
2275
|
], 10, ya)), 64))
|
|
2272
2276
|
], 8, ma)
|
|
2273
2277
|
], 8, ha));
|
|
@@ -2283,11 +2287,11 @@ const Bt = /* @__PURE__ */ ye(fa, [["__scopeId", "data-v-96e8d41d"]]), ga = /* @
|
|
|
2283
2287
|
setup(e, { emit: t }) {
|
|
2284
2288
|
const o = ["nameField", "classField", "seatField"];
|
|
2285
2289
|
return (l, r) => (i(), h("ul", {
|
|
2286
|
-
class:
|
|
2290
|
+
class: Z(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2287
2291
|
}, [
|
|
2288
|
-
(i(), h(
|
|
2292
|
+
(i(), h(D, null, oe(o, (s, a) => v("li", {
|
|
2289
2293
|
key: s,
|
|
2290
|
-
class:
|
|
2294
|
+
class: Z(["flex flex-1", l.isRow && a && "ml-2"])
|
|
2291
2295
|
}, [
|
|
2292
2296
|
te(lt, {
|
|
2293
2297
|
value: l.extent[s],
|
|
@@ -2311,28 +2315,28 @@ const Bt = /* @__PURE__ */ ye(fa, [["__scopeId", "data-v-96e8d41d"]]), ga = /* @
|
|
|
2311
2315
|
},
|
|
2312
2316
|
emits: ["change"],
|
|
2313
2317
|
setup(e, { emit: t }) {
|
|
2314
|
-
const o = e, l =
|
|
2318
|
+
const o = e, l = A(() => o.layout.seatType === xe.none || !o.layout.seatBar), r = A(() => o.layout.column >= 3 && l.value), s = A(() => o.layout.column >= 3 && o.layout.seatType !== xe.none && o.layout.seatBar);
|
|
2315
2319
|
return (a, c) => a.isBindFlag ? P("", !0) : (i(), h("div", {
|
|
2316
2320
|
key: 0,
|
|
2317
|
-
class:
|
|
2321
|
+
class: Z(["flex justify-between", (s.value || r.value) && "flex-wrap"])
|
|
2318
2322
|
}, [
|
|
2319
|
-
r.value ? (i(),
|
|
2323
|
+
r.value ? (i(), V(Ct, {
|
|
2320
2324
|
key: 0,
|
|
2321
2325
|
isRow: "",
|
|
2322
2326
|
extent: a.info.extentInfo,
|
|
2323
|
-
onChange: c[0] || (c[0] = (
|
|
2327
|
+
onChange: c[0] || (c[0] = (y) => t("change", y))
|
|
2324
2328
|
}, null, 8, ["extent"])) : P("", !0),
|
|
2325
2329
|
te(ga, {
|
|
2326
2330
|
isRow: s.value,
|
|
2327
2331
|
extent: a.info.extentInfo,
|
|
2328
|
-
onChange: c[1] || (c[1] = (
|
|
2332
|
+
onChange: c[1] || (c[1] = (y) => t("change", y))
|
|
2329
2333
|
}, null, 8, ["isRow", "extent"]),
|
|
2330
|
-
!r.value && l.value ? (i(),
|
|
2334
|
+
!r.value && l.value ? (i(), V(Ct, {
|
|
2331
2335
|
key: 1,
|
|
2332
2336
|
extent: a.info.extentInfo,
|
|
2333
|
-
onChange: c[2] || (c[2] = (
|
|
2337
|
+
onChange: c[2] || (c[2] = (y) => t("change", y))
|
|
2334
2338
|
}, null, 8, ["extent"])) : P("", !0),
|
|
2335
|
-
a.layout.seatType === I(xe).seat ? (i(),
|
|
2339
|
+
a.layout.seatType === I(xe).seat ? (i(), V(ua, { key: 2 })) : a.layout.seatType === I(xe).shortId ? (i(), V(Bt, { key: 3 })) : P("", !0),
|
|
2336
2340
|
a.layout.seatBar ? (i(), h("div", {
|
|
2337
2341
|
key: 4,
|
|
2338
2342
|
class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
|
|
@@ -2357,7 +2361,7 @@ const Ca = /* @__PURE__ */ ye(xa, [["__scopeId", "data-v-4d37cd56"]]), Oe = (e)
|
|
|
2357
2361
|
isBindFlag: { type: Boolean }
|
|
2358
2362
|
},
|
|
2359
2363
|
setup(e) {
|
|
2360
|
-
const t = e, o =
|
|
2364
|
+
const t = e, o = A(() => {
|
|
2361
2365
|
const l = {
|
|
2362
2366
|
[xe.none]: "",
|
|
2363
2367
|
[xe.seat]: "座位号或",
|
|
@@ -2370,19 +2374,19 @@ const Ca = /* @__PURE__ */ ye(xa, [["__scopeId", "data-v-4d37cd56"]]), Oe = (e)
|
|
|
2370
2374
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2371
2375
|
];
|
|
2372
2376
|
});
|
|
2373
|
-
return (l, r) => (i(), h(
|
|
2377
|
+
return (l, r) => (i(), h(D, null, [
|
|
2374
2378
|
l.layout.noteFlag ? (i(), h("div", Sa, [
|
|
2375
2379
|
$a,
|
|
2376
2380
|
v("div", Ta, [
|
|
2377
|
-
(i(!0), h(
|
|
2381
|
+
(i(!0), h(D, null, oe(o.value, (s) => (i(), h("p", {
|
|
2378
2382
|
key: s,
|
|
2379
2383
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2380
|
-
},
|
|
2384
|
+
}, X(s), 1))), 128))
|
|
2381
2385
|
])
|
|
2382
2386
|
])) : P("", !0),
|
|
2383
2387
|
l.layout.lackFlag ? (i(), h("div", {
|
|
2384
2388
|
key: 1,
|
|
2385
|
-
class:
|
|
2389
|
+
class: Z(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2386
2390
|
}, [
|
|
2387
2391
|
v("p", Ia, [
|
|
2388
2392
|
La,
|
|
@@ -2435,14 +2439,14 @@ const Ra = {
|
|
|
2435
2439
|
data: {}
|
|
2436
2440
|
},
|
|
2437
2441
|
setup(e) {
|
|
2438
|
-
const t = e, o =
|
|
2442
|
+
const t = e, o = A(() => t.data.filter((l) => l.problemType));
|
|
2439
2443
|
return (l, r) => l.layout.scoreFlag ? (i(), h("ul", Ra, [
|
|
2440
2444
|
Ha,
|
|
2441
|
-
(i(!0), h(
|
|
2445
|
+
(i(!0), h(D, null, oe(o.value, (s, a) => (i(), h("li", {
|
|
2442
2446
|
key: s.id,
|
|
2443
2447
|
class: "flex-1 flex flex-col border-l"
|
|
2444
2448
|
}, [
|
|
2445
|
-
v("p", Wa,
|
|
2449
|
+
v("p", Wa, X(I(Nt)(a)), 1),
|
|
2446
2450
|
Ga
|
|
2447
2451
|
]))), 128)),
|
|
2448
2452
|
Qa
|
|
@@ -2459,44 +2463,44 @@ const Ra = {
|
|
|
2459
2463
|
setup(e, { expose: t }) {
|
|
2460
2464
|
const o = e, l = Q(), r = Q();
|
|
2461
2465
|
t({ col: l, colView: r });
|
|
2462
|
-
const s =
|
|
2463
|
-
const { top:
|
|
2466
|
+
const s = A(() => {
|
|
2467
|
+
const { top: y, width: n, height: u, left: z } = o.styleInfo;
|
|
2464
2468
|
return {
|
|
2465
|
-
top: `${parseFloat(
|
|
2469
|
+
top: `${parseFloat(y) - (o.currentColumn ? Ie.top : 1)}px`,
|
|
2466
2470
|
left: `${parseFloat(z) - Ie.left}px`,
|
|
2467
2471
|
width: `${parseFloat(n) + Ie.left + Ie.right}px`,
|
|
2468
2472
|
height: `${parseFloat(u) + (o.currentColumn ? Ie.top : 0) + Ie.bottom}px`
|
|
2469
2473
|
};
|
|
2470
|
-
}), a =
|
|
2474
|
+
}), a = A(() => ({
|
|
2471
2475
|
left: `${Ie.left - 1}px`,
|
|
2472
2476
|
top: `${Ie.top - 1}px`,
|
|
2473
2477
|
bottom: `${Ie.bottom - 1}px`,
|
|
2474
2478
|
right: `${Ie.right - 1}px`
|
|
2475
|
-
})), c =
|
|
2476
|
-
return (
|
|
2477
|
-
|
|
2479
|
+
})), c = A(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2480
|
+
return (y, n) => (i(), h(D, null, [
|
|
2481
|
+
y.showColBorder ? (i(), h("div", {
|
|
2478
2482
|
key: 0,
|
|
2479
|
-
class:
|
|
2480
|
-
style:
|
|
2483
|
+
class: Z(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
|
|
2484
|
+
style: j(s.value)
|
|
2481
2485
|
}, [
|
|
2482
2486
|
v("span", {
|
|
2483
2487
|
class: "absolute border border-black",
|
|
2484
|
-
style:
|
|
2488
|
+
style: j(a.value)
|
|
2485
2489
|
}, null, 4)
|
|
2486
2490
|
], 6)) : P("", !0),
|
|
2487
2491
|
v("div", {
|
|
2488
2492
|
class: "absolute overflow-hidden",
|
|
2489
2493
|
ref_key: "colView",
|
|
2490
2494
|
ref: r,
|
|
2491
|
-
style:
|
|
2495
|
+
style: j(y.styleInfo)
|
|
2492
2496
|
}, [
|
|
2493
2497
|
v("div", {
|
|
2494
2498
|
ref_key: "col",
|
|
2495
2499
|
ref: l,
|
|
2496
2500
|
class: "overflow-hidden __col__",
|
|
2497
|
-
style:
|
|
2501
|
+
style: j({ height: y.styleInfo.contentHeight })
|
|
2498
2502
|
}, [
|
|
2499
|
-
pt(
|
|
2503
|
+
pt(y.$slots, "default", {}, void 0, !0)
|
|
2500
2504
|
], 4)
|
|
2501
2505
|
], 4)
|
|
2502
2506
|
], 64));
|
|
@@ -2521,33 +2525,33 @@ const Ua = /* @__PURE__ */ ye(Ya, [["__scopeId", "data-v-e102e805"]]), Ka = (e)
|
|
|
2521
2525
|
const t = Q();
|
|
2522
2526
|
return (o, l) => o.isBindFlag ? (i(), h("div", {
|
|
2523
2527
|
key: 0,
|
|
2524
|
-
style:
|
|
2525
|
-
class:
|
|
2528
|
+
style: j({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2529
|
+
class: Z([o.currentPage % 2 && "right_view"]),
|
|
2526
2530
|
ref_key: "view",
|
|
2527
2531
|
ref: t
|
|
2528
2532
|
}, [
|
|
2529
2533
|
o.currentPage % 2 ? (i(), h("div", {
|
|
2530
2534
|
key: 0,
|
|
2531
2535
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2532
|
-
style:
|
|
2536
|
+
style: j({ width: `${o.height - 20}px`, height: `${o.width}px` })
|
|
2533
2537
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(), h("div", {
|
|
2534
2538
|
key: 1,
|
|
2535
2539
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2536
|
-
style:
|
|
2540
|
+
style: j({ width: `${o.height - 20}px` })
|
|
2537
2541
|
}, [
|
|
2538
2542
|
v("div", ja, [
|
|
2539
|
-
(i(!0), h(
|
|
2543
|
+
(i(!0), h(D, null, oe(o.bindInfo, (r, s) => (i(), h(D, { key: r }, [
|
|
2540
2544
|
s === 2 && o.bindInfo.length === 5 ? (i(), h("span", Va)) : P("", !0),
|
|
2541
2545
|
v("span", {
|
|
2542
|
-
class:
|
|
2543
|
-
},
|
|
2546
|
+
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%]"])
|
|
2547
|
+
}, X(r), 3)
|
|
2544
2548
|
], 64))), 128))
|
|
2545
2549
|
]),
|
|
2546
2550
|
o.bindSeatType === I(xe).none ? (i(), h("div", {
|
|
2547
2551
|
key: 0,
|
|
2548
2552
|
class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2549
2553
|
"data-xine": I(T).en_code
|
|
2550
|
-
}, Za, 8, Xa)) : o.bindSeatType === I(xe).shortId ? (i(),
|
|
2554
|
+
}, Za, 8, Xa)) : o.bindSeatType === I(xe).shortId ? (i(), V(Bt, {
|
|
2551
2555
|
key: 1,
|
|
2552
2556
|
class: "h-40"
|
|
2553
2557
|
})) : P("", !0),
|
|
@@ -2565,7 +2569,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2565
2569
|
layout: {}
|
|
2566
2570
|
},
|
|
2567
2571
|
setup(e) {
|
|
2568
|
-
const t = e, o = ["right", "half_right", "wrong"], l =
|
|
2572
|
+
const t = e, o = ["right", "half_right", "wrong"], l = A(() => {
|
|
2569
2573
|
const r = t.item.score;
|
|
2570
2574
|
return [r, Math.round(r / 2 * 100) / 100, 0];
|
|
2571
2575
|
});
|
|
@@ -2578,12 +2582,12 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2578
2582
|
class: "flex h-full divide-x divide-solid",
|
|
2579
2583
|
"data-xine": I(T).score_base
|
|
2580
2584
|
}, [
|
|
2581
|
-
(i(!0), h(
|
|
2585
|
+
(i(!0), h(D, null, oe(l.value, (a, c) => (i(), h("li", {
|
|
2582
2586
|
class: "flex items-center justify-center relative score_line",
|
|
2583
|
-
style:
|
|
2587
|
+
style: j({ width: `${I(et)[r.layout.scoreLineSize].value}px` }),
|
|
2584
2588
|
"data-xine": I(T).score_item
|
|
2585
2589
|
}, [
|
|
2586
|
-
v("span", dl,
|
|
2590
|
+
v("span", dl, X(a), 1),
|
|
2587
2591
|
te(ve, {
|
|
2588
2592
|
class: "p-0",
|
|
2589
2593
|
name: o[c]
|
|
@@ -2600,11 +2604,11 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2600
2604
|
static: { type: Boolean }
|
|
2601
2605
|
},
|
|
2602
2606
|
setup(e) {
|
|
2603
|
-
const t = e, o = Q(), l = Q(!1), r = Q(!1), s = Q(!1), a = Q([]), c =
|
|
2604
|
-
Ne(() => [t.item.score], () =>
|
|
2605
|
-
|
|
2607
|
+
const t = e, o = Q(), l = Q(!1), r = Q(!1), s = Q(!1), a = Q([]), c = A(() => t.layout.scoreAddStars === at.star.code);
|
|
2608
|
+
Ne(() => [t.item.score], () => y()), qe(() => {
|
|
2609
|
+
y();
|
|
2606
2610
|
});
|
|
2607
|
-
const
|
|
2611
|
+
const y = () => {
|
|
2608
2612
|
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || ot(() => {
|
|
2609
2613
|
let u = [];
|
|
2610
2614
|
if (t.item.scoreLineType === Ze.custom)
|
|
@@ -2612,14 +2616,14 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2612
2616
|
else if (t.item.scoreStep)
|
|
2613
2617
|
u.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((z) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * z)).reverse());
|
|
2614
2618
|
else {
|
|
2615
|
-
const z = o.value.offsetWidth,
|
|
2616
|
-
l.value = z - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) *
|
|
2619
|
+
const z = o.value.offsetWidth, m = et[t.layout.scoreLineSize].value + 1;
|
|
2620
|
+
l.value = z - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * m && t.item.score >= 10, l.value ? (u.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), u.push([...Array(10).keys()].reverse()), s.value = !0) : u.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2617
2621
|
}
|
|
2618
2622
|
t.item.hasHalfScore && u.push([0.5]), a.value = u, r.value = !!u.flat().find((z) => `${z}`.length > 3);
|
|
2619
2623
|
});
|
|
2620
2624
|
}, 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];
|
|
2621
|
-
return (u, z) => u.layout.handReadFlag ? (i(), h(
|
|
2622
|
-
u.layout.simpleScoreBarFlag && !u.static ? (i(),
|
|
2625
|
+
return (u, z) => u.layout.handReadFlag ? (i(), h(D, { key: 0 }, [
|
|
2626
|
+
u.layout.simpleScoreBarFlag && !u.static ? (i(), V(ul, {
|
|
2623
2627
|
key: 0,
|
|
2624
2628
|
item: u.item,
|
|
2625
2629
|
layout: u.layout
|
|
@@ -2627,23 +2631,23 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2627
2631
|
key: 1,
|
|
2628
2632
|
ref_key: "view",
|
|
2629
2633
|
ref: o,
|
|
2630
|
-
class:
|
|
2634
|
+
class: Z([a.value.length ? "inline-flex" : "flex-1", "max-w-full border border-l-2 border-r-2 divide-x divide-solid"]),
|
|
2631
2635
|
"data-block": I(Se),
|
|
2632
2636
|
"data-xine": I(T).score
|
|
2633
2637
|
}, [
|
|
2634
|
-
(i(!0), h(
|
|
2638
|
+
(i(!0), h(D, null, oe(a.value, (m, F) => (i(), h("ul", {
|
|
2635
2639
|
class: "flex divide-x divide-solid",
|
|
2636
2640
|
"data-xine": n(F)
|
|
2637
2641
|
}, [
|
|
2638
|
-
(i(!0), h(
|
|
2642
|
+
(i(!0), h(D, null, oe(m, (B) => (i(), h("li", {
|
|
2639
2643
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2640
|
-
style:
|
|
2641
|
-
"data-xine":
|
|
2644
|
+
style: j({ width: `${I(et)[u.layout.scoreLineSize].value}px` }),
|
|
2645
|
+
"data-xine": B.toString() ? I(T).score_item : ""
|
|
2642
2646
|
}, [
|
|
2643
2647
|
v("span", {
|
|
2644
|
-
class:
|
|
2645
|
-
},
|
|
2646
|
-
c.value &&
|
|
2648
|
+
class: Z(["whitespace-nowrap", c.value && "origin-right", r.value && "scale-75"])
|
|
2649
|
+
}, X(u.layout.minusFlag && B.toString().length && !c.value ? "-" : "") + X(B), 3),
|
|
2650
|
+
c.value && B.toString().length ? (i(), V(ve, {
|
|
2647
2651
|
key: 0,
|
|
2648
2652
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2649
2653
|
name: u.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
@@ -2722,12 +2726,12 @@ const Be = /* @__PURE__ */ ye(wl, [["__scopeId", "data-v-e6258dec"]]), kl = ["da
|
|
|
2722
2726
|
},
|
|
2723
2727
|
emits: ["click", "dbclick"],
|
|
2724
2728
|
setup(e, { emit: t }) {
|
|
2725
|
-
const o = e, l = Q(!1), r = Q(), s =
|
|
2729
|
+
const o = e, l = Q(!1), r = Q(), s = A(() => [ke.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), a = A(() => [ke.another_choice].includes(o.item.problemType)), c = A(() => [ke.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(za(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = A(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((u) => u.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
|
|
2726
2730
|
return qe(() => {
|
|
2727
2731
|
o.isFirst && o.item.problemType && (r.value.offsetHeight / parseFloat(window.getComputedStyle(r.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
2728
2732
|
}), (n, u) => n.item.problemType ? (i(), h("div", {
|
|
2729
2733
|
key: 1,
|
|
2730
|
-
class:
|
|
2734
|
+
class: Z(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
2731
2735
|
onClick: u[2] || (u[2] = Me((z) => t("click", n.item), ["stop"])),
|
|
2732
2736
|
ref_key: "view",
|
|
2733
2737
|
ref: r,
|
|
@@ -2735,23 +2739,23 @@ const Be = /* @__PURE__ */ ye(wl, [["__scopeId", "data-v-e6258dec"]]), kl = ["da
|
|
|
2735
2739
|
"data-block": I(Se),
|
|
2736
2740
|
onDblclick: u[3] || (u[3] = Me((z) => t("dbclick", n.item), ["stop"]))
|
|
2737
2741
|
}, [
|
|
2738
|
-
!n.layout.listIndexFlag && n.item.sub ? (i(), h("span", $l,
|
|
2742
|
+
!n.layout.listIndexFlag && n.item.sub ? (i(), h("span", $l, X(I(Nt)(n.item.sub - 1)) + "、", 1)) : P("", !0),
|
|
2739
2743
|
v("div", null, [
|
|
2740
2744
|
v("div", null, [
|
|
2741
|
-
v("span", null,
|
|
2742
|
-
n.item.desc ? (i(), h("span", Tl, "(" +
|
|
2743
|
-
n.layout.scoreTipFlag ? (i(), h("span", Il, "(共" +
|
|
2745
|
+
v("span", null, X(n.item.name), 1),
|
|
2746
|
+
n.item.desc ? (i(), h("span", Tl, "(" + X(n.item.desc) + ")", 1)) : P("", !0),
|
|
2747
|
+
n.layout.scoreTipFlag ? (i(), h("span", Il, "(共" + X(c.value) + "题,共" + X(n.item.totalScore) + "分)", 1)) : P("", !0)
|
|
2744
2748
|
]),
|
|
2745
2749
|
s.value || a.value ? (i(), h("div", Ll, [
|
|
2746
|
-
s.value ? (i(), h("p", Fl, "请在以下" +
|
|
2750
|
+
s.value ? (i(), h("p", Fl, "请在以下" + X(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (i(), h("p", El, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2747
2751
|
v("p", {
|
|
2748
2752
|
class: "flex flex-wrap",
|
|
2749
2753
|
"data-block": I(Se),
|
|
2750
2754
|
"data-xine": I(T).choice + n.item.id
|
|
2751
2755
|
}, [
|
|
2752
2756
|
Ml,
|
|
2753
|
-
(i(!0), h(
|
|
2754
|
-
v("span", null,
|
|
2757
|
+
(i(!0), h(D, null, oe(y.value, (z, m) => (i(), h("span", Dl, [
|
|
2758
|
+
v("span", null, X(z), 1),
|
|
2755
2759
|
v("span", {
|
|
2756
2760
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2757
2761
|
"data-xine": I(T).fill
|
|
@@ -2760,9 +2764,9 @@ const Be = /* @__PURE__ */ ye(wl, [["__scopeId", "data-v-e6258dec"]]), kl = ["da
|
|
|
2760
2764
|
], 8, Pl)
|
|
2761
2765
|
])) : P("", !0)
|
|
2762
2766
|
])
|
|
2763
|
-
], 42, Sl)) : (i(),
|
|
2767
|
+
], 42, Sl)) : (i(), V(xl, {
|
|
2764
2768
|
key: 0,
|
|
2765
|
-
class:
|
|
2769
|
+
class: Z([n.isActive && "border-current", n.isFirst && "mt-9"]),
|
|
2766
2770
|
item: n.item,
|
|
2767
2771
|
onClick: u[0] || (u[0] = Me((z) => t("click", n.item), ["stop"])),
|
|
2768
2772
|
onDblclick: u[1] || (u[1] = Me((z) => t("dbclick", n.item), ["stop"]))
|
|
@@ -2784,9 +2788,9 @@ const zl = /* @__PURE__ */ ye(Nl, [["render", Ol]]), Rl = ["data-block"], Hl = [
|
|
|
2784
2788
|
class: "flex items-center red_sheet",
|
|
2785
2789
|
"data-block": I(Se)
|
|
2786
2790
|
}, [
|
|
2787
|
-
(i(!0), h(
|
|
2788
|
-
class:
|
|
2789
|
-
style:
|
|
2791
|
+
(i(!0), h(D, null, oe(t.item.optList, (l, r) => (i(), h("span", {
|
|
2792
|
+
class: Z(["fill_block", t.layout.showAnswer && t.item.answer.includes(I(dt)[r]) && "bg-success border-success"]),
|
|
2793
|
+
style: j({ width: `${I(Le)[t.layout.fillSize].value + 1}px`, height: `${I(Le)[t.layout.fillSize].height + 1}px` }),
|
|
2790
2794
|
"data-xine": I(T).fill + r
|
|
2791
2795
|
}, [
|
|
2792
2796
|
te(ve, {
|
|
@@ -2811,7 +2815,7 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2811
2815
|
layout: {}
|
|
2812
2816
|
},
|
|
2813
2817
|
setup(e) {
|
|
2814
|
-
const t = e, o =
|
|
2818
|
+
const t = e, o = A(() => ({
|
|
2815
2819
|
width: `${Le[t.layout.fillSize].value + 1}px`,
|
|
2816
2820
|
height: `${Le[t.layout.fillSize].height + 1}px`
|
|
2817
2821
|
}));
|
|
@@ -2819,10 +2823,10 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2819
2823
|
class: "flex red_sheet",
|
|
2820
2824
|
"data-block": I(Se)
|
|
2821
2825
|
}, [
|
|
2822
|
-
l.item.style[I(d)[l.layout.mode].decide_a] === I(g).decide_1 ? (i(), h(
|
|
2826
|
+
l.item.style[I(d)[l.layout.mode].decide_a] === I(g).decide_1 ? (i(), h(D, { key: 0 }, [
|
|
2823
2827
|
v("span", {
|
|
2824
|
-
class:
|
|
2825
|
-
style:
|
|
2828
|
+
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2829
|
+
style: j(o.value),
|
|
2826
2830
|
"data-xine": I(T).fill + "0"
|
|
2827
2831
|
}, [
|
|
2828
2832
|
te(ve, {
|
|
@@ -2831,8 +2835,8 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2831
2835
|
})
|
|
2832
2836
|
], 14, Ul),
|
|
2833
2837
|
v("span", {
|
|
2834
|
-
class:
|
|
2835
|
-
style:
|
|
2838
|
+
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2839
|
+
style: j(o.value),
|
|
2836
2840
|
"data-xine": I(T).fill + "1"
|
|
2837
2841
|
}, [
|
|
2838
2842
|
te(ve, {
|
|
@@ -2840,15 +2844,15 @@ const ql = /* @__PURE__ */ ye(Gl, [["render", Ql]]), Yl = ["data-block"], Ul = [
|
|
|
2840
2844
|
width: 1
|
|
2841
2845
|
})
|
|
2842
2846
|
], 14, Kl)
|
|
2843
|
-
], 64)) : (i(), h(
|
|
2847
|
+
], 64)) : (i(), h(D, { key: 1 }, [
|
|
2844
2848
|
v("span", {
|
|
2845
|
-
class:
|
|
2846
|
-
style:
|
|
2849
|
+
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2850
|
+
style: j(o.value),
|
|
2847
2851
|
"data-xine": I(T).fill + "0"
|
|
2848
2852
|
}, Xl, 14, jl),
|
|
2849
2853
|
v("span", {
|
|
2850
|
-
class:
|
|
2851
|
-
style:
|
|
2854
|
+
class: Z(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2855
|
+
style: j(o.value),
|
|
2852
2856
|
"data-xine": I(T).fill + "1"
|
|
2853
2857
|
}, en, 14, Jl)
|
|
2854
2858
|
], 64))
|
|
@@ -2869,7 +2873,7 @@ const ln = /* @__PURE__ */ ye(on, [["render", an]]), nn = ["data-block", "data-x
|
|
|
2869
2873
|
showScoreCn: { type: Boolean }
|
|
2870
2874
|
},
|
|
2871
2875
|
setup(e) {
|
|
2872
|
-
const t = e, o =
|
|
2876
|
+
const t = e, o = A(() => t.layout.scoreAddStars === at.star.code);
|
|
2873
2877
|
return (l, r) => l.layout.handReadFlag ? (i(), h("div", {
|
|
2874
2878
|
key: 0,
|
|
2875
2879
|
class: "score_fill flex items-center",
|
|
@@ -2877,8 +2881,8 @@ const ln = /* @__PURE__ */ ye(on, [["render", an]]), nn = ["data-block", "data-x
|
|
|
2877
2881
|
"data-xine": I(T).fill
|
|
2878
2882
|
}, [
|
|
2879
2883
|
l.showScoreCn ? (i(), h("span", sn, [
|
|
2880
|
-
v("span", null,
|
|
2881
|
-
o.value ? (i(),
|
|
2884
|
+
v("span", null, X(l.layout.minusFlag && !o.value ? "-" : "") + X(l.item.score), 1),
|
|
2885
|
+
o.value ? (i(), V(ve, {
|
|
2882
2886
|
key: 0,
|
|
2883
2887
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2884
2888
|
name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
@@ -2895,13 +2899,13 @@ const ln = /* @__PURE__ */ ye(on, [["render", an]]), nn = ["data-block", "data-x
|
|
|
2895
2899
|
},
|
|
2896
2900
|
setup(e) {
|
|
2897
2901
|
const t = e;
|
|
2898
|
-
return (o, l) => (i(), h(
|
|
2902
|
+
return (o, l) => (i(), h(D, null, [
|
|
2899
2903
|
v("div", {
|
|
2900
2904
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2901
|
-
style:
|
|
2905
|
+
style: j({ height: `${20 + o.item.style[I(d)[t.layout.mode].fill_e]}px` }),
|
|
2902
2906
|
"data-xine": I(T).fill_line
|
|
2903
2907
|
}, null, 12, dn),
|
|
2904
|
-
o.layout.handReadFlag ? (i(),
|
|
2908
|
+
o.layout.handReadFlag ? (i(), V(cn, {
|
|
2905
2909
|
key: 0,
|
|
2906
2910
|
item: o.item,
|
|
2907
2911
|
layout: o.layout,
|
|
@@ -2922,7 +2926,7 @@ const mn = /* @__PURE__ */ ye(hn, [["render", pn]]), yn = ["data-block"], _n = {
|
|
|
2922
2926
|
},
|
|
2923
2927
|
setup(e) {
|
|
2924
2928
|
return (t, o) => (i(), h("div", {
|
|
2925
|
-
class:
|
|
2929
|
+
class: Z(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
2926
2930
|
}, [
|
|
2927
2931
|
t.item.chunk ? P("", !0) : (i(), h("div", {
|
|
2928
2932
|
key: 0,
|
|
@@ -2954,7 +2958,7 @@ const vn = /* @__PURE__ */ ye(gn, [["render", bn]]), wn = /* @__PURE__ */ v("div
|
|
|
2954
2958
|
layout: {}
|
|
2955
2959
|
},
|
|
2956
2960
|
setup(e) {
|
|
2957
|
-
return (t, o) => (i(), h(
|
|
2961
|
+
return (t, o) => (i(), h(D, null, [
|
|
2958
2962
|
wn,
|
|
2959
2963
|
te(nt, {
|
|
2960
2964
|
item: t.item,
|
|
@@ -2989,20 +2993,20 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
2989
2993
|
layout: {}
|
|
2990
2994
|
},
|
|
2991
2995
|
setup(e) {
|
|
2992
|
-
const t = e, o = Q(0), l = Q({}), r = Q(), s = Q(), a = Q([]), c =
|
|
2993
|
-
const
|
|
2994
|
-
return
|
|
2995
|
-
}),
|
|
2996
|
-
width: `${o.value *
|
|
2997
|
-
height: `${
|
|
2998
|
-
})), u =
|
|
2999
|
-
width: `${
|
|
3000
|
-
})), z =
|
|
2996
|
+
const t = e, o = Q(0), l = Q({}), r = Q(), s = Q(), a = Q([]), c = A(() => {
|
|
2997
|
+
const m = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, z.value.length, 0);
|
|
2998
|
+
return m ? Math.ceil(m / (o.value || m)) : 0;
|
|
2999
|
+
}), y = A(() => parseInt(t.item.style[d[t.layout.mode].art_b])), n = A(() => ({
|
|
3000
|
+
width: `${o.value * y.value}px`,
|
|
3001
|
+
height: `${y.value}px`
|
|
3002
|
+
})), u = A(() => ({
|
|
3003
|
+
width: `${y.value}px`
|
|
3004
|
+
})), z = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3001
3005
|
return qe(() => {
|
|
3002
|
-
if (
|
|
3006
|
+
if (!t.item.artBlock)
|
|
3003
3007
|
return;
|
|
3004
3008
|
ot(() => {
|
|
3005
|
-
o.value = Math.floor(r.value.offsetWidth /
|
|
3009
|
+
o.value = Math.floor(r.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3006
3010
|
if (!r.value)
|
|
3007
3011
|
return;
|
|
3008
3012
|
const L = r.value.getBoundingClientRect(), H = s.value[0].getBoundingClientRect();
|
|
@@ -3012,66 +3016,66 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3012
3016
|
};
|
|
3013
3017
|
}, 20);
|
|
3014
3018
|
});
|
|
3015
|
-
const
|
|
3016
|
-
a.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1,
|
|
3017
|
-
}), (
|
|
3019
|
+
const m = parseInt(t.item.style[d[t.layout.mode].art_c]), F = t.item.style[d[t.layout.mode].art_e], B = Math.floor(m / F), J = Math.round(B / (t.item.style[d[t.layout.mode].art_d] || 1) - 0.01) * F;
|
|
3020
|
+
a.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, B) - 1 || 0).keys()].map((L) => (L + 1) * J).concat(m / F < 2 ? F : m).filter((L) => L);
|
|
3021
|
+
}), (m, F) => (i(), h("div", {
|
|
3018
3022
|
class: "w-full relative min-h-[10rem]",
|
|
3019
3023
|
ref_key: "view",
|
|
3020
3024
|
ref: r,
|
|
3021
|
-
"data-viewid":
|
|
3025
|
+
"data-viewid": m.item.id
|
|
3022
3026
|
}, [
|
|
3023
|
-
|
|
3027
|
+
m.item.chunk ? P("", !0) : (i(), h("div", {
|
|
3024
3028
|
key: 0,
|
|
3025
3029
|
class: "flex items-center mt-1 mb-4",
|
|
3026
3030
|
"data-block": I(Se)
|
|
3027
3031
|
}, [
|
|
3028
|
-
pt(
|
|
3032
|
+
pt(m.$slots, "default"),
|
|
3029
3033
|
v("div", Rn, [
|
|
3030
3034
|
te(nt, {
|
|
3031
|
-
item:
|
|
3032
|
-
layout:
|
|
3035
|
+
item: m.item,
|
|
3036
|
+
layout: m.layout
|
|
3033
3037
|
}, null, 8, ["item", "layout"])
|
|
3034
3038
|
])
|
|
3035
3039
|
], 8, zn)),
|
|
3036
|
-
|
|
3037
|
-
|
|
3040
|
+
m.item.artBlock ? (i(), h(D, { key: 1 }, [
|
|
3041
|
+
m.item.beforeArt && !m.item.startAnswerLen ? (i(), V(Be, {
|
|
3038
3042
|
key: 0,
|
|
3039
|
-
data:
|
|
3040
|
-
"data-bart":
|
|
3043
|
+
data: m.item.beforeArt,
|
|
3044
|
+
"data-bart": m.item.id,
|
|
3041
3045
|
class: "indent-[2em]"
|
|
3042
3046
|
}, null, 8, ["data", "data-bart"])) : P("", !0),
|
|
3043
|
-
(i(!0), h(
|
|
3047
|
+
(i(!0), h(D, null, oe(c.value, (B, J) => (i(), h("p", {
|
|
3044
3048
|
ref_for: !0,
|
|
3045
3049
|
ref_key: "line",
|
|
3046
3050
|
ref: s,
|
|
3047
3051
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3048
3052
|
"data-block": I(Se),
|
|
3049
|
-
"data-size":
|
|
3050
|
-
style:
|
|
3053
|
+
"data-size": m.item.startAnswerLen + (J + 1) * o.value,
|
|
3054
|
+
style: j(n.value)
|
|
3051
3055
|
}, [
|
|
3052
|
-
(i(!0), h(
|
|
3053
|
-
class:
|
|
3054
|
-
style:
|
|
3055
|
-
},
|
|
3056
|
-
(i(!0), h(
|
|
3057
|
-
|
|
3056
|
+
(i(!0), h(D, null, oe(o.value, (L, H) => (i(), h("span", {
|
|
3057
|
+
class: Z([z.value[J * o.value + H] && "flex items-center justify-center"]),
|
|
3058
|
+
style: j(u.value)
|
|
3059
|
+
}, X(z.value[J * o.value + H] || ""), 7))), 256)),
|
|
3060
|
+
(i(!0), h(D, null, oe(a.value, (L) => (i(), h(D, null, [
|
|
3061
|
+
m.item.startAnswerLen + J * o.value < L && m.item.startAnswerLen + (J + 1) * o.value >= L ? (i(), h("span", {
|
|
3058
3062
|
key: 0,
|
|
3059
3063
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3060
|
-
style:
|
|
3064
|
+
style: j({ left: `${(L - m.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3061
3065
|
"data-block": I(De)
|
|
3062
|
-
},
|
|
3066
|
+
}, X(L), 13, Wn)) : P("", !0)
|
|
3063
3067
|
], 64))), 256))
|
|
3064
3068
|
], 12, Hn))), 256)),
|
|
3065
|
-
|
|
3069
|
+
m.item.afterArt && [-1, 0].includes(m.item.endAnswerLen) ? (i(), V(Be, {
|
|
3066
3070
|
key: 1,
|
|
3067
|
-
data:
|
|
3068
|
-
"data-aart":
|
|
3071
|
+
data: m.item.afterArt,
|
|
3072
|
+
"data-aart": m.item.id,
|
|
3069
3073
|
class: "mt-2 indent-[2em]"
|
|
3070
3074
|
}, null, 8, ["data", "data-aart"])) : P("", !0)
|
|
3071
|
-
], 64)) : (i(),
|
|
3075
|
+
], 64)) : (i(), V(Be, {
|
|
3072
3076
|
key: 2,
|
|
3073
|
-
"data-area":
|
|
3074
|
-
data:
|
|
3077
|
+
"data-area": m.item.id,
|
|
3078
|
+
data: m.item.answerArea
|
|
3075
3079
|
}, null, 8, ["data-area", "data"]))
|
|
3076
3080
|
], 8, On));
|
|
3077
3081
|
}
|
|
@@ -3106,7 +3110,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3106
3110
|
bracketType: {}
|
|
3107
3111
|
},
|
|
3108
3112
|
setup(e) {
|
|
3109
|
-
const t = e, o =
|
|
3113
|
+
const t = e, o = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((a) => a.split(".")).map((a) => t.isFull ? a : a.map((c, y) => y === a.length - 1 ? c : ""))), l = A(() => t.width ? `${Math.max(t.width * 5 / 7, 1)}em` : ""), r = (s) => {
|
|
3110
3114
|
if (!t.bracketType)
|
|
3111
3115
|
return "";
|
|
3112
3116
|
if (s === "prev")
|
|
@@ -3115,17 +3119,17 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3115
3119
|
return t.bracketType === g.bracket_cn ? ")" : ")";
|
|
3116
3120
|
};
|
|
3117
3121
|
return (s, a) => (i(), h("span", {
|
|
3118
|
-
class:
|
|
3119
|
-
style:
|
|
3122
|
+
class: Z(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", s.isFull && "justify-end"]),
|
|
3123
|
+
style: j({ width: l.value }),
|
|
3120
3124
|
"data-block": I(De)
|
|
3121
3125
|
}, [
|
|
3122
|
-
(i(!0), h(
|
|
3123
|
-
|
|
3124
|
-
c[0] ? (i(), h("span", Kn,
|
|
3125
|
-
c[1] ? (i(), h("span", jn, "(" +
|
|
3126
|
-
c[2] ? (i(), h("span", Vn,
|
|
3126
|
+
(i(!0), h(D, null, oe(o.value, (c, y) => (i(), h(D, null, [
|
|
3127
|
+
y ? (i(), h("span", Un, " - ")) : P("", !0),
|
|
3128
|
+
c[0] ? (i(), h("span", Kn, X(c[0]), 1)) : P("", !0),
|
|
3129
|
+
c[1] ? (i(), h("span", jn, "(" + X(c[1]) + ")", 1)) : P("", !0),
|
|
3130
|
+
c[2] ? (i(), h("span", Vn, X(c[2]), 1)) : P("", !0)
|
|
3127
3131
|
], 64))), 256)),
|
|
3128
|
-
s.score ? (i(), h("span", Xn,
|
|
3132
|
+
s.score ? (i(), h("span", Xn, X(r("prev")) + X(s.score) + "分" + X(r("after")), 1)) : P("", !0)
|
|
3129
3133
|
], 14, Yn));
|
|
3130
3134
|
}
|
|
3131
3135
|
}), Zn = {
|
|
@@ -3176,55 +3180,56 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3176
3180
|
dbclick: null
|
|
3177
3181
|
},
|
|
3178
3182
|
setup(e, { emit: t }) {
|
|
3179
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), r = Q(""), s =
|
|
3183
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), r = Q(""), s = A(() => {
|
|
3180
3184
|
const b = o ? {
|
|
3181
|
-
choiceSheet: [
|
|
3182
|
-
fillSheet: [
|
|
3185
|
+
choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
3186
|
+
fillSheet: [p.fill, p.fill_english]
|
|
3183
3187
|
} : {
|
|
3184
|
-
choice: [
|
|
3185
|
-
fill: [
|
|
3188
|
+
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
3189
|
+
fill: [p.fill, p.fill_english]
|
|
3186
3190
|
};
|
|
3187
|
-
return Object.keys(
|
|
3188
|
-
}), a =
|
|
3191
|
+
return Object.keys(p).reduce((f, O) => ({ ...f, [p[O]]: Object.keys(b).find((q) => b[q].includes(p[O])) || `${O}${o}` }), {});
|
|
3192
|
+
}), a = A(() => [ke.one_choice, ke.another_choice].includes(e.data.problemType)), c = A(() => {
|
|
3189
3193
|
let b = [];
|
|
3190
3194
|
return e.data.children.forEach((f) => {
|
|
3191
|
-
let
|
|
3192
|
-
((f.polymerId || l.includes(e.data.problemType)) && l.includes(f.problemType) || [Re.fill, Re.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === g.portrait) && f.style ? (!
|
|
3195
|
+
let O = b[b.length - 1];
|
|
3196
|
+
((f.polymerId || l.includes(e.data.problemType)) && l.includes(f.problemType) || [Re.fill, Re.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === g.portrait) && f.style ? (!O || O.type !== "polymer" || O.polymerId !== f.polymerId) && (b.push({
|
|
3193
3197
|
type: "polymer",
|
|
3194
3198
|
problemType: f.problemType,
|
|
3195
3199
|
polymerId: f.polymerId,
|
|
3196
3200
|
styleInfo: f.polymerId ? f.style : e.data.style,
|
|
3197
3201
|
children: [],
|
|
3198
3202
|
rawChildren: e.data.rawChildren || []
|
|
3199
|
-
}),
|
|
3203
|
+
}), O = b[b.length - 1]) : (!O || O.type !== "base") && (b.push({
|
|
3200
3204
|
type: "base",
|
|
3201
3205
|
children: []
|
|
3202
|
-
}),
|
|
3206
|
+
}), O = b[b.length - 1]), O.children.push({ ...f, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3203
3207
|
}), b = b.map((f) => {
|
|
3204
|
-
var
|
|
3208
|
+
var O;
|
|
3205
3209
|
if (f.type === "polymer") {
|
|
3206
|
-
const
|
|
3210
|
+
const q = Math.min(Math.floor(e.width / (Math.max(...f.children.map((Y) => Y.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[f.polymerId] || n.value[((O = f.children[0]) == null ? void 0 : O.polymerId) || ""] || 0) * 10 + 10)), f.styleInfo[d[e.layout.mode].choice_d] || 10), fe = f.styleInfo[d[e.layout.mode].choice_b] === g.landscape;
|
|
3207
3211
|
if (f.styleInfo[d[e.layout.mode].choice_a] === g.choice_1) {
|
|
3208
|
-
const
|
|
3212
|
+
const Y = f.styleInfo[d[e.layout.mode].choice_e], ge = fe ? (
|
|
3209
3213
|
/*col * line || */
|
|
3210
3214
|
f.styleInfo[d[e.layout.mode].choice_e] || 20
|
|
3211
|
-
) :
|
|
3212
|
-
return [...Array(Math.ceil(f.children.length / ge)).keys()].map((
|
|
3215
|
+
) : q * Y;
|
|
3216
|
+
return [...Array(Math.ceil(f.children.length / ge)).keys()].map((de, x) => ({
|
|
3213
3217
|
...f,
|
|
3214
3218
|
groupIndex: x,
|
|
3215
3219
|
children: f.children.slice(x * ge, (x + 1) * ge)
|
|
3216
3220
|
}));
|
|
3217
3221
|
} else if (f.styleInfo[d[e.layout.mode].choice_a] === g.choice_3) {
|
|
3218
|
-
let
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
+
let Y = [], ge = 0;
|
|
3223
|
+
const de = q * f.styleInfo[d[e.layout.mode].choice_e];
|
|
3224
|
+
return f.children.forEach((x) => {
|
|
3225
|
+
(x.optList.length !== ge || !Object.values(je).includes(x.problemType) && !Y.length || Y[Y.length - 1].length >= de) && (Y.push([]), ge = x.optList.length), Y[Y.length - 1].push(x);
|
|
3226
|
+
}), Y.map((x, C) => ({ ...f, groupIndex: C, children: x }));
|
|
3222
3227
|
} else if (f.styleInfo[d[e.layout.mode].fill_g] === g.portrait) {
|
|
3223
|
-
const
|
|
3224
|
-
return [...Array(Math.ceil(f.children.length /
|
|
3228
|
+
const Y = Math.floor(f.styleInfo[d[e.layout.mode].fill_f]) * (f.styleInfo[d[e.layout.mode].fill_h] || 10);
|
|
3229
|
+
return [...Array(Math.ceil(f.children.length / Y)).keys()].map((ge, de) => ({
|
|
3225
3230
|
...f,
|
|
3226
|
-
groupIndex:
|
|
3227
|
-
children: f.children.slice(
|
|
3231
|
+
groupIndex: de,
|
|
3232
|
+
children: f.children.slice(de * Y, (de + 1) * Y).map((x) => ({
|
|
3228
3233
|
...x,
|
|
3229
3234
|
style: {
|
|
3230
3235
|
...x.style,
|
|
@@ -3238,18 +3243,18 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3238
3243
|
} else
|
|
3239
3244
|
return f;
|
|
3240
3245
|
}).flat(), b;
|
|
3241
|
-
}),
|
|
3246
|
+
}), y = A(() => {
|
|
3242
3247
|
let b = {};
|
|
3243
3248
|
return e.data.children.forEach((f) => {
|
|
3244
3249
|
f.polymerId && (b[f.polymerId] || (b[f.polymerId] = []), b[f.polymerId][f.polymerOrder || 0] = f.id);
|
|
3245
3250
|
}), b;
|
|
3246
|
-
}), n =
|
|
3251
|
+
}), n = A(() => {
|
|
3247
3252
|
if (l.includes(e.data.problemType)) {
|
|
3248
3253
|
const b = (e.data.rawChildren || e.data.children).map((f) => f.subStr.length);
|
|
3249
3254
|
return { [`h${e.data.id}`]: Math.max(...b) };
|
|
3250
3255
|
} else
|
|
3251
|
-
return Object.keys(
|
|
3252
|
-
const f = (e.data.rawChildren || e.data.children).filter((
|
|
3256
|
+
return Object.keys(y.value).map((b) => {
|
|
3257
|
+
const f = (e.data.rawChildren || e.data.children).filter((O) => O.polymerId === b).map((O) => O.subStr.length);
|
|
3253
3258
|
return {
|
|
3254
3259
|
[b]: Math.max(...f)
|
|
3255
3260
|
};
|
|
@@ -3262,15 +3267,15 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3262
3267
|
ModuleTag: o,
|
|
3263
3268
|
ChoiceType: a,
|
|
3264
3269
|
GroupData: c,
|
|
3265
|
-
PolymerData:
|
|
3270
|
+
PolymerData: y,
|
|
3266
3271
|
SubWidthInfo: n,
|
|
3267
3272
|
ComputName: (b) => b.problemType ? s.value[b.problemType] : "notArea",
|
|
3268
|
-
ComputAbs: (b) => o && [
|
|
3269
|
-
ComputPolymerCls: (b) => [
|
|
3273
|
+
ComputAbs: (b) => o && [p.slove, p.art].includes(b.problemType),
|
|
3274
|
+
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"],
|
|
3270
3275
|
ComputPolymerStyle: (b) => {
|
|
3271
|
-
var
|
|
3272
|
-
let f = {},
|
|
3273
|
-
if ([
|
|
3276
|
+
var q;
|
|
3277
|
+
let f = {}, O = !0;
|
|
3278
|
+
if ([p.fill, p.fill_english].includes(b.problemType))
|
|
3274
3279
|
switch (b.styleInfo[d[e.layout.mode].fill_g]) {
|
|
3275
3280
|
case g.portrait:
|
|
3276
3281
|
f = {
|
|
@@ -3281,40 +3286,40 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3281
3286
|
break;
|
|
3282
3287
|
}
|
|
3283
3288
|
else if (Object.values(je).includes(b.problemType)) {
|
|
3284
|
-
const fe = b.styleInfo[d[e.layout.mode].choice_b] === g.landscape,
|
|
3285
|
-
b.children.map((
|
|
3286
|
-
var
|
|
3287
|
-
return ((
|
|
3288
|
-
})) * (Le[e.layout.fillSize].value + 9) +
|
|
3289
|
-
let
|
|
3290
|
-
const G = (
|
|
3291
|
-
$ = (fe ? [...Array(
|
|
3292
|
-
var
|
|
3293
|
-
return ((
|
|
3289
|
+
const fe = b.styleInfo[d[e.layout.mode].choice_b] === g.landscape, Y = b.styleInfo[d[e.layout.mode].choice_e] || 20, ge = e.data.style[d[e.layout.mode].choice_d] || 10, de = (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[((q = e.data.children[0]) == null ? void 0 : q.polymerId) || ""] || 0) * 10 + 10, x = Math.max(.../* item.rawChildren || */
|
|
3290
|
+
b.children.map((ce) => {
|
|
3291
|
+
var ne;
|
|
3292
|
+
return ((ne = ce.optList) == null ? void 0 : ne.length) || 0;
|
|
3293
|
+
})) * (Le[e.layout.fillSize].value + 9) + de;
|
|
3294
|
+
let C = Math.min(Math.floor(e.width / x), ge), $ = [], ee = [], ue = [];
|
|
3295
|
+
const G = (ce = C) => {
|
|
3296
|
+
$ = (fe ? [...Array(ce).keys()].map((ne, _) => b.children.filter((S, pe) => pe % ce === _)).filter((ne) => ne.length) : [...Array(ce).keys()].map((ne) => b.children.slice(ne * Y, (ne + 1) * Y))).filter((ne) => ne.length).map((ne) => Math.max(...ne.map((_) => {
|
|
3297
|
+
var S;
|
|
3298
|
+
return ((S = _.optList) == null ? void 0 : S.length) || 0;
|
|
3294
3299
|
})));
|
|
3295
3300
|
};
|
|
3296
|
-
for (G(
|
|
3297
|
-
G(
|
|
3298
|
-
b.children.length %
|
|
3299
|
-
const
|
|
3301
|
+
for (G(C), ee = [...$]; O && C < ge; )
|
|
3302
|
+
G(C + 1), O = C + 1 <= ge && $.reduce((ce, ne) => ce + ne, 0) * (Le[e.layout.fillSize].value + 9) + (C + 1) * de < e.width, O && (C += 1, ee = [...$]);
|
|
3303
|
+
b.children.length % Y;
|
|
3304
|
+
const se = [...Array(Math.ceil(b.children.length / Y)).keys()].map((ce) => b.children.filter((ne, _) => _ >= ce * Y && _ < (ce + 1) * Y)).map((ce, ne) => ce.map((_, S) => ({ ..._, _grid_area_: fe ? null : dt[S] + ne }))), Ce = ee.map((ce) => ce * (Le[e.layout.fillSize].value + 9) + de);
|
|
3300
3305
|
switch (b.styleInfo[d[e.layout.mode].choice_f]) {
|
|
3301
3306
|
case g.choice_6:
|
|
3302
|
-
ue = Ce.map((
|
|
3307
|
+
ue = Ce.map((ce) => `${ce}px`);
|
|
3303
3308
|
break;
|
|
3304
3309
|
case g.choice_7:
|
|
3305
3310
|
default:
|
|
3306
|
-
ue = Ce.map((
|
|
3311
|
+
ue = Ce.map((ce) => `${ce / Math.max(...Ce)}fr`);
|
|
3307
3312
|
}
|
|
3308
3313
|
switch (b.styleInfo[d[e.layout.mode].choice_a]) {
|
|
3309
3314
|
case g.choice_1:
|
|
3310
3315
|
case g.choice_3:
|
|
3311
|
-
fe && !e.noPortrait &&
|
|
3312
|
-
const
|
|
3313
|
-
|
|
3316
|
+
fe && !e.noPortrait && se.flat(2).forEach((ce) => {
|
|
3317
|
+
const ne = b.children.find((_) => _.id === ce.id);
|
|
3318
|
+
ne._grid_area_ = ce._grid_area_;
|
|
3314
3319
|
}), f = fe ? {
|
|
3315
3320
|
// 横排竖向按列排
|
|
3316
3321
|
// 'grid-template': `${colList[0].map((k: Strany, i: number) => `"${[...Array(colList.length).keys()].map(j => colList[j][i] ? ChoiceSub[i] + j : '.').join(' ')}" 1fr`).join('')} / ${colListW.join(' ')}`
|
|
3317
|
-
"grid-template": `repeat(${Math.ceil(b.children.length /
|
|
3322
|
+
"grid-template": `repeat(${Math.ceil(b.children.length / C)}, 1fr) / ${ue.join(" ")}`
|
|
3318
3323
|
} : {
|
|
3319
3324
|
"grid-auto-flow": "column",
|
|
3320
3325
|
"grid-template": `repeat(${Math.min(b.styleInfo[d[e.layout.mode].choice_e], b.children.length)}, 1fr) / ${ue.join(" ")}`
|
|
@@ -3327,55 +3332,55 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3327
3332
|
return f;
|
|
3328
3333
|
},
|
|
3329
3334
|
ComputPolymerItemStyle: (b, f) => {
|
|
3330
|
-
var
|
|
3335
|
+
var O;
|
|
3331
3336
|
if (b._grid_area_)
|
|
3332
3337
|
return {
|
|
3333
3338
|
"grid-area": b._grid_area_
|
|
3334
3339
|
};
|
|
3335
3340
|
if (l.includes(b.problemType) && b.style[d[e.layout.mode].choice_a] === g.choice_2) {
|
|
3336
|
-
const
|
|
3341
|
+
const q = Math.max(Le[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[(O = b.children[0]) == null ? void 0 : O.polymerId] || 0) * 10 + 10), fe = Math.floor(e.width / (q * b.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - q * fe * b.style[d[e.layout.mode].choice_c]) / (fe - 1 || 1);
|
|
3337
3342
|
if (!((f + 1) % b.style[d[e.layout.mode].choice_c]) && ((f + 1) % (b.style[d[e.layout.mode].choice_c] * fe) || fe < 2))
|
|
3338
3343
|
return {
|
|
3339
|
-
"margin-right": `${
|
|
3344
|
+
"margin-right": `${Y}px`
|
|
3340
3345
|
};
|
|
3341
3346
|
}
|
|
3342
3347
|
return {};
|
|
3343
3348
|
},
|
|
3344
3349
|
ComputStyle: (b, f) => {
|
|
3345
|
-
var
|
|
3346
|
-
let
|
|
3350
|
+
var q;
|
|
3351
|
+
let O = {};
|
|
3347
3352
|
if (!o)
|
|
3348
|
-
return
|
|
3353
|
+
return O;
|
|
3349
3354
|
if (l.includes(b.problemType)) {
|
|
3350
3355
|
let fe = {};
|
|
3351
3356
|
if (Object.values(je).includes(e.data.problemType)) {
|
|
3352
|
-
const
|
|
3353
|
-
e.data.children.map((
|
|
3354
|
-
fe = f % ge ? { minWidth: `${
|
|
3357
|
+
const Y = Math.max(.../*props.data.rawChildren || */
|
|
3358
|
+
e.data.children.map((de) => de.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((q = e.data.children[0]) == null ? void 0 : q.polymerId) || ""] || 0) * 10 + 10, ge = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
|
|
3359
|
+
fe = f % ge ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * ge) / (ge - 1) - 5}px` } : { minWidth: `${Y}px` };
|
|
3355
3360
|
}
|
|
3356
|
-
|
|
3357
|
-
...
|
|
3361
|
+
O = {
|
|
3362
|
+
...O,
|
|
3358
3363
|
display: "inline-flex",
|
|
3359
3364
|
...fe
|
|
3360
3365
|
};
|
|
3361
3366
|
} else
|
|
3362
|
-
[
|
|
3367
|
+
[p.fill, p.fill_english].includes(b.problemType) && (O = {
|
|
3363
3368
|
display: b.style[d[e.layout.mode].fill_c] === g.fill_1 && typeof b.order != "number" ? "flex" : "inline-flex",
|
|
3364
3369
|
alignItems: "flex-end",
|
|
3365
3370
|
width: `calc(${100 / b.style[d[e.layout.mode].fill_d][b.order || 0]}% - 6px)`
|
|
3366
3371
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3367
3372
|
});
|
|
3368
|
-
return
|
|
3373
|
+
return O;
|
|
3369
3374
|
},
|
|
3370
3375
|
ComputBlock: (b) => {
|
|
3371
|
-
const f = [...l,
|
|
3376
|
+
const f = [...l, p.fill, p.fill_english];
|
|
3372
3377
|
if (o && (f.includes(b.problemType) || typeof b.groupIndex == "number"))
|
|
3373
3378
|
return Se;
|
|
3374
3379
|
},
|
|
3375
|
-
ComputItemScore: (b) => [
|
|
3380
|
+
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,
|
|
3376
3381
|
ComputPayload: (b, f) => {
|
|
3377
3382
|
switch (b.problemType) {
|
|
3378
|
-
case
|
|
3383
|
+
case p.slove:
|
|
3379
3384
|
return { isFirst: !f };
|
|
3380
3385
|
default:
|
|
3381
3386
|
return {};
|
|
@@ -3391,7 +3396,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3391
3396
|
e.data.isPolymer || (b.stopPropagation(), t("click", f));
|
|
3392
3397
|
},
|
|
3393
3398
|
handleGroupClick: (b, f) => {
|
|
3394
|
-
![
|
|
3399
|
+
![p.mix, p.synthesis].includes(f.__rootProblemType__) || e.layout.polymerFlag || (b.stopPropagation(), t("click", f));
|
|
3395
3400
|
},
|
|
3396
3401
|
handleDblClick: (b, f) => {
|
|
3397
3402
|
e.data.isPolymer || (b.stopPropagation(), t("dbclick", f));
|
|
@@ -3401,52 +3406,52 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
|
|
|
3401
3406
|
}, 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 };
|
|
3402
3407
|
function ls(e, t, o, l, r, s) {
|
|
3403
3408
|
const a = Gt("Sub");
|
|
3404
|
-
return i(!0), h(
|
|
3409
|
+
return i(!0), h(D, null, oe(l.GroupData, (c, y) => (i(), h(D, null, [
|
|
3405
3410
|
c.type === "polymer" ? (i(), h("div", {
|
|
3406
3411
|
key: 0,
|
|
3407
3412
|
"data-block": l.ComputBlock(c),
|
|
3408
|
-
"data-polymer":
|
|
3409
|
-
class:
|
|
3410
|
-
style:
|
|
3413
|
+
"data-polymer": y,
|
|
3414
|
+
class: Z([...l.ComputPolymerCls(c)]),
|
|
3415
|
+
style: j(l.ComputPolymerStyle(c))
|
|
3411
3416
|
}, [
|
|
3412
|
-
(i(!0), h(
|
|
3417
|
+
(i(!0), h(D, null, oe(c.children, (n, u) => {
|
|
3413
3418
|
var z;
|
|
3414
3419
|
return i(), h("div", {
|
|
3415
|
-
class:
|
|
3416
|
-
style:
|
|
3420
|
+
class: Z(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((z = o.target.value) == null ? void 0 : z.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3421
|
+
style: j(l.ComputPolymerItemStyle(n, u)),
|
|
3417
3422
|
"data-tag": n.__tag__,
|
|
3418
|
-
"data-polymer":
|
|
3423
|
+
"data-polymer": y,
|
|
3419
3424
|
"data-block": l.ComputBlock(n),
|
|
3420
3425
|
"data-xine": l.Gps_cls.item + n._sub,
|
|
3421
|
-
onClick: (
|
|
3422
|
-
onMouseenter: (
|
|
3423
|
-
onMouseleave: (
|
|
3426
|
+
onClick: (m) => l.handleGroupClick(m, n),
|
|
3427
|
+
onMouseenter: (m) => l.handleHoverIn(n),
|
|
3428
|
+
onMouseleave: (m) => l.handleHoverOut(n)
|
|
3424
3429
|
}, [
|
|
3425
|
-
n.problemType ? (i(),
|
|
3430
|
+
n.problemType ? (i(), V(a, {
|
|
3426
3431
|
key: 0,
|
|
3427
3432
|
sub: n.sub,
|
|
3428
3433
|
isFull: !!l.ModuleTag,
|
|
3429
3434
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3430
|
-
class:
|
|
3435
|
+
class: Z(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
|
|
3431
3436
|
}, null, 8, ["sub", "isFull", "width", "class"])) : P("", !0),
|
|
3432
|
-
(i(),
|
|
3437
|
+
(i(), V(vt(l.ComputName(n)), wt(kt({ item: n, layout: o.layout, ...l.ComputPayload(n, u) })), null, 16))
|
|
3433
3438
|
], 46, ts);
|
|
3434
3439
|
}), 256))
|
|
3435
|
-
], 14, es)) : (i(!0), h(
|
|
3440
|
+
], 14, es)) : (i(!0), h(D, { key: 1 }, oe(c.children, (n, u) => {
|
|
3436
3441
|
var z;
|
|
3437
|
-
return i(), h(
|
|
3442
|
+
return i(), h(D, null, [
|
|
3438
3443
|
v("div", {
|
|
3439
|
-
class:
|
|
3440
|
-
style:
|
|
3444
|
+
class: Z(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((z = o.target.value) == null ? void 0 : z.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3445
|
+
style: j(l.ComputStyle(n, u)),
|
|
3441
3446
|
"data-tag": n.__tag__,
|
|
3442
3447
|
"data-block": l.ComputBlock(n),
|
|
3443
3448
|
"data-xine": l.Gps_cls.item + n._sub,
|
|
3444
|
-
onClick: (
|
|
3445
|
-
onDblclick: (
|
|
3446
|
-
onMouseenter: (
|
|
3447
|
-
onMouseleave: (
|
|
3449
|
+
onClick: (m) => l.handleClick(m, n),
|
|
3450
|
+
onDblclick: (m) => l.handleDblClick(m, n),
|
|
3451
|
+
onMouseenter: (m) => l.handleHoverIn(n),
|
|
3452
|
+
onMouseleave: (m) => l.handleHoverOut(n)
|
|
3448
3453
|
}, [
|
|
3449
|
-
n.problemType && !l.ComputAbs(n) ? (i(),
|
|
3454
|
+
n.problemType && !l.ComputAbs(n) ? (i(), V(a, {
|
|
3450
3455
|
key: 0,
|
|
3451
3456
|
sub: n.sub,
|
|
3452
3457
|
isFull: !!l.ModuleTag,
|
|
@@ -3454,9 +3459,9 @@ function ls(e, t, o, l, r, s) {
|
|
|
3454
3459
|
score: l.ComputItemScore(n),
|
|
3455
3460
|
bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3456
3461
|
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : P("", !0),
|
|
3457
|
-
(i(),
|
|
3462
|
+
(i(), V(vt(l.ComputName(n)), wt(kt({ item: n, layout: o.layout, ...l.ComputPayload(n, u) })), {
|
|
3458
3463
|
default: Ft(() => [
|
|
3459
|
-
n.customSub ? P("", !0) : (i(),
|
|
3464
|
+
n.customSub ? P("", !0) : (i(), V(a, {
|
|
3460
3465
|
key: 0,
|
|
3461
3466
|
sub: n.sub,
|
|
3462
3467
|
isFull: !!l.ModuleTag,
|
|
@@ -3506,7 +3511,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3506
3511
|
width: s.width,
|
|
3507
3512
|
height: a - (l ? 2 : 0)
|
|
3508
3513
|
} : null;
|
|
3509
|
-
},
|
|
3514
|
+
}, re = (e, t = !1) => {
|
|
3510
3515
|
if (!e)
|
|
3511
3516
|
return null;
|
|
3512
3517
|
const o = t ? zt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -3528,18 +3533,18 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3528
3533
|
return e.bindWidth ? {
|
|
3529
3534
|
choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
|
|
3530
3535
|
yRowOffset: Math.round((l.list[0][0].y - l.list[0][1].y - l.list[0][1].height) * Fe),
|
|
3531
|
-
firstChoicePosition:
|
|
3536
|
+
firstChoicePosition: re(l.list[0][9]),
|
|
3532
3537
|
crosswised: !1,
|
|
3533
|
-
choiceQuestionPosition:
|
|
3538
|
+
choiceQuestionPosition: re(l.area),
|
|
3534
3539
|
choiceQuestionCount: l.list.length,
|
|
3535
3540
|
xColOffset: Math.round((l.list[1][0].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3536
3541
|
questionNOList: [...Array(l.list.length).keys()].map((r, s) => s + 1)
|
|
3537
3542
|
} : {
|
|
3538
3543
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3539
3544
|
yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) * Fe),
|
|
3540
|
-
firstChoicePosition:
|
|
3545
|
+
firstChoicePosition: re(l.list[0][0]),
|
|
3541
3546
|
crosswised: !0,
|
|
3542
|
-
choiceQuestionPosition:
|
|
3547
|
+
choiceQuestionPosition: re(l.area),
|
|
3543
3548
|
choiceQuestionCount: l.list.length,
|
|
3544
3549
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3545
3550
|
questionNOList: [...Array(l.list.length).keys()].map((r, s) => s + 1)
|
|
@@ -3555,29 +3560,29 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3555
3560
|
const t = R(e.pageDom[0]), o = R(e.pageDom[1]), l = (r) => {
|
|
3556
3561
|
var a;
|
|
3557
3562
|
const s = e.layout.backColumn > 2 ? {
|
|
3558
|
-
trdLeftTopPos:
|
|
3559
|
-
trdLeftBottomPos:
|
|
3563
|
+
trdLeftTopPos: re(me(R(Ee(`${T.point}t`, e.pageDom[r])[1]), R(e.pageDom[r]))),
|
|
3564
|
+
trdLeftBottomPos: re(me(R(Ee(`${T.point}b`, e.pageDom[r])[1]), R(e.pageDom[r])))
|
|
3560
3565
|
} : {};
|
|
3561
3566
|
return (a = He.find((c) => c.code === e.layout.paper)) != null && a.isMultCol ? {
|
|
3562
|
-
secLeftTopPos:
|
|
3563
|
-
secLeftBottomPos:
|
|
3567
|
+
secLeftTopPos: re(me(R(Ee(`${T.point}t`, e.pageDom[r])[0]), R(e.pageDom[r]))),
|
|
3568
|
+
secLeftBottomPos: re(me(R(Ee(`${T.point}b`, e.pageDom[r])[0]), R(e.pageDom[r]))),
|
|
3564
3569
|
...s
|
|
3565
3570
|
} : null;
|
|
3566
3571
|
};
|
|
3567
3572
|
return {
|
|
3568
3573
|
// 取第一/二页定位点信息
|
|
3569
|
-
leftTopPos:
|
|
3570
|
-
rightTopPos:
|
|
3571
|
-
leftBottomPos:
|
|
3572
|
-
rightBottomPos:
|
|
3574
|
+
leftTopPos: re(me(R(he(`${T.point}lt`, e.pageDom[0])), t)),
|
|
3575
|
+
rightTopPos: re(me(R(he(`${T.point}rt`, e.pageDom[0])), t)),
|
|
3576
|
+
leftBottomPos: re(me(R(he(`${T.point}lb`, e.pageDom[0])), t)),
|
|
3577
|
+
rightBottomPos: re(me(R(he(`${T.point}rb`, e.pageDom[0])), t)),
|
|
3573
3578
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3574
3579
|
verticalAuxInfo: [
|
|
3575
|
-
|
|
3576
|
-
|
|
3580
|
+
re(me(R(he(`${T.point}l`, e.pageDom[0])), t)),
|
|
3581
|
+
re(me(R(he(`${T.point}r`, e.pageDom[0])), t))
|
|
3577
3582
|
],
|
|
3578
3583
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3579
|
-
|
|
3580
|
-
|
|
3584
|
+
re(me(R(he(`${T.point}l`, e.pageDom[1])), o)),
|
|
3585
|
+
re(me(R(he(`${T.point}r`, e.pageDom[1])), o))
|
|
3581
3586
|
] : null,
|
|
3582
3587
|
auxAnchorInfo: l(0),
|
|
3583
3588
|
auxAnchorInfo2: e.pageDom[1] ? l(1) : null
|
|
@@ -3596,9 +3601,9 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3596
3601
|
// 固定值
|
|
3597
3602
|
questionNOList: [1],
|
|
3598
3603
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3599
|
-
choiceQuestionPosition:
|
|
3604
|
+
choiceQuestionPosition: re(o, !0),
|
|
3600
3605
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3601
|
-
firstChoicePosition:
|
|
3606
|
+
firstChoicePosition: re(me(R(he(`${T.page_item}0`, e.pageDom[e.pageTotal - 1])), R(e.pageDom[e.pageTotal - 1]))),
|
|
3602
3607
|
// 页码点最大值,展开为数组
|
|
3603
3608
|
choiceGridSequenceNOList: yt.filter((l, r) => r < e.pageTotal),
|
|
3604
3609
|
// 排列方向
|
|
@@ -3617,9 +3622,9 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3617
3622
|
// 固定值
|
|
3618
3623
|
questionNOList: [1],
|
|
3619
3624
|
// 方框业务坐标
|
|
3620
|
-
choiceQuestionPosition:
|
|
3625
|
+
choiceQuestionPosition: re(me(R(t), R(e.pageDom[0])), !0),
|
|
3621
3626
|
// 数据坐标
|
|
3622
|
-
firstChoicePosition:
|
|
3627
|
+
firstChoicePosition: re(me(R(t), R(e.pageDom[0]))),
|
|
3623
3628
|
// 固定值
|
|
3624
3629
|
choiceGridSequenceNOList: [
|
|
3625
3630
|
"true"
|
|
@@ -3631,7 +3636,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3631
3636
|
} : null;
|
|
3632
3637
|
}, hs = (e) => {
|
|
3633
3638
|
let t = me(R(he(T.en_code, e.pageDom[0])), R(e.pageDom[0]));
|
|
3634
|
-
return
|
|
3639
|
+
return re(t);
|
|
3635
3640
|
}, ps = (e) => {
|
|
3636
3641
|
const t = he(T.write_view, e.pageDom[0]);
|
|
3637
3642
|
if (!t)
|
|
@@ -3639,7 +3644,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3639
3644
|
const o = Ee(T.score_item, t);
|
|
3640
3645
|
return {
|
|
3641
3646
|
id: "0",
|
|
3642
|
-
problemType:
|
|
3647
|
+
problemType: p.slove,
|
|
3643
3648
|
position: me(R(t), R(e.pageDom[0])),
|
|
3644
3649
|
scoreList: o.map((l, r) => ({
|
|
3645
3650
|
position: me(R(o[r]), R(e.pageDom[0])),
|
|
@@ -3650,11 +3655,11 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3650
3655
|
}))
|
|
3651
3656
|
};
|
|
3652
3657
|
}, ms = (e, t) => {
|
|
3653
|
-
const o = [
|
|
3658
|
+
const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], l = ss + zt, r = (s) => parseFloat(s.toFixed(2));
|
|
3654
3659
|
return t.flat().filter((s) => o.includes(s.problemType) && s.colIndex < 2).map((s) => {
|
|
3655
3660
|
switch (s.problemType) {
|
|
3656
|
-
case
|
|
3657
|
-
case
|
|
3661
|
+
case p.fill:
|
|
3662
|
+
case p.fill_english:
|
|
3658
3663
|
return !e.layout.handReadFlag && s.isHiddenContent ? [] : s.children.map((a) => {
|
|
3659
3664
|
const c = a.scorePosition;
|
|
3660
3665
|
return {
|
|
@@ -3667,8 +3672,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3667
3672
|
}
|
|
3668
3673
|
};
|
|
3669
3674
|
});
|
|
3670
|
-
case
|
|
3671
|
-
case
|
|
3675
|
+
case p.slove:
|
|
3676
|
+
case p.art:
|
|
3672
3677
|
return e.layout.handReadFlag ? [{
|
|
3673
3678
|
sub: s.id,
|
|
3674
3679
|
position: {
|
|
@@ -3678,13 +3683,13 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3678
3683
|
height: s.scoreList[0].position.height
|
|
3679
3684
|
}
|
|
3680
3685
|
}] : [];
|
|
3681
|
-
case
|
|
3682
|
-
return !e.layout.handReadFlag && s.isHiddenContent ? [] : (s.children || []).filter((a) => [
|
|
3686
|
+
case p.mix:
|
|
3687
|
+
return !e.layout.handReadFlag && s.isHiddenContent ? [] : (s.children || []).filter((a) => [p.fill, p.fill_english, p.easy_slove].includes(a.problemType)).map((a) => [p.easy_slove].includes(a.problemType) ? {
|
|
3683
3688
|
sub: a.id,
|
|
3684
3689
|
position: {
|
|
3685
3690
|
x: r(a.scoreList[0].position.x - (a.isHiddenContent ? a.position.x : s.position.x)),
|
|
3686
3691
|
y: r(a.scoreList[0].position.y - (a.isHiddenContent ? a.position.y : s.position.y)) + l * (s.colIndex - 1),
|
|
3687
|
-
width: a.scoreList.map((c) => c.position.width).reduce((c,
|
|
3692
|
+
width: a.scoreList.map((c) => c.position.width).reduce((c, y) => c + y, 0),
|
|
3688
3693
|
height: a.position.height
|
|
3689
3694
|
}
|
|
3690
3695
|
} : {
|
|
@@ -3703,7 +3708,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3703
3708
|
return [...Array(e.pageDom.length).keys()].map((r) => {
|
|
3704
3709
|
const s = Math.floor(r / 2) * (e.layout.column + e.layout.backColumn) + (r % 2 ? e.layout.column : 0);
|
|
3705
3710
|
return [...Array(r % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((a, c) => s + c < t.length).map((a, c) => {
|
|
3706
|
-
const
|
|
3711
|
+
const y = e.pageDom[r], n = R(y), u = e.colDom[s + c], z = R(u), m = e.colViewDom[s + c], F = R(m), B = t[s + c].data.map((L) => L.children).flat(), J = t[s + c].data.filter((L) => [ke.one_choice, ke.another_choice].includes(L.problemType) && L.rawChildren.length).map((L) => {
|
|
3707
3712
|
const H = he(`${T.choice}${L.id}`, u);
|
|
3708
3713
|
return H ? {
|
|
3709
3714
|
id: `${++o}`,
|
|
@@ -3717,15 +3722,15 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3717
3722
|
})).filter((w) => w.position)
|
|
3718
3723
|
} : {};
|
|
3719
3724
|
}).filter((L) => L.position);
|
|
3720
|
-
return
|
|
3725
|
+
return B.filter((L) => L.problemType && is(L, u, z)).map((L, H) => {
|
|
3721
3726
|
let w = {};
|
|
3722
3727
|
l[L._sub] ? l[L._sub] += 1 : l[L._sub] = 1;
|
|
3723
3728
|
const E = he(`${T.item}${L._sub}`, u);
|
|
3724
3729
|
switch (L.problemType) {
|
|
3725
|
-
case
|
|
3726
|
-
case
|
|
3727
|
-
case
|
|
3728
|
-
case
|
|
3730
|
+
case p.choice:
|
|
3731
|
+
case p.choice_english:
|
|
3732
|
+
case p.choice_multiple:
|
|
3733
|
+
case p.cloze:
|
|
3729
3734
|
w = {
|
|
3730
3735
|
score: L.score,
|
|
3731
3736
|
isColumn: L.style[d[e.layout.mode].choice_a] !== g.choice_2,
|
|
@@ -3735,7 +3740,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3735
3740
|
})).filter((le) => le.position)
|
|
3736
3741
|
};
|
|
3737
3742
|
break;
|
|
3738
|
-
case
|
|
3743
|
+
case p.decide:
|
|
3739
3744
|
w = {
|
|
3740
3745
|
optList: [0, 1].map((le, b) => ({
|
|
3741
3746
|
id: `${L._sub}.${b + 1}`,
|
|
@@ -3743,9 +3748,9 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3743
3748
|
})).filter((le) => le.position)
|
|
3744
3749
|
};
|
|
3745
3750
|
break;
|
|
3746
|
-
case
|
|
3747
|
-
case
|
|
3748
|
-
const
|
|
3751
|
+
case p.fill:
|
|
3752
|
+
case p.fill_english:
|
|
3753
|
+
const U = Ee(T.fill, E), N = Ee(T.fill_line, E);
|
|
3749
3754
|
w = {
|
|
3750
3755
|
children: [L.score].flat().map((le, b, f) => ({
|
|
3751
3756
|
id: f.length > 1 ? `${L._sub}.${b + 1}` : L._sub,
|
|
@@ -3753,14 +3758,14 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3753
3758
|
problemType: L.problemType,
|
|
3754
3759
|
isHiddenContent: !L.style[d[e.layout.mode].fill_b],
|
|
3755
3760
|
position: Ae(E, F, n),
|
|
3756
|
-
scorePosition: Ae(
|
|
3757
|
-
answerPosition: Ae(
|
|
3761
|
+
scorePosition: Ae(U[b], F, n),
|
|
3762
|
+
answerPosition: Ae(N[b], F, n)
|
|
3758
3763
|
})).filter((le) => le.position)
|
|
3759
3764
|
};
|
|
3760
3765
|
break;
|
|
3761
|
-
case
|
|
3762
|
-
case
|
|
3763
|
-
case
|
|
3766
|
+
case p.slove:
|
|
3767
|
+
case p.easy_slove:
|
|
3768
|
+
case p.art:
|
|
3764
3769
|
const W = he(T.score, E);
|
|
3765
3770
|
w = {
|
|
3766
3771
|
scoreList: W ? [he(T.score_tenbit, W), he(T.score_base, W), he(T.score_half, W)].map((le, b) => {
|
|
@@ -3772,7 +3777,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3772
3777
|
itemPosition: {
|
|
3773
3778
|
width: f[0].offsetWidth
|
|
3774
3779
|
},
|
|
3775
|
-
score: f.map((
|
|
3780
|
+
score: f.map((O) => Math.abs(parseFloat(O.innerText)) * (b ? 1 : 10))
|
|
3776
3781
|
};
|
|
3777
3782
|
}).filter((le) => le.position) : null
|
|
3778
3783
|
};
|
|
@@ -3784,10 +3789,10 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3784
3789
|
problemType: L.problemType,
|
|
3785
3790
|
_rootProblemType: L._rootProblemType,
|
|
3786
3791
|
_parentProblemType: L._parentProblemType,
|
|
3787
|
-
position: Ae(E, F, n, !1, L.id ===
|
|
3792
|
+
position: Ae(E, F, n, !1, L.id === B[B.length - 1].id && [p.slove].includes(L.problemType)),
|
|
3788
3793
|
...w
|
|
3789
3794
|
};
|
|
3790
|
-
}).concat(
|
|
3795
|
+
}).concat(J).filter((L) => L.position);
|
|
3791
3796
|
});
|
|
3792
3797
|
}).map((r) => r.flat());
|
|
3793
3798
|
}, _s = (e) => {
|
|
@@ -3797,23 +3802,23 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3797
3802
|
_parentProblemType: st[e._parentProblemType]
|
|
3798
3803
|
}, {
|
|
3799
3804
|
// 块位置
|
|
3800
|
-
sectionPosition:
|
|
3805
|
+
sectionPosition: re(s.position, !0),
|
|
3801
3806
|
// 块ID,前端生成,同一道题同一个ID
|
|
3802
3807
|
sectionID: s.id,
|
|
3803
3808
|
// 块内序号ID,按切块自增
|
|
3804
3809
|
secitonSeqID: s.colIndex || 1,
|
|
3805
3810
|
// 需要保存文件,固定值
|
|
3806
|
-
needSavedFile: !!a || [
|
|
3811
|
+
needSavedFile: !!a || [p.mix].includes(e.problemType),
|
|
3807
3812
|
// 题型
|
|
3808
3813
|
cuttingSectionQuestionType: st[s.problemType || e.problemType]
|
|
3809
3814
|
});
|
|
3810
3815
|
let l = {};
|
|
3811
3816
|
switch (e.problemType) {
|
|
3812
|
-
case
|
|
3813
|
-
case
|
|
3814
|
-
case
|
|
3815
|
-
case
|
|
3816
|
-
case
|
|
3817
|
+
case p.choice:
|
|
3818
|
+
case p.choice_english:
|
|
3819
|
+
case p.choice_multiple:
|
|
3820
|
+
case p.cloze:
|
|
3821
|
+
case p.decide:
|
|
3817
3822
|
l = {
|
|
3818
3823
|
choiceQuestionPartialSectionList: [{
|
|
3819
3824
|
...o(e, !0),
|
|
@@ -3824,14 +3829,14 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3824
3829
|
// 单个选项的信息数组
|
|
3825
3830
|
choiceUnitSectionList: e.optList.map((s, a) => ({
|
|
3826
3831
|
...o(s, !0),
|
|
3827
|
-
choicePosition:
|
|
3828
|
-
choiceResult: [
|
|
3832
|
+
choicePosition: re(s.position),
|
|
3833
|
+
choiceResult: [p.decide].includes(e.problemType) ? _o[a] : yt[a]
|
|
3829
3834
|
}))
|
|
3830
3835
|
}]
|
|
3831
3836
|
};
|
|
3832
3837
|
break;
|
|
3833
|
-
case
|
|
3834
|
-
case
|
|
3838
|
+
case p.fill:
|
|
3839
|
+
case p.fill_english:
|
|
3835
3840
|
l = {
|
|
3836
3841
|
subjectiveQuestionSectionList: [{
|
|
3837
3842
|
...o(e, !0),
|
|
@@ -3840,10 +3845,10 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3840
3845
|
// 每个小题的切图块
|
|
3841
3846
|
singleBlankSectionList: (e.children || [e]).map((s) => ({
|
|
3842
3847
|
...o(s, !0),
|
|
3843
|
-
answerPosition:
|
|
3848
|
+
answerPosition: re(s.answerPosition, !0),
|
|
3844
3849
|
correctFrame: s.scorePosition && s.scorePosition.width && s.scorePosition.height ? [{
|
|
3845
|
-
correctSectionPosition:
|
|
3846
|
-
firstBlockPostion:
|
|
3850
|
+
correctSectionPosition: re(s.scorePosition, !0),
|
|
3851
|
+
firstBlockPostion: re(s.scorePosition),
|
|
3847
3852
|
gridScoresList: [s.score].flat(),
|
|
3848
3853
|
lineMeanGetScore: !1,
|
|
3849
3854
|
weight: 1
|
|
@@ -3852,9 +3857,9 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3852
3857
|
}]
|
|
3853
3858
|
};
|
|
3854
3859
|
break;
|
|
3855
|
-
case
|
|
3856
|
-
case
|
|
3857
|
-
case
|
|
3860
|
+
case p.slove:
|
|
3861
|
+
case p.easy_slove:
|
|
3862
|
+
case p.art:
|
|
3858
3863
|
l = {
|
|
3859
3864
|
subjectiveQuestionSectionList: [{
|
|
3860
3865
|
...o(e, !0),
|
|
@@ -3865,8 +3870,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3865
3870
|
...o(e, !0),
|
|
3866
3871
|
answerPosition: null,
|
|
3867
3872
|
correctFrame: (e.scoreList || []).map((s) => ({
|
|
3868
|
-
correctSectionPosition:
|
|
3869
|
-
firstBlockPostion:
|
|
3873
|
+
correctSectionPosition: re(s.position, !0),
|
|
3874
|
+
firstBlockPostion: re({ ...s.position, ...s.itemPosition }),
|
|
3870
3875
|
gridScoresList: [s.score].flat(),
|
|
3871
3876
|
lineMeanGetScore: !0,
|
|
3872
3877
|
weight: 1
|
|
@@ -3875,8 +3880,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3875
3880
|
}]
|
|
3876
3881
|
};
|
|
3877
3882
|
break;
|
|
3878
|
-
case
|
|
3879
|
-
case
|
|
3883
|
+
case p.synthesis:
|
|
3884
|
+
case p.mix:
|
|
3880
3885
|
break;
|
|
3881
3886
|
case ke.one_choice:
|
|
3882
3887
|
case ke.another_choice:
|
|
@@ -3892,7 +3897,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3892
3897
|
// 单个选项的信息数组
|
|
3893
3898
|
choiceUnitSectionList: e.optList.map((s, a) => ({
|
|
3894
3899
|
...o(s),
|
|
3895
|
-
choicePosition:
|
|
3900
|
+
choicePosition: re(s.position),
|
|
3896
3901
|
choiceResult: (e.baseIndex + a).toString()
|
|
3897
3902
|
}))
|
|
3898
3903
|
}]
|
|
@@ -3923,63 +3928,63 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
3923
3928
|
}],
|
|
3924
3929
|
// 按题切块信息
|
|
3925
3930
|
cardCuttingSectionList: t[a].map((c) => {
|
|
3926
|
-
const
|
|
3927
|
-
return o = { ...o, ...
|
|
3931
|
+
const y = _s(c);
|
|
3932
|
+
return o = { ...o, ...y.typeData }, y.data;
|
|
3928
3933
|
}).flat()
|
|
3929
|
-
})), r = (a, c) => ([a.sectionID].flat(2)[0] || "").split(".").filter((
|
|
3930
|
-
let c = [],
|
|
3931
|
-
return a.cardCuttingSectionList.forEach((u, z,
|
|
3934
|
+
})), r = (a, c) => ([a.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < c).join("."), s = l.map((a) => {
|
|
3935
|
+
let c = [], y = [], n = [];
|
|
3936
|
+
return a.cardCuttingSectionList.forEach((u, z, m) => {
|
|
3932
3937
|
const F = r(u, 1);
|
|
3933
|
-
let
|
|
3934
|
-
if (n.find((H) => r(H, 1) === F && H.secitonSeqID === u.secitonSeqID) && !(u.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(u),
|
|
3938
|
+
let B = !1, J = !1;
|
|
3939
|
+
if (n.find((H) => r(H, 1) === F && H.secitonSeqID === u.secitonSeqID) && !(u.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(u), B = z < m.length - 1, J = !0), B)
|
|
3935
3940
|
return;
|
|
3936
3941
|
let L = !1;
|
|
3937
|
-
if ((u.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (
|
|
3942
|
+
if ((u.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(u), L = !0), n.length) {
|
|
3938
3943
|
if (n.length === 1)
|
|
3939
3944
|
c.push(n[0]);
|
|
3940
3945
|
else {
|
|
3941
|
-
const H = n.map((
|
|
3946
|
+
const H = n.map((N) => N.subjectiveQuestionSectionList || []).flat(), w = n.map((N) => N.choiceQuestionPartialSectionList || []).flat(), E = w.length ? { choiceQuestionPartialSectionList: w } : {}, U = H.length ? { subjectiveQuestionSectionList: H } : {};
|
|
3942
3947
|
c.push({
|
|
3943
3948
|
...n[0],
|
|
3944
3949
|
// cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
|
|
3945
3950
|
...E,
|
|
3946
|
-
...
|
|
3951
|
+
...U
|
|
3947
3952
|
});
|
|
3948
3953
|
}
|
|
3949
3954
|
n = [];
|
|
3950
3955
|
}
|
|
3951
|
-
L ||
|
|
3952
|
-
}), c = [...c, ...n].map((u) => ({ ...u, cuttingSectionQuestionType: o[u.sectionID]._rootProblemType || u.cuttingSectionQuestionType, sectionID: r(u, 1) })), { ...a, cardCuttingSectionList: [...c, ...
|
|
3956
|
+
L || J || n.push(u);
|
|
3957
|
+
}), c = [...c, ...n].map((u) => ({ ...u, cuttingSectionQuestionType: o[u.sectionID]._rootProblemType || u.cuttingSectionQuestionType, sectionID: r(u, 1) })), { ...a, cardCuttingSectionList: [...c, ...y] };
|
|
3953
3958
|
}).map((a) => {
|
|
3954
|
-
const c = a.cardCuttingSectionList.map((
|
|
3959
|
+
const c = a.cardCuttingSectionList.map((y) => {
|
|
3955
3960
|
var F;
|
|
3956
3961
|
let n = [], u = [];
|
|
3957
|
-
const z = Math.max(...(
|
|
3958
|
-
(F =
|
|
3959
|
-
const H = r(
|
|
3962
|
+
const z = Math.max(...(y.subjectiveQuestionSectionList || []).map((B) => B.sectionID.split(".").length - 1), 1);
|
|
3963
|
+
(F = y.subjectiveQuestionSectionList) == null || F.forEach((B, J, L) => {
|
|
3964
|
+
const H = r(B, z);
|
|
3960
3965
|
let w = !1, E = !1;
|
|
3961
|
-
if (u.find((
|
|
3966
|
+
if (u.find((U) => r(U, z) === H && U.secitonSeqID === B.secitonSeqID) && (u.push(B), w = J < L.length - 1, E = !0), !w) {
|
|
3962
3967
|
if (u.length) {
|
|
3963
3968
|
if (u.length === 1)
|
|
3964
3969
|
n.push(u[0]);
|
|
3965
3970
|
else {
|
|
3966
|
-
const
|
|
3971
|
+
const U = u.map((W) => W.singleBlankSectionList || []).flat(), N = U.length ? { singleBlankSectionList: U, unitCount: U.length } : {};
|
|
3967
3972
|
n.push({
|
|
3968
3973
|
...u[0],
|
|
3969
3974
|
// cuttingSectionQuestionType: typeResult[subjectTmp[0].sectionID]._parentProblemType || subjectTmp[0].cuttingSectionQuestionType,
|
|
3970
|
-
...
|
|
3975
|
+
...N
|
|
3971
3976
|
});
|
|
3972
3977
|
}
|
|
3973
3978
|
u = [];
|
|
3974
3979
|
}
|
|
3975
|
-
E || u.push(
|
|
3980
|
+
E || u.push(B);
|
|
3976
3981
|
}
|
|
3977
3982
|
});
|
|
3978
|
-
const
|
|
3979
|
-
return n = [...n, ...u].map((
|
|
3980
|
-
...
|
|
3983
|
+
const m = Math.max(...[...n, ...u].map((B) => B.sectionID.split(".").length));
|
|
3984
|
+
return n = [...n, ...u].map((B) => ({ ...B, cuttingSectionQuestionType: o[B.sectionID]._parentProblemType || B.cuttingSectionQuestionType, sectionID: r(B, Math.max(m - 1, 1)) })), n.length ? {
|
|
3985
|
+
...y,
|
|
3981
3986
|
subjectiveQuestionSectionList: n
|
|
3982
|
-
} :
|
|
3987
|
+
} : y;
|
|
3983
3988
|
});
|
|
3984
3989
|
return { ...a, cardCuttingSectionList: c };
|
|
3985
3990
|
});
|
|
@@ -4003,8 +4008,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4003
4008
|
// 试卷二维码
|
|
4004
4009
|
cardSerialNumber: {
|
|
4005
4010
|
// 条形码虚线框位置, x, y, width, height
|
|
4006
|
-
encodePictureArea:
|
|
4007
|
-
qrCodePosition:
|
|
4011
|
+
encodePictureArea: re(me(R(he(T.art_code, e.pageDom[0])), o), !0),
|
|
4012
|
+
qrCodePosition: re(me(R(he(T.art_code, e.pageDom[0])), o)),
|
|
4008
4013
|
// 条形码或二维码,不确定,固定此值
|
|
4009
4014
|
pictureType: "TYPE_QRCODE"
|
|
4010
4015
|
},
|
|
@@ -4035,7 +4040,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4035
4040
|
layerType: rs(e),
|
|
4036
4041
|
// 定位点信息
|
|
4037
4042
|
...cs(e),
|
|
4038
|
-
pottedLineXPos: e.bindWidth ? (l =
|
|
4043
|
+
pottedLineXPos: e.bindWidth ? (l = re(me(R(he(T.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4039
4044
|
// 页码点信息
|
|
4040
4045
|
pageSideAnchorsList: ds(e),
|
|
4041
4046
|
// 缺考标记
|
|
@@ -4046,13 +4051,13 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4046
4051
|
}, bs = (e) => {
|
|
4047
4052
|
const { config: t, data: o } = e, l = ps(t), r = ys(t, o);
|
|
4048
4053
|
l && r[0].unshift(l);
|
|
4049
|
-
const s = ms(t, r), a = fs(t, r), c = gs(t, a),
|
|
4054
|
+
const s = ms(t, r), a = fs(t, r), c = gs(t, a), y = Rt(t, T.en_num_view) || {};
|
|
4050
4055
|
return {
|
|
4051
4056
|
engineData: c,
|
|
4052
4057
|
pageTotal: t.pageTotal,
|
|
4053
4058
|
format: k[t.layout.paper],
|
|
4054
4059
|
localData: s,
|
|
4055
|
-
extendInfo: { shortCoordinate:
|
|
4060
|
+
extendInfo: { shortCoordinate: y }
|
|
4056
4061
|
};
|
|
4057
4062
|
}, vs = { class: "layt-moni_view" }, ws = { class: "layt-moni_content" }, ks = { class: "layt-moni_icon" }, xs = { class: "layt-moni_msg" }, Cs = {
|
|
4058
4063
|
key: 0,
|
|
@@ -4072,41 +4077,41 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4072
4077
|
l.value = [], setTimeout(() => {
|
|
4073
4078
|
var n;
|
|
4074
4079
|
o.ColList.forEach((u, z) => {
|
|
4075
|
-
u.data.map((
|
|
4080
|
+
u.data.map((m) => m.children).flat().filter((m) => [p.slove, p.art].includes(m.problemType) && !m.chunk).forEach((m) => {
|
|
4076
4081
|
var L;
|
|
4077
|
-
const F = (L = o.ColDom[z].querySelector(`*[data-tag="${
|
|
4082
|
+
const F = (L = o.ColDom[z].querySelector(`*[data-tag="${m.__tag__}"]`)) == null ? void 0 : L.querySelector(`*[data-xine="${T.score}"]`);
|
|
4078
4083
|
if (!F)
|
|
4079
4084
|
return;
|
|
4080
4085
|
F.classList.remove("err_lack");
|
|
4081
|
-
const
|
|
4082
|
-
F.offsetWidth - parseFloat(
|
|
4086
|
+
const B = window.getComputedStyle(F), J = [...Array.from(F.children)].map((H) => H.offsetWidth).reduce((H, w) => H + w, 0);
|
|
4087
|
+
F.offsetWidth - parseFloat(B.borderLeft) - parseFloat(B.borderRight) < J && (l.value.push({ msg: `${m.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
|
|
4083
4088
|
});
|
|
4084
4089
|
});
|
|
4085
4090
|
const a = (n = document.querySelector(".__layout__")) == null ? void 0 : n.getBoundingClientRect();
|
|
4086
4091
|
if (!a)
|
|
4087
4092
|
return;
|
|
4088
|
-
let c = [],
|
|
4093
|
+
let c = [], y = [];
|
|
4089
4094
|
o.ImgData.forEach((u) => {
|
|
4090
4095
|
(u.left + u.width > a.width || u.top + u.height > a.height) && c.push(u);
|
|
4091
4096
|
}), o.TxtData.forEach((u) => {
|
|
4092
|
-
(u.left + u.width > a.width || u.top + u.height > a.height) &&
|
|
4093
|
-
}), c.length && l.value.push({ type: "absImg", value: c, msg: `${c.length}张插入图片溢出`, fn: r }),
|
|
4097
|
+
(u.left + u.width > a.width || u.top + u.height > a.height) && y.push(u);
|
|
4098
|
+
}), c.length && l.value.push({ type: "absImg", value: c, msg: `${c.length}张插入图片溢出`, fn: r }), y.length && l.value.push({ type: "absTxt", value: y, msg: `${y.length}条插入文本溢出`, fn: s }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
|
|
4094
4099
|
}, 500);
|
|
4095
4100
|
});
|
|
4096
4101
|
const r = () => {
|
|
4097
4102
|
var c;
|
|
4098
|
-
(((c = l.value.find((
|
|
4103
|
+
(((c = l.value.find((y) => y.type === "absImg")) == null ? void 0 : c.value) || []).forEach((y) => t("delAbsImgItem", y));
|
|
4099
4104
|
}, s = () => {
|
|
4100
4105
|
var c;
|
|
4101
|
-
(((c = l.value.find((
|
|
4106
|
+
(((c = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : c.value) || []).forEach((y) => t("delAbsTxtItem", y));
|
|
4102
4107
|
};
|
|
4103
4108
|
return (a, c) => (i(), h("div", vs, [
|
|
4104
4109
|
v("div", ws, [
|
|
4105
4110
|
v("div", {
|
|
4106
|
-
class:
|
|
4111
|
+
class: Z(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4107
4112
|
}, null, 2),
|
|
4108
4113
|
v("div", {
|
|
4109
|
-
class:
|
|
4114
|
+
class: Z(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4110
4115
|
}, [
|
|
4111
4116
|
v("span", ks, [
|
|
4112
4117
|
te(ve, {
|
|
@@ -4114,19 +4119,19 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
|
|
|
4114
4119
|
name: l.value.length ? "wrong" : "right"
|
|
4115
4120
|
}, null, 8, ["name"])
|
|
4116
4121
|
]),
|
|
4117
|
-
v("span", xs, "排版" +
|
|
4122
|
+
v("span", xs, "排版" + X(l.value.length ? "异常" : "良好"), 1)
|
|
4118
4123
|
], 2),
|
|
4119
4124
|
l.value.length ? (i(), h("ul", Cs, [
|
|
4120
|
-
(i(!0), h(
|
|
4125
|
+
(i(!0), h(D, null, oe(l.value, (y, n) => (i(), h("li", {
|
|
4121
4126
|
key: n,
|
|
4122
4127
|
class: "layt-moni_err_item"
|
|
4123
4128
|
}, [
|
|
4124
|
-
v("span", Ss,
|
|
4125
|
-
|
|
4129
|
+
v("span", Ss, X(y.msg), 1),
|
|
4130
|
+
y.fn ? (i(), h("span", {
|
|
4126
4131
|
key: 0,
|
|
4127
4132
|
class: "layt-moni_err_item_fn",
|
|
4128
|
-
onClick:
|
|
4129
|
-
},
|
|
4133
|
+
onClick: y.fn
|
|
4134
|
+
}, X(y.btnTxt || "删除"), 9, $s)) : P("", !0)
|
|
4130
4135
|
]))), 128))
|
|
4131
4136
|
])) : P("", !0)
|
|
4132
4137
|
])
|
|
@@ -4145,9 +4150,9 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4145
4150
|
e.dataset.block === $t ? r = e.parentElement : e.dataset.block === ll && !e.dataset.used ? e.offsetHeight < o - 20 ? r = e.parentElement : e.dataset.used = "1" : e.dataset.block === Se && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : r = e : (e.dataset.block === nl && l || sl.includes(e.tagName.toLowerCase())) && (r = e);
|
|
4146
4151
|
return r;
|
|
4147
4152
|
}, It = (e, t, o) => {
|
|
4148
|
-
const l = e.textContent || "", r = l.split("").map((
|
|
4153
|
+
const l = e.textContent || "", r = l.split("").map((y) => `<span>${y}</span>`).join("");
|
|
4149
4154
|
e.innerHTML = r;
|
|
4150
|
-
const s = [...Array.from(e.children)].findIndex((
|
|
4155
|
+
const s = [...Array.from(e.children)].findIndex((y) => _e(y).top - t + y.offsetHeight > o);
|
|
4151
4156
|
if (s < 1)
|
|
4152
4157
|
return e.innerHTML = l, e;
|
|
4153
4158
|
const a = document.createElement("span");
|
|
@@ -4160,37 +4165,37 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4160
4165
|
return s || (s = tt(e), _e(s).top + s.offsetHeight - t > o && (s = ht(s, t, o))), s;
|
|
4161
4166
|
}, Lt = (e, t, o, l) => {
|
|
4162
4167
|
const r = (a, c = o) => {
|
|
4163
|
-
var
|
|
4164
|
-
const
|
|
4168
|
+
var J, L, H;
|
|
4169
|
+
const y = a.map((w) => {
|
|
4165
4170
|
const E = _e(w);
|
|
4166
4171
|
return {
|
|
4167
4172
|
el: w,
|
|
4168
4173
|
top: E.top - t,
|
|
4169
4174
|
left: E.left
|
|
4170
4175
|
};
|
|
4171
|
-
}), n =
|
|
4176
|
+
}), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, E) => w.top - E.top), u = (J = n.shift()) == null ? void 0 : J.el;
|
|
4172
4177
|
if (!u) {
|
|
4173
4178
|
const w = document.createElement("div");
|
|
4174
4179
|
return (L = a[0].parentElement) == null || L.appendChild(w), w.style.height = c - (_e(w).top - t) + "px", w;
|
|
4175
4180
|
}
|
|
4176
|
-
const z = _e(u),
|
|
4177
|
-
if (n.filter((w) => w.top <
|
|
4178
|
-
const w = (H =
|
|
4181
|
+
const z = _e(u), m = z.top - t, F = z.left;
|
|
4182
|
+
if (n.filter((w) => w.top < m + u.offsetHeight && w.top + w.el.offsetHeight - 1 > m && (w.left + w.el.offsetWidth - 1 < F || w.left + 1 > F + u.offsetWidth)).length) {
|
|
4183
|
+
const w = (H = y.filter((E) => E.top < m).pop()) == null ? void 0 : H.el;
|
|
4179
4184
|
if (w != null && w.children.length) {
|
|
4180
4185
|
const E = ut(w);
|
|
4181
|
-
return r(E,
|
|
4186
|
+
return r(E, m) || w;
|
|
4182
4187
|
} else
|
|
4183
|
-
return w ? _e(w).top - t + w.offsetHeight >
|
|
4188
|
+
return w ? _e(w).top - t + w.offsetHeight > m ? It(w, t, m) : w : ht(u.parentElement, t, m);
|
|
4184
4189
|
} else {
|
|
4185
4190
|
const w = getComputedStyle(u);
|
|
4186
|
-
if (
|
|
4187
|
-
return ht(u, t,
|
|
4188
|
-
const E = Fs(u, c -
|
|
4191
|
+
if (m + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
|
|
4192
|
+
return ht(u, t, m);
|
|
4193
|
+
const E = Fs(u, c - m, c, l);
|
|
4189
4194
|
if (E)
|
|
4190
4195
|
return tt(E);
|
|
4191
4196
|
if (u.children.length) {
|
|
4192
|
-
const
|
|
4193
|
-
return r(
|
|
4197
|
+
const U = ut(u);
|
|
4198
|
+
return r(U, c);
|
|
4194
4199
|
} else
|
|
4195
4200
|
return It(u, t, c);
|
|
4196
4201
|
}
|
|
@@ -4204,121 +4209,121 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4204
4209
|
}
|
|
4205
4210
|
console.time("layout");
|
|
4206
4211
|
const c = _e(t).top;
|
|
4207
|
-
let
|
|
4212
|
+
let y = {}, n = 0, u = 0;
|
|
4208
4213
|
const z = (w) => {
|
|
4209
|
-
const E = w % (l + r),
|
|
4210
|
-
|
|
4214
|
+
const E = w % (l + r), U = Math.floor(w / (l + r)) * 2 + (E >= l ? 1 : 0), N = s(w, U);
|
|
4215
|
+
y = {
|
|
4211
4216
|
top: c,
|
|
4212
|
-
width: parseFloat(
|
|
4213
|
-
height: parseFloat(
|
|
4217
|
+
width: parseFloat(N.width),
|
|
4218
|
+
height: parseFloat(N.height)
|
|
4214
4219
|
};
|
|
4215
4220
|
};
|
|
4216
|
-
let
|
|
4217
|
-
const
|
|
4218
|
-
z(
|
|
4221
|
+
let m = [], F = 0;
|
|
4222
|
+
const B = () => {
|
|
4223
|
+
z(m.length), t.style.width = `${y.width}px`, m.push({
|
|
4219
4224
|
top: 0,
|
|
4220
4225
|
data: [],
|
|
4221
|
-
width:
|
|
4222
|
-
height:
|
|
4223
|
-
}), a([...
|
|
4226
|
+
width: y.width,
|
|
4227
|
+
height: y.height
|
|
4228
|
+
}), a([...m]);
|
|
4224
4229
|
};
|
|
4225
|
-
|
|
4226
|
-
const
|
|
4230
|
+
B();
|
|
4231
|
+
const J = (w) => {
|
|
4227
4232
|
const E = getComputedStyle(w);
|
|
4228
|
-
return _e(w).top -
|
|
4233
|
+
return _e(w).top - y.top + parseFloat(E.borderTop) + parseFloat(E.paddingTop) + parseFloat(E.lineHeight) > m[m.length - 1].height;
|
|
4229
4234
|
}, L = (w) => {
|
|
4230
4235
|
const E = getComputedStyle(w);
|
|
4231
|
-
return _e(w).top + w.offsetHeight -
|
|
4236
|
+
return _e(w).top + w.offsetHeight - y.top - (w.dataset.block === Se ? 0 : parseFloat(E.paddingBottom) - parseFloat(E.borderBottom)) <= m[m.length - 1].height;
|
|
4232
4237
|
}, H = (w = JSON.parse(JSON.stringify(o[F] || {}))) => {
|
|
4233
4238
|
if (F >= o.length || !Object.keys(w).length) {
|
|
4234
|
-
a([...
|
|
4239
|
+
a([...m], !0), console.timeEnd("layout"), m = [], n = 0;
|
|
4235
4240
|
return;
|
|
4236
4241
|
}
|
|
4237
|
-
|
|
4238
|
-
const E = it(w.__tag__, t),
|
|
4239
|
-
let
|
|
4242
|
+
m[m.length - 1].data.push({ ...w }), a([...m]), window.requestAnimationFrame(() => {
|
|
4243
|
+
const E = it(w.__tag__, t), U = !w.isHidden && _e(E);
|
|
4244
|
+
let N = null;
|
|
4240
4245
|
if (u) {
|
|
4241
4246
|
const W = E.querySelector(`*[data-hutkey="${u}"]`), le = _e(W);
|
|
4242
|
-
|
|
4247
|
+
m[m.length - 1].top = y.top - le.top, m[m.length - 1].height = y.height - m[m.length - 1].top, u = 0;
|
|
4243
4248
|
}
|
|
4244
|
-
if (
|
|
4249
|
+
if (U && U.height + U.top - y.top > m[m.length - 1].height)
|
|
4245
4250
|
if (w.problemType)
|
|
4246
|
-
|
|
4251
|
+
m[m.length - 1].data.pop(), B(), H({ ...w });
|
|
4247
4252
|
else if (L(E))
|
|
4248
|
-
|
|
4249
|
-
else if (
|
|
4250
|
-
|
|
4253
|
+
B(), F++, H();
|
|
4254
|
+
else if (J(E))
|
|
4255
|
+
m[m.length - 1].data.pop(), B(), H({ ...w });
|
|
4251
4256
|
else {
|
|
4252
|
-
|
|
4257
|
+
N = Lt(E, y.top, m[m.length - 1].height, m.length % (l + r) >= l);
|
|
4253
4258
|
const W = E.querySelector(`*[data-content="${w.id}"]`);
|
|
4254
|
-
|
|
4259
|
+
m[m.length - 1].height = _e(N.cut).top - y.top, B(), W != null && W.contains(N.cut) ? (u = Date.now(), N.cut.dataset.hutkey = u, H({ ...w, content: W.innerHTML })) : (m[m.length - 1].data.pop(), H({ ...w }));
|
|
4255
4260
|
}
|
|
4256
4261
|
else {
|
|
4257
4262
|
let W = [], le = [], b = !1;
|
|
4258
|
-
if (w.children.some((f,
|
|
4259
|
-
var
|
|
4260
|
-
const
|
|
4263
|
+
if (w.children.some((f, O) => {
|
|
4264
|
+
var Y, ge;
|
|
4265
|
+
const q = it(f.__tag__, t), fe = _e(q);
|
|
4261
4266
|
if (n) {
|
|
4262
|
-
const
|
|
4263
|
-
|
|
4267
|
+
const de = q.querySelector(`*[data-cutkey="${n}"]`), x = _e(de);
|
|
4268
|
+
m[m.length - 1].top = y.top - x.top, m[m.length - 1].height = y.height - m[m.length - 1].top, n = 0;
|
|
4264
4269
|
}
|
|
4265
|
-
if (fe.height + fe.top -
|
|
4266
|
-
if ((
|
|
4267
|
-
parseInt((ge =
|
|
4270
|
+
if (fe.height + fe.top - y.top > m[m.length - 1].height) {
|
|
4271
|
+
if ((Y = q.parentElement) != null && Y.dataset.polymer)
|
|
4272
|
+
parseInt((ge = q.parentElement) == null ? void 0 : ge.dataset.polymer) ? (W = W.filter((de) => {
|
|
4268
4273
|
var x;
|
|
4269
|
-
return it(
|
|
4270
|
-
}), le = w.children.slice(W.length)) : (
|
|
4271
|
-
else if (L(
|
|
4272
|
-
W.push(f), le =
|
|
4273
|
-
else if (
|
|
4274
|
-
le = w.children.slice(
|
|
4274
|
+
return it(de.__tag__, t).dataset.polymer !== ((x = q.parentElement) == null ? void 0 : x.dataset.polymer);
|
|
4275
|
+
}), le = w.children.slice(W.length)) : (m[m.length - 1].data.pop(), W = [], b = !0, B(), H({ ...w }));
|
|
4276
|
+
else if (L(q))
|
|
4277
|
+
W.push(f), le = O < w.children.length - 1 ? w.children.slice(O + 1) : [];
|
|
4278
|
+
else if (J(q))
|
|
4279
|
+
le = w.children.slice(O);
|
|
4275
4280
|
else {
|
|
4276
|
-
|
|
4277
|
-
const
|
|
4278
|
-
if (
|
|
4279
|
-
W.push(f), le =
|
|
4280
|
-
else if (
|
|
4281
|
-
n = Date.now(),
|
|
4281
|
+
N = Lt(q, y.top, m[m.length - 1].height, m.length % (l + r) >= l);
|
|
4282
|
+
const de = q.querySelector(`*[data-content="${f.id}"]`);
|
|
4283
|
+
if (q === N.targetEl)
|
|
4284
|
+
W.push(f), le = O < w.children.length - 1 ? w.children.slice(O + 1) : [];
|
|
4285
|
+
else if (de && de.contains(N.cut))
|
|
4286
|
+
n = Date.now(), N.cut.dataset.cutkey = n, f.content = de.innerHTML, W.push(f), le = [{ ...f, content: de.innerHTML }, ...O < w.children.length - 1 ? w.children.slice(O + 1) : []], m[m.length - 1].height = _e(N.cut).top - y.top;
|
|
4282
4287
|
else {
|
|
4283
4288
|
if (!le.length) {
|
|
4284
4289
|
let x = { ...f };
|
|
4285
4290
|
switch (f.problemType) {
|
|
4286
4291
|
case Re.slove:
|
|
4287
|
-
const
|
|
4288
|
-
|
|
4292
|
+
const C = q.querySelector(`*[data-area="${f.id}"]`);
|
|
4293
|
+
C != null && C.contains(N.cut) && (n = Date.now(), N.cut.dataset.cutkey = n, f.answerArea = C.innerHTML), q.contains(N.targetEl) && (f.chunk += 1);
|
|
4289
4294
|
break;
|
|
4290
4295
|
case Re.art:
|
|
4291
4296
|
if (f.artEditor) {
|
|
4292
|
-
const $ =
|
|
4293
|
-
$ != null && $.contains(
|
|
4297
|
+
const $ = q.querySelector(`*[data-area="${f.id}"]`);
|
|
4298
|
+
$ != null && $.contains(N.cut) && (n = Date.now(), N.cut.dataset.cutkey = n, f.answerArea = $.innerHTML), q.contains(N.targetEl) && (f.chunk += 1);
|
|
4294
4299
|
break;
|
|
4295
4300
|
} else {
|
|
4296
|
-
const $ =
|
|
4297
|
-
if ($ != null && $.contains(
|
|
4298
|
-
n = Date.now(),
|
|
4301
|
+
const $ = q.querySelector(`*[data-bart="${f.id}"]`), ee = N.targetEl.dataset.block === Se && N.targetEl.dataset.size ? N.targetEl : null, ue = q.querySelector(`*[data-aart="${f.id}"]`);
|
|
4302
|
+
if ($ != null && $.contains(N.cut))
|
|
4303
|
+
n = Date.now(), N.cut.dataset.cutkey = n, f.beforeArt = $ == null ? void 0 : $.innerHTML, x.beforeGuide = "", x.afterArt = "", x.endAnswerLen = -1;
|
|
4299
4304
|
else if (ee) {
|
|
4300
4305
|
const G = parseInt(ee.dataset.size);
|
|
4301
4306
|
if (!f.artBlock)
|
|
4302
4307
|
if (f.beforeGuide && f.beforeGuide.length + (f.startAnswerLen ? 0 : 2) - f.startAnswerLen > G) {
|
|
4303
|
-
const
|
|
4304
|
-
if (Ce.height + Ce.top -
|
|
4305
|
-
|
|
4306
|
-
const
|
|
4307
|
-
x.beforeGuide = f.beforeGuide.substring(0,
|
|
4308
|
+
const se = q.querySelector(`*[data-guide="${f.id}"]`), Ce = _e(se);
|
|
4309
|
+
if (Ce.height + Ce.top - y.top > y.height) {
|
|
4310
|
+
se.innerHTML = f.beforeGuide.split("").map((_) => `<span>${_}</span>`).join("");
|
|
4311
|
+
const ce = _e(ee).top + ee.offsetHeight, ne = [...Array.from(se.children)].findIndex((_) => _e(_).top > ce);
|
|
4312
|
+
x.beforeGuide = f.beforeGuide.substring(0, ne), f.beforeGuide = f.beforeGuide.substring(ne);
|
|
4308
4313
|
} else
|
|
4309
4314
|
f.beforeGuide = "";
|
|
4310
4315
|
} else
|
|
4311
4316
|
f.beforeGuide = "";
|
|
4312
4317
|
x.endAnswerLen = G, f.startAnswerLen = G;
|
|
4313
4318
|
} else
|
|
4314
|
-
ue != null && ue.contains(
|
|
4315
|
-
|
|
4319
|
+
ue != null && ue.contains(N.cut) ? (n = Date.now(), N.cut.dataset.cutkey = n, f.beforeArt = "", f.beforeGuide = "", f.startAnswerLen = 1, f.endAnswerLen = -1, f.afterArt = ue.innerHTML) : N.targetEl === $ ? (x.endAnswerLen = -1, x.beforeGuide = "", x.afterArt = "", f.beforeArt = "") : ($ == null ? void 0 : $.previousElementSibling) === N.cut && (x.endAnswerLen = -1, x.beforeArt = "", x.beforeGuide = "", x.afterArt = "");
|
|
4320
|
+
q.contains(N.targetEl) && (f.chunk += 1);
|
|
4316
4321
|
break;
|
|
4317
4322
|
}
|
|
4318
4323
|
}
|
|
4319
|
-
|
|
4324
|
+
q.contains(N.targetEl) && W.push(x), n && (m[m.length - 1].height = _e(N.cut).top - y.top);
|
|
4320
4325
|
}
|
|
4321
|
-
le = [f, ...
|
|
4326
|
+
le = [f, ...O < w.children.length - 1 ? w.children.slice(O + 1) : []];
|
|
4322
4327
|
}
|
|
4323
4328
|
}
|
|
4324
4329
|
return !0;
|
|
@@ -4326,7 +4331,7 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4326
4331
|
W.push(f);
|
|
4327
4332
|
}), b)
|
|
4328
4333
|
return;
|
|
4329
|
-
|
|
4334
|
+
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());
|
|
4330
4335
|
}
|
|
4331
4336
|
});
|
|
4332
4337
|
};
|
|
@@ -4370,31 +4375,31 @@ const Ms = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4370
4375
|
}
|
|
4371
4376
|
}, a = () => {
|
|
4372
4377
|
t("blur");
|
|
4373
|
-
const n =
|
|
4378
|
+
const n = y(r.value.getData());
|
|
4374
4379
|
n !== o.value && t("change", n, o.name);
|
|
4375
4380
|
}, c = () => {
|
|
4376
4381
|
t("focus");
|
|
4377
|
-
},
|
|
4382
|
+
}, y = (n) => {
|
|
4378
4383
|
const u = document.createElement("div");
|
|
4379
|
-
u.innerHTML = n, [...Array.from(u.querySelectorAll("*"))].forEach((
|
|
4380
|
-
const F = window.getComputedStyle(
|
|
4381
|
-
(F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") &&
|
|
4384
|
+
u.innerHTML = n, [...Array.from(u.querySelectorAll("*"))].forEach((m) => {
|
|
4385
|
+
const F = window.getComputedStyle(m);
|
|
4386
|
+
(F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && m.remove();
|
|
4382
4387
|
});
|
|
4383
|
-
const z = (
|
|
4384
|
-
[...Array.from(
|
|
4385
|
-
var
|
|
4388
|
+
const z = (m = u) => {
|
|
4389
|
+
[...Array.from(m.childNodes)].forEach((F) => {
|
|
4390
|
+
var B;
|
|
4386
4391
|
if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
|
|
4387
4392
|
z(F);
|
|
4388
4393
|
else if (F.nodeType === Node.TEXT_NODE) {
|
|
4389
|
-
const
|
|
4390
|
-
|
|
4394
|
+
const J = document.createElement("span");
|
|
4395
|
+
J.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (J.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (H) => H.length > 5 ? `<span style="word-break: break-all">${H}</span>` : H)), (B = F.parentElement) == null || B.replaceChild(J, F);
|
|
4391
4396
|
}
|
|
4392
4397
|
});
|
|
4393
4398
|
};
|
|
4394
4399
|
return z(), u.innerHTML;
|
|
4395
4400
|
};
|
|
4396
4401
|
return (n, u) => (i(), h("div", Ms, [
|
|
4397
|
-
o.readonly ? (i(),
|
|
4402
|
+
o.readonly ? (i(), V(Be, {
|
|
4398
4403
|
key: 1,
|
|
4399
4404
|
data: o.value,
|
|
4400
4405
|
class: "raw_view"
|
|
@@ -4427,8 +4432,8 @@ let rt = null;
|
|
|
4427
4432
|
const Os = {
|
|
4428
4433
|
mounted: (e, t) => {
|
|
4429
4434
|
let o = {}, l = !1, r = !1, s = e.offsetParent, a = {}, c = {};
|
|
4430
|
-
const
|
|
4431
|
-
|
|
4435
|
+
const y = e.querySelector(".move-target") || e;
|
|
4436
|
+
y.style.cursor = "move", y.addEventListener("mousedown", (n) => {
|
|
4432
4437
|
l = !0, r = !!e.dataset.safe, s = e.offsetParent;
|
|
4433
4438
|
const u = window.getComputedStyle(e);
|
|
4434
4439
|
o = { x: n.clientX, y: n.clientY }, a = { x: parseInt(u.left), y: parseInt(u.top) };
|
|
@@ -4464,77 +4469,77 @@ const Os = {
|
|
|
4464
4469
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4465
4470
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4466
4471
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4467
|
-
], a = Q({}), c = Q(),
|
|
4472
|
+
], a = Q({}), c = Q(), y = Q(0), n = Q(0), u = Q(), z = Q(), m = Q({}), F = Q(!1), B = Q(), J = Q(), L = Q(), H = A(() => o.imgData.map((x) => ({
|
|
4468
4473
|
...x,
|
|
4469
4474
|
top: x.top - Math.floor(x.top / (k[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4470
|
-
}))), w =
|
|
4475
|
+
}))), w = A(() => o.txtData.map((x) => ({
|
|
4471
4476
|
...x,
|
|
4472
4477
|
top: x.top - Math.floor(x.top / (k[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4473
|
-
}))), E =
|
|
4478
|
+
}))), E = A(() => B.value ? B.value.split("-")[0] === "img" ? H.value.find((C) => C.key === B.value) : w.value.find((C) => C.key === B.value) : null), U = A(() => E.value ? { [E.value.key]: { ...c.value } } : {});
|
|
4474
4479
|
qe(() => {
|
|
4475
4480
|
u.value = document.body.querySelector(".__layout__");
|
|
4476
4481
|
});
|
|
4477
|
-
const
|
|
4482
|
+
const N = (x) => {
|
|
4478
4483
|
c.value = { ...E.value, left: Math.max(x.x, 0), top: Math.max(x.y, 0) }, clearTimeout(z.value), z.value = setTimeout(() => {
|
|
4479
|
-
var
|
|
4480
|
-
((
|
|
4484
|
+
var C;
|
|
4485
|
+
((C = E.value) == null ? void 0 : C.key.split("-")[0]) === "img" ? t("changeAbsImgItem", c.value) : t("changeAbsTxtItem", c.value), c.value = null;
|
|
4481
4486
|
}, 400);
|
|
4482
4487
|
}, W = (x) => {
|
|
4483
4488
|
F.value = x;
|
|
4484
4489
|
}, le = () => {
|
|
4485
|
-
const x = E.value,
|
|
4486
|
-
|
|
4490
|
+
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", f), u.value.addEventListener("mouseup", f);
|
|
4487
4492
|
}, b = (x) => {
|
|
4488
4493
|
x.stopPropagation(), x.preventDefault();
|
|
4489
|
-
const
|
|
4494
|
+
const C = x.clientX - m.value.x, $ = m.value.y - x.clientY, ee = Math.atan2($, C) / (Math.PI / 180);
|
|
4490
4495
|
c.value = { ...E.value, rotate: -parseInt(ee.toString()) };
|
|
4491
4496
|
}, f = (x) => {
|
|
4492
4497
|
x.stopPropagation(), x.preventDefault(), t("changeAbsImgItem", c.value), u.value.removeEventListener("mousemove", b), u.value.removeEventListener("mouseleave", f), u.value.removeEventListener("mouseup", f);
|
|
4493
|
-
},
|
|
4498
|
+
}, O = (x, C) => {
|
|
4494
4499
|
var $;
|
|
4495
|
-
x.stopPropagation(),
|
|
4496
|
-
},
|
|
4497
|
-
const
|
|
4500
|
+
x.stopPropagation(), y.value = C, a.value = { x: x.clientX, y: x.clientY, ...E.value }, (($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? u.value.addEventListener("mousemove", q) : u.value.addEventListener("mousemove", fe), u.value.addEventListener("mouseleave", Y), u.value.addEventListener("mouseup", Y);
|
|
4501
|
+
}, q = (x) => {
|
|
4502
|
+
const C = { x: x.clientX - a.value.x, y: x.clientY - a.value.y }, $ = { ...E.value }, ee = C.x > C.y ? "width" : "height";
|
|
4498
4503
|
[
|
|
4499
4504
|
// 0
|
|
4500
4505
|
() => {
|
|
4501
4506
|
const G = {
|
|
4502
|
-
width: a.value.width -
|
|
4503
|
-
height: a.value.width * (1 -
|
|
4504
|
-
}[ee],
|
|
4505
|
-
width: a.value.height * (1 -
|
|
4506
|
-
height: a.value.height -
|
|
4507
|
+
width: a.value.width - C.x,
|
|
4508
|
+
height: a.value.width * (1 - C.y / a.value.height)
|
|
4509
|
+
}[ee], se = {
|
|
4510
|
+
width: a.value.height * (1 - C.x / a.value.width),
|
|
4511
|
+
height: a.value.height - C.y
|
|
4507
4512
|
}[ee];
|
|
4508
4513
|
c.value = {
|
|
4509
4514
|
...$,
|
|
4510
4515
|
width: G,
|
|
4511
|
-
height:
|
|
4516
|
+
height: se,
|
|
4512
4517
|
left: a.value.left - (G - a.value.width),
|
|
4513
|
-
top: a.value.top - (
|
|
4518
|
+
top: a.value.top - (se - a.value.height)
|
|
4514
4519
|
};
|
|
4515
4520
|
},
|
|
4516
4521
|
// 1
|
|
4517
4522
|
() => {
|
|
4518
|
-
const G = a.value.width * (1 -
|
|
4523
|
+
const G = a.value.width * (1 - C.y / a.value.height), se = a.value.height - C.y;
|
|
4519
4524
|
c.value = {
|
|
4520
4525
|
...$,
|
|
4521
4526
|
width: G,
|
|
4522
|
-
height:
|
|
4527
|
+
height: se,
|
|
4523
4528
|
left: a.value.left - (G - a.value.width) / 2,
|
|
4524
|
-
top: a.value.top - (
|
|
4529
|
+
top: a.value.top - (se - a.value.height)
|
|
4525
4530
|
};
|
|
4526
4531
|
},
|
|
4527
4532
|
// 2
|
|
4528
4533
|
() => {
|
|
4529
4534
|
const G = {
|
|
4530
|
-
width: a.value.height * (1 +
|
|
4531
|
-
height: a.value.height -
|
|
4535
|
+
width: a.value.height * (1 + C.x / a.value.width),
|
|
4536
|
+
height: a.value.height - C.y
|
|
4532
4537
|
}[ee];
|
|
4533
4538
|
c.value = {
|
|
4534
4539
|
...$,
|
|
4535
4540
|
width: {
|
|
4536
|
-
width: a.value.width +
|
|
4537
|
-
height: a.value.width * (1 -
|
|
4541
|
+
width: a.value.width + C.x,
|
|
4542
|
+
height: a.value.width * (1 - C.y / a.value.height)
|
|
4538
4543
|
}[ee],
|
|
4539
4544
|
height: G,
|
|
4540
4545
|
top: a.value.top - (G - a.value.height)
|
|
@@ -4542,159 +4547,159 @@ const Os = {
|
|
|
4542
4547
|
},
|
|
4543
4548
|
// 3
|
|
4544
4549
|
() => {
|
|
4545
|
-
const G = a.value.width -
|
|
4550
|
+
const G = a.value.width - C.x, se = a.value.height * (1 - C.x / a.value.width);
|
|
4546
4551
|
c.value = {
|
|
4547
4552
|
...$,
|
|
4548
4553
|
width: G,
|
|
4549
|
-
height:
|
|
4554
|
+
height: se,
|
|
4550
4555
|
left: a.value.left - (G - a.value.width),
|
|
4551
|
-
top: a.value.top - (
|
|
4556
|
+
top: a.value.top - (se - a.value.height) / 2
|
|
4552
4557
|
};
|
|
4553
4558
|
},
|
|
4554
4559
|
// 4
|
|
4555
4560
|
() => {
|
|
4556
|
-
const G = a.value.width +
|
|
4561
|
+
const G = a.value.width + C.x, se = a.value.height * (1 + C.x / a.value.width);
|
|
4557
4562
|
c.value = {
|
|
4558
4563
|
...$,
|
|
4559
4564
|
width: G,
|
|
4560
|
-
height:
|
|
4561
|
-
top: a.value.top - (
|
|
4565
|
+
height: se,
|
|
4566
|
+
top: a.value.top - (se - a.value.height) / 2
|
|
4562
4567
|
};
|
|
4563
4568
|
},
|
|
4564
4569
|
// 5
|
|
4565
4570
|
() => {
|
|
4566
4571
|
const G = {
|
|
4567
|
-
width: a.value.width -
|
|
4568
|
-
height: a.value.width * (1 +
|
|
4569
|
-
}[ee],
|
|
4570
|
-
width: a.value.height * (1 -
|
|
4571
|
-
height: a.value.height +
|
|
4572
|
+
width: a.value.width - C.x,
|
|
4573
|
+
height: a.value.width * (1 + C.y / a.value.height)
|
|
4574
|
+
}[ee], se = {
|
|
4575
|
+
width: a.value.height * (1 - C.x / a.value.width),
|
|
4576
|
+
height: a.value.height + C.y
|
|
4572
4577
|
}[ee];
|
|
4573
4578
|
c.value = {
|
|
4574
4579
|
...$,
|
|
4575
4580
|
width: G,
|
|
4576
|
-
height:
|
|
4581
|
+
height: se,
|
|
4577
4582
|
left: a.value.left - (G - a.value.width)
|
|
4578
4583
|
};
|
|
4579
4584
|
},
|
|
4580
4585
|
// 6
|
|
4581
4586
|
() => {
|
|
4582
|
-
const G = a.value.width * (1 +
|
|
4587
|
+
const G = a.value.width * (1 + C.y / a.value.height), se = a.value.height + C.y;
|
|
4583
4588
|
c.value = {
|
|
4584
4589
|
...$,
|
|
4585
4590
|
width: G,
|
|
4586
|
-
height:
|
|
4591
|
+
height: se,
|
|
4587
4592
|
left: a.value.left - (G - a.value.width) / 2
|
|
4588
4593
|
};
|
|
4589
4594
|
},
|
|
4590
4595
|
// 7
|
|
4591
4596
|
() => {
|
|
4592
4597
|
const G = {
|
|
4593
|
-
width: a.value.width +
|
|
4594
|
-
height: a.value.width * (1 +
|
|
4595
|
-
}[ee],
|
|
4596
|
-
width: a.value.height * (1 +
|
|
4597
|
-
height: a.value.height +
|
|
4598
|
+
width: a.value.width + C.x,
|
|
4599
|
+
height: a.value.width * (1 + C.y / a.value.height)
|
|
4600
|
+
}[ee], se = {
|
|
4601
|
+
width: a.value.height * (1 + C.x / a.value.width),
|
|
4602
|
+
height: a.value.height + C.y
|
|
4598
4603
|
}[ee];
|
|
4599
4604
|
c.value = {
|
|
4600
4605
|
...$,
|
|
4601
4606
|
width: G,
|
|
4602
|
-
height:
|
|
4607
|
+
height: se
|
|
4603
4608
|
};
|
|
4604
4609
|
}
|
|
4605
|
-
][
|
|
4610
|
+
][y.value]();
|
|
4606
4611
|
}, fe = (x) => {
|
|
4607
|
-
const
|
|
4612
|
+
const C = { x: x.clientX - a.value.x, y: x.clientY - a.value.y }, $ = { ...E.value }, ee = [
|
|
4608
4613
|
{
|
|
4609
4614
|
...$,
|
|
4610
|
-
width: a.value.width -
|
|
4611
|
-
height: a.value.height -
|
|
4612
|
-
left: a.value.left +
|
|
4613
|
-
top: a.value.top +
|
|
4615
|
+
width: a.value.width - C.x,
|
|
4616
|
+
height: a.value.height - C.y,
|
|
4617
|
+
left: a.value.left + C.x,
|
|
4618
|
+
top: a.value.top + C.y
|
|
4614
4619
|
},
|
|
4615
4620
|
{
|
|
4616
4621
|
...$,
|
|
4617
|
-
height: a.value.height -
|
|
4618
|
-
top: a.value.top +
|
|
4622
|
+
height: a.value.height - C.y,
|
|
4623
|
+
top: a.value.top + C.y
|
|
4619
4624
|
},
|
|
4620
4625
|
{
|
|
4621
4626
|
...$,
|
|
4622
|
-
width: a.value.width +
|
|
4623
|
-
height: a.value.height -
|
|
4624
|
-
top: a.value.top +
|
|
4627
|
+
width: a.value.width + C.x,
|
|
4628
|
+
height: a.value.height - C.y,
|
|
4629
|
+
top: a.value.top + C.y
|
|
4625
4630
|
},
|
|
4626
4631
|
{
|
|
4627
4632
|
...$,
|
|
4628
|
-
width: a.value.width -
|
|
4629
|
-
left: a.value.left +
|
|
4633
|
+
width: a.value.width - C.x,
|
|
4634
|
+
left: a.value.left + C.x
|
|
4630
4635
|
},
|
|
4631
4636
|
{
|
|
4632
4637
|
...$,
|
|
4633
|
-
width: a.value.width +
|
|
4638
|
+
width: a.value.width + C.x
|
|
4634
4639
|
},
|
|
4635
4640
|
{
|
|
4636
4641
|
...$,
|
|
4637
|
-
width: a.value.width -
|
|
4638
|
-
height: a.value.height +
|
|
4639
|
-
left: a.value.left +
|
|
4642
|
+
width: a.value.width - C.x,
|
|
4643
|
+
height: a.value.height + C.y,
|
|
4644
|
+
left: a.value.left + C.x
|
|
4640
4645
|
},
|
|
4641
4646
|
{
|
|
4642
4647
|
...$,
|
|
4643
|
-
height: a.value.height +
|
|
4648
|
+
height: a.value.height + C.y
|
|
4644
4649
|
},
|
|
4645
4650
|
{
|
|
4646
4651
|
...$,
|
|
4647
|
-
width: a.value.width +
|
|
4648
|
-
height: a.value.height +
|
|
4652
|
+
width: a.value.width + C.x,
|
|
4653
|
+
height: a.value.height + C.y
|
|
4649
4654
|
}
|
|
4650
4655
|
];
|
|
4651
|
-
c.value = ee[
|
|
4652
|
-
},
|
|
4656
|
+
c.value = ee[y.value];
|
|
4657
|
+
}, Y = () => {
|
|
4653
4658
|
var x;
|
|
4654
|
-
u.value.removeEventListener("mousemove",
|
|
4659
|
+
u.value.removeEventListener("mousemove", q), u.value.removeEventListener("mousemove", fe), u.value.removeEventListener("mouseleave", Y), u.value.removeEventListener("mouseup", Y), ((x = E.value) == null ? void 0 : x.key.split("-")[0]) === "img" ? t("changeAbsImgItem", c.value) : t("changeAbsTxtItem", c.value), c.value = null;
|
|
4655
4660
|
}, ge = (x) => {
|
|
4656
4661
|
if (!x || x === E.value.content) {
|
|
4657
4662
|
n.value++;
|
|
4658
4663
|
return;
|
|
4659
4664
|
}
|
|
4660
4665
|
t("changeAbsTxtItem", { ...E.value, content: x });
|
|
4661
|
-
},
|
|
4666
|
+
}, de = (x, C) => {
|
|
4662
4667
|
var ee;
|
|
4663
4668
|
const $ = document.body.querySelector(`.cke_editor_${gt}`);
|
|
4664
|
-
!x && ((ee = (
|
|
4669
|
+
!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);
|
|
4665
4670
|
};
|
|
4666
|
-
return (x,
|
|
4667
|
-
(i(!0), h(
|
|
4668
|
-
var ee, ue, G,
|
|
4671
|
+
return (x, C) => (i(), h(D, null, [
|
|
4672
|
+
(i(!0), h(D, null, oe(H.value, ($) => {
|
|
4673
|
+
var ee, ue, G, se, Ce, ce, ne;
|
|
4669
4674
|
return xt((i(), h("div", {
|
|
4670
4675
|
key: $.id,
|
|
4671
4676
|
ref_for: !0,
|
|
4672
4677
|
ref_key: "imgViewList",
|
|
4673
|
-
ref:
|
|
4678
|
+
ref: J,
|
|
4674
4679
|
"data-safe": "true",
|
|
4675
|
-
class:
|
|
4676
|
-
style:
|
|
4677
|
-
onMousedown: Me((
|
|
4680
|
+
class: Z(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8" : "z-7"]),
|
|
4681
|
+
style: j({ left: Math.max(((ue = U.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = U.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((se = U.value[$.key]) == null ? void 0 : se.width) || $.width) + "px", height: (((Ce = U.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px", transform: `rotate(${((ce = U.value[$.key]) == null ? void 0 : ce.rotate) || $.rotate}deg)` }),
|
|
4682
|
+
onMousedown: Me((_) => de($), ["stop"]),
|
|
4678
4683
|
"data-block": I(De)
|
|
4679
4684
|
}, [
|
|
4680
4685
|
v("img", {
|
|
4681
4686
|
src: $.url
|
|
4682
4687
|
}, null, 8, Rs),
|
|
4683
|
-
((
|
|
4688
|
+
((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(D, { key: 0 }, [
|
|
4684
4689
|
v("span", Hs, [
|
|
4685
4690
|
te(ve, {
|
|
4686
4691
|
name: "close",
|
|
4687
4692
|
width: 2,
|
|
4688
4693
|
class: "cursor-pointer",
|
|
4689
|
-
onClick: (
|
|
4694
|
+
onClick: (_) => t("delAbsImgItem", $)
|
|
4690
4695
|
}, null, 8, ["onClick"])
|
|
4691
4696
|
]),
|
|
4692
4697
|
v("div", Ws, [
|
|
4693
|
-
(i(), h(
|
|
4694
|
-
key:
|
|
4698
|
+
(i(), h(D, null, oe(8, (_, S) => v("div", {
|
|
4699
|
+
key: _,
|
|
4695
4700
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4696
|
-
style:
|
|
4697
|
-
onMousedown: Me((pe) =>
|
|
4701
|
+
style: j({ ...s[S], transform: "translate(-50%, -50%)" }),
|
|
4702
|
+
onMousedown: Me((pe) => O(pe, S), ["stop"])
|
|
4698
4703
|
}, null, 44, Gs)), 64))
|
|
4699
4704
|
]),
|
|
4700
4705
|
v("span", {
|
|
@@ -4708,12 +4713,12 @@ const Os = {
|
|
|
4708
4713
|
], 40, Qs)
|
|
4709
4714
|
], 64)) : P("", !0)
|
|
4710
4715
|
], 46, zs)), [
|
|
4711
|
-
[I(r),
|
|
4712
|
-
[I(l), (
|
|
4716
|
+
[I(r), N],
|
|
4717
|
+
[I(l), (_) => de(null, _)]
|
|
4713
4718
|
]);
|
|
4714
4719
|
}), 128)),
|
|
4715
|
-
(i(!0), h(
|
|
4716
|
-
var ee, ue, G,
|
|
4720
|
+
(i(!0), h(D, null, oe(w.value, ($) => {
|
|
4721
|
+
var ee, ue, G, se, Ce, ce, ne;
|
|
4717
4722
|
return xt((i(), h("div", {
|
|
4718
4723
|
key: $.id,
|
|
4719
4724
|
ref_for: !0,
|
|
@@ -4721,42 +4726,42 @@ const Os = {
|
|
|
4721
4726
|
ref: L,
|
|
4722
4727
|
disabled: F.value,
|
|
4723
4728
|
"data-safe": "true",
|
|
4724
|
-
class:
|
|
4725
|
-
style:
|
|
4726
|
-
onMousedown: Me((
|
|
4729
|
+
class: Z(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8 bg-white" : "z-7"]),
|
|
4730
|
+
style: j({ left: Math.max(((ue = U.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = U.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((se = U.value[$.key]) == null ? void 0 : se.width) || $.width) + "px", height: (((Ce = U.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px" }),
|
|
4731
|
+
onMousedown: Me((_) => de($), ["stop"]),
|
|
4727
4732
|
"data-block": I(De)
|
|
4728
4733
|
}, [
|
|
4729
|
-
(i(),
|
|
4734
|
+
(i(), V(Bs, {
|
|
4730
4735
|
key: n.value,
|
|
4731
4736
|
class: "border-0 relative z-4",
|
|
4732
|
-
readonly: ((
|
|
4737
|
+
readonly: ((ce = E.value) == null ? void 0 : ce.key) !== $.key,
|
|
4733
4738
|
value: $.content,
|
|
4734
4739
|
name: $.id.toString(),
|
|
4735
4740
|
onChange: ge,
|
|
4736
|
-
onFocus:
|
|
4737
|
-
onBlur:
|
|
4741
|
+
onFocus: C[0] || (C[0] = (_) => W(!0)),
|
|
4742
|
+
onBlur: C[1] || (C[1] = (_) => W(!1))
|
|
4738
4743
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4739
|
-
((
|
|
4744
|
+
((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(D, { key: 0 }, [
|
|
4740
4745
|
v("span", Ys, [
|
|
4741
4746
|
te(ve, {
|
|
4742
4747
|
name: "close",
|
|
4743
4748
|
width: 2,
|
|
4744
4749
|
class: "cursor-pointer",
|
|
4745
|
-
onClick: (
|
|
4750
|
+
onClick: (_) => t("delAbsTxtItem", $)
|
|
4746
4751
|
}, null, 8, ["onClick"])
|
|
4747
4752
|
]),
|
|
4748
4753
|
v("div", Us, [
|
|
4749
|
-
(i(), h(
|
|
4750
|
-
key:
|
|
4754
|
+
(i(), h(D, null, oe(8, (_, S) => v("div", {
|
|
4755
|
+
key: _,
|
|
4751
4756
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4752
|
-
style:
|
|
4753
|
-
onMousedown: (pe) =>
|
|
4757
|
+
style: j({ ...s[S], transform: "translate(-50%, -50%)" }),
|
|
4758
|
+
onMousedown: (pe) => O(pe, S)
|
|
4754
4759
|
}, null, 44, Ks)), 64))
|
|
4755
4760
|
])
|
|
4756
4761
|
], 64)) : P("", !0)
|
|
4757
4762
|
], 46, qs)), [
|
|
4758
|
-
[I(r),
|
|
4759
|
-
[I(l), (
|
|
4763
|
+
[I(r), N],
|
|
4764
|
+
[I(l), (_) => de(null, _)]
|
|
4760
4765
|
]);
|
|
4761
4766
|
}), 128))
|
|
4762
4767
|
], 64));
|
|
@@ -4785,77 +4790,77 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4785
4790
|
setup(e, { emit: t }) {
|
|
4786
4791
|
const o = e;
|
|
4787
4792
|
qt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4788
|
-
const l = Q([]), r = Q([]), s = Q(2), a = Q(0), c = Q(0),
|
|
4789
|
-
...
|
|
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
|
+
..._,
|
|
4790
4795
|
__tag__: St(),
|
|
4791
|
-
rawChildren:
|
|
4792
|
-
children:
|
|
4793
|
-
}))),
|
|
4796
|
+
rawChildren: _.children,
|
|
4797
|
+
children: _.children.map((S) => ({ ...S, ...ge(S), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: St() }))
|
|
4798
|
+
}))), B = A(() => {
|
|
4794
4799
|
if (!F.value.length)
|
|
4795
4800
|
return;
|
|
4796
|
-
const
|
|
4797
|
-
return
|
|
4798
|
-
}),
|
|
4799
|
-
var
|
|
4800
|
-
return o.layout.bindFlag && !!((
|
|
4801
|
-
}), L =
|
|
4801
|
+
const _ = F.value[F.value.length - 1], S = _.rawChildren[_.rawChildren.length - 1];
|
|
4802
|
+
return U.value && [p.slove].includes(S == null ? void 0 : S.problemType) && S.id;
|
|
4803
|
+
}), J = A(() => {
|
|
4804
|
+
var _;
|
|
4805
|
+
return o.layout.bindFlag && !!((_ = He.find((S) => S.code === o.layout.paper)) != null && _.isMultCol);
|
|
4806
|
+
}), L = A(() => o.isFinal ? 0 : 10), H = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || s.value || 1), E = A(() => Math.ceil(w.value / 2) * 2), U = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), N = A(() => U.value ? Ie : { top: 0, right: 0, bottom: 0, left: 0 }), W = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || mt[o.layout.mode][o.layout.paper]), le = A(() => k[o.layout.paper].width - W.value.left - W.value.right), b = A(() => k[o.layout.paper].height - W.value.top - W.value.bottom), f = A(() => (le.value - (c.value ? c.value + ue(0) : 0) + ue(0)) / o.layout.column - ue(0)), O = A(() => ({
|
|
4802
4807
|
width: `${k[o.layout.paper].width}px`,
|
|
4803
4808
|
height: `${(k[o.layout.paper].height + L.value) * E.value - L.value}px`
|
|
4804
|
-
})),
|
|
4809
|
+
})), q = A(() => ({
|
|
4805
4810
|
width: `${k[o.layout.paper].width}px`,
|
|
4806
4811
|
height: `${k[o.layout.paper].height}px`,
|
|
4807
4812
|
padding: `${W.value.top}px ${W.value.right}px ${W.value.bottom}px ${W.value.left}px`,
|
|
4808
4813
|
marginBottom: `${L.value}px`
|
|
4809
|
-
})), fe =
|
|
4810
|
-
var
|
|
4811
|
-
const
|
|
4814
|
+
})), fe = A(() => {
|
|
4815
|
+
var S;
|
|
4816
|
+
const _ = (S = He.find((pe) => pe.code === o.layout.paper)) == null ? void 0 : S.isFullTitle;
|
|
4812
4817
|
return {
|
|
4813
4818
|
left: `${W.value.left + (c.value ? c.value + ue(0) : 0)}px`,
|
|
4814
4819
|
top: `${W.value.top}px`,
|
|
4815
|
-
width:
|
|
4820
|
+
width: _ ? `${le.value}px` : `${f.value}px`
|
|
4816
4821
|
};
|
|
4817
|
-
}),
|
|
4822
|
+
}), Y = A(() => Mt.filter((_) => o.info.bindExtentInfo[_.code]).map((_) => o.info.bindExtentInfo[_.key]));
|
|
4818
4823
|
Ne(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4819
4824
|
setTimeout(() => {
|
|
4820
|
-
|
|
4825
|
+
ce();
|
|
4821
4826
|
}, 100);
|
|
4822
|
-
}, { immediate: !0 }), Ne(() =>
|
|
4823
|
-
c.value =
|
|
4827
|
+
}, { immediate: !0 }), Ne(() => J.value, () => {
|
|
4828
|
+
c.value = J.value ? 100 : 0;
|
|
4824
4829
|
}, { immediate: !0 });
|
|
4825
|
-
const ge = (
|
|
4826
|
-
let
|
|
4827
|
-
if ([
|
|
4830
|
+
const ge = (_) => {
|
|
4831
|
+
let S = { ..._ };
|
|
4832
|
+
if ([p.slove].includes(S.problemType) && U.value) {
|
|
4828
4833
|
const pe = document.createElement("div");
|
|
4829
|
-
pe.innerHTML =
|
|
4830
|
-
const
|
|
4831
|
-
if (
|
|
4832
|
-
const
|
|
4833
|
-
|
|
4834
|
+
pe.innerHTML = S.answerArea;
|
|
4835
|
+
const K = pe.querySelector(At.sub);
|
|
4836
|
+
if (K) {
|
|
4837
|
+
const ie = document.createElement("div");
|
|
4838
|
+
ie.innerHTML = ns(S.sub, S.style[d.public.scoreShowFlag] === g.bracket_none ? void 0 : [S.score].flat(2).reduce(($e, Pe) => $e + Pe, 0), S.style[d.public.scoreShowFlag]), K.replaceWith(ie.children[0]), S.answerArea = pe.innerHTML, S.customSub = !0, pe.remove(), ie.remove();
|
|
4834
4839
|
}
|
|
4835
4840
|
}
|
|
4836
|
-
return
|
|
4837
|
-
},
|
|
4838
|
-
const
|
|
4839
|
-
return
|
|
4840
|
-
}, $ = (
|
|
4841
|
-
|
|
4842
|
-
}, ee = (
|
|
4843
|
-
|
|
4844
|
-
}, ue = (
|
|
4845
|
-
var
|
|
4846
|
-
const pe =
|
|
4841
|
+
return S;
|
|
4842
|
+
}, de = (_) => _ % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, x = (_, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + _, C = (_) => {
|
|
4843
|
+
const S = _ % (o.layout.column + o.layout.backColumn);
|
|
4844
|
+
return S >= o.layout.column ? S - o.layout.column : S;
|
|
4845
|
+
}, $ = (_, S) => {
|
|
4846
|
+
_ ? n.value[S] = _ : n.value.splice(S, 1);
|
|
4847
|
+
}, ee = (_, S) => {
|
|
4848
|
+
_ ? u.value[S] = _ : u.value.splice(S, 1);
|
|
4849
|
+
}, ue = (_) => Pt[o.layout.mode][o.layout.paper][de(_)] || 0, G = (_, S = !1) => (le.value - (c.value ? c.value + ue(_) : 0) + ue(_)) / de(_) - ue(_) - N.value.left - N.value.right + (S ? N.value.left + N.value.right : 0), se = (_, S) => {
|
|
4850
|
+
var K, ie;
|
|
4851
|
+
const pe = _ % (o.layout.column + o.layout.backColumn) ? 0 : ((K = z.value[Math.min(S, 1)]) == null ? void 0 : K.offsetHeight) || 0;
|
|
4847
4852
|
return {
|
|
4848
|
-
left: `${W.value.left + (
|
|
4849
|
-
top: `${pe + W.value.top + (!
|
|
4850
|
-
width: `${G(
|
|
4851
|
-
height: `${b.value - pe - (!
|
|
4852
|
-
contentHeight: `${(
|
|
4853
|
+
left: `${W.value.left + (S % 2 ? 0 : c.value ? c.value + ue(_) : 0) + N.value.left + C(_) * (G(_) + ue(_) + N.value.left + N.value.right)}px`,
|
|
4854
|
+
top: `${pe + W.value.top + (!S && !_ ? 0 : N.value.top)}px`,
|
|
4855
|
+
width: `${G(_)}px`,
|
|
4856
|
+
height: `${b.value - pe - (!S && !_ ? 0 : N.value.top) - N.value.bottom}px`,
|
|
4857
|
+
contentHeight: `${(ie = l.value[_]) == null ? void 0 : ie.height}px`
|
|
4853
4858
|
};
|
|
4854
|
-
}, Ce = (
|
|
4855
|
-
r.value =
|
|
4856
|
-
s.value = Math.ceil(l.value.length / o.layout.column), r.value = [], u.value.forEach((pe,
|
|
4857
|
-
var
|
|
4858
|
-
!pe || !pe.col || ((
|
|
4859
|
+
}, Ce = (_, S = !1) => {
|
|
4860
|
+
r.value = _.map((pe) => ({ ...pe })), S && (l.value = [..._], a.value += 1, ot(() => {
|
|
4861
|
+
s.value = Math.ceil(l.value.length / o.layout.column), r.value = [], u.value.forEach((pe, K) => {
|
|
4862
|
+
var ie, $e;
|
|
4863
|
+
!pe || !pe.col || ((ie = l.value[K]) != null && ie.top ? pe.col.style.marginTop = `${($e = l.value[K]) == null ? void 0 : $e.top}px` : pe.col.style.marginTop = "");
|
|
4859
4864
|
}), o.isFinal && setTimeout(() => {
|
|
4860
4865
|
const pe = bs({
|
|
4861
4866
|
config: {
|
|
@@ -4865,224 +4870,224 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
|
|
|
4865
4870
|
bindWidth: c.value,
|
|
4866
4871
|
pageMargin: L.value,
|
|
4867
4872
|
pageDom: n.value.slice(0, w.value),
|
|
4868
|
-
colDom: u.value.map((
|
|
4869
|
-
colViewDom: u.value.map((
|
|
4873
|
+
colDom: u.value.map((K) => K.col),
|
|
4874
|
+
colViewDom: u.value.map((K) => K.colView)
|
|
4870
4875
|
},
|
|
4871
4876
|
data: l.value
|
|
4872
4877
|
});
|
|
4873
4878
|
t("getFinalData", pe);
|
|
4874
4879
|
}, 500);
|
|
4875
4880
|
}));
|
|
4876
|
-
},
|
|
4881
|
+
}, ce = () => {
|
|
4877
4882
|
Es({
|
|
4878
|
-
el:
|
|
4883
|
+
el: y.value,
|
|
4879
4884
|
data: F.value,
|
|
4880
4885
|
column: o.layout.column,
|
|
4881
4886
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4882
|
-
getColSize:
|
|
4887
|
+
getColSize: se,
|
|
4883
4888
|
change: Ce
|
|
4884
4889
|
});
|
|
4885
|
-
},
|
|
4886
|
-
t("toggleActive",
|
|
4890
|
+
}, ne = (_ = { type: M.page, value: {} }) => {
|
|
4891
|
+
t("toggleActive", _);
|
|
4887
4892
|
};
|
|
4888
|
-
return (
|
|
4893
|
+
return (_, S) => {
|
|
4889
4894
|
var pe;
|
|
4890
|
-
return i(), h(
|
|
4891
|
-
|
|
4895
|
+
return i(), h(D, null, [
|
|
4896
|
+
_.readonly ? P("", !0) : (i(), V(Is, {
|
|
4892
4897
|
key: 0,
|
|
4893
4898
|
ColList: l.value,
|
|
4894
|
-
ColDom: u.value.map((
|
|
4895
|
-
ImgData:
|
|
4896
|
-
TxtData:
|
|
4897
|
-
onDelAbsImgItem:
|
|
4898
|
-
onDelAbsTxtItem:
|
|
4899
|
-
onChangeLayoutStatus:
|
|
4899
|
+
ColDom: u.value.map((K) => K.col),
|
|
4900
|
+
ImgData: _.imgData,
|
|
4901
|
+
TxtData: _.txtData,
|
|
4902
|
+
onDelAbsImgItem: S[0] || (S[0] = (K) => t("delAbsImgItem", K)),
|
|
4903
|
+
onDelAbsTxtItem: S[1] || (S[1] = (K) => t("delAbsTxtItem", K)),
|
|
4904
|
+
onChangeLayoutStatus: S[2] || (S[2] = (K) => t("changeLayoutStatus", K))
|
|
4900
4905
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4901
4906
|
v("div", {
|
|
4902
4907
|
class: "flex-1 overflow-auto relative z-1",
|
|
4903
4908
|
id: "alit-layout",
|
|
4904
|
-
onClick:
|
|
4909
|
+
onClick: S[14] || (S[14] = (K) => ne())
|
|
4905
4910
|
}, [
|
|
4906
4911
|
v("div", {
|
|
4907
4912
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4908
4913
|
ref_key: "rawDom",
|
|
4909
|
-
ref:
|
|
4914
|
+
ref: y
|
|
4910
4915
|
}, [
|
|
4911
|
-
r.value.length ? (i(!0), h(
|
|
4912
|
-
|
|
4916
|
+
r.value.length ? (i(!0), h(D, { key: 0 }, oe((pe = r.value[r.value.length - 1]) == null ? void 0 : pe.data, (K, ie) => (i(), h(D, null, [
|
|
4917
|
+
K.isHidden ? P("", !0) : (i(), V(Tt, {
|
|
4913
4918
|
key: 0,
|
|
4914
|
-
item:
|
|
4915
|
-
showColBorder:
|
|
4916
|
-
isFirst: !
|
|
4917
|
-
layout:
|
|
4919
|
+
item: K,
|
|
4920
|
+
showColBorder: U.value,
|
|
4921
|
+
isFirst: !ie && r.value.length === 1,
|
|
4922
|
+
layout: _.layout
|
|
4918
4923
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4919
|
-
|
|
4924
|
+
U.value ? (i(), h("div", {
|
|
4920
4925
|
key: 1,
|
|
4921
|
-
class:
|
|
4926
|
+
class: Z([!K.children.length && K.problemType && "p-1 min-h-[2rem]"])
|
|
4922
4927
|
}, [
|
|
4923
|
-
(i(),
|
|
4924
|
-
data:
|
|
4928
|
+
(i(), V(Ue, {
|
|
4929
|
+
data: K,
|
|
4925
4930
|
key: r.value.length,
|
|
4926
|
-
layout:
|
|
4927
|
-
target:
|
|
4931
|
+
layout: _.layout,
|
|
4932
|
+
target: _.target,
|
|
4928
4933
|
noPortrait: "",
|
|
4929
4934
|
width: G(r.value.length - 1)
|
|
4930
4935
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4931
|
-
], 2)) : (i(),
|
|
4932
|
-
data:
|
|
4936
|
+
], 2)) : (i(), V(Ue, {
|
|
4937
|
+
data: K,
|
|
4933
4938
|
key: r.value.length,
|
|
4934
|
-
layout:
|
|
4935
|
-
target:
|
|
4939
|
+
layout: _.layout,
|
|
4940
|
+
target: _.target,
|
|
4936
4941
|
width: G(r.value.length - 1)
|
|
4937
4942
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4938
4943
|
], 64))), 256)) : P("", !0)
|
|
4939
4944
|
], 512),
|
|
4940
4945
|
v("div", {
|
|
4941
|
-
class:
|
|
4942
|
-
style:
|
|
4946
|
+
class: Z(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", _.layout.redFlag && "red_mode", _.readonly && "pointer-events-none"]),
|
|
4947
|
+
style: j(O.value)
|
|
4943
4948
|
}, [
|
|
4944
4949
|
te(Vs, {
|
|
4945
|
-
imgData:
|
|
4946
|
-
txtData:
|
|
4947
|
-
layout:
|
|
4950
|
+
imgData: _.imgData,
|
|
4951
|
+
txtData: _.txtData,
|
|
4952
|
+
layout: _.layout,
|
|
4948
4953
|
pageMargin: H.value,
|
|
4949
|
-
onChangeAbsImgItem:
|
|
4950
|
-
onDelAbsImgItem:
|
|
4951
|
-
onChangeAbsTxtItem:
|
|
4952
|
-
onDelAbsTxtItem:
|
|
4954
|
+
onChangeAbsImgItem: S[3] || (S[3] = (K) => t("changeAbsImgItem", K)),
|
|
4955
|
+
onDelAbsImgItem: S[4] || (S[4] = (K) => t("delAbsImgItem", K)),
|
|
4956
|
+
onChangeAbsTxtItem: S[5] || (S[5] = (K) => t("changeAbsTxtItem", K)),
|
|
4957
|
+
onDelAbsTxtItem: S[6] || (S[6] = (K) => t("delAbsTxtItem", K))
|
|
4953
4958
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4954
4959
|
(i(), h("svg", {
|
|
4955
|
-
viewBox: `0 0 ${parseFloat(
|
|
4960
|
+
viewBox: `0 0 ${parseFloat(O.value.width)} ${parseFloat(O.value.height)}`,
|
|
4956
4961
|
version: "1.1",
|
|
4957
4962
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4958
4963
|
key: a.value
|
|
4959
4964
|
}, [
|
|
4960
4965
|
(i(), h("foreignObject", Js, [
|
|
4961
|
-
(i(!0), h(
|
|
4962
|
-
key:
|
|
4966
|
+
(i(!0), h(D, null, oe(E.value, (K, ie) => (i(), h("div", {
|
|
4967
|
+
key: K,
|
|
4963
4968
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4964
4969
|
ref_for: !0,
|
|
4965
|
-
ref: ($e) => $($e,
|
|
4966
|
-
style:
|
|
4970
|
+
ref: ($e) => $($e, ie),
|
|
4971
|
+
style: j(q.value)
|
|
4967
4972
|
}, [
|
|
4968
|
-
|
|
4973
|
+
ie < w.value ? (i(), h(D, { key: 0 }, [
|
|
4969
4974
|
te(Co, {
|
|
4970
|
-
layout:
|
|
4971
|
-
currentPage:
|
|
4975
|
+
layout: _.layout,
|
|
4976
|
+
currentPage: ie,
|
|
4972
4977
|
totalPage: w.value,
|
|
4973
|
-
columnContentWidth: G(
|
|
4974
|
-
columnMargin: ue(
|
|
4978
|
+
columnContentWidth: G(ie % 2 ? _.layout.column : 0, !0),
|
|
4979
|
+
columnMargin: ue(ie % 2 ? _.layout.column : 0),
|
|
4975
4980
|
bindWidth: c.value,
|
|
4976
4981
|
padding: W.value
|
|
4977
4982
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4978
|
-
|
|
4983
|
+
_.layout.sloganFlag ? (i(), V(Io, {
|
|
4979
4984
|
key: 0,
|
|
4980
|
-
info:
|
|
4981
|
-
layout:
|
|
4982
|
-
onChange:
|
|
4985
|
+
info: _.info,
|
|
4986
|
+
layout: _.layout,
|
|
4987
|
+
onChange: S[7] || (S[7] = ($e) => t("changeInfo", $e))
|
|
4983
4988
|
}, null, 8, ["info", "layout"])) : P("", !0),
|
|
4984
4989
|
te(ol, {
|
|
4985
4990
|
ref_for: !0,
|
|
4986
4991
|
ref_key: "bindDom",
|
|
4987
|
-
ref:
|
|
4988
|
-
currentPage:
|
|
4992
|
+
ref: m,
|
|
4993
|
+
currentPage: ie,
|
|
4989
4994
|
width: c.value,
|
|
4990
4995
|
height: b.value,
|
|
4991
|
-
isBindFlag:
|
|
4992
|
-
bindSeatType:
|
|
4993
|
-
bindInfo:
|
|
4996
|
+
isBindFlag: J.value,
|
|
4997
|
+
bindSeatType: _.layout.bindSeatType,
|
|
4998
|
+
bindInfo: Y.value
|
|
4994
4999
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
4995
|
-
!(
|
|
5000
|
+
!(ie % 2) || ie === 1 && w.value < 3 ? (i(), h("div", {
|
|
4996
5001
|
key: 1,
|
|
4997
5002
|
ref_for: !0,
|
|
4998
5003
|
ref_key: "titleDom",
|
|
4999
5004
|
ref: z,
|
|
5000
|
-
class:
|
|
5001
|
-
style:
|
|
5005
|
+
class: Z(["absolute text-black", ie === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5006
|
+
style: j(fe.value)
|
|
5002
5007
|
}, [
|
|
5003
5008
|
te(Ao, {
|
|
5004
|
-
layout:
|
|
5005
|
-
code:
|
|
5009
|
+
layout: _.layout,
|
|
5010
|
+
code: _.info.textCode
|
|
5006
5011
|
}, null, 8, ["layout", "code"]),
|
|
5007
5012
|
te(la, {
|
|
5008
|
-
info:
|
|
5009
|
-
layout:
|
|
5010
|
-
fontConfig:
|
|
5011
|
-
data:
|
|
5012
|
-
onChange:
|
|
5013
|
+
info: _.info,
|
|
5014
|
+
layout: _.layout,
|
|
5015
|
+
fontConfig: _.fontConfig,
|
|
5016
|
+
data: _.data,
|
|
5017
|
+
onChange: S[8] || (S[8] = ($e) => t("changeInfo", $e))
|
|
5013
5018
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5014
5019
|
te(Ca, {
|
|
5015
|
-
layout:
|
|
5016
|
-
info:
|
|
5017
|
-
isBindFlag:
|
|
5018
|
-
onChange:
|
|
5020
|
+
layout: _.layout,
|
|
5021
|
+
info: _.info,
|
|
5022
|
+
isBindFlag: J.value,
|
|
5023
|
+
onChange: S[9] || (S[9] = ($e) => t("changeExtentInfo", $e))
|
|
5019
5024
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5020
5025
|
te(Oa, {
|
|
5021
|
-
layout:
|
|
5022
|
-
isBindFlag:
|
|
5026
|
+
layout: _.layout,
|
|
5027
|
+
isBindFlag: J.value
|
|
5023
5028
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5024
|
-
|
|
5029
|
+
ie ? P("", !0) : (i(), V(qa, {
|
|
5025
5030
|
key: 0,
|
|
5026
|
-
layout:
|
|
5027
|
-
data:
|
|
5031
|
+
layout: _.layout,
|
|
5032
|
+
data: _.data
|
|
5028
5033
|
}, null, 8, ["layout", "data"])),
|
|
5029
|
-
|
|
5034
|
+
_.layout.writeScoreFlag && !ie ? (i(), V(bl, {
|
|
5030
5035
|
key: 1,
|
|
5031
|
-
info:
|
|
5032
|
-
layout:
|
|
5036
|
+
info: _.info,
|
|
5037
|
+
layout: _.layout
|
|
5033
5038
|
}, null, 8, ["info", "layout"])) : P("", !0)
|
|
5034
5039
|
], 6)) : P("", !0),
|
|
5035
|
-
(i(!0), h(
|
|
5040
|
+
(i(!0), h(D, null, oe(ie % 2 ? _.layout.backColumn : _.layout.column, ($e, Pe) => (i(), V(Ua, {
|
|
5036
5041
|
ref_for: !0,
|
|
5037
|
-
ref: (Ye) => ee(Ye, x(Pe,
|
|
5038
|
-
styleInfo:
|
|
5039
|
-
column:
|
|
5040
|
-
currentColumn: x(Pe,
|
|
5041
|
-
showColBorder:
|
|
5042
|
+
ref: (Ye) => ee(Ye, x(Pe, ie)),
|
|
5043
|
+
styleInfo: se(x(Pe, ie), ie),
|
|
5044
|
+
column: _.layout.column,
|
|
5045
|
+
currentColumn: x(Pe, ie),
|
|
5046
|
+
showColBorder: U.value
|
|
5042
5047
|
}, {
|
|
5043
5048
|
default: Ft(() => {
|
|
5044
5049
|
var Ye;
|
|
5045
5050
|
return [
|
|
5046
|
-
(i(!0), h(
|
|
5051
|
+
(i(!0), h(D, null, oe(((Ye = l.value[x(Pe, ie)]) == null ? void 0 : Ye.data) || [], (we, Wt) => {
|
|
5047
5052
|
var bt;
|
|
5048
|
-
return i(), h(
|
|
5049
|
-
we.isHidden ? P("", !0) : (i(),
|
|
5053
|
+
return i(), h(D, null, [
|
|
5054
|
+
we.isHidden ? P("", !0) : (i(), V(Tt, {
|
|
5050
5055
|
key: 0,
|
|
5051
5056
|
item: we,
|
|
5052
|
-
showColBorder:
|
|
5053
|
-
isFirst: !
|
|
5054
|
-
layout:
|
|
5055
|
-
isActive: ((bt =
|
|
5056
|
-
onClick: (Te) =>
|
|
5057
|
+
showColBorder: U.value,
|
|
5058
|
+
isFirst: !ie && !Pe && !Wt,
|
|
5059
|
+
layout: _.layout,
|
|
5060
|
+
isActive: ((bt = _.target.value) == null ? void 0 : bt.id) === we.id,
|
|
5061
|
+
onClick: (Te) => ne({ type: we.problemType ? I(M).headline : I(M).headlineNotarea, value: we }),
|
|
5057
5062
|
onDbclick: (Te) => t("dbHeadLineClick", we)
|
|
5058
5063
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5059
|
-
|
|
5064
|
+
U.value ? (i(), h("div", {
|
|
5060
5065
|
key: 1,
|
|
5061
|
-
class:
|
|
5062
|
-
onClick: Me((Te) =>
|
|
5066
|
+
class: Z([!we.children.length && we.problemType && "p-1 min-h-[2rem]", _.target.type === I(M).headline && _.target.value.id === we.id && "active_headline"]),
|
|
5067
|
+
onClick: Me((Te) => ne({ type: we.problemType ? I(M).headline : I(M).headlineNotarea, value: we }), ["stop"]),
|
|
5063
5068
|
onDblclick: (Te) => t("dbHeadLineClick", we)
|
|
5064
5069
|
}, [
|
|
5065
5070
|
te(Ue, {
|
|
5066
5071
|
data: we,
|
|
5067
|
-
layout:
|
|
5068
|
-
target:
|
|
5069
|
-
width: G(x(Pe,
|
|
5070
|
-
onClick:
|
|
5071
|
-
onDbclick:
|
|
5072
|
+
layout: _.layout,
|
|
5073
|
+
target: _.target,
|
|
5074
|
+
width: G(x(Pe, ie)),
|
|
5075
|
+
onClick: S[10] || (S[10] = (Te) => ne({ type: Te.problemType ? I(M).problem : I(M).problemNotarea, value: Te })),
|
|
5076
|
+
onDbclick: S[11] || (S[11] = (Te) => t("dbProblemClick", Te))
|
|
5072
5077
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5073
|
-
we.children.length && we.children[we.children.length - 1].id ===
|
|
5078
|
+
we.children.length && we.children[we.children.length - 1].id === B.value ? (i(), h("div", {
|
|
5074
5079
|
key: 0,
|
|
5075
5080
|
class: "border-t",
|
|
5076
5081
|
"data-block": I(De)
|
|
5077
5082
|
}, null, 8, ei)) : P("", !0)
|
|
5078
|
-
], 42, Zs)) : (i(),
|
|
5083
|
+
], 42, Zs)) : (i(), V(Ue, {
|
|
5079
5084
|
key: 2,
|
|
5080
5085
|
data: we,
|
|
5081
|
-
layout:
|
|
5082
|
-
target:
|
|
5083
|
-
width: G(x(Pe,
|
|
5084
|
-
onClick:
|
|
5085
|
-
onDbclick:
|
|
5086
|
+
layout: _.layout,
|
|
5087
|
+
target: _.target,
|
|
5088
|
+
width: G(x(Pe, ie)),
|
|
5089
|
+
onClick: S[12] || (S[12] = (Te) => ne({ type: Te.problemType ? I(M).problem : I(M).problemNotarea, value: Te })),
|
|
5090
|
+
onDbclick: S[13] || (S[13] = (Te) => t("dbProblemClick", Te))
|
|
5086
5091
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5087
5092
|
], 64);
|
|
5088
5093
|
}), 256))
|