alit-layout 1.0.21 → 1.0.22
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 +930 -929
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, openBlock as i, createElementBlock as
|
|
1
|
+
import { defineComponent as ee, openBlock as i, createElementBlock as u, Fragment as E, renderList as Z, createElementVNode as f, normalizeStyle as q, unref as x, toDisplayString as J, createCommentVNode as M, ref as Y, watch as Me, normalizeClass as oe, computed as N, createBlock as j, createTextVNode as Ue, createVNode as V, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
|
|
2
2
|
const rt = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -420,7 +420,7 @@ const rt = {
|
|
|
420
420
|
2: 20
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
},
|
|
423
|
+
}, Kt = 10, jt = {
|
|
424
424
|
base: {
|
|
425
425
|
secTitleFlag: "副标题",
|
|
426
426
|
authorFlag: "命题人",
|
|
@@ -530,7 +530,7 @@ const rt = {
|
|
|
530
530
|
2: 1,
|
|
531
531
|
3: 1
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, U = {
|
|
534
534
|
page: "page",
|
|
535
535
|
headline: "headline",
|
|
536
536
|
text: "text",
|
|
@@ -574,13 +574,13 @@ const rt = {
|
|
|
574
574
|
{ name: "自动", code: Qe.auto },
|
|
575
575
|
{ name: "开", code: Qe.on },
|
|
576
576
|
{ name: "关", code: Qe.off }
|
|
577
|
-
],
|
|
577
|
+
], Ke = {
|
|
578
578
|
step: "step",
|
|
579
579
|
custom: "custom"
|
|
580
580
|
}, ao = [
|
|
581
|
-
{ name: "分段", code:
|
|
582
|
-
{ name: "自编", code:
|
|
583
|
-
],
|
|
581
|
+
{ name: "分段", code: Ke.step },
|
|
582
|
+
{ name: "自编", code: Ke.custom }
|
|
583
|
+
], F = {
|
|
584
584
|
choice_1: "choice-1",
|
|
585
585
|
choice_2: "choice-2",
|
|
586
586
|
choice_3: "choice-3",
|
|
@@ -738,11 +738,11 @@ const rt = {
|
|
|
738
738
|
type: "radio",
|
|
739
739
|
label: "横向分栏",
|
|
740
740
|
key: y.article.col_a,
|
|
741
|
-
target: [
|
|
741
|
+
target: [U.headline],
|
|
742
742
|
show: (e) => ![m.art].includes(e.problemType) && e.layoutMode === "column",
|
|
743
743
|
option: [
|
|
744
|
-
{ name: "1栏", code:
|
|
745
|
-
{ name: "横向2栏", code:
|
|
744
|
+
{ name: "1栏", code: F.col_1 },
|
|
745
|
+
{ name: "横向2栏", code: F.col_2 }
|
|
746
746
|
]
|
|
747
747
|
}
|
|
748
748
|
],
|
|
@@ -751,11 +751,11 @@ const rt = {
|
|
|
751
751
|
type: "radio",
|
|
752
752
|
label: "横向分栏",
|
|
753
753
|
key: y.article.col_a,
|
|
754
|
-
target: [
|
|
754
|
+
target: [U.headline],
|
|
755
755
|
show: (e) => ![m.art].includes(e.problemType) && e.layoutMode === "column",
|
|
756
756
|
option: [
|
|
757
|
-
{ name: "1栏", code:
|
|
758
|
-
{ name: "横向2栏", code:
|
|
757
|
+
{ name: "1栏", code: F.col_1 },
|
|
758
|
+
{ name: "横向2栏", code: F.col_2 }
|
|
759
759
|
]
|
|
760
760
|
}
|
|
761
761
|
]
|
|
@@ -768,10 +768,10 @@ const rt = {
|
|
|
768
768
|
label: "插入题号样式控制",
|
|
769
769
|
key: y.article.slove_d,
|
|
770
770
|
code: "slove_insert_sub",
|
|
771
|
-
target: [
|
|
771
|
+
target: [U.problem],
|
|
772
772
|
option: [
|
|
773
|
-
{ name: "无", code:
|
|
774
|
-
{ name: "下划线", code:
|
|
773
|
+
{ name: "无", code: F.slove_5 },
|
|
774
|
+
{ name: "下划线", code: F.slove_6 }
|
|
775
775
|
]
|
|
776
776
|
}
|
|
777
777
|
]
|
|
@@ -784,8 +784,8 @@ const rt = {
|
|
|
784
784
|
label: "展示样式",
|
|
785
785
|
key: y.article.choice_a,
|
|
786
786
|
option: [
|
|
787
|
-
{ name: "分布式", code:
|
|
788
|
-
{ name: "集合式", code:
|
|
787
|
+
{ name: "分布式", code: F.choice_1 },
|
|
788
|
+
{ name: "集合式", code: F.choice_2 }
|
|
789
789
|
]
|
|
790
790
|
}
|
|
791
791
|
],
|
|
@@ -796,8 +796,8 @@ const rt = {
|
|
|
796
796
|
label: "展示样式",
|
|
797
797
|
key: y.article.decide_a,
|
|
798
798
|
option: [
|
|
799
|
-
{ name: "对错", code:
|
|
800
|
-
{ name: "TF", code:
|
|
799
|
+
{ name: "对错", code: F.decide_1 },
|
|
800
|
+
{ name: "TF", code: F.decide_2 }
|
|
801
801
|
]
|
|
802
802
|
}
|
|
803
803
|
],
|
|
@@ -808,9 +808,9 @@ const rt = {
|
|
|
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: F.fill_1 },
|
|
812
|
+
{ name: "跟随主题干", code: F.fill_2 },
|
|
813
|
+
{ name: "跟随标点符号", code: F.fill_3 }
|
|
814
814
|
]
|
|
815
815
|
}
|
|
816
816
|
],
|
|
@@ -823,18 +823,18 @@ const rt = {
|
|
|
823
823
|
label: "边框控制",
|
|
824
824
|
key: y.article.slove_a,
|
|
825
825
|
option: [
|
|
826
|
-
{ name: "有边框", code:
|
|
827
|
-
{ name: "无边框", code:
|
|
826
|
+
{ name: "有边框", code: F.slove_1 },
|
|
827
|
+
{ name: "无边框", code: F.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] === F.slove_1,
|
|
835
835
|
option: [
|
|
836
|
-
{ name: "标准边框", code:
|
|
837
|
-
{ name: "简易边框", code:
|
|
836
|
+
{ name: "标准边框", code: F.slove_3 },
|
|
837
|
+
{ name: "简易边框", code: F.slove_4 }
|
|
838
838
|
]
|
|
839
839
|
},
|
|
840
840
|
{
|
|
@@ -851,10 +851,10 @@ const rt = {
|
|
|
851
851
|
label: "插入题号样式控制",
|
|
852
852
|
key: y.article.slove_d,
|
|
853
853
|
code: "slove_insert_sub",
|
|
854
|
-
target: [
|
|
854
|
+
target: [U.problem],
|
|
855
855
|
option: [
|
|
856
|
-
{ name: "无", code:
|
|
857
|
-
{ name: "下划线", code:
|
|
856
|
+
{ name: "无", code: F.slove_5 },
|
|
857
|
+
{ name: "下划线", code: F.slove_6 }
|
|
858
858
|
]
|
|
859
859
|
}
|
|
860
860
|
],
|
|
@@ -874,7 +874,7 @@ const rt = {
|
|
|
874
874
|
key: y.article.art_c,
|
|
875
875
|
detail: !0,
|
|
876
876
|
unit: "字",
|
|
877
|
-
target: [
|
|
877
|
+
target: [U.problem]
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
type: "slider",
|
|
@@ -883,7 +883,7 @@ const rt = {
|
|
|
883
883
|
detail: !0,
|
|
884
884
|
min: () => 1,
|
|
885
885
|
max: (e) => Math.floor(e.style[y.article.art_c] / e.style[y.article.art_e]),
|
|
886
|
-
target: [
|
|
886
|
+
target: [U.problem]
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
type: "radio",
|
|
@@ -894,7 +894,7 @@ const rt = {
|
|
|
894
894
|
{ name: "100", code: 100 }
|
|
895
895
|
],
|
|
896
896
|
detail: !0,
|
|
897
|
-
target: [
|
|
897
|
+
target: [U.problem]
|
|
898
898
|
}
|
|
899
899
|
]
|
|
900
900
|
},
|
|
@@ -906,26 +906,26 @@ const rt = {
|
|
|
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: F.choice_1 },
|
|
910
|
+
{ name: "竖排", code: F.choice_2 },
|
|
911
|
+
{ name: "分组", code: F.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] !== F.choice_2,
|
|
919
919
|
option: [
|
|
920
|
-
{ name: "横向", code:
|
|
921
|
-
{ name: "纵向", code:
|
|
920
|
+
{ name: "横向", code: F.landscape },
|
|
921
|
+
{ name: "纵向", code: F.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) => [F.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 rt = {
|
|
|
940
940
|
label: "展示样式",
|
|
941
941
|
key: y.sheet.decide_a,
|
|
942
942
|
option: [
|
|
943
|
-
{ name: "对错", code:
|
|
944
|
-
{ name: "TF", code:
|
|
943
|
+
{ name: "对错", code: F.decide_1 },
|
|
944
|
+
{ name: "TF", code: F.decide_2 }
|
|
945
945
|
]
|
|
946
946
|
}
|
|
947
947
|
],
|
|
@@ -962,20 +962,20 @@ const rt = {
|
|
|
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: F.fill_1 },
|
|
966
|
+
{ name: "跟随主题干", code: F.fill_2 },
|
|
967
|
+
{ name: "跟随标点符号", code: F.fill_3 }
|
|
968
968
|
]
|
|
969
969
|
},
|
|
970
970
|
{
|
|
971
971
|
type: "radio",
|
|
972
972
|
label: "分题换行",
|
|
973
973
|
key: y.sheet.fill_c,
|
|
974
|
-
target: [
|
|
974
|
+
target: [U.page, U.headline],
|
|
975
975
|
show: (e) => !e.style[y.sheet.fill_b],
|
|
976
976
|
option: [
|
|
977
|
-
{ name: "开启", code:
|
|
978
|
-
{ name: "关闭", code:
|
|
977
|
+
{ name: "开启", code: F.fill_1 },
|
|
978
|
+
{ name: "关闭", code: F.fill_2 }
|
|
979
979
|
]
|
|
980
980
|
},
|
|
981
981
|
{
|
|
@@ -1012,7 +1012,7 @@ const rt = {
|
|
|
1012
1012
|
type: "slider",
|
|
1013
1013
|
label: "每空高度",
|
|
1014
1014
|
key: y.sheet.fill_e,
|
|
1015
|
-
target: [
|
|
1015
|
+
target: [U.page, U.headline],
|
|
1016
1016
|
show: (e) => !e.style[y.sheet.fill_b],
|
|
1017
1017
|
max: () => 20
|
|
1018
1018
|
}
|
|
@@ -1034,7 +1034,7 @@ const rt = {
|
|
|
1034
1034
|
label: "每空宽度",
|
|
1035
1035
|
key: y.sheet.fill_d,
|
|
1036
1036
|
filter: (e, t) => e.mixType[t].problemType === m.fill,
|
|
1037
|
-
target: [
|
|
1037
|
+
target: [U.problem],
|
|
1038
1038
|
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === m.fill),
|
|
1039
1039
|
option: [
|
|
1040
1040
|
{ name: "1", code: 1 },
|
|
@@ -1058,19 +1058,19 @@ const rt = {
|
|
|
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(m).includes(t.problemType) && !t.style[y.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.decide),
|
|
1060
1060
|
option: [
|
|
1061
|
-
{ name: "对错", code:
|
|
1062
|
-
{ name: "TF", code:
|
|
1061
|
+
{ name: "对错", code: F.decide_1 },
|
|
1062
|
+
{ name: "TF", code: F.decide_2 }
|
|
1063
1063
|
]
|
|
1064
1064
|
},
|
|
1065
1065
|
{
|
|
1066
1066
|
type: "radio",
|
|
1067
1067
|
label: "排列方向",
|
|
1068
1068
|
key: y.sheet.choice_b,
|
|
1069
|
-
target: [
|
|
1069
|
+
target: [U.problem],
|
|
1070
1070
|
show: (e) => !e.style[y.sheet.mix_a] && !(e.mixType || []).find((t) => ![m.choice, m.choice_multiple].includes(t.problemType)),
|
|
1071
1071
|
option: [
|
|
1072
|
-
{ name: "横向", code:
|
|
1073
|
-
{ name: "竖向", code:
|
|
1072
|
+
{ name: "横向", code: F.landscape },
|
|
1073
|
+
{ name: "竖向", code: F.portrait }
|
|
1074
1074
|
]
|
|
1075
1075
|
}
|
|
1076
1076
|
],
|
|
@@ -1092,7 +1092,7 @@ const rt = {
|
|
|
1092
1092
|
key: y.sheet.art_c,
|
|
1093
1093
|
detail: !0,
|
|
1094
1094
|
unit: "字",
|
|
1095
|
-
target: [
|
|
1095
|
+
target: [U.problem]
|
|
1096
1096
|
},
|
|
1097
1097
|
{
|
|
1098
1098
|
type: "slider",
|
|
@@ -1101,7 +1101,7 @@ const rt = {
|
|
|
1101
1101
|
detail: !0,
|
|
1102
1102
|
min: () => 1,
|
|
1103
1103
|
max: (e) => Math.floor(e.style[y.sheet.art_c] / e.style[y.sheet.art_e]),
|
|
1104
|
-
target: [
|
|
1104
|
+
target: [U.problem]
|
|
1105
1105
|
},
|
|
1106
1106
|
{
|
|
1107
1107
|
type: "radio",
|
|
@@ -1112,7 +1112,7 @@ const rt = {
|
|
|
1112
1112
|
{ name: "100", code: 100 }
|
|
1113
1113
|
],
|
|
1114
1114
|
detail: !0,
|
|
1115
|
-
target: [
|
|
1115
|
+
target: [U.problem]
|
|
1116
1116
|
}
|
|
1117
1117
|
],
|
|
1118
1118
|
// 综合题
|
|
@@ -1136,26 +1136,26 @@ const rt = {
|
|
|
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: F.choice_1 },
|
|
1140
|
+
{ name: "竖排", code: F.choice_2 },
|
|
1141
|
+
{ name: "分组", code: F.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] !== F.choice_2,
|
|
1149
1149
|
option: [
|
|
1150
|
-
{ name: "横向", code:
|
|
1151
|
-
{ name: "纵向", code:
|
|
1150
|
+
{ name: "横向", code: F.landscape },
|
|
1151
|
+
{ name: "纵向", code: F.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) => [F.choice_2].includes(e.style[y.sheetCard.choice_a]),
|
|
1159
1159
|
option: [
|
|
1160
1160
|
{ name: "3题", code: 3 },
|
|
1161
1161
|
{ name: "4题", code: 4 },
|
|
@@ -1165,9 +1165,9 @@ const rt = {
|
|
|
1165
1165
|
{
|
|
1166
1166
|
type: "slider",
|
|
1167
1167
|
label: "列数",
|
|
1168
|
-
target: [
|
|
1168
|
+
target: [U.headline],
|
|
1169
1169
|
key: y.sheetCard.choice_d,
|
|
1170
|
-
show: (e) => Object.values(rt).includes(e.problemType) && e.style[y.sheetCard.choice_a] !==
|
|
1170
|
+
show: (e) => Object.values(rt).includes(e.problemType) && e.style[y.sheetCard.choice_a] !== F.choice_2,
|
|
1171
1171
|
min: () => 2,
|
|
1172
1172
|
max: () => 10
|
|
1173
1173
|
}
|
|
@@ -1179,8 +1179,8 @@ const rt = {
|
|
|
1179
1179
|
label: "展示样式",
|
|
1180
1180
|
key: y.sheetCard.decide_a,
|
|
1181
1181
|
option: [
|
|
1182
|
-
{ name: "对错", code:
|
|
1183
|
-
{ name: "TF", code:
|
|
1182
|
+
{ name: "对错", code: F.decide_1 },
|
|
1183
|
+
{ name: "TF", code: F.decide_2 }
|
|
1184
1184
|
]
|
|
1185
1185
|
}
|
|
1186
1186
|
],
|
|
@@ -1192,20 +1192,20 @@ const rt = {
|
|
|
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: F.fill_1 },
|
|
1196
|
+
{ name: "跟随主题干", code: F.fill_2 },
|
|
1197
|
+
{ name: "跟随标点符号", code: F.fill_3 }
|
|
1198
1198
|
]
|
|
1199
1199
|
},
|
|
1200
1200
|
{
|
|
1201
1201
|
type: "radio",
|
|
1202
1202
|
label: "分题换行",
|
|
1203
1203
|
key: y.sheetCard.fill_c,
|
|
1204
|
-
target: [
|
|
1204
|
+
target: [U.page, U.headline],
|
|
1205
1205
|
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1206
1206
|
option: [
|
|
1207
|
-
{ name: "开启", code:
|
|
1208
|
-
{ name: "关闭", code:
|
|
1207
|
+
{ name: "开启", code: F.fill_1 },
|
|
1208
|
+
{ name: "关闭", code: F.fill_2 }
|
|
1209
1209
|
]
|
|
1210
1210
|
},
|
|
1211
1211
|
{
|
|
@@ -1242,7 +1242,7 @@ const rt = {
|
|
|
1242
1242
|
type: "slider",
|
|
1243
1243
|
label: "每空高度",
|
|
1244
1244
|
key: y.sheetCard.fill_e,
|
|
1245
|
-
target: [
|
|
1245
|
+
target: [U.page, U.headline],
|
|
1246
1246
|
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1247
1247
|
max: () => 20
|
|
1248
1248
|
}
|
|
@@ -1255,7 +1255,7 @@ const rt = {
|
|
|
1255
1255
|
label: "每空宽度",
|
|
1256
1256
|
key: y.sheetCard.fill_d,
|
|
1257
1257
|
filter: (e, t) => e.mixType[t].problemType === m.fill,
|
|
1258
|
-
target: [
|
|
1258
|
+
target: [U.problem],
|
|
1259
1259
|
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || []).find((t) => t.problemType === m.fill),
|
|
1260
1260
|
option: [
|
|
1261
1261
|
{ name: "1", code: 1 },
|
|
@@ -1279,19 +1279,19 @@ const rt = {
|
|
|
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(m).includes(t.problemType) && !t.style[y.sheetCard.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.decide),
|
|
1281
1281
|
option: [
|
|
1282
|
-
{ name: "对错", code:
|
|
1283
|
-
{ name: "TF", code:
|
|
1282
|
+
{ name: "对错", code: F.decide_1 },
|
|
1283
|
+
{ name: "TF", code: F.decide_2 }
|
|
1284
1284
|
]
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
|
1287
1287
|
type: "radio",
|
|
1288
1288
|
label: "排列方向",
|
|
1289
1289
|
key: y.sheetCard.choice_b,
|
|
1290
|
-
target: [
|
|
1290
|
+
target: [U.problem],
|
|
1291
1291
|
show: (e) => !e.style[y.sheetCard.mix_a] && !(e.mixType || []).find((t) => ![m.choice, m.choice_multiple].includes(t.problemType)),
|
|
1292
1292
|
option: [
|
|
1293
|
-
{ name: "横向", code:
|
|
1294
|
-
{ name: "竖向", code:
|
|
1293
|
+
{ name: "横向", code: F.landscape },
|
|
1294
|
+
{ name: "竖向", code: F.portrait }
|
|
1295
1295
|
]
|
|
1296
1296
|
}
|
|
1297
1297
|
],
|
|
@@ -1302,7 +1302,7 @@ const rt = {
|
|
|
1302
1302
|
label: "格子尺寸",
|
|
1303
1303
|
key: y.article.art_b,
|
|
1304
1304
|
detail: !0,
|
|
1305
|
-
target: [
|
|
1305
|
+
target: [U.problem],
|
|
1306
1306
|
min: () => 27,
|
|
1307
1307
|
max: () => 40,
|
|
1308
1308
|
formatTip: (e, t) => {
|
|
@@ -1316,7 +1316,7 @@ const rt = {
|
|
|
1316
1316
|
key: y.sheetCard.art_c,
|
|
1317
1317
|
detail: !0,
|
|
1318
1318
|
unit: "字",
|
|
1319
|
-
target: [
|
|
1319
|
+
target: [U.problem]
|
|
1320
1320
|
},
|
|
1321
1321
|
{
|
|
1322
1322
|
type: "slider",
|
|
@@ -1325,7 +1325,7 @@ const rt = {
|
|
|
1325
1325
|
detail: !0,
|
|
1326
1326
|
min: () => 1,
|
|
1327
1327
|
max: (e) => Math.floor(e.style[y.sheetCard.art_c] / e.style[y.sheetCard.art_e]),
|
|
1328
|
-
target: [
|
|
1328
|
+
target: [U.problem]
|
|
1329
1329
|
},
|
|
1330
1330
|
{
|
|
1331
1331
|
type: "radio",
|
|
@@ -1336,7 +1336,7 @@ const rt = {
|
|
|
1336
1336
|
{ name: "100", code: 100 }
|
|
1337
1337
|
],
|
|
1338
1338
|
detail: !0,
|
|
1339
|
-
target: [
|
|
1339
|
+
target: [U.problem]
|
|
1340
1340
|
}
|
|
1341
1341
|
],
|
|
1342
1342
|
// 综合题
|
|
@@ -1405,7 +1405,7 @@ const rt = {
|
|
|
1405
1405
|
value: 24,
|
|
1406
1406
|
height: 16
|
|
1407
1407
|
}
|
|
1408
|
-
},
|
|
1408
|
+
}, je = {
|
|
1409
1409
|
stand: {
|
|
1410
1410
|
name: "标准",
|
|
1411
1411
|
code: "stand",
|
|
@@ -1465,14 +1465,14 @@ const rt = {
|
|
|
1465
1465
|
fontFamily: io,
|
|
1466
1466
|
fontSize: co,
|
|
1467
1467
|
fontWeight: ro,
|
|
1468
|
-
formatConfig:
|
|
1468
|
+
formatConfig: jt,
|
|
1469
1469
|
halfScoreType: Qe,
|
|
1470
1470
|
halfScoreTypeOption: oo,
|
|
1471
1471
|
layoutMode: Xt,
|
|
1472
1472
|
otherLayout: so,
|
|
1473
1473
|
otherLayoutKey: Dt,
|
|
1474
1474
|
paddDiff: Qt,
|
|
1475
|
-
pageMargin:
|
|
1475
|
+
pageMargin: Kt,
|
|
1476
1476
|
pagePadding: ct,
|
|
1477
1477
|
pagePointPosition: ze,
|
|
1478
1478
|
pageSize: g,
|
|
@@ -1480,10 +1480,10 @@ const rt = {
|
|
|
1480
1480
|
paper: Oe,
|
|
1481
1481
|
problemLayout: no,
|
|
1482
1482
|
problemLayoutKey: y,
|
|
1483
|
-
problemLayoutVal:
|
|
1484
|
-
scoreLineSize:
|
|
1483
|
+
problemLayoutVal: F,
|
|
1484
|
+
scoreLineSize: je,
|
|
1485
1485
|
scoreLineStyle: Ze,
|
|
1486
|
-
scoreLineType:
|
|
1486
|
+
scoreLineType: Ke,
|
|
1487
1487
|
scoreLineTypeOption: ao,
|
|
1488
1488
|
seatType: xe,
|
|
1489
1489
|
seatTypeOption: Jt,
|
|
@@ -1494,7 +1494,7 @@ const rt = {
|
|
|
1494
1494
|
subRangeOption: Zt,
|
|
1495
1495
|
subRule: qe,
|
|
1496
1496
|
subRuleOption: eo,
|
|
1497
|
-
toolGroup:
|
|
1497
|
+
toolGroup: U
|
|
1498
1498
|
}, Symbol.toStringTag, { value: "Module" })), dt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), po = "TF".split(""), mo = {
|
|
1499
1499
|
a4: "TYPE_A4",
|
|
1500
1500
|
a4x: "TYPE_A4",
|
|
@@ -1599,8 +1599,8 @@ const rt = {
|
|
|
1599
1599
|
right: `${t.padding.right - 20 + 100}px`,
|
|
1600
1600
|
top: `${t.padding.top - 20}px`
|
|
1601
1601
|
}
|
|
1602
|
-
})[t.layout.pagePoint],
|
|
1603
|
-
const
|
|
1602
|
+
})[t.layout.pagePoint], n = (o, s) => {
|
|
1603
|
+
const r = t.columnContentWidth + t.columnMargin, d = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, p = {
|
|
1604
1604
|
t: {
|
|
1605
1605
|
top: `${t.padding.top - 20}px`
|
|
1606
1606
|
},
|
|
@@ -1608,50 +1608,50 @@ const rt = {
|
|
|
1608
1608
|
bottom: `${t.padding.bottom - 20}px`
|
|
1609
1609
|
}
|
|
1610
1610
|
};
|
|
1611
|
-
return { left: `${o *
|
|
1612
|
-
},
|
|
1613
|
-
const
|
|
1614
|
-
return { top: `${
|
|
1611
|
+
return { left: `${o * r + d}px`, ...p[s] };
|
|
1612
|
+
}, c = (o) => {
|
|
1613
|
+
const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((A) => A === o);
|
|
1614
|
+
return { top: `${s * p + t.padding.top - 10}px`, width: "11px", ...d };
|
|
1615
1615
|
};
|
|
1616
|
-
return (o,
|
|
1617
|
-
var
|
|
1618
|
-
return i(),
|
|
1619
|
-
(i(),
|
|
1620
|
-
key:
|
|
1616
|
+
return (o, s) => {
|
|
1617
|
+
var r;
|
|
1618
|
+
return i(), u(E, null, [
|
|
1619
|
+
(i(), u(E, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
|
|
1620
|
+
key: d,
|
|
1621
1621
|
class: "absolute w-8 bg-black point_item",
|
|
1622
|
-
style: q(a(
|
|
1623
|
-
"data-xine": x(k).point +
|
|
1622
|
+
style: q(a(d)),
|
|
1623
|
+
"data-xine": x(k).point + d
|
|
1624
1624
|
}, null, 12, yo)), 64)),
|
|
1625
|
-
(i(!0),
|
|
1626
|
-
(i(),
|
|
1625
|
+
(i(!0), u(E, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (d) => (i(), u(E, { key: d }, [
|
|
1626
|
+
(i(), u(E, null, Z(["t", "b"], (p) => f("span", {
|
|
1627
1627
|
key: p,
|
|
1628
1628
|
class: "absolute bg-black w-8 point_item",
|
|
1629
|
-
style: q(
|
|
1629
|
+
style: q(n(d, p)),
|
|
1630
1630
|
"data-xine": x(k).point + p
|
|
1631
1631
|
}, null, 12, _o)), 64))
|
|
1632
1632
|
], 64))), 128)),
|
|
1633
|
-
(i(),
|
|
1634
|
-
key:
|
|
1633
|
+
(i(), u(E, null, Z(["l", "r"], (d) => f("span", {
|
|
1634
|
+
key: d,
|
|
1635
1635
|
class: "absolute bg-black h-8",
|
|
1636
|
-
style: q(
|
|
1637
|
-
"data-xine": x(k).point +
|
|
1636
|
+
style: q(c(d)),
|
|
1637
|
+
"data-xine": x(k).point + d
|
|
1638
1638
|
}, null, 12, fo)), 64)),
|
|
1639
1639
|
f("p", {
|
|
1640
1640
|
class: "absolute leading-none text-0",
|
|
1641
1641
|
style: q(l()),
|
|
1642
1642
|
"data-xine": x(k).page
|
|
1643
1643
|
}, [
|
|
1644
|
-
(i(!0),
|
|
1645
|
-
key:
|
|
1644
|
+
(i(!0), u(E, null, Z(o.currentPage + 1, (d, p) => (i(), u("span", {
|
|
1645
|
+
key: d,
|
|
1646
1646
|
class: "inline-block bg-black mx-2 page_item",
|
|
1647
1647
|
"data-xine": x(k).page_item + p
|
|
1648
1648
|
}, null, 8, bo))), 128))
|
|
1649
1649
|
], 12, go),
|
|
1650
|
-
o.currentPage % 2 ? M("", !0) : (i(),
|
|
1650
|
+
o.currentPage % 2 ? M("", !0) : (i(), u("span", {
|
|
1651
1651
|
key: 0,
|
|
1652
1652
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1653
1653
|
style: q({ right: `${o.padding.right - 12}px` })
|
|
1654
|
-
}, "提示:本卷" + J((
|
|
1654
|
+
}, "提示:本卷" + J((r = x(Oe).find((d) => d.code === o.layout.paper)) == null ? void 0 : r.name) + "纸张", 5)),
|
|
1655
1655
|
f("span", {
|
|
1656
1656
|
class: "absolute text-sm red_sheet",
|
|
1657
1657
|
style: q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
|
|
@@ -1662,8 +1662,8 @@ const rt = {
|
|
|
1662
1662
|
});
|
|
1663
1663
|
const de = (e, t) => {
|
|
1664
1664
|
const a = e.__vccOpts || e;
|
|
1665
|
-
for (const [l,
|
|
1666
|
-
a[l] =
|
|
1665
|
+
for (const [l, n] of t)
|
|
1666
|
+
a[l] = n;
|
|
1667
1667
|
return a;
|
|
1668
1668
|
}, wo = /* @__PURE__ */ de(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1669
1669
|
key: 0,
|
|
@@ -1683,38 +1683,38 @@ const de = (e, t) => {
|
|
|
1683
1683
|
},
|
|
1684
1684
|
emits: ["change", "input", "focus", "blur"],
|
|
1685
1685
|
setup(e, { emit: t }) {
|
|
1686
|
-
const a = e, l = Y(a.value),
|
|
1686
|
+
const a = e, l = Y(a.value), n = Y(!1);
|
|
1687
1687
|
Me(() => a.value, () => {
|
|
1688
1688
|
l.value = a.value;
|
|
1689
1689
|
});
|
|
1690
|
-
const
|
|
1691
|
-
l.value =
|
|
1692
|
-
}, o = (
|
|
1693
|
-
l.value =
|
|
1690
|
+
const c = (d) => {
|
|
1691
|
+
l.value = d.target.value, t("input", a.type === "number" ? parseFloat(l.value) : l.value);
|
|
1692
|
+
}, o = (d) => {
|
|
1693
|
+
l.value = d.target.value, t("change", a.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
|
|
1694
1694
|
l.value = a.value;
|
|
1695
1695
|
}, 400);
|
|
1696
|
-
},
|
|
1697
|
-
l.value =
|
|
1698
|
-
},
|
|
1699
|
-
t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value),
|
|
1696
|
+
}, s = (d) => {
|
|
1697
|
+
l.value = d.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value), n.value = !0;
|
|
1698
|
+
}, r = () => {
|
|
1699
|
+
t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value), n.value = !1;
|
|
1700
1700
|
};
|
|
1701
|
-
return (
|
|
1702
|
-
class: oe(["flex-1 flex items-center border rounded-lg",
|
|
1701
|
+
return (d, p) => (i(), u("div", {
|
|
1702
|
+
class: oe(["flex-1 flex items-center border rounded-lg", d.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", d.size === "small" && "p-1", d.size === "stand" && "p-2", d.size === "large" && "p-2"])
|
|
1703
1703
|
}, [
|
|
1704
1704
|
f("div", xo, [
|
|
1705
1705
|
f("input", {
|
|
1706
|
-
class: oe(["w-full",
|
|
1707
|
-
type:
|
|
1708
|
-
placeholder:
|
|
1709
|
-
maxlength:
|
|
1706
|
+
class: oe(["w-full", d.dir === "center" && "text-center", d.dir === "right" && "text-right"]),
|
|
1707
|
+
type: d.type,
|
|
1708
|
+
placeholder: d.placeholder,
|
|
1709
|
+
maxlength: d.maxLength,
|
|
1710
1710
|
value: l.value,
|
|
1711
|
-
onInput:
|
|
1711
|
+
onInput: c,
|
|
1712
1712
|
onChange: o,
|
|
1713
|
-
onFocus:
|
|
1714
|
-
onBlur:
|
|
1713
|
+
onFocus: s,
|
|
1714
|
+
onBlur: r
|
|
1715
1715
|
}, null, 42, ko)
|
|
1716
1716
|
]),
|
|
1717
|
-
|
|
1717
|
+
d.unit ? (i(), u("span", Co, J(d.unit), 1)) : M("", !0)
|
|
1718
1718
|
], 2));
|
|
1719
1719
|
}
|
|
1720
1720
|
}), $o = /* @__PURE__ */ ee({
|
|
@@ -1725,20 +1725,20 @@ const de = (e, t) => {
|
|
|
1725
1725
|
},
|
|
1726
1726
|
emits: ["change"],
|
|
1727
1727
|
setup(e, { emit: t }) {
|
|
1728
|
-
const a = e, l = N(() => ct[a.layout.mode][a.layout.paper]),
|
|
1728
|
+
const a = e, l = N(() => ct[a.layout.mode][a.layout.paper]), n = N(() => ({
|
|
1729
1729
|
right: `${l.value.right + 97}px`,
|
|
1730
1730
|
bottom: `${l.value.bottom - 25}px`
|
|
1731
1731
|
}));
|
|
1732
|
-
return (
|
|
1732
|
+
return (c, o) => (i(), j(et, {
|
|
1733
1733
|
class: "absolute w-72 text-sm",
|
|
1734
|
-
value:
|
|
1734
|
+
value: c.info.slogan,
|
|
1735
1735
|
maxLength: 12,
|
|
1736
1736
|
placeholder: "",
|
|
1737
1737
|
size: "small",
|
|
1738
1738
|
autoLine: "",
|
|
1739
1739
|
dir: "right",
|
|
1740
|
-
style: q(
|
|
1741
|
-
onChange: o[0] || (o[0] = (
|
|
1740
|
+
style: q(n.value),
|
|
1741
|
+
onChange: o[0] || (o[0] = (s) => t("change", { slogin: s }))
|
|
1742
1742
|
}, null, 8, ["value", "style"]));
|
|
1743
1743
|
}
|
|
1744
1744
|
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ ee({
|
|
@@ -1751,13 +1751,13 @@ const de = (e, t) => {
|
|
|
1751
1751
|
emits: ["click"],
|
|
1752
1752
|
setup(e, { emit: t }) {
|
|
1753
1753
|
const a = e, l = N(() => `#icon-${a.name}`);
|
|
1754
|
-
return (
|
|
1754
|
+
return (n, c) => (i(), u("span", {
|
|
1755
1755
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
1756
|
-
onClick:
|
|
1756
|
+
onClick: c[0] || (c[0] = (o) => t("click"))
|
|
1757
1757
|
}, [
|
|
1758
|
-
(i(),
|
|
1759
|
-
width:
|
|
1760
|
-
height: (
|
|
1758
|
+
(i(), u("svg", {
|
|
1759
|
+
width: n.width + "rem",
|
|
1760
|
+
height: (n.height || n.width) + "rem"
|
|
1761
1761
|
}, [
|
|
1762
1762
|
f("use", { "xlink:href": l.value }, null, 8, To)
|
|
1763
1763
|
], 8, So))
|
|
@@ -1774,8 +1774,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1774
1774
|
code: {}
|
|
1775
1775
|
},
|
|
1776
1776
|
setup(e) {
|
|
1777
|
-
return (t, a) => (i(),
|
|
1778
|
-
t.layout.secrecyFlag ? (i(),
|
|
1777
|
+
return (t, a) => (i(), u("div", Lo, [
|
|
1778
|
+
t.layout.secrecyFlag ? (i(), u("p", Fo, [
|
|
1779
1779
|
Ue("绝密"),
|
|
1780
1780
|
V(_e, {
|
|
1781
1781
|
name: "fiveArrow",
|
|
@@ -1796,11 +1796,11 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1796
1796
|
},
|
|
1797
1797
|
emits: ["change"],
|
|
1798
1798
|
setup(e, { emit: t }) {
|
|
1799
|
-
const a = e, l = (
|
|
1800
|
-
t("change",
|
|
1799
|
+
const a = e, l = (n) => {
|
|
1800
|
+
t("change", n.target.innerHTML, a.name);
|
|
1801
1801
|
};
|
|
1802
|
-
return (
|
|
1803
|
-
innerHTML:
|
|
1802
|
+
return (n, c) => (i(), u("div", {
|
|
1803
|
+
innerHTML: n.value,
|
|
1804
1804
|
contenteditable: "",
|
|
1805
1805
|
onBlur: l
|
|
1806
1806
|
}, null, 40, Do));
|
|
@@ -1820,7 +1820,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1820
1820
|
}, Qo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
|
|
1821
1821
|
key: 4,
|
|
1822
1822
|
class: "flex items-center mx-4"
|
|
1823
|
-
},
|
|
1823
|
+
}, Ko = /* @__PURE__ */ f("span", null, "总", -1), jo = { key: 1 }, Vo = { key: 3 }, Xo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ ee({
|
|
1824
1824
|
__name: "title",
|
|
1825
1825
|
props: {
|
|
1826
1826
|
info: {},
|
|
@@ -1830,8 +1830,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1830
1830
|
},
|
|
1831
1831
|
emits: ["change"],
|
|
1832
1832
|
setup(e, { emit: t }) {
|
|
1833
|
-
const a = e, l = N(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o,
|
|
1834
|
-
return (o,
|
|
1833
|
+
const a = e, l = N(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = N(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), c = N(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
1834
|
+
return (o, s) => (i(), u("div", Mo, [
|
|
1835
1835
|
f("img", {
|
|
1836
1836
|
src: o.info.qrCode,
|
|
1837
1837
|
alt: "QRCode",
|
|
@@ -1843,25 +1843,25 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1843
1843
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1844
1844
|
value: o.info.title,
|
|
1845
1845
|
style: q(o.fontConfig.titleStyle),
|
|
1846
|
-
onChange:
|
|
1846
|
+
onChange: s[0] || (s[0] = (r) => t("change", { title: r }))
|
|
1847
1847
|
}, null, 8, ["value", "style"]),
|
|
1848
|
-
o.layout.secTitleFlag ? (i(),
|
|
1848
|
+
o.layout.secTitleFlag ? (i(), j(Be, {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1851
1851
|
value: o.info.secTitle,
|
|
1852
1852
|
style: q(o.fontConfig.halfTitleStyle),
|
|
1853
|
-
onChange:
|
|
1853
|
+
onChange: s[1] || (s[1] = (r) => t("change", { secTitle: r }))
|
|
1854
1854
|
}, null, 8, ["value", "style"])) : M("", !0),
|
|
1855
1855
|
f("div", Bo, [
|
|
1856
|
-
o.layout.examExtentFlag ? (i(),
|
|
1856
|
+
o.layout.examExtentFlag ? (i(), u("p", Oo, [
|
|
1857
1857
|
zo,
|
|
1858
1858
|
V(Be, {
|
|
1859
1859
|
class: "flex-1",
|
|
1860
1860
|
value: o.info.extent,
|
|
1861
|
-
onChange:
|
|
1861
|
+
onChange: s[2] || (s[2] = (r) => t("change", { extent: r }))
|
|
1862
1862
|
}, null, 8, ["value"])
|
|
1863
1863
|
])) : M("", !0),
|
|
1864
|
-
o.layout.examTimeFlag ? (i(),
|
|
1864
|
+
o.layout.examTimeFlag ? (i(), u("p", Ho, [
|
|
1865
1865
|
Ro,
|
|
1866
1866
|
V(et, {
|
|
1867
1867
|
value: o.info.time,
|
|
@@ -1870,61 +1870,61 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1870
1870
|
autoLine: "",
|
|
1871
1871
|
size: "small",
|
|
1872
1872
|
placeholder: "",
|
|
1873
|
-
onChange:
|
|
1873
|
+
onChange: s[3] || (s[3] = (r) => t("change", { time: r }))
|
|
1874
1874
|
}, null, 8, ["value"]),
|
|
1875
1875
|
Wo
|
|
1876
1876
|
])) : M("", !0),
|
|
1877
|
-
o.layout.authorFlag ? (i(),
|
|
1877
|
+
o.layout.authorFlag ? (i(), u("p", Go, [
|
|
1878
1878
|
Yo,
|
|
1879
1879
|
V(Be, {
|
|
1880
1880
|
class: "flex-1",
|
|
1881
1881
|
value: o.info.author,
|
|
1882
|
-
onChange:
|
|
1882
|
+
onChange: s[4] || (s[4] = (r) => t("change", { author: r }))
|
|
1883
1883
|
}, null, 8, ["value"])
|
|
1884
1884
|
])) : M("", !0),
|
|
1885
|
-
o.layout.reviewerFlag ? (i(),
|
|
1885
|
+
o.layout.reviewerFlag ? (i(), u("p", qo, [
|
|
1886
1886
|
Qo,
|
|
1887
1887
|
V(Be, {
|
|
1888
1888
|
class: "flex-1",
|
|
1889
1889
|
value: o.info.reviewer,
|
|
1890
|
-
onChange:
|
|
1890
|
+
onChange: s[5] || (s[5] = (r) => t("change", { reviewer: r }))
|
|
1891
1891
|
}, null, 8, ["value"])
|
|
1892
1892
|
])) : M("", !0),
|
|
1893
|
-
o.layout.totalScoreFlag ? (i(),
|
|
1894
|
-
|
|
1895
|
-
|
|
1893
|
+
o.layout.totalScoreFlag ? (i(), u("p", Uo, [
|
|
1894
|
+
Ko,
|
|
1895
|
+
c.value ? (i(), j(_e, {
|
|
1896
1896
|
key: 0,
|
|
1897
|
-
name:
|
|
1897
|
+
name: c.value,
|
|
1898
1898
|
class: "p-0 -translate-y-[1px]"
|
|
1899
|
-
}, null, 8, ["name"])) : (i(),
|
|
1899
|
+
}, null, 8, ["name"])) : (i(), u("span", jo, "分")),
|
|
1900
1900
|
f("span", null, ":" + J(l.value + (o.layout.writeScoreFlag ? o.info.writeScore : 0)), 1),
|
|
1901
|
-
|
|
1901
|
+
c.value ? (i(), j(_e, {
|
|
1902
1902
|
key: 2,
|
|
1903
|
-
name:
|
|
1903
|
+
name: c.value,
|
|
1904
1904
|
class: "p-0 -translate-y-[1px]"
|
|
1905
|
-
}, null, 8, ["name"])) : (i(),
|
|
1906
|
-
o.layout.writeScoreFlag ? (i(),
|
|
1905
|
+
}, null, 8, ["name"])) : (i(), u("span", Vo, "分")),
|
|
1906
|
+
o.layout.writeScoreFlag ? (i(), u(E, { key: 4 }, [
|
|
1907
1907
|
f("span", null, "(试题" + J(l.value), 1),
|
|
1908
|
-
|
|
1908
|
+
c.value ? (i(), j(_e, {
|
|
1909
1909
|
key: 0,
|
|
1910
|
-
name:
|
|
1910
|
+
name: c.value,
|
|
1911
1911
|
class: "p-0 -translate-y-[1px]"
|
|
1912
|
-
}, null, 8, ["name"])) : (i(),
|
|
1912
|
+
}, null, 8, ["name"])) : (i(), u("span", Xo, "分")),
|
|
1913
1913
|
f("span", null, "+卷面" + J(o.info.writeScore || 0), 1),
|
|
1914
|
-
|
|
1914
|
+
c.value ? (i(), j(_e, {
|
|
1915
1915
|
key: 2,
|
|
1916
|
-
name:
|
|
1916
|
+
name: c.value,
|
|
1917
1917
|
class: "p-0 -translate-y-[1px]"
|
|
1918
|
-
}, null, 8, ["name"])) : (i(),
|
|
1918
|
+
}, null, 8, ["name"])) : (i(), u("span", Jo, "分")),
|
|
1919
1919
|
Zo
|
|
1920
1920
|
], 64)) : M("", !0),
|
|
1921
|
-
|
|
1922
|
-
f("span", null, ";附加题:" + J(
|
|
1923
|
-
|
|
1921
|
+
n.value ? (i(), u(E, { key: 5 }, [
|
|
1922
|
+
f("span", null, ";附加题:" + J(n.value), 1),
|
|
1923
|
+
c.value ? (i(), j(_e, {
|
|
1924
1924
|
key: 0,
|
|
1925
|
-
name:
|
|
1925
|
+
name: c.value,
|
|
1926
1926
|
class: "p-0 -translate-y-[1px]"
|
|
1927
|
-
}, null, 8, ["name"])) : (i(),
|
|
1927
|
+
}, null, 8, ["name"])) : (i(), u("span", ea, "分"))
|
|
1928
1928
|
], 64)) : M("", !0)
|
|
1929
1929
|
])) : M("", !0)
|
|
1930
1930
|
])
|
|
@@ -1939,17 +1939,17 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1939
1939
|
emits: ["change"],
|
|
1940
1940
|
setup(e, { emit: t }) {
|
|
1941
1941
|
const a = ["examNumField", "examRoomField", "seatField"];
|
|
1942
|
-
return (l,
|
|
1943
|
-
(i(),
|
|
1944
|
-
key:
|
|
1942
|
+
return (l, n) => (i(), u("ul", oa, [
|
|
1943
|
+
(i(), u(E, null, Z(a, (c) => f("li", {
|
|
1944
|
+
key: c,
|
|
1945
1945
|
class: "flex flex-1"
|
|
1946
1946
|
}, [
|
|
1947
1947
|
V(et, {
|
|
1948
|
-
value: l.extent[
|
|
1948
|
+
value: l.extent[c],
|
|
1949
1949
|
class: "px-0",
|
|
1950
1950
|
placeholder: "",
|
|
1951
1951
|
autoLine: "",
|
|
1952
|
-
onChange: (o) => t("change", { [
|
|
1952
|
+
onChange: (o) => t("change", { [c]: o })
|
|
1953
1953
|
}, null, 8, ["value", "onChange"])
|
|
1954
1954
|
])), 64))
|
|
1955
1955
|
]));
|
|
@@ -1957,7 +1957,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1957
1957
|
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */ ee({
|
|
1958
1958
|
__name: "examInfoSeat",
|
|
1959
1959
|
setup(e) {
|
|
1960
|
-
return (t, a) => (i(),
|
|
1960
|
+
return (t, a) => (i(), u("div", {
|
|
1961
1961
|
class: "flex-shrink-0 border ml-4 flex flex-col",
|
|
1962
1962
|
"data-xine": x(k).en_num_view
|
|
1963
1963
|
}, [
|
|
@@ -1972,16 +1972,16 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1972
1972
|
class: "flex-1 flex flex-col",
|
|
1973
1973
|
"data-xine": x(k).en_num
|
|
1974
1974
|
}, [
|
|
1975
|
-
(i(),
|
|
1975
|
+
(i(), u(E, null, Z(3, (l, n) => f("p", {
|
|
1976
1976
|
key: l,
|
|
1977
1977
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
1978
1978
|
"data-xine": x(k).en_num_group
|
|
1979
1979
|
}, [
|
|
1980
|
-
(i(),
|
|
1981
|
-
key:
|
|
1980
|
+
(i(), u(E, null, Z(10, (c) => f("span", {
|
|
1981
|
+
key: c,
|
|
1982
1982
|
class: "flex items-center justify-between flex-nowrap item",
|
|
1983
1983
|
"data-xine": x(k).en_num_item
|
|
1984
|
-
}, J(
|
|
1984
|
+
}, J(c - 1), 9, ia)), 64))
|
|
1985
1985
|
], 8, sa)), 64))
|
|
1986
1986
|
], 8, na)
|
|
1987
1987
|
], 8, aa));
|
|
@@ -1990,7 +1990,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1990
1990
|
const wt = /* @__PURE__ */ de(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__ */ ee({
|
|
1991
1991
|
__name: "examInfoShort",
|
|
1992
1992
|
setup(e) {
|
|
1993
|
-
return (t, a) => (i(),
|
|
1993
|
+
return (t, a) => (i(), u("div", {
|
|
1994
1994
|
class: "flex-shrink-0 border ml-4 flex",
|
|
1995
1995
|
"data-xine": x(k).en_num_view
|
|
1996
1996
|
}, [
|
|
@@ -2005,16 +2005,16 @@ const wt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
2005
2005
|
class: "flex-1 flex flex-col",
|
|
2006
2006
|
"data-xine": x(k).en_num
|
|
2007
2007
|
}, [
|
|
2008
|
-
(i(),
|
|
2008
|
+
(i(), u(E, null, Z(4, (l, n) => f("p", {
|
|
2009
2009
|
key: l,
|
|
2010
|
-
class: oe(["flex-1 flex items-center text-0 px-1",
|
|
2010
|
+
class: oe(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
|
|
2011
2011
|
"data-xine": x(k).en_num_group
|
|
2012
2012
|
}, [
|
|
2013
|
-
(i(),
|
|
2014
|
-
key:
|
|
2013
|
+
(i(), u(E, null, Z(10, (c) => f("span", {
|
|
2014
|
+
key: c,
|
|
2015
2015
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2016
2016
|
"data-xine": x(k).en_num_item
|
|
2017
|
-
}, J(
|
|
2017
|
+
}, J(c - 1), 9, pa)), 64))
|
|
2018
2018
|
], 10, ha)), 64))
|
|
2019
2019
|
], 8, ua)
|
|
2020
2020
|
], 8, ca));
|
|
@@ -2028,17 +2028,17 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2028
2028
|
emits: ["change"],
|
|
2029
2029
|
setup(e, { emit: t }) {
|
|
2030
2030
|
const a = ["nameField", "classField", "scoreField"];
|
|
2031
|
-
return (l,
|
|
2032
|
-
(i(),
|
|
2033
|
-
key:
|
|
2031
|
+
return (l, n) => (i(), u("ul", ya, [
|
|
2032
|
+
(i(), u(E, null, Z(a, (c) => f("li", {
|
|
2033
|
+
key: c,
|
|
2034
2034
|
class: "flex flex-1"
|
|
2035
2035
|
}, [
|
|
2036
2036
|
V(et, {
|
|
2037
|
-
value: l.extent[
|
|
2037
|
+
value: l.extent[c],
|
|
2038
2038
|
class: "px-0",
|
|
2039
2039
|
placeholder: "",
|
|
2040
2040
|
autoLine: "",
|
|
2041
|
-
onChange: (o) => t("change", { [
|
|
2041
|
+
onChange: (o) => t("change", { [c]: o })
|
|
2042
2042
|
}, null, 8, ["value", "onChange"])
|
|
2043
2043
|
])), 64))
|
|
2044
2044
|
]));
|
|
@@ -2058,24 +2058,24 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2058
2058
|
emits: ["change"],
|
|
2059
2059
|
setup(e, { emit: t }) {
|
|
2060
2060
|
const a = e, l = N(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
|
|
2061
|
-
return (
|
|
2062
|
-
l.value ? (i(),
|
|
2063
|
-
|
|
2061
|
+
return (n, c) => n.isBindFlag ? M("", !0) : (i(), u("div", ga, [
|
|
2062
|
+
l.value ? (i(), u(E, { key: 0 }, [
|
|
2063
|
+
n.layout.seatType === x(xe).none ? (i(), j(vt, {
|
|
2064
2064
|
key: 0,
|
|
2065
|
-
extent:
|
|
2066
|
-
onChange:
|
|
2067
|
-
}, null, 8, ["extent"])) :
|
|
2065
|
+
extent: n.info.extentInfo,
|
|
2066
|
+
onChange: c[0] || (c[0] = (o) => t("change", o))
|
|
2067
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(xt, { key: 2 })) : M("", !0)
|
|
2068
2068
|
], 64)) : M("", !0),
|
|
2069
2069
|
V(_a, {
|
|
2070
|
-
extent:
|
|
2071
|
-
onChange:
|
|
2070
|
+
extent: n.info.extentInfo,
|
|
2071
|
+
onChange: c[1] || (c[1] = (o) => t("change", o))
|
|
2072
2072
|
}, null, 8, ["extent"]),
|
|
2073
|
-
l.value ? M("", !0) : (i(),
|
|
2074
|
-
|
|
2073
|
+
l.value ? M("", !0) : (i(), u(E, { key: 1 }, [
|
|
2074
|
+
n.layout.seatType === x(xe).none ? (i(), j(vt, {
|
|
2075
2075
|
key: 0,
|
|
2076
|
-
extent:
|
|
2077
|
-
onChange:
|
|
2078
|
-
}, null, 8, ["extent"])) :
|
|
2076
|
+
extent: n.info.extentInfo,
|
|
2077
|
+
onChange: c[2] || (c[2] = (o) => t("change", o))
|
|
2078
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(xt, { key: 2 })) : M("", !0)
|
|
2079
2079
|
], 64)),
|
|
2080
2080
|
f("div", {
|
|
2081
2081
|
class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
|
|
@@ -2113,17 +2113,17 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2113
2113
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2114
2114
|
];
|
|
2115
2115
|
});
|
|
2116
|
-
return (l,
|
|
2117
|
-
l.layout.noteFlag ? (i(),
|
|
2116
|
+
return (l, n) => (i(), u(E, null, [
|
|
2117
|
+
l.layout.noteFlag ? (i(), u("div", Ca, [
|
|
2118
2118
|
$a,
|
|
2119
2119
|
f("div", Sa, [
|
|
2120
|
-
(i(!0),
|
|
2121
|
-
key:
|
|
2120
|
+
(i(!0), u(E, null, Z(a.value, (c) => (i(), u("p", {
|
|
2121
|
+
key: c,
|
|
2122
2122
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2123
|
-
}, J(
|
|
2123
|
+
}, J(c), 1))), 128))
|
|
2124
2124
|
])
|
|
2125
2125
|
])) : M("", !0),
|
|
2126
|
-
l.layout.lackFlag ? (i(),
|
|
2126
|
+
l.layout.lackFlag ? (i(), u("div", {
|
|
2127
2127
|
key: 1,
|
|
2128
2128
|
class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2129
2129
|
}, [
|
|
@@ -2144,19 +2144,19 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2144
2144
|
}
|
|
2145
2145
|
});
|
|
2146
2146
|
const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", a = !0, l = "children") => {
|
|
2147
|
-
let
|
|
2148
|
-
const
|
|
2149
|
-
(o[l] || []).length ? (a &&
|
|
2147
|
+
let n = [];
|
|
2148
|
+
const c = (o) => {
|
|
2149
|
+
(o[l] || []).length ? (a && n.push(t ? o[t] : o[l]), o[l].forEach((s) => c(s))) : n.push(t ? o[t] : o);
|
|
2150
2150
|
};
|
|
2151
|
-
return e.forEach((o) =>
|
|
2151
|
+
return e.forEach((o) => c(o)), n.flat(5);
|
|
2152
2152
|
};
|
|
2153
2153
|
function Mt(e) {
|
|
2154
2154
|
if (e < 0 || e > 99)
|
|
2155
2155
|
throw Error("下标超限");
|
|
2156
2156
|
const t = "零一二三四五六七八九".split("");
|
|
2157
|
-
return [...Array(100)].map((l,
|
|
2158
|
-
const
|
|
2159
|
-
return
|
|
2157
|
+
return [...Array(100)].map((l, n) => {
|
|
2158
|
+
const c = Math.floor(n / t.length), o = n % t.length;
|
|
2159
|
+
return c ? `${c > 1 ? t[c] : ""}十${o ? t[o] : ""}` : t[o];
|
|
2160
2160
|
})[e + 1];
|
|
2161
2161
|
}
|
|
2162
2162
|
function Ct(e) {
|
|
@@ -2179,10 +2179,10 @@ const za = {
|
|
|
2179
2179
|
},
|
|
2180
2180
|
setup(e) {
|
|
2181
2181
|
const t = e, a = N(() => t.data.filter((l) => l.problemType));
|
|
2182
|
-
return (l,
|
|
2182
|
+
return (l, n) => l.layout.scoreFlag ? (i(), u("ul", za, [
|
|
2183
2183
|
Ha,
|
|
2184
|
-
(i(!0),
|
|
2185
|
-
key:
|
|
2184
|
+
(i(!0), u(E, null, Z(a.value, (c, o) => (i(), u("li", {
|
|
2185
|
+
key: c.id,
|
|
2186
2186
|
class: "flex-1 flex flex-col border-l"
|
|
2187
2187
|
}, [
|
|
2188
2188
|
f("p", Ra, J(x(Mt)(o)), 1),
|
|
@@ -2200,14 +2200,14 @@ const za = {
|
|
|
2200
2200
|
styleInfo: {}
|
|
2201
2201
|
},
|
|
2202
2202
|
setup(e, { expose: t }) {
|
|
2203
|
-
const a = e, l = Y(),
|
|
2204
|
-
t({ col: l, colView:
|
|
2205
|
-
const
|
|
2206
|
-
const { top:
|
|
2203
|
+
const a = e, l = Y(), n = Y();
|
|
2204
|
+
t({ col: l, colView: n });
|
|
2205
|
+
const c = N(() => {
|
|
2206
|
+
const { top: r, width: d, height: p, left: A } = a.styleInfo;
|
|
2207
2207
|
return {
|
|
2208
|
-
top: `${parseFloat(
|
|
2208
|
+
top: `${parseFloat(r) - (a.currentColumn ? $e.top : 1)}px`,
|
|
2209
2209
|
left: `${parseFloat(A) - $e.left}px`,
|
|
2210
|
-
width: `${parseFloat(
|
|
2210
|
+
width: `${parseFloat(d) + $e.left + $e.right}px`,
|
|
2211
2211
|
height: `${parseFloat(p) + (a.currentColumn ? $e.top : 0) + $e.bottom}px`
|
|
2212
2212
|
};
|
|
2213
2213
|
}), o = N(() => ({
|
|
@@ -2215,12 +2215,12 @@ const za = {
|
|
|
2215
2215
|
top: `${$e.top - 1}px`,
|
|
2216
2216
|
bottom: `${$e.bottom - 1}px`,
|
|
2217
2217
|
right: `${$e.right - 1}px`
|
|
2218
|
-
})),
|
|
2219
|
-
return (
|
|
2220
|
-
|
|
2218
|
+
})), s = N(() => a.column < 3 || a.currentColumn % 3 === 1);
|
|
2219
|
+
return (r, d) => (i(), u(E, null, [
|
|
2220
|
+
r.showColBorder ? (i(), u("div", {
|
|
2221
2221
|
key: 0,
|
|
2222
|
-
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet",
|
|
2223
|
-
style: q(
|
|
2222
|
+
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
|
|
2223
|
+
style: q(c.value)
|
|
2224
2224
|
}, [
|
|
2225
2225
|
f("span", {
|
|
2226
2226
|
class: "absolute border border-black",
|
|
@@ -2230,23 +2230,23 @@ const za = {
|
|
|
2230
2230
|
f("div", {
|
|
2231
2231
|
class: "absolute overflow-hidden",
|
|
2232
2232
|
ref_key: "colView",
|
|
2233
|
-
ref:
|
|
2234
|
-
style: q(
|
|
2233
|
+
ref: n,
|
|
2234
|
+
style: q(r.styleInfo)
|
|
2235
2235
|
}, [
|
|
2236
2236
|
f("div", {
|
|
2237
2237
|
ref_key: "col",
|
|
2238
2238
|
ref: l,
|
|
2239
2239
|
class: "overflow-hidden __col__",
|
|
2240
|
-
style: q({ height:
|
|
2240
|
+
style: q({ height: r.styleInfo.contentHeight })
|
|
2241
2241
|
}, [
|
|
2242
|
-
it(
|
|
2242
|
+
it(r.$slots, "default", {}, void 0, !0)
|
|
2243
2243
|
], 4)
|
|
2244
2244
|
], 4)
|
|
2245
2245
|
], 64));
|
|
2246
2246
|
}
|
|
2247
2247
|
});
|
|
2248
|
-
const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)),
|
|
2249
|
-
|
|
2248
|
+
const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
|
|
2249
|
+
ja
|
|
2250
2250
|
], Xa = ["data-xine"], Ja = /* @__PURE__ */ ee({
|
|
2251
2251
|
__name: "bind",
|
|
2252
2252
|
props: {
|
|
@@ -2257,33 +2257,33 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
|
|
|
2257
2257
|
},
|
|
2258
2258
|
setup(e) {
|
|
2259
2259
|
const t = Y(), a = ["学校", "班级", "准考证号", "姓名"];
|
|
2260
|
-
return (l,
|
|
2260
|
+
return (l, n) => l.isBindFlag ? (i(), u("div", {
|
|
2261
2261
|
key: 0,
|
|
2262
2262
|
style: q({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
|
|
2263
2263
|
class: oe([l.currentPage % 2 && "right_view"]),
|
|
2264
2264
|
ref_key: "view",
|
|
2265
2265
|
ref: t
|
|
2266
2266
|
}, [
|
|
2267
|
-
l.currentPage % 2 ? (i(),
|
|
2267
|
+
l.currentPage % 2 ? (i(), u("div", {
|
|
2268
2268
|
key: 0,
|
|
2269
2269
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2270
2270
|
style: q({ width: `${l.height - 20}px`, height: `${l.width}px` })
|
|
2271
|
-
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(),
|
|
2271
|
+
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(), u("div", {
|
|
2272
2272
|
key: 1,
|
|
2273
2273
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2274
2274
|
style: q({ width: `${l.height - 20}px` })
|
|
2275
2275
|
}, [
|
|
2276
|
-
(i(),
|
|
2277
|
-
key:
|
|
2276
|
+
(i(), u(E, null, Z(a, (c) => f("p", {
|
|
2277
|
+
key: c,
|
|
2278
2278
|
class: "flex items-end flex-1 mr-4"
|
|
2279
2279
|
}, [
|
|
2280
|
-
f("span", null, J(
|
|
2280
|
+
f("span", null, J(c), 1),
|
|
2281
2281
|
Ua
|
|
2282
2282
|
])), 64)),
|
|
2283
2283
|
f("div", {
|
|
2284
2284
|
class: "flex items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2285
2285
|
"data-xine": x(k).en_code
|
|
2286
|
-
}, Va, 8,
|
|
2286
|
+
}, Va, 8, Ka),
|
|
2287
2287
|
f("span", {
|
|
2288
2288
|
"data-xine": x(k).bind_line
|
|
2289
2289
|
}, null, 8, Xa)
|
|
@@ -2299,10 +2299,10 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2299
2299
|
},
|
|
2300
2300
|
setup(e) {
|
|
2301
2301
|
const t = e, a = ["right", "half_right", "wrong"], l = N(() => {
|
|
2302
|
-
const
|
|
2303
|
-
return [
|
|
2302
|
+
const n = t.item.score;
|
|
2303
|
+
return [n, Math.round(n / 2 * 100) / 100, 0];
|
|
2304
2304
|
});
|
|
2305
|
-
return (
|
|
2305
|
+
return (n, c) => (i(), u("div", {
|
|
2306
2306
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2307
2307
|
"data-block": x(ke),
|
|
2308
2308
|
"data-xine": x(k).score
|
|
@@ -2311,15 +2311,15 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2311
2311
|
class: "flex h-full divide-x divide-solid",
|
|
2312
2312
|
"data-xine": x(k).score_base
|
|
2313
2313
|
}, [
|
|
2314
|
-
(i(!0),
|
|
2314
|
+
(i(!0), u(E, null, Z(l.value, (o, s) => (i(), u("li", {
|
|
2315
2315
|
class: "flex items-center justify-center relative score_line",
|
|
2316
|
-
style: q({ width: `${x(
|
|
2316
|
+
style: q({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
|
|
2317
2317
|
"data-xine": x(k).score_item
|
|
2318
2318
|
}, [
|
|
2319
2319
|
f("span", il, J(o), 1),
|
|
2320
2320
|
V(_e, {
|
|
2321
2321
|
class: "p-0",
|
|
2322
|
-
name: a[
|
|
2322
|
+
name: a[s]
|
|
2323
2323
|
}, null, 8, ["name"])
|
|
2324
2324
|
], 12, sl))), 256))
|
|
2325
2325
|
], 8, nl)
|
|
@@ -2333,30 +2333,30 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2333
2333
|
static: { type: Boolean }
|
|
2334
2334
|
},
|
|
2335
2335
|
setup(e) {
|
|
2336
|
-
const t = e, a = Y(), l = Y(!1),
|
|
2337
|
-
Me(() => [t.item.score], () =>
|
|
2338
|
-
|
|
2336
|
+
const t = e, a = Y(), l = Y(!1), n = Y(!1), c = Y(!1), o = Y([]), s = N(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2337
|
+
Me(() => [t.item.score], () => r()), Xe(() => {
|
|
2338
|
+
r();
|
|
2339
2339
|
});
|
|
2340
|
-
const
|
|
2340
|
+
const r = () => {
|
|
2341
2341
|
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
|
|
2342
2342
|
let p = [];
|
|
2343
|
-
if (t.item.scoreLineType ===
|
|
2343
|
+
if (t.item.scoreLineType === Ke.custom)
|
|
2344
2344
|
p = [[...t.item.customScore, 0]];
|
|
2345
2345
|
else if (t.item.scoreStep)
|
|
2346
2346
|
p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((A) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * A)).reverse());
|
|
2347
2347
|
else {
|
|
2348
|
-
const A = a.value.offsetWidth, h =
|
|
2349
|
-
l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((
|
|
2348
|
+
const A = a.value.offsetWidth, h = je[t.layout.scoreLineSize].value + 1;
|
|
2349
|
+
l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((T) => T && T * 10).reverse()), p.push([...Array(10).keys()].reverse()), c.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2350
2350
|
}
|
|
2351
|
-
t.item.hasHalfScore && p.push([0.5]), o.value = p,
|
|
2351
|
+
t.item.hasHalfScore && p.push([0.5]), o.value = p, n.value = !!p.flat().find((A) => `${A}`.length > 3);
|
|
2352
2352
|
});
|
|
2353
|
-
},
|
|
2354
|
-
return (p, A) => p.layout.handReadFlag ? (i(),
|
|
2355
|
-
p.layout.simpleScoreBarFlag && !p.static ? (i(),
|
|
2353
|
+
}, d = (p) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - p - 1] : [k.score_base, k.score_tenbit][o.value.length - p - 1];
|
|
2354
|
+
return (p, A) => p.layout.handReadFlag ? (i(), u(E, { key: 0 }, [
|
|
2355
|
+
p.layout.simpleScoreBarFlag && !p.static ? (i(), j(rl, {
|
|
2356
2356
|
key: 0,
|
|
2357
2357
|
item: p.item,
|
|
2358
2358
|
layout: p.layout
|
|
2359
|
-
}, null, 8, ["item", "layout"])) : (i(),
|
|
2359
|
+
}, null, 8, ["item", "layout"])) : (i(), u("div", {
|
|
2360
2360
|
key: 1,
|
|
2361
2361
|
ref_key: "view",
|
|
2362
2362
|
ref: a,
|
|
@@ -2364,23 +2364,23 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2364
2364
|
"data-block": x(ke),
|
|
2365
2365
|
"data-xine": x(k).score
|
|
2366
2366
|
}, [
|
|
2367
|
-
(i(!0),
|
|
2367
|
+
(i(!0), u(E, null, Z(o.value, (h, T) => (i(), u("ul", {
|
|
2368
2368
|
class: "flex divide-x divide-solid",
|
|
2369
|
-
"data-xine":
|
|
2369
|
+
"data-xine": d(T)
|
|
2370
2370
|
}, [
|
|
2371
|
-
(i(!0),
|
|
2371
|
+
(i(!0), u(E, null, Z(h, (Q) => (i(), u("li", {
|
|
2372
2372
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2373
|
-
style: q({ width: `${x(
|
|
2374
|
-
"data-xine":
|
|
2373
|
+
style: q({ width: `${x(je)[p.layout.scoreLineSize].value}px` }),
|
|
2374
|
+
"data-xine": Q.toString() ? x(k).score_item : ""
|
|
2375
2375
|
}, [
|
|
2376
2376
|
f("span", {
|
|
2377
|
-
class: oe(["whitespace-nowrap",
|
|
2378
|
-
}, J(p.layout.minusFlag &&
|
|
2379
|
-
|
|
2377
|
+
class: oe(["whitespace-nowrap", s.value && "origin-right", n.value && "scale-75"])
|
|
2378
|
+
}, J(p.layout.minusFlag && Q.toString().length && !s.value ? "-" : "") + J(Q), 3),
|
|
2379
|
+
s.value && Q.toString().length ? (i(), j(_e, {
|
|
2380
2380
|
key: 0,
|
|
2381
2381
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2382
2382
|
name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2383
|
-
width:
|
|
2383
|
+
width: n.value ? 0.9 : 1.2
|
|
2384
2384
|
}, null, 8, ["name", "width"])) : M("", !0)
|
|
2385
2385
|
], 12, ul))), 256))
|
|
2386
2386
|
], 8, dl))), 256))
|
|
@@ -2394,7 +2394,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2394
2394
|
layout: {}
|
|
2395
2395
|
},
|
|
2396
2396
|
setup(e) {
|
|
2397
|
-
return (t, a) => (i(),
|
|
2397
|
+
return (t, a) => (i(), u("div", {
|
|
2398
2398
|
class: "flex items-center mb-2",
|
|
2399
2399
|
"data-xine": x(k).write_view
|
|
2400
2400
|
}, [
|
|
@@ -2415,7 +2415,7 @@ const _l = /* @__PURE__ */ de(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2415
2415
|
},
|
|
2416
2416
|
setup(e) {
|
|
2417
2417
|
const t = e;
|
|
2418
|
-
return (a, l) => (i(),
|
|
2418
|
+
return (a, l) => (i(), u("div", {
|
|
2419
2419
|
innerHTML: t.data,
|
|
2420
2420
|
class: "base-problem-font problem-base"
|
|
2421
2421
|
}, null, 8, fl));
|
|
@@ -2427,7 +2427,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2427
2427
|
item: {}
|
|
2428
2428
|
},
|
|
2429
2429
|
setup(e) {
|
|
2430
|
-
return (t, a) => (i(),
|
|
2430
|
+
return (t, a) => (i(), u("div", {
|
|
2431
2431
|
class: "py-2 border border-dashed rounded-lg mx-1 my-2",
|
|
2432
2432
|
"data-tag": t.item.__tag__,
|
|
2433
2433
|
"data-block": x(ut)
|
|
@@ -2455,32 +2455,32 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2455
2455
|
},
|
|
2456
2456
|
emits: ["click", "dbclick"],
|
|
2457
2457
|
setup(e, { emit: t }) {
|
|
2458
|
-
const a = e, l = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((
|
|
2459
|
-
return (
|
|
2458
|
+
const a = e, l = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), n = N(() => [ve.another_choice].includes(a.item.problemType)), c = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = N(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((r) => r.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
|
|
2459
|
+
return (s, r) => s.item.problemType ? (i(), u("div", {
|
|
2460
2460
|
key: 1,
|
|
2461
|
-
class: oe(["flex items-baseline relative headline_item",
|
|
2462
|
-
onClick:
|
|
2463
|
-
"data-tag":
|
|
2461
|
+
class: oe(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view"]),
|
|
2462
|
+
onClick: r[2] || (r[2] = Le((d) => t("click", s.item), ["stop"])),
|
|
2463
|
+
"data-tag": s.item.__tag__,
|
|
2464
2464
|
"data-block": x(ke),
|
|
2465
|
-
onDblclick:
|
|
2465
|
+
onDblclick: r[3] || (r[3] = Le((d) => t("dbclick", s.item), ["stop"]))
|
|
2466
2466
|
}, [
|
|
2467
|
-
!
|
|
2467
|
+
!s.layout.listIndexFlag && s.item.sub ? (i(), u("span", kl, J(x(Mt)(s.item.sub - 1)) + "、", 1)) : M("", !0),
|
|
2468
2468
|
f("div", null, [
|
|
2469
2469
|
f("div", Cl, [
|
|
2470
|
-
f("span", null, J(
|
|
2471
|
-
|
|
2472
|
-
|
|
2470
|
+
f("span", null, J(s.item.name), 1),
|
|
2471
|
+
s.item.desc ? (i(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : M("", !0),
|
|
2472
|
+
s.layout.scoreTipFlag ? (i(), u("span", Sl, "(共" + J(c.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : M("", !0)
|
|
2473
2473
|
]),
|
|
2474
|
-
l.value ||
|
|
2475
|
-
l.value ? (i(),
|
|
2474
|
+
l.value || n.value ? (i(), u("div", Tl, [
|
|
2475
|
+
l.value ? (i(), u("p", Il, "请在以下" + J(s.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (i(), u("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2476
2476
|
f("p", {
|
|
2477
2477
|
class: "flex flex-wrap",
|
|
2478
2478
|
"data-block": x(ke),
|
|
2479
|
-
"data-xine": x(k).choice +
|
|
2479
|
+
"data-xine": x(k).choice + s.item.id
|
|
2480
2480
|
}, [
|
|
2481
2481
|
El,
|
|
2482
|
-
(i(!0),
|
|
2483
|
-
f("span", null, J(
|
|
2482
|
+
(i(!0), u(E, null, Z(o.value, (d, p) => (i(), u("span", Pl, [
|
|
2483
|
+
f("span", null, J(d), 1),
|
|
2484
2484
|
f("span", {
|
|
2485
2485
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2486
2486
|
"data-xine": x(k).fill
|
|
@@ -2489,12 +2489,12 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2489
2489
|
], 8, Fl)
|
|
2490
2490
|
])) : M("", !0)
|
|
2491
2491
|
])
|
|
2492
|
-
], 42, xl)) : (i(),
|
|
2492
|
+
], 42, xl)) : (i(), j(vl, {
|
|
2493
2493
|
key: 0,
|
|
2494
|
-
class: oe([
|
|
2495
|
-
item:
|
|
2496
|
-
onClick:
|
|
2497
|
-
onDblclick:
|
|
2494
|
+
class: oe([s.isActive && "border-current", s.isFirst && "mt-9"]),
|
|
2495
|
+
item: s.item,
|
|
2496
|
+
onClick: r[0] || (r[0] = Le((d) => t("click", s.item), ["stop"])),
|
|
2497
|
+
onDblclick: r[1] || (r[1] = Le((d) => t("dbclick", s.item), ["stop"]))
|
|
2498
2498
|
}, null, 8, ["class", "item"]));
|
|
2499
2499
|
}
|
|
2500
2500
|
});
|
|
@@ -2509,18 +2509,18 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2509
2509
|
layout: {}
|
|
2510
2510
|
},
|
|
2511
2511
|
setup(e) {
|
|
2512
|
-
return (t, a) => (i(),
|
|
2512
|
+
return (t, a) => (i(), u("div", {
|
|
2513
2513
|
class: "flex items-center red_sheet",
|
|
2514
2514
|
"data-block": x(ke)
|
|
2515
2515
|
}, [
|
|
2516
|
-
(i(!0),
|
|
2517
|
-
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[
|
|
2516
|
+
(i(!0), u(E, null, Z(t.item.optList, (l, n) => (i(), u("span", {
|
|
2517
|
+
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[n]) && "bg-success border-success"]),
|
|
2518
2518
|
style: q({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
|
|
2519
|
-
"data-xine": x(k).fill +
|
|
2519
|
+
"data-xine": x(k).fill + n
|
|
2520
2520
|
}, [
|
|
2521
2521
|
V(_e, {
|
|
2522
2522
|
width: 1,
|
|
2523
|
-
name: x(kt)[
|
|
2523
|
+
name: x(kt)[n]
|
|
2524
2524
|
}, null, 8, ["name"])
|
|
2525
2525
|
], 14, zl))), 256))
|
|
2526
2526
|
], 8, Ol));
|
|
@@ -2529,8 +2529,8 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2529
2529
|
function Wl(e, t) {
|
|
2530
2530
|
return null;
|
|
2531
2531
|
}
|
|
2532
|
-
const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"],
|
|
2533
|
-
|
|
2532
|
+
const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), jl = [
|
|
2533
|
+
Kl
|
|
2534
2534
|
], Vl = ["data-xine"], Xl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
|
|
2535
2535
|
Xl
|
|
2536
2536
|
], Zl = /* @__PURE__ */ ee({
|
|
@@ -2544,11 +2544,11 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2544
2544
|
width: `${Ie[t.layout.fillSize].value + 1}px`,
|
|
2545
2545
|
height: `${Ie[t.layout.fillSize].height + 1}px`
|
|
2546
2546
|
}));
|
|
2547
|
-
return (l,
|
|
2547
|
+
return (l, n) => (i(), u("div", {
|
|
2548
2548
|
class: "flex red_sheet",
|
|
2549
2549
|
"data-block": x(ke)
|
|
2550
2550
|
}, [
|
|
2551
|
-
l.item.style[x(y)[l.layout.mode].decide_a] === x(
|
|
2551
|
+
l.item.style[x(y)[l.layout.mode].decide_a] === x(F).decide_1 ? (i(), u(E, { key: 0 }, [
|
|
2552
2552
|
f("span", {
|
|
2553
2553
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2554
2554
|
style: q(a.value),
|
|
@@ -2569,12 +2569,12 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2569
2569
|
width: 1
|
|
2570
2570
|
})
|
|
2571
2571
|
], 14, Ql)
|
|
2572
|
-
], 64)) : (i(),
|
|
2572
|
+
], 64)) : (i(), u(E, { key: 1 }, [
|
|
2573
2573
|
f("span", {
|
|
2574
2574
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2575
2575
|
style: q(a.value),
|
|
2576
2576
|
"data-xine": x(k).fill + "0"
|
|
2577
|
-
},
|
|
2577
|
+
}, jl, 14, Ul),
|
|
2578
2578
|
f("span", {
|
|
2579
2579
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2580
2580
|
style: q(a.value),
|
|
@@ -2599,20 +2599,20 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2599
2599
|
},
|
|
2600
2600
|
setup(e) {
|
|
2601
2601
|
const t = e, a = N(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2602
|
-
return (l,
|
|
2602
|
+
return (l, n) => l.layout.handReadFlag ? (i(), u("div", {
|
|
2603
2603
|
key: 0,
|
|
2604
2604
|
class: "score_fill flex items-center",
|
|
2605
2605
|
"data-block": x(ke),
|
|
2606
2606
|
"data-xine": x(k).fill
|
|
2607
2607
|
}, [
|
|
2608
|
-
l.showScoreCn ? (i(),
|
|
2608
|
+
l.showScoreCn ? (i(), u("span", ln, [
|
|
2609
2609
|
f("span", null, J(l.layout.minusFlag && !a.value ? "-" : "") + J(l.item.score), 1),
|
|
2610
|
-
a.value ? (i(),
|
|
2610
|
+
a.value ? (i(), j(_e, {
|
|
2611
2611
|
key: 0,
|
|
2612
2612
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2613
2613
|
name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2614
2614
|
width: 1.2
|
|
2615
|
-
}, null, 8, ["name"])) : (i(),
|
|
2615
|
+
}, null, 8, ["name"])) : (i(), u("span", nn, "分"))
|
|
2616
2616
|
])) : M("", !0)
|
|
2617
2617
|
], 8, an)) : M("", !0);
|
|
2618
2618
|
}
|
|
@@ -2624,13 +2624,13 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2624
2624
|
},
|
|
2625
2625
|
setup(e) {
|
|
2626
2626
|
const t = e;
|
|
2627
|
-
return (a, l) => (i(),
|
|
2627
|
+
return (a, l) => (i(), u(E, null, [
|
|
2628
2628
|
f("div", {
|
|
2629
2629
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2630
2630
|
style: q({ height: `${20 + a.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
2631
2631
|
"data-xine": x(k).fill_line
|
|
2632
2632
|
}, null, 12, rn),
|
|
2633
|
-
a.layout.handReadFlag ? (i(),
|
|
2633
|
+
a.layout.handReadFlag ? (i(), j(sn, {
|
|
2634
2634
|
key: 0,
|
|
2635
2635
|
item: a.item,
|
|
2636
2636
|
layout: a.layout,
|
|
@@ -2650,10 +2650,10 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2650
2650
|
isFirst: { type: Boolean }
|
|
2651
2651
|
},
|
|
2652
2652
|
setup(e) {
|
|
2653
|
-
return (t, a) => (i(),
|
|
2653
|
+
return (t, a) => (i(), u("div", {
|
|
2654
2654
|
class: oe(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
|
|
2655
2655
|
}, [
|
|
2656
|
-
t.item.chunk ? M("", !0) : (i(),
|
|
2656
|
+
t.item.chunk ? M("", !0) : (i(), u("div", {
|
|
2657
2657
|
key: 0,
|
|
2658
2658
|
class: "flex items-center",
|
|
2659
2659
|
"data-block": x(ke)
|
|
@@ -2683,7 +2683,7 @@ const gn = /* @__PURE__ */ de(_n, [["render", fn]]), bn = /* @__PURE__ */ f("div
|
|
|
2683
2683
|
layout: {}
|
|
2684
2684
|
},
|
|
2685
2685
|
setup(e) {
|
|
2686
|
-
return (t, a) => (i(),
|
|
2686
|
+
return (t, a) => (i(), u(E, null, [
|
|
2687
2687
|
bn,
|
|
2688
2688
|
V(tt, {
|
|
2689
2689
|
item: t.item,
|
|
@@ -2718,36 +2718,36 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2718
2718
|
layout: {}
|
|
2719
2719
|
},
|
|
2720
2720
|
setup(e) {
|
|
2721
|
-
const t = e, a = Y(0), l = Y({}),
|
|
2721
|
+
const t = e, a = Y(0), l = Y({}), n = Y(), c = Y(), o = Y([]), s = N(() => {
|
|
2722
2722
|
const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
|
|
2723
2723
|
return h ? Math.ceil(h / (a.value || h)) : 0;
|
|
2724
|
-
}),
|
|
2725
|
-
width: `${a.value *
|
|
2726
|
-
height: `${
|
|
2724
|
+
}), r = N(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = N(() => ({
|
|
2725
|
+
width: `${a.value * r.value}px`,
|
|
2726
|
+
height: `${r.value}px`
|
|
2727
2727
|
})), p = N(() => ({
|
|
2728
|
-
width: `${
|
|
2728
|
+
width: `${r.value}px`
|
|
2729
2729
|
})), A = N(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
2730
2730
|
return Xe(() => {
|
|
2731
2731
|
Je(() => {
|
|
2732
|
-
a.value = Math.floor(
|
|
2733
|
-
if (!
|
|
2732
|
+
a.value = Math.floor(n.value.offsetWidth / r.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
2733
|
+
if (!n.value)
|
|
2734
2734
|
return;
|
|
2735
|
-
const
|
|
2735
|
+
const I = n.value.getBoundingClientRect(), H = c.value[0].getBoundingClientRect();
|
|
2736
2736
|
l.value = {
|
|
2737
|
-
left: `${
|
|
2738
|
-
top: `${
|
|
2737
|
+
left: `${H.left - I.left}px`,
|
|
2738
|
+
top: `${H.top - I.top}px`
|
|
2739
2739
|
};
|
|
2740
2740
|
}, 20);
|
|
2741
2741
|
});
|
|
2742
|
-
const h = parseInt(t.item.style[y[t.layout.mode].art_c]),
|
|
2743
|
-
o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1,
|
|
2744
|
-
}), (h,
|
|
2742
|
+
const h = parseInt(t.item.style[y[t.layout.mode].art_c]), T = t.item.style[y[t.layout.mode].art_e], Q = Math.floor(h / T), G = Math.round(Q / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * T;
|
|
2743
|
+
o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Q) - 1 || 0).keys()].map((I) => (I + 1) * G).concat(h / T < 2 ? T : h).filter((I) => I);
|
|
2744
|
+
}), (h, T) => (i(), u("div", {
|
|
2745
2745
|
class: "w-full relative min-h-[10rem]",
|
|
2746
2746
|
ref_key: "view",
|
|
2747
|
-
ref:
|
|
2747
|
+
ref: n,
|
|
2748
2748
|
"data-viewid": h.item.id
|
|
2749
2749
|
}, [
|
|
2750
|
-
h.item.chunk ? M("", !0) : (i(),
|
|
2750
|
+
h.item.chunk ? M("", !0) : (i(), u("div", {
|
|
2751
2751
|
key: 0,
|
|
2752
2752
|
class: "flex items-center mt-1 mb-4",
|
|
2753
2753
|
"data-block": x(ke)
|
|
@@ -2760,42 +2760,42 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2760
2760
|
}, null, 8, ["item", "layout"])
|
|
2761
2761
|
])
|
|
2762
2762
|
], 8, Bn)),
|
|
2763
|
-
h.item.beforeArt && !h.item.startAnswerLen ? (i(),
|
|
2763
|
+
h.item.beforeArt && !h.item.startAnswerLen ? (i(), j(Ae, {
|
|
2764
2764
|
key: 1,
|
|
2765
2765
|
data: h.item.beforeArt,
|
|
2766
2766
|
"data-bart": h.item.id,
|
|
2767
2767
|
class: "indent-[2em]"
|
|
2768
2768
|
}, null, 8, ["data", "data-bart"])) : M("", !0),
|
|
2769
|
-
h.item.beforeGuide && !h.item.artBlock ? (i(),
|
|
2769
|
+
h.item.beforeGuide && !h.item.artBlock ? (i(), u("p", {
|
|
2770
2770
|
key: 2,
|
|
2771
2771
|
"data-block": x(Ee),
|
|
2772
2772
|
"data-guide": h.item.id,
|
|
2773
2773
|
class: oe(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
|
|
2774
|
-
style: q({ ...l.value, width:
|
|
2774
|
+
style: q({ ...l.value, width: d.value.width, lineHeight: `${r.value + 7}px` })
|
|
2775
2775
|
}, J(h.item.beforeGuide), 15, zn)) : M("", !0),
|
|
2776
|
-
(i(!0),
|
|
2776
|
+
(i(!0), u(E, null, Z(s.value, (Q, G) => (i(), u("p", {
|
|
2777
2777
|
ref_for: !0,
|
|
2778
2778
|
ref_key: "line",
|
|
2779
|
-
ref:
|
|
2779
|
+
ref: c,
|
|
2780
2780
|
class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
|
|
2781
2781
|
"data-block": x(ke),
|
|
2782
2782
|
"data-size": h.item.startAnswerLen + (G + 1) * a.value,
|
|
2783
|
-
style: q(
|
|
2783
|
+
style: q(d.value)
|
|
2784
2784
|
}, [
|
|
2785
|
-
h.item.artBlock ? (i(!0),
|
|
2786
|
-
class: oe([A.value[G * a.value +
|
|
2785
|
+
h.item.artBlock ? (i(!0), u(E, { key: 0 }, Z(a.value, (I, H) => (i(), u("span", {
|
|
2786
|
+
class: oe([A.value[G * a.value + H] && "flex items-center justify-center"]),
|
|
2787
2787
|
style: q(p.value)
|
|
2788
|
-
}, J(A.value[G * a.value +
|
|
2789
|
-
(i(!0),
|
|
2790
|
-
h.item.startAnswerLen + G * a.value <
|
|
2788
|
+
}, J(A.value[G * a.value + H]), 7))), 256)) : M("", !0),
|
|
2789
|
+
(i(!0), u(E, null, Z(o.value, (I) => (i(), u(E, null, [
|
|
2790
|
+
h.item.startAnswerLen + G * a.value < I && h.item.startAnswerLen + (G + 1) * a.value >= I ? (i(), u("span", {
|
|
2791
2791
|
key: 0,
|
|
2792
2792
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2793
|
-
style: q({ left: `${(
|
|
2793
|
+
style: q({ left: `${(I - h.item.startAnswerLen) % a.value * r.value}px` }),
|
|
2794
2794
|
"data-block": x(Ee)
|
|
2795
|
-
}, J(
|
|
2795
|
+
}, J(I), 13, Rn)) : M("", !0)
|
|
2796
2796
|
], 64))), 256))
|
|
2797
2797
|
], 14, Hn))), 256)),
|
|
2798
|
-
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(),
|
|
2798
|
+
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(), j(Ae, {
|
|
2799
2799
|
key: 3,
|
|
2800
2800
|
data: h.item.afterArt,
|
|
2801
2801
|
"data-aart": h.item.id,
|
|
@@ -2811,7 +2811,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2811
2811
|
},
|
|
2812
2812
|
emits: ["change"],
|
|
2813
2813
|
setup(e, { emit: t }) {
|
|
2814
|
-
return (a, l) => (i(),
|
|
2814
|
+
return (a, l) => (i(), u("div", {
|
|
2815
2815
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
2816
2816
|
"data-block": x(ut)
|
|
2817
2817
|
}, [
|
|
@@ -2821,7 +2821,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2821
2821
|
}, null, 8, ["data-content", "data"])
|
|
2822
2822
|
], 8, Gn));
|
|
2823
2823
|
}
|
|
2824
|
-
}), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 },
|
|
2824
|
+
}), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, Kn = { key: 2 }, jn = {
|
|
2825
2825
|
key: 3,
|
|
2826
2826
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
2827
2827
|
}, Vn = /* @__PURE__ */ ee({
|
|
@@ -2832,17 +2832,17 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2832
2832
|
width: {}
|
|
2833
2833
|
},
|
|
2834
2834
|
setup(e) {
|
|
2835
|
-
const t = e, a = N(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((
|
|
2836
|
-
return (
|
|
2837
|
-
class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]",
|
|
2835
|
+
const t = e, a = N(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((c) => c.split(".")).map((c) => t.isFull ? c : c.map((o, s) => s === c.length - 1 ? o : ""))), l = N(() => t.width ? `${t.width}em` : "");
|
|
2836
|
+
return (n, c) => (i(), u("span", {
|
|
2837
|
+
class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
|
|
2838
2838
|
style: q({ width: l.value }),
|
|
2839
2839
|
"data-block": x(Ee)
|
|
2840
2840
|
}, [
|
|
2841
|
-
(i(!0),
|
|
2842
|
-
|
|
2843
|
-
o[0] ? (i(),
|
|
2844
|
-
o[1] ? (i(),
|
|
2845
|
-
o[2] ? (i(),
|
|
2841
|
+
(i(!0), u(E, null, Z(a.value, (o, s) => (i(), u(E, null, [
|
|
2842
|
+
s ? (i(), u("span", Qn, " - ")) : M("", !0),
|
|
2843
|
+
o[0] ? (i(), u("span", Un, J(o[0]), 1)) : M("", !0),
|
|
2844
|
+
o[1] ? (i(), u("span", Kn, "(" + J(o[1]) + ")", 1)) : M("", !0),
|
|
2845
|
+
o[2] ? (i(), u("span", jn, J(o[2]), 1)) : M("", !0)
|
|
2846
2846
|
], 64))), 256))
|
|
2847
2847
|
], 14, qn));
|
|
2848
2848
|
}
|
|
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2894
2894
|
dbclick: null
|
|
2895
2895
|
},
|
|
2896
2896
|
setup(e, { emit: t }) {
|
|
2897
|
-
const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et),
|
|
2897
|
+
const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), c = N(() => {
|
|
2898
2898
|
const _ = a ? {
|
|
2899
2899
|
choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
2900
2900
|
fillSheet: [m.fill, m.fill_english]
|
|
@@ -2902,50 +2902,50 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2902
2902
|
choice: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
2903
2903
|
fill: [m.fill, m.fill_english]
|
|
2904
2904
|
};
|
|
2905
|
-
return Object.keys(m).reduce((C,
|
|
2906
|
-
}), o = N(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)),
|
|
2905
|
+
return Object.keys(m).reduce((C, w) => ({ ...C, [m[w]]: Object.keys(_).find((R) => _[R].includes(m[w])) || `${w}${a}` }), {});
|
|
2906
|
+
}), o = N(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), s = N(() => {
|
|
2907
2907
|
let _ = [];
|
|
2908
2908
|
return e.data.children.forEach((C) => {
|
|
2909
|
-
let
|
|
2910
|
-
(C.polymerId || l.includes(e.data.problemType)) && l.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !==
|
|
2909
|
+
let w = _[_.length - 1];
|
|
2910
|
+
(C.polymerId || l.includes(e.data.problemType)) && l.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !== F.choice_1 || C.style[y[e.layout.mode].choice_b] === F.portrait) ? (!w || w.type !== "polymer" || w.polymerId !== C.polymerId) && (_.push({
|
|
2911
2911
|
type: "polymer",
|
|
2912
2912
|
problemType: C.problemType,
|
|
2913
2913
|
polymerId: C.polymerId,
|
|
2914
2914
|
styleInfo: C.polymerId ? C.style : e.data.style,
|
|
2915
2915
|
children: [],
|
|
2916
2916
|
rawChildren: e.data.rawChildren || []
|
|
2917
|
-
}),
|
|
2917
|
+
}), w = _[_.length - 1]) : (!w || w.type !== "base") && (_.push({
|
|
2918
2918
|
type: "base",
|
|
2919
2919
|
children: []
|
|
2920
|
-
}),
|
|
2920
|
+
}), w = _[_.length - 1]), w.children.push(C);
|
|
2921
2921
|
}), _ = _.map((C) => {
|
|
2922
|
-
var
|
|
2923
|
-
if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] ===
|
|
2924
|
-
const
|
|
2925
|
-
if (C.children.length >
|
|
2922
|
+
var w;
|
|
2923
|
+
if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === F.choice_3) {
|
|
2924
|
+
const R = Math.floor(e.width / (Math.max(...C.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
|
|
2925
|
+
if (C.children.length > R * 5) {
|
|
2926
2926
|
const B = C.children.length % 4 > 4 ? 5 : 4;
|
|
2927
|
-
return [...Array(Math.ceil(C.children.length / (
|
|
2927
|
+
return [...Array(Math.ceil(C.children.length / (R * B))).keys()].map((ye, pe) => ({
|
|
2928
2928
|
...C,
|
|
2929
2929
|
groupIndex: pe,
|
|
2930
|
-
children: C.children.slice(pe *
|
|
2930
|
+
children: C.children.slice(pe * R * B, (pe + 1) * R * B)
|
|
2931
2931
|
}));
|
|
2932
2932
|
} else
|
|
2933
2933
|
return C;
|
|
2934
2934
|
} else
|
|
2935
2935
|
return C;
|
|
2936
2936
|
}).flat(), _;
|
|
2937
|
-
}),
|
|
2937
|
+
}), r = N(() => {
|
|
2938
2938
|
let _ = {};
|
|
2939
2939
|
return e.data.children.forEach((C) => {
|
|
2940
2940
|
C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
|
|
2941
2941
|
}), _;
|
|
2942
|
-
}),
|
|
2942
|
+
}), d = N(() => {
|
|
2943
2943
|
if (l.includes(e.data.problemType)) {
|
|
2944
2944
|
const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
|
|
2945
2945
|
return { [`h${e.data.id}`]: Math.max(..._) };
|
|
2946
2946
|
} else
|
|
2947
|
-
return Object.keys(
|
|
2948
|
-
const C = (e.data.rawChildren || e.data.children).filter((
|
|
2947
|
+
return Object.keys(r.value).map((_) => {
|
|
2948
|
+
const C = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId === _).map((w) => w.subStr.length);
|
|
2949
2949
|
return {
|
|
2950
2950
|
[_]: Math.max(...C)
|
|
2951
2951
|
};
|
|
@@ -2953,39 +2953,39 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2953
2953
|
});
|
|
2954
2954
|
return {
|
|
2955
2955
|
Gps_cls: k,
|
|
2956
|
-
hoverActive:
|
|
2956
|
+
hoverActive: n,
|
|
2957
2957
|
ModuleTag: a,
|
|
2958
2958
|
ChoiceType: o,
|
|
2959
|
-
GroupData:
|
|
2960
|
-
PolymerData:
|
|
2961
|
-
SubWidthInfo:
|
|
2962
|
-
ComputName: (_) => _.problemType ?
|
|
2959
|
+
GroupData: s,
|
|
2960
|
+
PolymerData: r,
|
|
2961
|
+
SubWidthInfo: d,
|
|
2962
|
+
ComputName: (_) => _.problemType ? c.value[_.problemType] : "notArea",
|
|
2963
2963
|
ComputAbs: (_) => a && [m.slove, m.art].includes(_.problemType),
|
|
2964
|
-
ComputPolymerCls: (_) => [m.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] ===
|
|
2964
|
+
ComputPolymerCls: (_) => [m.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === F.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
|
|
2965
2965
|
ComputPolymerStyle: (_) => {
|
|
2966
2966
|
var pe, ie;
|
|
2967
2967
|
let C = {};
|
|
2968
|
-
const
|
|
2968
|
+
const w = Math.max(...(_.rawChildren || _.children).map((fe) => {
|
|
2969
2969
|
var ue;
|
|
2970
2970
|
return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
|
|
2971
|
-
})) * (Ie[e.layout.fillSize].value + 9) + (
|
|
2971
|
+
})) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((fe) => {
|
|
2972
2972
|
var ue;
|
|
2973
2973
|
return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
|
|
2974
|
-
})) * (Ie[e.layout.fillSize].value + 9) + (
|
|
2974
|
+
})) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * B) / (B - 1) - 10;
|
|
2975
2975
|
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2976
|
-
case
|
|
2977
|
-
_.styleInfo[y[e.layout.mode].choice_b] ===
|
|
2976
|
+
case F.choice_1:
|
|
2977
|
+
_.styleInfo[y[e.layout.mode].choice_b] === F.portrait && (C = {
|
|
2978
2978
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2979
2979
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2980
2980
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
|
|
2981
2981
|
"column-gap": `${ye}px`
|
|
2982
2982
|
});
|
|
2983
2983
|
break;
|
|
2984
|
-
case
|
|
2984
|
+
case F.choice_3:
|
|
2985
2985
|
C = {
|
|
2986
2986
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2987
2987
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
|
|
2988
|
-
}, _.styleInfo[y[e.layout.mode].choice_b] ===
|
|
2988
|
+
}, _.styleInfo[y[e.layout.mode].choice_b] === F.portrait && (C = {
|
|
2989
2989
|
...C,
|
|
2990
2990
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2991
2991
|
"column-gap": `${ye}px`
|
|
@@ -2995,9 +2995,9 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
2995
2995
|
return C;
|
|
2996
2996
|
},
|
|
2997
2997
|
ComputPolymerItemStyle: (_, C) => {
|
|
2998
|
-
var
|
|
2999
|
-
if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] ===
|
|
3000
|
-
const
|
|
2998
|
+
var w;
|
|
2999
|
+
if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === F.choice_2) {
|
|
3000
|
+
const R = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.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)), ye = (e.width - R * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
|
|
3001
3001
|
if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
|
|
3002
3002
|
return {
|
|
3003
3003
|
"margin-right": `${ye}px`
|
|
@@ -3006,29 +3006,29 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
3006
3006
|
return {};
|
|
3007
3007
|
},
|
|
3008
3008
|
ComputStyle: (_, C) => {
|
|
3009
|
-
var
|
|
3010
|
-
let
|
|
3009
|
+
var R;
|
|
3010
|
+
let w = {};
|
|
3011
3011
|
if (!a)
|
|
3012
|
-
return
|
|
3012
|
+
return w;
|
|
3013
3013
|
if (l.includes(_.problemType)) {
|
|
3014
3014
|
let B = {};
|
|
3015
3015
|
if (Object.values(rt).includes(e.data.problemType)) {
|
|
3016
|
-
const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (
|
|
3016
|
+
const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, pe = Math.min(Math.floor(e.width / ye), e.data.style[y[e.layout.mode].choice_d] || 10);
|
|
3017
3017
|
B = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
|
|
3018
3018
|
}
|
|
3019
|
-
|
|
3020
|
-
...
|
|
3019
|
+
w = {
|
|
3020
|
+
...w,
|
|
3021
3021
|
display: "inline-flex",
|
|
3022
3022
|
...B
|
|
3023
3023
|
};
|
|
3024
3024
|
} else
|
|
3025
|
-
[m.fill, m.fill_english].includes(_.problemType) && (
|
|
3026
|
-
display: _.style[y[e.layout.mode].fill_c] ===
|
|
3025
|
+
[m.fill, m.fill_english].includes(_.problemType) && (w = {
|
|
3026
|
+
display: _.style[y[e.layout.mode].fill_c] === F.fill_1 && typeof _.order != "number" ? "flex" : "inline-flex",
|
|
3027
3027
|
alignItems: "flex-end",
|
|
3028
3028
|
width: `calc(${100 / _.style[y[e.layout.mode].fill_d][_.order || 0]}% - 6px)`
|
|
3029
3029
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3030
3030
|
});
|
|
3031
|
-
return
|
|
3031
|
+
return w;
|
|
3032
3032
|
},
|
|
3033
3033
|
ComputBlock: (_) => {
|
|
3034
3034
|
const C = [...l, m.fill, m.fill_english];
|
|
@@ -3044,10 +3044,10 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
3044
3044
|
}
|
|
3045
3045
|
},
|
|
3046
3046
|
handleHoverIn: (_) => {
|
|
3047
|
-
|
|
3047
|
+
n.value = _.rootProblemId;
|
|
3048
3048
|
},
|
|
3049
3049
|
handleHoverOut: (_) => {
|
|
3050
|
-
|
|
3050
|
+
n.value = "";
|
|
3051
3051
|
},
|
|
3052
3052
|
handleClick: (_, C) => {
|
|
3053
3053
|
e.data.isPolymer || (_.stopPropagation(), t("click", C));
|
|
@@ -3058,68 +3058,68 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
|
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
3060
|
}, Jn = ["data-block"], Zn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], es = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ts = { key: 0 };
|
|
3061
|
-
function os(e, t, a, l,
|
|
3061
|
+
function os(e, t, a, l, n, c) {
|
|
3062
3062
|
const o = Rt("Sub");
|
|
3063
|
-
return i(!0),
|
|
3064
|
-
|
|
3063
|
+
return i(!0), u(E, null, Z(l.GroupData, (s) => (i(), u(E, null, [
|
|
3064
|
+
s.type === "polymer" ? (i(), u("div", {
|
|
3065
3065
|
key: 0,
|
|
3066
|
-
"data-block": l.ComputBlock(
|
|
3067
|
-
class: oe([...l.ComputPolymerCls(
|
|
3068
|
-
style: q(l.ComputPolymerStyle(
|
|
3066
|
+
"data-block": l.ComputBlock(s),
|
|
3067
|
+
class: oe([...l.ComputPolymerCls(s)]),
|
|
3068
|
+
style: q(l.ComputPolymerStyle(s))
|
|
3069
3069
|
}, [
|
|
3070
|
-
(i(!0),
|
|
3070
|
+
(i(!0), u(E, null, Z(s.children, (r, d) => {
|
|
3071
3071
|
var p;
|
|
3072
|
-
return i(),
|
|
3073
|
-
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive ===
|
|
3074
|
-
style: q(l.ComputPolymerItemStyle(
|
|
3075
|
-
"data-tag":
|
|
3076
|
-
"data-block": l.ComputBlock(
|
|
3077
|
-
"data-xine": l.Gps_cls.item +
|
|
3078
|
-
onMouseenter: (A) => l.handleHoverIn(
|
|
3079
|
-
onMouseleave: (A) => l.handleHoverOut(
|
|
3072
|
+
return i(), u("div", {
|
|
3073
|
+
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3074
|
+
style: q(l.ComputPolymerItemStyle(r, d)),
|
|
3075
|
+
"data-tag": r.__tag__,
|
|
3076
|
+
"data-block": l.ComputBlock(r),
|
|
3077
|
+
"data-xine": l.Gps_cls.item + r._sub,
|
|
3078
|
+
onMouseenter: (A) => l.handleHoverIn(r),
|
|
3079
|
+
onMouseleave: (A) => l.handleHoverOut(r)
|
|
3080
3080
|
}, [
|
|
3081
|
-
|
|
3081
|
+
r.problemType ? (i(), j(o, {
|
|
3082
3082
|
key: 0,
|
|
3083
|
-
sub:
|
|
3083
|
+
sub: r.sub,
|
|
3084
3084
|
isFull: !!l.ModuleTag,
|
|
3085
|
-
width: l.SubWidthInfo[`h${
|
|
3086
|
-
class: oe(["sub_item", l.ComputAbs(
|
|
3085
|
+
width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0,
|
|
3086
|
+
class: oe(["sub_item", l.ComputAbs(r) && "absolute left-0 top-3 left_sub"])
|
|
3087
3087
|
}, null, 8, ["sub", "isFull", "width", "class"])) : M("", !0),
|
|
3088
|
-
(i(),
|
|
3088
|
+
(i(), j(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), null, 16))
|
|
3089
3089
|
], 46, Zn);
|
|
3090
3090
|
}), 256))
|
|
3091
|
-
], 14, Jn)) : (i(!0),
|
|
3091
|
+
], 14, Jn)) : (i(!0), u(E, { key: 1 }, Z(s.children, (r, d) => {
|
|
3092
3092
|
var p;
|
|
3093
|
-
return i(),
|
|
3093
|
+
return i(), u(E, null, [
|
|
3094
3094
|
f("div", {
|
|
3095
|
-
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive ===
|
|
3096
|
-
style: q(l.ComputStyle(
|
|
3097
|
-
"data-tag":
|
|
3098
|
-
"data-block": l.ComputBlock(
|
|
3099
|
-
"data-xine": l.Gps_cls.item +
|
|
3100
|
-
onClick: (A) => l.handleClick(A,
|
|
3101
|
-
onDblclick: (A) => l.handleDblClick(A,
|
|
3102
|
-
onMouseenter: (A) => l.handleHoverIn(
|
|
3103
|
-
onMouseleave: (A) => l.handleHoverOut(
|
|
3095
|
+
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3096
|
+
style: q(l.ComputStyle(r, d)),
|
|
3097
|
+
"data-tag": r.__tag__,
|
|
3098
|
+
"data-block": l.ComputBlock(r),
|
|
3099
|
+
"data-xine": l.Gps_cls.item + r._sub,
|
|
3100
|
+
onClick: (A) => l.handleClick(A, r),
|
|
3101
|
+
onDblclick: (A) => l.handleDblClick(A, r),
|
|
3102
|
+
onMouseenter: (A) => l.handleHoverIn(r),
|
|
3103
|
+
onMouseleave: (A) => l.handleHoverOut(r)
|
|
3104
3104
|
}, [
|
|
3105
|
-
|
|
3105
|
+
r.problemType && !l.ComputAbs(r) ? (i(), j(o, {
|
|
3106
3106
|
key: 0,
|
|
3107
|
-
sub:
|
|
3107
|
+
sub: r.sub,
|
|
3108
3108
|
isFull: !!l.ModuleTag,
|
|
3109
|
-
width: l.SubWidthInfo[`h${
|
|
3109
|
+
width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
|
|
3110
3110
|
}, null, 8, ["sub", "isFull", "width"])) : M("", !0),
|
|
3111
|
-
(i(),
|
|
3111
|
+
(i(), j(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), {
|
|
3112
3112
|
default: Ft(() => [
|
|
3113
3113
|
V(o, {
|
|
3114
|
-
sub:
|
|
3114
|
+
sub: r.sub,
|
|
3115
3115
|
isFull: !!l.ModuleTag,
|
|
3116
|
-
width: l.SubWidthInfo[`h${
|
|
3116
|
+
width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
|
|
3117
3117
|
}, null, 8, ["sub", "isFull", "width"])
|
|
3118
3118
|
]),
|
|
3119
3119
|
_: 2
|
|
3120
3120
|
}, 1040))
|
|
3121
3121
|
], 46, es),
|
|
3122
|
-
|
|
3122
|
+
r.polymerId && l.PolymerData[r.polymerId][l.PolymerData[r.polymerId].length - 1] === r.id ? (i(), u("div", ts)) : M("", !0)
|
|
3123
3123
|
], 64);
|
|
3124
3124
|
}), 256))
|
|
3125
3125
|
], 64))), 256);
|
|
@@ -3132,7 +3132,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3132
3132
|
y: e.y - t.y + (a ? 1 : 0),
|
|
3133
3133
|
width: e.width,
|
|
3134
3134
|
height: e.height - (a ? 2 : 0)
|
|
3135
|
-
}, De = (e, t, a, l = !1,
|
|
3135
|
+
}, De = (e, t, a, l = !1, n = !1) => {
|
|
3136
3136
|
if (!e)
|
|
3137
3137
|
return {
|
|
3138
3138
|
x: 0,
|
|
@@ -3140,11 +3140,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3140
3140
|
width: 0,
|
|
3141
3141
|
height: 0
|
|
3142
3142
|
};
|
|
3143
|
-
const
|
|
3143
|
+
const c = O(e), o = Math.min(t.height, c.y < t.y ? c.y + c.height - t.y : c.y + c.height > t.y + t.height || n ? t.y + t.height - c.y : c.height);
|
|
3144
3144
|
return o > 5 ? {
|
|
3145
|
-
x:
|
|
3146
|
-
y: Math.max(
|
|
3147
|
-
width:
|
|
3145
|
+
x: c.x - a.x,
|
|
3146
|
+
y: Math.max(c.y, t.y) + (l ? 1 : 0) - a.y,
|
|
3147
|
+
width: c.width,
|
|
3148
3148
|
height: o - (l ? 2 : 0)
|
|
3149
3149
|
} : null;
|
|
3150
3150
|
}, ne = (e, t = !1) => {
|
|
@@ -3164,7 +3164,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3164
3164
|
const l = {
|
|
3165
3165
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3166
3166
|
area: ce(O(a), O(e.pageDom[0])),
|
|
3167
|
-
list: Te(k.en_num_group, a).map((
|
|
3167
|
+
list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((c) => ce(O(c), O(e.pageDom[0]), !0)))
|
|
3168
3168
|
};
|
|
3169
3169
|
return {
|
|
3170
3170
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
@@ -3174,7 +3174,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3174
3174
|
choiceQuestionPosition: ne(l.area),
|
|
3175
3175
|
choiceQuestionCount: l.list.length,
|
|
3176
3176
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3177
|
-
questionNOList: [...Array(l.list.length).keys()].map((
|
|
3177
|
+
questionNOList: [...Array(l.list.length).keys()].map((n, c) => c + 1)
|
|
3178
3178
|
};
|
|
3179
3179
|
}, ns = (e) => ({
|
|
3180
3180
|
cardSizeType: mo[e.layout.paper],
|
|
@@ -3184,16 +3184,16 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3184
3184
|
paperWidth: Math.round(g[e.layout.paper].width * Fe),
|
|
3185
3185
|
paperHeight: Math.round(g[e.layout.paper].height * Fe)
|
|
3186
3186
|
}), ss = (e) => {
|
|
3187
|
-
const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (
|
|
3187
|
+
const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (n) => {
|
|
3188
3188
|
var o;
|
|
3189
|
-
const
|
|
3190
|
-
trdLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[
|
|
3191
|
-
trdLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[
|
|
3189
|
+
const c = e.layout.backColumn > 2 ? {
|
|
3190
|
+
trdLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[1]), O(e.pageDom[n]))),
|
|
3191
|
+
trdLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[1]), O(e.pageDom[n])))
|
|
3192
3192
|
} : {};
|
|
3193
|
-
return (o = Oe.find((
|
|
3194
|
-
secLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[
|
|
3195
|
-
secLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[
|
|
3196
|
-
...
|
|
3193
|
+
return (o = Oe.find((s) => s.code === e.layout.paper)) != null && o.isMultCol ? {
|
|
3194
|
+
secLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[0]), O(e.pageDom[n]))),
|
|
3195
|
+
secLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[0]), O(e.pageDom[n]))),
|
|
3196
|
+
...c
|
|
3197
3197
|
} : null;
|
|
3198
3198
|
};
|
|
3199
3199
|
return {
|
|
@@ -3232,7 +3232,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3232
3232
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3233
3233
|
firstChoicePosition: ne(ce(O(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]))),
|
|
3234
3234
|
// 页码点最大值,展开为数组
|
|
3235
|
-
choiceGridSequenceNOList: dt.filter((l,
|
|
3235
|
+
choiceGridSequenceNOList: dt.filter((l, n) => n < e.pageTotal),
|
|
3236
3236
|
// 排列方向
|
|
3237
3237
|
crosswised: !0,
|
|
3238
3238
|
// 两个页码点之间的间距,纵排此项赋值
|
|
@@ -3273,57 +3273,57 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3273
3273
|
id: "0",
|
|
3274
3274
|
problemType: m.slove,
|
|
3275
3275
|
position: ce(O(t), O(e.pageDom[0])),
|
|
3276
|
-
scoreList: a.map((l,
|
|
3277
|
-
position: ce(O(a[
|
|
3276
|
+
scoreList: a.map((l, n) => ({
|
|
3277
|
+
position: ce(O(a[n]), O(e.pageDom[0])),
|
|
3278
3278
|
itemPosition: {
|
|
3279
|
-
width: a[
|
|
3279
|
+
width: a[n].offsetWidth
|
|
3280
3280
|
},
|
|
3281
|
-
score: Math.abs(parseFloat(a[
|
|
3281
|
+
score: Math.abs(parseFloat(a[n].innerText))
|
|
3282
3282
|
}))
|
|
3283
3283
|
};
|
|
3284
3284
|
}, us = (e, t) => {
|
|
3285
|
-
const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt,
|
|
3286
|
-
return t.flat().filter((
|
|
3287
|
-
switch (
|
|
3285
|
+
const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt, n = (c) => parseFloat(c.toFixed(2));
|
|
3286
|
+
return t.flat().filter((c) => a.includes(c.problemType) && c.colIndex < 2).map((c) => {
|
|
3287
|
+
switch (c.problemType) {
|
|
3288
3288
|
case m.fill:
|
|
3289
3289
|
case m.fill_english:
|
|
3290
|
-
return e.layout.notHandReadFlag &&
|
|
3291
|
-
const
|
|
3290
|
+
return e.layout.notHandReadFlag && c.isHiddenContent ? [] : c.children.map((o) => {
|
|
3291
|
+
const s = o.scorePosition;
|
|
3292
3292
|
return {
|
|
3293
3293
|
sub: o.id,
|
|
3294
3294
|
position: {
|
|
3295
|
-
x: s
|
|
3296
|
-
y: s
|
|
3297
|
-
width:
|
|
3298
|
-
height:
|
|
3295
|
+
x: n(s.x - o.position.x),
|
|
3296
|
+
y: n(s.y - o.position.y) + l * (c.colIndex - 1),
|
|
3297
|
+
width: s.width,
|
|
3298
|
+
height: s.height
|
|
3299
3299
|
}
|
|
3300
3300
|
};
|
|
3301
3301
|
});
|
|
3302
3302
|
case m.slove:
|
|
3303
3303
|
case m.art:
|
|
3304
3304
|
return e.notHandReadFlag ? [] : [{
|
|
3305
|
-
sub:
|
|
3305
|
+
sub: c.id,
|
|
3306
3306
|
position: {
|
|
3307
|
-
x:
|
|
3308
|
-
y:
|
|
3309
|
-
width:
|
|
3310
|
-
height:
|
|
3307
|
+
x: n(c.scoreList[0].position.x - c.position.x),
|
|
3308
|
+
y: n(c.scoreList[0].position.y - c.position.y) + l * (c.colIndex - 1),
|
|
3309
|
+
width: c.scoreList.map((o) => o.position.width).reduce((o, s) => o + s, 0),
|
|
3310
|
+
height: c.scoreList[0].position.height
|
|
3311
3311
|
}
|
|
3312
3312
|
}];
|
|
3313
3313
|
case m.mix:
|
|
3314
|
-
return e.notHandReadFlag &&
|
|
3314
|
+
return e.notHandReadFlag && c.isHiddenContent ? [] : (c.children || []).filter((o) => [m.fill, m.fill_english, m.easy_slove].includes(o.problemType)).map((o) => [m.easy_slove].includes(o.problemType) ? {
|
|
3315
3315
|
sub: o.id,
|
|
3316
3316
|
position: {
|
|
3317
|
-
x:
|
|
3318
|
-
y:
|
|
3319
|
-
width: o.scoreList.map((
|
|
3317
|
+
x: n(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : c.position.x)),
|
|
3318
|
+
y: n(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : c.position.y)) + l * (c.colIndex - 1),
|
|
3319
|
+
width: o.scoreList.map((s) => s.position.width).reduce((s, r) => s + r, 0),
|
|
3320
3320
|
height: o.position.height
|
|
3321
3321
|
}
|
|
3322
3322
|
} : {
|
|
3323
3323
|
sub: o.id,
|
|
3324
3324
|
position: {
|
|
3325
|
-
x:
|
|
3326
|
-
y:
|
|
3325
|
+
x: n(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : c.position.x)),
|
|
3326
|
+
y: n(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : c.position.y)) + l * (c.colIndex - 1),
|
|
3327
3327
|
width: o.scorePosition.width,
|
|
3328
3328
|
height: o.scorePosition.height
|
|
3329
3329
|
}
|
|
@@ -3332,62 +3332,62 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3332
3332
|
}).flat();
|
|
3333
3333
|
}, hs = (e, t) => {
|
|
3334
3334
|
let a = 0, l = {};
|
|
3335
|
-
return [...Array(e.pageDom.length).keys()].map((
|
|
3336
|
-
const
|
|
3337
|
-
return [...Array(
|
|
3338
|
-
const
|
|
3339
|
-
const
|
|
3340
|
-
return
|
|
3335
|
+
return [...Array(e.pageDom.length).keys()].map((n) => {
|
|
3336
|
+
const c = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
|
|
3337
|
+
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => c + s < t.length).map((o, s) => {
|
|
3338
|
+
const r = e.pageDom[n], d = O(r), p = e.colDom[c + s], A = O(p), h = e.colViewDom[c + s], T = O(h), Q = t[c + s].data.map((I) => I.children.filter((H) => H.problemType)).flat(), G = t[c + s].data.filter((I) => [ve.one_choice, ve.another_choice].includes(I.problemType) && I.children.length).map((I) => {
|
|
3339
|
+
const H = se(`${k.choice}${I.id}`, p);
|
|
3340
|
+
return H ? {
|
|
3341
3341
|
id: `${++a}`,
|
|
3342
|
-
baseIndex: parseInt(
|
|
3343
|
-
position: ce(O(
|
|
3344
|
-
problemType:
|
|
3342
|
+
baseIndex: parseInt(I.children[0]._sub),
|
|
3343
|
+
position: ce(O(H), d),
|
|
3344
|
+
problemType: I.problemType,
|
|
3345
3345
|
isOneChoice: !0,
|
|
3346
|
-
optList: Te(k.fill,
|
|
3346
|
+
optList: Te(k.fill, H).map((v, P) => ({
|
|
3347
3347
|
id: `${a}.${P + 1}`,
|
|
3348
|
-
position: ce(O(
|
|
3349
|
-
})).filter((
|
|
3348
|
+
position: ce(O(v), d)
|
|
3349
|
+
})).filter((v) => v.position)
|
|
3350
3350
|
} : {};
|
|
3351
|
-
}).filter((
|
|
3352
|
-
return
|
|
3351
|
+
}).filter((I) => I.position);
|
|
3352
|
+
return Q.filter((I) => ls(I, p, A)).map((I, H, v) => {
|
|
3353
3353
|
let P = {};
|
|
3354
|
-
l[
|
|
3355
|
-
const X = se(`${k.item}${
|
|
3356
|
-
switch (
|
|
3354
|
+
l[I._sub] ? l[I._sub] += 1 : l[I._sub] = 1;
|
|
3355
|
+
const X = se(`${k.item}${I._sub}`, p);
|
|
3356
|
+
switch (I.problemType) {
|
|
3357
3357
|
case m.choice:
|
|
3358
3358
|
case m.choice_english:
|
|
3359
3359
|
case m.choice_multiple:
|
|
3360
3360
|
case m.cloze:
|
|
3361
3361
|
P = {
|
|
3362
|
-
score:
|
|
3363
|
-
isColumn:
|
|
3364
|
-
optList:
|
|
3365
|
-
id: `${
|
|
3366
|
-
position: De(se(`${k.fill}${
|
|
3367
|
-
})).filter((
|
|
3362
|
+
score: I.score,
|
|
3363
|
+
isColumn: I.style[y[e.layout.mode].choice_a] !== F.choice_2,
|
|
3364
|
+
optList: I.optList.map((w, R) => ({
|
|
3365
|
+
id: `${I._sub}.${R + 1}`,
|
|
3366
|
+
position: De(se(`${k.fill}${R}`, X), T, d)
|
|
3367
|
+
})).filter((w) => w.position)
|
|
3368
3368
|
};
|
|
3369
3369
|
break;
|
|
3370
3370
|
case m.decide:
|
|
3371
3371
|
P = {
|
|
3372
|
-
optList: [0, 1].map((
|
|
3373
|
-
id: `${
|
|
3374
|
-
position: De(se(`${k.fill}${
|
|
3375
|
-
})).filter((
|
|
3372
|
+
optList: [0, 1].map((w, R) => ({
|
|
3373
|
+
id: `${I._sub}.${R + 1}`,
|
|
3374
|
+
position: De(se(`${k.fill}${R}`, X), T, d)
|
|
3375
|
+
})).filter((w) => w.position)
|
|
3376
3376
|
};
|
|
3377
3377
|
break;
|
|
3378
3378
|
case m.fill:
|
|
3379
3379
|
case m.fill_english:
|
|
3380
3380
|
const z = Te(k.fill, X), _ = Te(k.fill_line, X);
|
|
3381
3381
|
P = {
|
|
3382
|
-
children: [
|
|
3383
|
-
id: B.length > 1 ? `${
|
|
3384
|
-
score:
|
|
3385
|
-
problemType:
|
|
3386
|
-
isHiddenContent: !
|
|
3387
|
-
position: De(X,
|
|
3388
|
-
scorePosition: De(z[
|
|
3389
|
-
answerPosition: De(_[
|
|
3390
|
-
})).filter((
|
|
3382
|
+
children: [I.score].flat().map((w, R, B) => ({
|
|
3383
|
+
id: B.length > 1 ? `${I._sub}.${R + 1}` : I._sub,
|
|
3384
|
+
score: w,
|
|
3385
|
+
problemType: I.problemType,
|
|
3386
|
+
isHiddenContent: !I.style[y[e.layout.mode].fill_b],
|
|
3387
|
+
position: De(X, T, d),
|
|
3388
|
+
scorePosition: De(z[R], T, d),
|
|
3389
|
+
answerPosition: De(_[R], T, d)
|
|
3390
|
+
})).filter((w) => w.position)
|
|
3391
3391
|
};
|
|
3392
3392
|
break;
|
|
3393
3393
|
case m.slove:
|
|
@@ -3395,34 +3395,34 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3395
3395
|
case m.art:
|
|
3396
3396
|
const C = se(k.score, X);
|
|
3397
3397
|
P = {
|
|
3398
|
-
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((
|
|
3399
|
-
if (!
|
|
3398
|
+
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, R) => {
|
|
3399
|
+
if (!w)
|
|
3400
3400
|
return {};
|
|
3401
|
-
const B = Te(k.score_item,
|
|
3401
|
+
const B = Te(k.score_item, w);
|
|
3402
3402
|
return {
|
|
3403
|
-
position: De(
|
|
3403
|
+
position: De(w, T, d, !0),
|
|
3404
3404
|
itemPosition: {
|
|
3405
3405
|
width: B[0].offsetWidth
|
|
3406
3406
|
},
|
|
3407
|
-
score: B.map((ye) => Math.abs(parseFloat(ye.innerText)) * (
|
|
3407
|
+
score: B.map((ye) => Math.abs(parseFloat(ye.innerText)) * (R ? 1 : 10))
|
|
3408
3408
|
};
|
|
3409
|
-
}).filter((
|
|
3409
|
+
}).filter((w) => w.position) : null
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
3412
|
return {
|
|
3413
|
-
id:
|
|
3414
|
-
elId:
|
|
3415
|
-
colIndex: l[
|
|
3416
|
-
problemType:
|
|
3417
|
-
rootProblemType:
|
|
3418
|
-
position: De(X,
|
|
3413
|
+
id: I._sub,
|
|
3414
|
+
elId: I.id,
|
|
3415
|
+
colIndex: l[I._sub],
|
|
3416
|
+
problemType: I.problemType,
|
|
3417
|
+
rootProblemType: I.rootProblemType,
|
|
3418
|
+
position: De(X, T, d, !1, H === v.length - 1 && [m.slove].includes(I.problemType)),
|
|
3419
3419
|
...P
|
|
3420
3420
|
};
|
|
3421
|
-
}).concat(G).filter((
|
|
3421
|
+
}).concat(G).filter((I) => I.position);
|
|
3422
3422
|
});
|
|
3423
|
-
}).map((
|
|
3423
|
+
}).map((n) => n.flat());
|
|
3424
3424
|
}, ps = (e) => {
|
|
3425
|
-
const t = (l = e,
|
|
3425
|
+
const t = (l = e, n = !1) => ({
|
|
3426
3426
|
// 块位置
|
|
3427
3427
|
sectionPosition: ne(l.position, !0),
|
|
3428
3428
|
// 块ID,前端生成,同一道题同一个ID
|
|
@@ -3430,7 +3430,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3430
3430
|
// 块内序号ID,按切块自增
|
|
3431
3431
|
secitonSeqID: l.colIndex || 1,
|
|
3432
3432
|
// 需要保存文件,固定值
|
|
3433
|
-
needSavedFile: !!
|
|
3433
|
+
needSavedFile: !!n || [m.mix].includes(e.problemType),
|
|
3434
3434
|
// 题型
|
|
3435
3435
|
cuttingSectionQuestionType: bt[l.problemType || e.problemType]
|
|
3436
3436
|
});
|
|
@@ -3449,10 +3449,10 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3449
3449
|
// 选项是否为横排
|
|
3450
3450
|
crosswised: e.isColumn,
|
|
3451
3451
|
// 单个选项的信息数组
|
|
3452
|
-
choiceUnitSectionList: e.optList.map((l,
|
|
3452
|
+
choiceUnitSectionList: e.optList.map((l, n) => ({
|
|
3453
3453
|
...t(l, !0),
|
|
3454
3454
|
choicePosition: ne(l.position),
|
|
3455
|
-
choiceResult: [m.decide].includes(e.problemType) ? po[
|
|
3455
|
+
choiceResult: [m.decide].includes(e.problemType) ? po[n] : dt[n]
|
|
3456
3456
|
}))
|
|
3457
3457
|
}]
|
|
3458
3458
|
};
|
|
@@ -3517,10 +3517,10 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3517
3517
|
// 选项横排
|
|
3518
3518
|
crosswised: !0,
|
|
3519
3519
|
// 单个选项的信息数组
|
|
3520
|
-
choiceUnitSectionList: e.optList.map((l,
|
|
3520
|
+
choiceUnitSectionList: e.optList.map((l, n) => ({
|
|
3521
3521
|
...t(l),
|
|
3522
3522
|
choicePosition: ne(l.position),
|
|
3523
|
-
choiceResult: (e.baseIndex +
|
|
3523
|
+
choiceResult: (e.baseIndex + n).toString()
|
|
3524
3524
|
}))
|
|
3525
3525
|
}]
|
|
3526
3526
|
};
|
|
@@ -3532,9 +3532,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3532
3532
|
...a
|
|
3533
3533
|
};
|
|
3534
3534
|
}, ms = (e, t) => {
|
|
3535
|
-
const a = [...Array(e.pageTotal).keys()].map((
|
|
3535
|
+
const a = [...Array(e.pageTotal).keys()].map((c) => ({
|
|
3536
3536
|
// 当前页数
|
|
3537
|
-
pageIndexID:
|
|
3537
|
+
pageIndexID: c + 1,
|
|
3538
3538
|
// 保留字段
|
|
3539
3539
|
hasCardSerialNumber: !0,
|
|
3540
3540
|
// 页码点信息
|
|
@@ -3544,72 +3544,73 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3544
3544
|
// 固定值
|
|
3545
3545
|
splitFileList: [],
|
|
3546
3546
|
// 依据当前页码设置答案
|
|
3547
|
-
answerResultList: dt.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal -
|
|
3547
|
+
answerResultList: dt.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - c - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : c + 1),
|
|
3548
3548
|
// 固定值
|
|
3549
3549
|
noAnswerTag: !1
|
|
3550
3550
|
}],
|
|
3551
3551
|
// 按题切块信息
|
|
3552
|
-
cardCuttingSectionList: t[
|
|
3553
|
-
})), l = (
|
|
3554
|
-
let o = [],
|
|
3555
|
-
return
|
|
3556
|
-
const
|
|
3557
|
-
if (
|
|
3558
|
-
|
|
3552
|
+
cardCuttingSectionList: t[c].map((o) => ps(o)).flat()
|
|
3553
|
+
})), l = (c, o) => (c.sectionID || "").split(".").filter((s, r) => r < o).join("."), n = a.map((c) => {
|
|
3554
|
+
let o = [], s = [], r = [];
|
|
3555
|
+
return c.cardCuttingSectionList.forEach((d, p, A) => {
|
|
3556
|
+
const h = l(d, 1);
|
|
3557
|
+
if (p < A.length - 1 && r.find((T) => l(T, 1) === h && T.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable)
|
|
3558
|
+
r.push(d);
|
|
3559
3559
|
else {
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3560
|
+
let T = !1;
|
|
3561
|
+
if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable ? (s.push(d), T = !0) : p === A.length - 1 && r.push(d), r.length) {
|
|
3562
|
+
if (r.length === 1)
|
|
3563
|
+
o.push(r[0]);
|
|
3563
3564
|
else {
|
|
3564
|
-
const
|
|
3565
|
+
const Q = r.map((v) => v.subjectiveQuestionSectionList || []).flat(), G = r.map((v) => v.choiceQuestionPartialSectionList || []).flat(), I = G.length ? { choiceQuestionPartialSectionList: G } : {}, H = Q.length ? { subjectiveQuestionSectionList: Q } : {};
|
|
3565
3566
|
o.push({
|
|
3566
|
-
...
|
|
3567
|
-
cuttingSectionQuestionType:
|
|
3568
|
-
...
|
|
3569
|
-
...
|
|
3567
|
+
...r[0],
|
|
3568
|
+
cuttingSectionQuestionType: r[0].rootProblemType,
|
|
3569
|
+
...I,
|
|
3570
|
+
...H
|
|
3570
3571
|
});
|
|
3571
3572
|
}
|
|
3572
|
-
|
|
3573
|
+
r = [];
|
|
3573
3574
|
}
|
|
3574
|
-
if (
|
|
3575
|
+
if (p === A.length - 1 || T)
|
|
3575
3576
|
return;
|
|
3576
|
-
|
|
3577
|
+
r.push(d);
|
|
3577
3578
|
}
|
|
3578
|
-
}), o = o.map((
|
|
3579
|
-
}).map((
|
|
3580
|
-
const o =
|
|
3579
|
+
}), o = o.map((d) => ({ ...d, sectionID: l(d, 1) })), { ...c, cardCuttingSectionList: [...o, ...s] };
|
|
3580
|
+
}).map((c) => {
|
|
3581
|
+
const o = c.cardCuttingSectionList.map((s) => {
|
|
3581
3582
|
var p;
|
|
3582
|
-
let
|
|
3583
|
-
return (p =
|
|
3584
|
-
const
|
|
3585
|
-
if (h <
|
|
3586
|
-
|
|
3583
|
+
let r = [], d = [];
|
|
3584
|
+
return (p = s.subjectiveQuestionSectionList) == null || p.forEach((A, h, T) => {
|
|
3585
|
+
const Q = l(A, 2);
|
|
3586
|
+
if (h < T.length - 1 && d.find((G) => l(G, 2) === Q && G.secitonSeqID === A.secitonSeqID))
|
|
3587
|
+
d.push(A);
|
|
3587
3588
|
else {
|
|
3588
|
-
if (h ===
|
|
3589
|
-
if (
|
|
3590
|
-
|
|
3589
|
+
if (h === T.length - 1 && d.push(A), d.length) {
|
|
3590
|
+
if (d.length === 1)
|
|
3591
|
+
r.push(d[0]);
|
|
3591
3592
|
else {
|
|
3592
|
-
const G =
|
|
3593
|
-
|
|
3594
|
-
...
|
|
3595
|
-
sectionID: l(
|
|
3596
|
-
...
|
|
3593
|
+
const G = d.map((H) => H.singleBlankSectionList || []).flat(), I = G.length ? { singleBlankSectionList: G } : {};
|
|
3594
|
+
r.push({
|
|
3595
|
+
...d[0],
|
|
3596
|
+
sectionID: l(d[0], 2),
|
|
3597
|
+
...I
|
|
3597
3598
|
});
|
|
3598
3599
|
}
|
|
3599
|
-
|
|
3600
|
+
d = [];
|
|
3600
3601
|
}
|
|
3601
|
-
if (h ===
|
|
3602
|
+
if (h === T.length - 1)
|
|
3602
3603
|
return;
|
|
3603
|
-
|
|
3604
|
+
d.push(A);
|
|
3604
3605
|
}
|
|
3605
|
-
}),
|
|
3606
|
-
...
|
|
3607
|
-
subjectiveQuestionSectionList:
|
|
3608
|
-
} :
|
|
3606
|
+
}), r.length ? {
|
|
3607
|
+
...s,
|
|
3608
|
+
subjectiveQuestionSectionList: r
|
|
3609
|
+
} : s;
|
|
3609
3610
|
});
|
|
3610
|
-
return { ...
|
|
3611
|
+
return { ...c, cardCuttingSectionList: o };
|
|
3611
3612
|
});
|
|
3612
|
-
return console.log(
|
|
3613
|
+
return console.log(n), console.log(a), n;
|
|
3613
3614
|
}, ys = (e, t) => {
|
|
3614
3615
|
var l;
|
|
3615
3616
|
const a = O(e.pageDom[0]);
|
|
@@ -3650,11 +3651,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3650
3651
|
// 用来表示老师布置题的标识,固定值
|
|
3651
3652
|
onlyAssignQuestions: null,
|
|
3652
3653
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
3653
|
-
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
3654
|
+
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
|
|
3654
3655
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
3655
|
-
absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
3656
|
+
absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2) : null,
|
|
3656
3657
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
3657
|
-
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
3658
|
+
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
|
|
3658
3659
|
// 哪些面有选做老师布置题的信息,固定值
|
|
3659
3660
|
onlyAssignInfoList: [],
|
|
3660
3661
|
// 页面布局信息
|
|
@@ -3670,15 +3671,15 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3670
3671
|
oneFullPageCardList: t
|
|
3671
3672
|
};
|
|
3672
3673
|
}, _s = (e) => {
|
|
3673
|
-
const { config: t, data: a } = e, l = ds(t),
|
|
3674
|
-
l &&
|
|
3675
|
-
const
|
|
3674
|
+
const { config: t, data: a } = e, l = ds(t), n = hs(t, a);
|
|
3675
|
+
l && n[0].unshift(l);
|
|
3676
|
+
const c = us(t, n), o = ms(t, n), s = ys(t, o), r = Ot(t, k.en_num_view) || {};
|
|
3676
3677
|
return {
|
|
3677
|
-
engineData:
|
|
3678
|
+
engineData: s,
|
|
3678
3679
|
pageTotal: t.pageTotal,
|
|
3679
3680
|
format: g[t.layout.paper],
|
|
3680
|
-
localData:
|
|
3681
|
-
extendInfo: { shortCoordinate:
|
|
3681
|
+
localData: c,
|
|
3682
|
+
extendInfo: { shortCoordinate: r }
|
|
3682
3683
|
};
|
|
3683
3684
|
}, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
|
|
3684
3685
|
key: 0,
|
|
@@ -3696,37 +3697,37 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3696
3697
|
const a = e, l = Y([]);
|
|
3697
3698
|
Me(() => [a.ColList, a.ImgData, a.TxtData], () => {
|
|
3698
3699
|
l.value = [], setTimeout(() => {
|
|
3699
|
-
var
|
|
3700
|
+
var d;
|
|
3700
3701
|
a.ColList.forEach((p, A) => {
|
|
3701
3702
|
p.data.map((h) => h.children).flat().filter((h) => [m.slove, m.art].includes(h.problemType) && !h.chunk).forEach((h) => {
|
|
3702
|
-
var
|
|
3703
|
-
const
|
|
3704
|
-
if (!
|
|
3703
|
+
var I;
|
|
3704
|
+
const T = (I = a.ColDom[A].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : I.querySelector(`*[data-xine="${k.score}"]`);
|
|
3705
|
+
if (!T)
|
|
3705
3706
|
return;
|
|
3706
|
-
|
|
3707
|
-
const
|
|
3708
|
-
|
|
3707
|
+
T.classList.remove("err_lack");
|
|
3708
|
+
const Q = window.getComputedStyle(T), G = [...Array.from(T.children)].map((H) => H.offsetWidth).reduce((H, v) => H + v, 0);
|
|
3709
|
+
T.offsetWidth - parseFloat(Q.borderLeft) - parseFloat(Q.borderRight) < G && (l.value.push({ msg: `${h.subStr}题打分条超长` }), T.classList.add("err_lack"), T.title = "打分条超长,请调整排版或使用自编打分条");
|
|
3709
3710
|
});
|
|
3710
3711
|
});
|
|
3711
|
-
const o = (
|
|
3712
|
+
const o = (d = document.querySelector(".__layout__")) == null ? void 0 : d.getBoundingClientRect();
|
|
3712
3713
|
if (!o)
|
|
3713
3714
|
return;
|
|
3714
|
-
let
|
|
3715
|
+
let s = [], r = [];
|
|
3715
3716
|
a.ImgData.forEach((p) => {
|
|
3716
|
-
(p.left + p.width > o.width || p.top + p.height > o.height) &&
|
|
3717
|
+
(p.left + p.width > o.width || p.top + p.height > o.height) && s.push(p);
|
|
3717
3718
|
}), a.TxtData.forEach((p) => {
|
|
3718
|
-
(p.left + p.width > o.width || p.top + p.height > o.height) &&
|
|
3719
|
-
}),
|
|
3719
|
+
(p.left + p.width > o.width || p.top + p.height > o.height) && r.push(p);
|
|
3720
|
+
}), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: n }), r.length && l.value.push({ type: "absTxt", value: r, msg: `${r.length}条插入文本溢出`, fn: c }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
|
|
3720
3721
|
}, 500);
|
|
3721
3722
|
});
|
|
3722
|
-
const
|
|
3723
|
-
var
|
|
3724
|
-
(((
|
|
3725
|
-
},
|
|
3726
|
-
var
|
|
3727
|
-
(((
|
|
3723
|
+
const n = () => {
|
|
3724
|
+
var s;
|
|
3725
|
+
(((s = l.value.find((r) => r.type === "absImg")) == null ? void 0 : s.value) || []).forEach((r) => t("delAbsImgItem", r));
|
|
3726
|
+
}, c = () => {
|
|
3727
|
+
var s;
|
|
3728
|
+
(((s = l.value.find((r) => r.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((r) => t("delAbsTxtItem", r));
|
|
3728
3729
|
};
|
|
3729
|
-
return (o,
|
|
3730
|
+
return (o, s) => (i(), u("div", fs, [
|
|
3730
3731
|
f("div", gs, [
|
|
3731
3732
|
f("div", {
|
|
3732
3733
|
class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
@@ -3742,17 +3743,17 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3742
3743
|
]),
|
|
3743
3744
|
f("span", vs, "排版" + J(l.value.length ? "异常" : "良好"), 1)
|
|
3744
3745
|
], 2),
|
|
3745
|
-
l.value.length ? (i(),
|
|
3746
|
-
(i(!0),
|
|
3747
|
-
key:
|
|
3746
|
+
l.value.length ? (i(), u("ul", ws, [
|
|
3747
|
+
(i(!0), u(E, null, Z(l.value, (r, d) => (i(), u("li", {
|
|
3748
|
+
key: d,
|
|
3748
3749
|
class: "layt-moni_err_item"
|
|
3749
3750
|
}, [
|
|
3750
|
-
f("span", xs, J(
|
|
3751
|
-
|
|
3751
|
+
f("span", xs, J(r.msg), 1),
|
|
3752
|
+
r.fn ? (i(), u("span", {
|
|
3752
3753
|
key: 0,
|
|
3753
3754
|
class: "layt-moni_err_item_fn",
|
|
3754
|
-
onClick:
|
|
3755
|
-
}, J(
|
|
3755
|
+
onClick: r.fn
|
|
3756
|
+
}, J(r.btnTxt || "删除"), 9, ks)) : M("", !0)
|
|
3756
3757
|
]))), 128))
|
|
3757
3758
|
])) : M("", !0)
|
|
3758
3759
|
])
|
|
@@ -3763,186 +3764,186 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
|
|
|
3763
3764
|
const t = e.parentElement, a = document.createElement("span");
|
|
3764
3765
|
return a.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", a.dataset.block = ht, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(a, e.nextElementSibling) : t.appendChild(a), a;
|
|
3765
3766
|
}, Ts = (e, t, a, l) => {
|
|
3766
|
-
let
|
|
3767
|
+
let n = null;
|
|
3767
3768
|
if (e.dataset.block === ut && !e.dataset.used) {
|
|
3768
|
-
const
|
|
3769
|
-
t - parseFloat(
|
|
3769
|
+
const c = window.getComputedStyle(e);
|
|
3770
|
+
t - parseFloat(c.paddingTop) - parseFloat(c.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
|
|
3770
3771
|
} else
|
|
3771
|
-
e.dataset.block === $t ?
|
|
3772
|
-
return
|
|
3772
|
+
e.dataset.block === $t ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < a - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > a || t > a / 3 && e.offsetHeight + (e.offsetHeight > a / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (n = e);
|
|
3773
|
+
return n;
|
|
3773
3774
|
}, It = (e, t, a) => {
|
|
3774
|
-
const l = e.textContent || "",
|
|
3775
|
-
e.innerHTML =
|
|
3776
|
-
const
|
|
3777
|
-
if (
|
|
3775
|
+
const l = e.textContent || "", n = l.split("").map((r) => `<span>${r}</span>`).join("");
|
|
3776
|
+
e.innerHTML = n;
|
|
3777
|
+
const c = [...Array.from(e.children)].findIndex((r) => he(r).top - t + r.offsetHeight > a);
|
|
3778
|
+
if (c < 1)
|
|
3778
3779
|
return e.innerHTML = l, e;
|
|
3779
3780
|
const o = document.createElement("span");
|
|
3780
|
-
o.textContent = l.slice(0,
|
|
3781
|
-
const
|
|
3782
|
-
return
|
|
3781
|
+
o.textContent = l.slice(0, c);
|
|
3782
|
+
const s = document.createElement("span");
|
|
3783
|
+
return s.textContent = l.slice(c), e.innerHTML = "", e.append(o, s), o;
|
|
3783
3784
|
}, st = (e, t, a) => {
|
|
3784
|
-
const l = nt("", e.parentElement),
|
|
3785
|
-
let
|
|
3786
|
-
return
|
|
3785
|
+
const l = nt("", e.parentElement), n = l.findIndex((o) => o === e);
|
|
3786
|
+
let c = l.filter((o, s) => he(o).top + o.offsetHeight - 1 < he(e).top || s < n && he(o).top < he(e).top).reverse()[0];
|
|
3787
|
+
return c || (c = Ve(e), he(c).top + c.offsetHeight - t > a && (c = st(c, t, a))), c;
|
|
3787
3788
|
}, Lt = (e, t, a, l) => {
|
|
3788
|
-
const
|
|
3789
|
-
var G,
|
|
3790
|
-
const
|
|
3791
|
-
const P = he(
|
|
3789
|
+
const n = (o, s = a) => {
|
|
3790
|
+
var G, I, H;
|
|
3791
|
+
const r = o.map((v) => {
|
|
3792
|
+
const P = he(v);
|
|
3792
3793
|
return {
|
|
3793
|
-
el:
|
|
3794
|
+
el: v,
|
|
3794
3795
|
top: P.top - t,
|
|
3795
3796
|
left: P.left
|
|
3796
3797
|
};
|
|
3797
|
-
}),
|
|
3798
|
+
}), d = r.filter((v) => v.el.offsetHeight + v.top > s).sort((v, P) => v.top - P.top), p = (G = d.shift()) == null ? void 0 : G.el;
|
|
3798
3799
|
if (!p) {
|
|
3799
|
-
const
|
|
3800
|
-
return (
|
|
3800
|
+
const v = document.createElement("div");
|
|
3801
|
+
return (I = o[0].parentElement) == null || I.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
|
|
3801
3802
|
}
|
|
3802
|
-
const A = he(p), h = A.top - t,
|
|
3803
|
-
if (
|
|
3804
|
-
const
|
|
3805
|
-
if (
|
|
3806
|
-
const P = nt(
|
|
3807
|
-
return
|
|
3803
|
+
const A = he(p), h = A.top - t, T = A.left;
|
|
3804
|
+
if (d.filter((v) => v.top < h + p.offsetHeight && v.top + v.el.offsetHeight - 1 > h && (v.left + v.el.offsetWidth - 1 < T || v.left + 1 > T + p.offsetWidth)).length) {
|
|
3805
|
+
const v = (H = r.filter((P) => P.top < h).pop()) == null ? void 0 : H.el;
|
|
3806
|
+
if (v != null && v.children.length) {
|
|
3807
|
+
const P = nt(v);
|
|
3808
|
+
return n(P, h) || v;
|
|
3808
3809
|
} else
|
|
3809
|
-
return
|
|
3810
|
+
return v ? he(v).top - t + v.offsetHeight > h ? It(v, t, h) : v : st(p.parentElement, t, h);
|
|
3810
3811
|
} else {
|
|
3811
|
-
const
|
|
3812
|
-
if (h + (parseFloat(
|
|
3812
|
+
const v = getComputedStyle(p);
|
|
3813
|
+
if (h + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > s)
|
|
3813
3814
|
return st(p, t, h);
|
|
3814
|
-
const P = Ts(p,
|
|
3815
|
+
const P = Ts(p, s - h, s, l);
|
|
3815
3816
|
if (P)
|
|
3816
3817
|
return Ve(P);
|
|
3817
3818
|
if (p.children.length) {
|
|
3818
3819
|
const X = nt(p);
|
|
3819
|
-
return
|
|
3820
|
+
return n(X, s);
|
|
3820
3821
|
} else
|
|
3821
|
-
return It(p, t,
|
|
3822
|
+
return It(p, t, s);
|
|
3822
3823
|
}
|
|
3823
|
-
},
|
|
3824
|
-
return { cut: Ss(
|
|
3824
|
+
}, c = n([e]);
|
|
3825
|
+
return { cut: Ss(c), targetEl: c };
|
|
3825
3826
|
}, Is = (e) => {
|
|
3826
|
-
const { el: t, data: a, column: l, backColumn:
|
|
3827
|
+
const { el: t, data: a, column: l, backColumn: n, getColSize: c, change: o } = e;
|
|
3827
3828
|
if (!t || !a.length) {
|
|
3828
3829
|
o([], !0);
|
|
3829
3830
|
return;
|
|
3830
3831
|
}
|
|
3831
3832
|
console.time("layout");
|
|
3832
|
-
const
|
|
3833
|
-
let
|
|
3834
|
-
const A = (
|
|
3835
|
-
const P =
|
|
3836
|
-
|
|
3837
|
-
top:
|
|
3833
|
+
const s = he(t).top;
|
|
3834
|
+
let r = {}, d = 0, p = 0;
|
|
3835
|
+
const A = (v) => {
|
|
3836
|
+
const P = v % (l + n), X = Math.floor(v / (l + n)) * 2 + (P >= l ? 1 : 0), z = c(v, X);
|
|
3837
|
+
r = {
|
|
3838
|
+
top: s,
|
|
3838
3839
|
width: parseFloat(z.width),
|
|
3839
3840
|
height: parseFloat(z.height)
|
|
3840
3841
|
};
|
|
3841
3842
|
};
|
|
3842
|
-
let h = [],
|
|
3843
|
-
const
|
|
3844
|
-
A(h.length), t.style.width = `${
|
|
3843
|
+
let h = [], T = 0;
|
|
3844
|
+
const Q = () => {
|
|
3845
|
+
A(h.length), t.style.width = `${r.width}px`, h.push({
|
|
3845
3846
|
top: 0,
|
|
3846
3847
|
data: [],
|
|
3847
|
-
width:
|
|
3848
|
-
height:
|
|
3848
|
+
width: r.width,
|
|
3849
|
+
height: r.height
|
|
3849
3850
|
}), o([...h]);
|
|
3850
3851
|
};
|
|
3851
|
-
|
|
3852
|
-
const G = (
|
|
3853
|
-
const P = getComputedStyle(
|
|
3854
|
-
return he(
|
|
3855
|
-
},
|
|
3856
|
-
const P = getComputedStyle(
|
|
3857
|
-
return he(
|
|
3858
|
-
},
|
|
3859
|
-
if (
|
|
3860
|
-
o([...h], !0), console.timeEnd("layout"), h = [],
|
|
3852
|
+
Q();
|
|
3853
|
+
const G = (v) => {
|
|
3854
|
+
const P = getComputedStyle(v);
|
|
3855
|
+
return he(v).top - r.top + parseFloat(P.borderTop) + parseFloat(P.paddingTop) + parseFloat(P.lineHeight) > h[h.length - 1].height;
|
|
3856
|
+
}, I = (v) => {
|
|
3857
|
+
const P = getComputedStyle(v);
|
|
3858
|
+
return he(v).top + v.offsetHeight - r.top - (v.dataset.block === ke ? 0 : parseFloat(P.paddingBottom) - parseFloat(P.borderBottom)) <= h[h.length - 1].height;
|
|
3859
|
+
}, H = (v = JSON.parse(JSON.stringify(a[T] || {}))) => {
|
|
3860
|
+
if (T >= a.length || !Object.keys(v).length) {
|
|
3861
|
+
o([...h], !0), console.timeEnd("layout"), h = [], d = 0;
|
|
3861
3862
|
return;
|
|
3862
3863
|
}
|
|
3863
|
-
h[h.length - 1].data.push({ ...
|
|
3864
|
-
const P = Tt(
|
|
3864
|
+
h[h.length - 1].data.push({ ...v }), o([...h]), window.requestAnimationFrame(() => {
|
|
3865
|
+
const P = Tt(v.__tag__, t), X = !v.isHidden && he(P);
|
|
3865
3866
|
let z = null;
|
|
3866
3867
|
if (p) {
|
|
3867
3868
|
const _ = P.querySelector(`*[data-hutkey="${p}"]`), C = he(_);
|
|
3868
|
-
h[h.length - 1].top =
|
|
3869
|
+
h[h.length - 1].top = r.top - C.top, h[h.length - 1].height = r.height - h[h.length - 1].top, p = 0;
|
|
3869
3870
|
}
|
|
3870
|
-
if (X && X.height + X.top -
|
|
3871
|
-
if (
|
|
3872
|
-
h[h.length - 1].data.pop(),
|
|
3873
|
-
else if (
|
|
3874
|
-
|
|
3871
|
+
if (X && X.height + X.top - r.top > h[h.length - 1].height)
|
|
3872
|
+
if (v.problemType)
|
|
3873
|
+
h[h.length - 1].data.pop(), Q(), H({ ...v });
|
|
3874
|
+
else if (I(P))
|
|
3875
|
+
Q(), T++, H();
|
|
3875
3876
|
else if (G(P))
|
|
3876
|
-
h[h.length - 1].data.pop(),
|
|
3877
|
+
h[h.length - 1].data.pop(), Q(), H({ ...v });
|
|
3877
3878
|
else {
|
|
3878
|
-
z = Lt(P,
|
|
3879
|
-
const _ = P.querySelector(`*[data-content="${
|
|
3880
|
-
h[h.length - 1].height = he(z.cut).top -
|
|
3879
|
+
z = Lt(P, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
|
|
3880
|
+
const _ = P.querySelector(`*[data-content="${v.id}"]`);
|
|
3881
|
+
h[h.length - 1].height = he(z.cut).top - r.top, Q(), _ != null && _.contains(z.cut) ? (p = Date.now(), z.cut.dataset.hutkey = p, H({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), H({ ...v }));
|
|
3881
3882
|
}
|
|
3882
3883
|
else {
|
|
3883
3884
|
let _ = [], C = [];
|
|
3884
|
-
|
|
3885
|
-
const B = Tt(
|
|
3886
|
-
if (
|
|
3887
|
-
const pe = B.querySelector(`*[data-cutkey="${
|
|
3888
|
-
h[h.length - 1].top =
|
|
3885
|
+
v.children.some((w, R) => {
|
|
3886
|
+
const B = Tt(w.__tag__, t), ye = he(B);
|
|
3887
|
+
if (d) {
|
|
3888
|
+
const pe = B.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
|
|
3889
|
+
h[h.length - 1].top = r.top - ie.top, h[h.length - 1].height = r.height - h[h.length - 1].top, d = 0;
|
|
3889
3890
|
}
|
|
3890
|
-
if (ye.height + ye.top -
|
|
3891
|
-
if (
|
|
3892
|
-
_.push(
|
|
3891
|
+
if (ye.height + ye.top - r.top > h[h.length - 1].height) {
|
|
3892
|
+
if (I(B))
|
|
3893
|
+
_.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3893
3894
|
else if (G(B))
|
|
3894
|
-
C =
|
|
3895
|
+
C = v.children.slice(R);
|
|
3895
3896
|
else {
|
|
3896
|
-
z = Lt(B,
|
|
3897
|
-
const pe = B.querySelector(`*[data-content="${
|
|
3897
|
+
z = Lt(B, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
|
|
3898
|
+
const pe = B.querySelector(`*[data-content="${w.id}"]`);
|
|
3898
3899
|
if (B === z.targetEl)
|
|
3899
|
-
_.push(
|
|
3900
|
+
_.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3900
3901
|
else if (pe && pe.contains(z.cut))
|
|
3901
|
-
|
|
3902
|
+
d = Date.now(), z.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = he(z.cut).top - r.top;
|
|
3902
3903
|
else {
|
|
3903
3904
|
if (!C.length) {
|
|
3904
|
-
let ie = { ...
|
|
3905
|
-
switch (
|
|
3905
|
+
let ie = { ...w };
|
|
3906
|
+
switch (w.problemType) {
|
|
3906
3907
|
case at.slove:
|
|
3907
|
-
const fe = B.querySelector(`*[data-area="${
|
|
3908
|
-
fe != null && fe.contains(z.cut) && (
|
|
3908
|
+
const fe = B.querySelector(`*[data-area="${w.id}"]`);
|
|
3909
|
+
fe != null && fe.contains(z.cut) && (d = Date.now(), z.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), B.contains(z.targetEl) && (w.chunk += 1);
|
|
3909
3910
|
break;
|
|
3910
3911
|
case at.art:
|
|
3911
|
-
const ue = B.querySelector(`*[data-bart="${
|
|
3912
|
+
const ue = B.querySelector(`*[data-bart="${w.id}"]`), D = z.targetEl.dataset.block === ke && z.targetEl.dataset.size ? z.targetEl : null, $ = B.querySelector(`*[data-aart="${w.id}"]`);
|
|
3912
3913
|
if (ue != null && ue.contains(z.cut))
|
|
3913
|
-
|
|
3914
|
+
d = Date.now(), z.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
|
|
3914
3915
|
else if (D) {
|
|
3915
3916
|
const S = parseInt(D.dataset.size);
|
|
3916
|
-
if (!
|
|
3917
|
-
if (
|
|
3918
|
-
const
|
|
3919
|
-
if (we.height + we.top -
|
|
3920
|
-
|
|
3921
|
-
const ae = he(D).top + D.offsetHeight, re = [...Array.from(
|
|
3922
|
-
ie.beforeGuide =
|
|
3917
|
+
if (!w.artBlock)
|
|
3918
|
+
if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > S) {
|
|
3919
|
+
const K = B.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
|
|
3920
|
+
if (we.height + we.top - r.top > r.height) {
|
|
3921
|
+
K.innerHTML = w.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
|
|
3922
|
+
const ae = he(D).top + D.offsetHeight, re = [...Array.from(K.children)].findIndex((be) => he(be).top > ae);
|
|
3923
|
+
ie.beforeGuide = w.beforeGuide.substring(0, re), w.beforeGuide = w.beforeGuide.substring(re);
|
|
3923
3924
|
} else
|
|
3924
|
-
|
|
3925
|
+
w.beforeGuide = "";
|
|
3925
3926
|
} else
|
|
3926
|
-
|
|
3927
|
-
ie.endAnswerLen = S,
|
|
3927
|
+
w.beforeGuide = "";
|
|
3928
|
+
ie.endAnswerLen = S, w.startAnswerLen = S;
|
|
3928
3929
|
} else
|
|
3929
|
-
$ != null && $.contains(z.cut) ? (
|
|
3930
|
-
B.contains(z.targetEl) && (
|
|
3930
|
+
$ != null && $.contains(z.cut) ? (d = Date.now(), z.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = $.innerHTML) : z.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === z.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
|
|
3931
|
+
B.contains(z.targetEl) && (w.chunk += 1);
|
|
3931
3932
|
break;
|
|
3932
3933
|
}
|
|
3933
|
-
B.contains(z.targetEl) && _.push(ie),
|
|
3934
|
+
B.contains(z.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(z.cut).top - r.top);
|
|
3934
3935
|
}
|
|
3935
|
-
C = [
|
|
3936
|
+
C = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
|
|
3936
3937
|
}
|
|
3937
3938
|
}
|
|
3938
3939
|
return !0;
|
|
3939
3940
|
} else
|
|
3940
|
-
_.push(
|
|
3941
|
-
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (
|
|
3941
|
+
_.push(w);
|
|
3942
|
+
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Q(), H({ ...v, isHidden: !0, children: C })) : (o([...h]), T++, H());
|
|
3942
3943
|
}
|
|
3943
3944
|
});
|
|
3944
3945
|
};
|
|
3945
|
-
|
|
3946
|
+
H();
|
|
3946
3947
|
}, zt = window.CKEDITOR;
|
|
3947
3948
|
zt.disableAutoInline = !0;
|
|
3948
3949
|
const pt = `dx${Math.random().toString(32).substring(2)}`;
|
|
@@ -3961,62 +3962,62 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3961
3962
|
},
|
|
3962
3963
|
emits: ["change", "focus", "blur"],
|
|
3963
3964
|
setup(e, { emit: t }) {
|
|
3964
|
-
const a = e, l = Wt("ckeditorOrigin", ""),
|
|
3965
|
-
Me(() => a.readonly, () =>
|
|
3966
|
-
const
|
|
3965
|
+
const a = e, l = Wt("ckeditorOrigin", ""), n = Y();
|
|
3966
|
+
Me(() => a.readonly, () => c()), Xe(() => c());
|
|
3967
|
+
const c = () => {
|
|
3967
3968
|
if (window.CKEDITOR) {
|
|
3968
3969
|
if (a.readonly) {
|
|
3969
|
-
|
|
3970
|
+
n.value && (n.value.destroy(), n.value = null);
|
|
3970
3971
|
return;
|
|
3971
3972
|
}
|
|
3972
3973
|
Je(() => {
|
|
3973
|
-
|
|
3974
|
-
|
|
3974
|
+
n.value = Ls("inline", l), n.value && n.value.on("instanceReady", (d) => {
|
|
3975
|
+
n.value.setData(a.value);
|
|
3975
3976
|
});
|
|
3976
3977
|
});
|
|
3977
3978
|
} else {
|
|
3978
|
-
const
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
},
|
|
3979
|
+
const d = document.createElement("script");
|
|
3980
|
+
d.type = "text/javascript", document.body.appendChild(d), d.onload = () => {
|
|
3981
|
+
c();
|
|
3982
|
+
}, d.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
|
|
3982
3983
|
}
|
|
3983
3984
|
}, o = () => {
|
|
3984
3985
|
t("blur");
|
|
3985
|
-
const
|
|
3986
|
-
|
|
3987
|
-
},
|
|
3986
|
+
const d = r(n.value.getData());
|
|
3987
|
+
d !== a.value && t("change", d, a.name);
|
|
3988
|
+
}, s = () => {
|
|
3988
3989
|
t("focus");
|
|
3989
|
-
},
|
|
3990
|
+
}, r = (d) => {
|
|
3990
3991
|
const p = document.createElement("div");
|
|
3991
|
-
p.innerHTML =
|
|
3992
|
-
const
|
|
3993
|
-
(
|
|
3992
|
+
p.innerHTML = d, [...Array.from(p.querySelectorAll("*"))].forEach((h) => {
|
|
3993
|
+
const T = window.getComputedStyle(h);
|
|
3994
|
+
(T.display === "none" || T.width === "0px" && T.height === "0px" || T.opacity === "0" || T.visibility === "hidden") && h.remove();
|
|
3994
3995
|
});
|
|
3995
3996
|
const A = (h = p) => {
|
|
3996
|
-
[...Array.from(h.childNodes)].forEach((
|
|
3997
|
-
var
|
|
3998
|
-
if (
|
|
3999
|
-
A(
|
|
4000
|
-
else if (
|
|
3997
|
+
[...Array.from(h.childNodes)].forEach((T) => {
|
|
3998
|
+
var Q;
|
|
3999
|
+
if (T.nodeType === Node.ELEMENT_NODE && T.children.length)
|
|
4000
|
+
A(T);
|
|
4001
|
+
else if (T.nodeType === Node.TEXT_NODE) {
|
|
4001
4002
|
const G = document.createElement("span");
|
|
4002
|
-
G.textContent =
|
|
4003
|
+
G.textContent = T.textContent, window.REGULAR.underscore.test(T.textContent || "") && (window.getComputedStyle(T.parentNode).wordBreak !== "break-all" || !(T.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (T.textContent || "").length > 5 && (G.innerHTML = (T.textContent || "").replace(window.REGULAR.underscore, (H) => H.length > 5 ? `<span style="word-break: break-all">${H}</span>` : H)), (Q = T.parentElement) == null || Q.replaceChild(G, T);
|
|
4003
4004
|
}
|
|
4004
4005
|
});
|
|
4005
4006
|
};
|
|
4006
4007
|
return A(), p.innerHTML;
|
|
4007
4008
|
};
|
|
4008
|
-
return (
|
|
4009
|
-
a.readonly ? (i(),
|
|
4009
|
+
return (d, p) => (i(), u("div", Fs, [
|
|
4010
|
+
a.readonly ? (i(), j(Ae, {
|
|
4010
4011
|
key: 1,
|
|
4011
4012
|
data: a.value,
|
|
4012
4013
|
class: "raw_view"
|
|
4013
|
-
}, null, 8, ["data"])) : (i(),
|
|
4014
|
+
}, null, 8, ["data"])) : (i(), u("div", {
|
|
4014
4015
|
key: 0,
|
|
4015
4016
|
class: "overflow-auto outline-none whitespace-normal editor_view",
|
|
4016
4017
|
disabled: a.readonly,
|
|
4017
4018
|
contentEditable: !a.readonly,
|
|
4018
4019
|
id: x(pt),
|
|
4019
|
-
onFocus:
|
|
4020
|
+
onFocus: s,
|
|
4020
4021
|
onBlur: o
|
|
4021
4022
|
}, null, 40, Es))
|
|
4022
4023
|
]));
|
|
@@ -4038,19 +4039,19 @@ const Ms = {
|
|
|
4038
4039
|
let ot = null;
|
|
4039
4040
|
const As = {
|
|
4040
4041
|
mounted: (e, t) => {
|
|
4041
|
-
let a = {}, l = !1,
|
|
4042
|
-
const
|
|
4043
|
-
|
|
4044
|
-
l = !0,
|
|
4042
|
+
let a = {}, l = !1, n = !1, c = e.offsetParent, o = {}, s = {};
|
|
4043
|
+
const r = e.querySelector(".move-target") || e;
|
|
4044
|
+
r.style.cursor = "move", r.addEventListener("mousedown", (d) => {
|
|
4045
|
+
l = !0, n = !!e.dataset.safe, c = e.offsetParent;
|
|
4045
4046
|
const p = window.getComputedStyle(e);
|
|
4046
|
-
a = { x:
|
|
4047
|
-
}), document.addEventListener("mouseup", (
|
|
4047
|
+
a = { x: d.clientX, y: d.clientY }, o = { x: parseInt(p.left), y: parseInt(p.top) };
|
|
4048
|
+
}), document.addEventListener("mouseup", (d) => {
|
|
4048
4049
|
l = !1;
|
|
4049
|
-
}), ot = (
|
|
4050
|
+
}), ot = (d) => {
|
|
4050
4051
|
if (!l || e.getAttribute("disabled") === "true")
|
|
4051
4052
|
return;
|
|
4052
|
-
|
|
4053
|
-
const p =
|
|
4053
|
+
d.stopPropagation(), d.preventDefault(), s = { x: d.clientX, y: d.clientY };
|
|
4054
|
+
const p = n ? Math.min(Math.max(s.x - a.x + o.x, 0), c.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, A = n ? Math.min(Math.max(s.y - a.y + o.y, 0), c.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
|
|
4054
4055
|
e.style.left = `${p}px`, e.style.top = `${A}px`, t.value && typeof t.value == "function" && t.value({ x: p, y: A });
|
|
4055
4056
|
}, document.addEventListener("mousemove", ot);
|
|
4056
4057
|
},
|
|
@@ -4067,7 +4068,7 @@ const As = {
|
|
|
4067
4068
|
},
|
|
4068
4069
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4069
4070
|
setup(e, { emit: t }) {
|
|
4070
|
-
const a = e, l = Ms,
|
|
4071
|
+
const a = e, l = Ms, n = As, c = [
|
|
4071
4072
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4072
4073
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4073
4074
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4076,48 +4077,48 @@ const As = {
|
|
|
4076
4077
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4077
4078
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4078
4079
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4079
|
-
], o = Y({}),
|
|
4080
|
+
], o = Y({}), s = Y(), r = Y(0), d = Y(0), p = Y(), A = Y(), h = Y({}), T = Y(!1), Q = Y(), G = Y(), I = Y(), H = N(() => a.imgData.map((D) => ({
|
|
4080
4081
|
...D,
|
|
4081
4082
|
top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
|
|
4082
|
-
}))),
|
|
4083
|
+
}))), v = N(() => a.txtData.map((D) => ({
|
|
4083
4084
|
...D,
|
|
4084
4085
|
top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
|
|
4085
|
-
}))), P = N(() =>
|
|
4086
|
+
}))), P = N(() => Q.value ? Q.value.split("-")[0] === "img" ? H.value.find(($) => $.key === Q.value) : v.value.find(($) => $.key === Q.value) : null), X = N(() => P.value ? { [P.value.key]: { ...s.value } } : {});
|
|
4086
4087
|
Xe(() => {
|
|
4087
4088
|
p.value = document.body.querySelector(".__layout__");
|
|
4088
4089
|
});
|
|
4089
4090
|
const z = (D) => {
|
|
4090
|
-
|
|
4091
|
+
s.value = { ...P.value, left: Math.max(D.x, 0), top: Math.max(D.y, 0) }, clearTimeout(A.value), A.value = setTimeout(() => {
|
|
4091
4092
|
var $;
|
|
4092
|
-
(($ = P.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem",
|
|
4093
|
+
(($ = P.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4093
4094
|
}, 400);
|
|
4094
4095
|
}, _ = (D) => {
|
|
4095
|
-
|
|
4096
|
+
T.value = D;
|
|
4096
4097
|
}, C = () => {
|
|
4097
|
-
const D = P.value, $ = D.left + D.width / 2, S = D.top + D.height / 2,
|
|
4098
|
-
h.value = { x: $ +
|
|
4099
|
-
},
|
|
4098
|
+
const D = P.value, $ = D.left + D.width / 2, S = D.top + D.height / 2, K = p.value.getBoundingClientRect() || {};
|
|
4099
|
+
h.value = { x: $ + K.left, y: S + K.top }, p.value.addEventListener("mousemove", w), p.value.addEventListener("mouseleave", R), p.value.addEventListener("mouseup", R);
|
|
4100
|
+
}, w = (D) => {
|
|
4100
4101
|
D.stopPropagation(), D.preventDefault();
|
|
4101
|
-
const $ = D.clientX - h.value.x, S = h.value.y - D.clientY,
|
|
4102
|
-
|
|
4103
|
-
},
|
|
4104
|
-
D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem",
|
|
4102
|
+
const $ = D.clientX - h.value.x, S = h.value.y - D.clientY, K = Math.atan2(S, $) / (Math.PI / 180);
|
|
4103
|
+
s.value = { ...P.value, rotate: -parseInt(K.toString()) };
|
|
4104
|
+
}, R = (D) => {
|
|
4105
|
+
D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", s.value), p.value.removeEventListener("mousemove", w), p.value.removeEventListener("mouseleave", R), p.value.removeEventListener("mouseup", R);
|
|
4105
4106
|
}, B = (D, $) => {
|
|
4106
4107
|
var S;
|
|
4107
|
-
D.stopPropagation(),
|
|
4108
|
+
D.stopPropagation(), r.value = $, o.value = { x: D.clientX, y: D.clientY, ...P.value }, ((S = P.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
|
|
4108
4109
|
}, ye = (D) => {
|
|
4109
|
-
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value },
|
|
4110
|
+
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = $.x > $.y ? "width" : "height";
|
|
4110
4111
|
[
|
|
4111
4112
|
// 0
|
|
4112
4113
|
() => {
|
|
4113
4114
|
const ae = {
|
|
4114
4115
|
width: o.value.width - $.x,
|
|
4115
4116
|
height: o.value.width * (1 - $.y / o.value.height)
|
|
4116
|
-
}[
|
|
4117
|
+
}[K], re = {
|
|
4117
4118
|
width: o.value.height * (1 - $.x / o.value.width),
|
|
4118
4119
|
height: o.value.height - $.y
|
|
4119
|
-
}[
|
|
4120
|
-
|
|
4120
|
+
}[K];
|
|
4121
|
+
s.value = {
|
|
4121
4122
|
...S,
|
|
4122
4123
|
width: ae,
|
|
4123
4124
|
height: re,
|
|
@@ -4128,7 +4129,7 @@ const As = {
|
|
|
4128
4129
|
// 1
|
|
4129
4130
|
() => {
|
|
4130
4131
|
const ae = o.value.width * (1 - $.y / o.value.height), re = o.value.height - $.y;
|
|
4131
|
-
|
|
4132
|
+
s.value = {
|
|
4132
4133
|
...S,
|
|
4133
4134
|
width: ae,
|
|
4134
4135
|
height: re,
|
|
@@ -4141,13 +4142,13 @@ const As = {
|
|
|
4141
4142
|
const ae = {
|
|
4142
4143
|
width: o.value.height * (1 + $.x / o.value.width),
|
|
4143
4144
|
height: o.value.height - $.y
|
|
4144
|
-
}[
|
|
4145
|
-
|
|
4145
|
+
}[K];
|
|
4146
|
+
s.value = {
|
|
4146
4147
|
...S,
|
|
4147
4148
|
width: {
|
|
4148
4149
|
width: o.value.width + $.x,
|
|
4149
4150
|
height: o.value.width * (1 - $.y / o.value.height)
|
|
4150
|
-
}[
|
|
4151
|
+
}[K],
|
|
4151
4152
|
height: ae,
|
|
4152
4153
|
top: o.value.top - (ae - o.value.height)
|
|
4153
4154
|
};
|
|
@@ -4155,7 +4156,7 @@ const As = {
|
|
|
4155
4156
|
// 3
|
|
4156
4157
|
() => {
|
|
4157
4158
|
const ae = o.value.width - $.x, re = o.value.height * (1 - $.x / o.value.width);
|
|
4158
|
-
|
|
4159
|
+
s.value = {
|
|
4159
4160
|
...S,
|
|
4160
4161
|
width: ae,
|
|
4161
4162
|
height: re,
|
|
@@ -4166,7 +4167,7 @@ const As = {
|
|
|
4166
4167
|
// 4
|
|
4167
4168
|
() => {
|
|
4168
4169
|
const ae = o.value.width + $.x, re = o.value.height * (1 + $.x / o.value.width);
|
|
4169
|
-
|
|
4170
|
+
s.value = {
|
|
4170
4171
|
...S,
|
|
4171
4172
|
width: ae,
|
|
4172
4173
|
height: re,
|
|
@@ -4178,11 +4179,11 @@ const As = {
|
|
|
4178
4179
|
const ae = {
|
|
4179
4180
|
width: o.value.width - $.x,
|
|
4180
4181
|
height: o.value.width * (1 + $.y / o.value.height)
|
|
4181
|
-
}[
|
|
4182
|
+
}[K], re = {
|
|
4182
4183
|
width: o.value.height * (1 - $.x / o.value.width),
|
|
4183
4184
|
height: o.value.height + $.y
|
|
4184
|
-
}[
|
|
4185
|
-
|
|
4185
|
+
}[K];
|
|
4186
|
+
s.value = {
|
|
4186
4187
|
...S,
|
|
4187
4188
|
width: ae,
|
|
4188
4189
|
height: re,
|
|
@@ -4192,7 +4193,7 @@ const As = {
|
|
|
4192
4193
|
// 6
|
|
4193
4194
|
() => {
|
|
4194
4195
|
const ae = o.value.width * (1 + $.y / o.value.height), re = o.value.height + $.y;
|
|
4195
|
-
|
|
4196
|
+
s.value = {
|
|
4196
4197
|
...S,
|
|
4197
4198
|
width: ae,
|
|
4198
4199
|
height: re,
|
|
@@ -4204,19 +4205,19 @@ const As = {
|
|
|
4204
4205
|
const ae = {
|
|
4205
4206
|
width: o.value.width + $.x,
|
|
4206
4207
|
height: o.value.width * (1 + $.y / o.value.height)
|
|
4207
|
-
}[
|
|
4208
|
+
}[K], re = {
|
|
4208
4209
|
width: o.value.height * (1 + $.x / o.value.width),
|
|
4209
4210
|
height: o.value.height + $.y
|
|
4210
|
-
}[
|
|
4211
|
-
|
|
4211
|
+
}[K];
|
|
4212
|
+
s.value = {
|
|
4212
4213
|
...S,
|
|
4213
4214
|
width: ae,
|
|
4214
4215
|
height: re
|
|
4215
4216
|
};
|
|
4216
4217
|
}
|
|
4217
|
-
][
|
|
4218
|
+
][r.value]();
|
|
4218
4219
|
}, pe = (D) => {
|
|
4219
|
-
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value },
|
|
4220
|
+
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = [
|
|
4220
4221
|
{
|
|
4221
4222
|
...S,
|
|
4222
4223
|
width: o.value.width - $.x,
|
|
@@ -4260,31 +4261,31 @@ const As = {
|
|
|
4260
4261
|
height: o.value.height + $.y
|
|
4261
4262
|
}
|
|
4262
4263
|
];
|
|
4263
|
-
|
|
4264
|
+
s.value = K[r.value];
|
|
4264
4265
|
}, ie = () => {
|
|
4265
4266
|
var D;
|
|
4266
|
-
p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((D = P.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem",
|
|
4267
|
+
p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((D = P.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4267
4268
|
}, fe = (D) => {
|
|
4268
4269
|
if (!D || D === P.value.content) {
|
|
4269
|
-
|
|
4270
|
+
d.value++;
|
|
4270
4271
|
return;
|
|
4271
4272
|
}
|
|
4272
4273
|
t("changeAbsTxtItem", { ...P.value, content: D });
|
|
4273
4274
|
}, ue = (D, $) => {
|
|
4274
|
-
var
|
|
4275
|
+
var K;
|
|
4275
4276
|
const S = document.body.querySelector(`.cke_editor_${pt}`);
|
|
4276
|
-
!D && ((
|
|
4277
|
+
!D && ((K = ($ == null ? void 0 : $.target).dataset) != null && K.safe || [...G.value, ...I.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (Q.value = D == null ? void 0 : D.key, s.value = D ? { ...D } : null);
|
|
4277
4278
|
};
|
|
4278
|
-
return (D, $) => (i(),
|
|
4279
|
-
(i(!0),
|
|
4280
|
-
var
|
|
4281
|
-
return gt((i(),
|
|
4279
|
+
return (D, $) => (i(), u(E, null, [
|
|
4280
|
+
(i(!0), u(E, null, Z(H.value, (S) => {
|
|
4281
|
+
var K, we, ae, re, be, b, L;
|
|
4282
|
+
return gt((i(), u("div", {
|
|
4282
4283
|
key: S.id,
|
|
4283
4284
|
ref_for: !0,
|
|
4284
4285
|
ref_key: "imgViewList",
|
|
4285
4286
|
ref: G,
|
|
4286
4287
|
"data-safe": "true",
|
|
4287
|
-
class: oe(["absolute", ((
|
|
4288
|
+
class: oe(["absolute", ((K = P.value) == null ? void 0 : K.key) === S.key ? "z-8" : "z-7"]),
|
|
4288
4289
|
style: q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = X.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
|
|
4289
4290
|
onMousedown: Le((le) => ue(S), ["stop"]),
|
|
4290
4291
|
"data-block": x(Ee)
|
|
@@ -4292,7 +4293,7 @@ const As = {
|
|
|
4292
4293
|
f("img", {
|
|
4293
4294
|
src: S.url
|
|
4294
4295
|
}, null, 8, Bs),
|
|
4295
|
-
((
|
|
4296
|
+
((L = P.value) == null ? void 0 : L.key) === S.key ? (i(), u(E, { key: 0 }, [
|
|
4296
4297
|
f("span", Os, [
|
|
4297
4298
|
V(_e, {
|
|
4298
4299
|
name: "close",
|
|
@@ -4302,10 +4303,10 @@ const As = {
|
|
|
4302
4303
|
}, null, 8, ["onClick"])
|
|
4303
4304
|
]),
|
|
4304
4305
|
f("div", zs, [
|
|
4305
|
-
(i(),
|
|
4306
|
+
(i(), u(E, null, Z(8, (le, W) => f("div", {
|
|
4306
4307
|
key: le,
|
|
4307
4308
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4308
|
-
style: q({ ...
|
|
4309
|
+
style: q({ ...c[W], transform: "translate(-50%, -50%)" }),
|
|
4309
4310
|
onMousedown: Le((te) => B(te, W), ["stop"])
|
|
4310
4311
|
}, null, 44, Hs)), 64))
|
|
4311
4312
|
]),
|
|
@@ -4320,26 +4321,26 @@ const As = {
|
|
|
4320
4321
|
], 40, Rs)
|
|
4321
4322
|
], 64)) : M("", !0)
|
|
4322
4323
|
], 46, Ns)), [
|
|
4323
|
-
[x(
|
|
4324
|
+
[x(n), z],
|
|
4324
4325
|
[x(l), (le) => ue(null, le)]
|
|
4325
4326
|
]);
|
|
4326
4327
|
}), 128)),
|
|
4327
|
-
(i(!0),
|
|
4328
|
-
var
|
|
4329
|
-
return gt((i(),
|
|
4328
|
+
(i(!0), u(E, null, Z(v.value, (S) => {
|
|
4329
|
+
var K, we, ae, re, be, b, L;
|
|
4330
|
+
return gt((i(), u("div", {
|
|
4330
4331
|
key: S.id,
|
|
4331
4332
|
ref_for: !0,
|
|
4332
4333
|
ref_key: "txtViewList",
|
|
4333
|
-
ref:
|
|
4334
|
-
disabled:
|
|
4334
|
+
ref: I,
|
|
4335
|
+
disabled: T.value,
|
|
4335
4336
|
"data-safe": "true",
|
|
4336
|
-
class: oe(["absolute", ((
|
|
4337
|
+
class: oe(["absolute", ((K = P.value) == null ? void 0 : K.key) === S.key ? "z-8 bg-white" : "z-7"]),
|
|
4337
4338
|
style: q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
|
|
4338
4339
|
onMousedown: Le((le) => ue(S), ["stop"]),
|
|
4339
4340
|
"data-block": x(Ee)
|
|
4340
4341
|
}, [
|
|
4341
|
-
(i(),
|
|
4342
|
-
key:
|
|
4342
|
+
(i(), j(Ds, {
|
|
4343
|
+
key: d.value,
|
|
4343
4344
|
class: "border-0 relative z-4",
|
|
4344
4345
|
readonly: ((b = P.value) == null ? void 0 : b.key) !== S.key,
|
|
4345
4346
|
value: S.content,
|
|
@@ -4348,7 +4349,7 @@ const As = {
|
|
|
4348
4349
|
onFocus: $[0] || ($[0] = (le) => _(!0)),
|
|
4349
4350
|
onBlur: $[1] || ($[1] = (le) => _(!1))
|
|
4350
4351
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4351
|
-
((
|
|
4352
|
+
((L = P.value) == null ? void 0 : L.key) === S.key ? (i(), u(E, { key: 0 }, [
|
|
4352
4353
|
f("span", Gs, [
|
|
4353
4354
|
V(_e, {
|
|
4354
4355
|
name: "close",
|
|
@@ -4358,23 +4359,23 @@ const As = {
|
|
|
4358
4359
|
}, null, 8, ["onClick"])
|
|
4359
4360
|
]),
|
|
4360
4361
|
f("div", Ys, [
|
|
4361
|
-
(i(),
|
|
4362
|
+
(i(), u(E, null, Z(8, (le, W) => f("div", {
|
|
4362
4363
|
key: le,
|
|
4363
4364
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4364
|
-
style: q({ ...
|
|
4365
|
+
style: q({ ...c[W], transform: "translate(-50%, -50%)" }),
|
|
4365
4366
|
onMousedown: (te) => B(te, W)
|
|
4366
4367
|
}, null, 44, qs)), 64))
|
|
4367
4368
|
])
|
|
4368
4369
|
], 64)) : M("", !0)
|
|
4369
4370
|
], 46, Ws)), [
|
|
4370
|
-
[x(
|
|
4371
|
+
[x(n), z],
|
|
4371
4372
|
[x(l), (le) => ue(null, le)]
|
|
4372
4373
|
]);
|
|
4373
4374
|
}), 128))
|
|
4374
4375
|
], 64));
|
|
4375
4376
|
}
|
|
4376
4377
|
});
|
|
4377
|
-
const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]),
|
|
4378
|
+
const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["viewBox"], js = {
|
|
4378
4379
|
x: "0",
|
|
4379
4380
|
y: "0",
|
|
4380
4381
|
width: "100%",
|
|
@@ -4397,32 +4398,32 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4397
4398
|
setup(e, { emit: t }) {
|
|
4398
4399
|
const a = e;
|
|
4399
4400
|
Gt("ckeditorOrigin", a.ckeditorOrigin);
|
|
4400
|
-
const l = Y([]),
|
|
4401
|
+
const l = Y([]), n = Y([]), c = Y(2), o = Y(0), s = Y(0), r = Y(), d = Y([]), p = Y([]), A = Y([]), h = Y([]), T = N(() => a.data.map((b) => ({
|
|
4401
4402
|
...b,
|
|
4402
4403
|
__tag__: Ct(),
|
|
4403
4404
|
rawChildren: b.children,
|
|
4404
|
-
children: b.children.map((
|
|
4405
|
-
}))),
|
|
4406
|
-
const b =
|
|
4407
|
-
return X.value && [m.slove].includes(
|
|
4405
|
+
children: b.children.map((L) => ({ ...L, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
|
|
4406
|
+
}))), Q = N(() => {
|
|
4407
|
+
const b = T.value[T.value.length - 1], L = b.rawChildren[b.rawChildren.length - 1];
|
|
4408
|
+
return X.value && [m.slove].includes(L == null ? void 0 : L.problemType) && L.id;
|
|
4408
4409
|
}), G = N(() => {
|
|
4409
4410
|
var b;
|
|
4410
|
-
return a.layout.bindFlag && !!((b = Oe.find((
|
|
4411
|
-
}),
|
|
4411
|
+
return a.layout.bindFlag && !!((b = Oe.find((L) => L.code === a.layout.paper)) != null && b.isMultCol);
|
|
4412
|
+
}), I = N(() => a.isFinal ? 0 : 10), H = N(() => a.isFinal ? 10 : 0), v = N(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || c.value || 1), P = N(() => Math.ceil(v.value / 2) * 2), X = N(() => ["sheet", "sheetCard"].includes(a.layout.mode)), z = N(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = N(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = N(() => g[a.layout.paper].width - _.value.left - _.value.right), w = N(() => g[a.layout.paper].height - _.value.top - _.value.bottom), R = N(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), B = N(() => ({
|
|
4412
4413
|
width: `${g[a.layout.paper].width}px`,
|
|
4413
|
-
height: `${(g[a.layout.paper].height +
|
|
4414
|
+
height: `${(g[a.layout.paper].height + I.value) * P.value - I.value}px`
|
|
4414
4415
|
})), ye = N(() => ({
|
|
4415
4416
|
width: `${g[a.layout.paper].width}px`,
|
|
4416
4417
|
height: `${g[a.layout.paper].height}px`,
|
|
4417
4418
|
padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
|
|
4418
|
-
marginBottom: `${
|
|
4419
|
+
marginBottom: `${I.value}px`
|
|
4419
4420
|
})), pe = N(() => {
|
|
4420
|
-
var
|
|
4421
|
-
const b = (
|
|
4421
|
+
var L;
|
|
4422
|
+
const b = (L = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : L.isMultCol;
|
|
4422
4423
|
return {
|
|
4423
|
-
left: `${_.value.left + (
|
|
4424
|
+
left: `${_.value.left + (s.value ? s.value + S(0) : 0)}px`,
|
|
4424
4425
|
top: `${_.value.top}px`,
|
|
4425
|
-
width: b ? `${
|
|
4426
|
+
width: b ? `${R.value}px` : `${C.value}px`
|
|
4426
4427
|
};
|
|
4427
4428
|
});
|
|
4428
4429
|
Me(() => [JSON.stringify({ ...a.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(a.fontConfig), JSON.stringify(a.info), JSON.stringify(a.data)].join(""), () => {
|
|
@@ -4430,28 +4431,28 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4430
4431
|
re();
|
|
4431
4432
|
}, 100);
|
|
4432
4433
|
}, { immediate: !0 }), Me(() => G.value, () => {
|
|
4433
|
-
|
|
4434
|
+
s.value = G.value ? 100 : 0;
|
|
4434
4435
|
}, { immediate: !0 });
|
|
4435
|
-
const ie = (b) => b % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (b,
|
|
4436
|
-
const
|
|
4437
|
-
return
|
|
4438
|
-
}, D = (b,
|
|
4439
|
-
b ?
|
|
4440
|
-
}, $ = (b,
|
|
4441
|
-
b ? p.value[
|
|
4442
|
-
}, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0,
|
|
4436
|
+
const ie = (b) => b % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (b, L) => Math.floor(L / 2) * (a.layout.column + a.layout.backColumn) + L % 2 * a.layout.column + b, ue = (b) => {
|
|
4437
|
+
const L = b % (a.layout.column + a.layout.backColumn);
|
|
4438
|
+
return L >= a.layout.column ? L - a.layout.column : L;
|
|
4439
|
+
}, D = (b, L) => {
|
|
4440
|
+
b ? d.value[L] = b : d.value.splice(L, 1);
|
|
4441
|
+
}, $ = (b, L) => {
|
|
4442
|
+
b ? p.value[L] = b : p.value.splice(L, 1);
|
|
4443
|
+
}, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, K = (b, L = !1) => (C.value - (s.value ? s.value + S(b) : 0) + S(b)) / ie(b) - S(b) - z.value.left - z.value.right + (L ? z.value.left + z.value.right : 0), we = (b, L) => {
|
|
4443
4444
|
var W, te;
|
|
4444
|
-
const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((W = A.value[Math.min(
|
|
4445
|
+
const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((W = A.value[Math.min(L, 1)]) == null ? void 0 : W.offsetHeight) || 0;
|
|
4445
4446
|
return {
|
|
4446
|
-
left: `${_.value.left + (
|
|
4447
|
-
top: `${le + _.value.top + (!
|
|
4448
|
-
width: `${
|
|
4449
|
-
height: `${
|
|
4447
|
+
left: `${_.value.left + (L % 2 ? 0 : s.value ? s.value + S(b) : 0) + z.value.left + ue(b) * (K(b) + S(b) + z.value.left + z.value.right)}px`,
|
|
4448
|
+
top: `${le + _.value.top + (!L && !b ? 0 : z.value.top)}px`,
|
|
4449
|
+
width: `${K(b)}px`,
|
|
4450
|
+
height: `${w.value - le - (!L && !b ? 0 : z.value.top) - z.value.bottom}px`,
|
|
4450
4451
|
contentHeight: `${(te = l.value[b]) == null ? void 0 : te.height}px`
|
|
4451
4452
|
};
|
|
4452
|
-
}, ae = (b,
|
|
4453
|
-
|
|
4454
|
-
|
|
4453
|
+
}, ae = (b, L = !1) => {
|
|
4454
|
+
n.value = b.map((le) => ({ ...le })), L && (l.value = [...b], o.value += 1, Je(() => {
|
|
4455
|
+
c.value = Math.ceil(l.value.length / a.layout.column), n.value = [], p.value.forEach((le, W) => {
|
|
4455
4456
|
var te, Se;
|
|
4456
4457
|
!le || !le.col || ((te = l.value[W]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[W]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
|
|
4457
4458
|
}), setTimeout(() => {
|
|
@@ -4459,10 +4460,10 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4459
4460
|
config: {
|
|
4460
4461
|
...a.info,
|
|
4461
4462
|
layout: a.layout,
|
|
4462
|
-
pageTotal:
|
|
4463
|
-
bindWidth:
|
|
4464
|
-
pageMargin:
|
|
4465
|
-
pageDom:
|
|
4463
|
+
pageTotal: v.value,
|
|
4464
|
+
bindWidth: s.value,
|
|
4465
|
+
pageMargin: I.value,
|
|
4466
|
+
pageDom: d.value.slice(0, v.value),
|
|
4466
4467
|
colDom: p.value.map((W) => W.col),
|
|
4467
4468
|
colViewDom: p.value.map((W) => W.colView)
|
|
4468
4469
|
},
|
|
@@ -4473,65 +4474,65 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4473
4474
|
}));
|
|
4474
4475
|
}, re = () => {
|
|
4475
4476
|
Is({
|
|
4476
|
-
el:
|
|
4477
|
-
data:
|
|
4477
|
+
el: r.value,
|
|
4478
|
+
data: T.value,
|
|
4478
4479
|
column: a.layout.column,
|
|
4479
4480
|
backColumn: a.layout.backColumn || a.layout.column,
|
|
4480
4481
|
getColSize: we,
|
|
4481
4482
|
change: ae
|
|
4482
4483
|
});
|
|
4483
|
-
}, be = (b = { type:
|
|
4484
|
+
}, be = (b = { type: U.page, value: {} }) => {
|
|
4484
4485
|
t("toggleActive", b);
|
|
4485
4486
|
};
|
|
4486
|
-
return (b,
|
|
4487
|
+
return (b, L) => {
|
|
4487
4488
|
var le;
|
|
4488
|
-
return i(),
|
|
4489
|
-
b.readonly ? M("", !0) : (i(),
|
|
4489
|
+
return i(), u(E, null, [
|
|
4490
|
+
b.readonly ? M("", !0) : (i(), j($s, {
|
|
4490
4491
|
key: 0,
|
|
4491
4492
|
ColList: l.value,
|
|
4492
4493
|
ColDom: p.value.map((W) => W.col),
|
|
4493
4494
|
ImgData: b.imgData,
|
|
4494
4495
|
TxtData: b.txtData,
|
|
4495
|
-
onDelAbsImgItem:
|
|
4496
|
-
onDelAbsTxtItem:
|
|
4497
|
-
onChangeLayoutStatus:
|
|
4496
|
+
onDelAbsImgItem: L[0] || (L[0] = (W) => t("delAbsImgItem", W)),
|
|
4497
|
+
onDelAbsTxtItem: L[1] || (L[1] = (W) => t("delAbsTxtItem", W)),
|
|
4498
|
+
onChangeLayoutStatus: L[2] || (L[2] = (W) => t("changeLayoutStatus", W))
|
|
4498
4499
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4499
4500
|
f("div", {
|
|
4500
4501
|
class: "flex-1 overflow-auto relative z-1",
|
|
4501
4502
|
id: "alit-layout",
|
|
4502
|
-
onClick:
|
|
4503
|
+
onClick: L[14] || (L[14] = (W) => be())
|
|
4503
4504
|
}, [
|
|
4504
4505
|
f("div", {
|
|
4505
4506
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4506
4507
|
ref_key: "rawDom",
|
|
4507
|
-
ref:
|
|
4508
|
+
ref: r
|
|
4508
4509
|
}, [
|
|
4509
|
-
|
|
4510
|
-
W.isHidden ? M("", !0) : (i(),
|
|
4510
|
+
n.value.length ? (i(!0), u(E, { key: 0 }, Z((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (W, te) => (i(), u(E, null, [
|
|
4511
|
+
W.isHidden ? M("", !0) : (i(), j(St, {
|
|
4511
4512
|
key: 0,
|
|
4512
4513
|
item: W,
|
|
4513
4514
|
showColBorder: X.value,
|
|
4514
|
-
isFirst: !te &&
|
|
4515
|
+
isFirst: !te && n.value.length === 1,
|
|
4515
4516
|
layout: b.layout
|
|
4516
4517
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4517
|
-
X.value ? (i(),
|
|
4518
|
+
X.value ? (i(), u("div", {
|
|
4518
4519
|
key: 1,
|
|
4519
4520
|
class: oe([!W.children.length && W.problemType && "p-1 min-h-[2rem]"])
|
|
4520
4521
|
}, [
|
|
4521
|
-
(i(),
|
|
4522
|
+
(i(), j(Ge, {
|
|
4522
4523
|
data: W,
|
|
4523
|
-
key:
|
|
4524
|
+
key: n.value.length,
|
|
4524
4525
|
layout: b.layout,
|
|
4525
4526
|
target: b.target,
|
|
4526
4527
|
noPortrait: "",
|
|
4527
|
-
width:
|
|
4528
|
+
width: K(n.value.length - 1) - 10
|
|
4528
4529
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4529
|
-
], 2)) : (i(),
|
|
4530
|
+
], 2)) : (i(), j(Ge, {
|
|
4530
4531
|
data: W,
|
|
4531
|
-
key:
|
|
4532
|
+
key: n.value.length,
|
|
4532
4533
|
layout: b.layout,
|
|
4533
4534
|
target: b.target,
|
|
4534
|
-
width:
|
|
4535
|
+
width: K(n.value.length - 1)
|
|
4535
4536
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4536
4537
|
], 64))), 256)) : M("", !0)
|
|
4537
4538
|
], 512),
|
|
@@ -4543,57 +4544,57 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4543
4544
|
imgData: b.imgData,
|
|
4544
4545
|
txtData: b.txtData,
|
|
4545
4546
|
layout: b.layout,
|
|
4546
|
-
pageMargin:
|
|
4547
|
-
onChangeAbsImgItem:
|
|
4548
|
-
onDelAbsImgItem:
|
|
4549
|
-
onChangeAbsTxtItem:
|
|
4550
|
-
onDelAbsTxtItem:
|
|
4547
|
+
pageMargin: H.value,
|
|
4548
|
+
onChangeAbsImgItem: L[3] || (L[3] = (W) => t("changeAbsImgItem", W)),
|
|
4549
|
+
onDelAbsImgItem: L[4] || (L[4] = (W) => t("delAbsImgItem", W)),
|
|
4550
|
+
onChangeAbsTxtItem: L[5] || (L[5] = (W) => t("changeAbsTxtItem", W)),
|
|
4551
|
+
onDelAbsTxtItem: L[6] || (L[6] = (W) => t("delAbsTxtItem", W))
|
|
4551
4552
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4552
|
-
(i(),
|
|
4553
|
+
(i(), u("svg", {
|
|
4553
4554
|
viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
|
|
4554
4555
|
version: "1.1",
|
|
4555
4556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4556
4557
|
key: o.value
|
|
4557
4558
|
}, [
|
|
4558
|
-
(i(),
|
|
4559
|
-
(i(!0),
|
|
4559
|
+
(i(), u("foreignObject", js, [
|
|
4560
|
+
(i(!0), u(E, null, Z(P.value, (W, te) => (i(), u("div", {
|
|
4560
4561
|
key: W,
|
|
4561
4562
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4562
4563
|
ref_for: !0,
|
|
4563
4564
|
ref: (Se) => D(Se, te),
|
|
4564
4565
|
style: q(ye.value)
|
|
4565
4566
|
}, [
|
|
4566
|
-
te <
|
|
4567
|
+
te < v.value ? (i(), u(E, { key: 0 }, [
|
|
4567
4568
|
V(wo, {
|
|
4568
4569
|
layout: b.layout,
|
|
4569
4570
|
currentPage: te,
|
|
4570
|
-
totalPage:
|
|
4571
|
-
columnContentWidth:
|
|
4571
|
+
totalPage: v.value,
|
|
4572
|
+
columnContentWidth: K(te % 2 ? b.layout.column : 0, !0),
|
|
4572
4573
|
columnMargin: S(te % 2 ? b.layout.column : 0),
|
|
4573
|
-
bindWidth:
|
|
4574
|
+
bindWidth: s.value,
|
|
4574
4575
|
padding: _.value
|
|
4575
4576
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4576
|
-
b.layout.sloganFlag ? (i(),
|
|
4577
|
+
b.layout.sloganFlag ? (i(), j($o, {
|
|
4577
4578
|
key: 0,
|
|
4578
4579
|
info: b.info,
|
|
4579
4580
|
layout: b.layout,
|
|
4580
|
-
onChange:
|
|
4581
|
+
onChange: L[7] || (L[7] = (Se) => t("changeInfo", Se))
|
|
4581
4582
|
}, null, 8, ["info", "layout"])) : M("", !0),
|
|
4582
4583
|
V(Za, {
|
|
4583
4584
|
ref_for: !0,
|
|
4584
4585
|
ref_key: "bindDom",
|
|
4585
4586
|
ref: h,
|
|
4586
4587
|
currentPage: te,
|
|
4587
|
-
width:
|
|
4588
|
-
height:
|
|
4588
|
+
width: s.value,
|
|
4589
|
+
height: w.value,
|
|
4589
4590
|
isBindFlag: G.value
|
|
4590
4591
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
|
|
4591
|
-
!(te % 2) || te === 1 &&
|
|
4592
|
+
!(te % 2) || te === 1 && v.value < 3 ? (i(), u("div", {
|
|
4592
4593
|
key: 1,
|
|
4593
4594
|
ref_for: !0,
|
|
4594
4595
|
ref_key: "titleDom",
|
|
4595
4596
|
ref: A,
|
|
4596
|
-
class: oe(["absolute text-black", te === 1 &&
|
|
4597
|
+
class: oe(["absolute text-black", te === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4597
4598
|
style: q(pe.value)
|
|
4598
4599
|
}, [
|
|
4599
4600
|
V(Po, {
|
|
@@ -4605,30 +4606,30 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4605
4606
|
layout: b.layout,
|
|
4606
4607
|
fontConfig: b.fontConfig,
|
|
4607
4608
|
data: b.data,
|
|
4608
|
-
onChange:
|
|
4609
|
+
onChange: L[8] || (L[8] = (Se) => t("changeInfo", Se))
|
|
4609
4610
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
4610
4611
|
V(ka, {
|
|
4611
4612
|
layout: b.layout,
|
|
4612
4613
|
info: b.info,
|
|
4613
4614
|
isBindFlag: G.value,
|
|
4614
|
-
onChange:
|
|
4615
|
+
onChange: L[9] || (L[9] = (Se) => t("changeExtentInfo", Se))
|
|
4615
4616
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4616
4617
|
V(Ba, {
|
|
4617
4618
|
layout: b.layout,
|
|
4618
4619
|
isBindFlag: G.value
|
|
4619
4620
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4620
|
-
te ? M("", !0) : (i(),
|
|
4621
|
+
te ? M("", !0) : (i(), j(Ya, {
|
|
4621
4622
|
key: 0,
|
|
4622
4623
|
layout: b.layout,
|
|
4623
4624
|
data: b.data
|
|
4624
4625
|
}, null, 8, ["layout", "data"])),
|
|
4625
|
-
b.layout.writeScoreFlag && !te ? (i(),
|
|
4626
|
+
b.layout.writeScoreFlag && !te ? (i(), j(_l, {
|
|
4626
4627
|
key: 1,
|
|
4627
4628
|
info: b.info,
|
|
4628
4629
|
layout: b.layout
|
|
4629
4630
|
}, null, 8, ["info", "layout"])) : M("", !0)
|
|
4630
4631
|
], 6)) : M("", !0),
|
|
4631
|
-
(i(!0),
|
|
4632
|
+
(i(!0), u(E, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Pe) => (i(), j(Qa, {
|
|
4632
4633
|
ref_for: !0,
|
|
4633
4634
|
ref: (We) => $(We, fe(Pe, te)),
|
|
4634
4635
|
styleInfo: we(fe(Pe, te), te),
|
|
@@ -4639,46 +4640,46 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4639
4640
|
default: Ft(() => {
|
|
4640
4641
|
var We;
|
|
4641
4642
|
return [
|
|
4642
|
-
(i(!0),
|
|
4643
|
+
(i(!0), u(E, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
|
|
4643
4644
|
var mt;
|
|
4644
|
-
return i(),
|
|
4645
|
-
ge.isHidden ? M("", !0) : (i(),
|
|
4645
|
+
return i(), u(E, null, [
|
|
4646
|
+
ge.isHidden ? M("", !0) : (i(), j(St, {
|
|
4646
4647
|
key: 0,
|
|
4647
4648
|
item: ge,
|
|
4648
4649
|
showColBorder: X.value,
|
|
4649
4650
|
isFirst: !te && !Pe && !Ht,
|
|
4650
4651
|
layout: b.layout,
|
|
4651
4652
|
isActive: ((mt = b.target.value) == null ? void 0 : mt.id) === ge.id,
|
|
4652
|
-
onClick: (Ce) => be({ type: ge.problemType ? x(
|
|
4653
|
+
onClick: (Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }),
|
|
4653
4654
|
onDbclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4654
4655
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
4655
|
-
X.value ? (i(),
|
|
4656
|
+
X.value ? (i(), u("div", {
|
|
4656
4657
|
key: 1,
|
|
4657
|
-
class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(
|
|
4658
|
-
onClick: Le((Ce) => be({ type: ge.problemType ? x(
|
|
4658
|
+
class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(U).headline && b.target.value.id === ge.id && "active_headline"]),
|
|
4659
|
+
onClick: Le((Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }), ["stop"]),
|
|
4659
4660
|
onDblclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4660
4661
|
}, [
|
|
4661
4662
|
V(Ge, {
|
|
4662
4663
|
data: ge,
|
|
4663
4664
|
layout: b.layout,
|
|
4664
4665
|
target: b.target,
|
|
4665
|
-
width:
|
|
4666
|
-
onClick:
|
|
4667
|
-
onDbclick:
|
|
4666
|
+
width: K(fe(Pe, te)) - 10,
|
|
4667
|
+
onClick: L[10] || (L[10] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
|
|
4668
|
+
onDbclick: L[11] || (L[11] = (Ce) => t("dbProblemClick", Ce))
|
|
4668
4669
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4669
|
-
ge.children.length && ge.children[ge.children.length - 1].id ===
|
|
4670
|
+
ge.children.length && ge.children[ge.children.length - 1].id === Q.value ? (i(), u("div", {
|
|
4670
4671
|
key: 0,
|
|
4671
4672
|
class: "border-t",
|
|
4672
4673
|
"data-block": x(Ee)
|
|
4673
4674
|
}, null, 8, Xs)) : M("", !0)
|
|
4674
|
-
], 42, Vs)) : (i(),
|
|
4675
|
+
], 42, Vs)) : (i(), j(Ge, {
|
|
4675
4676
|
key: 2,
|
|
4676
4677
|
data: ge,
|
|
4677
4678
|
layout: b.layout,
|
|
4678
4679
|
target: b.target,
|
|
4679
|
-
width:
|
|
4680
|
-
onClick:
|
|
4681
|
-
onDbclick:
|
|
4680
|
+
width: K(fe(Pe, te)),
|
|
4681
|
+
onClick: L[12] || (L[12] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
|
|
4682
|
+
onDbclick: L[13] || (L[13] = (Ce) => t("dbProblemClick", Ce))
|
|
4682
4683
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4683
4684
|
], 64);
|
|
4684
4685
|
}), 256))
|
|
@@ -4689,7 +4690,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4689
4690
|
], 64)) : M("", !0)
|
|
4690
4691
|
], 4))), 128))
|
|
4691
4692
|
]))
|
|
4692
|
-
], 8,
|
|
4693
|
+
], 8, Ks))
|
|
4693
4694
|
], 6)
|
|
4694
4695
|
])
|
|
4695
4696
|
], 64);
|