alit-layout 1.1.33 → 1.1.34
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 +998 -916
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ne, computed as W, openBlock as r, createElementBlock as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as ne, computed as W, openBlock as r, createElementBlock as h, Fragment as O, renderList as le, createElementVNode as k, normalizeStyle as X, unref as L, toDisplayString as te, createCommentVNode as B, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as Ze, createVNode as ae, pushScopeId as qe, popScopeId as Ye, renderSlot as mt, onMounted as Ke, nextTick as lt, withModifiers as Ee, resolveComponent as Qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as qt, withDirectives as Ct, provide as Yt } from "vue";
|
|
2
|
+
const Re = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
5
5
|
// 多选题
|
|
@@ -9,7 +9,7 @@ const He = {
|
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
11
|
}, Pt = {
|
|
12
|
-
...
|
|
12
|
+
...Re,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
15
15
|
}, We = {
|
|
@@ -45,7 +45,7 @@ const He = {
|
|
|
45
45
|
__notarea: "NO_ANSWER_AREA",
|
|
46
46
|
// 非作答区(试题)
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
|
-
},
|
|
48
|
+
}, u = {
|
|
49
49
|
...Pt,
|
|
50
50
|
...We
|
|
51
51
|
}, Ge = [
|
|
@@ -531,7 +531,7 @@ const He = {
|
|
|
531
531
|
2: 1,
|
|
532
532
|
3: 1
|
|
533
533
|
}
|
|
534
|
-
},
|
|
534
|
+
}, E = {
|
|
535
535
|
page: "page",
|
|
536
536
|
headline: "headline",
|
|
537
537
|
text: "text",
|
|
@@ -773,6 +773,12 @@ const He = {
|
|
|
773
773
|
// 简答题
|
|
774
774
|
easy_slove_a: "cardQuesContentFlag",
|
|
775
775
|
easy_slove_b: "scoreShowType",
|
|
776
|
+
easy_slove_c: "cardEmptySize",
|
|
777
|
+
// 自身每行空数
|
|
778
|
+
easy_slove_d: "cardEmptyHeight",
|
|
779
|
+
// 每空高度
|
|
780
|
+
easy_slove_e: "cardEmptyNum",
|
|
781
|
+
// 每行空数
|
|
776
782
|
// 作文题
|
|
777
783
|
art_a: "fill",
|
|
778
784
|
// 是否铺满
|
|
@@ -800,8 +806,8 @@ const He = {
|
|
|
800
806
|
type: "radio",
|
|
801
807
|
label: "横向分栏",
|
|
802
808
|
key: d.article.col_a,
|
|
803
|
-
target: [
|
|
804
|
-
show: (e) => ![
|
|
809
|
+
target: [E.headline],
|
|
810
|
+
show: (e) => ![u.art].includes(e.problemType) && e.layoutMode === "column",
|
|
805
811
|
option: [
|
|
806
812
|
{ name: "1栏", code: f.col_1 },
|
|
807
813
|
{ name: "横向2栏", code: f.col_2 }
|
|
@@ -813,8 +819,8 @@ const He = {
|
|
|
813
819
|
type: "radio",
|
|
814
820
|
label: "横向分栏",
|
|
815
821
|
key: d.article.col_a,
|
|
816
|
-
target: [
|
|
817
|
-
show: (e) => ![
|
|
822
|
+
target: [E.headline],
|
|
823
|
+
show: (e) => ![u.art].includes(e.problemType) && e.layoutMode === "column",
|
|
818
824
|
option: [
|
|
819
825
|
{ name: "1栏", code: f.col_1 },
|
|
820
826
|
{ name: "横向2栏", code: f.col_2 }
|
|
@@ -824,13 +830,13 @@ const He = {
|
|
|
824
830
|
}, po = {
|
|
825
831
|
base: {
|
|
826
832
|
// 解答题
|
|
827
|
-
[
|
|
833
|
+
[u.slove]: [
|
|
828
834
|
{
|
|
829
835
|
type: "radio",
|
|
830
836
|
label: "插入题号样式控制",
|
|
831
837
|
key: d.article.slove_d,
|
|
832
838
|
code: "slove_insert_sub",
|
|
833
|
-
target: [
|
|
839
|
+
target: [E.problem],
|
|
834
840
|
option: [
|
|
835
841
|
{ name: "无", code: f.slove_5 },
|
|
836
842
|
{ name: "下划线", code: f.slove_6 }
|
|
@@ -840,7 +846,7 @@ const He = {
|
|
|
840
846
|
},
|
|
841
847
|
article: {
|
|
842
848
|
// 选择题
|
|
843
|
-
[
|
|
849
|
+
[u.choice]: [
|
|
844
850
|
{
|
|
845
851
|
type: "radio",
|
|
846
852
|
label: "展示样式",
|
|
@@ -852,7 +858,7 @@ const He = {
|
|
|
852
858
|
}
|
|
853
859
|
],
|
|
854
860
|
// 判断题
|
|
855
|
-
[
|
|
861
|
+
[u.decide]: [
|
|
856
862
|
{
|
|
857
863
|
type: "radio",
|
|
858
864
|
label: "展示样式",
|
|
@@ -864,7 +870,7 @@ const He = {
|
|
|
864
870
|
}
|
|
865
871
|
],
|
|
866
872
|
// 填空题
|
|
867
|
-
[
|
|
873
|
+
[u.fill]: [
|
|
868
874
|
{
|
|
869
875
|
type: "radio",
|
|
870
876
|
label: "打分框位置",
|
|
@@ -877,9 +883,9 @@ const He = {
|
|
|
877
883
|
}
|
|
878
884
|
],
|
|
879
885
|
// 选填题
|
|
880
|
-
[
|
|
886
|
+
[u.mix]: [],
|
|
881
887
|
// 解答题
|
|
882
|
-
[
|
|
888
|
+
[u.slove]: [
|
|
883
889
|
{
|
|
884
890
|
type: "radio",
|
|
885
891
|
label: "边框控制",
|
|
@@ -913,7 +919,7 @@ const He = {
|
|
|
913
919
|
label: "插入题号样式控制",
|
|
914
920
|
key: d.article.slove_d,
|
|
915
921
|
code: "slove_insert_sub",
|
|
916
|
-
target: [
|
|
922
|
+
target: [E.problem],
|
|
917
923
|
option: [
|
|
918
924
|
{ name: "无", code: f.slove_5 },
|
|
919
925
|
{ name: "下划线", code: f.slove_6 }
|
|
@@ -921,7 +927,7 @@ const He = {
|
|
|
921
927
|
}
|
|
922
928
|
],
|
|
923
929
|
// 作文题
|
|
924
|
-
[
|
|
930
|
+
[u.art]: [
|
|
925
931
|
{
|
|
926
932
|
type: "slider",
|
|
927
933
|
label: "格子尺寸",
|
|
@@ -936,7 +942,7 @@ const He = {
|
|
|
936
942
|
key: d.article.art_c,
|
|
937
943
|
detail: !0,
|
|
938
944
|
unit: "字",
|
|
939
|
-
target: [
|
|
945
|
+
target: [E.problem]
|
|
940
946
|
},
|
|
941
947
|
{
|
|
942
948
|
type: "slider",
|
|
@@ -945,7 +951,7 @@ const He = {
|
|
|
945
951
|
detail: !0,
|
|
946
952
|
min: () => 1,
|
|
947
953
|
max: (e) => Math.floor(e.style[d.article.art_c] / e.style[d.article.art_e]),
|
|
948
|
-
target: [
|
|
954
|
+
target: [E.problem]
|
|
949
955
|
},
|
|
950
956
|
{
|
|
951
957
|
type: "radio",
|
|
@@ -956,13 +962,13 @@ const He = {
|
|
|
956
962
|
{ name: "100", code: 100 }
|
|
957
963
|
],
|
|
958
964
|
detail: !0,
|
|
959
|
-
target: [
|
|
965
|
+
target: [E.problem]
|
|
960
966
|
}
|
|
961
967
|
]
|
|
962
968
|
},
|
|
963
969
|
sheet: {
|
|
964
970
|
// 选择题
|
|
965
|
-
[
|
|
971
|
+
[u.choice]: [
|
|
966
972
|
{
|
|
967
973
|
type: "radio",
|
|
968
974
|
label: "排列样式",
|
|
@@ -997,7 +1003,7 @@ const He = {
|
|
|
997
1003
|
{
|
|
998
1004
|
type: "slider",
|
|
999
1005
|
label: "每组个数",
|
|
1000
|
-
target: [
|
|
1006
|
+
target: [E.page, E.headline],
|
|
1001
1007
|
key: d.sheet.choice_e,
|
|
1002
1008
|
show: (e) => e.style[d.sheet.choice_a] !== f.choice_2,
|
|
1003
1009
|
min: () => 1,
|
|
@@ -1006,7 +1012,7 @@ const He = {
|
|
|
1006
1012
|
{
|
|
1007
1013
|
type: "slider",
|
|
1008
1014
|
label: "列数",
|
|
1009
|
-
target: [
|
|
1015
|
+
target: [E.page, E.headline],
|
|
1010
1016
|
key: d.sheet.choice_d,
|
|
1011
1017
|
show: (e) => e.style[d.sheet.choice_a] === f.choice_1,
|
|
1012
1018
|
min: () => 1,
|
|
@@ -1014,7 +1020,7 @@ const He = {
|
|
|
1014
1020
|
}
|
|
1015
1021
|
],
|
|
1016
1022
|
// 判断题
|
|
1017
|
-
[
|
|
1023
|
+
[u.decide]: [
|
|
1018
1024
|
{
|
|
1019
1025
|
type: "radio",
|
|
1020
1026
|
label: "展示样式",
|
|
@@ -1027,7 +1033,7 @@ const He = {
|
|
|
1027
1033
|
}
|
|
1028
1034
|
],
|
|
1029
1035
|
// 填空题
|
|
1030
|
-
[
|
|
1036
|
+
[u.fill]: [
|
|
1031
1037
|
{
|
|
1032
1038
|
type: "radio",
|
|
1033
1039
|
label: "题干显示控制",
|
|
@@ -1052,7 +1058,7 @@ const He = {
|
|
|
1052
1058
|
type: "radio",
|
|
1053
1059
|
label: "分题换行",
|
|
1054
1060
|
key: d.sheet.fill_c,
|
|
1055
|
-
target: [
|
|
1061
|
+
target: [E.page, E.headline],
|
|
1056
1062
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1057
1063
|
option: [
|
|
1058
1064
|
{ name: "开启", code: f.fill_1 },
|
|
@@ -1095,13 +1101,13 @@ const He = {
|
|
|
1095
1101
|
type: "slider",
|
|
1096
1102
|
label: "每空高度",
|
|
1097
1103
|
key: d.sheet.fill_e,
|
|
1098
|
-
target: [
|
|
1104
|
+
target: [E.page, E.headline],
|
|
1099
1105
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1100
1106
|
max: () => 20
|
|
1101
1107
|
}
|
|
1102
1108
|
],
|
|
1103
1109
|
// 选填题
|
|
1104
|
-
[
|
|
1110
|
+
[u.mix]: [
|
|
1105
1111
|
{
|
|
1106
1112
|
type: "radio",
|
|
1107
1113
|
label: "题干显示控制",
|
|
@@ -1116,9 +1122,9 @@ const He = {
|
|
|
1116
1122
|
type: "radio",
|
|
1117
1123
|
label: "每空宽度",
|
|
1118
1124
|
key: d.sheet.fill_d,
|
|
1119
|
-
filter: (e, t) => e.mixType[t].problemType ===
|
|
1120
|
-
target: [
|
|
1121
|
-
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType ===
|
|
1125
|
+
filter: (e, t) => e.mixType[t].problemType === u.fill,
|
|
1126
|
+
target: [E.problem],
|
|
1127
|
+
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === u.fill),
|
|
1122
1128
|
option: [
|
|
1123
1129
|
{ name: "1", code: 1 },
|
|
1124
1130
|
{ name: "1/2", code: 2 },
|
|
@@ -1133,14 +1139,14 @@ const He = {
|
|
|
1133
1139
|
type: "slider",
|
|
1134
1140
|
label: "每空高度",
|
|
1135
1141
|
key: d.sheet.fill_e,
|
|
1136
|
-
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(
|
|
1142
|
+
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(u).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === u.fill),
|
|
1137
1143
|
max: () => 20
|
|
1138
1144
|
},
|
|
1139
1145
|
{
|
|
1140
1146
|
type: "radio",
|
|
1141
1147
|
label: "展示样式",
|
|
1142
1148
|
key: d.sheet.decide_a,
|
|
1143
|
-
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(
|
|
1149
|
+
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(u).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === u.decide),
|
|
1144
1150
|
option: [
|
|
1145
1151
|
{ name: "对错", code: f.decide_1 },
|
|
1146
1152
|
{ name: "TF", code: f.decide_2 }
|
|
@@ -1150,8 +1156,8 @@ const He = {
|
|
|
1150
1156
|
type: "radio",
|
|
1151
1157
|
label: "排列方向",
|
|
1152
1158
|
key: d.sheet.choice_b,
|
|
1153
|
-
target: [
|
|
1154
|
-
show: (e) => !e.style[d.sheet.mix_a] && !(e.mixType || []).find((t) => ![
|
|
1159
|
+
target: [E.problem],
|
|
1160
|
+
show: (e) => !e.style[d.sheet.mix_a] && !(e.mixType || []).find((t) => ![u.choice, u.choice_multiple].includes(t.problemType)),
|
|
1155
1161
|
option: [
|
|
1156
1162
|
{ name: "横向", code: f.landscape },
|
|
1157
1163
|
{ name: "竖向", code: f.portrait }
|
|
@@ -1170,7 +1176,7 @@ const He = {
|
|
|
1170
1176
|
}
|
|
1171
1177
|
],
|
|
1172
1178
|
// 解答题
|
|
1173
|
-
[
|
|
1179
|
+
[u.slove]: [
|
|
1174
1180
|
{
|
|
1175
1181
|
type: "radio",
|
|
1176
1182
|
label: "题目计分提示",
|
|
@@ -1184,7 +1190,7 @@ const He = {
|
|
|
1184
1190
|
}
|
|
1185
1191
|
],
|
|
1186
1192
|
// 简答题
|
|
1187
|
-
[
|
|
1193
|
+
[u.easy_slove]: [
|
|
1188
1194
|
{
|
|
1189
1195
|
type: "radio",
|
|
1190
1196
|
label: "题目计分提示",
|
|
@@ -1198,7 +1204,7 @@ const He = {
|
|
|
1198
1204
|
}
|
|
1199
1205
|
],
|
|
1200
1206
|
// 作文题
|
|
1201
|
-
[
|
|
1207
|
+
[u.art]: [
|
|
1202
1208
|
{
|
|
1203
1209
|
type: "slider",
|
|
1204
1210
|
label: "格子尺寸",
|
|
@@ -1213,7 +1219,7 @@ const He = {
|
|
|
1213
1219
|
key: d.sheet.art_c,
|
|
1214
1220
|
detail: !0,
|
|
1215
1221
|
unit: "字",
|
|
1216
|
-
target: [
|
|
1222
|
+
target: [E.problem]
|
|
1217
1223
|
},
|
|
1218
1224
|
{
|
|
1219
1225
|
type: "slider",
|
|
@@ -1222,7 +1228,7 @@ const He = {
|
|
|
1222
1228
|
detail: !0,
|
|
1223
1229
|
min: () => 1,
|
|
1224
1230
|
max: (e) => Math.floor(e.style[d.sheet.art_c] / e.style[d.sheet.art_e]),
|
|
1225
|
-
target: [
|
|
1231
|
+
target: [E.problem]
|
|
1226
1232
|
},
|
|
1227
1233
|
{
|
|
1228
1234
|
type: "radio",
|
|
@@ -1233,7 +1239,7 @@ const He = {
|
|
|
1233
1239
|
{ name: "100", code: 100 }
|
|
1234
1240
|
],
|
|
1235
1241
|
detail: !0,
|
|
1236
|
-
target: [
|
|
1242
|
+
target: [E.problem]
|
|
1237
1243
|
},
|
|
1238
1244
|
{
|
|
1239
1245
|
type: "radio",
|
|
@@ -1247,7 +1253,7 @@ const He = {
|
|
|
1247
1253
|
}
|
|
1248
1254
|
],
|
|
1249
1255
|
// 综合题
|
|
1250
|
-
[
|
|
1256
|
+
[u.synthesis]: [
|
|
1251
1257
|
{
|
|
1252
1258
|
type: "radio",
|
|
1253
1259
|
label: "主客分离",
|
|
@@ -1271,7 +1277,7 @@ const He = {
|
|
|
1271
1277
|
},
|
|
1272
1278
|
sheetCard: {
|
|
1273
1279
|
// 选择题
|
|
1274
|
-
[
|
|
1280
|
+
[u.choice]: [
|
|
1275
1281
|
{
|
|
1276
1282
|
type: "radio",
|
|
1277
1283
|
label: "排列样式",
|
|
@@ -1306,7 +1312,7 @@ const He = {
|
|
|
1306
1312
|
{
|
|
1307
1313
|
type: "slider",
|
|
1308
1314
|
label: "每组个数",
|
|
1309
|
-
target: (e, t) => [
|
|
1315
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [E.problem] : [E.page, E.headline],
|
|
1310
1316
|
key: d.sheetCard.choice_e,
|
|
1311
1317
|
show: (e) => e.style[d.sheetCard.choice_a] === f.choice_1 || e.style[d.sheetCard.choice_a] === f.choice_3 && e.style[d.sheetCard.choice_b] === f.portrait,
|
|
1312
1318
|
min: () => 1,
|
|
@@ -1315,7 +1321,7 @@ const He = {
|
|
|
1315
1321
|
{
|
|
1316
1322
|
type: "slider",
|
|
1317
1323
|
label: "列数",
|
|
1318
|
-
target: (e, t) => [
|
|
1324
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [E.problem] : [E.page, E.headline],
|
|
1319
1325
|
key: d.sheetCard.choice_d,
|
|
1320
1326
|
show: (e) => e.style[d.sheetCard.choice_a] !== f.choice_2,
|
|
1321
1327
|
min: () => 1,
|
|
@@ -1324,7 +1330,7 @@ const He = {
|
|
|
1324
1330
|
{
|
|
1325
1331
|
type: "radio",
|
|
1326
1332
|
label: "排列偏好",
|
|
1327
|
-
target: (e, t) => [
|
|
1333
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [E.problem] : [E.page, E.headline],
|
|
1328
1334
|
key: d.sheetCard.choice_f,
|
|
1329
1335
|
show: (e) => e.style[d.sheetCard.choice_a] !== f.choice_2,
|
|
1330
1336
|
option: [
|
|
@@ -1334,7 +1340,7 @@ const He = {
|
|
|
1334
1340
|
}
|
|
1335
1341
|
],
|
|
1336
1342
|
// 判断题
|
|
1337
|
-
[
|
|
1343
|
+
[u.decide]: [
|
|
1338
1344
|
{
|
|
1339
1345
|
type: "radio",
|
|
1340
1346
|
label: "展示样式",
|
|
@@ -1346,7 +1352,7 @@ const He = {
|
|
|
1346
1352
|
}
|
|
1347
1353
|
],
|
|
1348
1354
|
// 填空题
|
|
1349
|
-
[
|
|
1355
|
+
[u.fill]: [
|
|
1350
1356
|
{
|
|
1351
1357
|
type: "radio",
|
|
1352
1358
|
label: "打分框位置",
|
|
@@ -1362,7 +1368,7 @@ const He = {
|
|
|
1362
1368
|
type: "radio",
|
|
1363
1369
|
label: "分题换行",
|
|
1364
1370
|
key: d.sheetCard.fill_c,
|
|
1365
|
-
target: (e, t) => [
|
|
1371
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [E.problem] : [u.mix].includes(e.problemType) ? [] : [E.page, E.headline],
|
|
1366
1372
|
show: (e) => !e.style[d.sheetCard.fill_b],
|
|
1367
1373
|
option: [
|
|
1368
1374
|
{ name: "开启", code: f.fill_1 },
|
|
@@ -1373,8 +1379,8 @@ const He = {
|
|
|
1373
1379
|
type: "radio",
|
|
1374
1380
|
label: "排列方向",
|
|
1375
1381
|
key: d.sheetCard.fill_g,
|
|
1376
|
-
target: [
|
|
1377
|
-
show: (e) => e.style[d.sheetCard.fill_c] === f.fill_2 && [
|
|
1382
|
+
target: [E.page, E.headline],
|
|
1383
|
+
show: (e) => e.style[d.sheetCard.fill_c] === f.fill_2 && [u.fill, u.fill_english].includes(e.problemType),
|
|
1378
1384
|
option: [
|
|
1379
1385
|
{ name: "横向", code: f.landscape },
|
|
1380
1386
|
{ name: "纵向", code: f.portrait }
|
|
@@ -1384,7 +1390,7 @@ const He = {
|
|
|
1384
1390
|
type: "slider",
|
|
1385
1391
|
label: "每组个数",
|
|
1386
1392
|
key: d.sheetCard.fill_h,
|
|
1387
|
-
target: [
|
|
1393
|
+
target: [E.page, E.headline],
|
|
1388
1394
|
show: (e) => e.style[d.sheetCard.fill_g] === f.portrait,
|
|
1389
1395
|
min: () => 1,
|
|
1390
1396
|
max: () => 10
|
|
@@ -1394,9 +1400,9 @@ const He = {
|
|
|
1394
1400
|
type: "radio",
|
|
1395
1401
|
label: "每空宽度",
|
|
1396
1402
|
key: d.sheetCard.fill_d,
|
|
1397
|
-
target: [
|
|
1403
|
+
target: [E.problem],
|
|
1398
1404
|
detail: !0,
|
|
1399
|
-
problemCode: [
|
|
1405
|
+
problemCode: [u.fill, u.fill_english],
|
|
1400
1406
|
show: (e) => !e.style[d.sheetCard.fill_b] && e.style[d.sheetCard.fill_g] !== f.portrait,
|
|
1401
1407
|
option: [
|
|
1402
1408
|
{ name: "1", code: 1 },
|
|
@@ -1413,8 +1419,8 @@ const He = {
|
|
|
1413
1419
|
type: "radio",
|
|
1414
1420
|
label: "每行空数",
|
|
1415
1421
|
key: d.sheetCard.fill_f,
|
|
1416
|
-
target: [
|
|
1417
|
-
show: (e) => !e.style[d.sheetCard.fill_b] && e.children.length,
|
|
1422
|
+
target: [E.page, E.headline],
|
|
1423
|
+
show: (e) => !e.notSelf && !e.style[d.sheetCard.fill_b] && e.children.length,
|
|
1418
1424
|
option: [
|
|
1419
1425
|
{ name: "1", code: 1 },
|
|
1420
1426
|
{ name: "1/2", code: 2 },
|
|
@@ -1429,13 +1435,13 @@ const He = {
|
|
|
1429
1435
|
type: "slider",
|
|
1430
1436
|
label: "每空高度",
|
|
1431
1437
|
key: d.sheetCard.fill_e,
|
|
1432
|
-
target: (e, t) => [
|
|
1433
|
-
show: (e) => !e.style[d.sheetCard.fill_b],
|
|
1438
|
+
target: (e, t) => [u.synthesis, u.mix].includes(e.problemType) ? [E.problem] : [E.page, E.headline],
|
|
1439
|
+
show: (e) => !e.notSelf && !e.style[d.sheetCard.fill_b],
|
|
1434
1440
|
max: () => 20
|
|
1435
1441
|
}
|
|
1436
1442
|
],
|
|
1437
1443
|
// 选填题
|
|
1438
|
-
[
|
|
1444
|
+
[u.mix]: [
|
|
1439
1445
|
// { // 试题自身
|
|
1440
1446
|
// type: 'radio',
|
|
1441
1447
|
// label: '每空宽度',
|
|
@@ -1495,16 +1501,40 @@ const He = {
|
|
|
1495
1501
|
type: "radio",
|
|
1496
1502
|
label: "题目计分提示",
|
|
1497
1503
|
key: d.public.scoreShowFlag,
|
|
1498
|
-
show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [
|
|
1504
|
+
show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [u.easy_slove].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [u.easy_slove].includes(t.problemType))),
|
|
1499
1505
|
option: [
|
|
1500
1506
|
{ name: "隐藏", code: f.bracket_none },
|
|
1501
1507
|
{ name: "显示(英文括号)", code: f.bracket_en },
|
|
1502
1508
|
{ name: "显示(中文括号)", code: f.bracket_cn }
|
|
1503
1509
|
]
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
// 其它
|
|
1513
|
+
type: "radio",
|
|
1514
|
+
label: "每行空数",
|
|
1515
|
+
key: d.sheetCard.fill_f,
|
|
1516
|
+
target: [E.page, E.headline],
|
|
1517
|
+
show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [u.easy_slove, u.fill, u.fill_english].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [u.easy_slove, u.fill, u.fill_english].includes(t.problemType))),
|
|
1518
|
+
option: [
|
|
1519
|
+
{ name: "1", code: 1 },
|
|
1520
|
+
{ name: "1/2", code: 2 },
|
|
1521
|
+
{ name: "1/3", code: 3 },
|
|
1522
|
+
{ name: "1/4", code: 4 },
|
|
1523
|
+
{ name: "1/5", code: 5 },
|
|
1524
|
+
{ name: "2/3", code: 1.5 },
|
|
1525
|
+
{ name: "3/4", code: 1.34 }
|
|
1526
|
+
]
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
type: "slider",
|
|
1530
|
+
label: "每空高度",
|
|
1531
|
+
key: d.sheetCard.fill_e,
|
|
1532
|
+
show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [u.easy_slove, u.fill, u.fill_english].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [u.easy_slove, u.fill, u.fill_english].includes(t.problemType))),
|
|
1533
|
+
max: () => 20
|
|
1504
1534
|
}
|
|
1505
1535
|
],
|
|
1506
1536
|
// 解答题
|
|
1507
|
-
[
|
|
1537
|
+
[u.slove]: [
|
|
1508
1538
|
{
|
|
1509
1539
|
type: "radio",
|
|
1510
1540
|
label: "题目计分提示",
|
|
@@ -1530,7 +1560,7 @@ const He = {
|
|
|
1530
1560
|
// }
|
|
1531
1561
|
],
|
|
1532
1562
|
// 简答题
|
|
1533
|
-
[
|
|
1563
|
+
[u.easy_slove]: [
|
|
1534
1564
|
{
|
|
1535
1565
|
type: "radio",
|
|
1536
1566
|
label: "题目计分提示",
|
|
@@ -1541,16 +1571,59 @@ const He = {
|
|
|
1541
1571
|
{ name: "显示(英文括号)", code: f.bracket_en },
|
|
1542
1572
|
{ name: "显示(中文括号)", code: f.bracket_cn }
|
|
1543
1573
|
]
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
// 试题自身
|
|
1577
|
+
type: "radio",
|
|
1578
|
+
label: "宽度",
|
|
1579
|
+
key: d.sheetCard.easy_slove_c,
|
|
1580
|
+
detail: !0,
|
|
1581
|
+
target: [E.problem],
|
|
1582
|
+
problemCode: [u.easy_slove],
|
|
1583
|
+
option: [
|
|
1584
|
+
{ name: "1", code: 1 },
|
|
1585
|
+
{ name: "1/2", code: 2 },
|
|
1586
|
+
{ name: "1/3", code: 3 },
|
|
1587
|
+
{ name: "1/4", code: 4 },
|
|
1588
|
+
{ name: "1/5", code: 5 },
|
|
1589
|
+
{ name: "2/3", code: 1.5 },
|
|
1590
|
+
{ name: "3/4", code: 1.34 }
|
|
1591
|
+
]
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
// 其它
|
|
1595
|
+
type: "radio",
|
|
1596
|
+
label: "每行空数",
|
|
1597
|
+
key: d.sheetCard.easy_slove_e,
|
|
1598
|
+
target: [E.page, E.headline],
|
|
1599
|
+
show: (e) => !e.notSelf,
|
|
1600
|
+
option: [
|
|
1601
|
+
{ name: "1", code: 1 },
|
|
1602
|
+
{ name: "1/2", code: 2 },
|
|
1603
|
+
{ name: "1/3", code: 3 },
|
|
1604
|
+
{ name: "1/4", code: 4 },
|
|
1605
|
+
{ name: "1/5", code: 5 },
|
|
1606
|
+
{ name: "2/3", code: 1.5 },
|
|
1607
|
+
{ name: "3/4", code: 1.34 }
|
|
1608
|
+
]
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
type: "slider",
|
|
1612
|
+
label: "每空高度",
|
|
1613
|
+
key: d.sheetCard.easy_slove_d,
|
|
1614
|
+
show: (e) => !e.notSelf,
|
|
1615
|
+
target: (e, t) => [u.mix].includes(e.problemType) ? [E.problem] : [E.page, E.headline, E.problem],
|
|
1616
|
+
max: () => 20
|
|
1544
1617
|
}
|
|
1545
1618
|
],
|
|
1546
1619
|
// 作文题
|
|
1547
|
-
[
|
|
1620
|
+
[u.art]: [
|
|
1548
1621
|
{
|
|
1549
1622
|
type: "slider",
|
|
1550
1623
|
label: "格子尺寸",
|
|
1551
1624
|
key: d.article.art_b,
|
|
1552
1625
|
detail: !0,
|
|
1553
|
-
target: [
|
|
1626
|
+
target: [E.problem],
|
|
1554
1627
|
show: (e) => e.artBlock,
|
|
1555
1628
|
min: () => 27,
|
|
1556
1629
|
max: () => 40,
|
|
@@ -1565,7 +1638,7 @@ const He = {
|
|
|
1565
1638
|
key: d.sheetCard.art_c,
|
|
1566
1639
|
detail: !0,
|
|
1567
1640
|
unit: "字",
|
|
1568
|
-
target: [
|
|
1641
|
+
target: [E.problem],
|
|
1569
1642
|
show: (e) => e.artBlock
|
|
1570
1643
|
},
|
|
1571
1644
|
{
|
|
@@ -1575,7 +1648,7 @@ const He = {
|
|
|
1575
1648
|
detail: !0,
|
|
1576
1649
|
min: () => 1,
|
|
1577
1650
|
max: (e) => Math.floor(e.style[d.sheetCard.art_c] / e.style[d.sheetCard.art_e]),
|
|
1578
|
-
target: [
|
|
1651
|
+
target: [E.problem],
|
|
1579
1652
|
show: (e) => e.artBlock
|
|
1580
1653
|
},
|
|
1581
1654
|
{
|
|
@@ -1587,7 +1660,7 @@ const He = {
|
|
|
1587
1660
|
{ name: "100", code: 100 }
|
|
1588
1661
|
],
|
|
1589
1662
|
detail: !0,
|
|
1590
|
-
target: [
|
|
1663
|
+
target: [E.problem],
|
|
1591
1664
|
show: (e) => e.artBlock
|
|
1592
1665
|
},
|
|
1593
1666
|
{
|
|
@@ -1596,7 +1669,7 @@ const He = {
|
|
|
1596
1669
|
key: d.sheetCard.art_c,
|
|
1597
1670
|
detail: !0,
|
|
1598
1671
|
unit: "行",
|
|
1599
|
-
target: [
|
|
1672
|
+
target: [E.problem],
|
|
1600
1673
|
show: (e) => !e.artBlock
|
|
1601
1674
|
},
|
|
1602
1675
|
{
|
|
@@ -1623,7 +1696,7 @@ const He = {
|
|
|
1623
1696
|
// }
|
|
1624
1697
|
],
|
|
1625
1698
|
// 综合题
|
|
1626
|
-
[
|
|
1699
|
+
[u.synthesis]: [
|
|
1627
1700
|
{
|
|
1628
1701
|
type: "radio",
|
|
1629
1702
|
label: "主客分离",
|
|
@@ -1638,7 +1711,7 @@ const He = {
|
|
|
1638
1711
|
type: "radio",
|
|
1639
1712
|
label: "题目计分提示",
|
|
1640
1713
|
key: d.public.scoreShowFlag,
|
|
1641
|
-
show: (e) => (e.children || []).filter((t) => Object.values(
|
|
1714
|
+
show: (e) => (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => (t.children || []).length ? t.children : t).flat(2).find((t) => [u.easy_slove, u.slove].includes(t.problemType)),
|
|
1642
1715
|
option: [
|
|
1643
1716
|
{ name: "隐藏", code: f.bracket_none },
|
|
1644
1717
|
{ name: "显示(英文括号)", code: f.bracket_en },
|
|
@@ -1701,6 +1774,11 @@ const He = {
|
|
|
1701
1774
|
height: 16
|
|
1702
1775
|
}
|
|
1703
1776
|
}, ot = {
|
|
1777
|
+
small: {
|
|
1778
|
+
name: "小",
|
|
1779
|
+
code: "small",
|
|
1780
|
+
value: 19
|
|
1781
|
+
},
|
|
1704
1782
|
stand: {
|
|
1705
1783
|
name: "标准",
|
|
1706
1784
|
code: "stand",
|
|
@@ -1749,7 +1827,7 @@ const He = {
|
|
|
1749
1827
|
sloveScoreHalfErr: "简易打分条含小数分值",
|
|
1750
1828
|
absImgOverErr: "浮层图片超出纸张",
|
|
1751
1829
|
absTxtOverErr: "浮层文本超出纸张"
|
|
1752
|
-
},
|
|
1830
|
+
}, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1753
1831
|
__proto__: null,
|
|
1754
1832
|
ErrLayoutCode: go,
|
|
1755
1833
|
MixNodeTag: Bt,
|
|
@@ -1796,7 +1874,7 @@ const He = {
|
|
|
1796
1874
|
subRangeOption: lo,
|
|
1797
1875
|
subRule: je,
|
|
1798
1876
|
subRuleOption: no,
|
|
1799
|
-
toolGroup:
|
|
1877
|
+
toolGroup: E
|
|
1800
1878
|
}, Symbol.toStringTag, { value: "Module" })), _t = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), bo = "TF".split(""), vo = {
|
|
1801
1879
|
a4: "TYPE_A4",
|
|
1802
1880
|
a4x: "TYPE_A4",
|
|
@@ -1852,30 +1930,30 @@ const He = {
|
|
|
1852
1930
|
// 密封线
|
|
1853
1931
|
bind_line: `__${fe}bindline`
|
|
1854
1932
|
}, rt = {
|
|
1855
|
-
[
|
|
1933
|
+
[u.choice]: "TYPE_SINGLECHOICE",
|
|
1856
1934
|
// 单项选择
|
|
1857
|
-
[
|
|
1858
|
-
[
|
|
1859
|
-
[
|
|
1935
|
+
[u.choice_english]: "TYPE_SINGLECHOICE",
|
|
1936
|
+
[u.cloze]: "TYPE_CLOZE_TEST",
|
|
1937
|
+
[u.choice_multiple]: "TYPE_MULTICHOICE",
|
|
1860
1938
|
// 多项选择
|
|
1861
|
-
[
|
|
1939
|
+
[u.decide]: "TYPE_JUDGE",
|
|
1862
1940
|
// 判断
|
|
1863
|
-
[
|
|
1941
|
+
[u.fill]: "TYPE_FILLBLANK",
|
|
1864
1942
|
// 填空
|
|
1865
|
-
[
|
|
1866
|
-
[
|
|
1867
|
-
[
|
|
1943
|
+
[u.fill_english]: "TYPE_FILLBLANK",
|
|
1944
|
+
[u.mix]: "TYPE_CHOICE_FILL",
|
|
1945
|
+
[u.slove]: "TYPE_SIMPLEQUESTION",
|
|
1868
1946
|
// 简(问)答
|
|
1869
|
-
[
|
|
1870
|
-
[
|
|
1947
|
+
[u.easy_slove]: "TYPE_SIMPLE_ANSWER",
|
|
1948
|
+
[u.art]: "TYPE_COMPOSITION",
|
|
1871
1949
|
// 作文
|
|
1872
|
-
[
|
|
1950
|
+
[u.synthesis]: "TYPE_MULTI",
|
|
1873
1951
|
// 综合题
|
|
1874
1952
|
[Ce.one_choice]: "TYPE_SINGLECHOICE",
|
|
1875
1953
|
// 选做题
|
|
1876
1954
|
[Ce.another_choice]: "TYPE_SINGLECHOICE"
|
|
1877
1955
|
// 附加选做题
|
|
1878
|
-
}, wo = ["data-xine"], ko = ["data-xine"], xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"], xe = 20,
|
|
1956
|
+
}, wo = ["data-xine"], ko = ["data-xine"], xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"], xe = 20, To = /* @__PURE__ */ ne({
|
|
1879
1957
|
__name: "point",
|
|
1880
1958
|
props: {
|
|
1881
1959
|
layout: {},
|
|
@@ -1909,54 +1987,54 @@ const He = {
|
|
|
1909
1987
|
b: {
|
|
1910
1988
|
bottom: `${t.padding.bottom - xe}px`
|
|
1911
1989
|
}
|
|
1912
|
-
},
|
|
1913
|
-
return { left: `${c *
|
|
1990
|
+
}, m = (x[t.layout.paper].width - t.padding.left - t.padding.right + xe) / (et.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
1991
|
+
return { left: `${c * m + t.padding.left - xe}px`, width: `${xe}px`, ...n[y] };
|
|
1914
1992
|
}, s = (c) => {
|
|
1915
|
-
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` },
|
|
1916
|
-
return { top: `${y *
|
|
1993
|
+
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((A) => A === c);
|
|
1994
|
+
return { top: `${y * m + t.padding.top - 10}px`, width: "11px", ...n };
|
|
1917
1995
|
};
|
|
1918
1996
|
return (c, y) => {
|
|
1919
1997
|
var n;
|
|
1920
|
-
return r(),
|
|
1921
|
-
(r(),
|
|
1922
|
-
key:
|
|
1998
|
+
return r(), h(O, null, [
|
|
1999
|
+
(r(), h(O, null, le(["lt", "rt", "lb", "rb"], (m) => k("span", {
|
|
2000
|
+
key: m,
|
|
1923
2001
|
class: "absolute w-8 bg-black point_item",
|
|
1924
|
-
style:
|
|
1925
|
-
"data-xine": L(I).point +
|
|
2002
|
+
style: X(l(m)),
|
|
2003
|
+
"data-xine": L(I).point + m
|
|
1926
2004
|
}, null, 12, wo)), 64)),
|
|
1927
|
-
(r(!0),
|
|
1928
|
-
(r(),
|
|
1929
|
-
key:
|
|
2005
|
+
(r(!0), h(O, null, le(o.value, (m) => (r(), h(O, { key: m }, [
|
|
2006
|
+
(r(), h(O, null, le(["t", "b"], (A) => k("span", {
|
|
2007
|
+
key: A,
|
|
1930
2008
|
class: "absolute bg-black w-8 point_item",
|
|
1931
|
-
style:
|
|
1932
|
-
"data-xine": L(I).point +
|
|
2009
|
+
style: X(a(m, A)),
|
|
2010
|
+
"data-xine": L(I).point + A
|
|
1933
2011
|
}, null, 12, ko)), 64))
|
|
1934
2012
|
], 64))), 128)),
|
|
1935
|
-
(r(),
|
|
1936
|
-
key:
|
|
2013
|
+
(r(), h(O, null, le(["l", "r"], (m) => k("span", {
|
|
2014
|
+
key: m,
|
|
1937
2015
|
class: "absolute bg-black h-8",
|
|
1938
|
-
style:
|
|
1939
|
-
"data-xine": L(I).point +
|
|
2016
|
+
style: X(s(m)),
|
|
2017
|
+
"data-xine": L(I).point + m
|
|
1940
2018
|
}, null, 12, xo)), 64)),
|
|
1941
2019
|
k("p", {
|
|
1942
2020
|
class: "absolute leading-none text-0",
|
|
1943
|
-
style:
|
|
2021
|
+
style: X(i()),
|
|
1944
2022
|
"data-xine": L(I).page
|
|
1945
2023
|
}, [
|
|
1946
|
-
(r(!0),
|
|
1947
|
-
key:
|
|
2024
|
+
(r(!0), h(O, null, le(c.currentPage + 1, (m, A) => (r(), h("span", {
|
|
2025
|
+
key: m,
|
|
1948
2026
|
class: "inline-block bg-black mx-2 page_item",
|
|
1949
|
-
"data-xine": L(I).page_item +
|
|
2027
|
+
"data-xine": L(I).page_item + A
|
|
1950
2028
|
}, null, 8, So))), 128))
|
|
1951
2029
|
], 12, Co),
|
|
1952
|
-
c.currentPage % 2 ?
|
|
2030
|
+
c.currentPage % 2 ? B("", !0) : (r(), h("span", {
|
|
1953
2031
|
key: 0,
|
|
1954
2032
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1955
|
-
style:
|
|
1956
|
-
}, "提示:本卷" + te((n = L(Ge).find((
|
|
2033
|
+
style: X({ right: `${c.padding.right - 12}px` })
|
|
2034
|
+
}, "提示:本卷" + te((n = L(Ge).find((m) => m.code === c.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
|
|
1957
2035
|
k("span", {
|
|
1958
2036
|
class: "absolute text-sm red_sheet",
|
|
1959
|
-
style:
|
|
2037
|
+
style: X({ right: `${c.padding.bottom - 20 + 75}px`, bottom: `${c.padding.bottom - 20 - 3}px` })
|
|
1960
2038
|
}, te(c.currentPage + 1) + "/" + te(c.totalPage), 5)
|
|
1961
2039
|
], 64);
|
|
1962
2040
|
};
|
|
@@ -1967,7 +2045,7 @@ const me = (e, t) => {
|
|
|
1967
2045
|
for (const [l, i] of t)
|
|
1968
2046
|
o[l] = i;
|
|
1969
2047
|
return o;
|
|
1970
|
-
},
|
|
2048
|
+
}, $o = /* @__PURE__ */ me(To, [["__scopeId", "data-v-2c1c50bb"]]), Io = { class: "flex-1" }, Lo = ["type", "placeholder", "maxlength", "value"], Fo = {
|
|
1971
2049
|
key: 0,
|
|
1972
2050
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1973
2051
|
}, st = /* @__PURE__ */ ne({
|
|
@@ -2000,7 +2078,7 @@ const me = (e, t) => {
|
|
|
2000
2078
|
}, y = () => {
|
|
2001
2079
|
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
|
|
2002
2080
|
};
|
|
2003
|
-
return (n,
|
|
2081
|
+
return (n, m) => (r(), h("div", {
|
|
2004
2082
|
class: oe(["flex-1 flex items-center border rounded-lg", n.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", n.size === "small" && "p-1", n.size === "stand" && "p-2", n.size === "large" && "p-2"])
|
|
2005
2083
|
}, [
|
|
2006
2084
|
k("div", Io, [
|
|
@@ -2016,7 +2094,7 @@ const me = (e, t) => {
|
|
|
2016
2094
|
onBlur: y
|
|
2017
2095
|
}, null, 42, Lo)
|
|
2018
2096
|
]),
|
|
2019
|
-
n.unit ? (r(),
|
|
2097
|
+
n.unit ? (r(), h("span", Fo, te(n.unit), 1)) : B("", !0)
|
|
2020
2098
|
], 2));
|
|
2021
2099
|
}
|
|
2022
2100
|
}), Eo = /* @__PURE__ */ ne({
|
|
@@ -2039,7 +2117,7 @@ const me = (e, t) => {
|
|
|
2039
2117
|
size: "small",
|
|
2040
2118
|
autoLine: "",
|
|
2041
2119
|
dir: "right",
|
|
2042
|
-
style:
|
|
2120
|
+
style: X(i.value),
|
|
2043
2121
|
onChange: s[0] || (s[0] = (c) => t("change", { slogin: c }))
|
|
2044
2122
|
}, null, 8, ["value", "style"]));
|
|
2045
2123
|
}
|
|
@@ -2053,11 +2131,11 @@ const me = (e, t) => {
|
|
|
2053
2131
|
emits: ["click"],
|
|
2054
2132
|
setup(e, { emit: t }) {
|
|
2055
2133
|
const o = e, l = W(() => `#icon-${o.name}`);
|
|
2056
|
-
return (i, a) => (r(),
|
|
2134
|
+
return (i, a) => (r(), h("span", {
|
|
2057
2135
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
2058
2136
|
onClick: a[0] || (a[0] = (s) => t("click"))
|
|
2059
2137
|
}, [
|
|
2060
|
-
(r(),
|
|
2138
|
+
(r(), h("svg", {
|
|
2061
2139
|
width: i.width + "rem",
|
|
2062
2140
|
height: (i.height || i.width) + "rem"
|
|
2063
2141
|
}, [
|
|
@@ -2076,8 +2154,8 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2076
2154
|
code: {}
|
|
2077
2155
|
},
|
|
2078
2156
|
setup(e) {
|
|
2079
|
-
return (t, o) => (r(),
|
|
2080
|
-
t.layout.secrecyFlag ? (r(),
|
|
2157
|
+
return (t, o) => (r(), h("div", Do, [
|
|
2158
|
+
t.layout.secrecyFlag ? (r(), h("p", Bo, [
|
|
2081
2159
|
Ze("绝密"),
|
|
2082
2160
|
ae(ve, {
|
|
2083
2161
|
name: "fiveArrow",
|
|
@@ -2085,11 +2163,11 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2085
2163
|
class: "px-0 py-0"
|
|
2086
2164
|
}),
|
|
2087
2165
|
Ze("启用前")
|
|
2088
|
-
])) :
|
|
2166
|
+
])) : B("", !0),
|
|
2089
2167
|
k("p", No, "ID:" + te(t.code), 1)
|
|
2090
2168
|
]));
|
|
2091
2169
|
}
|
|
2092
|
-
}), zo = ["innerHTML"],
|
|
2170
|
+
}), zo = ["innerHTML"], He = /* @__PURE__ */ ne({
|
|
2093
2171
|
__name: "index",
|
|
2094
2172
|
props: {
|
|
2095
2173
|
value: {},
|
|
@@ -2101,13 +2179,13 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2101
2179
|
const o = e, l = (i) => {
|
|
2102
2180
|
t("change", i.target.innerHTML, o.name);
|
|
2103
2181
|
};
|
|
2104
|
-
return (i, a) => (r(),
|
|
2182
|
+
return (i, a) => (r(), h("div", {
|
|
2105
2183
|
innerHTML: i.value,
|
|
2106
2184
|
contenteditable: "",
|
|
2107
2185
|
onBlur: l
|
|
2108
2186
|
}, null, 40, zo));
|
|
2109
2187
|
}
|
|
2110
|
-
}),
|
|
2188
|
+
}), Ho = { class: "flex w-full" }, Ro = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, Qo = {
|
|
2111
2189
|
key: 0,
|
|
2112
2190
|
class: "flex mx-4 min-w-[70px]"
|
|
2113
2191
|
}, qo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Yo = {
|
|
@@ -2133,37 +2211,37 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2133
2211
|
emits: ["change"],
|
|
2134
2212
|
setup(e, { emit: t }) {
|
|
2135
2213
|
const o = e, l = W(() => o.data.filter((s) => ![Ce.another, Ce.another_choice, Ce.one_choice].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), i = W(() => o.data.filter((s) => [Ce.another].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), a = W(() => o.layout.scoreAddStars === nt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2136
|
-
return (s, c) => (r(),
|
|
2214
|
+
return (s, c) => (r(), h("div", Ho, [
|
|
2137
2215
|
k("img", {
|
|
2138
2216
|
src: s.info.qrCode,
|
|
2139
2217
|
alt: "QRCode",
|
|
2140
2218
|
class: "flex-shrink-0 w-28 h-28",
|
|
2141
2219
|
"data-xine": L(I).art_code
|
|
2142
|
-
}, null, 8,
|
|
2220
|
+
}, null, 8, Ro),
|
|
2143
2221
|
k("div", Wo, [
|
|
2144
|
-
ae(
|
|
2222
|
+
ae(He, {
|
|
2145
2223
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2146
2224
|
value: s.info.title,
|
|
2147
|
-
style:
|
|
2225
|
+
style: X(s.fontConfig.titleStyle),
|
|
2148
2226
|
onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
|
|
2149
2227
|
}, null, 8, ["value", "style"]),
|
|
2150
|
-
s.layout.secTitleFlag ? (r(), ee(
|
|
2228
|
+
s.layout.secTitleFlag ? (r(), ee(He, {
|
|
2151
2229
|
key: 0,
|
|
2152
2230
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2153
2231
|
value: s.info.secTitle,
|
|
2154
|
-
style:
|
|
2232
|
+
style: X(s.fontConfig.halfTitleStyle),
|
|
2155
2233
|
onChange: c[1] || (c[1] = (y) => t("change", { secTitle: y }))
|
|
2156
|
-
}, null, 8, ["value", "style"])) :
|
|
2234
|
+
}, null, 8, ["value", "style"])) : B("", !0),
|
|
2157
2235
|
k("div", Go, [
|
|
2158
|
-
s.layout.examExtentFlag ? (r(),
|
|
2236
|
+
s.layout.examExtentFlag ? (r(), h("p", Qo, [
|
|
2159
2237
|
qo,
|
|
2160
|
-
ae(
|
|
2238
|
+
ae(He, {
|
|
2161
2239
|
class: "flex-1",
|
|
2162
2240
|
value: s.info.extent,
|
|
2163
2241
|
onChange: c[2] || (c[2] = (y) => t("change", { extent: y }))
|
|
2164
2242
|
}, null, 8, ["value"])
|
|
2165
|
-
])) :
|
|
2166
|
-
s.layout.examTimeFlag ? (r(),
|
|
2243
|
+
])) : B("", !0),
|
|
2244
|
+
s.layout.examTimeFlag ? (r(), h("p", Yo, [
|
|
2167
2245
|
Ko,
|
|
2168
2246
|
ae(st, {
|
|
2169
2247
|
value: s.info.time,
|
|
@@ -2175,60 +2253,60 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2175
2253
|
onChange: c[3] || (c[3] = (y) => t("change", { time: y }))
|
|
2176
2254
|
}, null, 8, ["value"]),
|
|
2177
2255
|
Uo
|
|
2178
|
-
])) :
|
|
2179
|
-
s.layout.authorFlag ? (r(),
|
|
2256
|
+
])) : B("", !0),
|
|
2257
|
+
s.layout.authorFlag ? (r(), h("p", Vo, [
|
|
2180
2258
|
jo,
|
|
2181
|
-
ae(
|
|
2259
|
+
ae(He, {
|
|
2182
2260
|
class: "flex-1",
|
|
2183
2261
|
value: s.info.author,
|
|
2184
2262
|
onChange: c[4] || (c[4] = (y) => t("change", { author: y }))
|
|
2185
2263
|
}, null, 8, ["value"])
|
|
2186
|
-
])) :
|
|
2187
|
-
s.layout.reviewerFlag ? (r(),
|
|
2264
|
+
])) : B("", !0),
|
|
2265
|
+
s.layout.reviewerFlag ? (r(), h("p", Xo, [
|
|
2188
2266
|
Jo,
|
|
2189
|
-
ae(
|
|
2267
|
+
ae(He, {
|
|
2190
2268
|
class: "flex-1",
|
|
2191
2269
|
value: s.info.reviewer,
|
|
2192
2270
|
onChange: c[5] || (c[5] = (y) => t("change", { reviewer: y }))
|
|
2193
2271
|
}, null, 8, ["value"])
|
|
2194
|
-
])) :
|
|
2195
|
-
s.layout.totalScoreFlag ? (r(),
|
|
2272
|
+
])) : B("", !0),
|
|
2273
|
+
s.layout.totalScoreFlag ? (r(), h("p", Zo, [
|
|
2196
2274
|
ea,
|
|
2197
2275
|
a.value ? (r(), ee(ve, {
|
|
2198
2276
|
key: 0,
|
|
2199
2277
|
name: a.value,
|
|
2200
2278
|
class: "p-0 -translate-y-[1px]"
|
|
2201
|
-
}, null, 8, ["name"])) : (r(),
|
|
2279
|
+
}, null, 8, ["name"])) : (r(), h("span", ta, "分")),
|
|
2202
2280
|
k("span", null, ":" + te(l.value + (s.layout.writeScoreFlag ? s.info.writeScore : 0)), 1),
|
|
2203
2281
|
a.value ? (r(), ee(ve, {
|
|
2204
2282
|
key: 2,
|
|
2205
2283
|
name: a.value,
|
|
2206
2284
|
class: "p-0 -translate-y-[1px]"
|
|
2207
|
-
}, null, 8, ["name"])) : (r(),
|
|
2208
|
-
s.layout.writeScoreFlag ? (r(),
|
|
2285
|
+
}, null, 8, ["name"])) : (r(), h("span", oa, "分")),
|
|
2286
|
+
s.layout.writeScoreFlag ? (r(), h(O, { key: 4 }, [
|
|
2209
2287
|
k("span", null, "(试题" + te(l.value), 1),
|
|
2210
2288
|
a.value ? (r(), ee(ve, {
|
|
2211
2289
|
key: 0,
|
|
2212
2290
|
name: a.value,
|
|
2213
2291
|
class: "p-0 -translate-y-[1px]"
|
|
2214
|
-
}, null, 8, ["name"])) : (r(),
|
|
2292
|
+
}, null, 8, ["name"])) : (r(), h("span", aa, "分")),
|
|
2215
2293
|
k("span", null, "+卷面" + te(s.info.writeScore || 0), 1),
|
|
2216
2294
|
a.value ? (r(), ee(ve, {
|
|
2217
2295
|
key: 2,
|
|
2218
2296
|
name: a.value,
|
|
2219
2297
|
class: "p-0 -translate-y-[1px]"
|
|
2220
|
-
}, null, 8, ["name"])) : (r(),
|
|
2298
|
+
}, null, 8, ["name"])) : (r(), h("span", la, "分")),
|
|
2221
2299
|
na
|
|
2222
|
-
], 64)) :
|
|
2223
|
-
i.value ? (r(),
|
|
2300
|
+
], 64)) : B("", !0),
|
|
2301
|
+
i.value ? (r(), h(O, { key: 5 }, [
|
|
2224
2302
|
k("span", null, ";附加题:" + te(i.value), 1),
|
|
2225
2303
|
a.value ? (r(), ee(ve, {
|
|
2226
2304
|
key: 0,
|
|
2227
2305
|
name: a.value,
|
|
2228
2306
|
class: "p-0 -translate-y-[1px]"
|
|
2229
|
-
}, null, 8, ["name"])) : (r(),
|
|
2230
|
-
], 64)) :
|
|
2231
|
-
])) :
|
|
2307
|
+
}, null, 8, ["name"])) : (r(), h("span", sa, "分"))
|
|
2308
|
+
], 64)) : B("", !0)
|
|
2309
|
+
])) : B("", !0)
|
|
2232
2310
|
])
|
|
2233
2311
|
])
|
|
2234
2312
|
]));
|
|
@@ -2242,10 +2320,10 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2242
2320
|
emits: ["change"],
|
|
2243
2321
|
setup(e, { emit: t }) {
|
|
2244
2322
|
const o = ["examNumField", "examRoomField", "scoreField"];
|
|
2245
|
-
return (l, i) => (r(),
|
|
2323
|
+
return (l, i) => (r(), h("ul", {
|
|
2246
2324
|
class: oe(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2247
2325
|
}, [
|
|
2248
|
-
(r(),
|
|
2326
|
+
(r(), h(O, null, le(o, (a, s) => k("li", {
|
|
2249
2327
|
key: a,
|
|
2250
2328
|
class: oe(["flex flex-1 min-w-[12rem]", l.isRow && s && "ml-2"])
|
|
2251
2329
|
}, [
|
|
@@ -2263,7 +2341,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2263
2341
|
}), ra = ["data-xine"], ca = { class: "flex items-center" }, da = ["data-xine"], ua = ["data-xine"], ha = ["data-xine"], pa = /* @__PURE__ */ ne({
|
|
2264
2342
|
__name: "examInfoSeat",
|
|
2265
2343
|
setup(e) {
|
|
2266
|
-
return (t, o) => (r(),
|
|
2344
|
+
return (t, o) => (r(), h("div", {
|
|
2267
2345
|
class: "flex-shrink-0 border flex flex-col",
|
|
2268
2346
|
"data-xine": L(I).en_num_view
|
|
2269
2347
|
}, [
|
|
@@ -2278,12 +2356,12 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2278
2356
|
class: "flex-1 flex flex-col",
|
|
2279
2357
|
"data-xine": L(I).en_num
|
|
2280
2358
|
}, [
|
|
2281
|
-
(r(),
|
|
2359
|
+
(r(), h(O, null, le(3, (l, i) => k("p", {
|
|
2282
2360
|
key: l,
|
|
2283
2361
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2284
2362
|
"data-xine": L(I).en_num_group
|
|
2285
2363
|
}, [
|
|
2286
|
-
(r(),
|
|
2364
|
+
(r(), h(O, null, le(10, (a) => k("span", {
|
|
2287
2365
|
key: a,
|
|
2288
2366
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2289
2367
|
"data-xine": L(I).en_num_item
|
|
@@ -2296,7 +2374,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2296
2374
|
const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["data-xine"], _a = { class: "flex items-center border-r tracking-[5px] text_dir" }, fa = ["data-xine"], ga = ["data-xine"], ba = ["data-xine"], va = /* @__PURE__ */ ne({
|
|
2297
2375
|
__name: "examInfoShort",
|
|
2298
2376
|
setup(e) {
|
|
2299
|
-
return (t, o) => (r(),
|
|
2377
|
+
return (t, o) => (r(), h("div", {
|
|
2300
2378
|
class: "flex-shrink-0 border ml-4 flex min-h-[9.5rem]",
|
|
2301
2379
|
"data-xine": L(I).en_num_view
|
|
2302
2380
|
}, [
|
|
@@ -2311,12 +2389,12 @@ const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["da
|
|
|
2311
2389
|
class: "flex-1 flex flex-col",
|
|
2312
2390
|
"data-xine": L(I).en_num
|
|
2313
2391
|
}, [
|
|
2314
|
-
(r(),
|
|
2392
|
+
(r(), h(O, null, le(4, (l, i) => k("p", {
|
|
2315
2393
|
key: l,
|
|
2316
2394
|
class: oe(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
|
|
2317
2395
|
"data-xine": L(I).en_num_group
|
|
2318
2396
|
}, [
|
|
2319
|
-
(r(),
|
|
2397
|
+
(r(), h(O, null, le(10, (a) => k("span", {
|
|
2320
2398
|
key: a,
|
|
2321
2399
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2322
2400
|
"data-xine": L(I).en_num_item
|
|
@@ -2335,10 +2413,10 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2335
2413
|
emits: ["change"],
|
|
2336
2414
|
setup(e, { emit: t }) {
|
|
2337
2415
|
const o = ["nameField", "classField", "seatField"];
|
|
2338
|
-
return (l, i) => (r(),
|
|
2416
|
+
return (l, i) => (r(), h("ul", {
|
|
2339
2417
|
class: oe(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2340
2418
|
}, [
|
|
2341
|
-
(r(),
|
|
2419
|
+
(r(), h(O, null, le(o, (a, s) => k("li", {
|
|
2342
2420
|
key: a,
|
|
2343
2421
|
class: oe(["flex flex-1", l.isRow && s && "ml-2"])
|
|
2344
2422
|
}, [
|
|
@@ -2355,7 +2433,7 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2355
2433
|
}
|
|
2356
2434
|
}), ka = (e) => (qe("data-v-4d37cd56"), e = e(), Ye(), e), xa = ["data-xine"], Ca = /* @__PURE__ */ ka(() => /* @__PURE__ */ k("span", { class: "font-bold tips" }, "贴条码区域", -1)), Sa = [
|
|
2357
2435
|
Ca
|
|
2358
|
-
],
|
|
2436
|
+
], Ta = /* @__PURE__ */ ne({
|
|
2359
2437
|
__name: "examInfo",
|
|
2360
2438
|
props: {
|
|
2361
2439
|
layout: {},
|
|
@@ -2365,7 +2443,7 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2365
2443
|
emits: ["change"],
|
|
2366
2444
|
setup(e, { emit: t }) {
|
|
2367
2445
|
const o = e, l = W(() => o.layout.seatType === Se.none || !o.layout.seatBar), i = W(() => o.layout.column >= 3 && l.value), a = W(() => o.layout.column >= 3 && o.layout.seatType !== Se.none && o.layout.seatBar);
|
|
2368
|
-
return (s, c) => s.isBindFlag ?
|
|
2446
|
+
return (s, c) => s.isBindFlag ? B("", !0) : (r(), h("div", {
|
|
2369
2447
|
key: 0,
|
|
2370
2448
|
class: oe(["flex justify-between", (a.value || i.value) && "flex-wrap"])
|
|
2371
2449
|
}, [
|
|
@@ -2374,7 +2452,7 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2374
2452
|
isRow: "",
|
|
2375
2453
|
extent: s.info.extentInfo,
|
|
2376
2454
|
onChange: c[0] || (c[0] = (y) => t("change", y))
|
|
2377
|
-
}, null, 8, ["extent"])) :
|
|
2455
|
+
}, null, 8, ["extent"])) : B("", !0),
|
|
2378
2456
|
ae(wa, {
|
|
2379
2457
|
isRow: a.value,
|
|
2380
2458
|
extent: s.info.extentInfo,
|
|
@@ -2384,17 +2462,17 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2384
2462
|
key: 1,
|
|
2385
2463
|
extent: s.info.extentInfo,
|
|
2386
2464
|
onChange: c[2] || (c[2] = (y) => t("change", y))
|
|
2387
|
-
}, null, 8, ["extent"])) :
|
|
2388
|
-
s.layout.seatType === L(Se).seat ? (r(), ee(ma, { key: 2 })) : s.layout.seatType === L(Se).shortId ? (r(), ee(Nt, { key: 3 })) :
|
|
2389
|
-
s.layout.seatBar ? (r(),
|
|
2465
|
+
}, null, 8, ["extent"])) : B("", !0),
|
|
2466
|
+
s.layout.seatType === L(Se).seat ? (r(), ee(ma, { key: 2 })) : s.layout.seatType === L(Se).shortId ? (r(), ee(Nt, { key: 3 })) : B("", !0),
|
|
2467
|
+
s.layout.seatBar ? (r(), h("div", {
|
|
2390
2468
|
key: 4,
|
|
2391
2469
|
class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
|
|
2392
2470
|
"data-xine": L(I).en_code
|
|
2393
|
-
}, Sa, 8, xa)) :
|
|
2471
|
+
}, Sa, 8, xa)) : B("", !0)
|
|
2394
2472
|
], 2));
|
|
2395
2473
|
}
|
|
2396
2474
|
});
|
|
2397
|
-
const
|
|
2475
|
+
const $a = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (qe("data-v-936c144e"), e = e(), Ye(), e), Ia = {
|
|
2398
2476
|
key: 0,
|
|
2399
2477
|
class: "flex border mt-2 red_sheet"
|
|
2400
2478
|
}, La = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Fa = { class: "flex-1 overflow-hidden" }, Ea = { class: "flex items-center flex-1 pl-2" }, Pa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), Ma = { class: "flex items-center justify-center text-black" }, Aa = ["data-xine"], Da = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "[", -1)), Ba = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", { class: "ml-4" }, "]", -1)), Na = [
|
|
@@ -2403,7 +2481,7 @@ const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2403
2481
|
], Oa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2404
2482
|
/* @__PURE__ */ k("span", null, "正确填涂示例"),
|
|
2405
2483
|
/* @__PURE__ */ k("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2406
|
-
], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)),
|
|
2484
|
+
], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ha = /* @__PURE__ */ ne({
|
|
2407
2485
|
__name: "notice",
|
|
2408
2486
|
props: {
|
|
2409
2487
|
layout: {},
|
|
@@ -2423,17 +2501,17 @@ const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2423
2501
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2424
2502
|
];
|
|
2425
2503
|
});
|
|
2426
|
-
return (l, i) => (r(),
|
|
2427
|
-
l.layout.noteFlag ? (r(),
|
|
2504
|
+
return (l, i) => (r(), h(O, null, [
|
|
2505
|
+
l.layout.noteFlag ? (r(), h("div", Ia, [
|
|
2428
2506
|
La,
|
|
2429
2507
|
k("div", Fa, [
|
|
2430
|
-
(r(!0),
|
|
2508
|
+
(r(!0), h(O, null, le(o.value, (a) => (r(), h("p", {
|
|
2431
2509
|
key: a,
|
|
2432
2510
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2433
2511
|
}, te(a), 1))), 128))
|
|
2434
2512
|
])
|
|
2435
|
-
])) :
|
|
2436
|
-
l.layout.lackFlag ? (r(),
|
|
2513
|
+
])) : B("", !0),
|
|
2514
|
+
l.layout.lackFlag ? (r(), h("div", {
|
|
2437
2515
|
key: 1,
|
|
2438
2516
|
class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2439
2517
|
}, [
|
|
@@ -2448,12 +2526,12 @@ const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2448
2526
|
])
|
|
2449
2527
|
]),
|
|
2450
2528
|
Oa
|
|
2451
|
-
], 2)) :
|
|
2529
|
+
], 2)) : B("", !0),
|
|
2452
2530
|
za
|
|
2453
2531
|
], 64));
|
|
2454
2532
|
}
|
|
2455
2533
|
});
|
|
2456
|
-
const
|
|
2534
|
+
const Ra = /* @__PURE__ */ me(Ha, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Wa = (e, t = "", o = !0, l = "children") => {
|
|
2457
2535
|
let i = [];
|
|
2458
2536
|
const a = (s) => {
|
|
2459
2537
|
(s[l] || []).length ? (o && i.push(t ? s[t] : s[l]), s[l].forEach((c) => a(c))) : i.push(t ? s[t] : s);
|
|
@@ -2469,7 +2547,7 @@ function Ot(e) {
|
|
|
2469
2547
|
return a ? `${a > 1 ? t[a] : ""}十${s ? t[s] : ""}` : t[s];
|
|
2470
2548
|
})[e + 1];
|
|
2471
2549
|
}
|
|
2472
|
-
function
|
|
2550
|
+
function Tt(e) {
|
|
2473
2551
|
return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
|
|
2474
2552
|
}
|
|
2475
2553
|
const Ga = {
|
|
@@ -2489,9 +2567,9 @@ const Ga = {
|
|
|
2489
2567
|
},
|
|
2490
2568
|
setup(e) {
|
|
2491
2569
|
const t = e, o = W(() => t.data.filter((l) => l.problemType));
|
|
2492
|
-
return (l, i) => l.layout.scoreFlag ? (r(),
|
|
2570
|
+
return (l, i) => l.layout.scoreFlag ? (r(), h("ul", Ga, [
|
|
2493
2571
|
Qa,
|
|
2494
|
-
(r(!0),
|
|
2572
|
+
(r(!0), h(O, null, le(o.value, (a, s) => (r(), h("li", {
|
|
2495
2573
|
key: a.id,
|
|
2496
2574
|
class: "flex-1 flex flex-col border-l"
|
|
2497
2575
|
}, [
|
|
@@ -2499,7 +2577,7 @@ const Ga = {
|
|
|
2499
2577
|
Ya
|
|
2500
2578
|
]))), 128)),
|
|
2501
2579
|
Ka
|
|
2502
|
-
])) :
|
|
2580
|
+
])) : B("", !0);
|
|
2503
2581
|
}
|
|
2504
2582
|
}), Va = /* @__PURE__ */ ne({
|
|
2505
2583
|
__name: "columnDom",
|
|
@@ -2513,12 +2591,12 @@ const Ga = {
|
|
|
2513
2591
|
const o = e, l = V(), i = V();
|
|
2514
2592
|
t({ col: l, colView: i });
|
|
2515
2593
|
const a = W(() => {
|
|
2516
|
-
const { top: y, width: n, height:
|
|
2594
|
+
const { top: y, width: n, height: m, left: A } = o.styleInfo;
|
|
2517
2595
|
return {
|
|
2518
2596
|
top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
|
|
2519
|
-
left: `${parseFloat(
|
|
2597
|
+
left: `${parseFloat(A) - Le.left}px`,
|
|
2520
2598
|
width: `${parseFloat(n) + Le.left + Le.right}px`,
|
|
2521
|
-
height: `${parseFloat(
|
|
2599
|
+
height: `${parseFloat(m) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
|
|
2522
2600
|
};
|
|
2523
2601
|
}), s = W(() => ({
|
|
2524
2602
|
left: `${Le.left - 1}px`,
|
|
@@ -2526,28 +2604,28 @@ const Ga = {
|
|
|
2526
2604
|
bottom: `${Le.bottom - 1}px`,
|
|
2527
2605
|
right: `${Le.right - 1}px`
|
|
2528
2606
|
})), c = W(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2529
|
-
return (y, n) => (r(),
|
|
2530
|
-
y.showColBorder ? (r(),
|
|
2607
|
+
return (y, n) => (r(), h(O, null, [
|
|
2608
|
+
y.showColBorder ? (r(), h("div", {
|
|
2531
2609
|
key: 0,
|
|
2532
2610
|
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
|
|
2533
|
-
style:
|
|
2611
|
+
style: X(a.value)
|
|
2534
2612
|
}, [
|
|
2535
2613
|
k("span", {
|
|
2536
2614
|
class: "absolute border border-black",
|
|
2537
|
-
style:
|
|
2615
|
+
style: X(s.value)
|
|
2538
2616
|
}, null, 4)
|
|
2539
|
-
], 6)) :
|
|
2617
|
+
], 6)) : B("", !0),
|
|
2540
2618
|
k("div", {
|
|
2541
2619
|
class: "absolute overflow-hidden",
|
|
2542
2620
|
ref_key: "colView",
|
|
2543
2621
|
ref: i,
|
|
2544
|
-
style:
|
|
2622
|
+
style: X(y.styleInfo)
|
|
2545
2623
|
}, [
|
|
2546
2624
|
k("div", {
|
|
2547
2625
|
ref_key: "col",
|
|
2548
2626
|
ref: l,
|
|
2549
2627
|
class: "overflow-hidden __col__",
|
|
2550
|
-
style:
|
|
2628
|
+
style: X({ height: y.styleInfo.contentHeight })
|
|
2551
2629
|
}, [
|
|
2552
2630
|
mt(y.$slots, "default", {}, void 0, !0)
|
|
2553
2631
|
], 4)
|
|
@@ -2572,47 +2650,47 @@ const ja = /* @__PURE__ */ me(Va, [["__scopeId", "data-v-e102e805"]]), Xa = (e)
|
|
|
2572
2650
|
},
|
|
2573
2651
|
setup(e) {
|
|
2574
2652
|
const t = V();
|
|
2575
|
-
return (o, l) => o.isBindFlag ? (r(),
|
|
2653
|
+
return (o, l) => o.isBindFlag ? (r(), h("div", {
|
|
2576
2654
|
key: 0,
|
|
2577
|
-
style:
|
|
2655
|
+
style: X({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2578
2656
|
class: oe([o.currentPage % 2 && "right_view"]),
|
|
2579
2657
|
ref_key: "view",
|
|
2580
2658
|
ref: t
|
|
2581
2659
|
}, [
|
|
2582
|
-
o.currentPage % 2 ? (r(),
|
|
2660
|
+
o.currentPage % 2 ? (r(), h("div", {
|
|
2583
2661
|
key: 0,
|
|
2584
2662
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2585
|
-
style:
|
|
2586
|
-
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(),
|
|
2663
|
+
style: X({ width: `${o.height - 20}px`, height: `${o.width}px` })
|
|
2664
|
+
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), h("div", {
|
|
2587
2665
|
key: 1,
|
|
2588
2666
|
class: "relative flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2589
|
-
style:
|
|
2667
|
+
style: X({ width: `${o.height - 20}px` })
|
|
2590
2668
|
}, [
|
|
2591
2669
|
k("div", Ja, [
|
|
2592
|
-
(r(!0),
|
|
2593
|
-
a === 2 && o.bindInfo.length === 5 ? (r(),
|
|
2670
|
+
(r(!0), h(O, null, le(o.bindInfo, (i, a) => (r(), h(O, { key: i }, [
|
|
2671
|
+
a === 2 && o.bindInfo.length === 5 ? (r(), h("span", Za)) : B("", !0),
|
|
2594
2672
|
k("span", {
|
|
2595
2673
|
class: oe(["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%]"])
|
|
2596
2674
|
}, te(i), 3)
|
|
2597
2675
|
], 64))), 128))
|
|
2598
2676
|
]),
|
|
2599
|
-
o.bindSeatType === L(Se).none ? (r(),
|
|
2677
|
+
o.bindSeatType === L(Se).none ? (r(), h("div", {
|
|
2600
2678
|
key: 0,
|
|
2601
2679
|
class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2602
2680
|
"data-xine": L(I).en_code
|
|
2603
2681
|
}, ol, 8, el)) : o.bindSeatType === L(Se).shortId ? (r(), ee(Nt, {
|
|
2604
2682
|
key: 1,
|
|
2605
2683
|
class: "h-40"
|
|
2606
|
-
})) :
|
|
2684
|
+
})) : B("", !0),
|
|
2607
2685
|
k("span", {
|
|
2608
2686
|
class: "absolute right-0 bottom-0",
|
|
2609
2687
|
"data-xine": L(I).bind_line
|
|
2610
2688
|
}, null, 8, al)
|
|
2611
2689
|
], 4))
|
|
2612
|
-
], 6)) :
|
|
2690
|
+
], 6)) : B("", !0);
|
|
2613
2691
|
}
|
|
2614
2692
|
});
|
|
2615
|
-
const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]),
|
|
2693
|
+
const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */ ne({
|
|
2616
2694
|
__name: "simple",
|
|
2617
2695
|
props: {
|
|
2618
2696
|
item: {},
|
|
@@ -2623,18 +2701,18 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2623
2701
|
const i = t.item.score;
|
|
2624
2702
|
return [i, Math.round(i / 2 * 100) / 100, 0];
|
|
2625
2703
|
});
|
|
2626
|
-
return (i, a) => (r(),
|
|
2704
|
+
return (i, a) => (r(), h("div", {
|
|
2627
2705
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2628
|
-
"data-block": L(
|
|
2706
|
+
"data-block": L($e),
|
|
2629
2707
|
"data-xine": L(I).score
|
|
2630
2708
|
}, [
|
|
2631
2709
|
k("ul", {
|
|
2632
2710
|
class: "flex h-full divide-x divide-solid",
|
|
2633
2711
|
"data-xine": L(I).score_base
|
|
2634
2712
|
}, [
|
|
2635
|
-
(r(!0),
|
|
2713
|
+
(r(!0), h(O, null, le(l.value, (s, c) => (r(), h("li", {
|
|
2636
2714
|
class: "flex items-center justify-center relative score_line",
|
|
2637
|
-
style:
|
|
2715
|
+
style: X({ width: `${L(ot)[i.layout.scoreLineSize].value}px` }),
|
|
2638
2716
|
"data-xine": L(I).score_item
|
|
2639
2717
|
}, [
|
|
2640
2718
|
k("span", pl, te(s), 1),
|
|
@@ -2660,53 +2738,53 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2660
2738
|
});
|
|
2661
2739
|
const y = () => {
|
|
2662
2740
|
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || lt(() => {
|
|
2663
|
-
let
|
|
2741
|
+
let m = [];
|
|
2664
2742
|
if (t.item.scoreLineType === tt.custom)
|
|
2665
|
-
|
|
2743
|
+
m = [[...t.item.customScore, 0]];
|
|
2666
2744
|
else if (t.item.scoreStep)
|
|
2667
|
-
|
|
2745
|
+
m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((A) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * A)).reverse());
|
|
2668
2746
|
else {
|
|
2669
|
-
const
|
|
2670
|
-
l.value =
|
|
2747
|
+
const A = o.value.offsetWidth, p = ot[t.layout.scoreLineSize].value + 1;
|
|
2748
|
+
l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((M) => M && M * 10).reverse()), m.push([...Array(10).keys()].reverse()), a.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2671
2749
|
}
|
|
2672
|
-
t.item.hasHalfScore &&
|
|
2750
|
+
t.item.hasHalfScore && m.push([0.5]), s.value = m, i.value = !!m.flat().find((A) => `${A}`.length > 3);
|
|
2673
2751
|
});
|
|
2674
|
-
}, n = (
|
|
2675
|
-
return (
|
|
2676
|
-
|
|
2752
|
+
}, n = (m) => t.item.hasHalfScore ? [I.score_half, I.score_base, I.score_tenbit][s.value.length - m - 1] : [I.score_base, I.score_tenbit][s.value.length - m - 1];
|
|
2753
|
+
return (m, A) => m.layout.handReadFlag ? (r(), h(O, { key: 0 }, [
|
|
2754
|
+
m.layout.simpleScoreBarFlag && !m.static ? (r(), ee(ml, {
|
|
2677
2755
|
key: 0,
|
|
2678
|
-
item:
|
|
2679
|
-
layout:
|
|
2680
|
-
}, null, 8, ["item", "layout"])) : (r(),
|
|
2756
|
+
item: m.item,
|
|
2757
|
+
layout: m.layout
|
|
2758
|
+
}, null, 8, ["item", "layout"])) : (r(), h("div", {
|
|
2681
2759
|
key: 1,
|
|
2682
2760
|
ref_key: "view",
|
|
2683
2761
|
ref: o,
|
|
2684
|
-
class: oe([s.value.length ? "inline-flex" : "flex-1", "max-w-full border border-l-2 border-r-2 divide-x divide-solid"]),
|
|
2685
|
-
"data-block": L(
|
|
2762
|
+
class: oe([s.value.length ? "inline-flex" : "flex-1", "max-w-full overflow-hidden border border-l-2 border-r-2 divide-x divide-solid"]),
|
|
2763
|
+
"data-block": L($e),
|
|
2686
2764
|
"data-xine": L(I).score
|
|
2687
2765
|
}, [
|
|
2688
|
-
(r(!0),
|
|
2766
|
+
(r(!0), h(O, null, le(s.value, (p, M) => (r(), h("ul", {
|
|
2689
2767
|
class: "flex divide-x divide-solid",
|
|
2690
|
-
"data-xine": n(
|
|
2768
|
+
"data-xine": n(M)
|
|
2691
2769
|
}, [
|
|
2692
|
-
(r(!0),
|
|
2770
|
+
(r(!0), h(O, null, le(p, (z) => (r(), h("li", {
|
|
2693
2771
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2694
|
-
style:
|
|
2772
|
+
style: X({ width: `${L(ot)[m.layout.scoreLineSize].value}px` }),
|
|
2695
2773
|
"data-xine": z.toString() ? L(I).score_item : ""
|
|
2696
2774
|
}, [
|
|
2697
2775
|
k("span", {
|
|
2698
2776
|
class: oe(["whitespace-nowrap", c.value && "origin-right", i.value && "scale-75"])
|
|
2699
|
-
}, te(
|
|
2777
|
+
}, te(m.layout.minusFlag && z.toString().length && !c.value ? "-" : "") + te(z), 3),
|
|
2700
2778
|
c.value && z.toString().length ? (r(), ee(ve, {
|
|
2701
2779
|
key: 0,
|
|
2702
2780
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2703
|
-
name:
|
|
2781
|
+
name: m.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2704
2782
|
width: i.value ? 0.9 : 1.2
|
|
2705
|
-
}, null, 8, ["name", "width"])) :
|
|
2783
|
+
}, null, 8, ["name", "width"])) : B("", !0)
|
|
2706
2784
|
], 12, fl))), 256))
|
|
2707
2785
|
], 8, _l))), 256))
|
|
2708
2786
|
], 10, yl))
|
|
2709
|
-
], 64)) :
|
|
2787
|
+
], 64)) : B("", !0);
|
|
2710
2788
|
}
|
|
2711
2789
|
}), zt = (e) => (qe("data-v-a8dbd3b0"), e = e(), Ye(), e), gl = ["data-xine"], bl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), vl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), wl = /* @__PURE__ */ ne({
|
|
2712
2790
|
__name: "writeScore",
|
|
@@ -2715,7 +2793,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2715
2793
|
layout: {}
|
|
2716
2794
|
},
|
|
2717
2795
|
setup(e) {
|
|
2718
|
-
return (t, o) => (r(),
|
|
2796
|
+
return (t, o) => (r(), h("div", {
|
|
2719
2797
|
class: "flex items-center mb-2",
|
|
2720
2798
|
"data-xine": L(I).write_view
|
|
2721
2799
|
}, [
|
|
@@ -2736,19 +2814,19 @@ const kl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-a8dbd3b0"]]), xl = ["in
|
|
|
2736
2814
|
},
|
|
2737
2815
|
setup(e) {
|
|
2738
2816
|
const t = e;
|
|
2739
|
-
return (o, l) => (r(),
|
|
2817
|
+
return (o, l) => (r(), h("div", {
|
|
2740
2818
|
innerHTML: t.data,
|
|
2741
2819
|
class: "base-problem-font problem-base"
|
|
2742
2820
|
}, null, 8, xl));
|
|
2743
2821
|
}
|
|
2744
2822
|
});
|
|
2745
|
-
const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["data-tag", "data-block"],
|
|
2823
|
+
const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["data-tag", "data-block"], Tl = /* @__PURE__ */ ne({
|
|
2746
2824
|
__name: "notArea",
|
|
2747
2825
|
props: {
|
|
2748
2826
|
item: {}
|
|
2749
2827
|
},
|
|
2750
2828
|
setup(e) {
|
|
2751
|
-
return (t, o) => (r(),
|
|
2829
|
+
return (t, o) => (r(), h("div", {
|
|
2752
2830
|
class: "py-2 border border-dashed rounded-lg mx-1 my-2",
|
|
2753
2831
|
"data-tag": t.item.__tag__,
|
|
2754
2832
|
"data-block": L(ft)
|
|
@@ -2759,13 +2837,13 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
|
|
|
2759
2837
|
}, null, 8, ["data-content", "data"])
|
|
2760
2838
|
], 8, Sl));
|
|
2761
2839
|
}
|
|
2762
|
-
}),
|
|
2840
|
+
}), $l = (e) => (qe("data-v-8b8ee819"), e = e(), Ye(), e), Il = ["data-tag", "data-block"], Ll = {
|
|
2763
2841
|
key: 0,
|
|
2764
2842
|
class: "flex-shrink-0"
|
|
2765
2843
|
}, Fl = { key: 0 }, El = {
|
|
2766
2844
|
key: 1,
|
|
2767
2845
|
class: "indent-2"
|
|
2768
|
-
}, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */
|
|
2846
|
+
}, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ $l(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */ ne({
|
|
2769
2847
|
__name: "index",
|
|
2770
2848
|
props: {
|
|
2771
2849
|
item: {},
|
|
@@ -2776,71 +2854,71 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
|
|
|
2776
2854
|
},
|
|
2777
2855
|
emits: ["click", "dbclick"],
|
|
2778
2856
|
setup(e, { emit: t }) {
|
|
2779
|
-
const o = e, l = V(!1), i = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), s = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Wa(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = W(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((
|
|
2857
|
+
const o = e, l = V(!1), i = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), s = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Wa(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = W(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((m) => m.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
|
|
2780
2858
|
return Ke(() => {
|
|
2781
2859
|
o.isFirst && o.item.problemType && (i.value.offsetHeight / parseFloat(window.getComputedStyle(i.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
2782
|
-
}), (n,
|
|
2860
|
+
}), (n, m) => n.item.problemType ? (r(), h("div", {
|
|
2783
2861
|
key: 1,
|
|
2784
2862
|
class: oe(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
2785
|
-
onClick:
|
|
2863
|
+
onClick: m[2] || (m[2] = Ee((A) => t("click", n.item), ["stop"])),
|
|
2786
2864
|
ref_key: "view",
|
|
2787
2865
|
ref: i,
|
|
2788
2866
|
"data-tag": n.item.__tag__,
|
|
2789
|
-
"data-block": L(
|
|
2790
|
-
onDblclick:
|
|
2867
|
+
"data-block": L($e),
|
|
2868
|
+
onDblclick: m[3] || (m[3] = Ee((A) => t("dbclick", n.item), ["stop"]))
|
|
2791
2869
|
}, [
|
|
2792
|
-
!n.layout.listIndexFlag && n.item.sub ? (r(),
|
|
2870
|
+
!n.layout.listIndexFlag && n.item.sub ? (r(), h("span", Ll, te(L(Ot)(n.item.sub - 1)) + "、", 1)) : B("", !0),
|
|
2793
2871
|
k("div", null, [
|
|
2794
2872
|
k("div", null, [
|
|
2795
2873
|
k("span", null, te(n.item.name), 1),
|
|
2796
|
-
n.item.desc ? (r(),
|
|
2797
|
-
n.layout.scoreTipFlag ? (r(),
|
|
2874
|
+
n.item.desc ? (r(), h("span", Fl, "(" + te(n.item.desc) + ")", 1)) : B("", !0),
|
|
2875
|
+
n.layout.scoreTipFlag ? (r(), h("span", El, "(共" + te(c.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : B("", !0)
|
|
2798
2876
|
]),
|
|
2799
|
-
a.value || s.value ? (r(),
|
|
2800
|
-
a.value ? (r(),
|
|
2877
|
+
a.value || s.value ? (r(), h("div", Pl, [
|
|
2878
|
+
a.value ? (r(), h("p", Ml, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), h("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2801
2879
|
k("p", {
|
|
2802
2880
|
class: "flex flex-wrap",
|
|
2803
|
-
"data-block": L(
|
|
2881
|
+
"data-block": L($e),
|
|
2804
2882
|
"data-xine": L(I).choice + n.item.id
|
|
2805
2883
|
}, [
|
|
2806
2884
|
Bl,
|
|
2807
|
-
(r(!0),
|
|
2808
|
-
k("span", null, te(
|
|
2885
|
+
(r(!0), h(O, null, le(y.value, (A, p) => (r(), h("span", Nl, [
|
|
2886
|
+
k("span", null, te(A), 1),
|
|
2809
2887
|
k("span", {
|
|
2810
2888
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2811
2889
|
"data-xine": L(I).fill
|
|
2812
2890
|
}, null, 8, Ol)
|
|
2813
2891
|
]))), 256))
|
|
2814
2892
|
], 8, Dl)
|
|
2815
|
-
])) :
|
|
2893
|
+
])) : B("", !0)
|
|
2816
2894
|
])
|
|
2817
|
-
], 42, Il)) : (r(), ee(
|
|
2895
|
+
], 42, Il)) : (r(), ee(Tl, {
|
|
2818
2896
|
key: 0,
|
|
2819
2897
|
class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
|
|
2820
2898
|
item: n.item,
|
|
2821
|
-
onClick:
|
|
2822
|
-
onDblclick:
|
|
2899
|
+
onClick: m[0] || (m[0] = Ee((A) => t("click", n.item), ["stop"])),
|
|
2900
|
+
onDblclick: m[1] || (m[1] = Ee((A) => t("dbclick", n.item), ["stop"]))
|
|
2823
2901
|
}, null, 8, ["class", "item"]));
|
|
2824
2902
|
}
|
|
2825
2903
|
});
|
|
2826
|
-
const It = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]),
|
|
2827
|
-
function
|
|
2904
|
+
const It = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Hl = {};
|
|
2905
|
+
function Rl(e, t) {
|
|
2828
2906
|
return null;
|
|
2829
2907
|
}
|
|
2830
|
-
const Wl = /* @__PURE__ */ me(
|
|
2908
|
+
const Wl = /* @__PURE__ */ me(Hl, [["render", Rl]]), Gl = ["data-block"], Ql = ["data-xine"], ql = /* @__PURE__ */ ne({
|
|
2831
2909
|
__name: "sheet",
|
|
2832
2910
|
props: {
|
|
2833
2911
|
item: {},
|
|
2834
2912
|
layout: {}
|
|
2835
2913
|
},
|
|
2836
2914
|
setup(e) {
|
|
2837
|
-
return (t, o) => (r(),
|
|
2915
|
+
return (t, o) => (r(), h("div", {
|
|
2838
2916
|
class: "flex items-center red_sheet",
|
|
2839
|
-
"data-block": L(
|
|
2917
|
+
"data-block": L($e)
|
|
2840
2918
|
}, [
|
|
2841
|
-
(r(!0),
|
|
2919
|
+
(r(!0), h(O, null, le(t.item.optList, (l, i) => (r(), h("span", {
|
|
2842
2920
|
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(ut)[i]) && "bg-success border-success"]),
|
|
2843
|
-
style:
|
|
2921
|
+
style: X({ width: `${L(Fe)[t.layout.fillSize].value + 1}px`, height: `${L(Fe)[t.layout.fillSize].height + 1}px` }),
|
|
2844
2922
|
"data-xine": L(I).fill + i
|
|
2845
2923
|
}, [
|
|
2846
2924
|
ae(ve, {
|
|
@@ -2869,14 +2947,14 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
|
|
|
2869
2947
|
width: `${Fe[t.layout.fillSize].value + 1}px`,
|
|
2870
2948
|
height: `${Fe[t.layout.fillSize].height + 1}px`
|
|
2871
2949
|
}));
|
|
2872
|
-
return (l, i) => (r(),
|
|
2950
|
+
return (l, i) => (r(), h("div", {
|
|
2873
2951
|
class: "flex red_sheet",
|
|
2874
|
-
"data-block": L(
|
|
2952
|
+
"data-block": L($e)
|
|
2875
2953
|
}, [
|
|
2876
|
-
l.item.style[L(d)[l.layout.mode].decide_a] === L(f).decide_1 ? (r(),
|
|
2954
|
+
l.item.style[L(d)[l.layout.mode].decide_a] === L(f).decide_1 ? (r(), h(O, { key: 0 }, [
|
|
2877
2955
|
k("span", {
|
|
2878
2956
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2879
|
-
style:
|
|
2957
|
+
style: X(o.value),
|
|
2880
2958
|
"data-xine": L(I).fill + "0"
|
|
2881
2959
|
}, [
|
|
2882
2960
|
ae(ve, {
|
|
@@ -2886,7 +2964,7 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
|
|
|
2886
2964
|
], 14, jl),
|
|
2887
2965
|
k("span", {
|
|
2888
2966
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2889
|
-
style:
|
|
2967
|
+
style: X(o.value),
|
|
2890
2968
|
"data-xine": L(I).fill + "1"
|
|
2891
2969
|
}, [
|
|
2892
2970
|
ae(ve, {
|
|
@@ -2894,15 +2972,15 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
|
|
|
2894
2972
|
width: 1
|
|
2895
2973
|
})
|
|
2896
2974
|
], 14, Xl)
|
|
2897
|
-
], 64)) : (r(),
|
|
2975
|
+
], 64)) : (r(), h(O, { key: 1 }, [
|
|
2898
2976
|
k("span", {
|
|
2899
2977
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2900
|
-
style:
|
|
2978
|
+
style: X(o.value),
|
|
2901
2979
|
"data-xine": L(I).fill + "0"
|
|
2902
2980
|
}, en, 14, Jl),
|
|
2903
2981
|
k("span", {
|
|
2904
2982
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2905
|
-
style:
|
|
2983
|
+
style: X(o.value),
|
|
2906
2984
|
"data-xine": L(I).fill + "1"
|
|
2907
2985
|
}, an, 14, tn)
|
|
2908
2986
|
], 64))
|
|
@@ -2924,22 +3002,22 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
|
|
|
2924
3002
|
},
|
|
2925
3003
|
setup(e) {
|
|
2926
3004
|
const t = e, o = W(() => t.layout.scoreAddStars === nt.star.code);
|
|
2927
|
-
return (l, i) => l.layout.handReadFlag ? (r(),
|
|
3005
|
+
return (l, i) => l.layout.handReadFlag ? (r(), h("div", {
|
|
2928
3006
|
key: 0,
|
|
2929
3007
|
class: "score_fill flex items-center",
|
|
2930
|
-
"data-block": L(
|
|
3008
|
+
"data-block": L($e),
|
|
2931
3009
|
"data-xine": L(I).fill
|
|
2932
3010
|
}, [
|
|
2933
|
-
l.showScoreCn ? (r(),
|
|
3011
|
+
l.showScoreCn ? (r(), h("span", dn, [
|
|
2934
3012
|
k("span", null, te(o.value ? "" : "-") + te(l.item.score), 1),
|
|
2935
3013
|
o.value ? (r(), ee(ve, {
|
|
2936
3014
|
key: 0,
|
|
2937
3015
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2938
3016
|
name: "fiveArrowLine",
|
|
2939
3017
|
width: 1.2
|
|
2940
|
-
})) : (r(),
|
|
2941
|
-
])) :
|
|
2942
|
-
], 8, cn)) :
|
|
3018
|
+
})) : (r(), h("span", un, "分"))
|
|
3019
|
+
])) : B("", !0)
|
|
3020
|
+
], 8, cn)) : B("", !0);
|
|
2943
3021
|
}
|
|
2944
3022
|
}), pn = ["data-xine"], mn = /* @__PURE__ */ ne({
|
|
2945
3023
|
__name: "sheet",
|
|
@@ -2949,10 +3027,10 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
|
|
|
2949
3027
|
},
|
|
2950
3028
|
setup(e) {
|
|
2951
3029
|
const t = e;
|
|
2952
|
-
return (o, l) => (r(),
|
|
3030
|
+
return (o, l) => (r(), h(O, null, [
|
|
2953
3031
|
k("div", {
|
|
2954
3032
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2955
|
-
style:
|
|
3033
|
+
style: X({ height: `${20 + o.item.style[L(d)[t.layout.mode].fill_e]}px` }),
|
|
2956
3034
|
"data-xine": L(I).fill_line
|
|
2957
3035
|
}, null, 12, pn),
|
|
2958
3036
|
o.layout.handReadFlag ? (r(), ee(hn, {
|
|
@@ -2960,7 +3038,7 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
|
|
|
2960
3038
|
item: o.item,
|
|
2961
3039
|
layout: o.layout,
|
|
2962
3040
|
showScoreCn: o.layout.fillScoreFlag
|
|
2963
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
3041
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : B("", !0)
|
|
2964
3042
|
], 64));
|
|
2965
3043
|
}
|
|
2966
3044
|
}), yn = {};
|
|
@@ -2975,13 +3053,13 @@ const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = {
|
|
|
2975
3053
|
isFirst: { type: Boolean }
|
|
2976
3054
|
},
|
|
2977
3055
|
setup(e) {
|
|
2978
|
-
return (t, o) => (r(),
|
|
3056
|
+
return (t, o) => (r(), h("div", {
|
|
2979
3057
|
class: oe(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
2980
3058
|
}, [
|
|
2981
|
-
t.item.chunk ?
|
|
3059
|
+
t.item.chunk ? B("", !0) : (r(), h("div", {
|
|
2982
3060
|
key: 0,
|
|
2983
3061
|
class: "absolute left-0 top-2 w-full flex items-center",
|
|
2984
|
-
"data-block": L(
|
|
3062
|
+
"data-block": L($e)
|
|
2985
3063
|
}, [
|
|
2986
3064
|
mt(t.$slots, "default"),
|
|
2987
3065
|
k("div", bn, [
|
|
@@ -3001,42 +3079,46 @@ const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = {
|
|
|
3001
3079
|
function kn(e, t) {
|
|
3002
3080
|
return null;
|
|
3003
3081
|
}
|
|
3004
|
-
const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */
|
|
3082
|
+
const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */ ne({
|
|
3005
3083
|
__name: "sheet",
|
|
3006
3084
|
props: {
|
|
3007
3085
|
item: {},
|
|
3008
3086
|
layout: {}
|
|
3009
3087
|
},
|
|
3010
3088
|
setup(e) {
|
|
3011
|
-
|
|
3012
|
-
|
|
3089
|
+
const t = e;
|
|
3090
|
+
return (o, l) => (r(), h(O, null, [
|
|
3091
|
+
k("div", {
|
|
3092
|
+
class: "flex-1 border-b self-end mr-2",
|
|
3093
|
+
style: X({ height: `${20 + o.item.style[L(d)[t.layout.mode].easy_slove_d]}px` })
|
|
3094
|
+
}, null, 4),
|
|
3013
3095
|
ae(it, {
|
|
3014
|
-
item:
|
|
3015
|
-
layout:
|
|
3096
|
+
item: o.item,
|
|
3097
|
+
layout: o.layout
|
|
3016
3098
|
}, null, 8, ["item", "layout"])
|
|
3017
3099
|
], 64));
|
|
3018
3100
|
}
|
|
3019
|
-
}),
|
|
3101
|
+
}), Sn = {};
|
|
3020
3102
|
function Tn(e, t) {
|
|
3021
3103
|
return null;
|
|
3022
3104
|
}
|
|
3023
|
-
const
|
|
3024
|
-
function
|
|
3105
|
+
const $n = /* @__PURE__ */ me(Sn, [["render", Tn]]), In = {};
|
|
3106
|
+
function Ln(e, t) {
|
|
3025
3107
|
return null;
|
|
3026
3108
|
}
|
|
3027
|
-
const
|
|
3028
|
-
function
|
|
3109
|
+
const Fn = /* @__PURE__ */ me(In, [["render", Ln]]), En = {};
|
|
3110
|
+
function Pn(e, t) {
|
|
3029
3111
|
return null;
|
|
3030
3112
|
}
|
|
3031
|
-
const
|
|
3032
|
-
function
|
|
3113
|
+
const Mn = /* @__PURE__ */ me(En, [["render", Pn]]), An = {};
|
|
3114
|
+
function Dn(e, t) {
|
|
3033
3115
|
return null;
|
|
3034
3116
|
}
|
|
3035
|
-
const
|
|
3036
|
-
function
|
|
3117
|
+
const Bn = /* @__PURE__ */ me(An, [["render", Dn]]), Nn = {};
|
|
3118
|
+
function On(e, t) {
|
|
3037
3119
|
return null;
|
|
3038
3120
|
}
|
|
3039
|
-
const
|
|
3121
|
+
const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn = ["data-block"], Wn = { class: "flex-1 flex justify-end overflow-hidden" }, Gn = ["data-block", "data-size"], Qn = ["data-block"], qn = /* @__PURE__ */ ne({
|
|
3040
3122
|
__name: "sheet",
|
|
3041
3123
|
props: {
|
|
3042
3124
|
item: {},
|
|
@@ -3044,14 +3126,14 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3044
3126
|
},
|
|
3045
3127
|
setup(e) {
|
|
3046
3128
|
const t = e, o = V(0), l = V({}), i = V(), a = V(), s = V([]), c = W(() => {
|
|
3047
|
-
const
|
|
3048
|
-
return
|
|
3129
|
+
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
|
|
3130
|
+
return p ? Math.ceil(p / (o.value || p)) : 0;
|
|
3049
3131
|
}), y = W(() => parseInt(t.item.style[d[t.layout.mode].art_b])), n = W(() => ({
|
|
3050
3132
|
width: `${o.value * y.value}px`,
|
|
3051
3133
|
height: `${y.value}px`
|
|
3052
|
-
})),
|
|
3134
|
+
})), m = W(() => ({
|
|
3053
3135
|
width: `${y.value}px`
|
|
3054
|
-
})),
|
|
3136
|
+
})), A = W(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3055
3137
|
return Ke(() => {
|
|
3056
3138
|
if (!t.item.artBlock)
|
|
3057
3139
|
return;
|
|
@@ -3059,77 +3141,77 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3059
3141
|
o.value = Math.floor(i.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3060
3142
|
if (!i.value)
|
|
3061
3143
|
return;
|
|
3062
|
-
const
|
|
3144
|
+
const J = i.value.getBoundingClientRect(), D = a.value[0].getBoundingClientRect();
|
|
3063
3145
|
l.value = {
|
|
3064
|
-
left: `${
|
|
3065
|
-
top: `${
|
|
3146
|
+
left: `${D.left - J.left}px`,
|
|
3147
|
+
top: `${D.top - J.top}px`
|
|
3066
3148
|
};
|
|
3067
3149
|
}, 20);
|
|
3068
3150
|
});
|
|
3069
|
-
const
|
|
3070
|
-
s.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((
|
|
3071
|
-
}), (
|
|
3151
|
+
const p = parseInt(t.item.style[d[t.layout.mode].art_c]), M = t.item.style[d[t.layout.mode].art_e], z = Math.floor(p / M), j = Math.round(z / (t.item.style[d[t.layout.mode].art_d] || 1) - 0.01) * M;
|
|
3152
|
+
s.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((J) => (J + 1) * j).concat(p / M < 2 ? M : p).filter((J) => J);
|
|
3153
|
+
}), (p, M) => (r(), h("div", {
|
|
3072
3154
|
class: "w-full relative min-h-[10rem]",
|
|
3073
3155
|
ref_key: "view",
|
|
3074
3156
|
ref: i,
|
|
3075
|
-
"data-viewid":
|
|
3157
|
+
"data-viewid": p.item.id
|
|
3076
3158
|
}, [
|
|
3077
|
-
|
|
3159
|
+
p.item.chunk ? B("", !0) : (r(), h("div", {
|
|
3078
3160
|
key: 0,
|
|
3079
3161
|
class: "flex items-center mt-1 mb-4",
|
|
3080
|
-
"data-block": L(
|
|
3162
|
+
"data-block": L($e)
|
|
3081
3163
|
}, [
|
|
3082
|
-
mt(
|
|
3083
|
-
k("div",
|
|
3164
|
+
mt(p.$slots, "default"),
|
|
3165
|
+
k("div", Wn, [
|
|
3084
3166
|
ae(it, {
|
|
3085
|
-
item:
|
|
3086
|
-
layout:
|
|
3167
|
+
item: p.item,
|
|
3168
|
+
layout: p.layout
|
|
3087
3169
|
}, null, 8, ["item", "layout"])
|
|
3088
3170
|
])
|
|
3089
|
-
], 8,
|
|
3090
|
-
|
|
3091
|
-
|
|
3171
|
+
], 8, Rn)),
|
|
3172
|
+
p.item.artBlock ? (r(), h(O, { key: 1 }, [
|
|
3173
|
+
p.item.beforeArt && !p.item.startAnswerLen ? (r(), ee(Oe, {
|
|
3092
3174
|
key: 0,
|
|
3093
|
-
data:
|
|
3094
|
-
"data-bart":
|
|
3175
|
+
data: p.item.beforeArt,
|
|
3176
|
+
"data-bart": p.item.id,
|
|
3095
3177
|
class: "indent-[2em]"
|
|
3096
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
3097
|
-
(r(!0),
|
|
3178
|
+
}, null, 8, ["data", "data-bart"])) : B("", !0),
|
|
3179
|
+
(r(!0), h(O, null, le(c.value, (z, j) => (r(), h("p", {
|
|
3098
3180
|
ref_for: !0,
|
|
3099
3181
|
ref_key: "line",
|
|
3100
3182
|
ref: a,
|
|
3101
3183
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3102
|
-
"data-block": L(
|
|
3103
|
-
"data-size":
|
|
3104
|
-
style:
|
|
3184
|
+
"data-block": L($e),
|
|
3185
|
+
"data-size": p.item.startAnswerLen + (j + 1) * o.value,
|
|
3186
|
+
style: X(n.value)
|
|
3105
3187
|
}, [
|
|
3106
|
-
(r(!0),
|
|
3107
|
-
class: oe([
|
|
3108
|
-
style:
|
|
3109
|
-
}, te(
|
|
3110
|
-
(r(!0),
|
|
3111
|
-
|
|
3188
|
+
(r(!0), h(O, null, le(o.value, (J, D) => (r(), h("span", {
|
|
3189
|
+
class: oe([A.value[j * o.value + D] && "flex items-center justify-center"]),
|
|
3190
|
+
style: X(m.value)
|
|
3191
|
+
}, te(A.value[j * o.value + D] || ""), 7))), 256)),
|
|
3192
|
+
(r(!0), h(O, null, le(s.value, (J) => (r(), h(O, null, [
|
|
3193
|
+
p.item.startAnswerLen + j * o.value < J && p.item.startAnswerLen + (j + 1) * o.value >= J ? (r(), h("span", {
|
|
3112
3194
|
key: 0,
|
|
3113
3195
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3114
|
-
style:
|
|
3196
|
+
style: X({ left: `${(J - p.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3115
3197
|
"data-block": L(Be)
|
|
3116
|
-
}, te(
|
|
3198
|
+
}, te(J), 13, Qn)) : B("", !0)
|
|
3117
3199
|
], 64))), 256))
|
|
3118
|
-
], 12,
|
|
3119
|
-
|
|
3200
|
+
], 12, Gn))), 256)),
|
|
3201
|
+
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), ee(Oe, {
|
|
3120
3202
|
key: 1,
|
|
3121
|
-
data:
|
|
3122
|
-
"data-aart":
|
|
3203
|
+
data: p.item.afterArt,
|
|
3204
|
+
"data-aart": p.item.id,
|
|
3123
3205
|
class: "mt-2 indent-[2em]"
|
|
3124
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
3206
|
+
}, null, 8, ["data", "data-aart"])) : B("", !0)
|
|
3125
3207
|
], 64)) : (r(), ee(Oe, {
|
|
3126
3208
|
key: 2,
|
|
3127
|
-
"data-area":
|
|
3128
|
-
data:
|
|
3209
|
+
"data-area": p.item.id,
|
|
3210
|
+
data: p.item.answerArea
|
|
3129
3211
|
}, null, 8, ["data-area", "data"]))
|
|
3130
3212
|
], 8, Hn));
|
|
3131
3213
|
}
|
|
3132
|
-
}),
|
|
3214
|
+
}), Yn = ["data-block"], Kn = /* @__PURE__ */ ne({
|
|
3133
3215
|
__name: "index",
|
|
3134
3216
|
props: {
|
|
3135
3217
|
item: {},
|
|
@@ -3137,7 +3219,7 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3137
3219
|
},
|
|
3138
3220
|
emits: ["change"],
|
|
3139
3221
|
setup(e, { emit: t }) {
|
|
3140
|
-
return (o, l) => (r(),
|
|
3222
|
+
return (o, l) => (r(), h("div", {
|
|
3141
3223
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
3142
3224
|
"data-block": L(ft)
|
|
3143
3225
|
}, [
|
|
@@ -3145,12 +3227,12 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3145
3227
|
"data-content": o.item.id,
|
|
3146
3228
|
data: o.item.content
|
|
3147
3229
|
}, null, 8, ["data-content", "data"])
|
|
3148
|
-
], 8,
|
|
3230
|
+
], 8, Yn));
|
|
3149
3231
|
}
|
|
3150
|
-
}),
|
|
3232
|
+
}), Un = ["data-block"], Vn = { key: 0 }, jn = { key: 1 }, Xn = { key: 2 }, Jn = {
|
|
3151
3233
|
key: 3,
|
|
3152
3234
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
3153
|
-
},
|
|
3235
|
+
}, Zn = { key: 0 }, es = /* @__PURE__ */ ne({
|
|
3154
3236
|
__name: "index",
|
|
3155
3237
|
props: {
|
|
3156
3238
|
sub: {},
|
|
@@ -3168,21 +3250,21 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3168
3250
|
if (a === "after")
|
|
3169
3251
|
return t.bracketType === f.bracket_cn ? ")" : ")";
|
|
3170
3252
|
};
|
|
3171
|
-
return (a, s) => (r(),
|
|
3253
|
+
return (a, s) => (r(), h("span", {
|
|
3172
3254
|
class: oe(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", a.isFull && "justify-end"]),
|
|
3173
|
-
style:
|
|
3255
|
+
style: X({ width: l.value }),
|
|
3174
3256
|
"data-block": L(Be)
|
|
3175
3257
|
}, [
|
|
3176
|
-
(r(!0),
|
|
3177
|
-
y ? (r(),
|
|
3178
|
-
c[0] ? (r(),
|
|
3179
|
-
c[1] ? (r(),
|
|
3180
|
-
c[2] ? (r(),
|
|
3258
|
+
(r(!0), h(O, null, le(o.value, (c, y) => (r(), h(O, null, [
|
|
3259
|
+
y ? (r(), h("span", Vn, " - ")) : B("", !0),
|
|
3260
|
+
c[0] ? (r(), h("span", jn, te(c[0]), 1)) : B("", !0),
|
|
3261
|
+
c[1] ? (r(), h("span", Xn, "(" + te(c[1]) + ")", 1)) : B("", !0),
|
|
3262
|
+
c[2] ? (r(), h("span", Jn, te(c[2]), 1)) : B("", !0)
|
|
3181
3263
|
], 64))), 256)),
|
|
3182
|
-
a.score ? (r(),
|
|
3183
|
-
], 14,
|
|
3264
|
+
a.score ? (r(), h("span", Zn, te(i("prev")) + te(a.score) + "分" + te(i("after")), 1)) : B("", !0)
|
|
3265
|
+
], 14, Un));
|
|
3184
3266
|
}
|
|
3185
|
-
}),
|
|
3267
|
+
}), ts = {
|
|
3186
3268
|
components: {
|
|
3187
3269
|
choice: Wl,
|
|
3188
3270
|
choiceSheet: ql,
|
|
@@ -3193,15 +3275,15 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3193
3275
|
slove: fn,
|
|
3194
3276
|
sloveSheet: vn,
|
|
3195
3277
|
easy_slove: xn,
|
|
3196
|
-
easy_sloveSheet:
|
|
3197
|
-
mix:
|
|
3198
|
-
mixSheet:
|
|
3199
|
-
synthesis:
|
|
3200
|
-
synthesisSheet:
|
|
3201
|
-
art:
|
|
3202
|
-
artSheet:
|
|
3203
|
-
notArea:
|
|
3204
|
-
Sub:
|
|
3278
|
+
easy_sloveSheet: Cn,
|
|
3279
|
+
mix: $n,
|
|
3280
|
+
mixSheet: Fn,
|
|
3281
|
+
synthesis: Mn,
|
|
3282
|
+
synthesisSheet: Bn,
|
|
3283
|
+
art: zn,
|
|
3284
|
+
artSheet: qn,
|
|
3285
|
+
notArea: Kn,
|
|
3286
|
+
Sub: es
|
|
3205
3287
|
},
|
|
3206
3288
|
props: {
|
|
3207
3289
|
data: {
|
|
@@ -3232,84 +3314,84 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3232
3314
|
setup(e, { emit: t }) {
|
|
3233
3315
|
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Pt), i = V(""), a = W(() => {
|
|
3234
3316
|
const g = o ? {
|
|
3235
|
-
choiceSheet: [
|
|
3236
|
-
fillSheet: [
|
|
3317
|
+
choiceSheet: [u.choice, u.choice_english, u.choice_multiple, u.cloze],
|
|
3318
|
+
fillSheet: [u.fill, u.fill_english]
|
|
3237
3319
|
} : {
|
|
3238
|
-
choice: [
|
|
3239
|
-
fill: [
|
|
3320
|
+
choice: [u.choice, u.choice_english, u.choice_multiple, u.cloze],
|
|
3321
|
+
fill: [u.fill, u.fill_english]
|
|
3240
3322
|
};
|
|
3241
|
-
return Object.keys(
|
|
3323
|
+
return Object.keys(u).reduce((S, $) => ({ ...S, [u[$]]: Object.keys(g).find((N) => g[N].includes(u[$])) || `${$}${o}` }), {});
|
|
3242
3324
|
}), s = W(() => [Ce.one_choice, Ce.another_choice].includes(e.data.problemType)), c = W(() => {
|
|
3243
3325
|
let g = [];
|
|
3244
|
-
e.data.children.forEach((
|
|
3245
|
-
let
|
|
3246
|
-
((
|
|
3326
|
+
e.data.children.forEach(($) => {
|
|
3327
|
+
let N = g[g.length - 1];
|
|
3328
|
+
(($.polymerId || l.includes(e.data.problemType)) && l.includes($.problemType) || [We.fill, We.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === f.portrait) && $.style ? (!N || N.type !== "polymer" || N.polymerId !== $.polymerId) && (g.push({
|
|
3247
3329
|
type: "polymer",
|
|
3248
|
-
problemType:
|
|
3249
|
-
polymerId:
|
|
3250
|
-
styleInfo:
|
|
3330
|
+
problemType: $.problemType,
|
|
3331
|
+
polymerId: $.polymerId,
|
|
3332
|
+
styleInfo: $.polymerId ? $.style : e.data.style,
|
|
3251
3333
|
children: [],
|
|
3252
3334
|
rawChildren: e.data.rawChildren || []
|
|
3253
|
-
}),
|
|
3335
|
+
}), N = g[g.length - 1]) : (!N || N.type !== "base") && (g.push({
|
|
3254
3336
|
type: "base",
|
|
3255
3337
|
children: []
|
|
3256
|
-
}),
|
|
3338
|
+
}), N = g[g.length - 1]), N.children.push({ ...$, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3257
3339
|
});
|
|
3258
|
-
const S = (
|
|
3259
|
-
let _ = Math.min(Math.floor(e.width /
|
|
3260
|
-
const
|
|
3261
|
-
|
|
3340
|
+
const S = ($, N, ue, Y, T, v) => {
|
|
3341
|
+
let _ = Math.min(Math.floor(e.width / N), ue), H = [], Q = [], P = !0;
|
|
3342
|
+
const R = (K = _) => {
|
|
3343
|
+
H = (v ? [...Array(K).keys()].map((se, Te) => $.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === Te)).filter((se) => se.length) : [...Array(K).keys()].map((se) => $.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map((Te) => {
|
|
3262
3344
|
var ge;
|
|
3263
|
-
return ((ge =
|
|
3345
|
+
return ((ge = Te.optList) == null ? void 0 : ge.length) || 0;
|
|
3264
3346
|
})));
|
|
3265
3347
|
};
|
|
3266
|
-
for (
|
|
3267
|
-
|
|
3268
|
-
return { children:
|
|
3348
|
+
for (R(_), Q = [...H]; P && _ < ue; )
|
|
3349
|
+
R(_ + 1), P = _ + 1 <= ue && H.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * T < e.width, P && (_ += 1, Q = [...H]);
|
|
3350
|
+
return { children: $.children.slice(0, v ? Y : Y * _), col: _, colList: [...Q] };
|
|
3269
3351
|
};
|
|
3270
|
-
return g = g.map((
|
|
3271
|
-
var
|
|
3272
|
-
if (
|
|
3273
|
-
const ue =
|
|
3274
|
-
if (
|
|
3275
|
-
let _ = [],
|
|
3276
|
-
for (;
|
|
3277
|
-
const Q =
|
|
3352
|
+
return g = g.map(($) => {
|
|
3353
|
+
var N;
|
|
3354
|
+
if ($.type === "polymer") {
|
|
3355
|
+
const ue = $.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = $.styleInfo[d[e.layout.mode].choice_e] || 20, T = e.data.style[d[e.layout.mode].choice_d] || 10, v = (n.value[`h${e.data.id}`] || n.value[$.polymerId] || n.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10;
|
|
3356
|
+
if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_1) {
|
|
3357
|
+
let _ = [], H = 0;
|
|
3358
|
+
for (; H < $.children.length; ) {
|
|
3359
|
+
const Q = $.children.slice(H), P = Math.max(...Q.map((K) => {
|
|
3278
3360
|
var se;
|
|
3279
3361
|
return ((se = K.optList) == null ? void 0 : se.length) || 0;
|
|
3280
|
-
})) * (Fe[e.layout.fillSize].value + 9) + v,
|
|
3281
|
-
_.push({
|
|
3362
|
+
})) * (Fe[e.layout.fillSize].value + 9) + v, R = S({ ...$, children: Q }, P, T, Y, v, ue);
|
|
3363
|
+
_.push({ ...$, groupIndex: _.length, children: R.children, col: R.col, colList: R.colList }), H = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
|
|
3282
3364
|
}
|
|
3283
3365
|
return _;
|
|
3284
|
-
} else if (
|
|
3285
|
-
const _ = Math.max(Fe[e.layout.fillSize].value + 9, v),
|
|
3286
|
-
let
|
|
3287
|
-
return
|
|
3288
|
-
K >= Q *
|
|
3289
|
-
}),
|
|
3290
|
-
} else if (
|
|
3291
|
-
let _ = [],
|
|
3292
|
-
return
|
|
3293
|
-
K.optList.length !==
|
|
3294
|
-
}), _.map((K, se) => ({
|
|
3295
|
-
} else if ([
|
|
3296
|
-
const _ = Math.floor(
|
|
3297
|
-
return [...Array(Math.ceil(
|
|
3298
|
-
|
|
3366
|
+
} else if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_2) {
|
|
3367
|
+
const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), H = Math.floor(e.width / (_ * $.styleInfo[d[e.layout.mode].choice_c] + 10)), Q = H * $.styleInfo[d[e.layout.mode].choice_c];
|
|
3368
|
+
let P = [{ children: [], col: H }];
|
|
3369
|
+
return $.children.forEach((R, K) => {
|
|
3370
|
+
K >= Q * P.length && P.push({ children: [], col: H }), P[P.length - 1].children.push(R);
|
|
3371
|
+
}), P.map((R, K) => ({ ...$, groupIndex: K, children: R.children, col: R.col, colList: [] }));
|
|
3372
|
+
} else if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
|
|
3373
|
+
let _ = [], H = 0, Q = 0, P = 0, R = 0;
|
|
3374
|
+
return $.children.forEach((K) => {
|
|
3375
|
+
K.optList.length !== H && (Q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, P = Math.min(Math.floor(e.width / Q), T), R = ue ? P * 20 : P * $.styleInfo[d[e.layout.mode].choice_e], H = K.optList.length, _.push({ children: [], col: P, colList: [...Array(P).keys()].map((se) => K.optList.length) })), (!Object.values(Re).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= R) && _.push({ children: [], col: P, colList: [...Array(P).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
|
|
3376
|
+
}), _.map((K, se) => ({ ...$, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
|
|
3377
|
+
} else if ([u.fill, u.fill_english].includes($.problemType) && $.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
|
|
3378
|
+
const _ = Math.floor($.styleInfo[d[e.layout.mode].fill_f]) * ($.styleInfo[d[e.layout.mode].fill_h] || 10);
|
|
3379
|
+
return [...Array(Math.ceil($.children.length / _)).keys()].map((H, Q) => ({
|
|
3380
|
+
...$,
|
|
3299
3381
|
groupIndex: Q,
|
|
3300
|
-
children:
|
|
3301
|
-
...
|
|
3382
|
+
children: $.children.slice(Q * _, (Q + 1) * _).map((P) => ({
|
|
3383
|
+
...P,
|
|
3302
3384
|
style: {
|
|
3303
|
-
...
|
|
3385
|
+
...P.style,
|
|
3304
3386
|
[d[e.layout.mode].fill_b]: !1,
|
|
3305
|
-
[d[e.layout.mode].fill_d]:
|
|
3387
|
+
[d[e.layout.mode].fill_d]: $.styleInfo[d[e.layout.mode].fill_d]
|
|
3306
3388
|
}
|
|
3307
3389
|
}))
|
|
3308
3390
|
}));
|
|
3309
3391
|
} else
|
|
3310
|
-
return
|
|
3392
|
+
return $;
|
|
3311
3393
|
} else
|
|
3312
|
-
return
|
|
3394
|
+
return $;
|
|
3313
3395
|
}).flat(), g;
|
|
3314
3396
|
}), y = W(() => {
|
|
3315
3397
|
let g = {};
|
|
@@ -3322,7 +3404,7 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3322
3404
|
return { [`h${e.data.id}`]: Math.max(...g) };
|
|
3323
3405
|
} else
|
|
3324
3406
|
return Object.keys(y.value).map((g) => {
|
|
3325
|
-
const S = (e.data.rawChildren || e.data.children).filter((
|
|
3407
|
+
const S = (e.data.rawChildren || e.data.children).filter(($) => $.polymerId === g).map(($) => $.subStr.length);
|
|
3326
3408
|
return {
|
|
3327
3409
|
[g]: Math.max(...S)
|
|
3328
3410
|
};
|
|
@@ -3339,12 +3421,12 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3339
3421
|
PolymerData: y,
|
|
3340
3422
|
SubWidthInfo: n,
|
|
3341
3423
|
ComputName: (g) => !g.problemType || g.notAreaFlag ? "notArea" : a.value[g.problemType],
|
|
3342
|
-
ComputAbs: (g) => o && [
|
|
3343
|
-
ComputPolymerCls: (g) => [
|
|
3424
|
+
ComputAbs: (g) => o && [u.slove, u.art].includes(g.problemType),
|
|
3425
|
+
ComputPolymerCls: (g) => [u.decide].includes(g.problemType) ? [] : g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2 ? ["port_view"] : ["grid", g.groupIndex && "mt-6"],
|
|
3344
3426
|
ComputPolymerStyle: (g) => {
|
|
3345
|
-
var
|
|
3427
|
+
var $;
|
|
3346
3428
|
let S = {};
|
|
3347
|
-
if ([
|
|
3429
|
+
if ([u.fill, u.fill_english].includes(g.problemType))
|
|
3348
3430
|
switch (g.styleInfo[d[e.layout.mode].fill_g]) {
|
|
3349
3431
|
case f.portrait:
|
|
3350
3432
|
S = {
|
|
@@ -3354,30 +3436,30 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3354
3436
|
};
|
|
3355
3437
|
break;
|
|
3356
3438
|
}
|
|
3357
|
-
else if (Object.values(
|
|
3439
|
+
else if (Object.values(Re).includes(g.problemType)) {
|
|
3358
3440
|
if (g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2)
|
|
3359
3441
|
return S;
|
|
3360
|
-
let
|
|
3361
|
-
const ue = g.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = g.styleInfo[d[e.layout.mode].choice_e] || 20,
|
|
3442
|
+
let N = [];
|
|
3443
|
+
const ue = g.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = g.styleInfo[d[e.layout.mode].choice_e] || 20, T = (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[(($ = e.data.children[0]) == null ? void 0 : $.polymerId) || ""] || 0) * 10 + 10, v = g.colList.map((_) => _ * (Fe[e.layout.fillSize].value + 9) + T);
|
|
3362
3444
|
switch (g.styleInfo[d[e.layout.mode].choice_f]) {
|
|
3363
3445
|
case f.choice_6:
|
|
3364
|
-
|
|
3446
|
+
N = v.map((_) => `${_}px`);
|
|
3365
3447
|
break;
|
|
3366
3448
|
case f.choice_7:
|
|
3367
3449
|
default:
|
|
3368
|
-
|
|
3450
|
+
N = v.map((_) => `${_ / Math.max(...v)}fr`);
|
|
3369
3451
|
}
|
|
3370
3452
|
switch (g.styleInfo[d[e.layout.mode].choice_a]) {
|
|
3371
3453
|
case f.choice_1:
|
|
3372
3454
|
case f.choice_3:
|
|
3373
|
-
ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((
|
|
3374
|
-
const Q = g.children.find((
|
|
3375
|
-
Q._grid_area_ =
|
|
3455
|
+
ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((H) => g.children.filter((Q, P) => P >= H * Y && P < (H + 1) * Y)).map((H, Q) => H.map((P, R) => ({ ...P, _grid_area_: ue ? null : ut[R] + Q }))).flat(2).forEach((H) => {
|
|
3456
|
+
const Q = g.children.find((P) => P.id === H.id);
|
|
3457
|
+
Q._grid_area_ = H._grid_area_;
|
|
3376
3458
|
}), S = ue ? {
|
|
3377
|
-
"grid-template": `repeat(${Math.ceil(g.children.length / g.col)}, 1fr) / ${
|
|
3459
|
+
"grid-template": `repeat(${Math.ceil(g.children.length / g.col)}, 1fr) / ${N.join(" ")}`
|
|
3378
3460
|
} : {
|
|
3379
3461
|
"grid-auto-flow": "column",
|
|
3380
|
-
"grid-template": `repeat(${Math.min(Y, g.children.length)}, 1fr) / ${
|
|
3462
|
+
"grid-template": `repeat(${Math.min(Y, g.children.length)}, 1fr) / ${N.join(" ")}`
|
|
3381
3463
|
};
|
|
3382
3464
|
break;
|
|
3383
3465
|
}
|
|
@@ -3385,58 +3467,58 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3385
3467
|
return S;
|
|
3386
3468
|
},
|
|
3387
3469
|
ComputPolymerItemStyle: (g, S) => {
|
|
3388
|
-
var
|
|
3470
|
+
var $;
|
|
3389
3471
|
if (g._grid_area_)
|
|
3390
3472
|
return {
|
|
3391
3473
|
"grid-area": g._grid_area_
|
|
3392
3474
|
};
|
|
3393
|
-
if (Object.values(
|
|
3394
|
-
const
|
|
3475
|
+
if (Object.values(Re).includes(g.problemType) && g.style[d[e.layout.mode].choice_a] === f.choice_2) {
|
|
3476
|
+
const N = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[($ = g.children[0]) == null ? void 0 : $.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (N * g.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - N * ue * g.style[d[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
|
|
3395
3477
|
return !((S + 1) % g.style[d[e.layout.mode].choice_c]) && ((S + 1) % (g.style[d[e.layout.mode].choice_c] * ue) || ue < 2) ? {
|
|
3396
|
-
"min-width": `${
|
|
3478
|
+
"min-width": `${N - 5}px`,
|
|
3397
3479
|
"margin-right": `${Y}px`
|
|
3398
3480
|
} : {
|
|
3399
|
-
"min-width": `${
|
|
3481
|
+
"min-width": `${N - 5}px`
|
|
3400
3482
|
};
|
|
3401
3483
|
}
|
|
3402
3484
|
return {};
|
|
3403
3485
|
},
|
|
3404
3486
|
ComputStyle: (g, S) => {
|
|
3405
|
-
var
|
|
3406
|
-
let
|
|
3487
|
+
var N;
|
|
3488
|
+
let $ = {};
|
|
3407
3489
|
if (!o)
|
|
3408
|
-
return
|
|
3490
|
+
return $;
|
|
3409
3491
|
if (l.includes(g.problemType)) {
|
|
3410
3492
|
let ue = {};
|
|
3411
|
-
if (Object.values(
|
|
3493
|
+
if (Object.values(Re).includes(e.data.problemType)) {
|
|
3412
3494
|
const Y = Math.max(.../*props.data.rawChildren || */
|
|
3413
|
-
e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[g.polymerId || ""] || n.value[((
|
|
3414
|
-
ue = S %
|
|
3495
|
+
e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[g.polymerId || ""] || n.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10, T = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
|
|
3496
|
+
ue = S % T ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * T) / (T - 1) - 5}px` } : { minWidth: `${Y}px` };
|
|
3415
3497
|
}
|
|
3416
|
-
|
|
3417
|
-
|
|
3498
|
+
$ = {
|
|
3499
|
+
...$,
|
|
3418
3500
|
display: "inline-flex",
|
|
3419
3501
|
...ue
|
|
3420
3502
|
};
|
|
3421
3503
|
} else
|
|
3422
|
-
[
|
|
3504
|
+
[u.fill, u.fill_english, u.easy_slove].includes(g.problemType) && ($ = {
|
|
3423
3505
|
// display: (item.style[problemLayoutKey[props.layout.mode].fill_c] === problemLayoutVal.fill_1 && item.answerLen === 1) ? 'flex' : 'inline-flex',
|
|
3424
3506
|
display: "inline-flex",
|
|
3425
3507
|
alignItems: "flex-end",
|
|
3426
|
-
width: `calc(${100 / g.style[d[e.layout.mode].fill_d][g.order || 0]}% - 6px)`
|
|
3508
|
+
width: `calc(${100 / ([u.easy_slove].includes(g.problemType) ? g.style[d[e.layout.mode].easy_slove_c] : g.style[d[e.layout.mode].fill_d][g.order || 0])}% - 6px)`
|
|
3427
3509
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3428
3510
|
});
|
|
3429
|
-
return
|
|
3511
|
+
return $;
|
|
3430
3512
|
},
|
|
3431
3513
|
ComputBlock: (g) => {
|
|
3432
|
-
const S = [...l,
|
|
3514
|
+
const S = [...l, u.fill, u.fill_english];
|
|
3433
3515
|
if (o && (S.includes(g.problemType) || typeof g.groupIndex == "number"))
|
|
3434
|
-
return
|
|
3516
|
+
return $e;
|
|
3435
3517
|
},
|
|
3436
|
-
ComputItemScore: (g) => [
|
|
3518
|
+
ComputItemScore: (g) => [u.slove, u.easy_slove, u.art].includes(g.problemType) && g.style[d.public.scoreShowFlag] !== f.bracket_none ? [g.score].flat(2).reduce(($, N) => $ + N, 0) : null,
|
|
3437
3519
|
ComputPayload: (g, S) => {
|
|
3438
3520
|
switch (g.problemType) {
|
|
3439
|
-
case
|
|
3521
|
+
case u.slove:
|
|
3440
3522
|
return { isFirst: !S };
|
|
3441
3523
|
default:
|
|
3442
3524
|
return {};
|
|
@@ -3452,36 +3534,36 @@ const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn =
|
|
|
3452
3534
|
e.data.isPolymer || (g.stopPropagation(), t("click", S));
|
|
3453
3535
|
},
|
|
3454
3536
|
handleGroupClick: (g, S) => {
|
|
3455
|
-
(Object.values(Ce).includes(S.__rootProblemType__) || !e.layout.polymerFlag || [
|
|
3537
|
+
(Object.values(Ce).includes(S.__rootProblemType__) || !e.layout.polymerFlag || [u.mix, u.synthesis].includes(S.problemType)) && (g.stopPropagation(), t("click", S));
|
|
3456
3538
|
},
|
|
3457
3539
|
handleDblClick: (g, S) => {
|
|
3458
3540
|
e.data.isPolymer || (g.stopPropagation(), t("dbclick", S));
|
|
3459
3541
|
}
|
|
3460
3542
|
};
|
|
3461
3543
|
}
|
|
3462
|
-
},
|
|
3463
|
-
function
|
|
3544
|
+
}, os = ["data-block", "data-polymer"], as = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ls = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ns = { key: 0 };
|
|
3545
|
+
function ss(e, t, o, l, i, a) {
|
|
3464
3546
|
const s = Qt("Sub");
|
|
3465
|
-
return r(!0),
|
|
3466
|
-
c.type === "polymer" ? (r(),
|
|
3547
|
+
return r(!0), h(O, null, le(l.GroupData, (c, y) => (r(), h(O, null, [
|
|
3548
|
+
c.type === "polymer" ? (r(), h("div", {
|
|
3467
3549
|
key: 0,
|
|
3468
3550
|
"data-block": l.ComputBlock(c),
|
|
3469
3551
|
"data-polymer": y,
|
|
3470
3552
|
class: oe([...l.ComputPolymerCls(c)]),
|
|
3471
|
-
style:
|
|
3553
|
+
style: X(l.ComputPolymerStyle(c))
|
|
3472
3554
|
}, [
|
|
3473
|
-
(r(!0),
|
|
3474
|
-
var
|
|
3475
|
-
return r(),
|
|
3476
|
-
class: oe(["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", ((
|
|
3477
|
-
style:
|
|
3555
|
+
(r(!0), h(O, null, le(c.children, (n, m) => {
|
|
3556
|
+
var A;
|
|
3557
|
+
return r(), h("div", {
|
|
3558
|
+
class: oe(["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", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3559
|
+
style: X(l.ComputPolymerItemStyle(n, m)),
|
|
3478
3560
|
"data-tag": n.__tag__,
|
|
3479
3561
|
"data-polymer": y,
|
|
3480
3562
|
"data-block": l.ComputBlock(n),
|
|
3481
3563
|
"data-xine": l.Gps_cls.item + n._sub,
|
|
3482
|
-
onClick: (
|
|
3483
|
-
onMouseenter: (
|
|
3484
|
-
onMouseleave: (
|
|
3564
|
+
onClick: (p) => l.handleGroupClick(p, n),
|
|
3565
|
+
onMouseenter: (p) => l.handleHoverIn(n),
|
|
3566
|
+
onMouseleave: (p) => l.handleHoverOut(n)
|
|
3485
3567
|
}, [
|
|
3486
3568
|
n.problemType ? (r(), ee(s, {
|
|
3487
3569
|
key: 0,
|
|
@@ -3489,23 +3571,23 @@ function is(e, t, o, l, i, a) {
|
|
|
3489
3571
|
isFull: !!l.ModuleTag,
|
|
3490
3572
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3491
3573
|
class: oe(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
|
|
3492
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3493
|
-
(r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n,
|
|
3494
|
-
], 46,
|
|
3574
|
+
}, null, 8, ["sub", "isFull", "width", "class"])) : B("", !0),
|
|
3575
|
+
(r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, m) })), null, 16))
|
|
3576
|
+
], 46, as);
|
|
3495
3577
|
}), 256))
|
|
3496
|
-
], 14,
|
|
3497
|
-
var
|
|
3498
|
-
return r(),
|
|
3578
|
+
], 14, os)) : (r(!0), h(O, { key: 1 }, le(c.children, (n, m) => {
|
|
3579
|
+
var A;
|
|
3580
|
+
return r(), h(O, null, [
|
|
3499
3581
|
k("div", {
|
|
3500
|
-
class: oe(["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", ((
|
|
3501
|
-
style:
|
|
3582
|
+
class: oe(["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", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3583
|
+
style: X(l.ComputStyle(n, m)),
|
|
3502
3584
|
"data-tag": n.__tag__,
|
|
3503
3585
|
"data-block": l.ComputBlock(n),
|
|
3504
3586
|
"data-xine": l.Gps_cls.item + n._sub,
|
|
3505
|
-
onClick: (
|
|
3506
|
-
onDblclick: (
|
|
3507
|
-
onMouseenter: (
|
|
3508
|
-
onMouseleave: (
|
|
3587
|
+
onClick: (p) => l.handleClick(p, n),
|
|
3588
|
+
onDblclick: (p) => l.handleDblClick(p, n),
|
|
3589
|
+
onMouseenter: (p) => l.handleHoverIn(n),
|
|
3590
|
+
onMouseleave: (p) => l.handleHoverOut(n)
|
|
3509
3591
|
}, [
|
|
3510
3592
|
n.problemType && !l.ComputAbs(n) ? (r(), ee(s, {
|
|
3511
3593
|
key: 0,
|
|
@@ -3514,10 +3596,10 @@ function is(e, t, o, l, i, a) {
|
|
|
3514
3596
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3515
3597
|
score: l.ComputItemScore(n),
|
|
3516
3598
|
bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3517
|
-
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) :
|
|
3518
|
-
(r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n,
|
|
3599
|
+
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : B("", !0),
|
|
3600
|
+
(r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, m) })), {
|
|
3519
3601
|
default: Et(() => [
|
|
3520
|
-
n.customSub ?
|
|
3602
|
+
n.customSub ? B("", !0) : (r(), ee(s, {
|
|
3521
3603
|
key: 0,
|
|
3522
3604
|
sub: n.sub,
|
|
3523
3605
|
isFull: !!l.ModuleTag,
|
|
@@ -3528,13 +3610,13 @@ function is(e, t, o, l, i, a) {
|
|
|
3528
3610
|
]),
|
|
3529
3611
|
_: 2
|
|
3530
3612
|
}, 1040))
|
|
3531
|
-
], 46,
|
|
3532
|
-
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(),
|
|
3613
|
+
], 46, ls),
|
|
3614
|
+
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), h("div", ns)) : B("", !0)
|
|
3533
3615
|
], 64);
|
|
3534
3616
|
}), 256))
|
|
3535
3617
|
], 64))), 256);
|
|
3536
3618
|
}
|
|
3537
|
-
const Ve = /* @__PURE__ */ me(
|
|
3619
|
+
const Ve = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
3538
3620
|
const i = (e.length > 1 ? [e[0], e[e.length - 1]] : e).map((c) => c.split(".")).map((c) => `${c[0] ? `<span>${c[0]}</span>` : ""}${c[1] ? `<span> - </span><span>${c[1]}</span>` : ""}${c[2] ? `<span> - </span><span class="flex items-center justify-center w-8 h-8 border rounded-full scale-75">${c[2]}</span>` : ""}`).filter((c) => c).join(""), a = (c) => {
|
|
3539
3621
|
if (!o)
|
|
3540
3622
|
return "";
|
|
@@ -3544,7 +3626,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3544
3626
|
return o === f.bracket_cn ? ")" : ")";
|
|
3545
3627
|
}, s = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
|
|
3546
3628
|
return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${s}</span>` : "";
|
|
3547
|
-
}, Pe = 200 / 96,
|
|
3629
|
+
}, Pe = 200 / 96, Ht = 4, rs = 10, q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), cs = (e, t, o) => {
|
|
3548
3630
|
const l = q(he(`${I.item}${e._sub}`, t));
|
|
3549
3631
|
return !(l.top >= o.top + o.height || l.top + l.height < o.top);
|
|
3550
3632
|
}, pe = (e, t, o = !1) => !e || !t ? null : {
|
|
@@ -3570,14 +3652,14 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3570
3652
|
}, ce = (e, t = !1) => {
|
|
3571
3653
|
if (!e)
|
|
3572
3654
|
return null;
|
|
3573
|
-
const o = t ?
|
|
3655
|
+
const o = t ? Ht : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
3574
3656
|
return {
|
|
3575
3657
|
x: Math.round(l.x * Pe - o),
|
|
3576
3658
|
y: Math.round(l.y * Pe - o),
|
|
3577
3659
|
width: Math.round(l.width * Pe + o * 2),
|
|
3578
3660
|
height: Math.round(l.height * Pe + o * 2)
|
|
3579
3661
|
};
|
|
3580
|
-
},
|
|
3662
|
+
}, Rt = (e, t = I.en_num) => {
|
|
3581
3663
|
const o = he(t);
|
|
3582
3664
|
if (!o)
|
|
3583
3665
|
return null;
|
|
@@ -3605,14 +3687,14 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3605
3687
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Pe),
|
|
3606
3688
|
questionNOList: [...Array(l.list.length).keys()].map((i, a) => a + 1)
|
|
3607
3689
|
};
|
|
3608
|
-
},
|
|
3690
|
+
}, ds = (e) => ({
|
|
3609
3691
|
cardSizeType: vo[e.layout.paper],
|
|
3610
3692
|
cardColumnCount: e.layout.column,
|
|
3611
3693
|
cardColumnCount2: e.layout.backColumn,
|
|
3612
3694
|
doubleCard: !0,
|
|
3613
3695
|
paperWidth: Math.round(x[e.layout.paper].width * Pe),
|
|
3614
3696
|
paperHeight: Math.round(x[e.layout.paper].height * Pe)
|
|
3615
|
-
}),
|
|
3697
|
+
}), us = (e) => {
|
|
3616
3698
|
const t = q(e.pageDom[0]), o = q(e.pageDom[1]), l = (i, a) => {
|
|
3617
3699
|
var c;
|
|
3618
3700
|
const s = a > 2 || et.includes(e.layout.paper) ? {
|
|
@@ -3643,7 +3725,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3643
3725
|
auxAnchorInfo: l(0, e.layout.column),
|
|
3644
3726
|
auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
|
|
3645
3727
|
};
|
|
3646
|
-
},
|
|
3728
|
+
}, hs = (e) => {
|
|
3647
3729
|
let t = 10;
|
|
3648
3730
|
if (e.pageDom[1]) {
|
|
3649
3731
|
const l = he(`${I.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
@@ -3670,7 +3752,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3670
3752
|
xColOffset: Math.round(t * Pe)
|
|
3671
3753
|
}
|
|
3672
3754
|
];
|
|
3673
|
-
},
|
|
3755
|
+
}, ps = (e) => {
|
|
3674
3756
|
const t = he(I.lack, e.pageDom[0]);
|
|
3675
3757
|
return t ? {
|
|
3676
3758
|
// 固定值
|
|
@@ -3690,17 +3772,17 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3690
3772
|
yRowOffset: 0,
|
|
3691
3773
|
xColOffset: 0
|
|
3692
3774
|
} : null;
|
|
3693
|
-
},
|
|
3775
|
+
}, ms = (e) => {
|
|
3694
3776
|
let t = pe(q(he(I.en_code, e.pageDom[0])), q(e.pageDom[0]));
|
|
3695
3777
|
return ce(t);
|
|
3696
|
-
},
|
|
3778
|
+
}, ys = (e) => {
|
|
3697
3779
|
const t = he(I.write_view, e.pageDom[0]);
|
|
3698
3780
|
if (!t)
|
|
3699
3781
|
return null;
|
|
3700
3782
|
const o = Me(I.score_item, t);
|
|
3701
3783
|
return {
|
|
3702
3784
|
id: "0",
|
|
3703
|
-
problemType:
|
|
3785
|
+
problemType: u.slove,
|
|
3704
3786
|
position: pe(q(t), q(e.pageDom[0])),
|
|
3705
3787
|
scoreList: o.map((l, i) => ({
|
|
3706
3788
|
position: pe(q(o[i]), q(e.pageDom[0])),
|
|
@@ -3710,12 +3792,12 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3710
3792
|
score: Math.abs(parseFloat(o[i].innerText))
|
|
3711
3793
|
}))
|
|
3712
3794
|
};
|
|
3713
|
-
},
|
|
3714
|
-
const o = [
|
|
3795
|
+
}, _s = (e, t) => {
|
|
3796
|
+
const o = [u.slove, u.art, u.synthesis, u.fill, u.fill_english, u.mix], l = rs + Ht, i = (a) => parseFloat(a.toFixed(2));
|
|
3715
3797
|
return t.flat().filter((a) => o.includes(a.problemType) && a.colIndex < 2).map((a) => {
|
|
3716
3798
|
switch (a.problemType) {
|
|
3717
|
-
case
|
|
3718
|
-
case
|
|
3799
|
+
case u.fill:
|
|
3800
|
+
case u.fill_english:
|
|
3719
3801
|
return !e.layout.handReadFlag && a.isHiddenContent ? [] : a.children.map((s) => {
|
|
3720
3802
|
const c = s.scorePosition;
|
|
3721
3803
|
return {
|
|
@@ -3728,8 +3810,8 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3728
3810
|
}
|
|
3729
3811
|
};
|
|
3730
3812
|
});
|
|
3731
|
-
case
|
|
3732
|
-
case
|
|
3813
|
+
case u.slove:
|
|
3814
|
+
case u.art:
|
|
3733
3815
|
return e.layout.handReadFlag ? [{
|
|
3734
3816
|
sub: a.id,
|
|
3735
3817
|
position: {
|
|
@@ -3739,8 +3821,8 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3739
3821
|
height: a.scoreList[0].position.height
|
|
3740
3822
|
}
|
|
3741
3823
|
}] : [];
|
|
3742
|
-
case
|
|
3743
|
-
return !e.layout.handReadFlag && a.isHiddenContent ? [] : (a.children || []).filter((s) => [
|
|
3824
|
+
case u.mix:
|
|
3825
|
+
return !e.layout.handReadFlag && a.isHiddenContent ? [] : (a.children || []).filter((s) => [u.fill, u.fill_english, u.easy_slove].includes(s.problemType)).map((s) => [u.easy_slove].includes(s.problemType) ? {
|
|
3744
3826
|
sub: s.id,
|
|
3745
3827
|
position: {
|
|
3746
3828
|
x: i(s.scoreList[0].position.x - (s.isHiddenContent ? s.position.x : a.position.x)),
|
|
@@ -3759,13 +3841,13 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3759
3841
|
});
|
|
3760
3842
|
}
|
|
3761
3843
|
}).flat();
|
|
3762
|
-
},
|
|
3844
|
+
}, fs = (e, t) => {
|
|
3763
3845
|
let o = 0, l = {};
|
|
3764
3846
|
return [...Array(e.pageDom.length).keys()].map((i) => {
|
|
3765
|
-
var c, y, n,
|
|
3766
|
-
const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), s = (
|
|
3767
|
-
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((
|
|
3768
|
-
const
|
|
3847
|
+
var c, y, n, m;
|
|
3848
|
+
const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), s = (m = (n = t[t.length - 1]) == null ? void 0 : n.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : m.children;
|
|
3849
|
+
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((A, p) => a + p < t.length).map((A, p) => {
|
|
3850
|
+
const M = e.pageDom[i], z = q(M), j = e.colDom[a + p], J = q(j), D = e.colViewDom[a + p], w = q(D), G = t[a + p].data.map((C) => C.children).flat(), ie = t[a + p].data.filter((C) => [Ce.one_choice, Ce.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
|
|
3769
3851
|
const U = he(`${I.choice}${C.id}`, j);
|
|
3770
3852
|
return U ? {
|
|
3771
3853
|
id: `${++o}`,
|
|
@@ -3779,63 +3861,63 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3779
3861
|
})).filter((de) => de.position)
|
|
3780
3862
|
} : {};
|
|
3781
3863
|
}).filter((C) => C.position);
|
|
3782
|
-
return G.filter((C) => C.problemType &&
|
|
3864
|
+
return G.filter((C) => C.problemType && cs(C, j, J)).map((C, U) => {
|
|
3783
3865
|
var S;
|
|
3784
3866
|
let de = {};
|
|
3785
3867
|
l[C._sub] ? l[C._sub] += 1 : l[C._sub] = 1;
|
|
3786
3868
|
const g = he(`${I.item}${C._sub}`, j);
|
|
3787
3869
|
switch (C.problemType) {
|
|
3788
|
-
case
|
|
3789
|
-
case
|
|
3790
|
-
case
|
|
3791
|
-
case
|
|
3870
|
+
case u.choice:
|
|
3871
|
+
case u.choice_english:
|
|
3872
|
+
case u.choice_multiple:
|
|
3873
|
+
case u.cloze:
|
|
3792
3874
|
de = {
|
|
3793
3875
|
score: C.score,
|
|
3794
3876
|
isColumn: C.style[d[e.layout.mode].choice_a] !== f.choice_2,
|
|
3795
|
-
optList: C.optList.map((Y,
|
|
3796
|
-
id: `${C._sub}.${
|
|
3797
|
-
position: Ne(he(`${I.fill}${
|
|
3877
|
+
optList: C.optList.map((Y, T) => ({
|
|
3878
|
+
id: `${C._sub}.${T + 1}`,
|
|
3879
|
+
position: Ne(he(`${I.fill}${T}`, g), w, z)
|
|
3798
3880
|
})).filter((Y) => Y.position)
|
|
3799
3881
|
};
|
|
3800
3882
|
break;
|
|
3801
|
-
case
|
|
3883
|
+
case u.decide:
|
|
3802
3884
|
de = {
|
|
3803
|
-
optList: [0, 1].map((Y,
|
|
3804
|
-
id: `${C._sub}.${
|
|
3805
|
-
position: Ne(he(`${I.fill}${
|
|
3885
|
+
optList: [0, 1].map((Y, T) => ({
|
|
3886
|
+
id: `${C._sub}.${T + 1}`,
|
|
3887
|
+
position: Ne(he(`${I.fill}${T}`, g), w, z)
|
|
3806
3888
|
})).filter((Y) => Y.position)
|
|
3807
3889
|
};
|
|
3808
3890
|
break;
|
|
3809
|
-
case
|
|
3810
|
-
case
|
|
3811
|
-
const
|
|
3891
|
+
case u.fill:
|
|
3892
|
+
case u.fill_english:
|
|
3893
|
+
const $ = Me(I.fill, g), N = Me(I.fill_line, g);
|
|
3812
3894
|
de = {
|
|
3813
|
-
children: [C.score].flat().map((Y,
|
|
3814
|
-
id: v.length > 1 ? `${C._sub}.${
|
|
3895
|
+
children: [C.score].flat().map((Y, T, v) => ({
|
|
3896
|
+
id: v.length > 1 ? `${C._sub}.${T + 1}` : C._sub,
|
|
3815
3897
|
score: Y,
|
|
3816
3898
|
problemType: C.problemType,
|
|
3817
3899
|
isHiddenContent: !C.style[d[e.layout.mode].fill_b],
|
|
3818
3900
|
position: Ne(g, w, z),
|
|
3819
|
-
scorePosition: Ne(T
|
|
3820
|
-
answerPosition: Ne(
|
|
3901
|
+
scorePosition: Ne($[T], w, z),
|
|
3902
|
+
answerPosition: Ne(N[T], w, z)
|
|
3821
3903
|
})).filter((Y) => Y.position)
|
|
3822
3904
|
};
|
|
3823
3905
|
break;
|
|
3824
|
-
case
|
|
3825
|
-
case
|
|
3826
|
-
case
|
|
3906
|
+
case u.slove:
|
|
3907
|
+
case u.easy_slove:
|
|
3908
|
+
case u.art:
|
|
3827
3909
|
const ue = he(I.score, g);
|
|
3828
3910
|
de = {
|
|
3829
3911
|
scoreList: ue ? [he(I.score_tenbit, ue), he(I.score_base, ue), he(I.score_half, ue)].map((Y) => {
|
|
3830
3912
|
if (!Y)
|
|
3831
3913
|
return {};
|
|
3832
|
-
const
|
|
3914
|
+
const T = Me(I.score_item, Y);
|
|
3833
3915
|
return {
|
|
3834
3916
|
position: Ne(Y, w, z, !0),
|
|
3835
3917
|
itemPosition: {
|
|
3836
|
-
width:
|
|
3918
|
+
width: T[0].offsetWidth
|
|
3837
3919
|
},
|
|
3838
|
-
score:
|
|
3920
|
+
score: T.map((v) => Math.abs(parseFloat(v.innerText)))
|
|
3839
3921
|
};
|
|
3840
3922
|
}).filter((Y) => Y.position) : null
|
|
3841
3923
|
};
|
|
@@ -3847,13 +3929,13 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3847
3929
|
problemType: C.problemType,
|
|
3848
3930
|
_rootProblemType: C._rootProblemType,
|
|
3849
3931
|
_parentProblemType: C._parentProblemType,
|
|
3850
|
-
position: Ne(g, w, z, !1, C.id === G[G.length - 1].id && C.id !== ((S = s[s.length - 1]) == null ? void 0 : S.id) && [
|
|
3932
|
+
position: Ne(g, w, z, !1, C.id === G[G.length - 1].id && C.id !== ((S = s[s.length - 1]) == null ? void 0 : S.id) && [u.slove].includes(C.problemType)),
|
|
3851
3933
|
...de
|
|
3852
3934
|
};
|
|
3853
3935
|
}).concat(ie).filter((C) => C.position);
|
|
3854
3936
|
});
|
|
3855
3937
|
}).map((i) => i.flat());
|
|
3856
|
-
},
|
|
3938
|
+
}, gs = (e) => {
|
|
3857
3939
|
let t = {};
|
|
3858
3940
|
const o = (a = e, s = !1) => (t[a.id] = {
|
|
3859
3941
|
_rootProblemType: rt[e._rootProblemType],
|
|
@@ -3866,17 +3948,17 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3866
3948
|
// 块内序号ID,按切块自增
|
|
3867
3949
|
secitonSeqID: a.colIndex || 1,
|
|
3868
3950
|
// 需要保存文件,固定值
|
|
3869
|
-
needSavedFile: !!s || [
|
|
3951
|
+
needSavedFile: !!s || [u.mix].includes(e.problemType),
|
|
3870
3952
|
// 题型
|
|
3871
3953
|
cuttingSectionQuestionType: rt[a.problemType || e.problemType]
|
|
3872
3954
|
});
|
|
3873
3955
|
let l = {};
|
|
3874
3956
|
switch (e.problemType) {
|
|
3875
|
-
case
|
|
3876
|
-
case
|
|
3877
|
-
case
|
|
3878
|
-
case
|
|
3879
|
-
case
|
|
3957
|
+
case u.choice:
|
|
3958
|
+
case u.choice_english:
|
|
3959
|
+
case u.choice_multiple:
|
|
3960
|
+
case u.cloze:
|
|
3961
|
+
case u.decide:
|
|
3880
3962
|
l = {
|
|
3881
3963
|
choiceQuestionPartialSectionList: [{
|
|
3882
3964
|
...o(e, !0),
|
|
@@ -3888,13 +3970,13 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3888
3970
|
choiceUnitSectionList: e.optList.map((a, s) => ({
|
|
3889
3971
|
...o(a, !0),
|
|
3890
3972
|
choicePosition: ce(a.position),
|
|
3891
|
-
choiceResult: [
|
|
3973
|
+
choiceResult: [u.decide].includes(e.problemType) ? bo[s] : _t[s]
|
|
3892
3974
|
}))
|
|
3893
3975
|
}]
|
|
3894
3976
|
};
|
|
3895
3977
|
break;
|
|
3896
|
-
case
|
|
3897
|
-
case
|
|
3978
|
+
case u.fill:
|
|
3979
|
+
case u.fill_english:
|
|
3898
3980
|
l = {
|
|
3899
3981
|
subjectiveQuestionSectionList: [{
|
|
3900
3982
|
...o(e, !0),
|
|
@@ -3915,9 +3997,9 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3915
3997
|
}]
|
|
3916
3998
|
};
|
|
3917
3999
|
break;
|
|
3918
|
-
case
|
|
3919
|
-
case
|
|
3920
|
-
case
|
|
4000
|
+
case u.slove:
|
|
4001
|
+
case u.easy_slove:
|
|
4002
|
+
case u.art:
|
|
3921
4003
|
l = {
|
|
3922
4004
|
subjectiveQuestionSectionList: [{
|
|
3923
4005
|
...o(e, !0),
|
|
@@ -3938,8 +4020,8 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3938
4020
|
}]
|
|
3939
4021
|
};
|
|
3940
4022
|
break;
|
|
3941
|
-
case
|
|
3942
|
-
case
|
|
4023
|
+
case u.synthesis:
|
|
4024
|
+
case u.mix:
|
|
3943
4025
|
break;
|
|
3944
4026
|
case Ce.one_choice:
|
|
3945
4027
|
case Ce.another_choice:
|
|
@@ -3966,7 +4048,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3966
4048
|
...o(e, !e.isOneChoice),
|
|
3967
4049
|
...l
|
|
3968
4050
|
}, typeData: t };
|
|
3969
|
-
},
|
|
4051
|
+
}, bs = (e, t) => {
|
|
3970
4052
|
let o = {};
|
|
3971
4053
|
const l = [...Array(e.pageTotal).keys()].map((s) => ({
|
|
3972
4054
|
// 当前页数
|
|
@@ -3986,22 +4068,22 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
3986
4068
|
}],
|
|
3987
4069
|
// 按题切块信息
|
|
3988
4070
|
cardCuttingSectionList: t[s].map((c) => {
|
|
3989
|
-
const y =
|
|
4071
|
+
const y = gs(c);
|
|
3990
4072
|
return o = { ...o, ...y.typeData }, y.data;
|
|
3991
4073
|
}).flat()
|
|
3992
4074
|
})), i = (s, c) => ([s.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < c).join("."), a = l.map((s) => {
|
|
3993
4075
|
let c = [], y = [], n = [];
|
|
3994
|
-
return s.cardCuttingSectionList.forEach((
|
|
3995
|
-
const
|
|
4076
|
+
return s.cardCuttingSectionList.forEach((m, A, p) => {
|
|
4077
|
+
const M = i(m, 1);
|
|
3996
4078
|
let z = !1, j = !1;
|
|
3997
|
-
if (n.find((
|
|
4079
|
+
if (n.find((D) => i(D, 1) === M && D.secitonSeqID === m.secitonSeqID) && !(m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(m), z = A < p.length - 1, j = !0), z)
|
|
3998
4080
|
return;
|
|
3999
|
-
let
|
|
4000
|
-
if ((
|
|
4081
|
+
let J = !1;
|
|
4082
|
+
if ((m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(m), J = !0), n.length) {
|
|
4001
4083
|
if (n.length === 1)
|
|
4002
4084
|
c.push(n[0]);
|
|
4003
4085
|
else {
|
|
4004
|
-
const
|
|
4086
|
+
const D = n.map((C) => C.subjectiveQuestionSectionList || []).flat(), w = n.map((C) => C.choiceQuestionPartialSectionList || []).flat(), G = w.length ? { choiceQuestionPartialSectionList: w } : {}, ie = D.length ? { subjectiveQuestionSectionList: D } : {};
|
|
4005
4087
|
c.push({
|
|
4006
4088
|
...n[0],
|
|
4007
4089
|
// cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
|
|
@@ -4011,35 +4093,35 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4011
4093
|
}
|
|
4012
4094
|
n = [];
|
|
4013
4095
|
}
|
|
4014
|
-
|
|
4015
|
-
}), c = [...c, ...n].map((
|
|
4096
|
+
J || j || n.push(m);
|
|
4097
|
+
}), c = [...c, ...n].map((m) => ({ ...m, cuttingSectionQuestionType: o[m.sectionID]._rootProblemType || m.cuttingSectionQuestionType, sectionID: i(m, 1) })), { ...s, cardCuttingSectionList: [...c, ...y] };
|
|
4016
4098
|
}).map((s) => {
|
|
4017
4099
|
const c = s.cardCuttingSectionList.map((y) => {
|
|
4018
|
-
var
|
|
4019
|
-
let n = [],
|
|
4020
|
-
const
|
|
4021
|
-
(
|
|
4022
|
-
const
|
|
4100
|
+
var M;
|
|
4101
|
+
let n = [], m = [];
|
|
4102
|
+
const A = Math.max(...(y.subjectiveQuestionSectionList || []).map((z) => z.sectionID.split(".").length - 1), 1);
|
|
4103
|
+
(M = y.subjectiveQuestionSectionList) == null || M.forEach((z, j, J) => {
|
|
4104
|
+
const D = i(z, A);
|
|
4023
4105
|
let w = !1, G = !1;
|
|
4024
|
-
if (
|
|
4025
|
-
if (
|
|
4026
|
-
if (
|
|
4027
|
-
n.push(
|
|
4106
|
+
if (m.find((ie) => i(ie, A) === D && ie.secitonSeqID === z.secitonSeqID) && (m.push(z), w = j < J.length - 1, G = !0), !w) {
|
|
4107
|
+
if (m.length) {
|
|
4108
|
+
if (m.length === 1)
|
|
4109
|
+
n.push(m[0]);
|
|
4028
4110
|
else {
|
|
4029
|
-
const ie =
|
|
4111
|
+
const ie = m.map((U) => U.singleBlankSectionList || []).flat(), C = ie.length ? { singleBlankSectionList: ie, unitCount: ie.length } : {};
|
|
4030
4112
|
n.push({
|
|
4031
|
-
...
|
|
4113
|
+
...m[0],
|
|
4032
4114
|
// cuttingSectionQuestionType: typeResult[subjectTmp[0].sectionID]._parentProblemType || subjectTmp[0].cuttingSectionQuestionType,
|
|
4033
4115
|
...C
|
|
4034
4116
|
});
|
|
4035
4117
|
}
|
|
4036
|
-
|
|
4118
|
+
m = [];
|
|
4037
4119
|
}
|
|
4038
|
-
G ||
|
|
4120
|
+
G || m.push(z);
|
|
4039
4121
|
}
|
|
4040
4122
|
});
|
|
4041
|
-
const
|
|
4042
|
-
return n = [...n, ...
|
|
4123
|
+
const p = Math.max(...[...n, ...m].map((z) => z.sectionID.split(".").length));
|
|
4124
|
+
return n = [...n, ...m].map((z) => ({ ...z, cuttingSectionQuestionType: o[z.sectionID]._parentProblemType || z.cuttingSectionQuestionType, sectionID: i(z, Math.max(p - 1, 1)) })), n.length ? {
|
|
4043
4125
|
...y,
|
|
4044
4126
|
subjectiveQuestionSectionList: n
|
|
4045
4127
|
} : y;
|
|
@@ -4047,7 +4129,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4047
4129
|
return { ...s, cardCuttingSectionList: c };
|
|
4048
4130
|
});
|
|
4049
4131
|
return o = {}, a;
|
|
4050
|
-
},
|
|
4132
|
+
}, vs = (e, t) => {
|
|
4051
4133
|
var l;
|
|
4052
4134
|
const o = q(e.pageDom[0]);
|
|
4053
4135
|
return {
|
|
@@ -4062,7 +4144,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4062
4144
|
// true:表示每个页面都要自带页面号确定信息 false:表示可以根据双面扫描下解析出来的另一面来推定
|
|
4063
4145
|
sideAllSelfIntp: !1,
|
|
4064
4146
|
// 填涂式考号,与条码式考号互斥
|
|
4065
|
-
adminssionTicketID:
|
|
4147
|
+
adminssionTicketID: Rt(e),
|
|
4066
4148
|
// 试卷二维码
|
|
4067
4149
|
cardSerialNumber: {
|
|
4068
4150
|
// 条形码虚线框位置, x, y, width, height
|
|
@@ -4075,7 +4157,7 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4075
4157
|
studentID: {
|
|
4076
4158
|
// 条形码虚线框位置, x, y, width, height
|
|
4077
4159
|
// encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
4078
|
-
encodePictureArea:
|
|
4160
|
+
encodePictureArea: ms(e),
|
|
4079
4161
|
// ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
4080
4162
|
// 固定值
|
|
4081
4163
|
qrCodePosition: null,
|
|
@@ -4095,21 +4177,21 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4095
4177
|
// 哪些面有选做老师布置题的信息,固定值
|
|
4096
4178
|
onlyAssignInfoList: [],
|
|
4097
4179
|
// 页面布局信息
|
|
4098
|
-
layerType:
|
|
4180
|
+
layerType: ds(e),
|
|
4099
4181
|
// 定位点信息
|
|
4100
|
-
...
|
|
4182
|
+
...us(e),
|
|
4101
4183
|
pottedLineXPos: e.bindWidth ? (l = ce(pe(q(he(I.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4102
4184
|
// 页码点信息
|
|
4103
|
-
pageSideAnchorsList:
|
|
4185
|
+
pageSideAnchorsList: hs(e),
|
|
4104
4186
|
// 缺考标记
|
|
4105
|
-
absenceMark:
|
|
4187
|
+
absenceMark: ps(e),
|
|
4106
4188
|
// 业务数据
|
|
4107
4189
|
oneFullPageCardList: t
|
|
4108
4190
|
};
|
|
4109
|
-
},
|
|
4110
|
-
const { config: t, data: o } = e, l =
|
|
4191
|
+
}, ws = (e) => {
|
|
4192
|
+
const { config: t, data: o } = e, l = ys(t), i = fs(t, o);
|
|
4111
4193
|
l && i[0].unshift(l);
|
|
4112
|
-
const a =
|
|
4194
|
+
const a = _s(t, i), s = bs(t, i), c = vs(t, s), y = Rt(t, I.en_num_view) || {};
|
|
4113
4195
|
return {
|
|
4114
4196
|
engineData: c,
|
|
4115
4197
|
pageTotal: t.pageTotal,
|
|
@@ -4117,10 +4199,10 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4117
4199
|
localData: a,
|
|
4118
4200
|
extendInfo: { shortCoordinate: y }
|
|
4119
4201
|
};
|
|
4120
|
-
},
|
|
4202
|
+
}, ks = { class: "layt-moni_view" }, xs = { class: "layt-moni_content" }, Cs = { class: "layt-moni_icon" }, Ss = { class: "layt-moni_msg" }, Ts = {
|
|
4121
4203
|
key: 0,
|
|
4122
4204
|
class: "layt-moni_err_view"
|
|
4123
|
-
},
|
|
4205
|
+
}, $s = { class: "layt-moni_err_item_msg" }, Is = ["onClick"], Ls = /* @__PURE__ */ ne({
|
|
4124
4206
|
__name: "index",
|
|
4125
4207
|
props: {
|
|
4126
4208
|
ColList: {},
|
|
@@ -4134,25 +4216,25 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4134
4216
|
De(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
4135
4217
|
l.value = [], setTimeout(() => {
|
|
4136
4218
|
var n;
|
|
4137
|
-
o.ColList.forEach((
|
|
4138
|
-
|
|
4139
|
-
var
|
|
4140
|
-
const
|
|
4141
|
-
if (!
|
|
4219
|
+
o.ColList.forEach((m, A) => {
|
|
4220
|
+
m.data.map((p) => p.children).flat().filter((p) => [u.slove, u.art, u.easy_slove].includes(p.problemType) && !p.chunk).forEach((p) => {
|
|
4221
|
+
var J;
|
|
4222
|
+
const M = (J = o.ColDom[A].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : J.querySelector(`*[data-xine="${I.score}"]`);
|
|
4223
|
+
if (!M)
|
|
4142
4224
|
return;
|
|
4143
|
-
|
|
4144
|
-
const z = window.getComputedStyle(
|
|
4145
|
-
|
|
4225
|
+
M.classList.remove("err_lack");
|
|
4226
|
+
const z = window.getComputedStyle(M), j = [...Array.from(M.children)].map((D) => D.offsetWidth).reduce((D, w) => D + w, 0);
|
|
4227
|
+
M.offsetWidth - parseFloat(z.borderLeft) - parseFloat(z.borderRight) < j && (l.value.push({ msg: `${p.subStr}题打分条超长` }), M.classList.add("err_lack"), M.title = "打分条超长,请调整排版或使用自编打分条");
|
|
4146
4228
|
});
|
|
4147
4229
|
});
|
|
4148
4230
|
const s = (n = document.querySelector(".__layout__")) == null ? void 0 : n.getBoundingClientRect();
|
|
4149
4231
|
if (!s)
|
|
4150
4232
|
return;
|
|
4151
4233
|
let c = [], y = [];
|
|
4152
|
-
o.ImgData.forEach((
|
|
4153
|
-
(
|
|
4154
|
-
}), o.TxtData.forEach((
|
|
4155
|
-
(
|
|
4234
|
+
o.ImgData.forEach((m) => {
|
|
4235
|
+
(m.left + m.width > s.width || m.top + m.height > s.height) && c.push(m);
|
|
4236
|
+
}), o.TxtData.forEach((m) => {
|
|
4237
|
+
(m.left + m.width > s.width || m.top + m.height > s.height) && y.push(m);
|
|
4156
4238
|
}), c.length && l.value.push({ type: "absImg", value: c, msg: `${c.length}张插入图片溢出`, fn: i }), y.length && l.value.push({ type: "absTxt", value: y, msg: `${y.length}条插入文本溢出`, fn: a }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
|
|
4157
4239
|
}, 500);
|
|
4158
4240
|
});
|
|
@@ -4163,49 +4245,49 @@ const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
|
4163
4245
|
var c;
|
|
4164
4246
|
(((c = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : c.value) || []).forEach((y) => t("delAbsTxtItem", y));
|
|
4165
4247
|
};
|
|
4166
|
-
return (s, c) => (r(),
|
|
4167
|
-
k("div",
|
|
4248
|
+
return (s, c) => (r(), h("div", ks, [
|
|
4249
|
+
k("div", xs, [
|
|
4168
4250
|
k("div", {
|
|
4169
4251
|
class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4170
4252
|
}, null, 2),
|
|
4171
4253
|
k("div", {
|
|
4172
4254
|
class: oe(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4173
4255
|
}, [
|
|
4174
|
-
k("span",
|
|
4256
|
+
k("span", Cs, [
|
|
4175
4257
|
ae(ve, {
|
|
4176
4258
|
width: 1.6,
|
|
4177
4259
|
name: l.value.length ? "wrong" : "right"
|
|
4178
4260
|
}, null, 8, ["name"])
|
|
4179
4261
|
]),
|
|
4180
|
-
k("span",
|
|
4262
|
+
k("span", Ss, "排版" + te(l.value.length ? "异常" : "良好"), 1)
|
|
4181
4263
|
], 2),
|
|
4182
|
-
l.value.length ? (r(),
|
|
4183
|
-
(r(!0),
|
|
4264
|
+
l.value.length ? (r(), h("ul", Ts, [
|
|
4265
|
+
(r(!0), h(O, null, le(l.value, (y, n) => (r(), h("li", {
|
|
4184
4266
|
key: n,
|
|
4185
4267
|
class: "layt-moni_err_item"
|
|
4186
4268
|
}, [
|
|
4187
|
-
k("span",
|
|
4188
|
-
y.fn ? (r(),
|
|
4269
|
+
k("span", $s, te(y.msg), 1),
|
|
4270
|
+
y.fn ? (r(), h("span", {
|
|
4189
4271
|
key: 0,
|
|
4190
4272
|
class: "layt-moni_err_item_fn",
|
|
4191
4273
|
onClick: y.fn
|
|
4192
|
-
}, te(y.btnTxt || "删除"), 9,
|
|
4274
|
+
}, te(y.btnTxt || "删除"), 9, Is)) : B("", !0)
|
|
4193
4275
|
]))), 128))
|
|
4194
|
-
])) :
|
|
4276
|
+
])) : B("", !0)
|
|
4195
4277
|
])
|
|
4196
4278
|
]));
|
|
4197
4279
|
}
|
|
4198
4280
|
});
|
|
4199
|
-
const
|
|
4281
|
+
const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e) => e == null ? void 0 : e.getBoundingClientRect(), ct = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, gt].includes(t.dataset.block || "")), at = (e) => e.previousElementSibling ? [Be, gt].includes(e.previousElementSibling.dataset.block || "") ? at(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? at(e.parentElement) : document.body, Es = (e) => {
|
|
4200
4282
|
const t = e.parentElement, o = document.createElement("span");
|
|
4201
4283
|
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = gt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
4202
|
-
},
|
|
4284
|
+
}, Ps = (e, t, o, l) => {
|
|
4203
4285
|
let i = null;
|
|
4204
4286
|
if (e.dataset.block === ft && !e.dataset.used) {
|
|
4205
4287
|
const a = window.getComputedStyle(e);
|
|
4206
4288
|
t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block === sl ? e.parentElement : e), e.dataset.used = "1";
|
|
4207
4289
|
} else
|
|
4208
|
-
e.dataset.block ===
|
|
4290
|
+
e.dataset.block === $t ? i = e.parentElement : e.dataset.block === il && !e.dataset.used ? e.offsetHeight < o - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === $e && !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" : i = e : (e.dataset.block === rl && l || cl.includes(e.tagName.toLowerCase())) && (i = e);
|
|
4209
4291
|
return i;
|
|
4210
4292
|
}, Lt = (e, t, o) => {
|
|
4211
4293
|
const l = e.textContent || "", i = l.split("").map((y) => `<span>${y}</span>`).join("");
|
|
@@ -4223,7 +4305,7 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4223
4305
|
return a || (a = at(e), ye(a).top + a.offsetHeight - t > o && (a = pt(a, t, o))), a;
|
|
4224
4306
|
}, Ft = (e, t, o, l) => {
|
|
4225
4307
|
const i = (s, c = o) => {
|
|
4226
|
-
var j,
|
|
4308
|
+
var j, J, D;
|
|
4227
4309
|
const y = s.map((w) => {
|
|
4228
4310
|
const G = ye(w);
|
|
4229
4311
|
return {
|
|
@@ -4231,38 +4313,38 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4231
4313
|
top: G.top - t,
|
|
4232
4314
|
left: G.left
|
|
4233
4315
|
};
|
|
4234
|
-
}), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top),
|
|
4235
|
-
if (!
|
|
4316
|
+
}), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top), m = (j = n.shift()) == null ? void 0 : j.el;
|
|
4317
|
+
if (!m) {
|
|
4236
4318
|
const w = ye(s[0].parentElement);
|
|
4237
4319
|
if (w.top + w.height - t - 10 < c)
|
|
4238
4320
|
return s[0].parentElement;
|
|
4239
4321
|
const G = document.createElement("div");
|
|
4240
|
-
return (
|
|
4322
|
+
return (J = s[0].parentElement) == null || J.appendChild(G), G.style.height = c - (ye(G).top - t) + "px", G;
|
|
4241
4323
|
}
|
|
4242
|
-
const
|
|
4243
|
-
if (n.filter((w) => w.top <
|
|
4244
|
-
const w = (
|
|
4324
|
+
const A = ye(m), p = A.top - t, M = A.left;
|
|
4325
|
+
if (n.filter((w) => w.top < p + m.offsetHeight && w.top + w.el.offsetHeight - 1 > p && (w.left + w.el.offsetWidth - 1 < M || w.left + 1 > M + m.offsetWidth)).length) {
|
|
4326
|
+
const w = (D = y.filter((G) => G.top < p).pop()) == null ? void 0 : D.el;
|
|
4245
4327
|
if (w != null && w.children.length) {
|
|
4246
4328
|
const G = ht(w);
|
|
4247
|
-
return i(G,
|
|
4329
|
+
return i(G, p) || w;
|
|
4248
4330
|
} else
|
|
4249
|
-
return w ? ye(w).top - t + w.offsetHeight >
|
|
4331
|
+
return w ? ye(w).top - t + w.offsetHeight > p ? Lt(w, t, p) : w : pt(m.parentElement, t, p);
|
|
4250
4332
|
} else {
|
|
4251
|
-
const w = getComputedStyle(
|
|
4252
|
-
if (
|
|
4253
|
-
return pt(
|
|
4254
|
-
const G =
|
|
4333
|
+
const w = getComputedStyle(m);
|
|
4334
|
+
if (p + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
|
|
4335
|
+
return pt(m, t, p);
|
|
4336
|
+
const G = Ps(m, c - p, c, l);
|
|
4255
4337
|
if (G)
|
|
4256
4338
|
return at(G);
|
|
4257
|
-
if (
|
|
4258
|
-
const ie = ht(
|
|
4339
|
+
if (m.children.length) {
|
|
4340
|
+
const ie = ht(m);
|
|
4259
4341
|
return i(ie, c);
|
|
4260
4342
|
} else
|
|
4261
|
-
return Lt(
|
|
4343
|
+
return Lt(m, t, c);
|
|
4262
4344
|
}
|
|
4263
4345
|
}, a = i([e]);
|
|
4264
|
-
return { cut:
|
|
4265
|
-
},
|
|
4346
|
+
return { cut: Es(a), targetEl: a };
|
|
4347
|
+
}, Ms = (e) => {
|
|
4266
4348
|
const { el: t, data: o, column: l, backColumn: i, getColSize: a, change: s } = e;
|
|
4267
4349
|
if (!t || !o.length) {
|
|
4268
4350
|
s([], !0);
|
|
@@ -4270,8 +4352,8 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4270
4352
|
}
|
|
4271
4353
|
console.time("layout");
|
|
4272
4354
|
const c = ye(t).top;
|
|
4273
|
-
let y = {}, n = 0,
|
|
4274
|
-
const
|
|
4355
|
+
let y = {}, n = 0, m = 0;
|
|
4356
|
+
const A = (w) => {
|
|
4275
4357
|
const G = w % (l + i), ie = Math.floor(w / (l + i)) * 2 + (G >= l ? 1 : 0), C = a(w, ie);
|
|
4276
4358
|
y = {
|
|
4277
4359
|
top: c,
|
|
@@ -4279,97 +4361,97 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4279
4361
|
height: parseFloat(C.height)
|
|
4280
4362
|
};
|
|
4281
4363
|
};
|
|
4282
|
-
let
|
|
4364
|
+
let p = [], M = 0;
|
|
4283
4365
|
const z = () => {
|
|
4284
|
-
|
|
4366
|
+
A(p.length), t.style.width = `${y.width}px`, p.push({
|
|
4285
4367
|
top: 0,
|
|
4286
4368
|
data: [],
|
|
4287
4369
|
width: y.width,
|
|
4288
4370
|
height: y.height
|
|
4289
|
-
}), s([...
|
|
4371
|
+
}), s([...p]);
|
|
4290
4372
|
};
|
|
4291
4373
|
z();
|
|
4292
4374
|
const j = (w) => {
|
|
4293
4375
|
const G = getComputedStyle(w);
|
|
4294
|
-
return ye(w).top - y.top + parseFloat(G.borderTop) + parseFloat(G.paddingTop) + parseFloat(G.lineHeight) >
|
|
4295
|
-
},
|
|
4376
|
+
return ye(w).top - y.top + parseFloat(G.borderTop) + parseFloat(G.paddingTop) + parseFloat(G.lineHeight) > p[p.length - 1].height;
|
|
4377
|
+
}, J = (w) => {
|
|
4296
4378
|
const G = getComputedStyle(w);
|
|
4297
|
-
return ye(w).top + w.offsetHeight - y.top - (w.dataset.block ===
|
|
4298
|
-
},
|
|
4299
|
-
if (
|
|
4300
|
-
s([...
|
|
4379
|
+
return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === $e ? 0 : parseFloat(G.paddingBottom) - parseFloat(G.borderBottom)) <= p[p.length - 1].height;
|
|
4380
|
+
}, D = (w = JSON.parse(JSON.stringify(o[M] || {}))) => {
|
|
4381
|
+
if (M >= o.length || !Object.keys(w).length) {
|
|
4382
|
+
s([...p], !0), console.timeEnd("layout"), p = [], n = 0;
|
|
4301
4383
|
return;
|
|
4302
4384
|
}
|
|
4303
|
-
|
|
4385
|
+
p[p.length - 1].data.push({ ...w }), s([...p]), window.requestAnimationFrame(() => {
|
|
4304
4386
|
const G = ct(w.__tag__, t), ie = !w.isHidden && ye(G);
|
|
4305
4387
|
let C = null;
|
|
4306
|
-
if (
|
|
4307
|
-
const U = G.querySelector(`*[data-hutkey="${
|
|
4308
|
-
|
|
4388
|
+
if (m) {
|
|
4389
|
+
const U = G.querySelector(`*[data-hutkey="${m}"]`), de = ye(U);
|
|
4390
|
+
p[p.length - 1].top = y.top - de.top, p[p.length - 1].height = y.height - p[p.length - 1].top, m = 0;
|
|
4309
4391
|
}
|
|
4310
|
-
if (ie && ie.height + ie.top - y.top >
|
|
4392
|
+
if (ie && ie.height + ie.top - y.top > p[p.length - 1].height)
|
|
4311
4393
|
if (w.problemType)
|
|
4312
|
-
|
|
4313
|
-
else if (
|
|
4314
|
-
z(),
|
|
4394
|
+
p[p.length - 1].data.pop(), z(), D({ ...w });
|
|
4395
|
+
else if (J(G))
|
|
4396
|
+
z(), M++, D();
|
|
4315
4397
|
else if (j(G))
|
|
4316
|
-
|
|
4398
|
+
p[p.length - 1].data.pop(), z(), D({ ...w });
|
|
4317
4399
|
else {
|
|
4318
|
-
C = Ft(G, y.top,
|
|
4400
|
+
C = Ft(G, y.top, p[p.length - 1].height, p.length % (l + i) >= l), console.log(C);
|
|
4319
4401
|
const U = G.querySelector(`*[data-content="${w.id}"]`);
|
|
4320
|
-
|
|
4402
|
+
p[p.length - 1].height = ye(C.cut).top - y.top, z(), U != null && U.contains(C.cut) ? (m = Date.now(), C.cut.dataset.hutkey = m, D({ ...w, content: U.innerHTML })) : (p[p.length - 1].data.pop(), D({ ...w }));
|
|
4321
4403
|
}
|
|
4322
4404
|
else {
|
|
4323
4405
|
let U = [], de = [], g = !1;
|
|
4324
|
-
if (w.children.some((S,
|
|
4325
|
-
var Y,
|
|
4326
|
-
const
|
|
4406
|
+
if (w.children.some((S, $) => {
|
|
4407
|
+
var Y, T;
|
|
4408
|
+
const N = ct(S.__tag__, t), ue = ye(N);
|
|
4327
4409
|
if (n) {
|
|
4328
|
-
const v =
|
|
4329
|
-
|
|
4410
|
+
const v = N.querySelector(`*[data-cutkey="${n}"]`), _ = ye(v);
|
|
4411
|
+
p[p.length - 1].top = y.top - _.top, p[p.length - 1].height = y.height - p[p.length - 1].top, n = 0;
|
|
4330
4412
|
}
|
|
4331
|
-
if (ue.height + ue.top - y.top >
|
|
4332
|
-
if ((Y =
|
|
4333
|
-
parseInt((
|
|
4413
|
+
if (ue.height + ue.top - y.top > p[p.length - 1].height) {
|
|
4414
|
+
if ((Y = N.parentElement) != null && Y.dataset.polymer)
|
|
4415
|
+
parseInt((T = N.parentElement) == null ? void 0 : T.dataset.polymer) ? (U = U.filter((v) => {
|
|
4334
4416
|
var _;
|
|
4335
|
-
return ct(v.__tag__, t).dataset.polymer !== ((_ =
|
|
4336
|
-
}), de = w.children.slice(U.length)) : (
|
|
4337
|
-
else if (
|
|
4338
|
-
U.push(S), de =
|
|
4339
|
-
else if (j(
|
|
4340
|
-
de = w.children.slice(
|
|
4417
|
+
return ct(v.__tag__, t).dataset.polymer !== ((_ = N.parentElement) == null ? void 0 : _.dataset.polymer);
|
|
4418
|
+
}), de = w.children.slice(U.length)) : (p[p.length - 1].data.pop(), U = [], g = !0, z(), D({ ...w }));
|
|
4419
|
+
else if (J(N))
|
|
4420
|
+
U.push(S), de = $ < w.children.length - 1 ? w.children.slice($ + 1) : [];
|
|
4421
|
+
else if (j(N))
|
|
4422
|
+
de = w.children.slice($);
|
|
4341
4423
|
else {
|
|
4342
|
-
C = Ft(
|
|
4343
|
-
const v =
|
|
4344
|
-
if (
|
|
4345
|
-
U.push(S), de =
|
|
4424
|
+
C = Ft(N, y.top, p[p.length - 1].height, p.length % (l + i) >= l);
|
|
4425
|
+
const v = N.querySelector(`*[data-content="${S.id}"]`);
|
|
4426
|
+
if (N === C.targetEl)
|
|
4427
|
+
U.push(S), de = $ < w.children.length - 1 ? w.children.slice($ + 1) : [];
|
|
4346
4428
|
else if (v && v.contains(C.cut))
|
|
4347
|
-
n = Date.now(), C.cut.dataset.cutkey = n, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML },
|
|
4429
|
+
n = Date.now(), C.cut.dataset.cutkey = n, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML }, ...$ < w.children.length - 1 ? w.children.slice($ + 1) : []], p[p.length - 1].height = ye(C.cut).top - y.top;
|
|
4348
4430
|
else {
|
|
4349
4431
|
if (!de.length) {
|
|
4350
4432
|
let _ = { ...S };
|
|
4351
4433
|
switch (S.problemType) {
|
|
4352
4434
|
case We.slove:
|
|
4353
|
-
const
|
|
4354
|
-
|
|
4435
|
+
const H = N.querySelector(`*[data-area="${S.id}"]`);
|
|
4436
|
+
H != null && H.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = H.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
|
|
4355
4437
|
break;
|
|
4356
4438
|
case We.art:
|
|
4357
4439
|
if (S.artEditor) {
|
|
4358
|
-
const Q =
|
|
4359
|
-
Q != null && Q.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = Q.innerHTML),
|
|
4440
|
+
const Q = N.querySelector(`*[data-area="${S.id}"]`);
|
|
4441
|
+
Q != null && Q.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = Q.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
|
|
4360
4442
|
break;
|
|
4361
4443
|
} else {
|
|
4362
|
-
const Q =
|
|
4444
|
+
const Q = N.querySelector(`*[data-bart="${S.id}"]`), P = C.targetEl.dataset.block === $e && C.targetEl.dataset.size ? C.targetEl : null, R = N.querySelector(`*[data-aart="${S.id}"]`);
|
|
4363
4445
|
if (Q != null && Q.contains(C.cut))
|
|
4364
4446
|
n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = Q == null ? void 0 : Q.innerHTML, _.beforeGuide = "", _.afterArt = "", _.endAnswerLen = -1;
|
|
4365
|
-
else if (
|
|
4366
|
-
const K = parseInt(
|
|
4447
|
+
else if (P) {
|
|
4448
|
+
const K = parseInt(P.dataset.size);
|
|
4367
4449
|
if (!S.artBlock)
|
|
4368
4450
|
if (S.beforeGuide && S.beforeGuide.length + (S.startAnswerLen ? 0 : 2) - S.startAnswerLen > K) {
|
|
4369
|
-
const se =
|
|
4370
|
-
if (
|
|
4451
|
+
const se = N.querySelector(`*[data-guide="${S.id}"]`), Te = ye(se);
|
|
4452
|
+
if (Te.height + Te.top - y.top > y.height) {
|
|
4371
4453
|
se.innerHTML = S.beforeGuide.split("").map((b) => `<span>${b}</span>`).join("");
|
|
4372
|
-
const ge = ye(
|
|
4454
|
+
const ge = ye(P).top + P.offsetHeight, we = [...Array.from(se.children)].findIndex((b) => ye(b).top > ge);
|
|
4373
4455
|
_.beforeGuide = S.beforeGuide.substring(0, we), S.beforeGuide = S.beforeGuide.substring(we);
|
|
4374
4456
|
} else
|
|
4375
4457
|
S.beforeGuide = "";
|
|
@@ -4377,14 +4459,14 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4377
4459
|
S.beforeGuide = "";
|
|
4378
4460
|
_.endAnswerLen = K, S.startAnswerLen = K;
|
|
4379
4461
|
} else
|
|
4380
|
-
|
|
4381
|
-
|
|
4462
|
+
R != null && R.contains(C.cut) ? (n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = R.innerHTML) : C.targetEl === Q ? (_.endAnswerLen = -1, _.beforeGuide = "", _.afterArt = "", S.beforeArt = "") : (Q == null ? void 0 : Q.previousElementSibling) === C.cut && (_.endAnswerLen = -1, _.beforeArt = "", _.beforeGuide = "", _.afterArt = "");
|
|
4463
|
+
N.contains(C.targetEl) && (S.chunk += 1);
|
|
4382
4464
|
break;
|
|
4383
4465
|
}
|
|
4384
4466
|
}
|
|
4385
|
-
|
|
4467
|
+
N.contains(C.targetEl) && U.push(_), n && (p[p.length - 1].height = ye(C.cut).top - y.top);
|
|
4386
4468
|
}
|
|
4387
|
-
de = [S,
|
|
4469
|
+
de = [S, ...$ < w.children.length - 1 ? w.children.slice($ + 1) : []];
|
|
4388
4470
|
}
|
|
4389
4471
|
}
|
|
4390
4472
|
return !0;
|
|
@@ -4392,21 +4474,21 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4392
4474
|
U.push(S);
|
|
4393
4475
|
}), g)
|
|
4394
4476
|
return;
|
|
4395
|
-
|
|
4477
|
+
p[p.length - 1].data[p[p.length - 1].data.length - 1].children = U, de.length ? (z(), D({ ...w, isHidden: !0, children: de })) : (s([...p]), M++, D());
|
|
4396
4478
|
}
|
|
4397
4479
|
});
|
|
4398
4480
|
};
|
|
4399
|
-
|
|
4481
|
+
D();
|
|
4400
4482
|
}, Wt = window.CKEDITOR;
|
|
4401
4483
|
Wt.disableAutoInline = !0;
|
|
4402
4484
|
const bt = `dx${Math.random().toString(32).substring(2)}`;
|
|
4403
|
-
function
|
|
4485
|
+
function As(e, t) {
|
|
4404
4486
|
return Wt[e](bt, {
|
|
4405
4487
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
4406
4488
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
4407
4489
|
});
|
|
4408
4490
|
}
|
|
4409
|
-
const
|
|
4491
|
+
const Ds = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Bs = ["disabled", "contentEditable", "id"], Ns = /* @__PURE__ */ ne({
|
|
4410
4492
|
__name: "index",
|
|
4411
4493
|
props: {
|
|
4412
4494
|
value: {},
|
|
@@ -4424,7 +4506,7 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4424
4506
|
return;
|
|
4425
4507
|
}
|
|
4426
4508
|
lt(() => {
|
|
4427
|
-
i.value =
|
|
4509
|
+
i.value = As("inline", l), i.value && i.value.on("instanceReady", (n) => {
|
|
4428
4510
|
i.value.setData(o.value);
|
|
4429
4511
|
});
|
|
4430
4512
|
});
|
|
@@ -4441,30 +4523,30 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4441
4523
|
}, c = () => {
|
|
4442
4524
|
t("focus");
|
|
4443
4525
|
}, y = (n) => {
|
|
4444
|
-
const
|
|
4445
|
-
|
|
4446
|
-
const
|
|
4447
|
-
(
|
|
4526
|
+
const m = document.createElement("div");
|
|
4527
|
+
m.innerHTML = n, [...Array.from(m.querySelectorAll("*"))].forEach((p) => {
|
|
4528
|
+
const M = window.getComputedStyle(p);
|
|
4529
|
+
(M.display === "none" || M.width === "0px" && M.height === "0px" || M.opacity === "0" || M.visibility === "hidden") && p.remove();
|
|
4448
4530
|
});
|
|
4449
|
-
const
|
|
4450
|
-
[...Array.from(
|
|
4531
|
+
const A = (p = m) => {
|
|
4532
|
+
[...Array.from(p.childNodes)].forEach((M) => {
|
|
4451
4533
|
var z;
|
|
4452
|
-
if (
|
|
4453
|
-
M
|
|
4454
|
-
else if (
|
|
4534
|
+
if (M.nodeType === Node.ELEMENT_NODE && M.children.length)
|
|
4535
|
+
A(M);
|
|
4536
|
+
else if (M.nodeType === Node.TEXT_NODE) {
|
|
4455
4537
|
const j = document.createElement("span");
|
|
4456
|
-
j.textContent =
|
|
4538
|
+
j.textContent = M.textContent, window.REGULAR.underscore.test(M.textContent || "") && (window.getComputedStyle(M.parentNode).wordBreak !== "break-all" || !(M.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (M.textContent || "").length > 5 && (j.innerHTML = (M.textContent || "").replace(window.REGULAR.underscore, (D) => D.length > 5 ? `<span style="word-break: break-all">${D}</span>` : D)), (z = M.parentElement) == null || z.replaceChild(j, M);
|
|
4457
4539
|
}
|
|
4458
4540
|
});
|
|
4459
4541
|
};
|
|
4460
|
-
return
|
|
4542
|
+
return A(), m.innerHTML;
|
|
4461
4543
|
};
|
|
4462
|
-
return (n,
|
|
4544
|
+
return (n, m) => (r(), h("div", Ds, [
|
|
4463
4545
|
o.readonly ? (r(), ee(Oe, {
|
|
4464
4546
|
key: 1,
|
|
4465
4547
|
data: o.value,
|
|
4466
4548
|
class: "raw_view"
|
|
4467
|
-
}, null, 8, ["data"])) : (r(),
|
|
4549
|
+
}, null, 8, ["data"])) : (r(), h("div", {
|
|
4468
4550
|
key: 0,
|
|
4469
4551
|
class: "overflow-auto outline-none whitespace-normal editor_view",
|
|
4470
4552
|
disabled: o.readonly,
|
|
@@ -4472,29 +4554,29 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4472
4554
|
id: L(bt),
|
|
4473
4555
|
onFocus: c,
|
|
4474
4556
|
onBlur: s
|
|
4475
|
-
}, null, 40,
|
|
4557
|
+
}, null, 40, Bs))
|
|
4476
4558
|
]));
|
|
4477
4559
|
}
|
|
4478
4560
|
});
|
|
4479
|
-
const
|
|
4561
|
+
const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
|
|
4480
4562
|
mounted: (e, t) => {
|
|
4481
4563
|
let o = null, l = null, i = {}, a = !1, s = e.offsetParent, c = {}, y = {}, n = {};
|
|
4482
|
-
const
|
|
4483
|
-
|
|
4564
|
+
const m = e.querySelector(".move-target") || e;
|
|
4565
|
+
m.style.cursor = "move", m.addEventListener("mousedown", (A) => {
|
|
4484
4566
|
a = !!e.dataset.safe, s = e.offsetParent;
|
|
4485
|
-
const
|
|
4486
|
-
i = { x:
|
|
4567
|
+
const p = window.getComputedStyle(e);
|
|
4568
|
+
i = { x: A.clientX, y: A.clientY }, c = { x: parseInt(p.left), y: parseInt(p.top) }, document.addEventListener("mousemove", o), document.addEventListener("mouseup", l), document.addEventListener("mouseleave", l);
|
|
4487
4569
|
}), l = () => {
|
|
4488
4570
|
t.value && typeof t.value == "function" && t.value(n), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", l), document.removeEventListener("mouseleave", l);
|
|
4489
|
-
}, o = (
|
|
4571
|
+
}, o = (A) => {
|
|
4490
4572
|
if (e.getAttribute("disabled") === "true")
|
|
4491
4573
|
return;
|
|
4492
|
-
|
|
4493
|
-
const
|
|
4494
|
-
e.style.left = `${
|
|
4574
|
+
A.stopPropagation(), A.preventDefault(), y = { x: A.clientX, y: A.clientY };
|
|
4575
|
+
const p = a ? Math.min(Math.max(y.x - i.x + c.x, 0), s.offsetWidth - e.offsetWidth) : y.x - i.x + c.x, M = a ? Math.min(Math.max(y.y - i.y + c.y, 0), s.offsetHeight - e.offsetHeight) : y.y - i.y + c.y;
|
|
4576
|
+
e.style.left = `${p}px`, e.style.top = `${M}px`, n = { x: p, y: M };
|
|
4495
4577
|
};
|
|
4496
4578
|
}
|
|
4497
|
-
}, Hs = ["onMousedown", "data-block"],
|
|
4579
|
+
}, Hs = ["onMousedown", "data-block"], Rs = ["src"], Ws = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Gs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Qs = ["onMousedown"], qs = ["onMousedown"], Ys = ["disabled", "onMousedown", "data-block"], Ks = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Us = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Vs = ["onMousedown"], js = /* @__PURE__ */ ne({
|
|
4498
4580
|
__name: "absItem",
|
|
4499
4581
|
props: {
|
|
4500
4582
|
imgData: {},
|
|
@@ -4506,7 +4588,7 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4506
4588
|
},
|
|
4507
4589
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4508
4590
|
setup(e, { emit: t }) {
|
|
4509
|
-
const o = e, l =
|
|
4591
|
+
const o = e, l = zs, i = [
|
|
4510
4592
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4511
4593
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4512
4594
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4517,13 +4599,13 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4517
4599
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4518
4600
|
], a = V({}), s = V(), c = V(0), y = V(0), n = V();
|
|
4519
4601
|
V();
|
|
4520
|
-
const
|
|
4521
|
-
|
|
4522
|
-
top:
|
|
4523
|
-
}))),
|
|
4524
|
-
|
|
4525
|
-
top:
|
|
4526
|
-
}))),
|
|
4602
|
+
const m = V({}), A = V(!1), p = V(), M = V(), z = V(), j = W(() => o.imgData.map((T) => ({
|
|
4603
|
+
...T,
|
|
4604
|
+
top: T.top - Math.floor(T.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4605
|
+
}))), J = W(() => o.txtData.map((T) => ({
|
|
4606
|
+
...T,
|
|
4607
|
+
top: T.top - Math.floor(T.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4608
|
+
}))), D = W(() => p.value ? p.value.split("-")[0] === "img" ? j.value.find((v) => v.key === p.value) : J.value.find((v) => v.key === p.value) : null), w = W(() => D.value ? { [D.value.key]: { ...s.value } } : {});
|
|
4527
4609
|
De(() => o.activeAbsItem, () => {
|
|
4528
4610
|
o.activeAbsItem && Y({ ...o.activeAbsItem });
|
|
4529
4611
|
}), De(() => o.target, () => {
|
|
@@ -4531,135 +4613,135 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4531
4613
|
}), Ke(() => {
|
|
4532
4614
|
n.value = document.body.querySelector(".__layout__");
|
|
4533
4615
|
});
|
|
4534
|
-
const G = (
|
|
4616
|
+
const G = (T) => {
|
|
4535
4617
|
var v;
|
|
4536
|
-
|
|
4537
|
-
}, ie = (
|
|
4538
|
-
|
|
4618
|
+
s.value = { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }, (v = D.value) != null && v.key && (D.value.key.split("-")[0] === "img" ? t("changeAbsImgItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }) : t("changeAbsTxtItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }));
|
|
4619
|
+
}, ie = (T) => {
|
|
4620
|
+
A.value = T;
|
|
4539
4621
|
}, C = () => {
|
|
4540
|
-
const
|
|
4541
|
-
|
|
4542
|
-
}, U = (
|
|
4543
|
-
|
|
4544
|
-
const v =
|
|
4545
|
-
s.value = { ...
|
|
4546
|
-
}, de = (
|
|
4547
|
-
|
|
4548
|
-
}, g = (
|
|
4622
|
+
const T = D.value, v = T.left + T.width / 2, _ = T.top + T.height / 2, H = n.value.getBoundingClientRect() || {};
|
|
4623
|
+
m.value = { x: v + H.left, y: _ + H.top }, n.value.addEventListener("mousemove", U), n.value.addEventListener("mouseleave", de), n.value.addEventListener("mouseup", de);
|
|
4624
|
+
}, U = (T) => {
|
|
4625
|
+
T.stopPropagation(), T.preventDefault();
|
|
4626
|
+
const v = T.clientX - m.value.x, _ = m.value.y - T.clientY, H = Math.atan2(_, v) / (Math.PI / 180);
|
|
4627
|
+
s.value = { ...D.value, rotate: -parseInt(H.toString()) };
|
|
4628
|
+
}, de = (T) => {
|
|
4629
|
+
T.stopPropagation(), T.preventDefault(), t("changeAbsImgItem", s.value), n.value.removeEventListener("mousemove", U), n.value.removeEventListener("mouseleave", de), n.value.removeEventListener("mouseup", de);
|
|
4630
|
+
}, g = (T, v) => {
|
|
4549
4631
|
var _;
|
|
4550
|
-
|
|
4551
|
-
}, S = (
|
|
4552
|
-
const v = { x:
|
|
4632
|
+
T.stopPropagation(), c.value = v, a.value = { x: T.clientX, y: T.clientY, ...D.value }, ((_ = D.value) == null ? void 0 : _.key.split("-")[0]) === "img" ? n.value.addEventListener("mousemove", S) : n.value.addEventListener("mousemove", $), n.value.addEventListener("mouseleave", N), n.value.addEventListener("mouseup", N);
|
|
4633
|
+
}, S = (T) => {
|
|
4634
|
+
const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = v.x > v.y ? "width" : "height";
|
|
4553
4635
|
[
|
|
4554
4636
|
// 0
|
|
4555
4637
|
() => {
|
|
4556
|
-
const
|
|
4638
|
+
const P = {
|
|
4557
4639
|
width: a.value.width - v.x,
|
|
4558
4640
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4559
|
-
}[
|
|
4641
|
+
}[H], R = {
|
|
4560
4642
|
width: a.value.height * (1 - v.x / a.value.width),
|
|
4561
4643
|
height: a.value.height - v.y
|
|
4562
|
-
}[
|
|
4644
|
+
}[H];
|
|
4563
4645
|
s.value = {
|
|
4564
4646
|
..._,
|
|
4565
|
-
width:
|
|
4566
|
-
height:
|
|
4567
|
-
left: a.value.left - (
|
|
4568
|
-
top: a.value.top - (
|
|
4647
|
+
width: P,
|
|
4648
|
+
height: R,
|
|
4649
|
+
left: a.value.left - (P - a.value.width),
|
|
4650
|
+
top: a.value.top - (R - a.value.height)
|
|
4569
4651
|
};
|
|
4570
4652
|
},
|
|
4571
4653
|
// 1
|
|
4572
4654
|
() => {
|
|
4573
|
-
const
|
|
4655
|
+
const P = a.value.width * (1 - v.y / a.value.height), R = a.value.height - v.y;
|
|
4574
4656
|
s.value = {
|
|
4575
4657
|
..._,
|
|
4576
|
-
width:
|
|
4577
|
-
height:
|
|
4578
|
-
left: a.value.left - (
|
|
4579
|
-
top: a.value.top - (
|
|
4658
|
+
width: P,
|
|
4659
|
+
height: R,
|
|
4660
|
+
left: a.value.left - (P - a.value.width) / 2,
|
|
4661
|
+
top: a.value.top - (R - a.value.height)
|
|
4580
4662
|
};
|
|
4581
4663
|
},
|
|
4582
4664
|
// 2
|
|
4583
4665
|
() => {
|
|
4584
|
-
const
|
|
4666
|
+
const P = {
|
|
4585
4667
|
width: a.value.height * (1 + v.x / a.value.width),
|
|
4586
4668
|
height: a.value.height - v.y
|
|
4587
|
-
}[
|
|
4669
|
+
}[H];
|
|
4588
4670
|
s.value = {
|
|
4589
4671
|
..._,
|
|
4590
4672
|
width: {
|
|
4591
4673
|
width: a.value.width + v.x,
|
|
4592
4674
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4593
|
-
}[
|
|
4594
|
-
height:
|
|
4595
|
-
top: a.value.top - (
|
|
4675
|
+
}[H],
|
|
4676
|
+
height: P,
|
|
4677
|
+
top: a.value.top - (P - a.value.height)
|
|
4596
4678
|
};
|
|
4597
4679
|
},
|
|
4598
4680
|
// 3
|
|
4599
4681
|
() => {
|
|
4600
|
-
const
|
|
4682
|
+
const P = a.value.width - v.x, R = a.value.height * (1 - v.x / a.value.width);
|
|
4601
4683
|
s.value = {
|
|
4602
4684
|
..._,
|
|
4603
|
-
width:
|
|
4604
|
-
height:
|
|
4605
|
-
left: a.value.left - (
|
|
4606
|
-
top: a.value.top - (
|
|
4685
|
+
width: P,
|
|
4686
|
+
height: R,
|
|
4687
|
+
left: a.value.left - (P - a.value.width),
|
|
4688
|
+
top: a.value.top - (R - a.value.height) / 2
|
|
4607
4689
|
};
|
|
4608
4690
|
},
|
|
4609
4691
|
// 4
|
|
4610
4692
|
() => {
|
|
4611
|
-
const
|
|
4693
|
+
const P = a.value.width + v.x, R = a.value.height * (1 + v.x / a.value.width);
|
|
4612
4694
|
s.value = {
|
|
4613
4695
|
..._,
|
|
4614
|
-
width:
|
|
4615
|
-
height:
|
|
4616
|
-
top: a.value.top - (
|
|
4696
|
+
width: P,
|
|
4697
|
+
height: R,
|
|
4698
|
+
top: a.value.top - (R - a.value.height) / 2
|
|
4617
4699
|
};
|
|
4618
4700
|
},
|
|
4619
4701
|
// 5
|
|
4620
4702
|
() => {
|
|
4621
|
-
const
|
|
4703
|
+
const P = {
|
|
4622
4704
|
width: a.value.width - v.x,
|
|
4623
4705
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4624
|
-
}[
|
|
4706
|
+
}[H], R = {
|
|
4625
4707
|
width: a.value.height * (1 - v.x / a.value.width),
|
|
4626
4708
|
height: a.value.height + v.y
|
|
4627
|
-
}[
|
|
4709
|
+
}[H];
|
|
4628
4710
|
s.value = {
|
|
4629
4711
|
..._,
|
|
4630
|
-
width:
|
|
4631
|
-
height:
|
|
4632
|
-
left: a.value.left - (
|
|
4712
|
+
width: P,
|
|
4713
|
+
height: R,
|
|
4714
|
+
left: a.value.left - (P - a.value.width)
|
|
4633
4715
|
};
|
|
4634
4716
|
},
|
|
4635
4717
|
// 6
|
|
4636
4718
|
() => {
|
|
4637
|
-
const
|
|
4719
|
+
const P = a.value.width * (1 + v.y / a.value.height), R = a.value.height + v.y;
|
|
4638
4720
|
s.value = {
|
|
4639
4721
|
..._,
|
|
4640
|
-
width:
|
|
4641
|
-
height:
|
|
4642
|
-
left: a.value.left - (
|
|
4722
|
+
width: P,
|
|
4723
|
+
height: R,
|
|
4724
|
+
left: a.value.left - (P - a.value.width) / 2
|
|
4643
4725
|
};
|
|
4644
4726
|
},
|
|
4645
4727
|
// 7
|
|
4646
4728
|
() => {
|
|
4647
|
-
const
|
|
4729
|
+
const P = {
|
|
4648
4730
|
width: a.value.width + v.x,
|
|
4649
4731
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4650
|
-
}[
|
|
4732
|
+
}[H], R = {
|
|
4651
4733
|
width: a.value.height * (1 + v.x / a.value.width),
|
|
4652
4734
|
height: a.value.height + v.y
|
|
4653
|
-
}[
|
|
4735
|
+
}[H];
|
|
4654
4736
|
s.value = {
|
|
4655
4737
|
..._,
|
|
4656
|
-
width:
|
|
4657
|
-
height:
|
|
4738
|
+
width: P,
|
|
4739
|
+
height: R
|
|
4658
4740
|
};
|
|
4659
4741
|
}
|
|
4660
4742
|
][c.value]();
|
|
4661
|
-
},
|
|
4662
|
-
const v = { x:
|
|
4743
|
+
}, $ = (T) => {
|
|
4744
|
+
const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = [
|
|
4663
4745
|
{
|
|
4664
4746
|
..._,
|
|
4665
4747
|
width: a.value.width - v.x,
|
|
@@ -4703,41 +4785,41 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4703
4785
|
height: a.value.height + v.y
|
|
4704
4786
|
}
|
|
4705
4787
|
];
|
|
4706
|
-
s.value =
|
|
4707
|
-
},
|
|
4708
|
-
var
|
|
4709
|
-
n.value.removeEventListener("mousemove", S), n.value.removeEventListener("mousemove",
|
|
4710
|
-
}, ue = (
|
|
4711
|
-
if (
|
|
4788
|
+
s.value = H[c.value];
|
|
4789
|
+
}, N = () => {
|
|
4790
|
+
var T;
|
|
4791
|
+
n.value.removeEventListener("mousemove", S), n.value.removeEventListener("mousemove", $), n.value.removeEventListener("mouseleave", N), n.value.removeEventListener("mouseup", N), ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4792
|
+
}, ue = (T) => {
|
|
4793
|
+
if (!T || T === D.value.content) {
|
|
4712
4794
|
y.value++;
|
|
4713
4795
|
return;
|
|
4714
4796
|
}
|
|
4715
|
-
t("changeAbsTxtItem", { ...
|
|
4716
|
-
}, Y = (
|
|
4717
|
-
var
|
|
4797
|
+
t("changeAbsTxtItem", { ...D.value, content: T });
|
|
4798
|
+
}, Y = (T, v) => {
|
|
4799
|
+
var H, Q;
|
|
4718
4800
|
const _ = document.body.querySelector(`.cke_editor_${bt}`);
|
|
4719
|
-
|
|
4801
|
+
!T && ((Q = (H = v == null ? void 0 : v.target) == null ? void 0 : H.dataset) != null && Q.safe || [...M.value || [], ...z.value || []].find((P) => P.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (p.value = T == null ? void 0 : T.key, T && (s.value = { ...T }));
|
|
4720
4802
|
};
|
|
4721
|
-
return (
|
|
4722
|
-
(r(!0),
|
|
4723
|
-
var
|
|
4724
|
-
return Ct((r(),
|
|
4803
|
+
return (T, v) => (r(), h(O, null, [
|
|
4804
|
+
(r(!0), h(O, null, le(j.value, (_) => {
|
|
4805
|
+
var H, Q, P, R, K, se, Te;
|
|
4806
|
+
return Ct((r(), h("div", {
|
|
4725
4807
|
key: _.id,
|
|
4726
4808
|
ref_for: !0,
|
|
4727
4809
|
ref_key: "imgViewList",
|
|
4728
|
-
ref:
|
|
4810
|
+
ref: M,
|
|
4729
4811
|
"data-safe": "true",
|
|
4730
|
-
class: oe(["absolute", ((
|
|
4731
|
-
style:
|
|
4732
|
-
onClick: v[0] || (v[0] = Ee((ge) =>
|
|
4812
|
+
class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8" : "z-7"]),
|
|
4813
|
+
style: X({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((P = w.value[_.key]) == null ? void 0 : P.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
|
|
4814
|
+
onClick: v[0] || (v[0] = Ee((ge) => T.void, ["stop"])),
|
|
4733
4815
|
onMousedown: Ee((ge) => Y(_), ["stop"]),
|
|
4734
4816
|
"data-block": L(Be)
|
|
4735
4817
|
}, [
|
|
4736
4818
|
k("img", {
|
|
4737
4819
|
src: _.url
|
|
4738
|
-
}, null, 8,
|
|
4739
|
-
((
|
|
4740
|
-
k("span",
|
|
4820
|
+
}, null, 8, Rs),
|
|
4821
|
+
((Te = D.value) == null ? void 0 : Te.key) === _.key ? (r(), h(O, { key: 0 }, [
|
|
4822
|
+
k("span", Ws, [
|
|
4741
4823
|
ae(ve, {
|
|
4742
4824
|
name: "close",
|
|
4743
4825
|
width: 2,
|
|
@@ -4745,13 +4827,13 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4745
4827
|
onClick: (ge) => t("delAbsImgItem", _)
|
|
4746
4828
|
}, null, 8, ["onClick"])
|
|
4747
4829
|
]),
|
|
4748
|
-
k("div",
|
|
4749
|
-
(r(),
|
|
4830
|
+
k("div", Gs, [
|
|
4831
|
+
(r(), h(O, null, le(8, (ge, we) => k("div", {
|
|
4750
4832
|
key: ge,
|
|
4751
4833
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4752
|
-
style:
|
|
4834
|
+
style: X({ ...i[we], transform: "translate(-50%, -50%)" }),
|
|
4753
4835
|
onMousedown: Ee((b) => g(b, we), ["stop"])
|
|
4754
|
-
}, null, 44,
|
|
4836
|
+
}, null, 44, Qs)), 64))
|
|
4755
4837
|
]),
|
|
4756
4838
|
k("span", {
|
|
4757
4839
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
@@ -4761,39 +4843,39 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4761
4843
|
name: "reset",
|
|
4762
4844
|
width: 2
|
|
4763
4845
|
})
|
|
4764
|
-
], 40,
|
|
4765
|
-
], 64)) :
|
|
4846
|
+
], 40, qs)
|
|
4847
|
+
], 64)) : B("", !0)
|
|
4766
4848
|
], 46, Hs)), [
|
|
4767
4849
|
[L(l), G]
|
|
4768
4850
|
]);
|
|
4769
4851
|
}), 128)),
|
|
4770
|
-
(r(!0),
|
|
4771
|
-
var
|
|
4772
|
-
return Ct((r(),
|
|
4852
|
+
(r(!0), h(O, null, le(J.value, (_) => {
|
|
4853
|
+
var H, Q, P, R, K, se, Te;
|
|
4854
|
+
return Ct((r(), h("div", {
|
|
4773
4855
|
key: _.id,
|
|
4774
4856
|
ref_for: !0,
|
|
4775
4857
|
ref_key: "txtViewList",
|
|
4776
4858
|
ref: z,
|
|
4777
|
-
disabled:
|
|
4859
|
+
disabled: A.value,
|
|
4778
4860
|
"data-safe": "true",
|
|
4779
|
-
class: oe(["absolute", ((
|
|
4780
|
-
style:
|
|
4781
|
-
onClick: v[3] || (v[3] = Ee((ge) =>
|
|
4861
|
+
class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8 bg-white" : "z-7"]),
|
|
4862
|
+
style: X({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((P = w.value[_.key]) == null ? void 0 : P.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
|
|
4863
|
+
onClick: v[3] || (v[3] = Ee((ge) => T.void, ["stop"])),
|
|
4782
4864
|
onMousedown: Ee((ge) => Y(_), ["stop"]),
|
|
4783
4865
|
"data-block": L(Be)
|
|
4784
4866
|
}, [
|
|
4785
|
-
(r(), ee(
|
|
4867
|
+
(r(), ee(Os, {
|
|
4786
4868
|
key: y.value,
|
|
4787
4869
|
class: "border-0 relative z-4",
|
|
4788
|
-
readonly: ((se =
|
|
4870
|
+
readonly: ((se = D.value) == null ? void 0 : se.key) !== _.key,
|
|
4789
4871
|
value: _.content,
|
|
4790
4872
|
name: _.id.toString(),
|
|
4791
4873
|
onChange: ue,
|
|
4792
4874
|
onFocus: v[1] || (v[1] = (ge) => ie(!0)),
|
|
4793
4875
|
onBlur: v[2] || (v[2] = (ge) => ie(!1))
|
|
4794
4876
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4795
|
-
((
|
|
4796
|
-
k("span",
|
|
4877
|
+
((Te = D.value) == null ? void 0 : Te.key) === _.key ? (r(), h(O, { key: 0 }, [
|
|
4878
|
+
k("span", Ks, [
|
|
4797
4879
|
ae(ve, {
|
|
4798
4880
|
name: "close",
|
|
4799
4881
|
width: 2,
|
|
@@ -4801,28 +4883,28 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4801
4883
|
onClick: (ge) => t("delAbsTxtItem", _)
|
|
4802
4884
|
}, null, 8, ["onClick"])
|
|
4803
4885
|
]),
|
|
4804
|
-
k("div",
|
|
4805
|
-
(r(),
|
|
4886
|
+
k("div", Us, [
|
|
4887
|
+
(r(), h(O, null, le(8, (ge, we) => k("div", {
|
|
4806
4888
|
key: ge,
|
|
4807
4889
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4808
|
-
style:
|
|
4890
|
+
style: X({ ...i[we], transform: "translate(-50%, -50%)" }),
|
|
4809
4891
|
onMousedown: (b) => g(b, we)
|
|
4810
|
-
}, null, 44,
|
|
4892
|
+
}, null, 44, Vs)), 64))
|
|
4811
4893
|
])
|
|
4812
|
-
], 64)) :
|
|
4813
|
-
], 46,
|
|
4894
|
+
], 64)) : B("", !0)
|
|
4895
|
+
], 46, Ys)), [
|
|
4814
4896
|
[L(l), G]
|
|
4815
4897
|
]);
|
|
4816
4898
|
}), 128))
|
|
4817
4899
|
], 64));
|
|
4818
4900
|
}
|
|
4819
4901
|
});
|
|
4820
|
-
const
|
|
4902
|
+
const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["viewBox"], Zs = {
|
|
4821
4903
|
x: "0",
|
|
4822
4904
|
y: "0",
|
|
4823
4905
|
width: "100%",
|
|
4824
4906
|
height: "100%"
|
|
4825
|
-
},
|
|
4907
|
+
}, ei = ["onClick", "onDblclick"], ti = ["data-block"], oi = /* @__PURE__ */ ne({
|
|
4826
4908
|
__name: "index",
|
|
4827
4909
|
props: {
|
|
4828
4910
|
layout: {},
|
|
@@ -4841,32 +4923,32 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
4841
4923
|
setup(e, { emit: t }) {
|
|
4842
4924
|
const o = e;
|
|
4843
4925
|
Yt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4844
|
-
const l = V([]), i = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]),
|
|
4926
|
+
const l = V([]), i = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]), m = V([]), A = V([]), p = V([]), M = W(() => o.data.map((b) => ({
|
|
4845
4927
|
...b,
|
|
4846
|
-
__tag__:
|
|
4928
|
+
__tag__: Tt(),
|
|
4847
4929
|
rawChildren: b.children,
|
|
4848
|
-
children: b.children.map((F) => ({ ...F,
|
|
4930
|
+
children: b.children.map((F) => ({ ...F, ...T(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Tt() }))
|
|
4849
4931
|
}))), z = W(() => {
|
|
4850
|
-
if (!
|
|
4932
|
+
if (!M.value.length)
|
|
4851
4933
|
return;
|
|
4852
|
-
const b =
|
|
4853
|
-
return ie.value && [
|
|
4934
|
+
const b = M.value[M.value.length - 1], F = b.rawChildren[b.rawChildren.length - 1];
|
|
4935
|
+
return ie.value && [u.slove].includes(F == null ? void 0 : F.problemType) && F.id;
|
|
4854
4936
|
}), j = W(() => {
|
|
4855
4937
|
var b;
|
|
4856
4938
|
return o.layout.bindFlag && !!((b = Ge.find((F) => F.code === o.layout.paper)) != null && b.isMultCol);
|
|
4857
|
-
}),
|
|
4939
|
+
}), J = W(() => o.isFinal ? 0 : 10), D = W(() => o.isFinal ? 10 : 0), w = W(() => 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) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + R(0) : 0) + R(0)) / o.layout.column - R(0)), $ = W(() => ({
|
|
4858
4940
|
width: `${x[o.layout.paper].width}px`,
|
|
4859
|
-
height: `${(x[o.layout.paper].height +
|
|
4860
|
-
})),
|
|
4941
|
+
height: `${(x[o.layout.paper].height + J.value) * G.value - J.value}px`
|
|
4942
|
+
})), N = W(() => ({
|
|
4861
4943
|
width: `${x[o.layout.paper].width}px`,
|
|
4862
4944
|
height: `${x[o.layout.paper].height}px`,
|
|
4863
4945
|
padding: `${U.value.top}px ${U.value.right}px ${U.value.bottom}px ${U.value.left}px`,
|
|
4864
|
-
marginBottom: `${
|
|
4946
|
+
marginBottom: `${J.value}px`
|
|
4865
4947
|
})), ue = W(() => {
|
|
4866
4948
|
var F;
|
|
4867
4949
|
const b = (F = Ge.find((_e) => _e.code === o.layout.paper)) == null ? void 0 : F.isFullTitle;
|
|
4868
4950
|
return {
|
|
4869
|
-
left: `${U.value.left + (c.value ? c.value +
|
|
4951
|
+
left: `${U.value.left + (c.value ? c.value + R(0) : 0)}px`,
|
|
4870
4952
|
top: `${U.value.top}px`,
|
|
4871
4953
|
width: b ? `${de.value}px` : `${S.value}px`
|
|
4872
4954
|
};
|
|
@@ -4878,51 +4960,51 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
4878
4960
|
}, { immediate: !0 }), De(() => j.value, () => {
|
|
4879
4961
|
c.value = j.value ? 100 : 0;
|
|
4880
4962
|
}, { immediate: !0 });
|
|
4881
|
-
const
|
|
4963
|
+
const T = (b) => {
|
|
4882
4964
|
let F = { ...b };
|
|
4883
|
-
if ([
|
|
4965
|
+
if ([u.slove].includes(F.problemType) && ie.value) {
|
|
4884
4966
|
const _e = document.createElement("div");
|
|
4885
4967
|
_e.innerHTML = F.answerArea;
|
|
4886
|
-
const
|
|
4887
|
-
if (
|
|
4968
|
+
const Z = _e.querySelector(Bt.sub);
|
|
4969
|
+
if (Z) {
|
|
4888
4970
|
const re = document.createElement("div");
|
|
4889
|
-
re.innerHTML =
|
|
4971
|
+
re.innerHTML = is(F.sub, F.style[d.public.scoreShowFlag] === f.bracket_none ? void 0 : [F.score].flat(2).reduce((Ie, Ae) => Ie + Ae, 0), F.style[d.public.scoreShowFlag]), Z.replaceWith(re.children[0]), F.answerArea = _e.innerHTML, F.customSub = !0, _e.remove(), re.remove();
|
|
4890
4972
|
}
|
|
4891
4973
|
}
|
|
4892
4974
|
return F;
|
|
4893
|
-
}, v = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _ = (b, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + b,
|
|
4975
|
+
}, v = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _ = (b, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + b, H = (b) => {
|
|
4894
4976
|
const F = b % (o.layout.column + o.layout.backColumn);
|
|
4895
4977
|
return F >= o.layout.column ? F - o.layout.column : F;
|
|
4896
4978
|
}, Q = (b, F) => {
|
|
4897
4979
|
b ? n.value[F] = b : n.value.splice(F, 1);
|
|
4898
|
-
},
|
|
4899
|
-
b ?
|
|
4900
|
-
},
|
|
4901
|
-
var
|
|
4902
|
-
const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((
|
|
4980
|
+
}, P = (b, F) => {
|
|
4981
|
+
b ? m.value[F] = b : m.value.splice(F, 1);
|
|
4982
|
+
}, R = (b) => Mt[o.layout.mode][o.layout.paper][v(b)] || 0, K = (b, F = !1) => (de.value - (c.value ? c.value + R(b) : 0) + R(b)) / v(b) - R(b) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), se = (b, F) => {
|
|
4983
|
+
var Z, re;
|
|
4984
|
+
const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((Z = A.value[Math.min(F, 1)]) == null ? void 0 : Z.offsetHeight) || 0;
|
|
4903
4985
|
return {
|
|
4904
|
-
left: `${U.value.left + (F % 2 ? 0 : c.value ? c.value +
|
|
4986
|
+
left: `${U.value.left + (F % 2 ? 0 : c.value ? c.value + R(b) : 0) + C.value.left + H(b) * (K(b) + R(b) + C.value.left + C.value.right)}px`,
|
|
4905
4987
|
top: `${_e + U.value.top + (!F && !b ? 0 : C.value.top)}px`,
|
|
4906
4988
|
width: `${K(b)}px`,
|
|
4907
4989
|
height: `${g.value - _e - (!F && !b ? 0 : C.value.top) - C.value.bottom}px`,
|
|
4908
4990
|
contentHeight: `${(re = l.value[b]) == null ? void 0 : re.height}px`
|
|
4909
4991
|
};
|
|
4910
|
-
},
|
|
4992
|
+
}, Te = (b, F = !1) => {
|
|
4911
4993
|
i.value = b.map((_e) => ({ ..._e })), F && (l.value = [...b], s.value += 1, lt(() => {
|
|
4912
|
-
a.value = Math.ceil(l.value.length / o.layout.column), i.value = [],
|
|
4994
|
+
a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], m.value.forEach((_e, Z) => {
|
|
4913
4995
|
var re, Ie;
|
|
4914
|
-
!_e || !_e.col || ((re = l.value[
|
|
4996
|
+
!_e || !_e.col || ((re = l.value[Z]) != null && re.top ? _e.col.style.marginTop = `${(Ie = l.value[Z]) == null ? void 0 : Ie.top}px` : _e.col.style.marginTop = "");
|
|
4915
4997
|
}), o.isFinal && setTimeout(() => {
|
|
4916
|
-
const _e =
|
|
4998
|
+
const _e = ws({
|
|
4917
4999
|
config: {
|
|
4918
5000
|
...o.info,
|
|
4919
5001
|
layout: o.layout,
|
|
4920
5002
|
pageTotal: w.value,
|
|
4921
5003
|
bindWidth: c.value,
|
|
4922
|
-
pageMargin:
|
|
5004
|
+
pageMargin: J.value,
|
|
4923
5005
|
pageDom: n.value.slice(0, w.value),
|
|
4924
|
-
colDom:
|
|
4925
|
-
colViewDom:
|
|
5006
|
+
colDom: m.value.map((Z) => Z.col),
|
|
5007
|
+
colViewDom: m.value.map((Z) => Z.colView)
|
|
4926
5008
|
},
|
|
4927
5009
|
data: l.value
|
|
4928
5010
|
});
|
|
@@ -4930,54 +5012,54 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
4930
5012
|
}, 500);
|
|
4931
5013
|
}));
|
|
4932
5014
|
}, ge = () => {
|
|
4933
|
-
|
|
5015
|
+
Ms({
|
|
4934
5016
|
el: y.value,
|
|
4935
|
-
data:
|
|
5017
|
+
data: M.value,
|
|
4936
5018
|
column: o.layout.column,
|
|
4937
5019
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4938
5020
|
getColSize: se,
|
|
4939
|
-
change:
|
|
5021
|
+
change: Te
|
|
4940
5022
|
});
|
|
4941
|
-
}, we = (b = { type:
|
|
5023
|
+
}, we = (b = { type: E.page, value: {} }) => {
|
|
4942
5024
|
t("toggleActive", b);
|
|
4943
5025
|
};
|
|
4944
5026
|
return (b, F) => {
|
|
4945
5027
|
var _e;
|
|
4946
|
-
return r(),
|
|
4947
|
-
b.readonly ?
|
|
5028
|
+
return r(), h(O, null, [
|
|
5029
|
+
b.readonly ? B("", !0) : (r(), ee(Fs, {
|
|
4948
5030
|
key: 0,
|
|
4949
5031
|
ColList: l.value,
|
|
4950
|
-
ColDom:
|
|
5032
|
+
ColDom: m.value.map((Z) => Z.col),
|
|
4951
5033
|
ImgData: b.imgData,
|
|
4952
5034
|
TxtData: b.txtData,
|
|
4953
|
-
onDelAbsImgItem: F[0] || (F[0] = (
|
|
4954
|
-
onDelAbsTxtItem: F[1] || (F[1] = (
|
|
4955
|
-
onChangeLayoutStatus: F[2] || (F[2] = (
|
|
5035
|
+
onDelAbsImgItem: F[0] || (F[0] = (Z) => t("delAbsImgItem", Z)),
|
|
5036
|
+
onDelAbsTxtItem: F[1] || (F[1] = (Z) => t("delAbsTxtItem", Z)),
|
|
5037
|
+
onChangeLayoutStatus: F[2] || (F[2] = (Z) => t("changeLayoutStatus", Z))
|
|
4956
5038
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4957
5039
|
k("div", {
|
|
4958
5040
|
class: "flex-1 overflow-auto relative z-1",
|
|
4959
5041
|
id: "alit-layout",
|
|
4960
|
-
onClick: F[14] || (F[14] = (
|
|
5042
|
+
onClick: F[14] || (F[14] = (Z) => we())
|
|
4961
5043
|
}, [
|
|
4962
5044
|
k("div", {
|
|
4963
5045
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4964
5046
|
ref_key: "rawDom",
|
|
4965
5047
|
ref: y
|
|
4966
5048
|
}, [
|
|
4967
|
-
i.value.length ? (r(!0),
|
|
4968
|
-
|
|
5049
|
+
i.value.length ? (r(!0), h(O, { key: 0 }, le((_e = i.value[i.value.length - 1]) == null ? void 0 : _e.data, (Z, re) => (r(), h(O, null, [
|
|
5050
|
+
Z.isHidden ? B("", !0) : (r(), ee(It, {
|
|
4969
5051
|
key: 0,
|
|
4970
|
-
item:
|
|
5052
|
+
item: Z,
|
|
4971
5053
|
showColBorder: ie.value,
|
|
4972
5054
|
isFirst: !re && i.value.length === 1,
|
|
4973
5055
|
layout: b.layout
|
|
4974
5056
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4975
|
-
ie.value ? (r(),
|
|
5057
|
+
ie.value ? (r(), h("div", {
|
|
4976
5058
|
key: 1,
|
|
4977
|
-
class: oe([!
|
|
5059
|
+
class: oe([!Z.children.length && Z.problemType && "p-1 min-h-[2rem]"])
|
|
4978
5060
|
}, [
|
|
4979
5061
|
(r(), ee(Ve, {
|
|
4980
|
-
data:
|
|
5062
|
+
data: Z,
|
|
4981
5063
|
key: i.value.length,
|
|
4982
5064
|
layout: b.layout,
|
|
4983
5065
|
target: b.target,
|
|
@@ -4985,51 +5067,51 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
4985
5067
|
width: K(i.value.length - 1)
|
|
4986
5068
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4987
5069
|
], 2)) : (r(), ee(Ve, {
|
|
4988
|
-
data:
|
|
5070
|
+
data: Z,
|
|
4989
5071
|
key: i.value.length,
|
|
4990
5072
|
layout: b.layout,
|
|
4991
5073
|
target: b.target,
|
|
4992
5074
|
width: K(i.value.length - 1)
|
|
4993
5075
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4994
|
-
], 64))), 256)) :
|
|
5076
|
+
], 64))), 256)) : B("", !0)
|
|
4995
5077
|
], 512),
|
|
4996
5078
|
k("div", {
|
|
4997
5079
|
class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
|
|
4998
|
-
style:
|
|
5080
|
+
style: X($.value)
|
|
4999
5081
|
}, [
|
|
5000
|
-
ae(
|
|
5082
|
+
ae(Xs, {
|
|
5001
5083
|
imgData: b.imgData,
|
|
5002
5084
|
txtData: b.txtData,
|
|
5003
5085
|
activeAbsItem: b.activeAbsItem,
|
|
5004
5086
|
target: b.target,
|
|
5005
5087
|
layout: b.layout,
|
|
5006
|
-
pageMargin:
|
|
5007
|
-
onChangeAbsImgItem: F[3] || (F[3] = (
|
|
5008
|
-
onDelAbsImgItem: F[4] || (F[4] = (
|
|
5009
|
-
onChangeAbsTxtItem: F[5] || (F[5] = (
|
|
5010
|
-
onDelAbsTxtItem: F[6] || (F[6] = (
|
|
5088
|
+
pageMargin: D.value,
|
|
5089
|
+
onChangeAbsImgItem: F[3] || (F[3] = (Z) => t("changeAbsImgItem", Z)),
|
|
5090
|
+
onDelAbsImgItem: F[4] || (F[4] = (Z) => t("delAbsImgItem", Z)),
|
|
5091
|
+
onChangeAbsTxtItem: F[5] || (F[5] = (Z) => t("changeAbsTxtItem", Z)),
|
|
5092
|
+
onDelAbsTxtItem: F[6] || (F[6] = (Z) => t("delAbsTxtItem", Z))
|
|
5011
5093
|
}, null, 8, ["imgData", "txtData", "activeAbsItem", "target", "layout", "pageMargin"]),
|
|
5012
|
-
(r(),
|
|
5013
|
-
viewBox: `0 0 ${parseFloat(
|
|
5094
|
+
(r(), h("svg", {
|
|
5095
|
+
viewBox: `0 0 ${parseFloat($.value.width)} ${parseFloat($.value.height)}`,
|
|
5014
5096
|
version: "1.1",
|
|
5015
5097
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5016
5098
|
key: s.value
|
|
5017
5099
|
}, [
|
|
5018
|
-
(r(),
|
|
5019
|
-
(r(!0),
|
|
5020
|
-
key:
|
|
5100
|
+
(r(), h("foreignObject", Zs, [
|
|
5101
|
+
(r(!0), h(O, null, le(G.value, (Z, re) => (r(), h("div", {
|
|
5102
|
+
key: Z,
|
|
5021
5103
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
5022
5104
|
ref_for: !0,
|
|
5023
5105
|
ref: (Ie) => Q(Ie, re),
|
|
5024
|
-
style:
|
|
5106
|
+
style: X(N.value)
|
|
5025
5107
|
}, [
|
|
5026
|
-
re < w.value ? (r(),
|
|
5027
|
-
ae(
|
|
5108
|
+
re < w.value ? (r(), h(O, { key: 0 }, [
|
|
5109
|
+
ae($o, {
|
|
5028
5110
|
layout: b.layout,
|
|
5029
5111
|
currentPage: re,
|
|
5030
5112
|
totalPage: w.value,
|
|
5031
5113
|
columnContentWidth: K(re % 2 ? b.layout.column : 0, !0),
|
|
5032
|
-
columnMargin:
|
|
5114
|
+
columnMargin: R(re % 2 ? b.layout.column : 0),
|
|
5033
5115
|
bindWidth: c.value,
|
|
5034
5116
|
padding: U.value
|
|
5035
5117
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
@@ -5038,11 +5120,11 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
5038
5120
|
info: b.info,
|
|
5039
5121
|
layout: b.layout,
|
|
5040
5122
|
onChange: F[7] || (F[7] = (Ie) => t("changeInfo", Ie))
|
|
5041
|
-
}, null, 8, ["info", "layout"])) :
|
|
5123
|
+
}, null, 8, ["info", "layout"])) : B("", !0),
|
|
5042
5124
|
ae(nl, {
|
|
5043
5125
|
ref_for: !0,
|
|
5044
5126
|
ref_key: "bindDom",
|
|
5045
|
-
ref:
|
|
5127
|
+
ref: p,
|
|
5046
5128
|
currentPage: re,
|
|
5047
5129
|
width: c.value,
|
|
5048
5130
|
height: g.value,
|
|
@@ -5050,13 +5132,13 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
5050
5132
|
bindSeatType: b.layout.bindSeatType,
|
|
5051
5133
|
bindInfo: Y.value
|
|
5052
5134
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
5053
|
-
!(re % 2) || re === 1 && w.value < 3 ? (r(),
|
|
5135
|
+
!(re % 2) || re === 1 && w.value < 3 ? (r(), h("div", {
|
|
5054
5136
|
key: 1,
|
|
5055
5137
|
ref_for: !0,
|
|
5056
5138
|
ref_key: "titleDom",
|
|
5057
|
-
ref:
|
|
5139
|
+
ref: A,
|
|
5058
5140
|
class: oe(["absolute text-black", re === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5059
|
-
style:
|
|
5141
|
+
style: X(ue.value)
|
|
5060
5142
|
}, [
|
|
5061
5143
|
ae(Oo, {
|
|
5062
5144
|
layout: b.layout,
|
|
@@ -5069,17 +5151,17 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
5069
5151
|
data: b.data,
|
|
5070
5152
|
onChange: F[8] || (F[8] = (Ie) => t("changeInfo", Ie))
|
|
5071
5153
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5072
|
-
ae(
|
|
5154
|
+
ae($a, {
|
|
5073
5155
|
layout: b.layout,
|
|
5074
5156
|
info: b.info,
|
|
5075
5157
|
isBindFlag: j.value,
|
|
5076
5158
|
onChange: F[9] || (F[9] = (Ie) => t("changeExtentInfo", Ie))
|
|
5077
5159
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5078
|
-
ae(
|
|
5160
|
+
ae(Ra, {
|
|
5079
5161
|
layout: b.layout,
|
|
5080
5162
|
isBindFlag: j.value
|
|
5081
5163
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5082
|
-
re ?
|
|
5164
|
+
re ? B("", !0) : (r(), ee(Ua, {
|
|
5083
5165
|
key: 0,
|
|
5084
5166
|
layout: b.layout,
|
|
5085
5167
|
data: b.data
|
|
@@ -5088,11 +5170,11 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
5088
5170
|
key: 1,
|
|
5089
5171
|
info: b.info,
|
|
5090
5172
|
layout: b.layout
|
|
5091
|
-
}, null, 8, ["info", "layout"])) :
|
|
5092
|
-
], 6)) :
|
|
5093
|
-
(r(!0),
|
|
5173
|
+
}, null, 8, ["info", "layout"])) : B("", !0)
|
|
5174
|
+
], 6)) : B("", !0),
|
|
5175
|
+
(r(!0), h(O, null, le(re % 2 ? b.layout.backColumn : b.layout.column, (Ie, Ae) => (r(), ee(ja, {
|
|
5094
5176
|
ref_for: !0,
|
|
5095
|
-
ref: (Ue) =>
|
|
5177
|
+
ref: (Ue) => P(Ue, _(Ae, re)),
|
|
5096
5178
|
styleInfo: se(_(Ae, re), re),
|
|
5097
5179
|
column: b.layout.column,
|
|
5098
5180
|
currentColumn: _(Ae, re),
|
|
@@ -5101,23 +5183,23 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
5101
5183
|
default: Et(() => {
|
|
5102
5184
|
var Ue;
|
|
5103
5185
|
return [
|
|
5104
|
-
(r(!0),
|
|
5186
|
+
(r(!0), h(O, null, le(((Ue = l.value[_(Ae, re)]) == null ? void 0 : Ue.data) || [], (ke, Gt) => {
|
|
5105
5187
|
var vt;
|
|
5106
|
-
return r(),
|
|
5107
|
-
ke.isHidden ?
|
|
5188
|
+
return r(), h(O, null, [
|
|
5189
|
+
ke.isHidden ? B("", !0) : (r(), ee(It, {
|
|
5108
5190
|
key: 0,
|
|
5109
5191
|
item: ke,
|
|
5110
5192
|
showColBorder: ie.value,
|
|
5111
5193
|
isFirst: !re && !Ae && !Gt,
|
|
5112
5194
|
layout: b.layout,
|
|
5113
5195
|
isActive: ((vt = b.target.value) == null ? void 0 : vt.id) === ke.id,
|
|
5114
|
-
onClick: (be) => we({ type: ke.problemType ? L(
|
|
5196
|
+
onClick: (be) => we({ type: ke.problemType ? L(E).headline : L(E).headlineNotarea, value: ke }),
|
|
5115
5197
|
onDbclick: (be) => t("dbHeadLineClick", ke)
|
|
5116
5198
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5117
|
-
ie.value ? (r(),
|
|
5199
|
+
ie.value ? (r(), h("div", {
|
|
5118
5200
|
key: 1,
|
|
5119
|
-
class: oe([!ke.children.length && ke.problemType && "p-1 min-h-[2rem]", b.target.type === L(
|
|
5120
|
-
onClick: Ee((be) => we({ type: ke.problemType ? L(
|
|
5201
|
+
class: oe([!ke.children.length && ke.problemType && "p-1 min-h-[2rem]", b.target.type === L(E).headline && b.target.value.id === ke.id && "active_headline"]),
|
|
5202
|
+
onClick: Ee((be) => we({ type: ke.problemType ? L(E).headline : L(E).headlineNotarea, value: ke }), ["stop"]),
|
|
5121
5203
|
onDblclick: (be) => t("dbHeadLineClick", ke)
|
|
5122
5204
|
}, [
|
|
5123
5205
|
ae(Ve, {
|
|
@@ -5125,21 +5207,21 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
5125
5207
|
layout: b.layout,
|
|
5126
5208
|
target: b.target,
|
|
5127
5209
|
width: K(_(Ae, re)),
|
|
5128
|
-
onClick: F[10] || (F[10] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(
|
|
5210
|
+
onClick: F[10] || (F[10] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(E).problem : L(E).problemNotarea, value: { ...be, problemType: be.problemType || be.sourceProblemType } })),
|
|
5129
5211
|
onDbclick: F[11] || (F[11] = (be) => t("dbProblemClick", be))
|
|
5130
5212
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5131
|
-
ke.children.length && ke.children[ke.children.length - 1].id === z.value ? (r(),
|
|
5213
|
+
ke.children.length && ke.children[ke.children.length - 1].id === z.value ? (r(), h("div", {
|
|
5132
5214
|
key: 0,
|
|
5133
5215
|
class: "border-t",
|
|
5134
5216
|
"data-block": L(Be)
|
|
5135
|
-
}, null, 8,
|
|
5136
|
-
], 42,
|
|
5217
|
+
}, null, 8, ti)) : B("", !0)
|
|
5218
|
+
], 42, ei)) : (r(), ee(Ve, {
|
|
5137
5219
|
key: 2,
|
|
5138
5220
|
data: ke,
|
|
5139
5221
|
layout: b.layout,
|
|
5140
5222
|
target: b.target,
|
|
5141
5223
|
width: K(_(Ae, re)),
|
|
5142
|
-
onClick: F[12] || (F[12] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(
|
|
5224
|
+
onClick: F[12] || (F[12] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(E).problem : L(E).problemNotarea, value: { ...be, problemType: be.problemType || be.sourceProblemType } })),
|
|
5143
5225
|
onDbclick: F[13] || (F[13] = (be) => t("dbProblemClick", be))
|
|
5144
5226
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5145
5227
|
], 64);
|
|
@@ -5148,18 +5230,18 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["vi
|
|
|
5148
5230
|
}),
|
|
5149
5231
|
_: 2
|
|
5150
5232
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
5151
|
-
], 64)) :
|
|
5233
|
+
], 64)) : B("", !0)
|
|
5152
5234
|
], 4))), 128))
|
|
5153
5235
|
]))
|
|
5154
|
-
], 8,
|
|
5236
|
+
], 8, Js))
|
|
5155
5237
|
], 6)
|
|
5156
5238
|
])
|
|
5157
5239
|
], 64);
|
|
5158
5240
|
};
|
|
5159
5241
|
}
|
|
5160
5242
|
});
|
|
5161
|
-
const
|
|
5243
|
+
const ni = /* @__PURE__ */ me(oi, [["__scopeId", "data-v-3cc4ec73"]]);
|
|
5162
5244
|
export {
|
|
5163
|
-
|
|
5164
|
-
|
|
5245
|
+
li as Config,
|
|
5246
|
+
ni as default
|
|
5165
5247
|
};
|