alit-layout 1.0.11 → 1.0.13
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 +473 -473
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as J, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as W, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as Ae, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as Re, popScopeId as Ge, renderSlot as it, onMounted as Ve, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as It, inject as Rt, withDirectives as ft, provide as Gt } from "vue";
|
|
2
2
|
const Lt = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -552,14 +552,14 @@ const Lt = {
|
|
|
552
552
|
], lt = {
|
|
553
553
|
wide: "text",
|
|
554
554
|
local: "topic"
|
|
555
|
-
},
|
|
555
|
+
}, Jt = [
|
|
556
556
|
{ name: "整卷", code: lt.wide },
|
|
557
557
|
{ name: "大题", code: lt.local }
|
|
558
558
|
], Qe = {
|
|
559
559
|
system: "system",
|
|
560
560
|
second: "level_2",
|
|
561
561
|
three: "level_3"
|
|
562
|
-
},
|
|
562
|
+
}, Zt = [
|
|
563
563
|
{ name: "自增", code: Qe.system },
|
|
564
564
|
{ name: "二级", code: Qe.second },
|
|
565
565
|
{ name: "三级", code: Qe.three }
|
|
@@ -580,7 +580,7 @@ const Lt = {
|
|
|
580
580
|
}, oo = [
|
|
581
581
|
{ name: "分段", code: De.step },
|
|
582
582
|
{ name: "自编", code: De.custom }
|
|
583
|
-
],
|
|
583
|
+
], T = {
|
|
584
584
|
choice_1: "choice-1",
|
|
585
585
|
choice_2: "choice-2",
|
|
586
586
|
choice_3: "choice-3",
|
|
@@ -741,8 +741,8 @@ const Lt = {
|
|
|
741
741
|
target: [q.headline],
|
|
742
742
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
743
743
|
option: [
|
|
744
|
-
{ name: "1栏", code:
|
|
745
|
-
{ name: "横向2栏", code:
|
|
744
|
+
{ name: "1栏", code: T.col_1 },
|
|
745
|
+
{ name: "横向2栏", code: T.col_2 }
|
|
746
746
|
]
|
|
747
747
|
}
|
|
748
748
|
],
|
|
@@ -754,8 +754,8 @@ const Lt = {
|
|
|
754
754
|
target: [q.headline],
|
|
755
755
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
756
756
|
option: [
|
|
757
|
-
{ name: "1栏", code:
|
|
758
|
-
{ name: "横向2栏", code:
|
|
757
|
+
{ name: "1栏", code: T.col_1 },
|
|
758
|
+
{ name: "横向2栏", code: T.col_2 }
|
|
759
759
|
]
|
|
760
760
|
}
|
|
761
761
|
]
|
|
@@ -770,8 +770,8 @@ const Lt = {
|
|
|
770
770
|
code: "slove_insert_sub",
|
|
771
771
|
target: [q.problem],
|
|
772
772
|
option: [
|
|
773
|
-
{ name: "无", code:
|
|
774
|
-
{ name: "下划线", code:
|
|
773
|
+
{ name: "无", code: T.slove_5 },
|
|
774
|
+
{ name: "下划线", code: T.slove_6 }
|
|
775
775
|
]
|
|
776
776
|
}
|
|
777
777
|
]
|
|
@@ -784,8 +784,8 @@ const Lt = {
|
|
|
784
784
|
label: "展示样式",
|
|
785
785
|
key: y.article.choice_a,
|
|
786
786
|
option: [
|
|
787
|
-
{ name: "分布式", code:
|
|
788
|
-
{ name: "集合式", code:
|
|
787
|
+
{ name: "分布式", code: T.choice_1 },
|
|
788
|
+
{ name: "集合式", code: T.choice_2 }
|
|
789
789
|
]
|
|
790
790
|
}
|
|
791
791
|
],
|
|
@@ -796,8 +796,8 @@ const Lt = {
|
|
|
796
796
|
label: "展示样式",
|
|
797
797
|
key: y.article.decide_a,
|
|
798
798
|
option: [
|
|
799
|
-
{ name: "对错", code:
|
|
800
|
-
{ name: "TF", code:
|
|
799
|
+
{ name: "对错", code: T.decide_1 },
|
|
800
|
+
{ name: "TF", code: T.decide_2 }
|
|
801
801
|
]
|
|
802
802
|
}
|
|
803
803
|
],
|
|
@@ -808,9 +808,9 @@ const Lt = {
|
|
|
808
808
|
label: "打分框位置",
|
|
809
809
|
key: y.article.fill_a,
|
|
810
810
|
option: [
|
|
811
|
-
{ name: "跟随下划线", code:
|
|
812
|
-
{ name: "跟随主题干", code:
|
|
813
|
-
{ name: "跟随标点符号", code:
|
|
811
|
+
{ name: "跟随下划线", code: T.fill_1 },
|
|
812
|
+
{ name: "跟随主题干", code: T.fill_2 },
|
|
813
|
+
{ name: "跟随标点符号", code: T.fill_3 }
|
|
814
814
|
]
|
|
815
815
|
}
|
|
816
816
|
],
|
|
@@ -823,18 +823,18 @@ const Lt = {
|
|
|
823
823
|
label: "边框控制",
|
|
824
824
|
key: y.article.slove_a,
|
|
825
825
|
option: [
|
|
826
|
-
{ name: "有边框", code:
|
|
827
|
-
{ name: "无边框", code:
|
|
826
|
+
{ name: "有边框", code: T.slove_1 },
|
|
827
|
+
{ name: "无边框", code: T.slove_2 }
|
|
828
828
|
]
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
831
|
type: "radio",
|
|
832
832
|
label: "边框样式",
|
|
833
833
|
key: y.article.slove_c,
|
|
834
|
-
show: (e) => e.style[y.article.slove_a] ===
|
|
834
|
+
show: (e) => e.style[y.article.slove_a] === T.slove_1,
|
|
835
835
|
option: [
|
|
836
|
-
{ name: "标准边框", code:
|
|
837
|
-
{ name: "简易边框", code:
|
|
836
|
+
{ name: "标准边框", code: T.slove_3 },
|
|
837
|
+
{ name: "简易边框", code: T.slove_4 }
|
|
838
838
|
]
|
|
839
839
|
},
|
|
840
840
|
{
|
|
@@ -853,8 +853,8 @@ const Lt = {
|
|
|
853
853
|
code: "slove_insert_sub",
|
|
854
854
|
target: [q.problem],
|
|
855
855
|
option: [
|
|
856
|
-
{ name: "无", code:
|
|
857
|
-
{ name: "下划线", code:
|
|
856
|
+
{ name: "无", code: T.slove_5 },
|
|
857
|
+
{ name: "下划线", code: T.slove_6 }
|
|
858
858
|
]
|
|
859
859
|
}
|
|
860
860
|
],
|
|
@@ -906,26 +906,26 @@ const Lt = {
|
|
|
906
906
|
label: "排列样式",
|
|
907
907
|
key: y.sheet.choice_a,
|
|
908
908
|
option: [
|
|
909
|
-
{ name: "横排", code:
|
|
910
|
-
{ name: "竖排", code:
|
|
911
|
-
{ name: "分组", code:
|
|
909
|
+
{ name: "横排", code: T.choice_1 },
|
|
910
|
+
{ name: "竖排", code: T.choice_2 },
|
|
911
|
+
{ name: "分组", code: T.choice_3 }
|
|
912
912
|
]
|
|
913
913
|
},
|
|
914
914
|
{
|
|
915
915
|
type: "radio",
|
|
916
916
|
label: "排列方向",
|
|
917
917
|
key: y.sheet.choice_b,
|
|
918
|
-
show: (e) => e.style[y.sheet.choice_a] !==
|
|
918
|
+
show: (e) => e.style[y.sheet.choice_a] !== T.choice_2,
|
|
919
919
|
option: [
|
|
920
|
-
{ name: "横向", code:
|
|
921
|
-
{ name: "纵向", code:
|
|
920
|
+
{ name: "横向", code: T.landscape },
|
|
921
|
+
{ name: "纵向", code: T.portrait }
|
|
922
922
|
]
|
|
923
923
|
},
|
|
924
924
|
{
|
|
925
925
|
type: "radio",
|
|
926
926
|
label: "每组题数",
|
|
927
927
|
key: y.sheet.choice_c,
|
|
928
|
-
show: (e) => [
|
|
928
|
+
show: (e) => [T.choice_2].includes(e.style[y.sheet.choice_a]),
|
|
929
929
|
option: [
|
|
930
930
|
{ name: "3题", code: 3 },
|
|
931
931
|
{ name: "4题", code: 4 },
|
|
@@ -940,8 +940,8 @@ const Lt = {
|
|
|
940
940
|
label: "展示样式",
|
|
941
941
|
key: y.sheet.decide_a,
|
|
942
942
|
option: [
|
|
943
|
-
{ name: "对错", code:
|
|
944
|
-
{ name: "TF", code:
|
|
943
|
+
{ name: "对错", code: T.decide_1 },
|
|
944
|
+
{ name: "TF", code: T.decide_2 }
|
|
945
945
|
]
|
|
946
946
|
}
|
|
947
947
|
],
|
|
@@ -962,9 +962,9 @@ const Lt = {
|
|
|
962
962
|
key: y.sheet.fill_a,
|
|
963
963
|
show: (e) => e.style[y.sheet.fill_b],
|
|
964
964
|
option: [
|
|
965
|
-
{ name: "跟随下划线", code:
|
|
966
|
-
{ name: "跟随主题干", code:
|
|
967
|
-
{ name: "跟随标点符号", code:
|
|
965
|
+
{ name: "跟随下划线", code: T.fill_1 },
|
|
966
|
+
{ name: "跟随主题干", code: T.fill_2 },
|
|
967
|
+
{ name: "跟随标点符号", code: T.fill_3 }
|
|
968
968
|
]
|
|
969
969
|
},
|
|
970
970
|
{
|
|
@@ -974,8 +974,8 @@ const Lt = {
|
|
|
974
974
|
target: [q.page, q.headline],
|
|
975
975
|
show: (e) => !e.style[y.sheet.fill_b],
|
|
976
976
|
option: [
|
|
977
|
-
{ name: "开启", code:
|
|
978
|
-
{ name: "关闭", code:
|
|
977
|
+
{ name: "开启", code: T.fill_1 },
|
|
978
|
+
{ name: "关闭", code: T.fill_2 }
|
|
979
979
|
]
|
|
980
980
|
},
|
|
981
981
|
{
|
|
@@ -1058,8 +1058,8 @@ const Lt = {
|
|
|
1058
1058
|
key: y.sheet.decide_a,
|
|
1059
1059
|
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1060
1060
|
option: [
|
|
1061
|
-
{ name: "对错", code:
|
|
1062
|
-
{ name: "TF", code:
|
|
1061
|
+
{ name: "对错", code: T.decide_1 },
|
|
1062
|
+
{ name: "TF", code: T.decide_2 }
|
|
1063
1063
|
]
|
|
1064
1064
|
},
|
|
1065
1065
|
{
|
|
@@ -1069,8 +1069,8 @@ const Lt = {
|
|
|
1069
1069
|
target: [q.problem],
|
|
1070
1070
|
show: (e) => !e.style[y.sheet.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1071
1071
|
option: [
|
|
1072
|
-
{ name: "横向", code:
|
|
1073
|
-
{ name: "竖向", code:
|
|
1072
|
+
{ name: "横向", code: T.landscape },
|
|
1073
|
+
{ name: "竖向", code: T.portrait }
|
|
1074
1074
|
]
|
|
1075
1075
|
}
|
|
1076
1076
|
],
|
|
@@ -1136,26 +1136,26 @@ const Lt = {
|
|
|
1136
1136
|
label: "排列样式",
|
|
1137
1137
|
key: y.sheetCard.choice_a,
|
|
1138
1138
|
option: [
|
|
1139
|
-
{ name: "横排", code:
|
|
1140
|
-
{ name: "竖排", code:
|
|
1141
|
-
{ name: "分组", code:
|
|
1139
|
+
{ name: "横排", code: T.choice_1 },
|
|
1140
|
+
{ name: "竖排", code: T.choice_2 },
|
|
1141
|
+
{ name: "分组", code: T.choice_3 }
|
|
1142
1142
|
]
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
1145
1145
|
type: "radio",
|
|
1146
1146
|
label: "排列方向",
|
|
1147
1147
|
key: y.sheetCard.choice_b,
|
|
1148
|
-
show: (e) => e.style[y.sheetCard.choice_a] !==
|
|
1148
|
+
show: (e) => e.style[y.sheetCard.choice_a] !== T.choice_2,
|
|
1149
1149
|
option: [
|
|
1150
|
-
{ name: "横向", code:
|
|
1151
|
-
{ name: "纵向", code:
|
|
1150
|
+
{ name: "横向", code: T.landscape },
|
|
1151
|
+
{ name: "纵向", code: T.portrait }
|
|
1152
1152
|
]
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
1155
1155
|
type: "radio",
|
|
1156
1156
|
label: "每组题数",
|
|
1157
1157
|
key: y.sheetCard.choice_c,
|
|
1158
|
-
show: (e) => [
|
|
1158
|
+
show: (e) => [T.choice_2].includes(e.style[y.sheetCard.choice_a]),
|
|
1159
1159
|
option: [
|
|
1160
1160
|
{ name: "3题", code: 3 },
|
|
1161
1161
|
{ name: "4题", code: 4 },
|
|
@@ -1167,7 +1167,7 @@ const Lt = {
|
|
|
1167
1167
|
label: "列数",
|
|
1168
1168
|
target: [q.headline],
|
|
1169
1169
|
key: y.sheetCard.choice_d,
|
|
1170
|
-
show: (e) => e.style[y.sheetCard.choice_a] !==
|
|
1170
|
+
show: (e) => e.style[y.sheetCard.choice_a] !== T.choice_2,
|
|
1171
1171
|
min: () => 2,
|
|
1172
1172
|
max: () => 10
|
|
1173
1173
|
}
|
|
@@ -1179,8 +1179,8 @@ const Lt = {
|
|
|
1179
1179
|
label: "展示样式",
|
|
1180
1180
|
key: y.sheetCard.decide_a,
|
|
1181
1181
|
option: [
|
|
1182
|
-
{ name: "对错", code:
|
|
1183
|
-
{ name: "TF", code:
|
|
1182
|
+
{ name: "对错", code: T.decide_1 },
|
|
1183
|
+
{ name: "TF", code: T.decide_2 }
|
|
1184
1184
|
]
|
|
1185
1185
|
}
|
|
1186
1186
|
],
|
|
@@ -1192,9 +1192,9 @@ const Lt = {
|
|
|
1192
1192
|
key: y.sheetCard.fill_a,
|
|
1193
1193
|
show: (e) => e.style[y.sheetCard.fill_b],
|
|
1194
1194
|
option: [
|
|
1195
|
-
{ name: "跟随下划线", code:
|
|
1196
|
-
{ name: "跟随主题干", code:
|
|
1197
|
-
{ name: "跟随标点符号", code:
|
|
1195
|
+
{ name: "跟随下划线", code: T.fill_1 },
|
|
1196
|
+
{ name: "跟随主题干", code: T.fill_2 },
|
|
1197
|
+
{ name: "跟随标点符号", code: T.fill_3 }
|
|
1198
1198
|
]
|
|
1199
1199
|
},
|
|
1200
1200
|
{
|
|
@@ -1204,8 +1204,8 @@ const Lt = {
|
|
|
1204
1204
|
target: [q.page, q.headline],
|
|
1205
1205
|
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1206
1206
|
option: [
|
|
1207
|
-
{ name: "开启", code:
|
|
1208
|
-
{ name: "关闭", code:
|
|
1207
|
+
{ name: "开启", code: T.fill_1 },
|
|
1208
|
+
{ name: "关闭", code: T.fill_2 }
|
|
1209
1209
|
]
|
|
1210
1210
|
},
|
|
1211
1211
|
{
|
|
@@ -1279,8 +1279,8 @@ const Lt = {
|
|
|
1279
1279
|
key: y.sheetCard.decide_a,
|
|
1280
1280
|
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheetCard.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1281
1281
|
option: [
|
|
1282
|
-
{ name: "对错", code:
|
|
1283
|
-
{ name: "TF", code:
|
|
1282
|
+
{ name: "对错", code: T.decide_1 },
|
|
1283
|
+
{ name: "TF", code: T.decide_2 }
|
|
1284
1284
|
]
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
|
@@ -1290,8 +1290,8 @@ const Lt = {
|
|
|
1290
1290
|
target: [q.problem],
|
|
1291
1291
|
show: (e) => !e.style[y.sheetCard.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1292
1292
|
option: [
|
|
1293
|
-
{ name: "横向", code:
|
|
1294
|
-
{ name: "竖向", code:
|
|
1293
|
+
{ name: "横向", code: T.landscape },
|
|
1294
|
+
{ name: "竖向", code: T.portrait }
|
|
1295
1295
|
]
|
|
1296
1296
|
}
|
|
1297
1297
|
],
|
|
@@ -1381,7 +1381,7 @@ const Lt = {
|
|
|
1381
1381
|
{ name: "小四", code: "16px", alias: "s4" },
|
|
1382
1382
|
{ name: "五号", code: "14px", alias: "5" },
|
|
1383
1383
|
{ name: "小五", code: "12px", alias: "s5" }
|
|
1384
|
-
],
|
|
1384
|
+
], Te = {
|
|
1385
1385
|
stand: {
|
|
1386
1386
|
name: "标准",
|
|
1387
1387
|
code: "stand",
|
|
@@ -1411,7 +1411,7 @@ const Lt = {
|
|
|
1411
1411
|
code: "large",
|
|
1412
1412
|
value: 33
|
|
1413
1413
|
}
|
|
1414
|
-
},
|
|
1414
|
+
}, Ze = {
|
|
1415
1415
|
none: {
|
|
1416
1416
|
name: "无",
|
|
1417
1417
|
code: "none",
|
|
@@ -1449,14 +1449,14 @@ const Lt = {
|
|
|
1449
1449
|
sloveScoreHalfErr: "简易打分条含小数分值",
|
|
1450
1450
|
absImgOverErr: "浮层图片超出纸张",
|
|
1451
1451
|
absTxtOverErr: "浮层文本超出纸张"
|
|
1452
|
-
},
|
|
1452
|
+
}, Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1453
1453
|
__proto__: null,
|
|
1454
1454
|
ErrLayoutCode: uo,
|
|
1455
1455
|
MixNodeTag: co,
|
|
1456
1456
|
column: Yt,
|
|
1457
1457
|
columnMargin: Et,
|
|
1458
1458
|
defaultProblemLayout: ao,
|
|
1459
|
-
fillSize:
|
|
1459
|
+
fillSize: Te,
|
|
1460
1460
|
fontFamily: so,
|
|
1461
1461
|
fontSize: ro,
|
|
1462
1462
|
fontWeight: io,
|
|
@@ -1475,9 +1475,9 @@ const Lt = {
|
|
|
1475
1475
|
paper: ze,
|
|
1476
1476
|
problemLayout: lo,
|
|
1477
1477
|
problemLayoutKey: y,
|
|
1478
|
-
problemLayoutVal:
|
|
1478
|
+
problemLayoutVal: T,
|
|
1479
1479
|
scoreLineSize: je,
|
|
1480
|
-
scoreLineStyle:
|
|
1480
|
+
scoreLineStyle: Ze,
|
|
1481
1481
|
scoreLineType: De,
|
|
1482
1482
|
scoreLineTypeOption: oo,
|
|
1483
1483
|
seatType: ve,
|
|
@@ -1486,9 +1486,9 @@ const Lt = {
|
|
|
1486
1486
|
sheetItemColumnPad: Qt,
|
|
1487
1487
|
subIndentOption: eo,
|
|
1488
1488
|
subRange: lt,
|
|
1489
|
-
subRangeOption:
|
|
1489
|
+
subRangeOption: Jt,
|
|
1490
1490
|
subRule: Qe,
|
|
1491
|
-
subRuleOption:
|
|
1491
|
+
subRuleOption: Zt,
|
|
1492
1492
|
toolGroup: q
|
|
1493
1493
|
}, Symbol.toStringTag, { value: "Module" })), ct = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
|
|
1494
1494
|
a4: "TYPE_A4",
|
|
@@ -1568,7 +1568,7 @@ const Lt = {
|
|
|
1568
1568
|
// 选做题
|
|
1569
1569
|
[be.another_choice]: "TYPE_SINGLECHOICE"
|
|
1570
1570
|
// 附加选做题
|
|
1571
|
-
}, yo = ["data-xine"], _o = ["data-xine"],
|
|
1571
|
+
}, yo = ["data-xine"], _o = ["data-xine"], fo = ["data-xine"], go = ["data-xine"], bo = ["data-xine"], vo = /* @__PURE__ */ J({
|
|
1572
1572
|
__name: "point",
|
|
1573
1573
|
props: {
|
|
1574
1574
|
layout: {},
|
|
@@ -1611,27 +1611,27 @@ const Lt = {
|
|
|
1611
1611
|
return (l, i) => {
|
|
1612
1612
|
var c;
|
|
1613
1613
|
return s(), d(M, null, [
|
|
1614
|
-
(s(), d(M, null, V(["lt", "rt", "lb", "rb"], (u) =>
|
|
1614
|
+
(s(), d(M, null, V(["lt", "rt", "lb", "rb"], (u) => g("span", {
|
|
1615
1615
|
key: u,
|
|
1616
1616
|
class: "absolute w-8 bg-black point_item",
|
|
1617
1617
|
style: W(o(u)),
|
|
1618
1618
|
"data-xine": x(C).point + u
|
|
1619
1619
|
}, null, 12, yo)), 64)),
|
|
1620
1620
|
(s(!0), d(M, null, V((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(M, { key: u }, [
|
|
1621
|
-
(s(), d(M, null, V(["t", "b"], (m) =>
|
|
1621
|
+
(s(), d(M, null, V(["t", "b"], (m) => g("span", {
|
|
1622
1622
|
key: m,
|
|
1623
1623
|
class: "absolute bg-black w-8 point_item",
|
|
1624
1624
|
style: W(n(u, m)),
|
|
1625
1625
|
"data-xine": x(C).point + m
|
|
1626
1626
|
}, null, 12, _o)), 64))
|
|
1627
1627
|
], 64))), 128)),
|
|
1628
|
-
(s(), d(M, null, V(["l", "r"], (u) =>
|
|
1628
|
+
(s(), d(M, null, V(["l", "r"], (u) => g("span", {
|
|
1629
1629
|
key: u,
|
|
1630
1630
|
class: "absolute bg-black h-8",
|
|
1631
1631
|
style: W(r(u)),
|
|
1632
1632
|
"data-xine": x(C).point + u
|
|
1633
|
-
}, null, 12,
|
|
1634
|
-
|
|
1633
|
+
}, null, 12, fo)), 64)),
|
|
1634
|
+
g("p", {
|
|
1635
1635
|
class: "absolute leading-none text-0",
|
|
1636
1636
|
style: W(a()),
|
|
1637
1637
|
"data-xine": x(C).page
|
|
@@ -1641,13 +1641,13 @@ const Lt = {
|
|
|
1641
1641
|
class: "inline-block bg-black mx-2 page_item",
|
|
1642
1642
|
"data-xine": x(C).page_item + m
|
|
1643
1643
|
}, null, 8, bo))), 128))
|
|
1644
|
-
], 12,
|
|
1644
|
+
], 12, go),
|
|
1645
1645
|
l.currentPage % 2 ? P("", !0) : (s(), d("span", {
|
|
1646
1646
|
key: 0,
|
|
1647
1647
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1648
1648
|
style: W({ right: `${l.padding.right - 12}px` })
|
|
1649
1649
|
}, "提示:本卷" + X((c = x(ze).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
|
|
1650
|
-
|
|
1650
|
+
g("span", {
|
|
1651
1651
|
class: "absolute text-sm red_sheet",
|
|
1652
1652
|
style: W({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
|
|
1653
1653
|
}, X(l.currentPage + 1) + "/" + X(l.totalPage), 5)
|
|
@@ -1663,7 +1663,7 @@ const ce = (e, t) => {
|
|
|
1663
1663
|
}, wo = /* @__PURE__ */ ce(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1666
|
-
}, et = /* @__PURE__ */
|
|
1666
|
+
}, et = /* @__PURE__ */ J({
|
|
1667
1667
|
__name: "index",
|
|
1668
1668
|
props: {
|
|
1669
1669
|
value: { default: "" },
|
|
@@ -1696,8 +1696,8 @@ const ce = (e, t) => {
|
|
|
1696
1696
|
return (u, m) => (s(), d("div", {
|
|
1697
1697
|
class: te(["flex-1 flex items-center border rounded-lg", u.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
|
|
1698
1698
|
}, [
|
|
1699
|
-
|
|
1700
|
-
|
|
1699
|
+
g("div", xo, [
|
|
1700
|
+
g("input", {
|
|
1701
1701
|
class: te(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
|
|
1702
1702
|
type: u.type,
|
|
1703
1703
|
placeholder: u.placeholder,
|
|
@@ -1712,7 +1712,7 @@ const ce = (e, t) => {
|
|
|
1712
1712
|
u.unit ? (s(), d("span", Co, X(u.unit), 1)) : P("", !0)
|
|
1713
1713
|
], 2));
|
|
1714
1714
|
}
|
|
1715
|
-
}), $o = /* @__PURE__ */
|
|
1715
|
+
}), $o = /* @__PURE__ */ J({
|
|
1716
1716
|
__name: "slogan",
|
|
1717
1717
|
props: {
|
|
1718
1718
|
info: {},
|
|
@@ -1736,7 +1736,7 @@ const ce = (e, t) => {
|
|
|
1736
1736
|
onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
|
|
1737
1737
|
}, null, 8, ["value", "style"]));
|
|
1738
1738
|
}
|
|
1739
|
-
}),
|
|
1739
|
+
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ J({
|
|
1740
1740
|
__name: "index",
|
|
1741
1741
|
props: {
|
|
1742
1742
|
width: { default: 1.5 },
|
|
@@ -1754,15 +1754,15 @@ const ce = (e, t) => {
|
|
|
1754
1754
|
width: n.width + "rem",
|
|
1755
1755
|
height: (n.height || n.width) + "rem"
|
|
1756
1756
|
}, [
|
|
1757
|
-
|
|
1758
|
-
], 8,
|
|
1757
|
+
g("use", { "xlink:href": a.value }, null, 8, To)
|
|
1758
|
+
], 8, So))
|
|
1759
1759
|
]));
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
1762
|
const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
|
|
1763
1763
|
key: 0,
|
|
1764
1764
|
class: "flex items-center"
|
|
1765
|
-
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */
|
|
1765
|
+
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ J({
|
|
1766
1766
|
__name: "secrecy",
|
|
1767
1767
|
props: {
|
|
1768
1768
|
layout: {},
|
|
@@ -1779,10 +1779,10 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1779
1779
|
}),
|
|
1780
1780
|
Ke("启用前")
|
|
1781
1781
|
])) : P("", !0),
|
|
1782
|
-
|
|
1782
|
+
g("p", Eo, "ID:" + X(t.code), 1)
|
|
1783
1783
|
]));
|
|
1784
1784
|
}
|
|
1785
|
-
}), Po = ["innerHTML"], Oe = /* @__PURE__ */
|
|
1785
|
+
}), Po = ["innerHTML"], Oe = /* @__PURE__ */ J({
|
|
1786
1786
|
__name: "index",
|
|
1787
1787
|
props: {
|
|
1788
1788
|
value: {},
|
|
@@ -1803,19 +1803,19 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1803
1803
|
}), Do = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
|
|
1804
1804
|
key: 0,
|
|
1805
1805
|
class: "flex mx-4 min-w-[70px]"
|
|
1806
|
-
}, zo = /* @__PURE__ */
|
|
1806
|
+
}, zo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
|
|
1807
1807
|
key: 1,
|
|
1808
1808
|
class: "flex items-center w-40 mx-4"
|
|
1809
|
-
}, Ro = /* @__PURE__ */
|
|
1809
|
+
}, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Go = /* @__PURE__ */ g("span", null, "分钟", -1), Wo = {
|
|
1810
1810
|
key: 2,
|
|
1811
1811
|
class: "flex mx-4 min-w-[80px]"
|
|
1812
|
-
}, Yo = /* @__PURE__ */
|
|
1812
|
+
}, Yo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
|
|
1813
1813
|
key: 3,
|
|
1814
1814
|
class: "flex mx-4 min-w-[80px]"
|
|
1815
|
-
}, Qo = /* @__PURE__ */
|
|
1815
|
+
}, Qo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
|
|
1816
1816
|
key: 4,
|
|
1817
1817
|
class: "flex items-center mx-4"
|
|
1818
|
-
}, Ko = /* @__PURE__ */
|
|
1818
|
+
}, Ko = /* @__PURE__ */ g("span", null, "总", -1), jo = { key: 1 }, Xo = { key: 3 }, Vo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ g("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ J({
|
|
1819
1819
|
__name: "title",
|
|
1820
1820
|
props: {
|
|
1821
1821
|
info: {},
|
|
@@ -1825,15 +1825,15 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1825
1825
|
},
|
|
1826
1826
|
emits: ["change"],
|
|
1827
1827
|
setup(e, { emit: t }) {
|
|
1828
|
-
const o = e, a = A(() => o.data.filter((l) => ![be.another, be.another_choice, be.one_choice].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), n = A(() => o.data.filter((l) => [be.another].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), r = A(() => o.layout.scoreAddStars ===
|
|
1828
|
+
const o = e, a = A(() => o.data.filter((l) => ![be.another, be.another_choice, be.one_choice].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), n = A(() => o.data.filter((l) => [be.another].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), r = A(() => o.layout.scoreAddStars === Ze.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
1829
1829
|
return (l, i) => (s(), d("div", Do, [
|
|
1830
|
-
|
|
1830
|
+
g("img", {
|
|
1831
1831
|
src: l.info.qrCode,
|
|
1832
1832
|
alt: "QRCode",
|
|
1833
1833
|
class: "flex-shrink-0 w-28 h-28",
|
|
1834
1834
|
"data-xine": x(C).art_code
|
|
1835
1835
|
}, null, 8, Ao),
|
|
1836
|
-
|
|
1836
|
+
g("div", No, [
|
|
1837
1837
|
K(Oe, {
|
|
1838
1838
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1839
1839
|
value: l.info.title,
|
|
@@ -1847,7 +1847,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1847
1847
|
style: W(l.fontConfig.halfTitleStyle),
|
|
1848
1848
|
onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
|
|
1849
1849
|
}, null, 8, ["value", "style"])) : P("", !0),
|
|
1850
|
-
|
|
1850
|
+
g("div", Bo, [
|
|
1851
1851
|
l.layout.examExtentFlag ? (s(), d("p", Oo, [
|
|
1852
1852
|
zo,
|
|
1853
1853
|
K(Oe, {
|
|
@@ -1892,29 +1892,29 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1892
1892
|
name: r.value,
|
|
1893
1893
|
class: "p-0 -translate-y-[1px]"
|
|
1894
1894
|
}, null, 8, ["name"])) : (s(), d("span", jo, "分")),
|
|
1895
|
-
|
|
1895
|
+
g("span", null, ":" + X(a.value + (l.layout.writeScoreFlag ? l.info.writeScore : 0)), 1),
|
|
1896
1896
|
r.value ? (s(), U(_e, {
|
|
1897
1897
|
key: 2,
|
|
1898
1898
|
name: r.value,
|
|
1899
1899
|
class: "p-0 -translate-y-[1px]"
|
|
1900
1900
|
}, null, 8, ["name"])) : (s(), d("span", Xo, "分")),
|
|
1901
1901
|
l.layout.writeScoreFlag ? (s(), d(M, { key: 4 }, [
|
|
1902
|
-
|
|
1902
|
+
g("span", null, "(试题" + X(a.value), 1),
|
|
1903
1903
|
r.value ? (s(), U(_e, {
|
|
1904
1904
|
key: 0,
|
|
1905
1905
|
name: r.value,
|
|
1906
1906
|
class: "p-0 -translate-y-[1px]"
|
|
1907
1907
|
}, null, 8, ["name"])) : (s(), d("span", Vo, "分")),
|
|
1908
|
-
|
|
1908
|
+
g("span", null, "+卷面" + X(l.info.writeScore || 0), 1),
|
|
1909
1909
|
r.value ? (s(), U(_e, {
|
|
1910
1910
|
key: 2,
|
|
1911
1911
|
name: r.value,
|
|
1912
1912
|
class: "p-0 -translate-y-[1px]"
|
|
1913
|
-
}, null, 8, ["name"])) : (s(), d("span",
|
|
1914
|
-
|
|
1913
|
+
}, null, 8, ["name"])) : (s(), d("span", Jo, "分")),
|
|
1914
|
+
Zo
|
|
1915
1915
|
], 64)) : P("", !0),
|
|
1916
1916
|
n.value ? (s(), d(M, { key: 5 }, [
|
|
1917
|
-
|
|
1917
|
+
g("span", null, ";附加题:" + X(n.value), 1),
|
|
1918
1918
|
r.value ? (s(), U(_e, {
|
|
1919
1919
|
key: 0,
|
|
1920
1920
|
name: r.value,
|
|
@@ -1926,7 +1926,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1926
1926
|
])
|
|
1927
1927
|
]));
|
|
1928
1928
|
}
|
|
1929
|
-
}), oa = { class: "flex-1 flex flex-col ml-2" },
|
|
1929
|
+
}), oa = { class: "flex-1 flex flex-col ml-2" }, gt = /* @__PURE__ */ J({
|
|
1930
1930
|
__name: "examInfoNone",
|
|
1931
1931
|
props: {
|
|
1932
1932
|
extent: {}
|
|
@@ -1935,7 +1935,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1935
1935
|
setup(e, { emit: t }) {
|
|
1936
1936
|
const o = ["examNumField", "examRoomField", "seatField"];
|
|
1937
1937
|
return (a, n) => (s(), d("ul", oa, [
|
|
1938
|
-
(s(), d(M, null, V(o, (r) =>
|
|
1938
|
+
(s(), d(M, null, V(o, (r) => g("li", {
|
|
1939
1939
|
key: r,
|
|
1940
1940
|
class: "flex flex-1"
|
|
1941
1941
|
}, [
|
|
@@ -1949,30 +1949,30 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1949
1949
|
])), 64))
|
|
1950
1950
|
]));
|
|
1951
1951
|
}
|
|
1952
|
-
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */
|
|
1952
|
+
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */ J({
|
|
1953
1953
|
__name: "examInfoSeat",
|
|
1954
1954
|
setup(e) {
|
|
1955
1955
|
return (t, o) => (s(), d("div", {
|
|
1956
1956
|
class: "flex-shrink-0 border ml-4 flex flex-col",
|
|
1957
1957
|
"data-xine": x(C).en_num_view
|
|
1958
1958
|
}, [
|
|
1959
|
-
|
|
1959
|
+
g("p", la, [
|
|
1960
1960
|
K(_e, {
|
|
1961
1961
|
class: "pt-1",
|
|
1962
1962
|
name: "fiveArrow"
|
|
1963
1963
|
}),
|
|
1964
1964
|
Ke("座位号")
|
|
1965
1965
|
]),
|
|
1966
|
-
|
|
1966
|
+
g("div", {
|
|
1967
1967
|
class: "flex-1 flex flex-col",
|
|
1968
1968
|
"data-xine": x(C).en_num
|
|
1969
1969
|
}, [
|
|
1970
|
-
(s(), d(M, null, V(3, (a, n) =>
|
|
1970
|
+
(s(), d(M, null, V(3, (a, n) => g("p", {
|
|
1971
1971
|
key: a,
|
|
1972
1972
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
1973
1973
|
"data-xine": x(C).en_num_group
|
|
1974
1974
|
}, [
|
|
1975
|
-
(s(), d(M, null, V(10, (r) =>
|
|
1975
|
+
(s(), d(M, null, V(10, (r) => g("span", {
|
|
1976
1976
|
key: r,
|
|
1977
1977
|
class: "flex items-center justify-between flex-nowrap item",
|
|
1978
1978
|
"data-xine": x(C).en_num_item
|
|
@@ -1982,30 +1982,30 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1982
1982
|
], 8, aa));
|
|
1983
1983
|
}
|
|
1984
1984
|
});
|
|
1985
|
-
const bt = /* @__PURE__ */ ce(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */
|
|
1985
|
+
const bt = /* @__PURE__ */ ce(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ J({
|
|
1986
1986
|
__name: "examInfoShort",
|
|
1987
1987
|
setup(e) {
|
|
1988
1988
|
return (t, o) => (s(), d("div", {
|
|
1989
1989
|
class: "flex-shrink-0 border ml-4 flex",
|
|
1990
1990
|
"data-xine": x(C).en_num_view
|
|
1991
1991
|
}, [
|
|
1992
|
-
|
|
1992
|
+
g("p", da, [
|
|
1993
1993
|
K(_e, {
|
|
1994
1994
|
class: "px-1 pt-1",
|
|
1995
1995
|
name: "fiveArrow"
|
|
1996
1996
|
}),
|
|
1997
1997
|
Ke("短学号")
|
|
1998
1998
|
]),
|
|
1999
|
-
|
|
1999
|
+
g("div", {
|
|
2000
2000
|
class: "flex-1 flex flex-col",
|
|
2001
2001
|
"data-xine": x(C).en_num
|
|
2002
2002
|
}, [
|
|
2003
|
-
(s(), d(M, null, V(4, (a, n) =>
|
|
2003
|
+
(s(), d(M, null, V(4, (a, n) => g("p", {
|
|
2004
2004
|
key: a,
|
|
2005
2005
|
class: te(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
|
|
2006
2006
|
"data-xine": x(C).en_num_group
|
|
2007
2007
|
}, [
|
|
2008
|
-
(s(), d(M, null, V(10, (r) =>
|
|
2008
|
+
(s(), d(M, null, V(10, (r) => g("span", {
|
|
2009
2009
|
key: r,
|
|
2010
2010
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2011
2011
|
"data-xine": x(C).en_num_item
|
|
@@ -2015,7 +2015,7 @@ const bt = /* @__PURE__ */ ce(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
2015
2015
|
], 8, ca));
|
|
2016
2016
|
}
|
|
2017
2017
|
});
|
|
2018
|
-
const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */
|
|
2018
|
+
const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ J({
|
|
2019
2019
|
__name: "examInfoBase",
|
|
2020
2020
|
props: {
|
|
2021
2021
|
extent: {}
|
|
@@ -2024,7 +2024,7 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2024
2024
|
setup(e, { emit: t }) {
|
|
2025
2025
|
const o = ["nameField", "classField", "scoreField"];
|
|
2026
2026
|
return (a, n) => (s(), d("ul", ya, [
|
|
2027
|
-
(s(), d(M, null, V(o, (r) =>
|
|
2027
|
+
(s(), d(M, null, V(o, (r) => g("li", {
|
|
2028
2028
|
key: r,
|
|
2029
2029
|
class: "flex flex-1"
|
|
2030
2030
|
}, [
|
|
@@ -2038,12 +2038,12 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2038
2038
|
])), 64))
|
|
2039
2039
|
]));
|
|
2040
2040
|
}
|
|
2041
|
-
}),
|
|
2041
|
+
}), fa = (e) => (Re("data-v-44e44996"), e = e(), Ge(), e), ga = {
|
|
2042
2042
|
key: 0,
|
|
2043
2043
|
class: "flex"
|
|
2044
|
-
}, ba = ["data-xine"], va = /* @__PURE__ */
|
|
2044
|
+
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ g("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
|
|
2045
2045
|
va
|
|
2046
|
-
], xa = /* @__PURE__ */
|
|
2046
|
+
], xa = /* @__PURE__ */ J({
|
|
2047
2047
|
__name: "examInfo",
|
|
2048
2048
|
props: {
|
|
2049
2049
|
layout: {},
|
|
@@ -2053,9 +2053,9 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2053
2053
|
emits: ["change"],
|
|
2054
2054
|
setup(e, { emit: t }) {
|
|
2055
2055
|
const o = e, a = A(() => o.layout.column >= 3 && o.layout.seatType === ve.none);
|
|
2056
|
-
return (n, r) => n.isBindFlag ? P("", !0) : (s(), d("div",
|
|
2056
|
+
return (n, r) => n.isBindFlag ? P("", !0) : (s(), d("div", ga, [
|
|
2057
2057
|
a.value ? (s(), d(M, { key: 0 }, [
|
|
2058
|
-
n.layout.seatType === x(ve).none ? (s(), U(
|
|
2058
|
+
n.layout.seatType === x(ve).none ? (s(), U(gt, {
|
|
2059
2059
|
key: 0,
|
|
2060
2060
|
extent: n.info.extentInfo,
|
|
2061
2061
|
onChange: r[0] || (r[0] = (l) => t("change", l))
|
|
@@ -2066,13 +2066,13 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2066
2066
|
onChange: r[1] || (r[1] = (l) => t("change", l))
|
|
2067
2067
|
}, null, 8, ["extent"]),
|
|
2068
2068
|
a.value ? P("", !0) : (s(), d(M, { key: 1 }, [
|
|
2069
|
-
n.layout.seatType === x(ve).none ? (s(), U(
|
|
2069
|
+
n.layout.seatType === x(ve).none ? (s(), U(gt, {
|
|
2070
2070
|
key: 0,
|
|
2071
2071
|
extent: n.info.extentInfo,
|
|
2072
2072
|
onChange: r[2] || (r[2] = (l) => t("change", l))
|
|
2073
2073
|
}, null, 8, ["extent"])) : n.layout.seatType === x(ve).seat ? (s(), U(bt, { key: 1 })) : n.layout.seatType === x(ve).shortId ? (s(), U(vt, { key: 2 })) : P("", !0)
|
|
2074
2074
|
], 64)),
|
|
2075
|
-
|
|
2075
|
+
g("div", {
|
|
2076
2076
|
class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
|
|
2077
2077
|
"data-xine": x(C).en_code
|
|
2078
2078
|
}, wa, 8, ba)
|
|
@@ -2082,13 +2082,13 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2082
2082
|
const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), Ge(), e), Ca = {
|
|
2083
2083
|
key: 0,
|
|
2084
2084
|
class: "flex border mt-2 red_sheet"
|
|
2085
|
-
}, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */
|
|
2085
|
+
}, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "[", -1)), Ma = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", { class: "ml-4" }, "]", -1)), Pa = [
|
|
2086
2086
|
Ea,
|
|
2087
2087
|
Ma
|
|
2088
|
-
], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */
|
|
2088
|
+
], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2089
|
+
/* @__PURE__ */ g("span", null, "正确填涂示例"),
|
|
2090
|
+
/* @__PURE__ */ g("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2091
|
+
], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ J({
|
|
2092
2092
|
__name: "notice",
|
|
2093
2093
|
props: {
|
|
2094
2094
|
layout: {},
|
|
@@ -2111,7 +2111,7 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2111
2111
|
return (a, n) => (s(), d(M, null, [
|
|
2112
2112
|
a.layout.noteFlag ? (s(), d("div", Ca, [
|
|
2113
2113
|
$a,
|
|
2114
|
-
|
|
2114
|
+
g("div", Sa, [
|
|
2115
2115
|
(s(!0), d(M, null, V(o.value, (r) => (s(), d("p", {
|
|
2116
2116
|
key: r,
|
|
2117
2117
|
class: "px-2 origin-left scale-75 tip_item"
|
|
@@ -2122,11 +2122,11 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2122
2122
|
key: 1,
|
|
2123
2123
|
class: te(["flex border text-sm red_sheet", a.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2124
2124
|
}, [
|
|
2125
|
-
|
|
2125
|
+
g("p", Ta, [
|
|
2126
2126
|
Ia,
|
|
2127
|
-
|
|
2127
|
+
g("span", La, [
|
|
2128
2128
|
K(_e, { name: "rightArrow" }),
|
|
2129
|
-
|
|
2129
|
+
g("span", {
|
|
2130
2130
|
class: "flex items-center leading-4",
|
|
2131
2131
|
"data-xine": x(C).lack
|
|
2132
2132
|
}, Pa, 8, Fa)
|
|
@@ -2160,13 +2160,13 @@ function xt(e) {
|
|
|
2160
2160
|
const za = {
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2163
|
-
}, Ha = /* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
], -1), Ra = { class: "flex-1" }, Ga = /* @__PURE__ */
|
|
2167
|
-
/* @__PURE__ */
|
|
2168
|
-
/* @__PURE__ */
|
|
2169
|
-
], -1), Ya = /* @__PURE__ */
|
|
2163
|
+
}, Ha = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col" }, [
|
|
2164
|
+
/* @__PURE__ */ g("p", { class: "flex-1" }, "题号"),
|
|
2165
|
+
/* @__PURE__ */ g("p", { class: "flex-1 border-t" }, "得分")
|
|
2166
|
+
], -1), Ra = { class: "flex-1" }, Ga = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Wa = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2167
|
+
/* @__PURE__ */ g("p", { class: "flex-1" }, "总分"),
|
|
2168
|
+
/* @__PURE__ */ g("p", { class: "flex-1 border-t" })
|
|
2169
|
+
], -1), Ya = /* @__PURE__ */ J({
|
|
2170
2170
|
__name: "scoreTable",
|
|
2171
2171
|
props: {
|
|
2172
2172
|
layout: {},
|
|
@@ -2180,13 +2180,13 @@ const za = {
|
|
|
2180
2180
|
key: r.id,
|
|
2181
2181
|
class: "flex-1 flex flex-col border-l"
|
|
2182
2182
|
}, [
|
|
2183
|
-
|
|
2183
|
+
g("p", Ra, X(x(Pt)(l)), 1),
|
|
2184
2184
|
Ga
|
|
2185
2185
|
]))), 128)),
|
|
2186
2186
|
Wa
|
|
2187
2187
|
])) : P("", !0);
|
|
2188
2188
|
}
|
|
2189
|
-
}), qa = /* @__PURE__ */
|
|
2189
|
+
}), qa = /* @__PURE__ */ J({
|
|
2190
2190
|
__name: "columnDom",
|
|
2191
2191
|
props: {
|
|
2192
2192
|
column: {},
|
|
@@ -2217,18 +2217,18 @@ const za = {
|
|
|
2217
2217
|
class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
|
|
2218
2218
|
style: W(r.value)
|
|
2219
2219
|
}, [
|
|
2220
|
-
|
|
2220
|
+
g("span", {
|
|
2221
2221
|
class: "absolute border border-black",
|
|
2222
2222
|
style: W(l.value)
|
|
2223
2223
|
}, null, 4)
|
|
2224
2224
|
], 6)) : P("", !0),
|
|
2225
|
-
|
|
2225
|
+
g("div", {
|
|
2226
2226
|
class: "absolute overflow-hidden",
|
|
2227
2227
|
ref_key: "colView",
|
|
2228
2228
|
ref: n,
|
|
2229
2229
|
style: W(c.styleInfo)
|
|
2230
2230
|
}, [
|
|
2231
|
-
|
|
2231
|
+
g("div", {
|
|
2232
2232
|
ref_key: "col",
|
|
2233
2233
|
ref: a,
|
|
2234
2234
|
class: "overflow-hidden __col__",
|
|
@@ -2240,9 +2240,9 @@ const za = {
|
|
|
2240
2240
|
], 64));
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
|
-
const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), Ge(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */
|
|
2243
|
+
const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), Ge(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
|
|
2244
2244
|
ja
|
|
2245
|
-
], Va = ["data-xine"],
|
|
2245
|
+
], Va = ["data-xine"], Ja = /* @__PURE__ */ J({
|
|
2246
2246
|
__name: "bind",
|
|
2247
2247
|
props: {
|
|
2248
2248
|
currentPage: {},
|
|
@@ -2268,25 +2268,25 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2268
2268
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2269
2269
|
style: W({ width: `${a.height - 20}px` })
|
|
2270
2270
|
}, [
|
|
2271
|
-
(s(), d(M, null, V(o, (r) =>
|
|
2271
|
+
(s(), d(M, null, V(o, (r) => g("p", {
|
|
2272
2272
|
key: r,
|
|
2273
2273
|
class: "flex items-end flex-1 mr-4"
|
|
2274
2274
|
}, [
|
|
2275
|
-
|
|
2275
|
+
g("span", null, X(r), 1),
|
|
2276
2276
|
Ua
|
|
2277
2277
|
])), 64)),
|
|
2278
|
-
|
|
2278
|
+
g("div", {
|
|
2279
2279
|
class: "flex items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2280
2280
|
"data-xine": x(C).en_code
|
|
2281
2281
|
}, Xa, 8, Ka),
|
|
2282
|
-
|
|
2282
|
+
g("span", {
|
|
2283
2283
|
"data-xine": x(C).bind_line
|
|
2284
2284
|
}, null, 8, Va)
|
|
2285
2285
|
], 4))
|
|
2286
2286
|
], 6)) : P("", !0);
|
|
2287
2287
|
}
|
|
2288
2288
|
});
|
|
2289
|
-
const
|
|
2289
|
+
const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", kt = "MC5sZGN2NzJ0ZXE0bw", dt = "MC5yYjk3NGY2OTcyOA", ut = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ J({
|
|
2290
2290
|
__name: "simple",
|
|
2291
2291
|
props: {
|
|
2292
2292
|
item: {},
|
|
@@ -2302,7 +2302,7 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2302
2302
|
"data-block": x(we),
|
|
2303
2303
|
"data-xine": x(C).score
|
|
2304
2304
|
}, [
|
|
2305
|
-
|
|
2305
|
+
g("ul", {
|
|
2306
2306
|
class: "flex h-full divide-x divide-solid",
|
|
2307
2307
|
"data-xine": x(C).score_base
|
|
2308
2308
|
}, [
|
|
@@ -2311,7 +2311,7 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2311
2311
|
style: W({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
|
|
2312
2312
|
"data-xine": x(C).score_item
|
|
2313
2313
|
}, [
|
|
2314
|
-
|
|
2314
|
+
g("span", il, X(l), 1),
|
|
2315
2315
|
K(_e, {
|
|
2316
2316
|
class: "p-0",
|
|
2317
2317
|
name: o[i]
|
|
@@ -2320,7 +2320,7 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2320
2320
|
], 8, nl)
|
|
2321
2321
|
], 8, ll));
|
|
2322
2322
|
}
|
|
2323
|
-
}), cl = ["data-block", "data-xine"], dl = ["data-xine"], ul = ["data-xine"], tt = /* @__PURE__ */
|
|
2323
|
+
}), cl = ["data-block", "data-xine"], dl = ["data-xine"], ul = ["data-xine"], tt = /* @__PURE__ */ J({
|
|
2324
2324
|
__name: "index",
|
|
2325
2325
|
props: {
|
|
2326
2326
|
item: {},
|
|
@@ -2328,12 +2328,12 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2328
2328
|
static: { type: Boolean }
|
|
2329
2329
|
},
|
|
2330
2330
|
setup(e) {
|
|
2331
|
-
const t = e, o = Q(), a = Q(!1), n = Q(!1), r = Q(!1), l = Q([]), i = A(() => t.layout.scoreAddStars ===
|
|
2331
|
+
const t = e, o = Q(), a = Q(!1), n = Q(!1), r = Q(!1), l = Q([]), i = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2332
2332
|
Ae(() => [t.item.score], () => c()), Ve(() => {
|
|
2333
2333
|
c();
|
|
2334
2334
|
});
|
|
2335
2335
|
const c = () => {
|
|
2336
|
-
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static ||
|
|
2336
|
+
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
|
|
2337
2337
|
let m = [];
|
|
2338
2338
|
if (t.item.scoreLineType === De.custom)
|
|
2339
2339
|
m = [[...t.item.customScore, 0]];
|
|
@@ -2368,7 +2368,7 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2368
2368
|
style: W({ width: `${x(je)[m.layout.scoreLineSize].value}px` }),
|
|
2369
2369
|
"data-xine": Y.toString() ? x(C).score_item : ""
|
|
2370
2370
|
}, [
|
|
2371
|
-
|
|
2371
|
+
g("span", {
|
|
2372
2372
|
class: te(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
|
|
2373
2373
|
}, X(m.layout.minusFlag && Y.toString().length && !i.value ? "-" : "") + X(Y), 3),
|
|
2374
2374
|
i.value && Y.toString().length ? (s(), U(_e, {
|
|
@@ -2382,7 +2382,7 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2382
2382
|
], 8, cl))
|
|
2383
2383
|
], 64)) : P("", !0);
|
|
2384
2384
|
}
|
|
2385
|
-
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), Ge(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */
|
|
2385
|
+
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), Ge(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ J({
|
|
2386
2386
|
__name: "writeScore",
|
|
2387
2387
|
props: {
|
|
2388
2388
|
info: {},
|
|
@@ -2403,7 +2403,7 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2403
2403
|
], 8, hl));
|
|
2404
2404
|
}
|
|
2405
2405
|
});
|
|
2406
|
-
const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]),
|
|
2406
|
+
const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ J({
|
|
2407
2407
|
__name: "index",
|
|
2408
2408
|
props: {
|
|
2409
2409
|
data: {}
|
|
@@ -2413,10 +2413,10 @@ const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), gl = ["in
|
|
|
2413
2413
|
return (o, a) => (s(), d("div", {
|
|
2414
2414
|
innerHTML: t.data,
|
|
2415
2415
|
class: "base-problem-font problem-base"
|
|
2416
|
-
}, null, 8,
|
|
2416
|
+
}, null, 8, fl));
|
|
2417
2417
|
}
|
|
2418
2418
|
});
|
|
2419
|
-
const Ne = /* @__PURE__ */ ce(
|
|
2419
|
+
const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ J({
|
|
2420
2420
|
__name: "notArea",
|
|
2421
2421
|
props: {
|
|
2422
2422
|
item: {}
|
|
@@ -2436,10 +2436,10 @@ const Ne = /* @__PURE__ */ ce(fl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2436
2436
|
}), wl = (e) => (Re("data-v-257ae24a"), e = e(), Ge(), e), xl = ["data-tag", "data-block"], kl = {
|
|
2437
2437
|
key: 0,
|
|
2438
2438
|
class: "flex-shrink-0"
|
|
2439
|
-
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 },
|
|
2439
|
+
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
|
|
2440
2440
|
key: 1,
|
|
2441
2441
|
class: "indent-2"
|
|
2442
|
-
},
|
|
2442
|
+
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ g("span", null, "我选答的题目是:", -1)), Ml = { class: "flex items-center" }, Pl = ["data-xine"], Dl = /* @__PURE__ */ J({
|
|
2443
2443
|
__name: "index",
|
|
2444
2444
|
props: {
|
|
2445
2445
|
item: {},
|
|
@@ -2460,23 +2460,23 @@ const Ne = /* @__PURE__ */ ce(fl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2460
2460
|
onDblclick: c[3] || (c[3] = Le((u) => t("dbclick", i.item), ["stop"]))
|
|
2461
2461
|
}, [
|
|
2462
2462
|
!i.layout.listIndexFlag && i.item.sub ? (s(), d("span", kl, X(x(Pt)(i.item.sub - 1)) + "、", 1)) : P("", !0),
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2463
|
+
g("div", null, [
|
|
2464
|
+
g("div", Cl, [
|
|
2465
|
+
g("span", null, X(i.item.name), 1),
|
|
2466
2466
|
i.item.desc ? (s(), d("span", $l, "(" + X(i.item.desc) + ")", 1)) : P("", !0),
|
|
2467
|
-
i.layout.scoreTipFlag ? (s(), d("span",
|
|
2467
|
+
i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" + X(r.value) + "题,共" + X(i.item.totalScore) + "分)", 1)) : P("", !0)
|
|
2468
2468
|
]),
|
|
2469
|
-
a.value || n.value ? (s(), d("div",
|
|
2469
|
+
a.value || n.value ? (s(), d("div", Tl, [
|
|
2470
2470
|
a.value ? (s(), d("p", Il, "请在以下" + X(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2471
|
-
|
|
2471
|
+
g("p", {
|
|
2472
2472
|
class: "flex flex-wrap",
|
|
2473
2473
|
"data-block": x(we),
|
|
2474
2474
|
"data-xine": x(C).choice + i.item.id
|
|
2475
2475
|
}, [
|
|
2476
2476
|
El,
|
|
2477
2477
|
(s(!0), d(M, null, V(l.value, (u, m) => (s(), d("span", Ml, [
|
|
2478
|
-
|
|
2479
|
-
|
|
2478
|
+
g("span", null, X(u), 1),
|
|
2479
|
+
g("span", {
|
|
2480
2480
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2481
2481
|
"data-xine": x(C).fill
|
|
2482
2482
|
}, null, 8, Pl)
|
|
@@ -2497,7 +2497,7 @@ const Ct = /* @__PURE__ */ ce(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
|
|
|
2497
2497
|
function Nl(e, t) {
|
|
2498
2498
|
return null;
|
|
2499
2499
|
}
|
|
2500
|
-
const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */
|
|
2500
|
+
const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */ J({
|
|
2501
2501
|
__name: "sheet",
|
|
2502
2502
|
props: {
|
|
2503
2503
|
item: {},
|
|
@@ -2510,7 +2510,7 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2510
2510
|
}, [
|
|
2511
2511
|
(s(!0), d(M, null, V(t.item.optList, (a, n) => (s(), d("span", {
|
|
2512
2512
|
class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
|
|
2513
|
-
style: W({ width: `${x(
|
|
2513
|
+
style: W({ width: `${x(Te)[t.layout.fillSize].value + 1}px`, height: `${x(Te)[t.layout.fillSize].height + 1}px` }),
|
|
2514
2514
|
"data-xine": x(C).fill + n
|
|
2515
2515
|
}, [
|
|
2516
2516
|
K(_e, {
|
|
@@ -2524,11 +2524,11 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2524
2524
|
function Gl(e, t) {
|
|
2525
2525
|
return null;
|
|
2526
2526
|
}
|
|
2527
|
-
const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */
|
|
2527
|
+
const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
|
|
2528
2528
|
Kl
|
|
2529
|
-
], Xl = ["data-xine"], Vl = /* @__PURE__ */
|
|
2529
|
+
], Xl = ["data-xine"], Vl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
|
|
2530
2530
|
Vl
|
|
2531
|
-
],
|
|
2531
|
+
], Zl = /* @__PURE__ */ J({
|
|
2532
2532
|
__name: "sheet",
|
|
2533
2533
|
props: {
|
|
2534
2534
|
item: {},
|
|
@@ -2536,15 +2536,15 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2536
2536
|
},
|
|
2537
2537
|
setup(e) {
|
|
2538
2538
|
const t = e, o = A(() => ({
|
|
2539
|
-
width: `${
|
|
2540
|
-
height: `${
|
|
2539
|
+
width: `${Te[t.layout.fillSize].value + 1}px`,
|
|
2540
|
+
height: `${Te[t.layout.fillSize].height + 1}px`
|
|
2541
2541
|
}));
|
|
2542
2542
|
return (a, n) => (s(), d("div", {
|
|
2543
2543
|
class: "flex red_sheet",
|
|
2544
2544
|
"data-block": x(we)
|
|
2545
2545
|
}, [
|
|
2546
|
-
a.item.style[x(y)[a.layout.mode].decide_a] === x(
|
|
2547
|
-
|
|
2546
|
+
a.item.style[x(y)[a.layout.mode].decide_a] === x(T).decide_1 ? (s(), d(M, { key: 0 }, [
|
|
2547
|
+
g("span", {
|
|
2548
2548
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2549
2549
|
style: W(o.value),
|
|
2550
2550
|
"data-xine": x(C).fill + "0"
|
|
@@ -2554,7 +2554,7 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2554
2554
|
width: 1
|
|
2555
2555
|
})
|
|
2556
2556
|
], 14, ql),
|
|
2557
|
-
|
|
2557
|
+
g("span", {
|
|
2558
2558
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2559
2559
|
style: W(o.value),
|
|
2560
2560
|
"data-xine": x(C).fill + "1"
|
|
@@ -2565,16 +2565,16 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2565
2565
|
})
|
|
2566
2566
|
], 14, Ql)
|
|
2567
2567
|
], 64)) : (s(), d(M, { key: 1 }, [
|
|
2568
|
-
|
|
2568
|
+
g("span", {
|
|
2569
2569
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2570
2570
|
style: W(o.value),
|
|
2571
2571
|
"data-xine": x(C).fill + "0"
|
|
2572
2572
|
}, jl, 14, Ul),
|
|
2573
|
-
|
|
2573
|
+
g("span", {
|
|
2574
2574
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2575
2575
|
style: W(o.value),
|
|
2576
2576
|
"data-xine": x(C).fill + "1"
|
|
2577
|
-
},
|
|
2577
|
+
}, Jl, 14, Xl)
|
|
2578
2578
|
], 64))
|
|
2579
2579
|
], 8, Yl));
|
|
2580
2580
|
}
|
|
@@ -2585,7 +2585,7 @@ function tn(e, t) {
|
|
|
2585
2585
|
const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-xine"], ln = {
|
|
2586
2586
|
key: 0,
|
|
2587
2587
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2588
|
-
}, nn = { key: 1 }, sn = /* @__PURE__ */
|
|
2588
|
+
}, nn = { key: 1 }, sn = /* @__PURE__ */ J({
|
|
2589
2589
|
__name: "index",
|
|
2590
2590
|
props: {
|
|
2591
2591
|
item: {},
|
|
@@ -2593,7 +2593,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2593
2593
|
showScoreCn: { type: Boolean }
|
|
2594
2594
|
},
|
|
2595
2595
|
setup(e) {
|
|
2596
|
-
const t = e, o = A(() => t.layout.scoreAddStars ===
|
|
2596
|
+
const t = e, o = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2597
2597
|
return (a, n) => a.layout.handReadFlag ? (s(), d("div", {
|
|
2598
2598
|
key: 0,
|
|
2599
2599
|
class: "score_fill flex items-center",
|
|
@@ -2601,7 +2601,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2601
2601
|
"data-xine": x(C).fill
|
|
2602
2602
|
}, [
|
|
2603
2603
|
a.showScoreCn ? (s(), d("span", ln, [
|
|
2604
|
-
|
|
2604
|
+
g("span", null, X(a.layout.minusFlag && !o.value ? "-" : "") + X(a.item.score), 1),
|
|
2605
2605
|
o.value ? (s(), U(_e, {
|
|
2606
2606
|
key: 0,
|
|
2607
2607
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
@@ -2611,7 +2611,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2611
2611
|
])) : P("", !0)
|
|
2612
2612
|
], 8, an)) : P("", !0);
|
|
2613
2613
|
}
|
|
2614
|
-
}), rn = ["data-xine"], cn = /* @__PURE__ */
|
|
2614
|
+
}), rn = ["data-xine"], cn = /* @__PURE__ */ J({
|
|
2615
2615
|
__name: "sheet",
|
|
2616
2616
|
props: {
|
|
2617
2617
|
item: {},
|
|
@@ -2620,7 +2620,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2620
2620
|
setup(e) {
|
|
2621
2621
|
const t = e;
|
|
2622
2622
|
return (o, a) => (s(), d(M, null, [
|
|
2623
|
-
|
|
2623
|
+
g("div", {
|
|
2624
2624
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2625
2625
|
style: W({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
2626
2626
|
"data-xine": x(C).fill_line
|
|
@@ -2637,7 +2637,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2637
2637
|
function un(e, t) {
|
|
2638
2638
|
return null;
|
|
2639
2639
|
}
|
|
2640
|
-
const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */
|
|
2640
|
+
const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */ J({
|
|
2641
2641
|
__name: "sheet",
|
|
2642
2642
|
props: {
|
|
2643
2643
|
item: {},
|
|
@@ -2654,7 +2654,7 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2654
2654
|
"data-block": x(we)
|
|
2655
2655
|
}, [
|
|
2656
2656
|
it(t.$slots, "default"),
|
|
2657
|
-
|
|
2657
|
+
g("div", mn, [
|
|
2658
2658
|
K(tt, {
|
|
2659
2659
|
item: t.item,
|
|
2660
2660
|
layout: t.layout
|
|
@@ -2668,10 +2668,10 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2668
2668
|
], 2));
|
|
2669
2669
|
}
|
|
2670
2670
|
}), _n = {};
|
|
2671
|
-
function
|
|
2671
|
+
function fn(e, t) {
|
|
2672
2672
|
return null;
|
|
2673
2673
|
}
|
|
2674
|
-
const
|
|
2674
|
+
const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ J({
|
|
2675
2675
|
__name: "sheet",
|
|
2676
2676
|
props: {
|
|
2677
2677
|
item: {},
|
|
@@ -2694,11 +2694,11 @@ const kn = /* @__PURE__ */ ce(wn, [["render", xn]]), Cn = {};
|
|
|
2694
2694
|
function $n(e, t) {
|
|
2695
2695
|
return null;
|
|
2696
2696
|
}
|
|
2697
|
-
const
|
|
2697
|
+
const Sn = /* @__PURE__ */ ce(Cn, [["render", $n]]), Tn = {};
|
|
2698
2698
|
function In(e, t) {
|
|
2699
2699
|
return null;
|
|
2700
2700
|
}
|
|
2701
|
-
const Ln = /* @__PURE__ */ ce(
|
|
2701
|
+
const Ln = /* @__PURE__ */ ce(Tn, [["render", In]]), Fn = {};
|
|
2702
2702
|
function En(e, t) {
|
|
2703
2703
|
return null;
|
|
2704
2704
|
}
|
|
@@ -2706,7 +2706,7 @@ const Mn = /* @__PURE__ */ ce(Fn, [["render", En]]), Pn = {};
|
|
|
2706
2706
|
function Dn(e, t) {
|
|
2707
2707
|
return null;
|
|
2708
2708
|
}
|
|
2709
|
-
const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = { class: "flex-1 flex justify-end overflow-hidden" }, On = ["data-block", "data-guide"], zn = ["data-block", "data-size"], Hn = ["data-block"], Rn = /* @__PURE__ */
|
|
2709
|
+
const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = { class: "flex-1 flex justify-end overflow-hidden" }, On = ["data-block", "data-guide"], zn = ["data-block", "data-size"], Hn = ["data-block"], Rn = /* @__PURE__ */ J({
|
|
2710
2710
|
__name: "sheet",
|
|
2711
2711
|
props: {
|
|
2712
2712
|
item: {},
|
|
@@ -2723,14 +2723,14 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2723
2723
|
width: `${c.value}px`
|
|
2724
2724
|
})), O = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
2725
2725
|
return Ve(() => {
|
|
2726
|
-
|
|
2726
|
+
Je(() => {
|
|
2727
2727
|
o.value = Math.floor(n.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
2728
2728
|
if (!n.value)
|
|
2729
2729
|
return;
|
|
2730
|
-
const Y = n.value.getBoundingClientRect(),
|
|
2730
|
+
const Y = n.value.getBoundingClientRect(), Z = r.value[0].getBoundingClientRect();
|
|
2731
2731
|
a.value = {
|
|
2732
|
-
left: `${
|
|
2733
|
-
top: `${
|
|
2732
|
+
left: `${Z.left - Y.left}px`,
|
|
2733
|
+
top: `${Z.top - Y.top}px`
|
|
2734
2734
|
};
|
|
2735
2735
|
}, 20);
|
|
2736
2736
|
});
|
|
@@ -2747,7 +2747,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2747
2747
|
"data-block": x(we)
|
|
2748
2748
|
}, [
|
|
2749
2749
|
it(h.$slots, "default"),
|
|
2750
|
-
|
|
2750
|
+
g("div", Bn, [
|
|
2751
2751
|
K(tt, {
|
|
2752
2752
|
item: h.item,
|
|
2753
2753
|
layout: h.layout
|
|
@@ -2767,21 +2767,21 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2767
2767
|
class: te(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
|
|
2768
2768
|
style: W({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
|
|
2769
2769
|
}, X(h.item.beforeGuide), 15, On)) : P("", !0),
|
|
2770
|
-
(s(!0), d(M, null, V(i.value, (Y,
|
|
2770
|
+
(s(!0), d(M, null, V(i.value, (Y, Z) => (s(), d("p", {
|
|
2771
2771
|
ref_for: !0,
|
|
2772
2772
|
ref_key: "line",
|
|
2773
2773
|
ref: r,
|
|
2774
2774
|
class: te(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
|
|
2775
2775
|
"data-block": x(we),
|
|
2776
|
-
"data-size": h.item.startAnswerLen + (
|
|
2776
|
+
"data-size": h.item.startAnswerLen + (Z + 1) * o.value,
|
|
2777
2777
|
style: W(u.value)
|
|
2778
2778
|
}, [
|
|
2779
2779
|
h.item.artBlock ? (s(!0), d(M, { key: 0 }, V(o.value, (F, D) => (s(), d("span", {
|
|
2780
|
-
class: te([O.value[
|
|
2780
|
+
class: te([O.value[Z * o.value + D] && "flex items-center justify-center"]),
|
|
2781
2781
|
style: W(m.value)
|
|
2782
|
-
}, X(O.value[
|
|
2782
|
+
}, X(O.value[Z * o.value + D]), 7))), 256)) : P("", !0),
|
|
2783
2783
|
(s(!0), d(M, null, V(l.value, (F) => (s(), d(M, null, [
|
|
2784
|
-
h.item.startAnswerLen +
|
|
2784
|
+
h.item.startAnswerLen + Z * o.value < F && h.item.startAnswerLen + (Z + 1) * o.value >= F ? (s(), d("span", {
|
|
2785
2785
|
key: 0,
|
|
2786
2786
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2787
2787
|
style: W({ left: `${(F - h.item.startAnswerLen) % o.value * c.value}px` }),
|
|
@@ -2797,7 +2797,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2797
2797
|
}, null, 8, ["data", "data-aart"])) : P("", !0)
|
|
2798
2798
|
], 512));
|
|
2799
2799
|
}
|
|
2800
|
-
}), Gn = ["data-block"], Wn = /* @__PURE__ */
|
|
2800
|
+
}), Gn = ["data-block"], Wn = /* @__PURE__ */ J({
|
|
2801
2801
|
__name: "index",
|
|
2802
2802
|
props: {
|
|
2803
2803
|
item: {},
|
|
@@ -2818,7 +2818,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2818
2818
|
}), Yn = ["data-block"], qn = { key: 0 }, Qn = { key: 1 }, Un = { key: 2 }, Kn = {
|
|
2819
2819
|
key: 3,
|
|
2820
2820
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
2821
|
-
}, jn = /* @__PURE__ */
|
|
2821
|
+
}, jn = /* @__PURE__ */ J({
|
|
2822
2822
|
__name: "index",
|
|
2823
2823
|
props: {
|
|
2824
2824
|
sub: {},
|
|
@@ -2845,15 +2845,15 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2845
2845
|
choice: Bl,
|
|
2846
2846
|
choiceSheet: Hl,
|
|
2847
2847
|
decide: Wl,
|
|
2848
|
-
decideSheet:
|
|
2848
|
+
decideSheet: Zl,
|
|
2849
2849
|
fill: on,
|
|
2850
2850
|
fillSheet: cn,
|
|
2851
2851
|
slove: hn,
|
|
2852
2852
|
sloveSheet: yn,
|
|
2853
|
-
easy_slove:
|
|
2853
|
+
easy_slove: gn,
|
|
2854
2854
|
easy_sloveSheet: vn,
|
|
2855
2855
|
mix: kn,
|
|
2856
|
-
mixSheet:
|
|
2856
|
+
mixSheet: Sn,
|
|
2857
2857
|
synthesis: Ln,
|
|
2858
2858
|
synthesisSheet: Mn,
|
|
2859
2859
|
art: An,
|
|
@@ -2889,33 +2889,33 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2889
2889
|
},
|
|
2890
2890
|
setup(e, { emit: t }) {
|
|
2891
2891
|
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", a = Object.values(Ft), n = Q(""), r = A(() => {
|
|
2892
|
-
const
|
|
2892
|
+
const _ = o ? {
|
|
2893
2893
|
choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2894
2894
|
fillSheet: [p.fill, p.fill_english]
|
|
2895
2895
|
} : {
|
|
2896
2896
|
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2897
2897
|
fill: [p.fill, p.fill_english]
|
|
2898
2898
|
};
|
|
2899
|
-
return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(
|
|
2899
|
+
return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(_).find((R) => _[R].includes(p[w])) || `${w}${o}` }), {});
|
|
2900
2900
|
}), l = A(() => [be.one_choice, be.another_choice].includes(e.data.problemType)), i = A(() => {
|
|
2901
|
-
let
|
|
2901
|
+
let _ = [];
|
|
2902
2902
|
return e.data.children.forEach((k) => {
|
|
2903
|
-
let w =
|
|
2904
|
-
(k.polymerId || a.includes(e.data.problemType)) && a.includes(k.problemType) && k.style && (k.style[y[e.layout.mode].choice_a] !==
|
|
2903
|
+
let w = _[_.length - 1];
|
|
2904
|
+
(k.polymerId || a.includes(e.data.problemType)) && a.includes(k.problemType) && k.style && (k.style[y[e.layout.mode].choice_a] !== T.choice_1 || k.style[y[e.layout.mode].choice_b] === T.portrait) ? (!w || w.type !== "polymer" || w.polymerId !== k.polymerId) && (_.push({
|
|
2905
2905
|
type: "polymer",
|
|
2906
2906
|
problemType: k.problemType,
|
|
2907
2907
|
polymerId: k.polymerId,
|
|
2908
2908
|
styleInfo: k.polymerId ? k.style : e.data.style,
|
|
2909
2909
|
children: [],
|
|
2910
2910
|
rawChildren: e.data.rawChildren || []
|
|
2911
|
-
}), w =
|
|
2911
|
+
}), w = _[_.length - 1]) : (!w || w.type !== "base") && (_.push({
|
|
2912
2912
|
type: "base",
|
|
2913
2913
|
children: []
|
|
2914
|
-
}), w =
|
|
2915
|
-
}),
|
|
2914
|
+
}), w = _[_.length - 1]), w.children.push(k);
|
|
2915
|
+
}), _ = _.map((k) => {
|
|
2916
2916
|
var w;
|
|
2917
|
-
if (k.type === "polymer" && k.styleInfo[y[e.layout.mode].choice_a] ===
|
|
2918
|
-
const R = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (
|
|
2917
|
+
if (k.type === "polymer" && k.styleInfo[y[e.layout.mode].choice_a] === T.choice_3) {
|
|
2918
|
+
const R = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((w = k.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
|
|
2919
2919
|
if (k.children.length > R * 5) {
|
|
2920
2920
|
const B = k.children.length % 4 > 4 ? 5 : 4;
|
|
2921
2921
|
return [...Array(Math.ceil(k.children.length / (R * B))).keys()].map((ue, he) => ({
|
|
@@ -2927,23 +2927,23 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2927
2927
|
return k;
|
|
2928
2928
|
} else
|
|
2929
2929
|
return k;
|
|
2930
|
-
}).flat(),
|
|
2930
|
+
}).flat(), _;
|
|
2931
2931
|
}), c = A(() => {
|
|
2932
|
-
let
|
|
2932
|
+
let _ = {};
|
|
2933
2933
|
return e.data.children.forEach((k) => {
|
|
2934
|
-
k.polymerId && (
|
|
2935
|
-
}),
|
|
2934
|
+
k.polymerId && (_[k.polymerId] || (_[k.polymerId] = []), _[k.polymerId][k.polymerOrder || 0] = k.id);
|
|
2935
|
+
}), _;
|
|
2936
2936
|
}), u = A(() => {
|
|
2937
2937
|
if (a.includes(e.data.problemType)) {
|
|
2938
|
-
const
|
|
2939
|
-
return { [`h${e.data.id}`]: Math.max(...
|
|
2938
|
+
const _ = (e.data.rawChildren || e.data.children).map((k) => k.subStr.length);
|
|
2939
|
+
return { [`h${e.data.id}`]: Math.max(..._) };
|
|
2940
2940
|
} else
|
|
2941
|
-
return Object.keys(c.value).map((
|
|
2942
|
-
const k = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId ===
|
|
2941
|
+
return Object.keys(c.value).map((_) => {
|
|
2942
|
+
const k = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId === _).map((w) => w.subStr.length);
|
|
2943
2943
|
return {
|
|
2944
|
-
[
|
|
2944
|
+
[_]: Math.max(...k)
|
|
2945
2945
|
};
|
|
2946
|
-
}).reduce((
|
|
2946
|
+
}).reduce((_, k) => ({ ..._, ...k }), {});
|
|
2947
2947
|
});
|
|
2948
2948
|
return {
|
|
2949
2949
|
Gps_cls: C,
|
|
@@ -2953,27 +2953,27 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2953
2953
|
GroupData: i,
|
|
2954
2954
|
PolymerData: c,
|
|
2955
2955
|
SubWidthInfo: u,
|
|
2956
|
-
ComputName: (
|
|
2957
|
-
ComputAbs: (
|
|
2958
|
-
ComputPolymerCls: (
|
|
2959
|
-
ComputPolymerStyle: (
|
|
2956
|
+
ComputName: (_) => _.problemType ? r.value[_.problemType] : "notArea",
|
|
2957
|
+
ComputAbs: (_) => o && [p.slove, p.art].includes(_.problemType),
|
|
2958
|
+
ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === T.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
|
|
2959
|
+
ComputPolymerStyle: (_) => {
|
|
2960
2960
|
var he, se;
|
|
2961
2961
|
let k = {};
|
|
2962
|
-
const w = Math.max(...(
|
|
2963
|
-
switch (
|
|
2964
|
-
case
|
|
2965
|
-
|
|
2962
|
+
const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((se = _.children[0]) == null ? void 0 : se.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
|
|
2963
|
+
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2964
|
+
case T.choice_1:
|
|
2965
|
+
_.styleInfo[y[e.layout.mode].choice_b] === T.portrait && (k = {
|
|
2966
2966
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2967
2967
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2968
|
-
"grid-template-rows": `repeat(${Math.ceil(
|
|
2968
|
+
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
|
|
2969
2969
|
"column-gap": `${ue}px`
|
|
2970
2970
|
});
|
|
2971
2971
|
break;
|
|
2972
|
-
case
|
|
2972
|
+
case T.choice_3:
|
|
2973
2973
|
k = {
|
|
2974
2974
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2975
|
-
"grid-template-rows": `repeat(${Math.ceil(
|
|
2976
|
-
},
|
|
2975
|
+
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
|
|
2976
|
+
}, _.styleInfo[y[e.layout.mode].choice_b] === T.portrait && (k = {
|
|
2977
2977
|
...k,
|
|
2978
2978
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2979
2979
|
"column-gap": `${ue}px`
|
|
@@ -2982,26 +2982,26 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
return k;
|
|
2984
2984
|
},
|
|
2985
|
-
ComputPolymerItemStyle: (
|
|
2985
|
+
ComputPolymerItemStyle: (_, k) => {
|
|
2986
2986
|
var w;
|
|
2987
|
-
if (a.includes(
|
|
2988
|
-
const R = Math.max(
|
|
2989
|
-
if (!((k + 1) %
|
|
2987
|
+
if (a.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === T.choice_2) {
|
|
2988
|
+
const R = Math.max(Te[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (R * _.style[y[e.layout.mode].choice_c] + 10)), ue = (e.width - R * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
|
|
2989
|
+
if (!((k + 1) % _.style[y[e.layout.mode].choice_c]) && ((k + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
|
|
2990
2990
|
return {
|
|
2991
2991
|
"margin-right": `${ue}px`
|
|
2992
2992
|
};
|
|
2993
2993
|
}
|
|
2994
2994
|
return {};
|
|
2995
2995
|
},
|
|
2996
|
-
ComputStyle: (
|
|
2996
|
+
ComputStyle: (_, k) => {
|
|
2997
2997
|
var R;
|
|
2998
2998
|
let w = {};
|
|
2999
2999
|
if (!o)
|
|
3000
3000
|
return w;
|
|
3001
|
-
if (a.includes(
|
|
3001
|
+
if (a.includes(_.problemType)) {
|
|
3002
3002
|
let B = {};
|
|
3003
3003
|
if (Object.values(Lt).includes(e.data.problemType)) {
|
|
3004
|
-
const ue = Math.max(...(e.data.rawChildren || e.data.children).map((se) => se.optList.length)) * (
|
|
3004
|
+
const ue = Math.max(...(e.data.rawChildren || e.data.children).map((se) => se.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / ue), e.data.style[y[e.layout.mode].choice_d] || 10);
|
|
3005
3005
|
B = k % he ? { minWidth: `${ue}px`, marginLeft: `${(e.width - ue * he) / (he - 1) - 5}px` } : { minWidth: `${ue}px` };
|
|
3006
3006
|
}
|
|
3007
3007
|
w = {
|
|
@@ -3010,42 +3010,42 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
3010
3010
|
...B
|
|
3011
3011
|
};
|
|
3012
3012
|
} else
|
|
3013
|
-
[p.fill, p.fill_english].includes(
|
|
3014
|
-
display:
|
|
3013
|
+
[p.fill, p.fill_english].includes(_.problemType) && (w = {
|
|
3014
|
+
display: _.style[y[e.layout.mode].fill_c] === T.fill_1 && typeof _.order != "number" ? "flex" : "inline-flex",
|
|
3015
3015
|
alignItems: "flex-end",
|
|
3016
|
-
width: `calc(${100 /
|
|
3016
|
+
width: `calc(${100 / _.style[y[e.layout.mode].fill_d][_.order || 0]}% - 6px)`
|
|
3017
3017
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3018
3018
|
});
|
|
3019
3019
|
return w;
|
|
3020
3020
|
},
|
|
3021
|
-
ComputBlock: (
|
|
3021
|
+
ComputBlock: (_) => {
|
|
3022
3022
|
const k = [...a, p.fill, p.fill_english];
|
|
3023
|
-
if (o && (k.includes(
|
|
3023
|
+
if (o && (k.includes(_.problemType) || typeof _.groupIndex == "number"))
|
|
3024
3024
|
return we;
|
|
3025
3025
|
},
|
|
3026
|
-
ComputPayload: (
|
|
3027
|
-
switch (
|
|
3026
|
+
ComputPayload: (_, k) => {
|
|
3027
|
+
switch (_.problemType) {
|
|
3028
3028
|
case p.slove:
|
|
3029
3029
|
return { isFirst: !k };
|
|
3030
3030
|
default:
|
|
3031
3031
|
return {};
|
|
3032
3032
|
}
|
|
3033
3033
|
},
|
|
3034
|
-
handleHoverIn: (
|
|
3035
|
-
n.value =
|
|
3034
|
+
handleHoverIn: (_) => {
|
|
3035
|
+
n.value = _.rootProblemId;
|
|
3036
3036
|
},
|
|
3037
|
-
handleHoverOut: (
|
|
3037
|
+
handleHoverOut: (_) => {
|
|
3038
3038
|
n.value = "";
|
|
3039
3039
|
},
|
|
3040
|
-
handleClick: (
|
|
3041
|
-
e.data.isPolymer || (
|
|
3040
|
+
handleClick: (_, k) => {
|
|
3041
|
+
e.data.isPolymer || (_.stopPropagation(), t("click", k));
|
|
3042
3042
|
},
|
|
3043
|
-
handleDblClick: (
|
|
3044
|
-
e.data.isPolymer || (
|
|
3043
|
+
handleDblClick: (_, k) => {
|
|
3044
|
+
e.data.isPolymer || (_.stopPropagation(), t("dbclick", k));
|
|
3045
3045
|
}
|
|
3046
3046
|
};
|
|
3047
3047
|
}
|
|
3048
|
-
}, Vn = ["data-block"],
|
|
3048
|
+
}, Vn = ["data-block"], Jn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], Zn = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], es = { key: 0 };
|
|
3049
3049
|
function ts(e, t, o, a, n, r) {
|
|
3050
3050
|
const l = Ht("Sub");
|
|
3051
3051
|
return s(!0), d(M, null, V(a.GroupData, (i) => (s(), d(M, null, [
|
|
@@ -3074,12 +3074,12 @@ function ts(e, t, o, a, n, r) {
|
|
|
3074
3074
|
class: te(["sub_item", a.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
|
|
3075
3075
|
}, null, 8, ["sub", "isFull", "width", "class"])) : P("", !0),
|
|
3076
3076
|
(s(), U(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), null, 16))
|
|
3077
|
-
], 46,
|
|
3077
|
+
], 46, Jn);
|
|
3078
3078
|
}), 256))
|
|
3079
3079
|
], 14, Vn)) : (s(!0), d(M, { key: 1 }, V(i.children, (c, u) => {
|
|
3080
3080
|
var m;
|
|
3081
3081
|
return s(), d(M, null, [
|
|
3082
|
-
|
|
3082
|
+
g("div", {
|
|
3083
3083
|
class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3084
3084
|
style: W(a.ComputStyle(c, u)),
|
|
3085
3085
|
"data-tag": c.__tag__,
|
|
@@ -3106,7 +3106,7 @@ function ts(e, t, o, a, n, r) {
|
|
|
3106
3106
|
]),
|
|
3107
3107
|
_: 2
|
|
3108
3108
|
}, 1040))
|
|
3109
|
-
], 46,
|
|
3109
|
+
], 46, Zn),
|
|
3110
3110
|
c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", es)) : P("", !0)
|
|
3111
3111
|
], 64);
|
|
3112
3112
|
}), 256))
|
|
@@ -3323,7 +3323,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3323
3323
|
return [...Array(e.pageDom.length).keys()].map((n) => {
|
|
3324
3324
|
const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
|
|
3325
3325
|
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((l, i) => r + i < t.length).map((l, i) => {
|
|
3326
|
-
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], E = N(h), Y = t[r + i].data.map((F) => F.children.filter((D) => D.problemType)).flat(),
|
|
3326
|
+
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], E = N(h), Y = t[r + i].data.map((F) => F.children.filter((D) => D.problemType)).flat(), Z = t[r + i].data.filter((F) => [be.one_choice, be.another_choice].includes(F.problemType) && F.children.length).map((F) => {
|
|
3327
3327
|
const D = le(`${C.choice}${F.id}`, m);
|
|
3328
3328
|
return D ? {
|
|
3329
3329
|
id: `${++o}`,
|
|
@@ -3348,7 +3348,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3348
3348
|
case p.cloze:
|
|
3349
3349
|
z = {
|
|
3350
3350
|
score: F.score,
|
|
3351
|
-
isColumn: F.style[y[e.layout.mode].choice_a] !==
|
|
3351
|
+
isColumn: F.style[y[e.layout.mode].choice_a] !== T.choice_2,
|
|
3352
3352
|
optList: F.optList.map((w, R) => ({
|
|
3353
3353
|
id: `${F._sub}.${R + 1}`,
|
|
3354
3354
|
position: Pe(le(`${C.fill}${R}`, ne), E, u)
|
|
@@ -3365,7 +3365,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3365
3365
|
break;
|
|
3366
3366
|
case p.fill:
|
|
3367
3367
|
case p.fill_english:
|
|
3368
|
-
const H = $e(C.fill, ne),
|
|
3368
|
+
const H = $e(C.fill, ne), _ = $e(C.fill_line, ne);
|
|
3369
3369
|
z = {
|
|
3370
3370
|
children: [F.score].flat().map((w, R, B) => ({
|
|
3371
3371
|
id: B.length > 1 ? `${F._sub}.${R + 1}` : F._sub,
|
|
@@ -3374,7 +3374,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3374
3374
|
isHiddenContent: !F.style[y[e.layout.mode].fill_b],
|
|
3375
3375
|
position: Pe(ne, E, u),
|
|
3376
3376
|
scorePosition: Pe(H[R], E, u),
|
|
3377
|
-
answerPosition: Pe(
|
|
3377
|
+
answerPosition: Pe(_[R], E, u)
|
|
3378
3378
|
})).filter((w) => w.position)
|
|
3379
3379
|
};
|
|
3380
3380
|
break;
|
|
@@ -3405,7 +3405,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3405
3405
|
position: Pe(ne, E, u, !1, D === v.length - 1 && [p.slove].includes(F.problemType)),
|
|
3406
3406
|
...z
|
|
3407
3407
|
};
|
|
3408
|
-
}).concat(
|
|
3408
|
+
}).concat(Z).filter((F) => F.position);
|
|
3409
3409
|
});
|
|
3410
3410
|
}).map((n) => n.flat());
|
|
3411
3411
|
}, hs = (e) => {
|
|
@@ -3605,10 +3605,10 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3605
3605
|
localData: r,
|
|
3606
3606
|
extendInfo: { shortCoordinate: c }
|
|
3607
3607
|
};
|
|
3608
|
-
}, _s = { class: "layt-moni_view" },
|
|
3608
|
+
}, _s = { class: "layt-moni_view" }, fs = { class: "layt-moni_content" }, gs = { class: "layt-moni_icon" }, bs = { class: "layt-moni_msg" }, vs = {
|
|
3609
3609
|
key: 0,
|
|
3610
3610
|
class: "layt-moni_err_view"
|
|
3611
|
-
}, ws = { class: "layt-moni_err_item_msg" }, xs = ["onClick"], ks = /* @__PURE__ */
|
|
3611
|
+
}, ws = { class: "layt-moni_err_item_msg" }, xs = ["onClick"], ks = /* @__PURE__ */ J({
|
|
3612
3612
|
__name: "index",
|
|
3613
3613
|
props: {
|
|
3614
3614
|
ColList: {},
|
|
@@ -3629,8 +3629,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3629
3629
|
if (!E)
|
|
3630
3630
|
return;
|
|
3631
3631
|
E.classList.remove("err_lack");
|
|
3632
|
-
const Y = window.getComputedStyle(E),
|
|
3633
|
-
E.offsetWidth - parseFloat(Y.borderLeft) - parseFloat(Y.borderRight) <
|
|
3632
|
+
const Y = window.getComputedStyle(E), Z = [...Array.from(E.children)].map((D) => D.offsetWidth).reduce((D, v) => D + v, 0);
|
|
3633
|
+
E.offsetWidth - parseFloat(Y.borderLeft) - parseFloat(Y.borderRight) < Z && (a.value.push({ msg: `${h.subStr}题打分条超长` }), E.classList.add("err_lack"), E.title = "打分条超长,请调整排版或使用自编打分条");
|
|
3634
3634
|
});
|
|
3635
3635
|
});
|
|
3636
3636
|
const l = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
|
|
@@ -3652,27 +3652,27 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3652
3652
|
(((i = a.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
|
|
3653
3653
|
};
|
|
3654
3654
|
return (l, i) => (s(), d("div", _s, [
|
|
3655
|
-
|
|
3656
|
-
|
|
3655
|
+
g("div", fs, [
|
|
3656
|
+
g("div", {
|
|
3657
3657
|
class: te(["layt-moni_status", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3658
3658
|
}, null, 2),
|
|
3659
|
-
|
|
3659
|
+
g("div", {
|
|
3660
3660
|
class: te(["layt-moni_info", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3661
3661
|
}, [
|
|
3662
|
-
|
|
3662
|
+
g("span", gs, [
|
|
3663
3663
|
K(_e, {
|
|
3664
3664
|
width: 1.6,
|
|
3665
3665
|
name: a.value.length ? "wrong" : "right"
|
|
3666
3666
|
}, null, 8, ["name"])
|
|
3667
3667
|
]),
|
|
3668
|
-
|
|
3668
|
+
g("span", bs, "排版" + X(a.value.length ? "异常" : "良好"), 1)
|
|
3669
3669
|
], 2),
|
|
3670
3670
|
a.value.length ? (s(), d("ul", vs, [
|
|
3671
3671
|
(s(!0), d(M, null, V(a.value, (c, u) => (s(), d("li", {
|
|
3672
3672
|
key: u,
|
|
3673
3673
|
class: "layt-moni_err_item"
|
|
3674
3674
|
}, [
|
|
3675
|
-
|
|
3675
|
+
g("span", ws, X(c.msg), 1),
|
|
3676
3676
|
c.fn ? (s(), d("span", {
|
|
3677
3677
|
key: 0,
|
|
3678
3678
|
class: "layt-moni_err_item_fn",
|
|
@@ -3687,7 +3687,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3687
3687
|
const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Xe = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Xe(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Xe(e.parentElement) : document.body, $s = (e) => {
|
|
3688
3688
|
const t = e.parentElement, o = document.createElement("span");
|
|
3689
3689
|
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ut, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
3690
|
-
},
|
|
3690
|
+
}, Ss = (e, t, o, a) => {
|
|
3691
3691
|
let n = null;
|
|
3692
3692
|
if (e.dataset.block === dt && !e.dataset.used) {
|
|
3693
3693
|
const r = window.getComputedStyle(e);
|
|
@@ -3695,7 +3695,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3695
3695
|
} else
|
|
3696
3696
|
e.dataset.block === kt ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === we && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${kt}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && a || al.includes(e.tagName.toLowerCase())) && (n = e);
|
|
3697
3697
|
return n;
|
|
3698
|
-
},
|
|
3698
|
+
}, St = (e, t, o) => {
|
|
3699
3699
|
const a = e.textContent || "", n = a.split("").map((c) => `<span>${c}</span>`).join("");
|
|
3700
3700
|
e.innerHTML = n;
|
|
3701
3701
|
const r = [...Array.from(e.children)].findIndex((c) => de(c).top - t + c.offsetHeight > o);
|
|
@@ -3709,9 +3709,9 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3709
3709
|
const a = nt("", e.parentElement), n = a.findIndex((l) => l === e);
|
|
3710
3710
|
let r = a.filter((l, i) => de(l).top + l.offsetHeight - 1 < de(e).top || i < n && de(l).top < de(e).top).reverse()[0];
|
|
3711
3711
|
return r || (r = Xe(e), de(r).top + r.offsetHeight - t > o && (r = st(r, t, o))), r;
|
|
3712
|
-
},
|
|
3712
|
+
}, Tt = (e, t, o, a) => {
|
|
3713
3713
|
const n = (l, i = o) => {
|
|
3714
|
-
var
|
|
3714
|
+
var Z, F, D;
|
|
3715
3715
|
const c = l.map((v) => {
|
|
3716
3716
|
const z = de(v);
|
|
3717
3717
|
return {
|
|
@@ -3719,7 +3719,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3719
3719
|
top: z.top - t,
|
|
3720
3720
|
left: z.left
|
|
3721
3721
|
};
|
|
3722
|
-
}), u = c.filter((v) => v.el.offsetHeight + v.top > i).sort((v, z) => v.top - z.top), m = (
|
|
3722
|
+
}), u = c.filter((v) => v.el.offsetHeight + v.top > i).sort((v, z) => v.top - z.top), m = (Z = u.shift()) == null ? void 0 : Z.el;
|
|
3723
3723
|
if (!m) {
|
|
3724
3724
|
const v = document.createElement("div");
|
|
3725
3725
|
return (F = l[0].parentElement) == null || F.appendChild(v), v.style.height = i - (de(v).top - t) + "px", v;
|
|
@@ -3731,23 +3731,23 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3731
3731
|
const z = nt(v);
|
|
3732
3732
|
return n(z, h) || v;
|
|
3733
3733
|
} else
|
|
3734
|
-
return v ? de(v).top - t + v.offsetHeight > h ?
|
|
3734
|
+
return v ? de(v).top - t + v.offsetHeight > h ? St(v, t, h) : v : st(m.parentElement, t, h);
|
|
3735
3735
|
} else {
|
|
3736
3736
|
const v = getComputedStyle(m);
|
|
3737
3737
|
if (h + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > i)
|
|
3738
3738
|
return st(m, t, h);
|
|
3739
|
-
const z =
|
|
3739
|
+
const z = Ss(m, i - h, i, a);
|
|
3740
3740
|
if (z)
|
|
3741
3741
|
return Xe(z);
|
|
3742
3742
|
if (m.children.length) {
|
|
3743
3743
|
const ne = nt(m);
|
|
3744
3744
|
return n(ne, i);
|
|
3745
3745
|
} else
|
|
3746
|
-
return
|
|
3746
|
+
return St(m, t, i);
|
|
3747
3747
|
}
|
|
3748
3748
|
}, r = n([e]);
|
|
3749
3749
|
return { cut: $s(r), targetEl: r };
|
|
3750
|
-
},
|
|
3750
|
+
}, Ts = (e) => {
|
|
3751
3751
|
const { el: t, data: o, column: a, backColumn: n, getColSize: r, change: l } = e;
|
|
3752
3752
|
if (!t || !o.length) {
|
|
3753
3753
|
l([], !0);
|
|
@@ -3774,38 +3774,38 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3774
3774
|
}), l([...h]);
|
|
3775
3775
|
};
|
|
3776
3776
|
Y();
|
|
3777
|
-
const
|
|
3777
|
+
const Z = (v) => {
|
|
3778
3778
|
const z = getComputedStyle(v);
|
|
3779
3779
|
return de(v).top - c.top + parseFloat(z.borderTop) + parseFloat(z.paddingTop) + parseFloat(z.lineHeight) > h[h.length - 1].height;
|
|
3780
3780
|
}, F = (v) => {
|
|
3781
3781
|
const z = getComputedStyle(v);
|
|
3782
3782
|
return de(v).top + v.offsetHeight - c.top - (v.dataset.block === we ? 0 : parseFloat(z.paddingBottom) - parseFloat(z.borderBottom)) <= h[h.length - 1].height;
|
|
3783
|
-
}, D = (v =
|
|
3783
|
+
}, D = (v = JSON.parse(JSON.stringify(o[E] || {}))) => {
|
|
3784
3784
|
if (E >= o.length || !Object.keys(v).length) {
|
|
3785
3785
|
l([...h], !0), console.timeEnd("layout"), h = [], u = 0;
|
|
3786
3786
|
return;
|
|
3787
3787
|
}
|
|
3788
|
-
h[h.length - 1].data.push(v), l([...h]), window.requestAnimationFrame(() => {
|
|
3788
|
+
h[h.length - 1].data.push({ ...v }), l([...h]), window.requestAnimationFrame(() => {
|
|
3789
3789
|
const z = $t(v.__tag__, t), ne = !v.isHidden && de(z);
|
|
3790
3790
|
let H = null;
|
|
3791
3791
|
if (m) {
|
|
3792
|
-
const
|
|
3792
|
+
const _ = z.querySelector(`*[data-hutkey="${m}"]`), k = de(_);
|
|
3793
3793
|
h[h.length - 1].top = c.top - k.top, h[h.length - 1].height = c.height - h[h.length - 1].top, m = 0;
|
|
3794
3794
|
}
|
|
3795
3795
|
if (ne && ne.height + ne.top - c.top > h[h.length - 1].height)
|
|
3796
3796
|
if (v.problemType)
|
|
3797
|
-
h[h.length - 1].data.pop(), Y(), D(v);
|
|
3797
|
+
h[h.length - 1].data.pop(), Y(), D({ ...v });
|
|
3798
3798
|
else if (F(z))
|
|
3799
3799
|
Y(), E++, D();
|
|
3800
|
-
else if (
|
|
3801
|
-
h[h.length - 1].data.pop(), Y(), D(v);
|
|
3800
|
+
else if (Z(z))
|
|
3801
|
+
h[h.length - 1].data.pop(), Y(), D({ ...v });
|
|
3802
3802
|
else {
|
|
3803
|
-
H =
|
|
3804
|
-
const
|
|
3805
|
-
h[h.length - 1].height = de(H.cut).top - c.top, Y(),
|
|
3803
|
+
H = Tt(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3804
|
+
const _ = z.querySelector(`*[data-content="${v.id}"]`);
|
|
3805
|
+
h[h.length - 1].height = de(H.cut).top - c.top, Y(), _ != null && _.contains(H.cut) ? (m = Date.now(), H.cut.dataset.hutkey = m, D({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), D({ ...v }));
|
|
3806
3806
|
}
|
|
3807
3807
|
else {
|
|
3808
|
-
let
|
|
3808
|
+
let _ = [], k = [];
|
|
3809
3809
|
v.children.some((w, R) => {
|
|
3810
3810
|
const B = $t(w.__tag__, t), ue = de(B);
|
|
3811
3811
|
if (u) {
|
|
@@ -3814,16 +3814,16 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3814
3814
|
}
|
|
3815
3815
|
if (ue.height + ue.top - c.top > h[h.length - 1].height) {
|
|
3816
3816
|
if (F(B))
|
|
3817
|
-
|
|
3818
|
-
else if (
|
|
3817
|
+
_.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3818
|
+
else if (Z(B))
|
|
3819
3819
|
k = v.children.slice(R);
|
|
3820
3820
|
else {
|
|
3821
|
-
H =
|
|
3821
|
+
H = Tt(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3822
3822
|
const he = B.querySelector(`*[data-content="${w.id}"]`);
|
|
3823
3823
|
if (B === H.targetEl)
|
|
3824
|
-
|
|
3824
|
+
_.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3825
3825
|
else if (he && he.contains(H.cut))
|
|
3826
|
-
u = Date.now(), H.cut.dataset.cutkey = u, w.content = he.innerHTML,
|
|
3826
|
+
u = Date.now(), H.cut.dataset.cutkey = u, w.content = he.innerHTML, _.push(w), k = [{ ...w, content: he.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = de(H.cut).top - c.top;
|
|
3827
3827
|
else {
|
|
3828
3828
|
if (!k.length) {
|
|
3829
3829
|
let se = { ...w };
|
|
@@ -3842,9 +3842,9 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3842
3842
|
if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > pe) {
|
|
3843
3843
|
const G = B.querySelector(`*[data-guide="${w.id}"]`), ae = de(G);
|
|
3844
3844
|
if (ae.height + ae.top - c.top > c.height) {
|
|
3845
|
-
G.innerHTML = w.beforeGuide.split("").map((
|
|
3846
|
-
const Ie = de(I).top + I.offsetHeight,
|
|
3847
|
-
se.beforeGuide = w.beforeGuide.substring(0,
|
|
3845
|
+
G.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
|
|
3846
|
+
const Ie = de(I).top + I.offsetHeight, Se = [...Array.from(G.children)].findIndex((ge) => de(ge).top > Ie);
|
|
3847
|
+
se.beforeGuide = w.beforeGuide.substring(0, Se), w.beforeGuide = w.beforeGuide.substring(Se);
|
|
3848
3848
|
} else
|
|
3849
3849
|
w.beforeGuide = "";
|
|
3850
3850
|
} else
|
|
@@ -3855,15 +3855,15 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3855
3855
|
w.chunk += 1;
|
|
3856
3856
|
break;
|
|
3857
3857
|
}
|
|
3858
|
-
B.contains(H.targetEl) &&
|
|
3858
|
+
B.contains(H.targetEl) && _.push(se), u && (h[h.length - 1].height = de(H.cut).top - c.top);
|
|
3859
3859
|
}
|
|
3860
3860
|
k = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
3863
3863
|
return !0;
|
|
3864
3864
|
} else
|
|
3865
|
-
|
|
3866
|
-
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children =
|
|
3865
|
+
_.push(w);
|
|
3866
|
+
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, k.length ? (Y(), D({ ...v, isHidden: !0, children: k })) : (l([...h]), E++, D());
|
|
3867
3867
|
}
|
|
3868
3868
|
});
|
|
3869
3869
|
};
|
|
@@ -3877,7 +3877,7 @@ function Is(e, t) {
|
|
|
3877
3877
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
3878
3878
|
});
|
|
3879
3879
|
}
|
|
3880
|
-
const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Fs = ["disabled", "contentEditable", "id"], Es = /* @__PURE__ */
|
|
3880
|
+
const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Fs = ["disabled", "contentEditable", "id"], Es = /* @__PURE__ */ J({
|
|
3881
3881
|
__name: "index",
|
|
3882
3882
|
props: {
|
|
3883
3883
|
value: {},
|
|
@@ -3894,7 +3894,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3894
3894
|
n.value && (n.value.destroy(), n.value = null);
|
|
3895
3895
|
return;
|
|
3896
3896
|
}
|
|
3897
|
-
|
|
3897
|
+
Je(() => {
|
|
3898
3898
|
n.value = Is("inline", a), n.value && n.value.on("instanceReady", (u) => {
|
|
3899
3899
|
n.value.setData(o.value);
|
|
3900
3900
|
});
|
|
@@ -3923,8 +3923,8 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3923
3923
|
if (E.nodeType === Node.ELEMENT_NODE && E.children.length)
|
|
3924
3924
|
O(E);
|
|
3925
3925
|
else if (E.nodeType === Node.TEXT_NODE) {
|
|
3926
|
-
const
|
|
3927
|
-
|
|
3926
|
+
const Z = document.createElement("span");
|
|
3927
|
+
Z.textContent = E.textContent, window.REGULAR.underscore.test(E.textContent || "") && (window.getComputedStyle(E.parentNode).wordBreak !== "break-all" || !(E.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (E.textContent || "").length > 5 && (Z.innerHTML = (E.textContent || "").replace(window.REGULAR.underscore, (D) => D.length > 5 ? `<span style="word-break: break-all">${D}</span>` : D)), (Y = E.parentElement) == null || Y.replaceChild(Z, E);
|
|
3928
3928
|
}
|
|
3929
3929
|
});
|
|
3930
3930
|
};
|
|
@@ -3982,7 +3982,7 @@ const Ds = {
|
|
|
3982
3982
|
unmounted: () => {
|
|
3983
3983
|
document.removeEventListener("mousemove", ot);
|
|
3984
3984
|
}
|
|
3985
|
-
}, As = ["onMousedown", "data-block"], Ns = ["src"], Bs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Os = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, zs = ["onMousedown"], Hs = ["onMousedown"], Rs = ["disabled", "onMousedown", "data-block"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ws = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ys = ["onMousedown"], qs = /* @__PURE__ */
|
|
3985
|
+
}, As = ["onMousedown", "data-block"], Ns = ["src"], Bs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Os = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, zs = ["onMousedown"], Hs = ["onMousedown"], Rs = ["disabled", "onMousedown", "data-block"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ws = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ys = ["onMousedown"], qs = /* @__PURE__ */ J({
|
|
3986
3986
|
__name: "absItem",
|
|
3987
3987
|
props: {
|
|
3988
3988
|
imgData: {},
|
|
@@ -4001,13 +4001,13 @@ const Ds = {
|
|
|
4001
4001
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4002
4002
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4003
4003
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4004
|
-
], l = Q({}), i = Q(), c = Q(0), u = Q(0), m = Q(), O = Q(), h = Q({}), E = Q(!1), Y = Q(),
|
|
4004
|
+
], l = Q({}), i = Q(), c = Q(0), u = Q(0), m = Q(), O = Q(), h = Q({}), E = Q(!1), Y = Q(), Z = A(() => o.imgData.map((L) => ({
|
|
4005
4005
|
...L,
|
|
4006
4006
|
top: L.top - Math.floor(L.top / (b[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4007
4007
|
}))), F = A(() => o.txtData.map((L) => ({
|
|
4008
4008
|
...L,
|
|
4009
4009
|
top: L.top - Math.floor(L.top / (b[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4010
|
-
}))), D = A(() => Y.value ? Y.value.split("-")[0] === "img" ?
|
|
4010
|
+
}))), D = A(() => Y.value ? Y.value.split("-")[0] === "img" ? Z.value.find(($) => $.key === Y.value) : F.value.find(($) => $.key === Y.value) : null), v = A(() => D.value ? { [D.value.key]: { ...i.value } } : {});
|
|
4011
4011
|
Ve(() => {
|
|
4012
4012
|
m.value = document.body.querySelector(".__layout__");
|
|
4013
4013
|
});
|
|
@@ -4020,13 +4020,13 @@ const Ds = {
|
|
|
4020
4020
|
E.value = L;
|
|
4021
4021
|
}, H = () => {
|
|
4022
4022
|
const L = D.value, $ = L.left + L.width / 2, I = L.top + L.height / 2, ee = m.value.getBoundingClientRect() || {};
|
|
4023
|
-
h.value = { x: $ + ee.left, y: I + ee.top }, m.value.addEventListener("mousemove",
|
|
4024
|
-
},
|
|
4023
|
+
h.value = { x: $ + ee.left, y: I + ee.top }, m.value.addEventListener("mousemove", _), m.value.addEventListener("mouseleave", k), m.value.addEventListener("mouseup", k);
|
|
4024
|
+
}, _ = (L) => {
|
|
4025
4025
|
L.stopPropagation(), L.preventDefault();
|
|
4026
4026
|
const $ = L.clientX - h.value.x, I = h.value.y - L.clientY, ee = Math.atan2(I, $) / (Math.PI / 180);
|
|
4027
4027
|
i.value = { ...D.value, rotate: -parseInt(ee.toString()) };
|
|
4028
4028
|
}, k = (L) => {
|
|
4029
|
-
L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove",
|
|
4029
|
+
L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove", _), m.value.removeEventListener("mouseleave", k), m.value.removeEventListener("mouseup", k);
|
|
4030
4030
|
}, w = (L, $) => {
|
|
4031
4031
|
var I;
|
|
4032
4032
|
L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((I = D.value) == null ? void 0 : I.key.split("-")[0]) === "img" ? m.value.addEventListener("mousemove", R) : m.value.addEventListener("mousemove", B), m.value.addEventListener("mouseleave", ue), m.value.addEventListener("mouseup", ue);
|
|
@@ -4201,37 +4201,37 @@ const Ds = {
|
|
|
4201
4201
|
!L && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe || I && window.getComputedStyle(I).display !== "none") || (Y.value = L == null ? void 0 : L.key, i.value = L ? { ...L } : null);
|
|
4202
4202
|
};
|
|
4203
4203
|
return (L, $) => (s(), d(M, null, [
|
|
4204
|
-
(s(!0), d(M, null, V(
|
|
4205
|
-
var ee, pe, G, ae, Ie,
|
|
4206
|
-
return
|
|
4204
|
+
(s(!0), d(M, null, V(Z.value, (I) => {
|
|
4205
|
+
var ee, pe, G, ae, Ie, Se, ge;
|
|
4206
|
+
return ft((s(), d("div", {
|
|
4207
4207
|
key: I.id,
|
|
4208
4208
|
"data-safe": "true",
|
|
4209
4209
|
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8" : "z-7"]),
|
|
4210
|
-
style: W({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((G = v.value[I.key]) == null ? void 0 : G.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px", transform: `rotate(${((
|
|
4211
|
-
onMousedown: Le((
|
|
4210
|
+
style: W({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((G = v.value[I.key]) == null ? void 0 : G.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px", transform: `rotate(${((Se = v.value[I.key]) == null ? void 0 : Se.rotate) || I.rotate}deg)` }),
|
|
4211
|
+
onMousedown: Le((f) => se(I), ["stop"]),
|
|
4212
4212
|
"data-block": x(Ee)
|
|
4213
4213
|
}, [
|
|
4214
|
-
|
|
4214
|
+
g("img", {
|
|
4215
4215
|
src: I.url
|
|
4216
4216
|
}, null, 8, Ns),
|
|
4217
|
-
((
|
|
4218
|
-
|
|
4217
|
+
((ge = D.value) == null ? void 0 : ge.key) === I.key ? (s(), d(M, { key: 0 }, [
|
|
4218
|
+
g("span", Bs, [
|
|
4219
4219
|
K(_e, {
|
|
4220
4220
|
name: "close",
|
|
4221
4221
|
width: 2,
|
|
4222
4222
|
class: "cursor-pointer",
|
|
4223
|
-
onClick: (
|
|
4223
|
+
onClick: (f) => t("delAbsImgItem", I)
|
|
4224
4224
|
}, null, 8, ["onClick"])
|
|
4225
4225
|
]),
|
|
4226
|
-
|
|
4227
|
-
(s(), d(M, null, V(8, (
|
|
4228
|
-
key:
|
|
4226
|
+
g("div", Os, [
|
|
4227
|
+
(s(), d(M, null, V(8, (f, S) => g("div", {
|
|
4228
|
+
key: f,
|
|
4229
4229
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4230
|
-
style: W({ ...r[
|
|
4231
|
-
onMousedown: Le((ye) => w(ye,
|
|
4230
|
+
style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
|
|
4231
|
+
onMousedown: Le((ye) => w(ye, S), ["stop"])
|
|
4232
4232
|
}, null, 44, zs)), 64))
|
|
4233
4233
|
]),
|
|
4234
|
-
|
|
4234
|
+
g("span", {
|
|
4235
4235
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4236
4236
|
onMousedown: Le(H, ["stop"])
|
|
4237
4237
|
}, [
|
|
@@ -4243,51 +4243,51 @@ const Ds = {
|
|
|
4243
4243
|
], 64)) : P("", !0)
|
|
4244
4244
|
], 46, As)), [
|
|
4245
4245
|
[x(n), z],
|
|
4246
|
-
[x(a), (
|
|
4246
|
+
[x(a), (f) => se(null, f)]
|
|
4247
4247
|
]);
|
|
4248
4248
|
}), 128)),
|
|
4249
4249
|
(s(!0), d(M, null, V(F.value, (I) => {
|
|
4250
|
-
var ee, pe, G, ae, Ie,
|
|
4251
|
-
return
|
|
4250
|
+
var ee, pe, G, ae, Ie, Se, ge;
|
|
4251
|
+
return ft((s(), d("div", {
|
|
4252
4252
|
key: I.id,
|
|
4253
4253
|
disabled: E.value,
|
|
4254
4254
|
"data-safe": "true",
|
|
4255
4255
|
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8 bg-white" : "z-7"]),
|
|
4256
4256
|
style: W({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((G = v.value[I.key]) == null ? void 0 : G.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px" }),
|
|
4257
|
-
onMousedown: Le((
|
|
4257
|
+
onMousedown: Le((f) => se(I), ["stop"]),
|
|
4258
4258
|
"data-block": x(Ee)
|
|
4259
4259
|
}, [
|
|
4260
4260
|
(s(), U(Ms, {
|
|
4261
4261
|
key: u.value,
|
|
4262
4262
|
class: "border-0 relative z-4",
|
|
4263
|
-
readonly: ((
|
|
4263
|
+
readonly: ((Se = D.value) == null ? void 0 : Se.key) !== I.key,
|
|
4264
4264
|
value: I.content,
|
|
4265
4265
|
name: I.id.toString(),
|
|
4266
4266
|
onChange: he,
|
|
4267
|
-
onFocus: $[0] || ($[0] = (
|
|
4268
|
-
onBlur: $[1] || ($[1] = (
|
|
4267
|
+
onFocus: $[0] || ($[0] = (f) => ne(!0)),
|
|
4268
|
+
onBlur: $[1] || ($[1] = (f) => ne(!1))
|
|
4269
4269
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4270
|
-
((
|
|
4271
|
-
|
|
4270
|
+
((ge = D.value) == null ? void 0 : ge.key) === I.key ? (s(), d(M, { key: 0 }, [
|
|
4271
|
+
g("span", Gs, [
|
|
4272
4272
|
K(_e, {
|
|
4273
4273
|
name: "close",
|
|
4274
4274
|
width: 2,
|
|
4275
4275
|
class: "cursor-pointer",
|
|
4276
|
-
onClick: (
|
|
4276
|
+
onClick: (f) => t("delAbsTxtItem", I)
|
|
4277
4277
|
}, null, 8, ["onClick"])
|
|
4278
4278
|
]),
|
|
4279
|
-
|
|
4280
|
-
(s(), d(M, null, V(8, (
|
|
4281
|
-
key:
|
|
4279
|
+
g("div", Ws, [
|
|
4280
|
+
(s(), d(M, null, V(8, (f, S) => g("div", {
|
|
4281
|
+
key: f,
|
|
4282
4282
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4283
|
-
style: W({ ...r[
|
|
4284
|
-
onMousedown: (ye) => w(ye,
|
|
4283
|
+
style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
|
|
4284
|
+
onMousedown: (ye) => w(ye, S)
|
|
4285
4285
|
}, null, 44, Ys)), 64))
|
|
4286
4286
|
])
|
|
4287
4287
|
], 64)) : P("", !0)
|
|
4288
4288
|
], 46, Rs)), [
|
|
4289
4289
|
[x(n), z],
|
|
4290
|
-
[x(a), (
|
|
4290
|
+
[x(a), (f) => se(null, f)]
|
|
4291
4291
|
]);
|
|
4292
4292
|
}), 128))
|
|
4293
4293
|
], 64));
|
|
@@ -4298,7 +4298,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4298
4298
|
y: "0",
|
|
4299
4299
|
width: "100%",
|
|
4300
4300
|
height: "100%"
|
|
4301
|
-
}, js = ["onClick", "onDblclick"], Xs = ["data-block"], Vs = /* @__PURE__ */
|
|
4301
|
+
}, js = ["onClick", "onDblclick"], Xs = ["data-block"], Vs = /* @__PURE__ */ J({
|
|
4302
4302
|
__name: "index",
|
|
4303
4303
|
props: {
|
|
4304
4304
|
layout: {},
|
|
@@ -4316,61 +4316,61 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4316
4316
|
setup(e, { emit: t }) {
|
|
4317
4317
|
const o = e;
|
|
4318
4318
|
Gt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4319
|
-
const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]), m = Q([]), O = Q([]), h = Q([]), E = A(() => o.data.map((
|
|
4320
|
-
...
|
|
4319
|
+
const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]), m = Q([]), O = Q([]), h = Q([]), E = A(() => o.data.map((f) => ({
|
|
4320
|
+
...f,
|
|
4321
4321
|
__tag__: xt(),
|
|
4322
|
-
rawChildren:
|
|
4323
|
-
children:
|
|
4322
|
+
rawChildren: f.children,
|
|
4323
|
+
children: f.children.map((S) => ({ ...S, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: xt() }))
|
|
4324
4324
|
}))), Y = A(() => {
|
|
4325
|
-
const
|
|
4326
|
-
return ne.value && [p.slove].includes(
|
|
4327
|
-
}),
|
|
4328
|
-
var
|
|
4329
|
-
return o.layout.bindFlag && !!((
|
|
4330
|
-
}), F = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }),
|
|
4325
|
+
const f = E.value[E.value.length - 1], S = f.rawChildren[f.rawChildren.length - 1];
|
|
4326
|
+
return ne.value && [p.slove].includes(S == null ? void 0 : S.problemType) && S.id;
|
|
4327
|
+
}), Z = A(() => {
|
|
4328
|
+
var f;
|
|
4329
|
+
return o.layout.bindFlag && !!((f = ze.find((S) => S.code === o.layout.paper)) != null && f.isMultCol);
|
|
4330
|
+
}), F = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), k = A(() => b[o.layout.paper].width - _.value.left - _.value.right), w = A(() => b[o.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (k.value - (i.value ? i.value + pe(0) : 0) + pe(0)) / o.layout.column - pe(0)), B = A(() => ({
|
|
4331
4331
|
width: `${b[o.layout.paper].width}px`,
|
|
4332
4332
|
height: `${(b[o.layout.paper].height + F.value) * z.value - F.value}px`
|
|
4333
4333
|
})), ue = A(() => ({
|
|
4334
4334
|
width: `${b[o.layout.paper].width}px`,
|
|
4335
4335
|
height: `${b[o.layout.paper].height}px`,
|
|
4336
|
-
padding: `${
|
|
4336
|
+
padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
|
|
4337
4337
|
marginBottom: `${F.value}px`
|
|
4338
4338
|
})), he = A(() => {
|
|
4339
|
-
var
|
|
4340
|
-
const
|
|
4339
|
+
var S;
|
|
4340
|
+
const f = (S = ze.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : S.isMultCol;
|
|
4341
4341
|
return {
|
|
4342
|
-
left: `${
|
|
4343
|
-
top: `${
|
|
4344
|
-
width:
|
|
4342
|
+
left: `${_.value.left + (i.value ? i.value + pe(0) : 0)}px`,
|
|
4343
|
+
top: `${_.value.top}px`,
|
|
4344
|
+
width: f ? `${R.value}px` : `${k.value}px`
|
|
4345
4345
|
};
|
|
4346
4346
|
});
|
|
4347
4347
|
Ae(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4348
4348
|
setTimeout(() => {
|
|
4349
|
-
|
|
4349
|
+
Se();
|
|
4350
4350
|
}, 100);
|
|
4351
|
-
}, { immediate: !0 }), Ae(() =>
|
|
4352
|
-
i.value =
|
|
4351
|
+
}, { immediate: !0 }), Ae(() => Z.value, () => {
|
|
4352
|
+
i.value = Z.value ? 100 : 0;
|
|
4353
4353
|
}, { immediate: !0 });
|
|
4354
|
-
const se = (
|
|
4355
|
-
const
|
|
4356
|
-
return
|
|
4357
|
-
}, I = (
|
|
4358
|
-
|
|
4359
|
-
}, ee = (
|
|
4360
|
-
|
|
4361
|
-
}, pe = (
|
|
4354
|
+
const se = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (f, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + f, $ = (f) => {
|
|
4355
|
+
const S = f % (o.layout.column + o.layout.backColumn);
|
|
4356
|
+
return S >= o.layout.column ? S - o.layout.column : S;
|
|
4357
|
+
}, I = (f, S) => {
|
|
4358
|
+
f ? u.value[S] = f : u.value.splice(S, 1);
|
|
4359
|
+
}, ee = (f, S) => {
|
|
4360
|
+
f ? m.value[S] = f : m.value.splice(S, 1);
|
|
4361
|
+
}, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, G = (f, S = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / se(f) - pe(f) - H.value.left - H.value.right + (S ? H.value.left + H.value.right : 0), ae = (f, S) => {
|
|
4362
4362
|
var j, ie;
|
|
4363
|
-
const ye =
|
|
4363
|
+
const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((j = O.value[Math.min(S, 1)]) == null ? void 0 : j.offsetHeight) || 0;
|
|
4364
4364
|
return {
|
|
4365
|
-
left: `${
|
|
4366
|
-
top: `${ye +
|
|
4367
|
-
width: `${G(
|
|
4368
|
-
height: `${w.value - ye - (!
|
|
4369
|
-
contentHeight: `${(ie = a.value[
|
|
4365
|
+
left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (G(f) + pe(f) + H.value.left + H.value.right)}px`,
|
|
4366
|
+
top: `${ye + _.value.top + (!S && !f ? 0 : H.value.top)}px`,
|
|
4367
|
+
width: `${G(f)}px`,
|
|
4368
|
+
height: `${w.value - ye - (!S && !f ? 0 : H.value.top) - H.value.bottom}px`,
|
|
4369
|
+
contentHeight: `${(ie = a.value[f]) == null ? void 0 : ie.height}px`
|
|
4370
4370
|
};
|
|
4371
|
-
}, Ie = (
|
|
4372
|
-
n.value =
|
|
4373
|
-
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((ye, j) => {
|
|
4371
|
+
}, Ie = (f, S = !1) => {
|
|
4372
|
+
n.value = f.map((ye) => ({ ...ye })), S && (a.value = [...f], Je(() => {
|
|
4373
|
+
l.value += 1, r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((ye, j) => {
|
|
4374
4374
|
var ie, Ce;
|
|
4375
4375
|
!ye || !ye.col || ((ie = a.value[j]) != null && ie.top ? ye.col.style.marginTop = `${(Ce = a.value[j]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
|
|
4376
4376
|
}), o.isFinal && setTimeout(() => {
|
|
@@ -4390,8 +4390,8 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4390
4390
|
t("getFinalData", ye);
|
|
4391
4391
|
}, 500);
|
|
4392
4392
|
}));
|
|
4393
|
-
},
|
|
4394
|
-
|
|
4393
|
+
}, Se = () => {
|
|
4394
|
+
Ts({
|
|
4395
4395
|
el: c.value,
|
|
4396
4396
|
data: E.value,
|
|
4397
4397
|
column: o.layout.column,
|
|
@@ -4399,28 +4399,28 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4399
4399
|
getColSize: ae,
|
|
4400
4400
|
change: Ie
|
|
4401
4401
|
});
|
|
4402
|
-
},
|
|
4403
|
-
t("toggleActive",
|
|
4402
|
+
}, ge = (f = { type: q.page, value: {} }) => {
|
|
4403
|
+
t("toggleActive", f);
|
|
4404
4404
|
};
|
|
4405
|
-
return (
|
|
4405
|
+
return (f, S) => {
|
|
4406
4406
|
var ye;
|
|
4407
4407
|
return s(), d(M, null, [
|
|
4408
|
-
|
|
4408
|
+
f.readonly ? P("", !0) : (s(), U(Cs, {
|
|
4409
4409
|
key: 0,
|
|
4410
4410
|
ColList: a.value,
|
|
4411
4411
|
ColDom: m.value.map((j) => j.col),
|
|
4412
|
-
ImgData:
|
|
4413
|
-
TxtData:
|
|
4414
|
-
onDelAbsImgItem:
|
|
4415
|
-
onDelAbsTxtItem:
|
|
4416
|
-
onChangeLayoutStatus:
|
|
4412
|
+
ImgData: f.imgData,
|
|
4413
|
+
TxtData: f.txtData,
|
|
4414
|
+
onDelAbsImgItem: S[0] || (S[0] = (j) => t("delAbsImgItem", j)),
|
|
4415
|
+
onDelAbsTxtItem: S[1] || (S[1] = (j) => t("delAbsTxtItem", j)),
|
|
4416
|
+
onChangeLayoutStatus: S[2] || (S[2] = (j) => t("changeLayoutStatus", j))
|
|
4417
4417
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4418
|
-
|
|
4418
|
+
g("div", {
|
|
4419
4419
|
class: "flex-1 overflow-auto relative z-1",
|
|
4420
4420
|
id: "alit-layout",
|
|
4421
|
-
onClick:
|
|
4421
|
+
onClick: S[14] || (S[14] = (j) => ge())
|
|
4422
4422
|
}, [
|
|
4423
|
-
|
|
4423
|
+
g("div", {
|
|
4424
4424
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4425
4425
|
ref_key: "rawDom",
|
|
4426
4426
|
ref: c
|
|
@@ -4431,7 +4431,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4431
4431
|
item: j,
|
|
4432
4432
|
showColBorder: ne.value,
|
|
4433
4433
|
isFirst: !ie && n.value.length === 1,
|
|
4434
|
-
layout:
|
|
4434
|
+
layout: f.layout
|
|
4435
4435
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4436
4436
|
ne.value ? (s(), d("div", {
|
|
4437
4437
|
key: 1,
|
|
@@ -4440,33 +4440,33 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4440
4440
|
(s(), U(Ye, {
|
|
4441
4441
|
data: j,
|
|
4442
4442
|
key: n.value.length,
|
|
4443
|
-
layout:
|
|
4444
|
-
target:
|
|
4443
|
+
layout: f.layout,
|
|
4444
|
+
target: f.target,
|
|
4445
4445
|
noPortrait: "",
|
|
4446
4446
|
width: G(n.value.length - 1) - 10
|
|
4447
4447
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4448
4448
|
], 2)) : (s(), U(Ye, {
|
|
4449
4449
|
data: j,
|
|
4450
4450
|
key: n.value.length,
|
|
4451
|
-
layout:
|
|
4452
|
-
target:
|
|
4451
|
+
layout: f.layout,
|
|
4452
|
+
target: f.target,
|
|
4453
4453
|
width: G(n.value.length - 1)
|
|
4454
4454
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4455
4455
|
], 64))), 256)) : P("", !0)
|
|
4456
4456
|
], 512),
|
|
4457
|
-
|
|
4458
|
-
class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__",
|
|
4457
|
+
g("div", {
|
|
4458
|
+
class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", f.layout.redFlag && "red_mode", f.readonly && "pointer-events-none"]),
|
|
4459
4459
|
style: W(B.value)
|
|
4460
4460
|
}, [
|
|
4461
4461
|
K(Qs, {
|
|
4462
|
-
imgData:
|
|
4463
|
-
txtData:
|
|
4464
|
-
layout:
|
|
4462
|
+
imgData: f.imgData,
|
|
4463
|
+
txtData: f.txtData,
|
|
4464
|
+
layout: f.layout,
|
|
4465
4465
|
pageMargin: D.value,
|
|
4466
|
-
onChangeAbsImgItem:
|
|
4467
|
-
onDelAbsImgItem:
|
|
4468
|
-
onChangeAbsTxtItem:
|
|
4469
|
-
onDelAbsTxtItem:
|
|
4466
|
+
onChangeAbsImgItem: S[3] || (S[3] = (j) => t("changeAbsImgItem", j)),
|
|
4467
|
+
onDelAbsImgItem: S[4] || (S[4] = (j) => t("delAbsImgItem", j)),
|
|
4468
|
+
onChangeAbsTxtItem: S[5] || (S[5] = (j) => t("changeAbsTxtItem", j)),
|
|
4469
|
+
onDelAbsTxtItem: S[6] || (S[6] = (j) => t("delAbsTxtItem", j))
|
|
4470
4470
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4471
4471
|
(s(), d("svg", {
|
|
4472
4472
|
viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
|
|
@@ -4484,28 +4484,28 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4484
4484
|
}, [
|
|
4485
4485
|
ie < v.value ? (s(), d(M, { key: 0 }, [
|
|
4486
4486
|
K(wo, {
|
|
4487
|
-
layout:
|
|
4487
|
+
layout: f.layout,
|
|
4488
4488
|
currentPage: ie,
|
|
4489
4489
|
totalPage: v.value,
|
|
4490
|
-
columnContentWidth: G(ie % 2 ?
|
|
4491
|
-
columnMargin: pe(ie % 2 ?
|
|
4490
|
+
columnContentWidth: G(ie % 2 ? f.layout.column : 0, !0),
|
|
4491
|
+
columnMargin: pe(ie % 2 ? f.layout.column : 0),
|
|
4492
4492
|
bindWidth: i.value,
|
|
4493
|
-
padding:
|
|
4493
|
+
padding: _.value
|
|
4494
4494
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4495
|
-
|
|
4495
|
+
f.layout.sloganFlag ? (s(), U($o, {
|
|
4496
4496
|
key: 0,
|
|
4497
|
-
info:
|
|
4498
|
-
layout:
|
|
4499
|
-
onChange:
|
|
4497
|
+
info: f.info,
|
|
4498
|
+
layout: f.layout,
|
|
4499
|
+
onChange: S[7] || (S[7] = (Ce) => t("changeInfo", Ce))
|
|
4500
4500
|
}, null, 8, ["info", "layout"])) : P("", !0),
|
|
4501
|
-
K(
|
|
4501
|
+
K(Za, {
|
|
4502
4502
|
ref_for: !0,
|
|
4503
4503
|
ref_key: "bindDom",
|
|
4504
4504
|
ref: h,
|
|
4505
4505
|
currentPage: ie,
|
|
4506
4506
|
width: i.value,
|
|
4507
4507
|
height: w.value,
|
|
4508
|
-
isBindFlag:
|
|
4508
|
+
isBindFlag: Z.value
|
|
4509
4509
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
|
|
4510
4510
|
!(ie % 2) || ie === 1 && v.value < 3 ? (s(), d("div", {
|
|
4511
4511
|
key: 1,
|
|
@@ -4516,88 +4516,88 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4516
4516
|
style: W(he.value)
|
|
4517
4517
|
}, [
|
|
4518
4518
|
K(Mo, {
|
|
4519
|
-
layout:
|
|
4520
|
-
code:
|
|
4519
|
+
layout: f.layout,
|
|
4520
|
+
code: f.info.textCode
|
|
4521
4521
|
}, null, 8, ["layout", "code"]),
|
|
4522
4522
|
K(ta, {
|
|
4523
|
-
info:
|
|
4524
|
-
layout:
|
|
4525
|
-
fontConfig:
|
|
4526
|
-
data:
|
|
4527
|
-
onChange:
|
|
4523
|
+
info: f.info,
|
|
4524
|
+
layout: f.layout,
|
|
4525
|
+
fontConfig: f.fontConfig,
|
|
4526
|
+
data: f.data,
|
|
4527
|
+
onChange: S[8] || (S[8] = (Ce) => t("changeInfo", Ce))
|
|
4528
4528
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
4529
4529
|
K(ka, {
|
|
4530
|
-
layout:
|
|
4531
|
-
info:
|
|
4532
|
-
isBindFlag:
|
|
4533
|
-
onChange:
|
|
4530
|
+
layout: f.layout,
|
|
4531
|
+
info: f.info,
|
|
4532
|
+
isBindFlag: Z.value,
|
|
4533
|
+
onChange: S[9] || (S[9] = (Ce) => t("changeExtentInfo", Ce))
|
|
4534
4534
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4535
4535
|
K(Ba, {
|
|
4536
|
-
layout:
|
|
4537
|
-
isBindFlag:
|
|
4536
|
+
layout: f.layout,
|
|
4537
|
+
isBindFlag: Z.value
|
|
4538
4538
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4539
4539
|
ie ? P("", !0) : (s(), U(Ya, {
|
|
4540
4540
|
key: 0,
|
|
4541
|
-
layout:
|
|
4542
|
-
data:
|
|
4541
|
+
layout: f.layout,
|
|
4542
|
+
data: f.data
|
|
4543
4543
|
}, null, 8, ["layout", "data"])),
|
|
4544
|
-
|
|
4544
|
+
f.layout.writeScoreFlag && !ie ? (s(), U(_l, {
|
|
4545
4545
|
key: 1,
|
|
4546
|
-
info:
|
|
4547
|
-
layout:
|
|
4546
|
+
info: f.info,
|
|
4547
|
+
layout: f.layout
|
|
4548
4548
|
}, null, 8, ["info", "layout"])) : P("", !0)
|
|
4549
4549
|
], 6)) : P("", !0),
|
|
4550
|
-
(s(!0), d(M, null, V(ie % 2 ?
|
|
4550
|
+
(s(!0), d(M, null, V(ie % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), U(Qa, {
|
|
4551
4551
|
ref_for: !0,
|
|
4552
4552
|
ref: (We) => ee(We, L(Me, ie)),
|
|
4553
4553
|
styleInfo: ae(L(Me, ie), ie),
|
|
4554
|
-
column:
|
|
4554
|
+
column: f.layout.column,
|
|
4555
4555
|
currentColumn: L(Me, ie),
|
|
4556
4556
|
showColBorder: ne.value
|
|
4557
4557
|
}, {
|
|
4558
4558
|
default: It(() => {
|
|
4559
4559
|
var We;
|
|
4560
4560
|
return [
|
|
4561
|
-
(s(!0), d(M, null, V(((We = a.value[L(Me, ie)]) == null ? void 0 : We.data) || [], (
|
|
4561
|
+
(s(!0), d(M, null, V(((We = a.value[L(Me, ie)]) == null ? void 0 : We.data) || [], (fe, zt) => {
|
|
4562
4562
|
var pt;
|
|
4563
4563
|
return s(), d(M, null, [
|
|
4564
|
-
|
|
4564
|
+
fe.isHidden ? P("", !0) : (s(), U(Ct, {
|
|
4565
4565
|
key: 0,
|
|
4566
|
-
item:
|
|
4566
|
+
item: fe,
|
|
4567
4567
|
showColBorder: ne.value,
|
|
4568
4568
|
isFirst: !ie && !Me && !zt,
|
|
4569
|
-
layout:
|
|
4570
|
-
isActive: ((pt =
|
|
4571
|
-
onClick: (xe) =>
|
|
4572
|
-
onDbclick: (xe) => t("dbHeadLineClick",
|
|
4569
|
+
layout: f.layout,
|
|
4570
|
+
isActive: ((pt = f.target.value) == null ? void 0 : pt.id) === fe.id,
|
|
4571
|
+
onClick: (xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }),
|
|
4572
|
+
onDbclick: (xe) => t("dbHeadLineClick", fe)
|
|
4573
4573
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
4574
4574
|
ne.value ? (s(), d("div", {
|
|
4575
4575
|
key: 1,
|
|
4576
|
-
class: te([!
|
|
4577
|
-
onClick: Le((xe) =>
|
|
4578
|
-
onDblclick: (xe) => t("dbHeadLineClick",
|
|
4576
|
+
class: te([!fe.children.length && fe.problemType && "p-1 min-h-[2rem]", f.target.type === x(q).headline && f.target.value.id === fe.id && "active_headline"]),
|
|
4577
|
+
onClick: Le((xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }), ["stop"]),
|
|
4578
|
+
onDblclick: (xe) => t("dbHeadLineClick", fe)
|
|
4579
4579
|
}, [
|
|
4580
4580
|
K(Ye, {
|
|
4581
|
-
data:
|
|
4582
|
-
layout:
|
|
4583
|
-
target:
|
|
4581
|
+
data: fe,
|
|
4582
|
+
layout: f.layout,
|
|
4583
|
+
target: f.target,
|
|
4584
4584
|
width: G(L(Me, ie)) - 10,
|
|
4585
|
-
onClick:
|
|
4586
|
-
onDbclick:
|
|
4585
|
+
onClick: S[10] || (S[10] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
|
|
4586
|
+
onDbclick: S[11] || (S[11] = (xe) => t("dbProblemClick", xe))
|
|
4587
4587
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4588
|
-
|
|
4588
|
+
fe.children.length && fe.children[fe.children.length - 1].id === Y.value ? (s(), d("div", {
|
|
4589
4589
|
key: 0,
|
|
4590
4590
|
class: "border-t",
|
|
4591
4591
|
"data-block": x(Ee)
|
|
4592
4592
|
}, null, 8, Xs)) : P("", !0)
|
|
4593
4593
|
], 42, js)) : (s(), U(Ye, {
|
|
4594
4594
|
key: 2,
|
|
4595
|
-
data:
|
|
4596
|
-
layout:
|
|
4597
|
-
target:
|
|
4595
|
+
data: fe,
|
|
4596
|
+
layout: f.layout,
|
|
4597
|
+
target: f.target,
|
|
4598
4598
|
width: G(L(Me, ie)),
|
|
4599
|
-
onClick:
|
|
4600
|
-
onDbclick:
|
|
4599
|
+
onClick: S[12] || (S[12] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
|
|
4600
|
+
onDbclick: S[13] || (S[13] = (xe) => t("dbProblemClick", xe))
|
|
4601
4601
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4602
4602
|
], 64);
|
|
4603
4603
|
}), 256))
|
|
@@ -4615,8 +4615,8 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4615
4615
|
};
|
|
4616
4616
|
}
|
|
4617
4617
|
});
|
|
4618
|
-
const ei = /* @__PURE__ */ ce(Vs, [["__scopeId", "data-v-
|
|
4618
|
+
const ei = /* @__PURE__ */ ce(Vs, [["__scopeId", "data-v-522f46a7"]]);
|
|
4619
4619
|
export {
|
|
4620
|
-
|
|
4620
|
+
Zs as Config,
|
|
4621
4621
|
ei as default
|
|
4622
4622
|
};
|