alit-layout 1.1.19 → 1.1.21
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 +1007 -1021
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, computed as z, openBlock as r, createElementBlock as
|
|
1
|
+
import { defineComponent as le, computed as z, openBlock as r, createElementBlock as u, Fragment as B, renderList as ae, createElementVNode as v, normalizeStyle as X, unref as I, toDisplayString as Z, createCommentVNode as D, ref as U, watch as Oe, normalizeClass as te, createBlock as J, createTextVNode as et, createVNode as oe, pushScopeId as Qe, popScopeId as qe, renderSlot as _t, onMounted as Ye, nextTick as nt, withModifiers as De, resolveComponent as Yt, resolveDynamicComponent as xt, normalizeProps as Ct, guardReactiveProps as St, withCtx as Mt, inject as Kt, withDirectives as $t, provide as Ut } from "vue";
|
|
2
2
|
const je = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -56,7 +56,7 @@ const je = {
|
|
|
56
56
|
{ name: "8k", code: "8k", size: "370*260mm", isMultCol: !0 },
|
|
57
57
|
{ name: "16k", code: "16k", size: "185*260mm" },
|
|
58
58
|
{ name: "B4", code: "b4", size: "353*250mm", isMultCol: !0 }
|
|
59
|
-
],
|
|
59
|
+
], x = {
|
|
60
60
|
a3: {
|
|
61
61
|
width: 1588,
|
|
62
62
|
height: 1124
|
|
@@ -169,134 +169,134 @@ const je = {
|
|
|
169
169
|
}, tt = ["a3", "a3+", "8k", "b4"], ft = {
|
|
170
170
|
article: {
|
|
171
171
|
a3: {
|
|
172
|
-
top:
|
|
173
|
-
right:
|
|
174
|
-
bottom:
|
|
175
|
-
left:
|
|
172
|
+
top: x.a3.width / 420 * 20.5,
|
|
173
|
+
right: x.a3.width / 420 * 20.5,
|
|
174
|
+
bottom: x.a3.width / 420 * 20.5,
|
|
175
|
+
left: x.a3.width / 420 * 20.5
|
|
176
176
|
},
|
|
177
177
|
"a3+": {
|
|
178
|
-
top:
|
|
179
|
-
right:
|
|
180
|
-
bottom:
|
|
181
|
-
left:
|
|
178
|
+
top: x["a3+"].width / 420 * 20.5,
|
|
179
|
+
right: x["a3+"].width / 420 * 20.5,
|
|
180
|
+
bottom: x["a3+"].width / 420 * 20.5,
|
|
181
|
+
left: x["a3+"].width / 420 * 20.5
|
|
182
182
|
},
|
|
183
183
|
a4: {
|
|
184
|
-
top:
|
|
185
|
-
right:
|
|
186
|
-
bottom:
|
|
187
|
-
left:
|
|
184
|
+
top: x.a4.width / 210 * 20.5,
|
|
185
|
+
right: x.a4.width / 210 * 20.5,
|
|
186
|
+
bottom: x.a4.width / 210 * 20.5,
|
|
187
|
+
left: x.a4.width / 210 * 20.5
|
|
188
188
|
},
|
|
189
189
|
a4x: {
|
|
190
|
-
top:
|
|
191
|
-
right:
|
|
192
|
-
bottom:
|
|
193
|
-
left:
|
|
190
|
+
top: x.b4.width / 353 * 20,
|
|
191
|
+
right: x.b4.width / 353 * 20,
|
|
192
|
+
bottom: x.b4.width / 353 * 20,
|
|
193
|
+
left: x.b4.width / 353 * 20
|
|
194
194
|
},
|
|
195
195
|
"8k": {
|
|
196
|
-
top:
|
|
197
|
-
right:
|
|
198
|
-
bottom:
|
|
199
|
-
left:
|
|
196
|
+
top: x["8k"].width / 370 * 17.5,
|
|
197
|
+
right: x["8k"].width / 370 * 17.5,
|
|
198
|
+
bottom: x["8k"].width / 370 * 17.5,
|
|
199
|
+
left: x["8k"].width / 370 * 17.5
|
|
200
200
|
},
|
|
201
201
|
"16k": {
|
|
202
|
-
top:
|
|
203
|
-
right:
|
|
204
|
-
bottom:
|
|
205
|
-
left:
|
|
202
|
+
top: x["16k"].width / 185 * 14.5,
|
|
203
|
+
right: x["16k"].width / 185 * 14.5,
|
|
204
|
+
bottom: x["16k"].width / 185 * 14.5,
|
|
205
|
+
left: x["16k"].width / 185 * 14.5
|
|
206
206
|
},
|
|
207
207
|
b4: {
|
|
208
|
-
top:
|
|
209
|
-
right:
|
|
210
|
-
bottom:
|
|
211
|
-
left:
|
|
208
|
+
top: x.b4.width / 353 * 17.5,
|
|
209
|
+
right: x.b4.width / 353 * 17.5,
|
|
210
|
+
bottom: x.b4.width / 353 * 17.5,
|
|
211
|
+
left: x.b4.width / 353 * 17.5
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
sheet: {
|
|
215
215
|
a3: {
|
|
216
|
-
top:
|
|
217
|
-
right:
|
|
218
|
-
bottom:
|
|
219
|
-
left:
|
|
216
|
+
top: x.a3.width / 420 * 19,
|
|
217
|
+
right: x.a3.width / 420 * 19,
|
|
218
|
+
bottom: x.a3.width / 420 * 19,
|
|
219
|
+
left: x.a3.width / 420 * 19
|
|
220
220
|
},
|
|
221
221
|
"a3+": {
|
|
222
|
-
top:
|
|
223
|
-
right:
|
|
224
|
-
bottom:
|
|
225
|
-
left:
|
|
222
|
+
top: x["a3+"].width / 420 * 19,
|
|
223
|
+
right: x["a3+"].width / 420 * 19,
|
|
224
|
+
bottom: x["a3+"].width / 420 * 19,
|
|
225
|
+
left: x["a3+"].width / 420 * 19
|
|
226
226
|
},
|
|
227
227
|
a4: {
|
|
228
|
-
top:
|
|
229
|
-
right:
|
|
230
|
-
bottom:
|
|
231
|
-
left:
|
|
228
|
+
top: x.a4.width / 210 * 19,
|
|
229
|
+
right: x.a4.width / 210 * 19,
|
|
230
|
+
bottom: x.a4.width / 210 * 19,
|
|
231
|
+
left: x.a4.width / 210 * 19
|
|
232
232
|
},
|
|
233
233
|
a4x: {
|
|
234
|
-
top:
|
|
235
|
-
right:
|
|
236
|
-
bottom:
|
|
237
|
-
left:
|
|
234
|
+
top: x.b4.width / 353 * 20,
|
|
235
|
+
right: x.b4.width / 353 * 20,
|
|
236
|
+
bottom: x.b4.width / 353 * 20,
|
|
237
|
+
left: x.b4.width / 353 * 20
|
|
238
238
|
},
|
|
239
239
|
"8k": {
|
|
240
|
-
top:
|
|
241
|
-
right:
|
|
242
|
-
bottom:
|
|
243
|
-
left:
|
|
240
|
+
top: x["8k"].width / 370 * 16,
|
|
241
|
+
right: x["8k"].width / 370 * 16,
|
|
242
|
+
bottom: x["8k"].width / 370 * 16,
|
|
243
|
+
left: x["8k"].width / 370 * 16
|
|
244
244
|
},
|
|
245
245
|
"16k": {
|
|
246
|
-
top:
|
|
247
|
-
right:
|
|
248
|
-
bottom:
|
|
249
|
-
left:
|
|
246
|
+
top: x["16k"].width / 185 * 15,
|
|
247
|
+
right: x["16k"].width / 185 * 15,
|
|
248
|
+
bottom: x["16k"].width / 185 * 15,
|
|
249
|
+
left: x["16k"].width / 185 * 15
|
|
250
250
|
},
|
|
251
251
|
b4: {
|
|
252
|
-
top:
|
|
253
|
-
right:
|
|
254
|
-
bottom:
|
|
255
|
-
left:
|
|
252
|
+
top: x.b4.width / 353 * 19,
|
|
253
|
+
right: x.b4.width / 353 * 19,
|
|
254
|
+
bottom: x.b4.width / 353 * 19,
|
|
255
|
+
left: x.b4.width / 353 * 19
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
sheetCard: {
|
|
259
259
|
a3: {
|
|
260
|
-
top:
|
|
261
|
-
right:
|
|
262
|
-
bottom:
|
|
263
|
-
left:
|
|
260
|
+
top: x.a3.width / 420 * 19,
|
|
261
|
+
right: x.a3.width / 420 * 19,
|
|
262
|
+
bottom: x.a3.width / 420 * 19,
|
|
263
|
+
left: x.a3.width / 420 * 19
|
|
264
264
|
},
|
|
265
265
|
"a3+": {
|
|
266
|
-
top:
|
|
267
|
-
right:
|
|
268
|
-
bottom:
|
|
269
|
-
left:
|
|
266
|
+
top: x["a3+"].width / 420 * 19,
|
|
267
|
+
right: x["a3+"].width / 420 * 19,
|
|
268
|
+
bottom: x["a3+"].width / 420 * 19,
|
|
269
|
+
left: x["a3+"].width / 420 * 19
|
|
270
270
|
},
|
|
271
271
|
a4: {
|
|
272
|
-
top:
|
|
273
|
-
right:
|
|
274
|
-
bottom:
|
|
275
|
-
left:
|
|
272
|
+
top: x.a4.width / 210 * 19,
|
|
273
|
+
right: x.a4.width / 210 * 19,
|
|
274
|
+
bottom: x.a4.width / 210 * 19,
|
|
275
|
+
left: x.a4.width / 210 * 19
|
|
276
276
|
},
|
|
277
277
|
a4x: {
|
|
278
|
-
top:
|
|
279
|
-
right:
|
|
280
|
-
bottom:
|
|
281
|
-
left:
|
|
278
|
+
top: x.b4.width / 353 * 20,
|
|
279
|
+
right: x.b4.width / 353 * 20,
|
|
280
|
+
bottom: x.b4.width / 353 * 20,
|
|
281
|
+
left: x.b4.width / 353 * 20
|
|
282
282
|
},
|
|
283
283
|
"8k": {
|
|
284
|
-
top:
|
|
285
|
-
right:
|
|
286
|
-
bottom:
|
|
287
|
-
left:
|
|
284
|
+
top: x["8k"].width / 370 * 16,
|
|
285
|
+
right: x["8k"].width / 370 * 16,
|
|
286
|
+
bottom: x["8k"].width / 370 * 16,
|
|
287
|
+
left: x["8k"].width / 370 * 16
|
|
288
288
|
},
|
|
289
289
|
"16k": {
|
|
290
|
-
top:
|
|
291
|
-
right:
|
|
292
|
-
bottom:
|
|
293
|
-
left:
|
|
290
|
+
top: x["16k"].width / 185 * 15,
|
|
291
|
+
right: x["16k"].width / 185 * 15,
|
|
292
|
+
bottom: x["16k"].width / 185 * 15,
|
|
293
|
+
left: x["16k"].width / 185 * 15
|
|
294
294
|
},
|
|
295
295
|
b4: {
|
|
296
|
-
top:
|
|
297
|
-
right:
|
|
298
|
-
bottom:
|
|
299
|
-
left:
|
|
296
|
+
top: x.b4.width / 353 * 19,
|
|
297
|
+
right: x.b4.width / 353 * 19,
|
|
298
|
+
bottom: x.b4.width / 353 * 19,
|
|
299
|
+
left: x.b4.width / 353 * 19
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}, Xt = {
|
|
@@ -631,7 +631,7 @@ const je = {
|
|
|
631
631
|
max: "max",
|
|
632
632
|
col_1: 1,
|
|
633
633
|
col_2: 2
|
|
634
|
-
},
|
|
634
|
+
}, h = {
|
|
635
635
|
public: {
|
|
636
636
|
scoreShowFlag: "scoreShowType",
|
|
637
637
|
// 计分提示
|
|
@@ -793,7 +793,7 @@ const je = {
|
|
|
793
793
|
{
|
|
794
794
|
type: "radio",
|
|
795
795
|
label: "横向分栏",
|
|
796
|
-
key:
|
|
796
|
+
key: h.article.col_a,
|
|
797
797
|
target: [O.headline],
|
|
798
798
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
799
799
|
option: [
|
|
@@ -806,7 +806,7 @@ const je = {
|
|
|
806
806
|
{
|
|
807
807
|
type: "radio",
|
|
808
808
|
label: "横向分栏",
|
|
809
|
-
key:
|
|
809
|
+
key: h.article.col_a,
|
|
810
810
|
target: [O.headline],
|
|
811
811
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
812
812
|
option: [
|
|
@@ -822,7 +822,7 @@ const je = {
|
|
|
822
822
|
{
|
|
823
823
|
type: "radio",
|
|
824
824
|
label: "插入题号样式控制",
|
|
825
|
-
key:
|
|
825
|
+
key: h.article.slove_d,
|
|
826
826
|
code: "slove_insert_sub",
|
|
827
827
|
target: [O.problem],
|
|
828
828
|
option: [
|
|
@@ -838,7 +838,7 @@ const je = {
|
|
|
838
838
|
{
|
|
839
839
|
type: "radio",
|
|
840
840
|
label: "展示样式",
|
|
841
|
-
key:
|
|
841
|
+
key: h.article.choice_a,
|
|
842
842
|
option: [
|
|
843
843
|
{ name: "分布式", code: _.choice_1 },
|
|
844
844
|
{ name: "集合式", code: _.choice_2 }
|
|
@@ -850,7 +850,7 @@ const je = {
|
|
|
850
850
|
{
|
|
851
851
|
type: "radio",
|
|
852
852
|
label: "展示样式",
|
|
853
|
-
key:
|
|
853
|
+
key: h.article.decide_a,
|
|
854
854
|
option: [
|
|
855
855
|
{ name: "对错", code: _.decide_1 },
|
|
856
856
|
{ name: "TF", code: _.decide_2 }
|
|
@@ -862,7 +862,7 @@ const je = {
|
|
|
862
862
|
{
|
|
863
863
|
type: "radio",
|
|
864
864
|
label: "打分框位置",
|
|
865
|
-
key:
|
|
865
|
+
key: h.article.fill_a,
|
|
866
866
|
option: [
|
|
867
867
|
{ name: "跟随下划线", code: _.fill_1 },
|
|
868
868
|
{ name: "跟随主题干", code: _.fill_2 },
|
|
@@ -877,7 +877,7 @@ const je = {
|
|
|
877
877
|
{
|
|
878
878
|
type: "radio",
|
|
879
879
|
label: "边框控制",
|
|
880
|
-
key:
|
|
880
|
+
key: h.article.slove_a,
|
|
881
881
|
option: [
|
|
882
882
|
{ name: "有边框", code: _.slove_1 },
|
|
883
883
|
{ name: "无边框", code: _.slove_2 }
|
|
@@ -886,8 +886,8 @@ const je = {
|
|
|
886
886
|
{
|
|
887
887
|
type: "radio",
|
|
888
888
|
label: "边框样式",
|
|
889
|
-
key:
|
|
890
|
-
show: (e) => e.style[
|
|
889
|
+
key: h.article.slove_c,
|
|
890
|
+
show: (e) => e.style[h.article.slove_a] === _.slove_1,
|
|
891
891
|
option: [
|
|
892
892
|
{ name: "标准边框", code: _.slove_3 },
|
|
893
893
|
{ name: "简易边框", code: _.slove_4 }
|
|
@@ -896,7 +896,7 @@ const je = {
|
|
|
896
896
|
{
|
|
897
897
|
type: "radio",
|
|
898
898
|
label: "题干显示控制",
|
|
899
|
-
key:
|
|
899
|
+
key: h.public.scoreShowFlag,
|
|
900
900
|
option: [
|
|
901
901
|
{ name: "内置题干", code: !0 },
|
|
902
902
|
{ name: "外置题干", code: !1 }
|
|
@@ -905,7 +905,7 @@ const je = {
|
|
|
905
905
|
{
|
|
906
906
|
type: "radio",
|
|
907
907
|
label: "插入题号样式控制",
|
|
908
|
-
key:
|
|
908
|
+
key: h.article.slove_d,
|
|
909
909
|
code: "slove_insert_sub",
|
|
910
910
|
target: [O.problem],
|
|
911
911
|
option: [
|
|
@@ -919,7 +919,7 @@ const je = {
|
|
|
919
919
|
{
|
|
920
920
|
type: "slider",
|
|
921
921
|
label: "格子尺寸",
|
|
922
|
-
key:
|
|
922
|
+
key: h.article.art_b,
|
|
923
923
|
detail: !0,
|
|
924
924
|
min: () => 27,
|
|
925
925
|
max: () => 40
|
|
@@ -927,7 +927,7 @@ const je = {
|
|
|
927
927
|
{
|
|
928
928
|
type: "input",
|
|
929
929
|
label: "设置字数",
|
|
930
|
-
key:
|
|
930
|
+
key: h.article.art_c,
|
|
931
931
|
detail: !0,
|
|
932
932
|
unit: "字",
|
|
933
933
|
target: [O.problem]
|
|
@@ -935,16 +935,16 @@ const je = {
|
|
|
935
935
|
{
|
|
936
936
|
type: "slider",
|
|
937
937
|
label: "字数游标分段",
|
|
938
|
-
key:
|
|
938
|
+
key: h.article.art_d,
|
|
939
939
|
detail: !0,
|
|
940
940
|
min: () => 1,
|
|
941
|
-
max: (e) => Math.floor(e.style[
|
|
941
|
+
max: (e) => Math.floor(e.style[h.article.art_c] / e.style[h.article.art_e]),
|
|
942
942
|
target: [O.problem]
|
|
943
943
|
},
|
|
944
944
|
{
|
|
945
945
|
type: "radio",
|
|
946
946
|
label: "字数分段区间",
|
|
947
|
-
key:
|
|
947
|
+
key: h.article.art_e,
|
|
948
948
|
option: [
|
|
949
949
|
{ name: "80", code: 80 },
|
|
950
950
|
{ name: "100", code: 100 }
|
|
@@ -960,7 +960,7 @@ const je = {
|
|
|
960
960
|
{
|
|
961
961
|
type: "radio",
|
|
962
962
|
label: "排列样式",
|
|
963
|
-
key:
|
|
963
|
+
key: h.sheet.choice_a,
|
|
964
964
|
option: [
|
|
965
965
|
{ name: "横排", code: _.choice_1 },
|
|
966
966
|
{ name: "竖排", code: _.choice_2 },
|
|
@@ -970,8 +970,8 @@ const je = {
|
|
|
970
970
|
{
|
|
971
971
|
type: "radio",
|
|
972
972
|
label: "排列方向",
|
|
973
|
-
key:
|
|
974
|
-
show: (e) => e.style[
|
|
973
|
+
key: h.sheet.choice_b,
|
|
974
|
+
show: (e) => e.style[h.sheet.choice_a] !== _.choice_2,
|
|
975
975
|
option: [
|
|
976
976
|
{ name: "横向", code: _.landscape },
|
|
977
977
|
{ name: "纵向", code: _.portrait }
|
|
@@ -980,8 +980,8 @@ const je = {
|
|
|
980
980
|
{
|
|
981
981
|
type: "radio",
|
|
982
982
|
label: "每组题数",
|
|
983
|
-
key:
|
|
984
|
-
show: (e) => [_.choice_2].includes(e.style[
|
|
983
|
+
key: h.sheet.choice_c,
|
|
984
|
+
show: (e) => [_.choice_2].includes(e.style[h.sheet.choice_a]),
|
|
985
985
|
option: [
|
|
986
986
|
{ name: "3题", code: 3 },
|
|
987
987
|
{ name: "4题", code: 4 },
|
|
@@ -992,8 +992,8 @@ const je = {
|
|
|
992
992
|
type: "slider",
|
|
993
993
|
label: "每组个数",
|
|
994
994
|
target: [O.page, O.headline],
|
|
995
|
-
key:
|
|
996
|
-
show: (e) => e.style[
|
|
995
|
+
key: h.sheet.choice_e,
|
|
996
|
+
show: (e) => e.style[h.sheet.choice_a] !== _.choice_2,
|
|
997
997
|
min: () => 1,
|
|
998
998
|
max: () => 20
|
|
999
999
|
},
|
|
@@ -1001,8 +1001,8 @@ const je = {
|
|
|
1001
1001
|
type: "slider",
|
|
1002
1002
|
label: "列数",
|
|
1003
1003
|
target: [O.page, O.headline],
|
|
1004
|
-
key:
|
|
1005
|
-
show: (e) => e.style[
|
|
1004
|
+
key: h.sheet.choice_d,
|
|
1005
|
+
show: (e) => e.style[h.sheet.choice_a] === _.choice_1,
|
|
1006
1006
|
min: () => 1,
|
|
1007
1007
|
max: () => 10
|
|
1008
1008
|
}
|
|
@@ -1012,7 +1012,7 @@ const je = {
|
|
|
1012
1012
|
{
|
|
1013
1013
|
type: "radio",
|
|
1014
1014
|
label: "展示样式",
|
|
1015
|
-
key:
|
|
1015
|
+
key: h.sheet.decide_a,
|
|
1016
1016
|
show: (e) => !e.notSelf,
|
|
1017
1017
|
option: [
|
|
1018
1018
|
{ name: "对错", code: _.decide_1 },
|
|
@@ -1025,7 +1025,7 @@ const je = {
|
|
|
1025
1025
|
{
|
|
1026
1026
|
type: "radio",
|
|
1027
1027
|
label: "题干显示控制",
|
|
1028
|
-
key:
|
|
1028
|
+
key: h.sheet.fill_b,
|
|
1029
1029
|
option: [
|
|
1030
1030
|
{ name: "显示题干", code: !0 },
|
|
1031
1031
|
{ name: "隐藏题干", code: !1 }
|
|
@@ -1034,8 +1034,8 @@ const je = {
|
|
|
1034
1034
|
{
|
|
1035
1035
|
type: "radio",
|
|
1036
1036
|
label: "打分框位置",
|
|
1037
|
-
key:
|
|
1038
|
-
show: (e) => e.style[
|
|
1037
|
+
key: h.sheet.fill_a,
|
|
1038
|
+
show: (e) => e.style[h.sheet.fill_b],
|
|
1039
1039
|
option: [
|
|
1040
1040
|
{ name: "跟随下划线", code: _.fill_1 },
|
|
1041
1041
|
{ name: "跟随主题干", code: _.fill_2 },
|
|
@@ -1045,9 +1045,9 @@ const je = {
|
|
|
1045
1045
|
{
|
|
1046
1046
|
type: "radio",
|
|
1047
1047
|
label: "分题换行",
|
|
1048
|
-
key:
|
|
1048
|
+
key: h.sheet.fill_c,
|
|
1049
1049
|
target: [O.page, O.headline],
|
|
1050
|
-
show: (e) => !e.style[
|
|
1050
|
+
show: (e) => !e.style[h.sheet.fill_b],
|
|
1051
1051
|
option: [
|
|
1052
1052
|
{ name: "开启", code: _.fill_1 },
|
|
1053
1053
|
{ name: "关闭", code: _.fill_2 }
|
|
@@ -1057,8 +1057,8 @@ const je = {
|
|
|
1057
1057
|
// 试题自身
|
|
1058
1058
|
type: "radio",
|
|
1059
1059
|
label: "每空宽度",
|
|
1060
|
-
key:
|
|
1061
|
-
show: (e) => !e.style[
|
|
1060
|
+
key: h.sheet.fill_d,
|
|
1061
|
+
show: (e) => !e.style[h.sheet.fill_b] && !e.children.length,
|
|
1062
1062
|
option: [
|
|
1063
1063
|
{ name: "1", code: 1 },
|
|
1064
1064
|
{ name: "1/2", code: 2 },
|
|
@@ -1072,8 +1072,8 @@ const je = {
|
|
|
1072
1072
|
// 其它
|
|
1073
1073
|
type: "radio",
|
|
1074
1074
|
label: "每行空数",
|
|
1075
|
-
key:
|
|
1076
|
-
show: (e) => !e.style[
|
|
1075
|
+
key: h.sheet.fill_f,
|
|
1076
|
+
show: (e) => !e.style[h.sheet.fill_b] && e.children.length,
|
|
1077
1077
|
option: [
|
|
1078
1078
|
{ name: "1", code: 1 },
|
|
1079
1079
|
{ name: "1/2", code: 2 },
|
|
@@ -1086,9 +1086,9 @@ const je = {
|
|
|
1086
1086
|
{
|
|
1087
1087
|
type: "slider",
|
|
1088
1088
|
label: "每空高度",
|
|
1089
|
-
key:
|
|
1089
|
+
key: h.sheet.fill_e,
|
|
1090
1090
|
target: [O.page, O.headline],
|
|
1091
|
-
show: (e) => !e.style[
|
|
1091
|
+
show: (e) => !e.style[h.sheet.fill_b],
|
|
1092
1092
|
max: () => 20
|
|
1093
1093
|
}
|
|
1094
1094
|
],
|
|
@@ -1097,7 +1097,7 @@ const je = {
|
|
|
1097
1097
|
{
|
|
1098
1098
|
type: "radio",
|
|
1099
1099
|
label: "题干显示控制",
|
|
1100
|
-
key:
|
|
1100
|
+
key: h.sheet.mix_a,
|
|
1101
1101
|
option: [
|
|
1102
1102
|
{ name: "显示题干", code: !0 },
|
|
1103
1103
|
{ name: "隐藏题干", code: !1 }
|
|
@@ -1107,10 +1107,10 @@ const je = {
|
|
|
1107
1107
|
// 试题自身
|
|
1108
1108
|
type: "radio",
|
|
1109
1109
|
label: "每空宽度",
|
|
1110
|
-
key:
|
|
1110
|
+
key: h.sheet.fill_d,
|
|
1111
1111
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1112
1112
|
target: [O.problem],
|
|
1113
|
-
show: (e) => !e.style[
|
|
1113
|
+
show: (e) => !e.style[h.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1114
1114
|
option: [
|
|
1115
1115
|
{ name: "1", code: 1 },
|
|
1116
1116
|
{ name: "1/2", code: 2 },
|
|
@@ -1123,15 +1123,15 @@ const je = {
|
|
|
1123
1123
|
{
|
|
1124
1124
|
type: "slider",
|
|
1125
1125
|
label: "每空高度",
|
|
1126
|
-
key:
|
|
1127
|
-
show: (e) => !e.style[
|
|
1126
|
+
key: h.sheet.fill_e,
|
|
1127
|
+
show: (e) => !e.style[h.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[h.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.fill),
|
|
1128
1128
|
max: () => 20
|
|
1129
1129
|
},
|
|
1130
1130
|
{
|
|
1131
1131
|
type: "radio",
|
|
1132
1132
|
label: "展示样式",
|
|
1133
|
-
key:
|
|
1134
|
-
show: (e) => !e.style[
|
|
1133
|
+
key: h.sheet.decide_a,
|
|
1134
|
+
show: (e) => !e.style[h.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[h.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1135
1135
|
option: [
|
|
1136
1136
|
{ name: "对错", code: _.decide_1 },
|
|
1137
1137
|
{ name: "TF", code: _.decide_2 }
|
|
@@ -1140,9 +1140,9 @@ const je = {
|
|
|
1140
1140
|
{
|
|
1141
1141
|
type: "radio",
|
|
1142
1142
|
label: "排列方向",
|
|
1143
|
-
key:
|
|
1143
|
+
key: h.sheet.choice_b,
|
|
1144
1144
|
target: [O.problem],
|
|
1145
|
-
show: (e) => !e.style[
|
|
1145
|
+
show: (e) => !e.style[h.sheet.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1146
1146
|
option: [
|
|
1147
1147
|
{ name: "横向", code: _.landscape },
|
|
1148
1148
|
{ name: "竖向", code: _.portrait }
|
|
@@ -1151,8 +1151,8 @@ const je = {
|
|
|
1151
1151
|
{
|
|
1152
1152
|
type: "radio",
|
|
1153
1153
|
label: "题目计分提示",
|
|
1154
|
-
key:
|
|
1155
|
-
show: (e) => !e.style[
|
|
1154
|
+
key: h.public.scoreShowFlag,
|
|
1155
|
+
show: (e) => !e.style[h.sheet.mix_a],
|
|
1156
1156
|
option: [
|
|
1157
1157
|
{ name: "隐藏", code: _.bracket_none },
|
|
1158
1158
|
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
@@ -1165,7 +1165,7 @@ const je = {
|
|
|
1165
1165
|
{
|
|
1166
1166
|
type: "radio",
|
|
1167
1167
|
label: "题目计分提示",
|
|
1168
|
-
key:
|
|
1168
|
+
key: h.public.scoreShowFlag,
|
|
1169
1169
|
show: (e) => !e.notSelf,
|
|
1170
1170
|
option: [
|
|
1171
1171
|
{ name: "隐藏", code: _.bracket_none },
|
|
@@ -1179,7 +1179,7 @@ const je = {
|
|
|
1179
1179
|
{
|
|
1180
1180
|
type: "radio",
|
|
1181
1181
|
label: "题目计分提示",
|
|
1182
|
-
key:
|
|
1182
|
+
key: h.public.scoreShowFlag,
|
|
1183
1183
|
show: (e) => !e.notSelf,
|
|
1184
1184
|
option: [
|
|
1185
1185
|
{ name: "隐藏", code: _.bracket_none },
|
|
@@ -1193,7 +1193,7 @@ const je = {
|
|
|
1193
1193
|
{
|
|
1194
1194
|
type: "slider",
|
|
1195
1195
|
label: "格子尺寸",
|
|
1196
|
-
key:
|
|
1196
|
+
key: h.article.art_b,
|
|
1197
1197
|
detail: !0,
|
|
1198
1198
|
min: () => 27,
|
|
1199
1199
|
max: () => 40
|
|
@@ -1201,7 +1201,7 @@ const je = {
|
|
|
1201
1201
|
{
|
|
1202
1202
|
type: "input",
|
|
1203
1203
|
label: "设置字数",
|
|
1204
|
-
key:
|
|
1204
|
+
key: h.sheet.art_c,
|
|
1205
1205
|
detail: !0,
|
|
1206
1206
|
unit: "字",
|
|
1207
1207
|
target: [O.problem]
|
|
@@ -1209,16 +1209,16 @@ const je = {
|
|
|
1209
1209
|
{
|
|
1210
1210
|
type: "slider",
|
|
1211
1211
|
label: "字数游标分段",
|
|
1212
|
-
key:
|
|
1212
|
+
key: h.sheet.art_d,
|
|
1213
1213
|
detail: !0,
|
|
1214
1214
|
min: () => 1,
|
|
1215
|
-
max: (e) => Math.floor(e.style[
|
|
1215
|
+
max: (e) => Math.floor(e.style[h.sheet.art_c] / e.style[h.sheet.art_e]),
|
|
1216
1216
|
target: [O.problem]
|
|
1217
1217
|
},
|
|
1218
1218
|
{
|
|
1219
1219
|
type: "radio",
|
|
1220
1220
|
label: "字数分段区间",
|
|
1221
|
-
key:
|
|
1221
|
+
key: h.sheet.art_e,
|
|
1222
1222
|
option: [
|
|
1223
1223
|
{ name: "80", code: 80 },
|
|
1224
1224
|
{ name: "100", code: 100 }
|
|
@@ -1229,7 +1229,7 @@ const je = {
|
|
|
1229
1229
|
{
|
|
1230
1230
|
type: "radio",
|
|
1231
1231
|
label: "题目计分提示",
|
|
1232
|
-
key:
|
|
1232
|
+
key: h.public.scoreShowFlag,
|
|
1233
1233
|
option: [
|
|
1234
1234
|
{ name: "隐藏", code: _.bracket_none },
|
|
1235
1235
|
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
@@ -1242,7 +1242,7 @@ const je = {
|
|
|
1242
1242
|
{
|
|
1243
1243
|
type: "radio",
|
|
1244
1244
|
label: "主客分离",
|
|
1245
|
-
key:
|
|
1245
|
+
key: h.sheet.synthesis_a,
|
|
1246
1246
|
option: [
|
|
1247
1247
|
{ name: "分离", code: !0 },
|
|
1248
1248
|
{ name: "不分离", code: !1 }
|
|
@@ -1251,7 +1251,7 @@ const je = {
|
|
|
1251
1251
|
{
|
|
1252
1252
|
type: "radio",
|
|
1253
1253
|
label: "题目计分提示",
|
|
1254
|
-
key:
|
|
1254
|
+
key: h.public.scoreShowFlag,
|
|
1255
1255
|
option: [
|
|
1256
1256
|
{ name: "隐藏", code: _.bracket_none },
|
|
1257
1257
|
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
@@ -1266,7 +1266,7 @@ const je = {
|
|
|
1266
1266
|
{
|
|
1267
1267
|
type: "radio",
|
|
1268
1268
|
label: "排列样式",
|
|
1269
|
-
key:
|
|
1269
|
+
key: h.sheetCard.choice_a,
|
|
1270
1270
|
option: [
|
|
1271
1271
|
{ name: "横排", code: _.choice_1 },
|
|
1272
1272
|
{ name: "竖排", code: _.choice_2 },
|
|
@@ -1276,8 +1276,8 @@ const je = {
|
|
|
1276
1276
|
{
|
|
1277
1277
|
type: "radio",
|
|
1278
1278
|
label: "排列方向",
|
|
1279
|
-
key:
|
|
1280
|
-
show: (e) => e.style[
|
|
1279
|
+
key: h.sheetCard.choice_b,
|
|
1280
|
+
show: (e) => e.style[h.sheetCard.choice_a] !== _.choice_2,
|
|
1281
1281
|
option: [
|
|
1282
1282
|
{ name: "横向", code: _.landscape },
|
|
1283
1283
|
{ name: "纵向", code: _.portrait }
|
|
@@ -1286,8 +1286,8 @@ const je = {
|
|
|
1286
1286
|
{
|
|
1287
1287
|
type: "radio",
|
|
1288
1288
|
label: "每组题数",
|
|
1289
|
-
key:
|
|
1290
|
-
show: (e) => [_.choice_2].includes(e.style[
|
|
1289
|
+
key: h.sheetCard.choice_c,
|
|
1290
|
+
show: (e) => [_.choice_2].includes(e.style[h.sheetCard.choice_a]),
|
|
1291
1291
|
option: [
|
|
1292
1292
|
{ name: "3题", code: 3 },
|
|
1293
1293
|
{ name: "4题", code: 4 },
|
|
@@ -1298,8 +1298,8 @@ const je = {
|
|
|
1298
1298
|
type: "slider",
|
|
1299
1299
|
label: "每组个数",
|
|
1300
1300
|
target: (e, t) => [p.synthesis].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
|
|
1301
|
-
key:
|
|
1302
|
-
show: (e) => e.style[
|
|
1301
|
+
key: h.sheetCard.choice_e,
|
|
1302
|
+
show: (e) => e.style[h.sheetCard.choice_a] === _.choice_1 || e.style[h.sheetCard.choice_a] === _.choice_3 && e.style[h.sheetCard.choice_b] === _.portrait,
|
|
1303
1303
|
min: () => 1,
|
|
1304
1304
|
max: () => 20
|
|
1305
1305
|
},
|
|
@@ -1307,8 +1307,8 @@ const je = {
|
|
|
1307
1307
|
type: "slider",
|
|
1308
1308
|
label: "列数",
|
|
1309
1309
|
target: (e, t) => [p.synthesis].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
|
|
1310
|
-
key:
|
|
1311
|
-
show: (e) => e.style[
|
|
1310
|
+
key: h.sheetCard.choice_d,
|
|
1311
|
+
show: (e) => e.style[h.sheetCard.choice_a] !== _.choice_2,
|
|
1312
1312
|
min: () => 1,
|
|
1313
1313
|
max: () => 10
|
|
1314
1314
|
},
|
|
@@ -1316,8 +1316,8 @@ const je = {
|
|
|
1316
1316
|
type: "radio",
|
|
1317
1317
|
label: "排列偏好",
|
|
1318
1318
|
target: (e, t) => [p.synthesis].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
|
|
1319
|
-
key:
|
|
1320
|
-
show: (e) => e.style[
|
|
1319
|
+
key: h.sheetCard.choice_f,
|
|
1320
|
+
show: (e) => e.style[h.sheetCard.choice_a] !== _.choice_2,
|
|
1321
1321
|
option: [
|
|
1322
1322
|
{ name: "紧凑", code: _.choice_6 },
|
|
1323
1323
|
{ name: "均分", code: _.choice_7 }
|
|
@@ -1329,7 +1329,7 @@ const je = {
|
|
|
1329
1329
|
{
|
|
1330
1330
|
type: "radio",
|
|
1331
1331
|
label: "展示样式",
|
|
1332
|
-
key:
|
|
1332
|
+
key: h.sheetCard.decide_a,
|
|
1333
1333
|
option: [
|
|
1334
1334
|
{ name: "对错", code: _.decide_1 },
|
|
1335
1335
|
{ name: "TF", code: _.decide_2 }
|
|
@@ -1341,8 +1341,8 @@ const je = {
|
|
|
1341
1341
|
{
|
|
1342
1342
|
type: "radio",
|
|
1343
1343
|
label: "打分框位置",
|
|
1344
|
-
key:
|
|
1345
|
-
show: (e) => e.style[
|
|
1344
|
+
key: h.sheetCard.fill_a,
|
|
1345
|
+
show: (e) => e.style[h.sheetCard.fill_b],
|
|
1346
1346
|
option: [
|
|
1347
1347
|
{ name: "跟随下划线", code: _.fill_1 },
|
|
1348
1348
|
{ name: "跟随主题干", code: _.fill_2 },
|
|
@@ -1352,9 +1352,9 @@ const je = {
|
|
|
1352
1352
|
{
|
|
1353
1353
|
type: "radio",
|
|
1354
1354
|
label: "分题换行",
|
|
1355
|
-
key:
|
|
1355
|
+
key: h.sheetCard.fill_c,
|
|
1356
1356
|
target: (e, t) => [p.synthesis].includes(e.problemType) ? [O.problem] : [p.mix].includes(e.problemType) ? [] : [O.page, O.headline],
|
|
1357
|
-
show: (e) => !e.style[
|
|
1357
|
+
show: (e) => !e.style[h.sheetCard.fill_b],
|
|
1358
1358
|
option: [
|
|
1359
1359
|
{ name: "开启", code: _.fill_1 },
|
|
1360
1360
|
{ name: "关闭", code: _.fill_2 }
|
|
@@ -1363,9 +1363,9 @@ const je = {
|
|
|
1363
1363
|
{
|
|
1364
1364
|
type: "radio",
|
|
1365
1365
|
label: "排列方向",
|
|
1366
|
-
key:
|
|
1366
|
+
key: h.sheetCard.fill_g,
|
|
1367
1367
|
target: [O.page, O.headline],
|
|
1368
|
-
show: (e) => e.style[
|
|
1368
|
+
show: (e) => e.style[h.sheetCard.fill_c] === _.fill_2 && [p.fill, p.fill_english].includes(e.problemType),
|
|
1369
1369
|
option: [
|
|
1370
1370
|
{ name: "横向", code: _.landscape },
|
|
1371
1371
|
{ name: "纵向", code: _.portrait }
|
|
@@ -1374,9 +1374,9 @@ const je = {
|
|
|
1374
1374
|
{
|
|
1375
1375
|
type: "slider",
|
|
1376
1376
|
label: "每组个数",
|
|
1377
|
-
key:
|
|
1377
|
+
key: h.sheetCard.fill_h,
|
|
1378
1378
|
target: [O.page, O.headline],
|
|
1379
|
-
show: (e) => e.style[
|
|
1379
|
+
show: (e) => e.style[h.sheetCard.fill_g] === _.portrait,
|
|
1380
1380
|
min: () => 1,
|
|
1381
1381
|
max: () => 10
|
|
1382
1382
|
},
|
|
@@ -1384,11 +1384,11 @@ const je = {
|
|
|
1384
1384
|
// 试题自身
|
|
1385
1385
|
type: "radio",
|
|
1386
1386
|
label: "每空宽度",
|
|
1387
|
-
key:
|
|
1387
|
+
key: h.sheetCard.fill_d,
|
|
1388
1388
|
target: [O.problem],
|
|
1389
1389
|
detail: !0,
|
|
1390
1390
|
problemCode: [p.fill, p.fill_english],
|
|
1391
|
-
show: (e) => !e.style[
|
|
1391
|
+
show: (e) => !e.style[h.sheetCard.fill_b] && e.style[h.sheetCard.fill_g] !== _.portrait,
|
|
1392
1392
|
option: [
|
|
1393
1393
|
{ name: "1", code: 1 },
|
|
1394
1394
|
{ name: "1/2", code: 2 },
|
|
@@ -1402,9 +1402,9 @@ const je = {
|
|
|
1402
1402
|
// 其它
|
|
1403
1403
|
type: "radio",
|
|
1404
1404
|
label: "每行空数",
|
|
1405
|
-
key:
|
|
1405
|
+
key: h.sheetCard.fill_f,
|
|
1406
1406
|
target: [O.page, O.headline],
|
|
1407
|
-
show: (e) => !e.style[
|
|
1407
|
+
show: (e) => !e.style[h.sheetCard.fill_b] && e.children.length,
|
|
1408
1408
|
option: [
|
|
1409
1409
|
{ name: "1", code: 1 },
|
|
1410
1410
|
{ name: "1/2", code: 2 },
|
|
@@ -1417,9 +1417,9 @@ const je = {
|
|
|
1417
1417
|
{
|
|
1418
1418
|
type: "slider",
|
|
1419
1419
|
label: "每空高度",
|
|
1420
|
-
key:
|
|
1420
|
+
key: h.sheetCard.fill_e,
|
|
1421
1421
|
target: (e, t) => [p.synthesis, p.mix].includes(e.problemType) ? [O.problem] : [O.page, O.headline],
|
|
1422
|
-
show: (e) => !e.style[
|
|
1422
|
+
show: (e) => !e.style[h.sheetCard.fill_b],
|
|
1423
1423
|
max: () => 20
|
|
1424
1424
|
}
|
|
1425
1425
|
],
|
|
@@ -1444,8 +1444,8 @@ const je = {
|
|
|
1444
1444
|
{
|
|
1445
1445
|
type: "radio",
|
|
1446
1446
|
label: "主客分离",
|
|
1447
|
-
key:
|
|
1448
|
-
show: (e) => !e.style[
|
|
1447
|
+
key: h.sheetCard.mix_c,
|
|
1448
|
+
show: (e) => !e.style[h.sheetCard.mix_a] && !e.rootPolymer,
|
|
1449
1449
|
option: [
|
|
1450
1450
|
{ name: "分离", code: !0 },
|
|
1451
1451
|
{ name: "不分离", code: !1 }
|
|
@@ -1482,8 +1482,8 @@ const je = {
|
|
|
1482
1482
|
{
|
|
1483
1483
|
type: "radio",
|
|
1484
1484
|
label: "题目计分提示",
|
|
1485
|
-
key:
|
|
1486
|
-
show: (e) => !e.style[
|
|
1485
|
+
key: h.public.scoreShowFlag,
|
|
1486
|
+
show: (e) => !e.style[h.sheetCard.mix_a] && ((e.mixType || []).find((t) => [p.easy_slove].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(p).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [p.easy_slove].includes(t.problemType))),
|
|
1487
1487
|
option: [
|
|
1488
1488
|
{ name: "隐藏", code: _.bracket_none },
|
|
1489
1489
|
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
@@ -1496,7 +1496,7 @@ const je = {
|
|
|
1496
1496
|
{
|
|
1497
1497
|
type: "radio",
|
|
1498
1498
|
label: "题目计分提示",
|
|
1499
|
-
key:
|
|
1499
|
+
key: h.public.scoreShowFlag,
|
|
1500
1500
|
show: (e) => !e.notSelf,
|
|
1501
1501
|
option: [
|
|
1502
1502
|
{ name: "隐藏", code: _.bracket_none },
|
|
@@ -1510,7 +1510,7 @@ const je = {
|
|
|
1510
1510
|
{
|
|
1511
1511
|
type: "radio",
|
|
1512
1512
|
label: "题目计分提示",
|
|
1513
|
-
key:
|
|
1513
|
+
key: h.public.scoreShowFlag,
|
|
1514
1514
|
show: (e) => !e.notSelf,
|
|
1515
1515
|
option: [
|
|
1516
1516
|
{ name: "隐藏", code: _.bracket_none },
|
|
@@ -1524,7 +1524,7 @@ const je = {
|
|
|
1524
1524
|
{
|
|
1525
1525
|
type: "slider",
|
|
1526
1526
|
label: "格子尺寸",
|
|
1527
|
-
key:
|
|
1527
|
+
key: h.article.art_b,
|
|
1528
1528
|
detail: !0,
|
|
1529
1529
|
target: [O.problem],
|
|
1530
1530
|
show: (e) => e.artBlock,
|
|
@@ -1538,7 +1538,7 @@ const je = {
|
|
|
1538
1538
|
{
|
|
1539
1539
|
type: "input",
|
|
1540
1540
|
label: "设置字数",
|
|
1541
|
-
key:
|
|
1541
|
+
key: h.sheetCard.art_c,
|
|
1542
1542
|
detail: !0,
|
|
1543
1543
|
unit: "字",
|
|
1544
1544
|
target: [O.problem],
|
|
@@ -1547,17 +1547,17 @@ const je = {
|
|
|
1547
1547
|
{
|
|
1548
1548
|
type: "slider",
|
|
1549
1549
|
label: "字数游标分段",
|
|
1550
|
-
key:
|
|
1550
|
+
key: h.sheetCard.art_d,
|
|
1551
1551
|
detail: !0,
|
|
1552
1552
|
min: () => 1,
|
|
1553
|
-
max: (e) => Math.floor(e.style[
|
|
1553
|
+
max: (e) => Math.floor(e.style[h.sheetCard.art_c] / e.style[h.sheetCard.art_e]),
|
|
1554
1554
|
target: [O.problem],
|
|
1555
1555
|
show: (e) => e.artBlock
|
|
1556
1556
|
},
|
|
1557
1557
|
{
|
|
1558
1558
|
type: "radio",
|
|
1559
1559
|
label: "字数分段区间",
|
|
1560
|
-
key:
|
|
1560
|
+
key: h.sheetCard.art_e,
|
|
1561
1561
|
option: [
|
|
1562
1562
|
{ name: "80", code: 80 },
|
|
1563
1563
|
{ name: "100", code: 100 }
|
|
@@ -1569,7 +1569,7 @@ const je = {
|
|
|
1569
1569
|
{
|
|
1570
1570
|
type: "input",
|
|
1571
1571
|
label: "设置行数",
|
|
1572
|
-
key:
|
|
1572
|
+
key: h.sheetCard.art_c,
|
|
1573
1573
|
detail: !0,
|
|
1574
1574
|
unit: "行",
|
|
1575
1575
|
target: [O.problem],
|
|
@@ -1578,7 +1578,7 @@ const je = {
|
|
|
1578
1578
|
{
|
|
1579
1579
|
type: "radio",
|
|
1580
1580
|
label: "题目计分提示",
|
|
1581
|
-
key:
|
|
1581
|
+
key: h.public.scoreShowFlag,
|
|
1582
1582
|
option: [
|
|
1583
1583
|
{ name: "隐藏", code: _.bracket_none },
|
|
1584
1584
|
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
@@ -1591,7 +1591,7 @@ const je = {
|
|
|
1591
1591
|
{
|
|
1592
1592
|
type: "radio",
|
|
1593
1593
|
label: "主客分离",
|
|
1594
|
-
key:
|
|
1594
|
+
key: h.sheetCard.synthesis_a,
|
|
1595
1595
|
show: (e) => !e.rootPolymer,
|
|
1596
1596
|
option: [
|
|
1597
1597
|
{ name: "分离", code: !0 },
|
|
@@ -1601,7 +1601,7 @@ const je = {
|
|
|
1601
1601
|
{
|
|
1602
1602
|
type: "radio",
|
|
1603
1603
|
label: "题目计分提示",
|
|
1604
|
-
key:
|
|
1604
|
+
key: h.public.scoreShowFlag,
|
|
1605
1605
|
show: (e) => (e.children || []).filter((t) => Object.values(p).includes(t.problemType)).map((t) => (t.children || []).length ? t.children : t).flat(2).find((t) => [p.easy_slove, p.slove].includes(t.problemType)),
|
|
1606
1606
|
option: [
|
|
1607
1607
|
{ name: "隐藏", code: _.bracket_none },
|
|
@@ -1737,11 +1737,11 @@ const je = {
|
|
|
1737
1737
|
pageMargin: Zt,
|
|
1738
1738
|
pagePadding: ft,
|
|
1739
1739
|
pagePointPosition: Ge,
|
|
1740
|
-
pageSize:
|
|
1740
|
+
pageSize: x,
|
|
1741
1741
|
pageTitleBlockCol: to,
|
|
1742
1742
|
paper: We,
|
|
1743
1743
|
problemLayout: mo,
|
|
1744
|
-
problemLayoutKey:
|
|
1744
|
+
problemLayoutKey: h,
|
|
1745
1745
|
problemLayoutVal: _,
|
|
1746
1746
|
scoreLineSize: at,
|
|
1747
1747
|
scoreLineStyle: st,
|
|
@@ -1771,7 +1771,7 @@ const je = {
|
|
|
1771
1771
|
"8k": "TYPE_8K",
|
|
1772
1772
|
"16k": "TYPE_16K",
|
|
1773
1773
|
"32k": "TYPE_32K"
|
|
1774
|
-
}, _e = window.btoa(Math.random().toString(32)).substring(0, 10),
|
|
1774
|
+
}, _e = window.btoa(Math.random().toString(32)).substring(0, 10), T = {
|
|
1775
1775
|
// 定位点 主定位点 lt rt lb rb 辅助定位点 t b
|
|
1776
1776
|
point: `__${_e}point`,
|
|
1777
1777
|
// 页码点
|
|
@@ -1872,52 +1872,52 @@ const je = {
|
|
|
1872
1872
|
b: {
|
|
1873
1873
|
bottom: `${t.padding.bottom - we}px`
|
|
1874
1874
|
}
|
|
1875
|
-
}, d = (
|
|
1875
|
+
}, d = (x[t.layout.paper].width - t.padding.left - t.padding.right + we) / (tt.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
1876
1876
|
return { left: `${s * d + t.padding.left - we}px`, width: `${we}px`, ...n[y] };
|
|
1877
1877
|
}, a = (s) => {
|
|
1878
|
-
const y = (
|
|
1878
|
+
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, d = ["", "l", "r"].findIndex((A) => A === s);
|
|
1879
1879
|
return { top: `${y * d + t.padding.top - 10}px`, width: "11px", ...n };
|
|
1880
1880
|
};
|
|
1881
1881
|
return (s, y) => {
|
|
1882
1882
|
var n;
|
|
1883
|
-
return r(),
|
|
1884
|
-
(r(),
|
|
1883
|
+
return r(), u(B, null, [
|
|
1884
|
+
(r(), u(B, null, ae(["lt", "rt", "lb", "rb"], (d) => v("span", {
|
|
1885
1885
|
key: d,
|
|
1886
1886
|
class: "absolute w-8 bg-black point_item",
|
|
1887
1887
|
style: X(l(d)),
|
|
1888
|
-
"data-xine":
|
|
1888
|
+
"data-xine": I(T).point + d
|
|
1889
1889
|
}, null, 12, ko)), 64)),
|
|
1890
|
-
(r(!0),
|
|
1891
|
-
(r(),
|
|
1892
|
-
key:
|
|
1890
|
+
(r(!0), u(B, null, ae(o.value, (d) => (r(), u(B, { key: d }, [
|
|
1891
|
+
(r(), u(B, null, ae(["t", "b"], (A) => v("span", {
|
|
1892
|
+
key: A,
|
|
1893
1893
|
class: "absolute bg-black w-8 point_item",
|
|
1894
|
-
style: X(i(d,
|
|
1895
|
-
"data-xine":
|
|
1894
|
+
style: X(i(d, A)),
|
|
1895
|
+
"data-xine": I(T).point + A
|
|
1896
1896
|
}, null, 12, xo)), 64))
|
|
1897
1897
|
], 64))), 128)),
|
|
1898
|
-
(r(),
|
|
1898
|
+
(r(), u(B, null, ae(["l", "r"], (d) => v("span", {
|
|
1899
1899
|
key: d,
|
|
1900
1900
|
class: "absolute bg-black h-8",
|
|
1901
1901
|
style: X(a(d)),
|
|
1902
|
-
"data-xine":
|
|
1902
|
+
"data-xine": I(T).point + d
|
|
1903
1903
|
}, null, 12, Co)), 64)),
|
|
1904
|
-
|
|
1904
|
+
v("p", {
|
|
1905
1905
|
class: "absolute leading-none text-0",
|
|
1906
1906
|
style: X(c()),
|
|
1907
|
-
"data-xine":
|
|
1907
|
+
"data-xine": I(T).page
|
|
1908
1908
|
}, [
|
|
1909
|
-
(r(!0),
|
|
1909
|
+
(r(!0), u(B, null, ae(s.currentPage + 1, (d, A) => (r(), u("span", {
|
|
1910
1910
|
key: d,
|
|
1911
1911
|
class: "inline-block bg-black mx-2 page_item",
|
|
1912
|
-
"data-xine":
|
|
1912
|
+
"data-xine": I(T).page_item + A
|
|
1913
1913
|
}, null, 8, $o))), 128))
|
|
1914
1914
|
], 12, So),
|
|
1915
|
-
s.currentPage % 2 ?
|
|
1915
|
+
s.currentPage % 2 ? D("", !0) : (r(), u("span", {
|
|
1916
1916
|
key: 0,
|
|
1917
1917
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1918
1918
|
style: X({ right: `${s.padding.right - 12}px` })
|
|
1919
|
-
}, "提示:本卷" + Z((n =
|
|
1920
|
-
|
|
1919
|
+
}, "提示:本卷" + Z((n = I(We).find((d) => d.code === s.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
|
|
1920
|
+
v("span", {
|
|
1921
1921
|
class: "absolute text-sm red_sheet",
|
|
1922
1922
|
style: X({ right: `${s.padding.bottom - 20 + 75}px`, bottom: `${s.padding.bottom - 20 - 3}px` })
|
|
1923
1923
|
}, Z(s.currentPage + 1) + "/" + Z(s.totalPage), 5)
|
|
@@ -1963,11 +1963,11 @@ const pe = (e, t) => {
|
|
|
1963
1963
|
}, y = () => {
|
|
1964
1964
|
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), c.value = !1;
|
|
1965
1965
|
};
|
|
1966
|
-
return (n, d) => (r(),
|
|
1966
|
+
return (n, d) => (r(), u("div", {
|
|
1967
1967
|
class: te(["flex-1 flex items-center border rounded-lg", n.autoLine ? c.value ? "border-gray4" : "border-transparent" : "border-gray4", n.size === "small" && "p-1", n.size === "stand" && "p-2", n.size === "large" && "p-2"])
|
|
1968
1968
|
}, [
|
|
1969
|
-
|
|
1970
|
-
|
|
1969
|
+
v("div", Lo, [
|
|
1970
|
+
v("input", {
|
|
1971
1971
|
class: te(["w-full", n.dir === "center" && "text-center", n.dir === "right" && "text-right"]),
|
|
1972
1972
|
type: n.type,
|
|
1973
1973
|
placeholder: n.placeholder,
|
|
@@ -1979,7 +1979,7 @@ const pe = (e, t) => {
|
|
|
1979
1979
|
onBlur: y
|
|
1980
1980
|
}, null, 42, Fo)
|
|
1981
1981
|
]),
|
|
1982
|
-
n.unit ? (r(),
|
|
1982
|
+
n.unit ? (r(), u("span", Eo, Z(n.unit), 1)) : D("", !0)
|
|
1983
1983
|
], 2));
|
|
1984
1984
|
}
|
|
1985
1985
|
}), Po = /* @__PURE__ */ le({
|
|
@@ -2016,15 +2016,15 @@ const pe = (e, t) => {
|
|
|
2016
2016
|
emits: ["click"],
|
|
2017
2017
|
setup(e, { emit: t }) {
|
|
2018
2018
|
const o = e, l = z(() => `#icon-${o.name}`);
|
|
2019
|
-
return (c, i) => (r(),
|
|
2019
|
+
return (c, i) => (r(), u("span", {
|
|
2020
2020
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
2021
2021
|
onClick: i[0] || (i[0] = (a) => t("click"))
|
|
2022
2022
|
}, [
|
|
2023
|
-
(r(),
|
|
2023
|
+
(r(), u("svg", {
|
|
2024
2024
|
width: c.width + "rem",
|
|
2025
2025
|
height: (c.height || c.width) + "rem"
|
|
2026
2026
|
}, [
|
|
2027
|
-
|
|
2027
|
+
v("use", { "xlink:href": l.value }, null, 8, Do)
|
|
2028
2028
|
], 8, Mo))
|
|
2029
2029
|
]));
|
|
2030
2030
|
}
|
|
@@ -2039,8 +2039,8 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2039
2039
|
code: {}
|
|
2040
2040
|
},
|
|
2041
2041
|
setup(e) {
|
|
2042
|
-
return (t, o) => (r(),
|
|
2043
|
-
t.layout.secrecyFlag ? (r(),
|
|
2042
|
+
return (t, o) => (r(), u("div", Bo, [
|
|
2043
|
+
t.layout.secrecyFlag ? (r(), u("p", No, [
|
|
2044
2044
|
et("绝密"),
|
|
2045
2045
|
oe(fe, {
|
|
2046
2046
|
name: "fiveArrow",
|
|
@@ -2048,8 +2048,8 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2048
2048
|
class: "px-0 py-0"
|
|
2049
2049
|
}),
|
|
2050
2050
|
et("启用前")
|
|
2051
|
-
])) :
|
|
2052
|
-
|
|
2051
|
+
])) : D("", !0),
|
|
2052
|
+
v("p", Oo, "ID:" + Z(t.code), 1)
|
|
2053
2053
|
]));
|
|
2054
2054
|
}
|
|
2055
2055
|
}), Ro = ["innerHTML"], Re = /* @__PURE__ */ le({
|
|
@@ -2064,7 +2064,7 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2064
2064
|
const o = e, l = (c) => {
|
|
2065
2065
|
t("change", c.target.innerHTML, o.name);
|
|
2066
2066
|
};
|
|
2067
|
-
return (c, i) => (r(),
|
|
2067
|
+
return (c, i) => (r(), u("div", {
|
|
2068
2068
|
innerHTML: c.value,
|
|
2069
2069
|
contenteditable: "",
|
|
2070
2070
|
onBlur: l
|
|
@@ -2073,19 +2073,19 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2073
2073
|
}), Ho = { class: "flex w-full" }, Wo = ["src", "data-xine"], Go = { class: "flex-1 mx-4" }, Qo = { class: "flex items-center justify-center flex-wrap" }, qo = {
|
|
2074
2074
|
key: 0,
|
|
2075
2075
|
class: "flex mx-4 min-w-[70px]"
|
|
2076
|
-
}, Yo = /* @__PURE__ */
|
|
2076
|
+
}, Yo = /* @__PURE__ */ v("span", { class: "flex-shrink-0" }, "范围:", -1), Ko = {
|
|
2077
2077
|
key: 1,
|
|
2078
2078
|
class: "flex items-center w-40 mx-4"
|
|
2079
|
-
}, Uo = /* @__PURE__ */
|
|
2079
|
+
}, Uo = /* @__PURE__ */ v("span", { class: "flex-shrink-0" }, "时间:", -1), Vo = /* @__PURE__ */ v("span", null, "分钟", -1), jo = {
|
|
2080
2080
|
key: 2,
|
|
2081
2081
|
class: "flex mx-4 min-w-[80px]"
|
|
2082
|
-
}, Xo = /* @__PURE__ */
|
|
2082
|
+
}, Xo = /* @__PURE__ */ v("span", { class: "flex-shrink-0" }, "命题人:", -1), Jo = {
|
|
2083
2083
|
key: 3,
|
|
2084
2084
|
class: "flex mx-4 min-w-[80px]"
|
|
2085
|
-
}, Zo = /* @__PURE__ */
|
|
2085
|
+
}, Zo = /* @__PURE__ */ v("span", { class: "flex-shrink-0" }, "审核人:", -1), ea = {
|
|
2086
2086
|
key: 4,
|
|
2087
2087
|
class: "flex items-center mx-4"
|
|
2088
|
-
}, ta = /* @__PURE__ */
|
|
2088
|
+
}, ta = /* @__PURE__ */ v("span", null, "总", -1), oa = { key: 1 }, aa = { key: 3 }, la = { key: 1 }, na = { key: 3 }, sa = /* @__PURE__ */ v("span", null, ")", -1), ia = { key: 1 }, ra = /* @__PURE__ */ le({
|
|
2089
2089
|
__name: "title",
|
|
2090
2090
|
props: {
|
|
2091
2091
|
info: {},
|
|
@@ -2096,14 +2096,14 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2096
2096
|
emits: ["change"],
|
|
2097
2097
|
setup(e, { emit: t }) {
|
|
2098
2098
|
const o = e, l = z(() => o.data.filter((a) => ![ke.another, ke.another_choice, ke.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, s) => a + s, 0)), c = z(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, s) => a + s, 0)), i = z(() => o.layout.scoreAddStars === st.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2099
|
-
return (a, s) => (r(),
|
|
2100
|
-
|
|
2099
|
+
return (a, s) => (r(), u("div", Ho, [
|
|
2100
|
+
v("img", {
|
|
2101
2101
|
src: a.info.qrCode,
|
|
2102
2102
|
alt: "QRCode",
|
|
2103
2103
|
class: "flex-shrink-0 w-28 h-28",
|
|
2104
|
-
"data-xine":
|
|
2104
|
+
"data-xine": I(T).art_code
|
|
2105
2105
|
}, null, 8, Wo),
|
|
2106
|
-
|
|
2106
|
+
v("div", Go, [
|
|
2107
2107
|
oe(Re, {
|
|
2108
2108
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2109
2109
|
value: a.info.title,
|
|
@@ -2116,17 +2116,17 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2116
2116
|
value: a.info.secTitle,
|
|
2117
2117
|
style: X(a.fontConfig.halfTitleStyle),
|
|
2118
2118
|
onChange: s[1] || (s[1] = (y) => t("change", { secTitle: y }))
|
|
2119
|
-
}, null, 8, ["value", "style"])) :
|
|
2120
|
-
|
|
2121
|
-
a.layout.examExtentFlag ? (r(),
|
|
2119
|
+
}, null, 8, ["value", "style"])) : D("", !0),
|
|
2120
|
+
v("div", Qo, [
|
|
2121
|
+
a.layout.examExtentFlag ? (r(), u("p", qo, [
|
|
2122
2122
|
Yo,
|
|
2123
2123
|
oe(Re, {
|
|
2124
2124
|
class: "flex-1",
|
|
2125
2125
|
value: a.info.extent,
|
|
2126
2126
|
onChange: s[2] || (s[2] = (y) => t("change", { extent: y }))
|
|
2127
2127
|
}, null, 8, ["value"])
|
|
2128
|
-
])) :
|
|
2129
|
-
a.layout.examTimeFlag ? (r(),
|
|
2128
|
+
])) : D("", !0),
|
|
2129
|
+
a.layout.examTimeFlag ? (r(), u("p", Ko, [
|
|
2130
2130
|
Uo,
|
|
2131
2131
|
oe(it, {
|
|
2132
2132
|
value: a.info.time,
|
|
@@ -2138,60 +2138,60 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2138
2138
|
onChange: s[3] || (s[3] = (y) => t("change", { time: y }))
|
|
2139
2139
|
}, null, 8, ["value"]),
|
|
2140
2140
|
Vo
|
|
2141
|
-
])) :
|
|
2142
|
-
a.layout.authorFlag ? (r(),
|
|
2141
|
+
])) : D("", !0),
|
|
2142
|
+
a.layout.authorFlag ? (r(), u("p", jo, [
|
|
2143
2143
|
Xo,
|
|
2144
2144
|
oe(Re, {
|
|
2145
2145
|
class: "flex-1",
|
|
2146
2146
|
value: a.info.author,
|
|
2147
2147
|
onChange: s[4] || (s[4] = (y) => t("change", { author: y }))
|
|
2148
2148
|
}, null, 8, ["value"])
|
|
2149
|
-
])) :
|
|
2150
|
-
a.layout.reviewerFlag ? (r(),
|
|
2149
|
+
])) : D("", !0),
|
|
2150
|
+
a.layout.reviewerFlag ? (r(), u("p", Jo, [
|
|
2151
2151
|
Zo,
|
|
2152
2152
|
oe(Re, {
|
|
2153
2153
|
class: "flex-1",
|
|
2154
2154
|
value: a.info.reviewer,
|
|
2155
2155
|
onChange: s[5] || (s[5] = (y) => t("change", { reviewer: y }))
|
|
2156
2156
|
}, null, 8, ["value"])
|
|
2157
|
-
])) :
|
|
2158
|
-
a.layout.totalScoreFlag ? (r(),
|
|
2157
|
+
])) : D("", !0),
|
|
2158
|
+
a.layout.totalScoreFlag ? (r(), u("p", ea, [
|
|
2159
2159
|
ta,
|
|
2160
2160
|
i.value ? (r(), J(fe, {
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
name: i.value,
|
|
2163
2163
|
class: "p-0 -translate-y-[1px]"
|
|
2164
|
-
}, null, 8, ["name"])) : (r(),
|
|
2165
|
-
|
|
2164
|
+
}, null, 8, ["name"])) : (r(), u("span", oa, "分")),
|
|
2165
|
+
v("span", null, ":" + Z(l.value + (a.layout.writeScoreFlag ? a.info.writeScore : 0)), 1),
|
|
2166
2166
|
i.value ? (r(), J(fe, {
|
|
2167
2167
|
key: 2,
|
|
2168
2168
|
name: i.value,
|
|
2169
2169
|
class: "p-0 -translate-y-[1px]"
|
|
2170
|
-
}, null, 8, ["name"])) : (r(),
|
|
2171
|
-
a.layout.writeScoreFlag ? (r(),
|
|
2172
|
-
|
|
2170
|
+
}, null, 8, ["name"])) : (r(), u("span", aa, "分")),
|
|
2171
|
+
a.layout.writeScoreFlag ? (r(), u(B, { key: 4 }, [
|
|
2172
|
+
v("span", null, "(试题" + Z(l.value), 1),
|
|
2173
2173
|
i.value ? (r(), J(fe, {
|
|
2174
2174
|
key: 0,
|
|
2175
2175
|
name: i.value,
|
|
2176
2176
|
class: "p-0 -translate-y-[1px]"
|
|
2177
|
-
}, null, 8, ["name"])) : (r(),
|
|
2178
|
-
|
|
2177
|
+
}, null, 8, ["name"])) : (r(), u("span", la, "分")),
|
|
2178
|
+
v("span", null, "+卷面" + Z(a.info.writeScore || 0), 1),
|
|
2179
2179
|
i.value ? (r(), J(fe, {
|
|
2180
2180
|
key: 2,
|
|
2181
2181
|
name: i.value,
|
|
2182
2182
|
class: "p-0 -translate-y-[1px]"
|
|
2183
|
-
}, null, 8, ["name"])) : (r(),
|
|
2183
|
+
}, null, 8, ["name"])) : (r(), u("span", na, "分")),
|
|
2184
2184
|
sa
|
|
2185
|
-
], 64)) :
|
|
2186
|
-
c.value ? (r(),
|
|
2187
|
-
|
|
2185
|
+
], 64)) : D("", !0),
|
|
2186
|
+
c.value ? (r(), u(B, { key: 5 }, [
|
|
2187
|
+
v("span", null, ";附加题:" + Z(c.value), 1),
|
|
2188
2188
|
i.value ? (r(), J(fe, {
|
|
2189
2189
|
key: 0,
|
|
2190
2190
|
name: i.value,
|
|
2191
2191
|
class: "p-0 -translate-y-[1px]"
|
|
2192
|
-
}, null, 8, ["name"])) : (r(),
|
|
2193
|
-
], 64)) :
|
|
2194
|
-
])) :
|
|
2192
|
+
}, null, 8, ["name"])) : (r(), u("span", ia, "分"))
|
|
2193
|
+
], 64)) : D("", !0)
|
|
2194
|
+
])) : D("", !0)
|
|
2195
2195
|
])
|
|
2196
2196
|
])
|
|
2197
2197
|
]));
|
|
@@ -2205,10 +2205,10 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2205
2205
|
emits: ["change"],
|
|
2206
2206
|
setup(e, { emit: t }) {
|
|
2207
2207
|
const o = ["examNumField", "examRoomField", "scoreField"];
|
|
2208
|
-
return (l, c) => (r(),
|
|
2208
|
+
return (l, c) => (r(), u("ul", {
|
|
2209
2209
|
class: te(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2210
2210
|
}, [
|
|
2211
|
-
(r(),
|
|
2211
|
+
(r(), u(B, null, ae(o, (i, a) => v("li", {
|
|
2212
2212
|
key: i,
|
|
2213
2213
|
class: te(["flex flex-1 min-w-[12rem]", l.isRow && a && "ml-2"])
|
|
2214
2214
|
}, [
|
|
@@ -2226,30 +2226,30 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2226
2226
|
}), ca = ["data-xine"], da = { class: "flex items-center" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ le({
|
|
2227
2227
|
__name: "examInfoSeat",
|
|
2228
2228
|
setup(e) {
|
|
2229
|
-
return (t, o) => (r(),
|
|
2229
|
+
return (t, o) => (r(), u("div", {
|
|
2230
2230
|
class: "flex-shrink-0 border flex flex-col",
|
|
2231
|
-
"data-xine":
|
|
2231
|
+
"data-xine": I(T).en_num_view
|
|
2232
2232
|
}, [
|
|
2233
|
-
|
|
2233
|
+
v("p", da, [
|
|
2234
2234
|
oe(fe, {
|
|
2235
2235
|
class: "pt-1",
|
|
2236
2236
|
name: "fiveArrow"
|
|
2237
2237
|
}),
|
|
2238
2238
|
et("座位号")
|
|
2239
2239
|
]),
|
|
2240
|
-
|
|
2240
|
+
v("div", {
|
|
2241
2241
|
class: "flex-1 flex flex-col",
|
|
2242
|
-
"data-xine":
|
|
2242
|
+
"data-xine": I(T).en_num
|
|
2243
2243
|
}, [
|
|
2244
|
-
(r(),
|
|
2244
|
+
(r(), u(B, null, ae(3, (l, c) => v("p", {
|
|
2245
2245
|
key: l,
|
|
2246
2246
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2247
|
-
"data-xine":
|
|
2247
|
+
"data-xine": I(T).en_num_group
|
|
2248
2248
|
}, [
|
|
2249
|
-
(r(),
|
|
2249
|
+
(r(), u(B, null, ae(10, (i) => v("span", {
|
|
2250
2250
|
key: i,
|
|
2251
2251
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2252
|
-
"data-xine":
|
|
2252
|
+
"data-xine": I(T).en_num_item
|
|
2253
2253
|
}, Z(i - 1), 9, pa)), 64))
|
|
2254
2254
|
], 8, ha)), 64))
|
|
2255
2255
|
], 8, ua)
|
|
@@ -2259,30 +2259,30 @@ const fe = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2259
2259
|
const ya = /* @__PURE__ */ pe(ma, [["__scopeId", "data-v-91b25fab"]]), _a = ["data-xine"], fa = { class: "flex items-center border-r tracking-[5px] text_dir" }, ga = ["data-xine"], ba = ["data-xine"], va = ["data-xine"], wa = /* @__PURE__ */ le({
|
|
2260
2260
|
__name: "examInfoShort",
|
|
2261
2261
|
setup(e) {
|
|
2262
|
-
return (t, o) => (r(),
|
|
2262
|
+
return (t, o) => (r(), u("div", {
|
|
2263
2263
|
class: "flex-shrink-0 border ml-4 flex min-h-[9.5rem]",
|
|
2264
|
-
"data-xine":
|
|
2264
|
+
"data-xine": I(T).en_num_view
|
|
2265
2265
|
}, [
|
|
2266
|
-
|
|
2266
|
+
v("p", fa, [
|
|
2267
2267
|
oe(fe, {
|
|
2268
2268
|
class: "px-1 pt-1",
|
|
2269
2269
|
name: "fiveArrow"
|
|
2270
2270
|
}),
|
|
2271
2271
|
et("短学号")
|
|
2272
2272
|
]),
|
|
2273
|
-
|
|
2273
|
+
v("div", {
|
|
2274
2274
|
class: "flex-1 flex flex-col",
|
|
2275
|
-
"data-xine":
|
|
2275
|
+
"data-xine": I(T).en_num
|
|
2276
2276
|
}, [
|
|
2277
|
-
(r(),
|
|
2277
|
+
(r(), u(B, null, ae(4, (l, c) => v("p", {
|
|
2278
2278
|
key: l,
|
|
2279
2279
|
class: te(["flex-1 flex items-center text-0 px-1", c && "border-t"]),
|
|
2280
|
-
"data-xine":
|
|
2280
|
+
"data-xine": I(T).en_num_group
|
|
2281
2281
|
}, [
|
|
2282
|
-
(r(),
|
|
2282
|
+
(r(), u(B, null, ae(10, (i) => v("span", {
|
|
2283
2283
|
key: i,
|
|
2284
2284
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2285
|
-
"data-xine":
|
|
2285
|
+
"data-xine": I(T).en_num_item
|
|
2286
2286
|
}, Z(i - 1), 9, va)), 64))
|
|
2287
2287
|
], 10, ba)), 64))
|
|
2288
2288
|
], 8, ga)
|
|
@@ -2298,10 +2298,10 @@ const zt = /* @__PURE__ */ pe(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2298
2298
|
emits: ["change"],
|
|
2299
2299
|
setup(e, { emit: t }) {
|
|
2300
2300
|
const o = ["nameField", "classField", "seatField"];
|
|
2301
|
-
return (l, c) => (r(),
|
|
2301
|
+
return (l, c) => (r(), u("ul", {
|
|
2302
2302
|
class: te(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2303
2303
|
}, [
|
|
2304
|
-
(r(),
|
|
2304
|
+
(r(), u(B, null, ae(o, (i, a) => v("li", {
|
|
2305
2305
|
key: i,
|
|
2306
2306
|
class: te(["flex flex-1", l.isRow && a && "ml-2"])
|
|
2307
2307
|
}, [
|
|
@@ -2316,7 +2316,7 @@ const zt = /* @__PURE__ */ pe(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2316
2316
|
], 2)), 64))
|
|
2317
2317
|
], 2));
|
|
2318
2318
|
}
|
|
2319
|
-
}), xa = (e) => (Qe("data-v-4d37cd56"), e = e(), qe(), e), Ca = ["data-xine"], Sa = /* @__PURE__ */ xa(() => /* @__PURE__ */
|
|
2319
|
+
}), xa = (e) => (Qe("data-v-4d37cd56"), e = e(), qe(), e), Ca = ["data-xine"], Sa = /* @__PURE__ */ xa(() => /* @__PURE__ */ v("span", { class: "font-bold tips" }, "贴条码区域", -1)), $a = [
|
|
2320
2320
|
Sa
|
|
2321
2321
|
], Ta = /* @__PURE__ */ le({
|
|
2322
2322
|
__name: "examInfo",
|
|
@@ -2328,7 +2328,7 @@ const zt = /* @__PURE__ */ pe(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2328
2328
|
emits: ["change"],
|
|
2329
2329
|
setup(e, { emit: t }) {
|
|
2330
2330
|
const o = e, l = z(() => o.layout.seatType === xe.none || !o.layout.seatBar), c = z(() => o.layout.column >= 3 && l.value), i = z(() => o.layout.column >= 3 && o.layout.seatType !== xe.none && o.layout.seatBar);
|
|
2331
|
-
return (a, s) => a.isBindFlag ?
|
|
2331
|
+
return (a, s) => a.isBindFlag ? D("", !0) : (r(), u("div", {
|
|
2332
2332
|
key: 0,
|
|
2333
2333
|
class: te(["flex justify-between", (i.value || c.value) && "flex-wrap"])
|
|
2334
2334
|
}, [
|
|
@@ -2337,7 +2337,7 @@ const zt = /* @__PURE__ */ pe(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2337
2337
|
isRow: "",
|
|
2338
2338
|
extent: a.info.extentInfo,
|
|
2339
2339
|
onChange: s[0] || (s[0] = (y) => t("change", y))
|
|
2340
|
-
}, null, 8, ["extent"])) :
|
|
2340
|
+
}, null, 8, ["extent"])) : D("", !0),
|
|
2341
2341
|
oe(ka, {
|
|
2342
2342
|
isRow: i.value,
|
|
2343
2343
|
extent: a.info.extentInfo,
|
|
@@ -2347,26 +2347,26 @@ const zt = /* @__PURE__ */ pe(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2347
2347
|
key: 1,
|
|
2348
2348
|
extent: a.info.extentInfo,
|
|
2349
2349
|
onChange: s[2] || (s[2] = (y) => t("change", y))
|
|
2350
|
-
}, null, 8, ["extent"])) :
|
|
2351
|
-
a.layout.seatType ===
|
|
2352
|
-
a.layout.seatBar ? (r(),
|
|
2350
|
+
}, null, 8, ["extent"])) : D("", !0),
|
|
2351
|
+
a.layout.seatType === I(xe).seat ? (r(), J(ya, { key: 2 })) : a.layout.seatType === I(xe).shortId ? (r(), J(zt, { key: 3 })) : D("", !0),
|
|
2352
|
+
a.layout.seatBar ? (r(), u("div", {
|
|
2353
2353
|
key: 4,
|
|
2354
2354
|
class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
|
|
2355
|
-
"data-xine":
|
|
2356
|
-
}, $a, 8, Ca)) :
|
|
2355
|
+
"data-xine": I(T).en_code
|
|
2356
|
+
}, $a, 8, Ca)) : D("", !0)
|
|
2357
2357
|
], 2));
|
|
2358
2358
|
}
|
|
2359
2359
|
});
|
|
2360
2360
|
const Ia = /* @__PURE__ */ pe(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (Qe("data-v-936c144e"), e = e(), qe(), e), La = {
|
|
2361
2361
|
key: 0,
|
|
2362
2362
|
class: "flex border mt-2 red_sheet"
|
|
2363
|
-
}, Fa = /* @__PURE__ */ ze(() => /* @__PURE__ */
|
|
2363
|
+
}, Fa = /* @__PURE__ */ ze(() => /* @__PURE__ */ v("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Ea = { class: "flex-1 overflow-hidden" }, Pa = { class: "flex items-center flex-1 pl-2" }, Ma = /* @__PURE__ */ ze(() => /* @__PURE__ */ v("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), Da = { class: "flex items-center justify-center text-black" }, Aa = ["data-xine"], Ba = /* @__PURE__ */ ze(() => /* @__PURE__ */ v("span", null, "[", -1)), Na = /* @__PURE__ */ ze(() => /* @__PURE__ */ v("span", { class: "ml-4" }, "]", -1)), Oa = [
|
|
2364
2364
|
Ba,
|
|
2365
2365
|
Na
|
|
2366
|
-
], za = /* @__PURE__ */ ze(() => /* @__PURE__ */
|
|
2367
|
-
/* @__PURE__ */
|
|
2368
|
-
/* @__PURE__ */
|
|
2369
|
-
], -1)), Ra = /* @__PURE__ */ ze(() => /* @__PURE__ */
|
|
2366
|
+
], za = /* @__PURE__ */ ze(() => /* @__PURE__ */ v("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2367
|
+
/* @__PURE__ */ v("span", null, "正确填涂示例"),
|
|
2368
|
+
/* @__PURE__ */ v("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2369
|
+
], -1)), Ra = /* @__PURE__ */ ze(() => /* @__PURE__ */ v("div", { class: "h-2" }, null, -1)), Ha = /* @__PURE__ */ le({
|
|
2370
2370
|
__name: "notice",
|
|
2371
2371
|
props: {
|
|
2372
2372
|
layout: {},
|
|
@@ -2386,32 +2386,32 @@ const Ia = /* @__PURE__ */ pe(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2386
2386
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2387
2387
|
];
|
|
2388
2388
|
});
|
|
2389
|
-
return (l, c) => (r(),
|
|
2390
|
-
l.layout.noteFlag ? (r(),
|
|
2389
|
+
return (l, c) => (r(), u(B, null, [
|
|
2390
|
+
l.layout.noteFlag ? (r(), u("div", La, [
|
|
2391
2391
|
Fa,
|
|
2392
|
-
|
|
2393
|
-
(r(!0),
|
|
2392
|
+
v("div", Ea, [
|
|
2393
|
+
(r(!0), u(B, null, ae(o.value, (i) => (r(), u("p", {
|
|
2394
2394
|
key: i,
|
|
2395
2395
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2396
2396
|
}, Z(i), 1))), 128))
|
|
2397
2397
|
])
|
|
2398
|
-
])) :
|
|
2399
|
-
l.layout.lackFlag ? (r(),
|
|
2398
|
+
])) : D("", !0),
|
|
2399
|
+
l.layout.lackFlag ? (r(), u("div", {
|
|
2400
2400
|
key: 1,
|
|
2401
2401
|
class: te(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2402
2402
|
}, [
|
|
2403
|
-
|
|
2403
|
+
v("p", Pa, [
|
|
2404
2404
|
Ma,
|
|
2405
|
-
|
|
2405
|
+
v("span", Da, [
|
|
2406
2406
|
oe(fe, { name: "rightArrow" }),
|
|
2407
|
-
|
|
2407
|
+
v("span", {
|
|
2408
2408
|
class: "flex items-center leading-4",
|
|
2409
|
-
"data-xine":
|
|
2409
|
+
"data-xine": I(T).lack
|
|
2410
2410
|
}, Oa, 8, Aa)
|
|
2411
2411
|
])
|
|
2412
2412
|
]),
|
|
2413
2413
|
za
|
|
2414
|
-
], 2)) :
|
|
2414
|
+
], 2)) : D("", !0),
|
|
2415
2415
|
Ra
|
|
2416
2416
|
], 64));
|
|
2417
2417
|
}
|
|
@@ -2438,12 +2438,12 @@ function It(e) {
|
|
|
2438
2438
|
const Qa = {
|
|
2439
2439
|
key: 0,
|
|
2440
2440
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2441
|
-
}, qa = /* @__PURE__ */
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
/* @__PURE__ */
|
|
2444
|
-
], -1), Ya = { class: "flex-1" }, Ka = /* @__PURE__ */
|
|
2445
|
-
/* @__PURE__ */
|
|
2446
|
-
/* @__PURE__ */
|
|
2441
|
+
}, qa = /* @__PURE__ */ v("li", { class: "flex-1 flex flex-col" }, [
|
|
2442
|
+
/* @__PURE__ */ v("p", { class: "flex-1" }, "题号"),
|
|
2443
|
+
/* @__PURE__ */ v("p", { class: "flex-1 border-t" }, "得分")
|
|
2444
|
+
], -1), Ya = { class: "flex-1" }, Ka = /* @__PURE__ */ v("p", { class: "flex-1 border-t" }, null, -1), Ua = /* @__PURE__ */ v("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2445
|
+
/* @__PURE__ */ v("p", { class: "flex-1" }, "总分"),
|
|
2446
|
+
/* @__PURE__ */ v("p", { class: "flex-1 border-t" })
|
|
2447
2447
|
], -1), Va = /* @__PURE__ */ le({
|
|
2448
2448
|
__name: "scoreTable",
|
|
2449
2449
|
props: {
|
|
@@ -2452,17 +2452,17 @@ const Qa = {
|
|
|
2452
2452
|
},
|
|
2453
2453
|
setup(e) {
|
|
2454
2454
|
const t = e, o = z(() => t.data.filter((l) => l.problemType));
|
|
2455
|
-
return (l, c) => l.layout.scoreFlag ? (r(),
|
|
2455
|
+
return (l, c) => l.layout.scoreFlag ? (r(), u("ul", Qa, [
|
|
2456
2456
|
qa,
|
|
2457
|
-
(r(!0),
|
|
2457
|
+
(r(!0), u(B, null, ae(o.value, (i, a) => (r(), u("li", {
|
|
2458
2458
|
key: i.id,
|
|
2459
2459
|
class: "flex-1 flex flex-col border-l"
|
|
2460
2460
|
}, [
|
|
2461
|
-
|
|
2461
|
+
v("p", Ya, Z(I(Rt)(a)), 1),
|
|
2462
2462
|
Ka
|
|
2463
2463
|
]))), 128)),
|
|
2464
2464
|
Ua
|
|
2465
|
-
])) :
|
|
2465
|
+
])) : D("", !0);
|
|
2466
2466
|
}
|
|
2467
2467
|
}), ja = /* @__PURE__ */ le({
|
|
2468
2468
|
__name: "columnDom",
|
|
@@ -2476,10 +2476,10 @@ const Qa = {
|
|
|
2476
2476
|
const o = e, l = U(), c = U();
|
|
2477
2477
|
t({ col: l, colView: c });
|
|
2478
2478
|
const i = z(() => {
|
|
2479
|
-
const { top: y, width: n, height: d, left:
|
|
2479
|
+
const { top: y, width: n, height: d, left: A } = o.styleInfo;
|
|
2480
2480
|
return {
|
|
2481
2481
|
top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
|
|
2482
|
-
left: `${parseFloat(
|
|
2482
|
+
left: `${parseFloat(A) - Le.left}px`,
|
|
2483
2483
|
width: `${parseFloat(n) + Le.left + Le.right}px`,
|
|
2484
2484
|
height: `${parseFloat(d) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
|
|
2485
2485
|
};
|
|
@@ -2489,24 +2489,24 @@ const Qa = {
|
|
|
2489
2489
|
bottom: `${Le.bottom - 1}px`,
|
|
2490
2490
|
right: `${Le.right - 1}px`
|
|
2491
2491
|
})), s = z(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2492
|
-
return (y, n) => (r(),
|
|
2493
|
-
y.showColBorder ? (r(),
|
|
2492
|
+
return (y, n) => (r(), u(B, null, [
|
|
2493
|
+
y.showColBorder ? (r(), u("div", {
|
|
2494
2494
|
key: 0,
|
|
2495
2495
|
class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
|
|
2496
2496
|
style: X(i.value)
|
|
2497
2497
|
}, [
|
|
2498
|
-
|
|
2498
|
+
v("span", {
|
|
2499
2499
|
class: "absolute border border-black",
|
|
2500
2500
|
style: X(a.value)
|
|
2501
2501
|
}, null, 4)
|
|
2502
|
-
], 6)) :
|
|
2503
|
-
|
|
2502
|
+
], 6)) : D("", !0),
|
|
2503
|
+
v("div", {
|
|
2504
2504
|
class: "absolute overflow-hidden",
|
|
2505
2505
|
ref_key: "colView",
|
|
2506
2506
|
ref: c,
|
|
2507
2507
|
style: X(y.styleInfo)
|
|
2508
2508
|
}, [
|
|
2509
|
-
|
|
2509
|
+
v("div", {
|
|
2510
2510
|
ref_key: "col",
|
|
2511
2511
|
ref: l,
|
|
2512
2512
|
class: "overflow-hidden __col__",
|
|
@@ -2521,7 +2521,7 @@ const Qa = {
|
|
|
2521
2521
|
const Xa = /* @__PURE__ */ pe(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e) => (Qe("data-v-531dbd62"), e = e(), qe(), e), Za = { class: "flex-1 flex items-center flex-wrap relative" }, el = {
|
|
2522
2522
|
key: 0,
|
|
2523
2523
|
class: "flex-1 mr-4 mb-4 min-w-[30%] max-w-[35%]"
|
|
2524
|
-
}, tl = ["data-xine"], ol = /* @__PURE__ */ Ja(() => /* @__PURE__ */
|
|
2524
|
+
}, tl = ["data-xine"], ol = /* @__PURE__ */ Ja(() => /* @__PURE__ */ v("span", null, "贴条码区域", -1)), al = [
|
|
2525
2525
|
ol
|
|
2526
2526
|
], ll = ["data-xine"], nl = /* @__PURE__ */ le({
|
|
2527
2527
|
__name: "bind",
|
|
@@ -2535,43 +2535,43 @@ const Xa = /* @__PURE__ */ pe(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e)
|
|
|
2535
2535
|
},
|
|
2536
2536
|
setup(e) {
|
|
2537
2537
|
const t = U();
|
|
2538
|
-
return (o, l) => o.isBindFlag ? (r(),
|
|
2538
|
+
return (o, l) => o.isBindFlag ? (r(), u("div", {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
style: X({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2541
2541
|
class: te([o.currentPage % 2 && "right_view"]),
|
|
2542
2542
|
ref_key: "view",
|
|
2543
2543
|
ref: t
|
|
2544
2544
|
}, [
|
|
2545
|
-
o.currentPage % 2 ? (r(),
|
|
2545
|
+
o.currentPage % 2 ? (r(), u("div", {
|
|
2546
2546
|
key: 0,
|
|
2547
2547
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2548
2548
|
style: X({ width: `${o.height - 20}px`, height: `${o.width}px` })
|
|
2549
|
-
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(),
|
|
2549
|
+
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), u("div", {
|
|
2550
2550
|
key: 1,
|
|
2551
2551
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2552
2552
|
style: X({ width: `${o.height - 20}px` })
|
|
2553
2553
|
}, [
|
|
2554
|
-
|
|
2555
|
-
(r(!0),
|
|
2556
|
-
i === 2 && o.bindInfo.length === 5 ? (r(),
|
|
2557
|
-
|
|
2554
|
+
v("div", Za, [
|
|
2555
|
+
(r(!0), u(B, null, ae(o.bindInfo, (c, i) => (r(), u(B, { key: c }, [
|
|
2556
|
+
i === 2 && o.bindInfo.length === 5 ? (r(), u("span", el)) : D("", !0),
|
|
2557
|
+
v("span", {
|
|
2558
2558
|
class: te(["flex-1 whitespace-nowrap w-20 mr-4 mt-8 overflow-hidden", o.bindInfo.length === 4 && "min-w-[40%] max-w-[50%]", o.bindInfo.length === 5 && "min-w-[30%] max-w-[35%]"])
|
|
2559
2559
|
}, Z(c), 3)
|
|
2560
2560
|
], 64))), 128))
|
|
2561
2561
|
]),
|
|
2562
|
-
o.bindSeatType ===
|
|
2562
|
+
o.bindSeatType === I(xe).none ? (r(), u("div", {
|
|
2563
2563
|
key: 0,
|
|
2564
2564
|
class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2565
|
-
"data-xine":
|
|
2566
|
-
}, al, 8, tl)) : o.bindSeatType ===
|
|
2565
|
+
"data-xine": I(T).en_code
|
|
2566
|
+
}, al, 8, tl)) : o.bindSeatType === I(xe).shortId ? (r(), J(zt, {
|
|
2567
2567
|
key: 1,
|
|
2568
2568
|
class: "h-40"
|
|
2569
|
-
})) :
|
|
2570
|
-
|
|
2571
|
-
"data-xine":
|
|
2569
|
+
})) : D("", !0),
|
|
2570
|
+
v("span", {
|
|
2571
|
+
"data-xine": I(T).bind_line
|
|
2572
2572
|
}, null, 8, ll)
|
|
2573
2573
|
], 4))
|
|
2574
|
-
], 6)) :
|
|
2574
|
+
], 6)) : D("", !0);
|
|
2575
2575
|
}
|
|
2576
2576
|
});
|
|
2577
2577
|
const sl = /* @__PURE__ */ pe(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5jdmxyN28zYWRl", il = "YWNhdnN2cmIydmcZm", Ae = "MC4wYWx1ZXJvcWhm", Lt = "MC5sZGN2NzJ0ZXE0bw", bt = "MC5yYjk3NGY2OTcyOA", vt = "MC42cWRzbGM0c21jbw", rl = "MC45amVuM25vajRk", cl = "MC44YjJkb212djRu", dl = ["img", "table", "svg"], ul = ["data-block", "data-xine"], hl = ["data-xine"], pl = ["data-xine"], ml = { class: "absolute opacity-0 pointer-events-none" }, yl = /* @__PURE__ */ le({
|
|
@@ -2585,21 +2585,21 @@ const sl = /* @__PURE__ */ pe(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2585
2585
|
const c = t.item.score;
|
|
2586
2586
|
return [c, Math.round(c / 2 * 100) / 100, 0];
|
|
2587
2587
|
});
|
|
2588
|
-
return (c, i) => (r(),
|
|
2588
|
+
return (c, i) => (r(), u("div", {
|
|
2589
2589
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2590
|
-
"data-block":
|
|
2591
|
-
"data-xine":
|
|
2590
|
+
"data-block": I(Se),
|
|
2591
|
+
"data-xine": I(T).score
|
|
2592
2592
|
}, [
|
|
2593
|
-
|
|
2593
|
+
v("ul", {
|
|
2594
2594
|
class: "flex h-full divide-x divide-solid",
|
|
2595
|
-
"data-xine":
|
|
2595
|
+
"data-xine": I(T).score_base
|
|
2596
2596
|
}, [
|
|
2597
|
-
(r(!0),
|
|
2597
|
+
(r(!0), u(B, null, ae(l.value, (a, s) => (r(), u("li", {
|
|
2598
2598
|
class: "flex items-center justify-center relative score_line",
|
|
2599
|
-
style: X({ width: `${
|
|
2600
|
-
"data-xine":
|
|
2599
|
+
style: X({ width: `${I(at)[c.layout.scoreLineSize].value}px` }),
|
|
2600
|
+
"data-xine": I(T).score_item
|
|
2601
2601
|
}, [
|
|
2602
|
-
|
|
2602
|
+
v("span", ml, Z(a), 1),
|
|
2603
2603
|
oe(fe, {
|
|
2604
2604
|
class: "p-0",
|
|
2605
2605
|
name: o[s]
|
|
@@ -2626,37 +2626,37 @@ const sl = /* @__PURE__ */ pe(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2626
2626
|
if (t.item.scoreLineType === ot.custom)
|
|
2627
2627
|
d = [[...t.item.customScore, 0]];
|
|
2628
2628
|
else if (t.item.scoreStep)
|
|
2629
|
-
d.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((
|
|
2629
|
+
d.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());
|
|
2630
2630
|
else {
|
|
2631
|
-
const
|
|
2632
|
-
l.value =
|
|
2631
|
+
const A = o.value.offsetWidth, m = at[t.layout.scoreLineSize].value + 1;
|
|
2632
|
+
l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * m && t.item.score >= 10, l.value ? (d.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((E) => E && E * 10).reverse()), d.push([...Array(10).keys()].reverse()), i.value = !0) : d.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2633
2633
|
}
|
|
2634
|
-
t.item.hasHalfScore && d.push([0.5]), a.value = d, c.value = !!d.flat().find((
|
|
2634
|
+
t.item.hasHalfScore && d.push([0.5]), a.value = d, c.value = !!d.flat().find((A) => `${A}`.length > 3);
|
|
2635
2635
|
});
|
|
2636
|
-
}, n = (d) => t.item.hasHalfScore ? [
|
|
2637
|
-
return (d,
|
|
2636
|
+
}, n = (d) => t.item.hasHalfScore ? [T.score_half, T.score_base, T.score_tenbit][a.value.length - d - 1] : [T.score_base, T.score_tenbit][a.value.length - d - 1];
|
|
2637
|
+
return (d, A) => d.layout.handReadFlag ? (r(), u(B, { key: 0 }, [
|
|
2638
2638
|
d.layout.simpleScoreBarFlag && !d.static ? (r(), J(yl, {
|
|
2639
2639
|
key: 0,
|
|
2640
2640
|
item: d.item,
|
|
2641
2641
|
layout: d.layout
|
|
2642
|
-
}, null, 8, ["item", "layout"])) : (r(),
|
|
2642
|
+
}, null, 8, ["item", "layout"])) : (r(), u("div", {
|
|
2643
2643
|
key: 1,
|
|
2644
2644
|
ref_key: "view",
|
|
2645
2645
|
ref: o,
|
|
2646
2646
|
class: te([a.value.length ? "inline-flex" : "flex-1", "max-w-full border border-l-2 border-r-2 divide-x divide-solid"]),
|
|
2647
|
-
"data-block":
|
|
2648
|
-
"data-xine":
|
|
2647
|
+
"data-block": I(Se),
|
|
2648
|
+
"data-xine": I(T).score
|
|
2649
2649
|
}, [
|
|
2650
|
-
(r(!0),
|
|
2650
|
+
(r(!0), u(B, null, ae(a.value, (m, E) => (r(), u("ul", {
|
|
2651
2651
|
class: "flex divide-x divide-solid",
|
|
2652
2652
|
"data-xine": n(E)
|
|
2653
2653
|
}, [
|
|
2654
|
-
(r(!0),
|
|
2654
|
+
(r(!0), u(B, null, ae(m, (H) => (r(), u("li", {
|
|
2655
2655
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2656
|
-
style: X({ width: `${
|
|
2657
|
-
"data-xine": H.toString() ?
|
|
2656
|
+
style: X({ width: `${I(at)[d.layout.scoreLineSize].value}px` }),
|
|
2657
|
+
"data-xine": H.toString() ? I(T).score_item : ""
|
|
2658
2658
|
}, [
|
|
2659
|
-
|
|
2659
|
+
v("span", {
|
|
2660
2660
|
class: te(["whitespace-nowrap", s.value && "origin-right", c.value && "scale-75"])
|
|
2661
2661
|
}, Z(d.layout.minusFlag && H.toString().length && !s.value ? "-" : "") + Z(H), 3),
|
|
2662
2662
|
s.value && H.toString().length ? (r(), J(fe, {
|
|
@@ -2664,22 +2664,22 @@ const sl = /* @__PURE__ */ pe(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2664
2664
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2665
2665
|
name: d.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2666
2666
|
width: c.value ? 0.9 : 1.2
|
|
2667
|
-
}, null, 8, ["name", "width"])) :
|
|
2667
|
+
}, null, 8, ["name", "width"])) : D("", !0)
|
|
2668
2668
|
], 12, gl))), 256))
|
|
2669
2669
|
], 8, fl))), 256))
|
|
2670
2670
|
], 10, _l))
|
|
2671
|
-
], 64)) :
|
|
2671
|
+
], 64)) : D("", !0);
|
|
2672
2672
|
}
|
|
2673
|
-
}), Ht = (e) => (Qe("data-v-a8dbd3b0"), e = e(), qe(), e), bl = ["data-xine"], vl = /* @__PURE__ */ Ht(() => /* @__PURE__ */
|
|
2673
|
+
}), Ht = (e) => (Qe("data-v-a8dbd3b0"), e = e(), qe(), e), bl = ["data-xine"], vl = /* @__PURE__ */ Ht(() => /* @__PURE__ */ v("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), wl = /* @__PURE__ */ Ht(() => /* @__PURE__ */ v("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), kl = /* @__PURE__ */ le({
|
|
2674
2674
|
__name: "writeScore",
|
|
2675
2675
|
props: {
|
|
2676
2676
|
info: {},
|
|
2677
2677
|
layout: {}
|
|
2678
2678
|
},
|
|
2679
2679
|
setup(e) {
|
|
2680
|
-
return (t, o) => (r(),
|
|
2680
|
+
return (t, o) => (r(), u("div", {
|
|
2681
2681
|
class: "flex items-center mb-2",
|
|
2682
|
-
"data-xine":
|
|
2682
|
+
"data-xine": I(T).write_view
|
|
2683
2683
|
}, [
|
|
2684
2684
|
vl,
|
|
2685
2685
|
wl,
|
|
@@ -2698,7 +2698,7 @@ const xl = /* @__PURE__ */ pe(kl, [["__scopeId", "data-v-a8dbd3b0"]]), Cl = ["in
|
|
|
2698
2698
|
},
|
|
2699
2699
|
setup(e) {
|
|
2700
2700
|
const t = e;
|
|
2701
|
-
return (o, l) => (r(),
|
|
2701
|
+
return (o, l) => (r(), u("div", {
|
|
2702
2702
|
innerHTML: t.data,
|
|
2703
2703
|
class: "base-problem-font problem-base"
|
|
2704
2704
|
}, null, 8, Cl));
|
|
@@ -2710,10 +2710,10 @@ const Ne = /* @__PURE__ */ pe(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2710
2710
|
item: {}
|
|
2711
2711
|
},
|
|
2712
2712
|
setup(e) {
|
|
2713
|
-
return (t, o) => (r(),
|
|
2713
|
+
return (t, o) => (r(), u("div", {
|
|
2714
2714
|
class: "py-2 border border-dashed rounded-lg mx-1 my-2",
|
|
2715
2715
|
"data-tag": t.item.__tag__,
|
|
2716
|
-
"data-block":
|
|
2716
|
+
"data-block": I(bt)
|
|
2717
2717
|
}, [
|
|
2718
2718
|
oe(Ne, {
|
|
2719
2719
|
"data-content": t.item.id,
|
|
@@ -2727,7 +2727,7 @@ const Ne = /* @__PURE__ */ pe(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2727
2727
|
}, El = { key: 0 }, Pl = {
|
|
2728
2728
|
key: 1,
|
|
2729
2729
|
class: "indent-2"
|
|
2730
|
-
}, Ml = { key: 0 }, Dl = { key: 0 }, Al = { key: 1 }, Bl = ["data-block", "data-xine"], Nl = /* @__PURE__ */ Il(() => /* @__PURE__ */
|
|
2730
|
+
}, Ml = { key: 0 }, Dl = { key: 0 }, Al = { key: 1 }, Bl = ["data-block", "data-xine"], Nl = /* @__PURE__ */ Il(() => /* @__PURE__ */ v("span", null, "我选答的题目是:", -1)), Ol = { class: "flex items-center" }, zl = ["data-xine"], Rl = /* @__PURE__ */ le({
|
|
2731
2731
|
__name: "index",
|
|
2732
2732
|
props: {
|
|
2733
2733
|
item: {},
|
|
@@ -2741,47 +2741,47 @@ const Ne = /* @__PURE__ */ pe(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2741
2741
|
const o = e, l = U(!1), c = U(), i = z(() => [ke.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), a = z(() => [ke.another_choice].includes(o.item.problemType)), s = z(() => [ke.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Ga(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = z(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((d) => d.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
|
|
2742
2742
|
return Ye(() => {
|
|
2743
2743
|
o.isFirst && o.item.problemType && (c.value.offsetHeight / parseFloat(window.getComputedStyle(c.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
2744
|
-
}), (n, d) => n.item.problemType ? (r(),
|
|
2744
|
+
}), (n, d) => n.item.problemType ? (r(), u("div", {
|
|
2745
2745
|
key: 1,
|
|
2746
2746
|
class: te(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
2747
|
-
onClick: d[2] || (d[2] = De((
|
|
2747
|
+
onClick: d[2] || (d[2] = De((A) => t("click", n.item), ["stop"])),
|
|
2748
2748
|
ref_key: "view",
|
|
2749
2749
|
ref: c,
|
|
2750
2750
|
"data-tag": n.item.__tag__,
|
|
2751
|
-
"data-block":
|
|
2752
|
-
onDblclick: d[3] || (d[3] = De((
|
|
2751
|
+
"data-block": I(Se),
|
|
2752
|
+
onDblclick: d[3] || (d[3] = De((A) => t("dbclick", n.item), ["stop"]))
|
|
2753
2753
|
}, [
|
|
2754
|
-
!n.layout.listIndexFlag && n.item.sub ? (r(),
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
n.item.desc ? (r(),
|
|
2759
|
-
n.layout.scoreTipFlag ? (r(),
|
|
2754
|
+
!n.layout.listIndexFlag && n.item.sub ? (r(), u("span", Fl, Z(I(Rt)(n.item.sub - 1)) + "、", 1)) : D("", !0),
|
|
2755
|
+
v("div", null, [
|
|
2756
|
+
v("div", null, [
|
|
2757
|
+
v("span", null, Z(n.item.name), 1),
|
|
2758
|
+
n.item.desc ? (r(), u("span", El, "(" + Z(n.item.desc) + ")", 1)) : D("", !0),
|
|
2759
|
+
n.layout.scoreTipFlag ? (r(), u("span", Pl, "(共" + Z(s.value) + "题,共" + Z(n.item.totalScore) + "分)", 1)) : D("", !0)
|
|
2760
2760
|
]),
|
|
2761
|
-
i.value || a.value ? (r(),
|
|
2762
|
-
i.value ? (r(),
|
|
2763
|
-
|
|
2761
|
+
i.value || a.value ? (r(), u("div", Ml, [
|
|
2762
|
+
i.value ? (r(), u("p", Dl, "请在以下" + Z(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), u("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2763
|
+
v("p", {
|
|
2764
2764
|
class: "flex flex-wrap",
|
|
2765
|
-
"data-block":
|
|
2766
|
-
"data-xine":
|
|
2765
|
+
"data-block": I(Se),
|
|
2766
|
+
"data-xine": I(T).choice + n.item.id
|
|
2767
2767
|
}, [
|
|
2768
2768
|
Nl,
|
|
2769
|
-
(r(!0),
|
|
2770
|
-
|
|
2771
|
-
|
|
2769
|
+
(r(!0), u(B, null, ae(y.value, (A, m) => (r(), u("span", Ol, [
|
|
2770
|
+
v("span", null, Z(A), 1),
|
|
2771
|
+
v("span", {
|
|
2772
2772
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2773
|
-
"data-xine":
|
|
2773
|
+
"data-xine": I(T).fill
|
|
2774
2774
|
}, null, 8, zl)
|
|
2775
2775
|
]))), 256))
|
|
2776
2776
|
], 8, Bl)
|
|
2777
|
-
])) :
|
|
2777
|
+
])) : D("", !0)
|
|
2778
2778
|
])
|
|
2779
2779
|
], 42, Ll)) : (r(), J(Tl, {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
class: te([n.isActive && "border-current", n.isFirst && "mt-9"]),
|
|
2782
2782
|
item: n.item,
|
|
2783
|
-
onClick: d[0] || (d[0] = De((
|
|
2784
|
-
onDblclick: d[1] || (d[1] = De((
|
|
2783
|
+
onClick: d[0] || (d[0] = De((A) => t("click", n.item), ["stop"])),
|
|
2784
|
+
onDblclick: d[1] || (d[1] = De((A) => t("dbclick", n.item), ["stop"]))
|
|
2785
2785
|
}, null, 8, ["class", "item"]));
|
|
2786
2786
|
}
|
|
2787
2787
|
});
|
|
@@ -2796,18 +2796,18 @@ const Gl = /* @__PURE__ */ pe(Hl, [["render", Wl]]), Ql = ["data-block"], ql = [
|
|
|
2796
2796
|
layout: {}
|
|
2797
2797
|
},
|
|
2798
2798
|
setup(e) {
|
|
2799
|
-
return (t, o) => (r(),
|
|
2799
|
+
return (t, o) => (r(), u("div", {
|
|
2800
2800
|
class: "flex items-center red_sheet",
|
|
2801
|
-
"data-block":
|
|
2801
|
+
"data-block": I(Se)
|
|
2802
2802
|
}, [
|
|
2803
|
-
(r(!0),
|
|
2804
|
-
class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(
|
|
2805
|
-
style: X({ width: `${
|
|
2806
|
-
"data-xine":
|
|
2803
|
+
(r(!0), u(B, null, ae(t.item.optList, (l, c) => (r(), u("span", {
|
|
2804
|
+
class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(I(pt)[c]) && "bg-success border-success"]),
|
|
2805
|
+
style: X({ width: `${I(Fe)[t.layout.fillSize].value + 1}px`, height: `${I(Fe)[t.layout.fillSize].height + 1}px` }),
|
|
2806
|
+
"data-xine": I(T).fill + c
|
|
2807
2807
|
}, [
|
|
2808
2808
|
oe(fe, {
|
|
2809
2809
|
width: 1,
|
|
2810
|
-
name:
|
|
2810
|
+
name: I(pt)[c]
|
|
2811
2811
|
}, null, 8, ["name"])
|
|
2812
2812
|
], 14, ql))), 256))
|
|
2813
2813
|
], 8, Ql));
|
|
@@ -2816,9 +2816,9 @@ const Gl = /* @__PURE__ */ pe(Hl, [["render", Wl]]), Ql = ["data-block"], ql = [
|
|
|
2816
2816
|
function Ul(e, t) {
|
|
2817
2817
|
return null;
|
|
2818
2818
|
}
|
|
2819
|
-
const Vl = /* @__PURE__ */ pe(Kl, [["render", Ul]]), jl = ["data-block"], Xl = ["data-xine"], Jl = ["data-xine"], Zl = ["data-xine"], en = /* @__PURE__ */
|
|
2819
|
+
const Vl = /* @__PURE__ */ pe(Kl, [["render", Ul]]), jl = ["data-block"], Xl = ["data-xine"], Jl = ["data-xine"], Zl = ["data-xine"], en = /* @__PURE__ */ v("span", { class: "text-sm scale-75" }, "T", -1), tn = [
|
|
2820
2820
|
en
|
|
2821
|
-
], on = ["data-xine"], an = /* @__PURE__ */
|
|
2821
|
+
], on = ["data-xine"], an = /* @__PURE__ */ v("span", { class: "text-sm scale-75" }, "F", -1), ln = [
|
|
2822
2822
|
an
|
|
2823
2823
|
], nn = /* @__PURE__ */ le({
|
|
2824
2824
|
__name: "sheet",
|
|
@@ -2831,41 +2831,41 @@ const Vl = /* @__PURE__ */ pe(Kl, [["render", Ul]]), jl = ["data-block"], Xl = [
|
|
|
2831
2831
|
width: `${Fe[t.layout.fillSize].value + 1}px`,
|
|
2832
2832
|
height: `${Fe[t.layout.fillSize].height + 1}px`
|
|
2833
2833
|
}));
|
|
2834
|
-
return (l, c) => (r(),
|
|
2834
|
+
return (l, c) => (r(), u("div", {
|
|
2835
2835
|
class: "flex red_sheet",
|
|
2836
|
-
"data-block":
|
|
2836
|
+
"data-block": I(Se)
|
|
2837
2837
|
}, [
|
|
2838
|
-
l.item.style[
|
|
2839
|
-
|
|
2838
|
+
l.item.style[I(h)[l.layout.mode].decide_a] === I(_).decide_1 ? (r(), u(B, { key: 0 }, [
|
|
2839
|
+
v("span", {
|
|
2840
2840
|
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2841
2841
|
style: X(o.value),
|
|
2842
|
-
"data-xine":
|
|
2842
|
+
"data-xine": I(T).fill + "0"
|
|
2843
2843
|
}, [
|
|
2844
2844
|
oe(fe, {
|
|
2845
2845
|
name: "right",
|
|
2846
2846
|
width: 1
|
|
2847
2847
|
})
|
|
2848
2848
|
], 14, Xl),
|
|
2849
|
-
|
|
2849
|
+
v("span", {
|
|
2850
2850
|
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2851
2851
|
style: X(o.value),
|
|
2852
|
-
"data-xine":
|
|
2852
|
+
"data-xine": I(T).fill + "1"
|
|
2853
2853
|
}, [
|
|
2854
2854
|
oe(fe, {
|
|
2855
2855
|
name: "wrong",
|
|
2856
2856
|
width: 1
|
|
2857
2857
|
})
|
|
2858
2858
|
], 14, Jl)
|
|
2859
|
-
], 64)) : (r(),
|
|
2860
|
-
|
|
2859
|
+
], 64)) : (r(), u(B, { key: 1 }, [
|
|
2860
|
+
v("span", {
|
|
2861
2861
|
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2862
2862
|
style: X(o.value),
|
|
2863
|
-
"data-xine":
|
|
2863
|
+
"data-xine": I(T).fill + "0"
|
|
2864
2864
|
}, tn, 14, Zl),
|
|
2865
|
-
|
|
2865
|
+
v("span", {
|
|
2866
2866
|
class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2867
2867
|
style: X(o.value),
|
|
2868
|
-
"data-xine":
|
|
2868
|
+
"data-xine": I(T).fill + "1"
|
|
2869
2869
|
}, ln, 14, on)
|
|
2870
2870
|
], 64))
|
|
2871
2871
|
], 8, jl));
|
|
@@ -2886,22 +2886,22 @@ const cn = /* @__PURE__ */ pe(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2886
2886
|
},
|
|
2887
2887
|
setup(e) {
|
|
2888
2888
|
const t = e, o = z(() => t.layout.scoreAddStars === st.star.code);
|
|
2889
|
-
return (l, c) => l.layout.handReadFlag ? (r(),
|
|
2889
|
+
return (l, c) => l.layout.handReadFlag ? (r(), u("div", {
|
|
2890
2890
|
key: 0,
|
|
2891
2891
|
class: "score_fill flex items-center",
|
|
2892
|
-
"data-block":
|
|
2893
|
-
"data-xine":
|
|
2892
|
+
"data-block": I(Se),
|
|
2893
|
+
"data-xine": I(T).fill
|
|
2894
2894
|
}, [
|
|
2895
|
-
l.showScoreCn ? (r(),
|
|
2896
|
-
|
|
2895
|
+
l.showScoreCn ? (r(), u("span", un, [
|
|
2896
|
+
v("span", null, Z(o.value ? "" : "-") + Z(l.item.score), 1),
|
|
2897
2897
|
o.value ? (r(), J(fe, {
|
|
2898
2898
|
key: 0,
|
|
2899
2899
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2900
2900
|
name: "fiveArrowLine",
|
|
2901
2901
|
width: 1.2
|
|
2902
|
-
})) : (r(),
|
|
2903
|
-
])) :
|
|
2904
|
-
], 8, dn)) :
|
|
2902
|
+
})) : (r(), u("span", hn, "分"))
|
|
2903
|
+
])) : D("", !0)
|
|
2904
|
+
], 8, dn)) : D("", !0);
|
|
2905
2905
|
}
|
|
2906
2906
|
}), mn = ["data-xine"], yn = /* @__PURE__ */ le({
|
|
2907
2907
|
__name: "sheet",
|
|
@@ -2911,18 +2911,18 @@ const cn = /* @__PURE__ */ pe(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2911
2911
|
},
|
|
2912
2912
|
setup(e) {
|
|
2913
2913
|
const t = e;
|
|
2914
|
-
return (o, l) => (r(),
|
|
2915
|
-
|
|
2914
|
+
return (o, l) => (r(), u(B, null, [
|
|
2915
|
+
v("div", {
|
|
2916
2916
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2917
|
-
style: X({ height: `${20 + o.item.style[
|
|
2918
|
-
"data-xine":
|
|
2917
|
+
style: X({ height: `${20 + o.item.style[I(h)[t.layout.mode].fill_e]}px` }),
|
|
2918
|
+
"data-xine": I(T).fill_line
|
|
2919
2919
|
}, null, 12, mn),
|
|
2920
2920
|
o.layout.handReadFlag ? (r(), J(pn, {
|
|
2921
2921
|
key: 0,
|
|
2922
2922
|
item: o.item,
|
|
2923
2923
|
layout: o.layout,
|
|
2924
2924
|
showScoreCn: o.layout.fillScoreFlag
|
|
2925
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
2925
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
|
|
2926
2926
|
], 64));
|
|
2927
2927
|
}
|
|
2928
2928
|
}), _n = {};
|
|
@@ -2937,16 +2937,16 @@ const gn = /* @__PURE__ */ pe(_n, [["render", fn]]), bn = ["data-block"], vn = {
|
|
|
2937
2937
|
isFirst: { type: Boolean }
|
|
2938
2938
|
},
|
|
2939
2939
|
setup(e) {
|
|
2940
|
-
return (t, o) => (r(),
|
|
2940
|
+
return (t, o) => (r(), u("div", {
|
|
2941
2941
|
class: te(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
2942
2942
|
}, [
|
|
2943
|
-
t.item.chunk ?
|
|
2943
|
+
t.item.chunk ? D("", !0) : (r(), u("div", {
|
|
2944
2944
|
key: 0,
|
|
2945
2945
|
class: "absolute left-0 top-2 w-full flex items-center",
|
|
2946
|
-
"data-block":
|
|
2946
|
+
"data-block": I(Se)
|
|
2947
2947
|
}, [
|
|
2948
2948
|
_t(t.$slots, "default"),
|
|
2949
|
-
|
|
2949
|
+
v("div", vn, [
|
|
2950
2950
|
oe(rt, {
|
|
2951
2951
|
item: t.item,
|
|
2952
2952
|
layout: t.layout
|
|
@@ -2963,14 +2963,14 @@ const gn = /* @__PURE__ */ pe(_n, [["render", fn]]), bn = ["data-block"], vn = {
|
|
|
2963
2963
|
function xn(e, t) {
|
|
2964
2964
|
return null;
|
|
2965
2965
|
}
|
|
2966
|
-
const Cn = /* @__PURE__ */ pe(kn, [["render", xn]]), Sn = /* @__PURE__ */
|
|
2966
|
+
const Cn = /* @__PURE__ */ pe(kn, [["render", xn]]), Sn = /* @__PURE__ */ v("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), $n = /* @__PURE__ */ le({
|
|
2967
2967
|
__name: "sheet",
|
|
2968
2968
|
props: {
|
|
2969
2969
|
item: {},
|
|
2970
2970
|
layout: {}
|
|
2971
2971
|
},
|
|
2972
2972
|
setup(e) {
|
|
2973
|
-
return (t, o) => (r(),
|
|
2973
|
+
return (t, o) => (r(), u(B, null, [
|
|
2974
2974
|
Sn,
|
|
2975
2975
|
oe(rt, {
|
|
2976
2976
|
item: t.item,
|
|
@@ -3006,14 +3006,14 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3006
3006
|
},
|
|
3007
3007
|
setup(e) {
|
|
3008
3008
|
const t = e, o = U(0), l = U({}), c = U(), i = U(), a = U([]), s = z(() => {
|
|
3009
|
-
const m = Math.max((t.item.endAnswerLen || parseInt(t.item.style[
|
|
3009
|
+
const m = Math.max((t.item.endAnswerLen || parseInt(t.item.style[h[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
|
|
3010
3010
|
return m ? Math.ceil(m / (o.value || m)) : 0;
|
|
3011
|
-
}), y = z(() => parseInt(t.item.style[
|
|
3011
|
+
}), y = z(() => parseInt(t.item.style[h[t.layout.mode].art_b])), n = z(() => ({
|
|
3012
3012
|
width: `${o.value * y.value}px`,
|
|
3013
3013
|
height: `${y.value}px`
|
|
3014
3014
|
})), d = z(() => ({
|
|
3015
3015
|
width: `${y.value}px`
|
|
3016
|
-
})),
|
|
3016
|
+
})), A = z(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3017
3017
|
return Ye(() => {
|
|
3018
3018
|
if (!t.item.artBlock)
|
|
3019
3019
|
return;
|
|
@@ -3021,61 +3021,61 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3021
3021
|
o.value = Math.floor(c.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3022
3022
|
if (!c.value)
|
|
3023
3023
|
return;
|
|
3024
|
-
const
|
|
3024
|
+
const L = c.value.getBoundingClientRect(), q = i.value[0].getBoundingClientRect();
|
|
3025
3025
|
l.value = {
|
|
3026
|
-
left: `${q.left -
|
|
3027
|
-
top: `${q.top -
|
|
3026
|
+
left: `${q.left - L.left}px`,
|
|
3027
|
+
top: `${q.top - L.top}px`
|
|
3028
3028
|
};
|
|
3029
3029
|
}, 20);
|
|
3030
3030
|
});
|
|
3031
|
-
const m = parseInt(t.item.style[
|
|
3032
|
-
a.value = [...Array(Math.min(t.item.style[
|
|
3033
|
-
}), (m, E) => (r(),
|
|
3031
|
+
const m = parseInt(t.item.style[h[t.layout.mode].art_c]), E = t.item.style[h[t.layout.mode].art_e], H = Math.floor(m / E), ee = Math.round(H / (t.item.style[h[t.layout.mode].art_d] || 1) - 0.01) * E;
|
|
3032
|
+
a.value = [...Array(Math.min(t.item.style[h[t.layout.mode].art_d] || 1, H) - 1 || 0).keys()].map((L) => (L + 1) * ee).concat(m / E < 2 ? E : m).filter((L) => L);
|
|
3033
|
+
}), (m, E) => (r(), u("div", {
|
|
3034
3034
|
class: "w-full relative min-h-[10rem]",
|
|
3035
3035
|
ref_key: "view",
|
|
3036
3036
|
ref: c,
|
|
3037
3037
|
"data-viewid": m.item.id
|
|
3038
3038
|
}, [
|
|
3039
|
-
m.item.chunk ?
|
|
3039
|
+
m.item.chunk ? D("", !0) : (r(), u("div", {
|
|
3040
3040
|
key: 0,
|
|
3041
3041
|
class: "flex items-center mt-1 mb-4",
|
|
3042
|
-
"data-block":
|
|
3042
|
+
"data-block": I(Se)
|
|
3043
3043
|
}, [
|
|
3044
3044
|
_t(m.$slots, "default"),
|
|
3045
|
-
|
|
3045
|
+
v("div", Qn, [
|
|
3046
3046
|
oe(rt, {
|
|
3047
3047
|
item: m.item,
|
|
3048
3048
|
layout: m.layout
|
|
3049
3049
|
}, null, 8, ["item", "layout"])
|
|
3050
3050
|
])
|
|
3051
3051
|
], 8, Gn)),
|
|
3052
|
-
m.item.artBlock ? (r(),
|
|
3052
|
+
m.item.artBlock ? (r(), u(B, { key: 1 }, [
|
|
3053
3053
|
m.item.beforeArt && !m.item.startAnswerLen ? (r(), J(Ne, {
|
|
3054
3054
|
key: 0,
|
|
3055
3055
|
data: m.item.beforeArt,
|
|
3056
3056
|
"data-bart": m.item.id,
|
|
3057
3057
|
class: "indent-[2em]"
|
|
3058
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
3059
|
-
(r(!0),
|
|
3058
|
+
}, null, 8, ["data", "data-bart"])) : D("", !0),
|
|
3059
|
+
(r(!0), u(B, null, ae(s.value, (H, ee) => (r(), u("p", {
|
|
3060
3060
|
ref_for: !0,
|
|
3061
3061
|
ref_key: "line",
|
|
3062
3062
|
ref: i,
|
|
3063
3063
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3064
|
-
"data-block":
|
|
3064
|
+
"data-block": I(Se),
|
|
3065
3065
|
"data-size": m.item.startAnswerLen + (ee + 1) * o.value,
|
|
3066
3066
|
style: X(n.value)
|
|
3067
3067
|
}, [
|
|
3068
|
-
(r(!0),
|
|
3069
|
-
class: te([
|
|
3068
|
+
(r(!0), u(B, null, ae(o.value, (L, q) => (r(), u("span", {
|
|
3069
|
+
class: te([A.value[ee * o.value + q] && "flex items-center justify-center"]),
|
|
3070
3070
|
style: X(d.value)
|
|
3071
|
-
}, Z(
|
|
3072
|
-
(r(!0),
|
|
3073
|
-
m.item.startAnswerLen + ee * o.value <
|
|
3071
|
+
}, Z(A.value[ee * o.value + q] || ""), 7))), 256)),
|
|
3072
|
+
(r(!0), u(B, null, ae(a.value, (L) => (r(), u(B, null, [
|
|
3073
|
+
m.item.startAnswerLen + ee * o.value < L && m.item.startAnswerLen + (ee + 1) * o.value >= L ? (r(), u("span", {
|
|
3074
3074
|
key: 0,
|
|
3075
3075
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3076
|
-
style: X({ left: `${(
|
|
3077
|
-
"data-block":
|
|
3078
|
-
}, Z(
|
|
3076
|
+
style: X({ left: `${(L - m.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3077
|
+
"data-block": I(Ae)
|
|
3078
|
+
}, Z(L), 13, Yn)) : D("", !0)
|
|
3079
3079
|
], 64))), 256))
|
|
3080
3080
|
], 12, qn))), 256)),
|
|
3081
3081
|
m.item.afterArt && [-1, 0].includes(m.item.endAnswerLen) ? (r(), J(Ne, {
|
|
@@ -3083,7 +3083,7 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3083
3083
|
data: m.item.afterArt,
|
|
3084
3084
|
"data-aart": m.item.id,
|
|
3085
3085
|
class: "mt-2 indent-[2em]"
|
|
3086
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
3086
|
+
}, null, 8, ["data", "data-aart"])) : D("", !0)
|
|
3087
3087
|
], 64)) : (r(), J(Ne, {
|
|
3088
3088
|
key: 2,
|
|
3089
3089
|
"data-area": m.item.id,
|
|
@@ -3099,9 +3099,9 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3099
3099
|
},
|
|
3100
3100
|
emits: ["change"],
|
|
3101
3101
|
setup(e, { emit: t }) {
|
|
3102
|
-
return (o, l) => (r(),
|
|
3102
|
+
return (o, l) => (r(), u("div", {
|
|
3103
3103
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
3104
|
-
"data-block":
|
|
3104
|
+
"data-block": I(bt)
|
|
3105
3105
|
}, [
|
|
3106
3106
|
oe(Ne, {
|
|
3107
3107
|
"data-content": o.item.id,
|
|
@@ -3130,18 +3130,18 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3130
3130
|
if (i === "after")
|
|
3131
3131
|
return t.bracketType === _.bracket_cn ? ")" : ")";
|
|
3132
3132
|
};
|
|
3133
|
-
return (i, a) => (r(),
|
|
3133
|
+
return (i, a) => (r(), u("span", {
|
|
3134
3134
|
class: te(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", i.isFull && "justify-end"]),
|
|
3135
3135
|
style: X({ width: l.value }),
|
|
3136
|
-
"data-block":
|
|
3136
|
+
"data-block": I(Ae)
|
|
3137
3137
|
}, [
|
|
3138
|
-
(r(!0),
|
|
3139
|
-
y ? (r(),
|
|
3140
|
-
s[0] ? (r(),
|
|
3141
|
-
s[1] ? (r(),
|
|
3142
|
-
s[2] ? (r(),
|
|
3138
|
+
(r(!0), u(B, null, ae(o.value, (s, y) => (r(), u(B, null, [
|
|
3139
|
+
y ? (r(), u("span", Xn, " - ")) : D("", !0),
|
|
3140
|
+
s[0] ? (r(), u("span", Jn, Z(s[0]), 1)) : D("", !0),
|
|
3141
|
+
s[1] ? (r(), u("span", Zn, "(" + Z(s[1]) + ")", 1)) : D("", !0),
|
|
3142
|
+
s[2] ? (r(), u("span", es, Z(s[2]), 1)) : D("", !0)
|
|
3143
3143
|
], 64))), 256)),
|
|
3144
|
-
i.score ? (r(),
|
|
3144
|
+
i.score ? (r(), u("span", ts, Z(c("prev")) + Z(i.score) + "分" + Z(c("after")), 1)) : D("", !0)
|
|
3145
3145
|
], 14, jn));
|
|
3146
3146
|
}
|
|
3147
3147
|
}), as = {
|
|
@@ -3193,106 +3193,92 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3193
3193
|
},
|
|
3194
3194
|
setup(e, { emit: t }) {
|
|
3195
3195
|
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Dt), c = U(""), i = z(() => {
|
|
3196
|
-
const
|
|
3196
|
+
const g = o ? {
|
|
3197
3197
|
choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
3198
3198
|
fillSheet: [p.fill, p.fill_english]
|
|
3199
3199
|
} : {
|
|
3200
3200
|
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
3201
3201
|
fill: [p.fill, p.fill_english]
|
|
3202
3202
|
};
|
|
3203
|
-
return Object.keys(p).reduce((S,
|
|
3203
|
+
return Object.keys(p).reduce((S, F) => ({ ...S, [p[F]]: Object.keys(g).find((R) => g[R].includes(p[F])) || `${F}${o}` }), {});
|
|
3204
3204
|
}), a = z(() => [ke.one_choice, ke.another_choice].includes(e.data.problemType)), s = z(() => {
|
|
3205
|
-
let
|
|
3206
|
-
e.data.children.forEach((
|
|
3207
|
-
let R =
|
|
3208
|
-
((
|
|
3205
|
+
let g = [];
|
|
3206
|
+
e.data.children.forEach((F) => {
|
|
3207
|
+
let R = g[g.length - 1];
|
|
3208
|
+
((F.polymerId || l.includes(e.data.problemType)) && l.includes(F.problemType) || [He.fill, He.fill_english].includes(e.data.problemType) && e.data.style[h[e.layout.mode].fill_g] === _.portrait) && F.style ? (!R || R.type !== "polymer" || R.polymerId !== F.polymerId) && (g.push({
|
|
3209
3209
|
type: "polymer",
|
|
3210
|
-
problemType:
|
|
3211
|
-
polymerId:
|
|
3212
|
-
styleInfo:
|
|
3210
|
+
problemType: F.problemType,
|
|
3211
|
+
polymerId: F.polymerId,
|
|
3212
|
+
styleInfo: F.polymerId ? F.style : e.data.style,
|
|
3213
3213
|
children: [],
|
|
3214
3214
|
rawChildren: e.data.rawChildren || []
|
|
3215
|
-
}), R =
|
|
3215
|
+
}), R = g[g.length - 1]) : (!R || R.type !== "base") && (g.push({
|
|
3216
3216
|
type: "base",
|
|
3217
3217
|
children: []
|
|
3218
|
-
}), R =
|
|
3218
|
+
}), R = g[g.length - 1]), R.children.push({ ...F, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3219
3219
|
});
|
|
3220
|
-
const S = (
|
|
3221
|
-
let
|
|
3222
|
-
const K = (P =
|
|
3223
|
-
|
|
3220
|
+
const S = (F, R, ue, ce, ge, re) => {
|
|
3221
|
+
let b = Math.min(Math.floor(e.width / R), ue), w = [], C = [], N = !0;
|
|
3222
|
+
const K = (P = b) => {
|
|
3223
|
+
w = (re ? [...Array(P).keys()].map((G, Ce) => F.children.filter(($e, be) => be < (re ? ce : ce * b) && be % P === Ce)).filter((G) => G.length) : [...Array(P).keys()].map((G) => F.children.slice(G * ce, (G + 1) * ce))).filter((G) => G.length).map((G) => Math.max(...G.map((Ce) => {
|
|
3224
3224
|
var $e;
|
|
3225
3225
|
return (($e = Ce.optList) == null ? void 0 : $e.length) || 0;
|
|
3226
3226
|
})));
|
|
3227
3227
|
};
|
|
3228
|
-
for (K(
|
|
3229
|
-
K(
|
|
3230
|
-
return { children:
|
|
3228
|
+
for (K(b), C = [...w]; N && b < ue; )
|
|
3229
|
+
K(b + 1), N = b + 1 <= ue && w.reduce((P, G) => P + G, 0) * (Fe[e.layout.fillSize].value + 9) + (b + 1) * ge < e.width, N && (b += 1, C = [...w]);
|
|
3230
|
+
return { children: F.children.slice(0, re ? ce : ce * b), col: b, colList: [...C] };
|
|
3231
3231
|
};
|
|
3232
|
-
return
|
|
3232
|
+
return g = g.map((F) => {
|
|
3233
3233
|
var R;
|
|
3234
|
-
if (
|
|
3235
|
-
const ue =
|
|
3236
|
-
if (
|
|
3237
|
-
let
|
|
3238
|
-
for (;
|
|
3239
|
-
const
|
|
3234
|
+
if (F.type === "polymer") {
|
|
3235
|
+
const ue = F.styleInfo[h[e.layout.mode].choice_b] === _.landscape, ce = F.styleInfo[h[e.layout.mode].choice_e] || 20, ge = e.data.style[h[e.layout.mode].choice_d] || 10, re = (n.value[`h${e.data.id}`] || n.value[F.polymerId] || n.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""] || 0) * 10 + 10;
|
|
3236
|
+
if (F.styleInfo[h[e.layout.mode].choice_a] === _.choice_1) {
|
|
3237
|
+
let b = [], w = 0;
|
|
3238
|
+
for (; w < F.children.length; ) {
|
|
3239
|
+
const C = F.children.slice(w), N = Math.max(...C.map((P) => {
|
|
3240
3240
|
var G;
|
|
3241
3241
|
return ((G = P.optList) == null ? void 0 : G.length) || 0;
|
|
3242
|
-
})) * (Fe[e.layout.fillSize].value + 9) + re, K = S({
|
|
3243
|
-
|
|
3242
|
+
})) * (Fe[e.layout.fillSize].value + 9) + re, K = S({ ...F, children: C }, N, ge, ce, re, ue);
|
|
3243
|
+
b.push({ ...F, groupIndex: b.length, children: K.children, col: K.col, colList: K.colList }), w = b.map((P) => P.children.length).reduce((P, G) => P + G, 0);
|
|
3244
3244
|
}
|
|
3245
|
-
return
|
|
3246
|
-
} else if (
|
|
3247
|
-
const
|
|
3248
|
-
let
|
|
3249
|
-
return
|
|
3250
|
-
P >=
|
|
3251
|
-
}),
|
|
3252
|
-
} else if (
|
|
3253
|
-
let
|
|
3254
|
-
return
|
|
3255
|
-
P.optList.length !==
|
|
3256
|
-
}),
|
|
3257
|
-
} else if ([p.fill, p.fill_english].includes($.problemType) && $.styleInfo[u[e.layout.mode].fill_g] === _.portrait) {
|
|
3258
|
-
const f = Math.floor($.styleInfo[u[e.layout.mode].fill_f]) * ($.styleInfo[u[e.layout.mode].fill_h] || 10);
|
|
3259
|
-
return [...Array(Math.ceil($.children.length / f)).keys()].map((v, x) => ({
|
|
3260
|
-
...$,
|
|
3261
|
-
groupIndex: x,
|
|
3262
|
-
children: $.children.slice(x * f, (x + 1) * f).map((D) => ({
|
|
3263
|
-
...D,
|
|
3264
|
-
style: {
|
|
3265
|
-
...D.style,
|
|
3266
|
-
[u[e.layout.mode].fill_b]: !1,
|
|
3267
|
-
[u[e.layout.mode].fill_d]: $.styleInfo[u[e.layout.mode].fill_d]
|
|
3268
|
-
}
|
|
3269
|
-
}))
|
|
3270
|
-
}));
|
|
3245
|
+
return b;
|
|
3246
|
+
} else if (F.styleInfo[h[e.layout.mode].choice_a] === _.choice_2) {
|
|
3247
|
+
const b = Math.max(Fe[e.layout.fillSize].value + 9, re), w = Math.floor(e.width / (b * F.styleInfo[h[e.layout.mode].choice_c] + 10)), C = w * F.styleInfo[h[e.layout.mode].choice_c];
|
|
3248
|
+
let N = [{ children: [], col: w }];
|
|
3249
|
+
return F.children.forEach((K, P) => {
|
|
3250
|
+
P >= C * N.length && N.push({ children: [], col: w }), N[N.length - 1].children.push(K);
|
|
3251
|
+
}), N.map((K, P) => ({ ...F, groupIndex: P, children: K.children, col: K.col, colList: [] }));
|
|
3252
|
+
} else if (F.styleInfo[h[e.layout.mode].choice_a] === _.choice_3) {
|
|
3253
|
+
let b = [], w = 0, C = 0, N = 0, K = 0;
|
|
3254
|
+
return F.children.forEach((P) => {
|
|
3255
|
+
P.optList.length !== w && (C = P.optList.length * (Fe[e.layout.fillSize].value + 9) + re, N = Math.min(Math.floor(e.width / C), ge), K = ue ? N * 20 : N * F.styleInfo[h[e.layout.mode].choice_e], w = P.optList.length, b.push({ children: [], col: N, colList: [...Array(N).keys()].map((G) => P.optList.length) })), (!Object.values(je).includes(P.problemType) && !b.length || b[b.length - 1].children.length >= K) && b.push({ children: [], col: N, colList: [...Array(N).keys()].map((G) => P.optList.length) }), b[b.length - 1].children.push(P);
|
|
3256
|
+
}), b.map((P, G) => ({ ...F, groupIndex: G, children: P.children, col: P.col, colList: P.colList }));
|
|
3271
3257
|
} else
|
|
3272
|
-
return
|
|
3258
|
+
return F;
|
|
3273
3259
|
} else
|
|
3274
|
-
return
|
|
3275
|
-
}).flat(),
|
|
3260
|
+
return F;
|
|
3261
|
+
}).flat(), g;
|
|
3276
3262
|
}), y = z(() => {
|
|
3277
|
-
let
|
|
3263
|
+
let g = {};
|
|
3278
3264
|
return e.data.children.forEach((S) => {
|
|
3279
|
-
S.polymerId && (
|
|
3280
|
-
}),
|
|
3265
|
+
S.polymerId && (g[S.polymerId] || (g[S.polymerId] = []), g[S.polymerId][S.polymerOrder || 0] = S.id);
|
|
3266
|
+
}), g;
|
|
3281
3267
|
}), n = z(() => {
|
|
3282
3268
|
if (l.includes(e.data.problemType)) {
|
|
3283
|
-
const
|
|
3284
|
-
return { [`h${e.data.id}`]: Math.max(...
|
|
3269
|
+
const g = (e.data.rawChildren || e.data.children).map((S) => S.subStr.length);
|
|
3270
|
+
return { [`h${e.data.id}`]: Math.max(...g) };
|
|
3285
3271
|
} else
|
|
3286
|
-
return Object.keys(y.value).map((
|
|
3287
|
-
const S = (e.data.rawChildren || e.data.children).filter((
|
|
3272
|
+
return Object.keys(y.value).map((g) => {
|
|
3273
|
+
const S = (e.data.rawChildren || e.data.children).filter((F) => F.polymerId === g).map((F) => F.subStr.length);
|
|
3288
3274
|
return {
|
|
3289
|
-
[
|
|
3275
|
+
[g]: Math.max(...S)
|
|
3290
3276
|
};
|
|
3291
|
-
}).reduce((
|
|
3277
|
+
}).reduce((g, S) => ({ ...g, ...S }), {});
|
|
3292
3278
|
});
|
|
3293
3279
|
return {
|
|
3294
|
-
Gps_cls:
|
|
3295
|
-
problemLayoutKey:
|
|
3280
|
+
Gps_cls: T,
|
|
3281
|
+
problemLayoutKey: h,
|
|
3296
3282
|
problemLayoutVal: _,
|
|
3297
3283
|
hoverActive: c,
|
|
3298
3284
|
ModuleTag: o,
|
|
@@ -3300,61 +3286,61 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3300
3286
|
GroupData: s,
|
|
3301
3287
|
PolymerData: y,
|
|
3302
3288
|
SubWidthInfo: n,
|
|
3303
|
-
ComputName: (
|
|
3304
|
-
ComputAbs: (
|
|
3305
|
-
ComputPolymerCls: (
|
|
3306
|
-
ComputPolymerStyle: (
|
|
3307
|
-
var
|
|
3289
|
+
ComputName: (g) => g.problemType ? i.value[g.problemType] : "notArea",
|
|
3290
|
+
ComputAbs: (g) => o && [p.slove, p.art].includes(g.problemType),
|
|
3291
|
+
ComputPolymerCls: (g) => [p.decide].includes(g.problemType) ? [] : g.styleInfo[h[e.layout.mode].choice_a] === _.choice_2 ? ["port_view"] : ["grid", g.groupIndex && "mt-6"],
|
|
3292
|
+
ComputPolymerStyle: (g) => {
|
|
3293
|
+
var F;
|
|
3308
3294
|
let S = {};
|
|
3309
|
-
if ([p.fill, p.fill_english].includes(
|
|
3310
|
-
switch (
|
|
3295
|
+
if ([p.fill, p.fill_english].includes(g.problemType))
|
|
3296
|
+
switch (g.styleInfo[h[e.layout.mode].fill_g]) {
|
|
3311
3297
|
case _.portrait:
|
|
3312
3298
|
S = {
|
|
3313
3299
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
3314
|
-
"grid-template-columns": `repeat(${Math.floor(
|
|
3315
|
-
"grid-template-rows": `repeat(${Math.ceil(
|
|
3300
|
+
"grid-template-columns": `repeat(${Math.floor(g.styleInfo[h[e.layout.mode].fill_f])}, 1fr)`,
|
|
3301
|
+
"grid-template-rows": `repeat(${Math.ceil(g.children.length / Math.floor(g.styleInfo[h[e.layout.mode].fill_f]))}, 1fr)`
|
|
3316
3302
|
};
|
|
3317
3303
|
break;
|
|
3318
3304
|
}
|
|
3319
|
-
else if (Object.values(je).includes(
|
|
3320
|
-
if (
|
|
3305
|
+
else if (Object.values(je).includes(g.problemType)) {
|
|
3306
|
+
if (g.styleInfo[h[e.layout.mode].choice_a] === _.choice_2)
|
|
3321
3307
|
return S;
|
|
3322
3308
|
let R = [];
|
|
3323
|
-
const ue =
|
|
3324
|
-
switch (
|
|
3309
|
+
const ue = g.styleInfo[h[e.layout.mode].choice_b] === _.landscape, ce = g.styleInfo[h[e.layout.mode].choice_e] || 20, ge = (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[((F = e.data.children[0]) == null ? void 0 : F.polymerId) || ""] || 0) * 10 + 10, re = g.colList.map((b) => b * (Fe[e.layout.fillSize].value + 9) + ge);
|
|
3310
|
+
switch (g.styleInfo[h[e.layout.mode].choice_f]) {
|
|
3325
3311
|
case _.choice_6:
|
|
3326
|
-
R = re.map((
|
|
3312
|
+
R = re.map((b) => `${b}px`);
|
|
3327
3313
|
break;
|
|
3328
3314
|
case _.choice_7:
|
|
3329
3315
|
default:
|
|
3330
|
-
R = re.map((
|
|
3316
|
+
R = re.map((b) => `${b / Math.max(...re)}fr`);
|
|
3331
3317
|
}
|
|
3332
|
-
switch (
|
|
3318
|
+
switch (g.styleInfo[h[e.layout.mode].choice_a]) {
|
|
3333
3319
|
case _.choice_1:
|
|
3334
3320
|
case _.choice_3:
|
|
3335
|
-
ue && !e.noPortrait && [...Array(Math.ceil(
|
|
3336
|
-
const
|
|
3337
|
-
|
|
3321
|
+
ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / ce)).keys()].map((w) => g.children.filter((C, N) => N >= w * ce && N < (w + 1) * ce)).map((w, C) => w.map((N, K) => ({ ...N, _grid_area_: ue ? null : pt[K] + C }))).flat(2).forEach((w) => {
|
|
3322
|
+
const C = g.children.find((N) => N.id === w.id);
|
|
3323
|
+
C._grid_area_ = w._grid_area_;
|
|
3338
3324
|
}), S = ue ? {
|
|
3339
|
-
"grid-template": `repeat(${
|
|
3325
|
+
"grid-template": `repeat(${g.col}, 1fr) / ${R.join(" ")}`
|
|
3340
3326
|
} : {
|
|
3341
3327
|
"grid-auto-flow": "column",
|
|
3342
|
-
"grid-template": `repeat(${Math.min(ce,
|
|
3328
|
+
"grid-template": `repeat(${Math.min(ce, g.children.length)}, 1fr) / ${R.join(" ")}`
|
|
3343
3329
|
};
|
|
3344
3330
|
break;
|
|
3345
3331
|
}
|
|
3346
3332
|
}
|
|
3347
3333
|
return S;
|
|
3348
3334
|
},
|
|
3349
|
-
ComputPolymerItemStyle: (
|
|
3350
|
-
var
|
|
3351
|
-
if (
|
|
3335
|
+
ComputPolymerItemStyle: (g, S) => {
|
|
3336
|
+
var F;
|
|
3337
|
+
if (g._grid_area_)
|
|
3352
3338
|
return {
|
|
3353
|
-
"grid-area":
|
|
3339
|
+
"grid-area": g._grid_area_
|
|
3354
3340
|
};
|
|
3355
|
-
if (l.includes(
|
|
3356
|
-
const R = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[
|
|
3357
|
-
return !((S + 1) %
|
|
3341
|
+
if (l.includes(g.problemType) && g.style[h[e.layout.mode].choice_a] === _.choice_2) {
|
|
3342
|
+
const R = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[(F = g.children[0]) == null ? void 0 : F.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (R * g.style[h[e.layout.mode].choice_c] + 10)), ce = (e.width - R * ue * g.style[h[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
|
|
3343
|
+
return !((S + 1) % g.style[h[e.layout.mode].choice_c]) && ((S + 1) % (g.style[h[e.layout.mode].choice_c] * ue) || ue < 2) ? {
|
|
3358
3344
|
"min-width": `${R - 5}px`,
|
|
3359
3345
|
"margin-right": `${ce}px`
|
|
3360
3346
|
} : {
|
|
@@ -3363,79 +3349,79 @@ const Hn = /* @__PURE__ */ pe(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3363
3349
|
}
|
|
3364
3350
|
return {};
|
|
3365
3351
|
},
|
|
3366
|
-
ComputStyle: (
|
|
3352
|
+
ComputStyle: (g, S) => {
|
|
3367
3353
|
var R;
|
|
3368
|
-
let
|
|
3354
|
+
let F = {};
|
|
3369
3355
|
if (!o)
|
|
3370
|
-
return
|
|
3371
|
-
if (l.includes(
|
|
3356
|
+
return F;
|
|
3357
|
+
if (l.includes(g.problemType)) {
|
|
3372
3358
|
let ue = {};
|
|
3373
3359
|
if (Object.values(je).includes(e.data.problemType)) {
|
|
3374
3360
|
const ce = Math.max(.../*props.data.rawChildren || */
|
|
3375
|
-
e.data.children.map((re) => re.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[
|
|
3361
|
+
e.data.children.map((re) => re.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[g.polymerId || ""] || n.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""] || 0) * 10 + 10, ge = Math.min(Math.floor(e.width / ce), e.data.style[h[e.layout.mode].choice_d] || 10);
|
|
3376
3362
|
ue = S % ge ? { minWidth: `${ce}px`, marginLeft: `${(e.width - ce * ge) / (ge - 1) - 5}px` } : { minWidth: `${ce}px` };
|
|
3377
3363
|
}
|
|
3378
|
-
|
|
3379
|
-
|
|
3364
|
+
F = {
|
|
3365
|
+
...F,
|
|
3380
3366
|
display: "inline-flex",
|
|
3381
3367
|
...ue
|
|
3382
3368
|
};
|
|
3383
3369
|
} else
|
|
3384
|
-
[p.fill, p.fill_english].includes(
|
|
3370
|
+
[p.fill, p.fill_english].includes(g.problemType) && (F = {
|
|
3385
3371
|
// display: (item.style[problemLayoutKey[props.layout.mode].fill_c] === problemLayoutVal.fill_1 && item.answerLen === 1) ? 'flex' : 'inline-flex',
|
|
3386
3372
|
display: "inline-flex",
|
|
3387
3373
|
alignItems: "flex-end",
|
|
3388
|
-
width: `calc(${100 /
|
|
3374
|
+
width: `calc(${100 / g.style[h[e.layout.mode].fill_d][g.order || 0]}% - 6px)`
|
|
3389
3375
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3390
3376
|
});
|
|
3391
|
-
return
|
|
3377
|
+
return F;
|
|
3392
3378
|
},
|
|
3393
|
-
ComputBlock: (
|
|
3379
|
+
ComputBlock: (g) => {
|
|
3394
3380
|
const S = [...l, p.fill, p.fill_english];
|
|
3395
|
-
if (o && (S.includes(
|
|
3381
|
+
if (o && (S.includes(g.problemType) || typeof g.groupIndex == "number"))
|
|
3396
3382
|
return Se;
|
|
3397
3383
|
},
|
|
3398
|
-
ComputItemScore: (
|
|
3399
|
-
ComputPayload: (
|
|
3400
|
-
switch (
|
|
3384
|
+
ComputItemScore: (g) => [p.slove, p.easy_slove, p.art].includes(g.problemType) && g.style[h.public.scoreShowFlag] !== _.bracket_none ? [g.score].flat(2).reduce((F, R) => F + R, 0) : null,
|
|
3385
|
+
ComputPayload: (g, S) => {
|
|
3386
|
+
switch (g.problemType) {
|
|
3401
3387
|
case p.slove:
|
|
3402
3388
|
return { isFirst: !S };
|
|
3403
3389
|
default:
|
|
3404
3390
|
return {};
|
|
3405
3391
|
}
|
|
3406
3392
|
},
|
|
3407
|
-
handleHoverIn: (
|
|
3408
|
-
c.value =
|
|
3393
|
+
handleHoverIn: (g) => {
|
|
3394
|
+
c.value = g.rootProblemId;
|
|
3409
3395
|
},
|
|
3410
|
-
handleHoverOut: (
|
|
3396
|
+
handleHoverOut: (g) => {
|
|
3411
3397
|
c.value = "";
|
|
3412
3398
|
},
|
|
3413
|
-
handleClick: (
|
|
3414
|
-
e.data.isPolymer || (
|
|
3399
|
+
handleClick: (g, S) => {
|
|
3400
|
+
e.data.isPolymer || (g.stopPropagation(), t("click", S));
|
|
3415
3401
|
},
|
|
3416
|
-
handleGroupClick: (
|
|
3417
|
-
(Object.values(ke).includes(S.__rootProblemType__) || !e.layout.polymerFlag || [p.mix, p.synthesis].includes(S.problemType)) && (
|
|
3402
|
+
handleGroupClick: (g, S) => {
|
|
3403
|
+
(Object.values(ke).includes(S.__rootProblemType__) || !e.layout.polymerFlag || [p.mix, p.synthesis].includes(S.problemType)) && (g.stopPropagation(), t("click", S));
|
|
3418
3404
|
},
|
|
3419
|
-
handleDblClick: (
|
|
3420
|
-
e.data.isPolymer || (
|
|
3405
|
+
handleDblClick: (g, S) => {
|
|
3406
|
+
e.data.isPolymer || (g.stopPropagation(), t("dbclick", S));
|
|
3421
3407
|
}
|
|
3422
3408
|
};
|
|
3423
3409
|
}
|
|
3424
3410
|
}, ls = ["data-block", "data-polymer"], ns = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ss = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], is = { key: 0 };
|
|
3425
3411
|
function rs(e, t, o, l, c, i) {
|
|
3426
3412
|
const a = Yt("Sub");
|
|
3427
|
-
return r(!0),
|
|
3428
|
-
s.type === "polymer" ? (r(),
|
|
3413
|
+
return r(!0), u(B, null, ae(l.GroupData, (s, y) => (r(), u(B, null, [
|
|
3414
|
+
s.type === "polymer" ? (r(), u("div", {
|
|
3429
3415
|
key: 0,
|
|
3430
3416
|
"data-block": l.ComputBlock(s),
|
|
3431
3417
|
"data-polymer": y,
|
|
3432
3418
|
class: te([...l.ComputPolymerCls(s)]),
|
|
3433
3419
|
style: X(l.ComputPolymerStyle(s))
|
|
3434
3420
|
}, [
|
|
3435
|
-
(r(!0),
|
|
3436
|
-
var
|
|
3437
|
-
return r(),
|
|
3438
|
-
class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3421
|
+
(r(!0), u(B, null, ae(s.children, (n, d) => {
|
|
3422
|
+
var A;
|
|
3423
|
+
return r(), u("div", {
|
|
3424
|
+
class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3439
3425
|
style: X(l.ComputPolymerItemStyle(n, d)),
|
|
3440
3426
|
"data-tag": n.__tag__,
|
|
3441
3427
|
"data-polymer": y,
|
|
@@ -3451,15 +3437,15 @@ function rs(e, t, o, l, c, i) {
|
|
|
3451
3437
|
isFull: !!l.ModuleTag,
|
|
3452
3438
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3453
3439
|
class: te(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
|
|
3454
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3440
|
+
}, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
|
|
3455
3441
|
(r(), J(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, d) })), null, 16))
|
|
3456
3442
|
], 46, ns);
|
|
3457
3443
|
}), 256))
|
|
3458
|
-
], 14, ls)) : (r(!0),
|
|
3459
|
-
var
|
|
3460
|
-
return r(),
|
|
3461
|
-
|
|
3462
|
-
class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3444
|
+
], 14, ls)) : (r(!0), u(B, { key: 1 }, ae(s.children, (n, d) => {
|
|
3445
|
+
var A;
|
|
3446
|
+
return r(), u(B, null, [
|
|
3447
|
+
v("div", {
|
|
3448
|
+
class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3463
3449
|
style: X(l.ComputStyle(n, d)),
|
|
3464
3450
|
"data-tag": n.__tag__,
|
|
3465
3451
|
"data-block": l.ComputBlock(n),
|
|
@@ -3476,10 +3462,10 @@ function rs(e, t, o, l, c, i) {
|
|
|
3476
3462
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3477
3463
|
score: l.ComputItemScore(n),
|
|
3478
3464
|
bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3479
|
-
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) :
|
|
3465
|
+
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : D("", !0),
|
|
3480
3466
|
(r(), J(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, d) })), {
|
|
3481
3467
|
default: Mt(() => [
|
|
3482
|
-
n.customSub ?
|
|
3468
|
+
n.customSub ? D("", !0) : (r(), J(a, {
|
|
3483
3469
|
key: 0,
|
|
3484
3470
|
sub: n.sub,
|
|
3485
3471
|
isFull: !!l.ModuleTag,
|
|
@@ -3491,7 +3477,7 @@ function rs(e, t, o, l, c, i) {
|
|
|
3491
3477
|
_: 2
|
|
3492
3478
|
}, 1040))
|
|
3493
3479
|
], 46, ss),
|
|
3494
|
-
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(),
|
|
3480
|
+
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), u("div", is)) : D("", !0)
|
|
3495
3481
|
], 64);
|
|
3496
3482
|
}), 256))
|
|
3497
3483
|
], 64))), 256);
|
|
@@ -3507,7 +3493,7 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3507
3493
|
}, a = t ? `<span>${i("prev")}${t}分${i("after")}</span>` : "";
|
|
3508
3494
|
return c ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Ae}>${c}${a}</span>` : "";
|
|
3509
3495
|
}, Ee = 200 / 96, Wt = 4, ds = 10, Q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, de = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Pe = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), us = (e, t, o) => {
|
|
3510
|
-
const l = Q(de(`${
|
|
3496
|
+
const l = Q(de(`${T.item}${e._sub}`, t));
|
|
3511
3497
|
return !(l.top >= o.top + o.height || l.top + l.height < o.top);
|
|
3512
3498
|
}, he = (e, t, o = !1) => !e || !t ? null : {
|
|
3513
3499
|
x: e.x - t.x,
|
|
@@ -3539,14 +3525,14 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3539
3525
|
width: Math.round(l.width * Ee + o * 2),
|
|
3540
3526
|
height: Math.round(l.height * Ee + o * 2)
|
|
3541
3527
|
};
|
|
3542
|
-
}, Gt = (e, t =
|
|
3528
|
+
}, Gt = (e, t = T.en_num) => {
|
|
3543
3529
|
const o = de(t);
|
|
3544
3530
|
if (!o)
|
|
3545
3531
|
return null;
|
|
3546
3532
|
const l = {
|
|
3547
3533
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3548
3534
|
area: he(Q(o), Q(e.pageDom[0])),
|
|
3549
|
-
list: Pe(
|
|
3535
|
+
list: Pe(T.en_num_group, o).map((c) => Pe(T.en_num_item, c).map((i) => he(Q(i), Q(e.pageDom[0]), !0)))
|
|
3550
3536
|
};
|
|
3551
3537
|
return e.bindWidth ? {
|
|
3552
3538
|
choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
|
|
@@ -3572,35 +3558,35 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3572
3558
|
cardColumnCount: e.layout.column,
|
|
3573
3559
|
cardColumnCount2: e.layout.backColumn,
|
|
3574
3560
|
doubleCard: !0,
|
|
3575
|
-
paperWidth: Math.round(
|
|
3576
|
-
paperHeight: Math.round(
|
|
3561
|
+
paperWidth: Math.round(x[e.layout.paper].width * Ee),
|
|
3562
|
+
paperHeight: Math.round(x[e.layout.paper].height * Ee)
|
|
3577
3563
|
}), ps = (e) => {
|
|
3578
3564
|
const t = Q(e.pageDom[0]), o = Q(e.pageDom[1]), l = (c, i) => {
|
|
3579
3565
|
var s;
|
|
3580
3566
|
const a = i > 2 || tt.includes(e.layout.paper) ? {
|
|
3581
|
-
trdLeftTopPos: ie(he(Q(Pe(`${
|
|
3582
|
-
trdLeftBottomPos: ie(he(Q(Pe(`${
|
|
3567
|
+
trdLeftTopPos: ie(he(Q(Pe(`${T.point}t`, e.pageDom[c])[1]), Q(e.pageDom[c]))),
|
|
3568
|
+
trdLeftBottomPos: ie(he(Q(Pe(`${T.point}b`, e.pageDom[c])[1]), Q(e.pageDom[c])))
|
|
3583
3569
|
} : {};
|
|
3584
3570
|
return (s = We.find((y) => y.code === e.layout.paper)) != null && s.isMultCol ? {
|
|
3585
|
-
secLeftTopPos: ie(he(Q(Pe(`${
|
|
3586
|
-
secLeftBottomPos: ie(he(Q(Pe(`${
|
|
3571
|
+
secLeftTopPos: ie(he(Q(Pe(`${T.point}t`, e.pageDom[c])[0]), Q(e.pageDom[c]))),
|
|
3572
|
+
secLeftBottomPos: ie(he(Q(Pe(`${T.point}b`, e.pageDom[c])[0]), Q(e.pageDom[c]))),
|
|
3587
3573
|
...a
|
|
3588
3574
|
} : null;
|
|
3589
3575
|
};
|
|
3590
3576
|
return {
|
|
3591
3577
|
// 取第一/二页定位点信息
|
|
3592
|
-
leftTopPos: ie(he(Q(de(`${
|
|
3593
|
-
rightTopPos: ie(he(Q(de(`${
|
|
3594
|
-
leftBottomPos: ie(he(Q(de(`${
|
|
3595
|
-
rightBottomPos: ie(he(Q(de(`${
|
|
3578
|
+
leftTopPos: ie(he(Q(de(`${T.point}lt`, e.pageDom[0])), t)),
|
|
3579
|
+
rightTopPos: ie(he(Q(de(`${T.point}rt`, e.pageDom[0])), t)),
|
|
3580
|
+
leftBottomPos: ie(he(Q(de(`${T.point}lb`, e.pageDom[0])), t)),
|
|
3581
|
+
rightBottomPos: ie(he(Q(de(`${T.point}rb`, e.pageDom[0])), t)),
|
|
3596
3582
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3597
3583
|
verticalAuxInfo: [
|
|
3598
|
-
ie(he(Q(de(`${
|
|
3599
|
-
ie(he(Q(de(`${
|
|
3584
|
+
ie(he(Q(de(`${T.point}l`, e.pageDom[0])), t)),
|
|
3585
|
+
ie(he(Q(de(`${T.point}r`, e.pageDom[0])), t))
|
|
3600
3586
|
],
|
|
3601
3587
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3602
|
-
ie(he(Q(de(`${
|
|
3603
|
-
ie(he(Q(de(`${
|
|
3588
|
+
ie(he(Q(de(`${T.point}l`, e.pageDom[1])), o)),
|
|
3589
|
+
ie(he(Q(de(`${T.point}r`, e.pageDom[1])), o))
|
|
3604
3590
|
] : null,
|
|
3605
3591
|
auxAnchorInfo: l(0, e.layout.column),
|
|
3606
3592
|
auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
|
|
@@ -3608,11 +3594,11 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3608
3594
|
}, ms = (e) => {
|
|
3609
3595
|
let t = 10;
|
|
3610
3596
|
if (e.pageDom[1]) {
|
|
3611
|
-
const l = de(`${
|
|
3612
|
-
t = de(`${
|
|
3597
|
+
const l = de(`${T.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3598
|
+
t = de(`${T.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
|
|
3613
3599
|
}
|
|
3614
|
-
let o = he(Q(de(
|
|
3615
|
-
return o = { ...o, y: o.y % (
|
|
3600
|
+
let o = he(Q(de(T.page, e.pageDom[e.pageTotal - 1])), Q(e.pageDom[e.pageTotal - 1]));
|
|
3601
|
+
return o = { ...o, y: o.y % (x[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3616
3602
|
{
|
|
3617
3603
|
// 固定值
|
|
3618
3604
|
choiceQuestionCount: 1,
|
|
@@ -3621,7 +3607,7 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3621
3607
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3622
3608
|
choiceQuestionPosition: ie(o, !0),
|
|
3623
3609
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3624
|
-
firstChoicePosition: ie(he(Q(de(`${
|
|
3610
|
+
firstChoicePosition: ie(he(Q(de(`${T.page_item}0`, e.pageDom[e.pageTotal - 1])), Q(e.pageDom[e.pageTotal - 1]))),
|
|
3625
3611
|
// 页码点最大值,展开为数组
|
|
3626
3612
|
choiceGridSequenceNOList: gt.filter((l, c) => c < e.pageTotal),
|
|
3627
3613
|
// 排列方向
|
|
@@ -3633,7 +3619,7 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3633
3619
|
}
|
|
3634
3620
|
];
|
|
3635
3621
|
}, ys = (e) => {
|
|
3636
|
-
const t = de(
|
|
3622
|
+
const t = de(T.lack, e.pageDom[0]);
|
|
3637
3623
|
return t ? {
|
|
3638
3624
|
// 固定值
|
|
3639
3625
|
choiceQuestionCount: 1,
|
|
@@ -3653,13 +3639,13 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3653
3639
|
xColOffset: 0
|
|
3654
3640
|
} : null;
|
|
3655
3641
|
}, _s = (e) => {
|
|
3656
|
-
let t = he(Q(de(
|
|
3642
|
+
let t = he(Q(de(T.en_code, e.pageDom[0])), Q(e.pageDom[0]));
|
|
3657
3643
|
return ie(t);
|
|
3658
3644
|
}, fs = (e) => {
|
|
3659
|
-
const t = de(
|
|
3645
|
+
const t = de(T.write_view, e.pageDom[0]);
|
|
3660
3646
|
if (!t)
|
|
3661
3647
|
return null;
|
|
3662
|
-
const o = Pe(
|
|
3648
|
+
const o = Pe(T.score_item, t);
|
|
3663
3649
|
return {
|
|
3664
3650
|
id: "0",
|
|
3665
3651
|
problemType: p.slove,
|
|
@@ -3726,91 +3712,91 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3726
3712
|
return [...Array(e.pageDom.length).keys()].map((c) => {
|
|
3727
3713
|
const i = Math.floor(c / 2) * (e.layout.column + e.layout.backColumn) + (c % 2 ? e.layout.column : 0);
|
|
3728
3714
|
return [...Array(c % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((a, s) => i + s < t.length).map((a, s) => {
|
|
3729
|
-
const y = e.pageDom[c], n = Q(y), d = e.colDom[i + s],
|
|
3730
|
-
const q = de(`${
|
|
3715
|
+
const y = e.pageDom[c], n = Q(y), d = e.colDom[i + s], A = Q(d), m = e.colViewDom[i + s], E = Q(m), H = t[i + s].data.map((L) => L.children).flat(), ee = t[i + s].data.filter((L) => [ke.one_choice, ke.another_choice].includes(L.problemType) && L.rawChildren.length).map((L) => {
|
|
3716
|
+
const q = de(`${T.choice}${L.id}`, d);
|
|
3731
3717
|
return q ? {
|
|
3732
3718
|
id: `${++o}`,
|
|
3733
|
-
baseIndex: parseInt(
|
|
3719
|
+
baseIndex: parseInt(L.rawChildren[0]._sub),
|
|
3734
3720
|
position: he(Q(q), n),
|
|
3735
|
-
problemType:
|
|
3721
|
+
problemType: L.problemType,
|
|
3736
3722
|
isOneChoice: !0,
|
|
3737
|
-
optList: Pe(
|
|
3723
|
+
optList: Pe(T.fill, q).map((k, M) => ({
|
|
3738
3724
|
id: `${o}.${M + 1}`,
|
|
3739
3725
|
position: he(Q(k), n)
|
|
3740
3726
|
})).filter((k) => k.position)
|
|
3741
3727
|
} : {};
|
|
3742
|
-
}).filter((
|
|
3743
|
-
return H.filter((
|
|
3728
|
+
}).filter((L) => L.position);
|
|
3729
|
+
return H.filter((L) => L.problemType && us(L, d, A)).map((L, q) => {
|
|
3744
3730
|
let k = {};
|
|
3745
|
-
l[
|
|
3746
|
-
const M = de(`${
|
|
3747
|
-
switch (
|
|
3731
|
+
l[L._sub] ? l[L._sub] += 1 : l[L._sub] = 1;
|
|
3732
|
+
const M = de(`${T.item}${L._sub}`, d);
|
|
3733
|
+
switch (L.problemType) {
|
|
3748
3734
|
case p.choice:
|
|
3749
3735
|
case p.choice_english:
|
|
3750
3736
|
case p.choice_multiple:
|
|
3751
3737
|
case p.cloze:
|
|
3752
3738
|
k = {
|
|
3753
|
-
score:
|
|
3754
|
-
isColumn:
|
|
3755
|
-
optList:
|
|
3756
|
-
id: `${
|
|
3757
|
-
position: Be(de(`${
|
|
3739
|
+
score: L.score,
|
|
3740
|
+
isColumn: L.style[h[e.layout.mode].choice_a] !== _.choice_2,
|
|
3741
|
+
optList: L.optList.map((ne, g) => ({
|
|
3742
|
+
id: `${L._sub}.${g + 1}`,
|
|
3743
|
+
position: Be(de(`${T.fill}${g}`, M), E, n)
|
|
3758
3744
|
})).filter((ne) => ne.position)
|
|
3759
3745
|
};
|
|
3760
3746
|
break;
|
|
3761
3747
|
case p.decide:
|
|
3762
3748
|
k = {
|
|
3763
|
-
optList: [0, 1].map((ne,
|
|
3764
|
-
id: `${
|
|
3765
|
-
position: Be(de(`${
|
|
3749
|
+
optList: [0, 1].map((ne, g) => ({
|
|
3750
|
+
id: `${L._sub}.${g + 1}`,
|
|
3751
|
+
position: Be(de(`${T.fill}${g}`, M), E, n)
|
|
3766
3752
|
})).filter((ne) => ne.position)
|
|
3767
3753
|
};
|
|
3768
3754
|
break;
|
|
3769
3755
|
case p.fill:
|
|
3770
3756
|
case p.fill_english:
|
|
3771
|
-
const V = Pe(
|
|
3757
|
+
const V = Pe(T.fill, M), W = Pe(T.fill_line, M);
|
|
3772
3758
|
k = {
|
|
3773
|
-
children: [
|
|
3774
|
-
id: S.length > 1 ? `${
|
|
3759
|
+
children: [L.score].flat().map((ne, g, S) => ({
|
|
3760
|
+
id: S.length > 1 ? `${L._sub}.${g + 1}` : L._sub,
|
|
3775
3761
|
score: ne,
|
|
3776
|
-
problemType:
|
|
3777
|
-
isHiddenContent: !
|
|
3762
|
+
problemType: L.problemType,
|
|
3763
|
+
isHiddenContent: !L.style[h[e.layout.mode].fill_b],
|
|
3778
3764
|
position: Be(M, E, n),
|
|
3779
|
-
scorePosition: Be(V[
|
|
3780
|
-
answerPosition: Be(W[
|
|
3765
|
+
scorePosition: Be(V[g], E, n),
|
|
3766
|
+
answerPosition: Be(W[g], E, n)
|
|
3781
3767
|
})).filter((ne) => ne.position)
|
|
3782
3768
|
};
|
|
3783
3769
|
break;
|
|
3784
3770
|
case p.slove:
|
|
3785
3771
|
case p.easy_slove:
|
|
3786
3772
|
case p.art:
|
|
3787
|
-
const Y = de(
|
|
3773
|
+
const Y = de(T.score, M);
|
|
3788
3774
|
k = {
|
|
3789
|
-
scoreList: Y ? [de(
|
|
3775
|
+
scoreList: Y ? [de(T.score_tenbit, Y), de(T.score_base, Y), de(T.score_half, Y)].map((ne) => {
|
|
3790
3776
|
if (!ne)
|
|
3791
3777
|
return {};
|
|
3792
|
-
const
|
|
3778
|
+
const g = Pe(T.score_item, ne);
|
|
3793
3779
|
return {
|
|
3794
3780
|
position: Be(ne, E, n, !0),
|
|
3795
3781
|
itemPosition: {
|
|
3796
|
-
width:
|
|
3782
|
+
width: g[0].offsetWidth
|
|
3797
3783
|
},
|
|
3798
|
-
score:
|
|
3784
|
+
score: g.map((S) => Math.abs(parseFloat(S.innerText)))
|
|
3799
3785
|
};
|
|
3800
3786
|
}).filter((ne) => ne.position) : null
|
|
3801
3787
|
};
|
|
3802
3788
|
}
|
|
3803
3789
|
return {
|
|
3804
|
-
id:
|
|
3805
|
-
elId:
|
|
3806
|
-
colIndex: l[
|
|
3807
|
-
problemType:
|
|
3808
|
-
_rootProblemType:
|
|
3809
|
-
_parentProblemType:
|
|
3810
|
-
position: Be(M, E, n, !1,
|
|
3790
|
+
id: L._sub,
|
|
3791
|
+
elId: L.id,
|
|
3792
|
+
colIndex: l[L._sub],
|
|
3793
|
+
problemType: L.problemType,
|
|
3794
|
+
_rootProblemType: L._rootProblemType,
|
|
3795
|
+
_parentProblemType: L._parentProblemType,
|
|
3796
|
+
position: Be(M, E, n, !1, L.id === H[H.length - 1].id && [p.slove].includes(L.problemType)),
|
|
3811
3797
|
...k
|
|
3812
3798
|
};
|
|
3813
|
-
}).concat(ee).filter((
|
|
3799
|
+
}).concat(ee).filter((L) => L.position);
|
|
3814
3800
|
});
|
|
3815
3801
|
}).map((c) => c.flat());
|
|
3816
3802
|
}, vs = (e) => {
|
|
@@ -3951,13 +3937,13 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3951
3937
|
}).flat()
|
|
3952
3938
|
})), c = (a, s) => ([a.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < s).join("."), i = l.map((a) => {
|
|
3953
3939
|
let s = [], y = [], n = [];
|
|
3954
|
-
return a.cardCuttingSectionList.forEach((d,
|
|
3940
|
+
return a.cardCuttingSectionList.forEach((d, A, m) => {
|
|
3955
3941
|
const E = c(d, 1);
|
|
3956
3942
|
let H = !1, ee = !1;
|
|
3957
|
-
if (n.find((q) => c(q, 1) === E && q.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(d), H =
|
|
3943
|
+
if (n.find((q) => c(q, 1) === E && q.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(d), H = A < m.length - 1, ee = !0), H)
|
|
3958
3944
|
return;
|
|
3959
|
-
let
|
|
3960
|
-
if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(d),
|
|
3945
|
+
let L = !1;
|
|
3946
|
+
if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(d), L = !0), n.length) {
|
|
3961
3947
|
if (n.length === 1)
|
|
3962
3948
|
s.push(n[0]);
|
|
3963
3949
|
else {
|
|
@@ -3971,17 +3957,17 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3971
3957
|
}
|
|
3972
3958
|
n = [];
|
|
3973
3959
|
}
|
|
3974
|
-
|
|
3960
|
+
L || ee || n.push(d);
|
|
3975
3961
|
}), s = [...s, ...n].map((d) => ({ ...d, cuttingSectionQuestionType: o[d.sectionID]._rootProblemType || d.cuttingSectionQuestionType, sectionID: c(d, 1) })), { ...a, cardCuttingSectionList: [...s, ...y] };
|
|
3976
3962
|
}).map((a) => {
|
|
3977
3963
|
const s = a.cardCuttingSectionList.map((y) => {
|
|
3978
3964
|
var E;
|
|
3979
3965
|
let n = [], d = [];
|
|
3980
|
-
const
|
|
3981
|
-
(E = y.subjectiveQuestionSectionList) == null || E.forEach((H, ee,
|
|
3982
|
-
const q = c(H,
|
|
3966
|
+
const A = Math.max(...(y.subjectiveQuestionSectionList || []).map((H) => H.sectionID.split(".").length - 1), 1);
|
|
3967
|
+
(E = y.subjectiveQuestionSectionList) == null || E.forEach((H, ee, L) => {
|
|
3968
|
+
const q = c(H, A);
|
|
3983
3969
|
let k = !1, M = !1;
|
|
3984
|
-
if (d.find((V) => c(V,
|
|
3970
|
+
if (d.find((V) => c(V, A) === q && V.secitonSeqID === H.secitonSeqID) && (d.push(H), k = ee < L.length - 1, M = !0), !k) {
|
|
3985
3971
|
if (d.length) {
|
|
3986
3972
|
if (d.length === 1)
|
|
3987
3973
|
n.push(d[0]);
|
|
@@ -4026,8 +4012,8 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4026
4012
|
// 试卷二维码
|
|
4027
4013
|
cardSerialNumber: {
|
|
4028
4014
|
// 条形码虚线框位置, x, y, width, height
|
|
4029
|
-
encodePictureArea: ie(he(Q(de(
|
|
4030
|
-
qrCodePosition: ie(he(Q(de(
|
|
4015
|
+
encodePictureArea: ie(he(Q(de(T.art_code, e.pageDom[0])), o), !0),
|
|
4016
|
+
qrCodePosition: ie(he(Q(de(T.art_code, e.pageDom[0])), o)),
|
|
4031
4017
|
// 条形码或二维码,不确定,固定此值
|
|
4032
4018
|
pictureType: "TYPE_QRCODE"
|
|
4033
4019
|
},
|
|
@@ -4049,7 +4035,7 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4049
4035
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
4050
4036
|
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((c) => c % 2),
|
|
4051
4037
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
4052
|
-
absenceInfoIndexList: de(
|
|
4038
|
+
absenceInfoIndexList: de(T.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((c) => c % 2) : null,
|
|
4053
4039
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
4054
4040
|
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((c) => c % 2),
|
|
4055
4041
|
// 哪些面有选做老师布置题的信息,固定值
|
|
@@ -4058,7 +4044,7 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4058
4044
|
layerType: hs(e),
|
|
4059
4045
|
// 定位点信息
|
|
4060
4046
|
...ps(e),
|
|
4061
|
-
pottedLineXPos: e.bindWidth ? (l = ie(he(Q(de(
|
|
4047
|
+
pottedLineXPos: e.bindWidth ? (l = ie(he(Q(de(T.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4062
4048
|
// 页码点信息
|
|
4063
4049
|
pageSideAnchorsList: ms(e),
|
|
4064
4050
|
// 缺考标记
|
|
@@ -4069,11 +4055,11 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4069
4055
|
}, xs = (e) => {
|
|
4070
4056
|
const { config: t, data: o } = e, l = fs(t), c = bs(t, o);
|
|
4071
4057
|
l && c[0].unshift(l);
|
|
4072
|
-
const i = gs(t, c), a = ws(t, c), s = ks(t, a), y = Gt(t,
|
|
4058
|
+
const i = gs(t, c), a = ws(t, c), s = ks(t, a), y = Gt(t, T.en_num_view) || {};
|
|
4073
4059
|
return {
|
|
4074
4060
|
engineData: s,
|
|
4075
4061
|
pageTotal: t.pageTotal,
|
|
4076
|
-
format:
|
|
4062
|
+
format: x[t.layout.paper],
|
|
4077
4063
|
localData: i,
|
|
4078
4064
|
extendInfo: { shortCoordinate: y }
|
|
4079
4065
|
};
|
|
@@ -4094,10 +4080,10 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4094
4080
|
Oe(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
4095
4081
|
l.value = [], setTimeout(() => {
|
|
4096
4082
|
var n;
|
|
4097
|
-
o.ColList.forEach((d,
|
|
4083
|
+
o.ColList.forEach((d, A) => {
|
|
4098
4084
|
d.data.map((m) => m.children).flat().filter((m) => [p.slove, p.art].includes(m.problemType) && !m.chunk).forEach((m) => {
|
|
4099
|
-
var
|
|
4100
|
-
const E = (
|
|
4085
|
+
var L;
|
|
4086
|
+
const E = (L = o.ColDom[A].querySelector(`*[data-tag="${m.__tag__}"]`)) == null ? void 0 : L.querySelector(`*[data-xine="${T.score}"]`);
|
|
4101
4087
|
if (!E)
|
|
4102
4088
|
return;
|
|
4103
4089
|
E.classList.remove("err_lack");
|
|
@@ -4123,35 +4109,35 @@ const Ue = /* @__PURE__ */ pe(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4123
4109
|
var s;
|
|
4124
4110
|
(((s = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((y) => t("delAbsTxtItem", y));
|
|
4125
4111
|
};
|
|
4126
|
-
return (a, s) => (r(),
|
|
4127
|
-
|
|
4128
|
-
|
|
4112
|
+
return (a, s) => (r(), u("div", Cs, [
|
|
4113
|
+
v("div", Ss, [
|
|
4114
|
+
v("div", {
|
|
4129
4115
|
class: te(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4130
4116
|
}, null, 2),
|
|
4131
|
-
|
|
4117
|
+
v("div", {
|
|
4132
4118
|
class: te(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4133
4119
|
}, [
|
|
4134
|
-
|
|
4120
|
+
v("span", $s, [
|
|
4135
4121
|
oe(fe, {
|
|
4136
4122
|
width: 1.6,
|
|
4137
4123
|
name: l.value.length ? "wrong" : "right"
|
|
4138
4124
|
}, null, 8, ["name"])
|
|
4139
4125
|
]),
|
|
4140
|
-
|
|
4126
|
+
v("span", Ts, "排版" + Z(l.value.length ? "异常" : "良好"), 1)
|
|
4141
4127
|
], 2),
|
|
4142
|
-
l.value.length ? (r(),
|
|
4143
|
-
(r(!0),
|
|
4128
|
+
l.value.length ? (r(), u("ul", Is, [
|
|
4129
|
+
(r(!0), u(B, null, ae(l.value, (y, n) => (r(), u("li", {
|
|
4144
4130
|
key: n,
|
|
4145
4131
|
class: "layt-moni_err_item"
|
|
4146
4132
|
}, [
|
|
4147
|
-
|
|
4148
|
-
y.fn ? (r(),
|
|
4133
|
+
v("span", Ls, Z(y.msg), 1),
|
|
4134
|
+
y.fn ? (r(), u("span", {
|
|
4149
4135
|
key: 0,
|
|
4150
4136
|
class: "layt-moni_err_item_fn",
|
|
4151
4137
|
onClick: y.fn
|
|
4152
|
-
}, Z(y.btnTxt || "删除"), 9, Fs)) :
|
|
4138
|
+
}, Z(y.btnTxt || "删除"), 9, Fs)) : D("", !0)
|
|
4153
4139
|
]))), 128))
|
|
4154
|
-
])) :
|
|
4140
|
+
])) : D("", !0)
|
|
4155
4141
|
])
|
|
4156
4142
|
]));
|
|
4157
4143
|
}
|
|
@@ -4183,7 +4169,7 @@ const Ps = /* @__PURE__ */ pe(Es, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4183
4169
|
return i || (i = lt(e), ye(i).top + i.offsetHeight - t > o && (i = yt(i, t, o))), i;
|
|
4184
4170
|
}, Pt = (e, t, o, l) => {
|
|
4185
4171
|
const c = (a, s = o) => {
|
|
4186
|
-
var ee,
|
|
4172
|
+
var ee, L, q;
|
|
4187
4173
|
const y = a.map((k) => {
|
|
4188
4174
|
const M = ye(k);
|
|
4189
4175
|
return {
|
|
@@ -4194,9 +4180,9 @@ const Ps = /* @__PURE__ */ pe(Es, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4194
4180
|
}), n = y.filter((k) => k.el.offsetHeight + k.top > s).sort((k, M) => k.top - M.top), d = (ee = n.shift()) == null ? void 0 : ee.el;
|
|
4195
4181
|
if (!d) {
|
|
4196
4182
|
const k = document.createElement("div");
|
|
4197
|
-
return (
|
|
4183
|
+
return (L = a[0].parentElement) == null || L.appendChild(k), k.style.height = s - (ye(k).top - t) + "px", k;
|
|
4198
4184
|
}
|
|
4199
|
-
const
|
|
4185
|
+
const A = ye(d), m = A.top - t, E = A.left;
|
|
4200
4186
|
if (n.filter((k) => k.top < m + d.offsetHeight && k.top + k.el.offsetHeight - 1 > m && (k.left + k.el.offsetWidth - 1 < E || k.left + 1 > E + d.offsetWidth)).length) {
|
|
4201
4187
|
const k = (q = y.filter((M) => M.top < m).pop()) == null ? void 0 : q.el;
|
|
4202
4188
|
if (k != null && k.children.length) {
|
|
@@ -4228,7 +4214,7 @@ const Ps = /* @__PURE__ */ pe(Es, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4228
4214
|
console.time("layout");
|
|
4229
4215
|
const s = ye(t).top;
|
|
4230
4216
|
let y = {}, n = 0, d = 0;
|
|
4231
|
-
const
|
|
4217
|
+
const A = (k) => {
|
|
4232
4218
|
const M = k % (l + c), V = Math.floor(k / (l + c)) * 2 + (M >= l ? 1 : 0), W = i(k, V);
|
|
4233
4219
|
y = {
|
|
4234
4220
|
top: s,
|
|
@@ -4238,7 +4224,7 @@ const Ps = /* @__PURE__ */ pe(Es, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4238
4224
|
};
|
|
4239
4225
|
let m = [], E = 0;
|
|
4240
4226
|
const H = () => {
|
|
4241
|
-
|
|
4227
|
+
A(m.length), t.style.width = `${y.width}px`, m.push({
|
|
4242
4228
|
top: 0,
|
|
4243
4229
|
data: [],
|
|
4244
4230
|
width: y.width,
|
|
@@ -4249,7 +4235,7 @@ const Ps = /* @__PURE__ */ pe(Es, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4249
4235
|
const ee = (k) => {
|
|
4250
4236
|
const M = getComputedStyle(k);
|
|
4251
4237
|
return ye(k).top - y.top + parseFloat(M.borderTop) + parseFloat(M.paddingTop) + parseFloat(M.lineHeight) > m[m.length - 1].height;
|
|
4252
|
-
},
|
|
4238
|
+
}, L = (k) => {
|
|
4253
4239
|
const M = getComputedStyle(k);
|
|
4254
4240
|
return ye(k).top + k.offsetHeight - y.top - (k.dataset.block === Se ? 0 : parseFloat(M.paddingBottom) - parseFloat(M.borderBottom)) <= m[m.length - 1].height;
|
|
4255
4241
|
}, q = (k = JSON.parse(JSON.stringify(o[E] || {}))) => {
|
|
@@ -4267,7 +4253,7 @@ const Ps = /* @__PURE__ */ pe(Es, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4267
4253
|
if (V && V.height + V.top - y.top > m[m.length - 1].height)
|
|
4268
4254
|
if (k.problemType)
|
|
4269
4255
|
m[m.length - 1].data.pop(), H(), q({ ...k });
|
|
4270
|
-
else if (
|
|
4256
|
+
else if (L(M))
|
|
4271
4257
|
H(), E++, q();
|
|
4272
4258
|
else if (ee(M))
|
|
4273
4259
|
m[m.length - 1].data.pop(), H(), q({ ...k });
|
|
@@ -4277,77 +4263,77 @@ const Ps = /* @__PURE__ */ pe(Es, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4277
4263
|
m[m.length - 1].height = ye(W.cut).top - y.top, H(), Y != null && Y.contains(W.cut) ? (d = Date.now(), W.cut.dataset.hutkey = d, q({ ...k, content: Y.innerHTML })) : (m[m.length - 1].data.pop(), q({ ...k }));
|
|
4278
4264
|
}
|
|
4279
4265
|
else {
|
|
4280
|
-
let Y = [], ne = [],
|
|
4281
|
-
if (k.children.some((S,
|
|
4266
|
+
let Y = [], ne = [], g = !1;
|
|
4267
|
+
if (k.children.some((S, F) => {
|
|
4282
4268
|
var ce, ge;
|
|
4283
4269
|
const R = dt(S.__tag__, t), ue = ye(R);
|
|
4284
4270
|
if (n) {
|
|
4285
|
-
const re = R.querySelector(`*[data-cutkey="${n}"]`),
|
|
4286
|
-
m[m.length - 1].top = y.top -
|
|
4271
|
+
const re = R.querySelector(`*[data-cutkey="${n}"]`), b = ye(re);
|
|
4272
|
+
m[m.length - 1].top = y.top - b.top, m[m.length - 1].height = y.height - m[m.length - 1].top, n = 0;
|
|
4287
4273
|
}
|
|
4288
4274
|
if (ue.height + ue.top - y.top > m[m.length - 1].height) {
|
|
4289
4275
|
if ((ce = R.parentElement) != null && ce.dataset.polymer)
|
|
4290
4276
|
parseInt((ge = R.parentElement) == null ? void 0 : ge.dataset.polymer) ? (Y = Y.filter((re) => {
|
|
4291
|
-
var
|
|
4292
|
-
return dt(re.__tag__, t).dataset.polymer !== ((
|
|
4293
|
-
}), ne = k.children.slice(Y.length)) : (m[m.length - 1].data.pop(), Y = [],
|
|
4294
|
-
else if (
|
|
4295
|
-
Y.push(S), ne =
|
|
4277
|
+
var b;
|
|
4278
|
+
return dt(re.__tag__, t).dataset.polymer !== ((b = R.parentElement) == null ? void 0 : b.dataset.polymer);
|
|
4279
|
+
}), ne = k.children.slice(Y.length)) : (m[m.length - 1].data.pop(), Y = [], g = !0, H(), q({ ...k }));
|
|
4280
|
+
else if (L(R))
|
|
4281
|
+
Y.push(S), ne = F < k.children.length - 1 ? k.children.slice(F + 1) : [];
|
|
4296
4282
|
else if (ee(R))
|
|
4297
|
-
ne = k.children.slice(
|
|
4283
|
+
ne = k.children.slice(F);
|
|
4298
4284
|
else {
|
|
4299
4285
|
W = Pt(R, y.top, m[m.length - 1].height, m.length % (l + c) >= l);
|
|
4300
4286
|
const re = R.querySelector(`*[data-content="${S.id}"]`);
|
|
4301
4287
|
if (R === W.targetEl)
|
|
4302
|
-
Y.push(S), ne =
|
|
4288
|
+
Y.push(S), ne = F < k.children.length - 1 ? k.children.slice(F + 1) : [];
|
|
4303
4289
|
else if (re && re.contains(W.cut))
|
|
4304
|
-
n = Date.now(), W.cut.dataset.cutkey = n, S.content = re.innerHTML, Y.push(S), ne = [{ ...S, content: re.innerHTML },
|
|
4290
|
+
n = Date.now(), W.cut.dataset.cutkey = n, S.content = re.innerHTML, Y.push(S), ne = [{ ...S, content: re.innerHTML }, ...F < k.children.length - 1 ? k.children.slice(F + 1) : []], m[m.length - 1].height = ye(W.cut).top - y.top;
|
|
4305
4291
|
else {
|
|
4306
4292
|
if (!ne.length) {
|
|
4307
|
-
let
|
|
4293
|
+
let b = { ...S };
|
|
4308
4294
|
switch (S.problemType) {
|
|
4309
4295
|
case He.slove:
|
|
4310
|
-
const
|
|
4311
|
-
|
|
4296
|
+
const w = R.querySelector(`*[data-area="${S.id}"]`);
|
|
4297
|
+
w != null && w.contains(W.cut) && (n = Date.now(), W.cut.dataset.cutkey = n, S.answerArea = w.innerHTML), R.contains(W.targetEl) && (S.chunk += 1);
|
|
4312
4298
|
break;
|
|
4313
4299
|
case He.art:
|
|
4314
4300
|
if (S.artEditor) {
|
|
4315
|
-
const
|
|
4316
|
-
|
|
4301
|
+
const C = R.querySelector(`*[data-area="${S.id}"]`);
|
|
4302
|
+
C != null && C.contains(W.cut) && (n = Date.now(), W.cut.dataset.cutkey = n, S.answerArea = C.innerHTML), R.contains(W.targetEl) && (S.chunk += 1);
|
|
4317
4303
|
break;
|
|
4318
4304
|
} else {
|
|
4319
|
-
const
|
|
4320
|
-
if (
|
|
4321
|
-
n = Date.now(), W.cut.dataset.cutkey = n, S.beforeArt =
|
|
4322
|
-
else if (
|
|
4323
|
-
const P = parseInt(
|
|
4305
|
+
const C = R.querySelector(`*[data-bart="${S.id}"]`), N = W.targetEl.dataset.block === Se && W.targetEl.dataset.size ? W.targetEl : null, K = R.querySelector(`*[data-aart="${S.id}"]`);
|
|
4306
|
+
if (C != null && C.contains(W.cut))
|
|
4307
|
+
n = Date.now(), W.cut.dataset.cutkey = n, S.beforeArt = C == null ? void 0 : C.innerHTML, b.beforeGuide = "", b.afterArt = "", b.endAnswerLen = -1;
|
|
4308
|
+
else if (N) {
|
|
4309
|
+
const P = parseInt(N.dataset.size);
|
|
4324
4310
|
if (!S.artBlock)
|
|
4325
4311
|
if (S.beforeGuide && S.beforeGuide.length + (S.startAnswerLen ? 0 : 2) - S.startAnswerLen > P) {
|
|
4326
4312
|
const G = R.querySelector(`*[data-guide="${S.id}"]`), Ce = ye(G);
|
|
4327
4313
|
if (Ce.height + Ce.top - y.top > y.height) {
|
|
4328
|
-
G.innerHTML = S.beforeGuide.split("").map((
|
|
4329
|
-
const $e = ye(
|
|
4330
|
-
|
|
4314
|
+
G.innerHTML = S.beforeGuide.split("").map((f) => `<span>${f}</span>`).join("");
|
|
4315
|
+
const $e = ye(N).top + N.offsetHeight, be = [...Array.from(G.children)].findIndex((f) => ye(f).top > $e);
|
|
4316
|
+
b.beforeGuide = S.beforeGuide.substring(0, be), S.beforeGuide = S.beforeGuide.substring(be);
|
|
4331
4317
|
} else
|
|
4332
4318
|
S.beforeGuide = "";
|
|
4333
4319
|
} else
|
|
4334
4320
|
S.beforeGuide = "";
|
|
4335
|
-
|
|
4321
|
+
b.endAnswerLen = P, S.startAnswerLen = P;
|
|
4336
4322
|
} else
|
|
4337
|
-
K != null && K.contains(W.cut) ? (n = Date.now(), W.cut.dataset.cutkey = n, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = K.innerHTML) : W.targetEl ===
|
|
4323
|
+
K != null && K.contains(W.cut) ? (n = Date.now(), W.cut.dataset.cutkey = n, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = K.innerHTML) : W.targetEl === C ? (b.endAnswerLen = -1, b.beforeGuide = "", b.afterArt = "", S.beforeArt = "") : (C == null ? void 0 : C.previousElementSibling) === W.cut && (b.endAnswerLen = -1, b.beforeArt = "", b.beforeGuide = "", b.afterArt = "");
|
|
4338
4324
|
R.contains(W.targetEl) && (S.chunk += 1);
|
|
4339
4325
|
break;
|
|
4340
4326
|
}
|
|
4341
4327
|
}
|
|
4342
|
-
R.contains(W.targetEl) && Y.push(
|
|
4328
|
+
R.contains(W.targetEl) && Y.push(b), n && (m[m.length - 1].height = ye(W.cut).top - y.top);
|
|
4343
4329
|
}
|
|
4344
|
-
ne = [S,
|
|
4330
|
+
ne = [S, ...F < k.children.length - 1 ? k.children.slice(F + 1) : []];
|
|
4345
4331
|
}
|
|
4346
4332
|
}
|
|
4347
4333
|
return !0;
|
|
4348
4334
|
} else
|
|
4349
4335
|
Y.push(S);
|
|
4350
|
-
}),
|
|
4336
|
+
}), g)
|
|
4351
4337
|
return;
|
|
4352
4338
|
m[m.length - 1].data[m[m.length - 1].data.length - 1].children = Y, ne.length ? (H(), q({ ...k, isHidden: !0, children: ne })) : (a([...m]), E++, q());
|
|
4353
4339
|
}
|
|
@@ -4403,30 +4389,30 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4403
4389
|
const E = window.getComputedStyle(m);
|
|
4404
4390
|
(E.display === "none" || E.width === "0px" && E.height === "0px" || E.opacity === "0" || E.visibility === "hidden") && m.remove();
|
|
4405
4391
|
});
|
|
4406
|
-
const
|
|
4392
|
+
const A = (m = d) => {
|
|
4407
4393
|
[...Array.from(m.childNodes)].forEach((E) => {
|
|
4408
4394
|
var H;
|
|
4409
4395
|
if (E.nodeType === Node.ELEMENT_NODE && E.children.length)
|
|
4410
|
-
|
|
4396
|
+
A(E);
|
|
4411
4397
|
else if (E.nodeType === Node.TEXT_NODE) {
|
|
4412
4398
|
const ee = document.createElement("span");
|
|
4413
4399
|
ee.textContent = E.textContent, window.REGULAR.underscore.test(E.textContent || "") && (window.getComputedStyle(E.parentNode).wordBreak !== "break-all" || !(E.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (E.textContent || "").length > 5 && (ee.innerHTML = (E.textContent || "").replace(window.REGULAR.underscore, (q) => q.length > 5 ? `<span style="word-break: break-all">${q}</span>` : q)), (H = E.parentElement) == null || H.replaceChild(ee, E);
|
|
4414
4400
|
}
|
|
4415
4401
|
});
|
|
4416
4402
|
};
|
|
4417
|
-
return
|
|
4403
|
+
return A(), d.innerHTML;
|
|
4418
4404
|
};
|
|
4419
|
-
return (n, d) => (r(),
|
|
4405
|
+
return (n, d) => (r(), u("div", Ns, [
|
|
4420
4406
|
o.readonly ? (r(), J(Ne, {
|
|
4421
4407
|
key: 1,
|
|
4422
4408
|
data: o.value,
|
|
4423
4409
|
class: "raw_view"
|
|
4424
|
-
}, null, 8, ["data"])) : (r(),
|
|
4410
|
+
}, null, 8, ["data"])) : (r(), u("div", {
|
|
4425
4411
|
key: 0,
|
|
4426
4412
|
class: "overflow-auto outline-none whitespace-normal editor_view",
|
|
4427
4413
|
disabled: o.readonly,
|
|
4428
4414
|
contentEditable: !o.readonly,
|
|
4429
|
-
id:
|
|
4415
|
+
id: I(wt),
|
|
4430
4416
|
onFocus: s,
|
|
4431
4417
|
onBlur: a
|
|
4432
4418
|
}, null, 40, Os))
|
|
@@ -4461,8 +4447,8 @@ const Ws = {
|
|
|
4461
4447
|
if (!l || e.getAttribute("disabled") === "true")
|
|
4462
4448
|
return;
|
|
4463
4449
|
n.stopPropagation(), n.preventDefault(), s = { x: n.clientX, y: n.clientY };
|
|
4464
|
-
const d = c ? Math.min(Math.max(s.x - o.x + a.x, 0), i.offsetWidth - e.offsetWidth) : s.x - o.x + a.x,
|
|
4465
|
-
e.style.left = `${d}px`, e.style.top = `${
|
|
4450
|
+
const d = c ? Math.min(Math.max(s.x - o.x + a.x, 0), i.offsetWidth - e.offsetWidth) : s.x - o.x + a.x, A = c ? Math.min(Math.max(s.y - o.y + a.y, 0), i.offsetHeight - e.offsetHeight) : s.y - o.y + a.y;
|
|
4451
|
+
e.style.left = `${d}px`, e.style.top = `${A}px`, t.value && typeof t.value == "function" && t.value({ x: d, y: A });
|
|
4466
4452
|
}, document.addEventListener("mousemove", ut);
|
|
4467
4453
|
},
|
|
4468
4454
|
unmounted: () => {
|
|
@@ -4487,49 +4473,49 @@ const Ws = {
|
|
|
4487
4473
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4488
4474
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4489
4475
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4490
|
-
], a = U({}), s = U(), y = U(0), n = U(0), d = U(),
|
|
4491
|
-
...
|
|
4492
|
-
top:
|
|
4493
|
-
}))), k = z(() => o.txtData.map((
|
|
4494
|
-
...
|
|
4495
|
-
top:
|
|
4496
|
-
}))), M = z(() => H.value ? H.value.split("-")[0] === "img" ? q.value.find((
|
|
4476
|
+
], a = U({}), s = U(), y = U(0), n = U(0), d = U(), A = U(), m = U({}), E = U(!1), H = U(), ee = U(), L = U(), q = z(() => o.imgData.map((b) => ({
|
|
4477
|
+
...b,
|
|
4478
|
+
top: b.top - Math.floor(b.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4479
|
+
}))), k = z(() => o.txtData.map((b) => ({
|
|
4480
|
+
...b,
|
|
4481
|
+
top: b.top - Math.floor(b.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4482
|
+
}))), M = z(() => H.value ? H.value.split("-")[0] === "img" ? q.value.find((w) => w.key === H.value) : k.value.find((w) => w.key === H.value) : null), V = z(() => M.value ? { [M.value.key]: { ...s.value } } : {});
|
|
4497
4483
|
Ye(() => {
|
|
4498
4484
|
d.value = document.body.querySelector(".__layout__");
|
|
4499
4485
|
});
|
|
4500
|
-
const W = (
|
|
4501
|
-
s.value = { ...M.value, left: Math.max(
|
|
4502
|
-
var
|
|
4503
|
-
((
|
|
4486
|
+
const W = (b) => {
|
|
4487
|
+
s.value = { ...M.value, left: Math.max(b.x, 0), top: Math.max(b.y, 0) }, clearTimeout(A.value), A.value = setTimeout(() => {
|
|
4488
|
+
var w;
|
|
4489
|
+
((w = M.value) == null ? void 0 : w.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4504
4490
|
}, 400);
|
|
4505
|
-
}, Y = (
|
|
4506
|
-
E.value =
|
|
4491
|
+
}, Y = (b) => {
|
|
4492
|
+
E.value = b;
|
|
4507
4493
|
}, ne = () => {
|
|
4508
|
-
const
|
|
4509
|
-
m.value = { x:
|
|
4510
|
-
},
|
|
4511
|
-
|
|
4512
|
-
const
|
|
4513
|
-
s.value = { ...M.value, rotate: -parseInt(
|
|
4514
|
-
}, S = (
|
|
4515
|
-
|
|
4516
|
-
},
|
|
4517
|
-
var
|
|
4518
|
-
|
|
4519
|
-
}, R = (
|
|
4520
|
-
const
|
|
4494
|
+
const b = M.value, w = b.left + b.width / 2, C = b.top + b.height / 2, N = d.value.getBoundingClientRect() || {};
|
|
4495
|
+
m.value = { x: w + N.left, y: C + N.top }, d.value.addEventListener("mousemove", g), d.value.addEventListener("mouseleave", S), d.value.addEventListener("mouseup", S);
|
|
4496
|
+
}, g = (b) => {
|
|
4497
|
+
b.stopPropagation(), b.preventDefault();
|
|
4498
|
+
const w = b.clientX - m.value.x, C = m.value.y - b.clientY, N = Math.atan2(C, w) / (Math.PI / 180);
|
|
4499
|
+
s.value = { ...M.value, rotate: -parseInt(N.toString()) };
|
|
4500
|
+
}, S = (b) => {
|
|
4501
|
+
b.stopPropagation(), b.preventDefault(), t("changeAbsImgItem", s.value), d.value.removeEventListener("mousemove", g), d.value.removeEventListener("mouseleave", S), d.value.removeEventListener("mouseup", S);
|
|
4502
|
+
}, F = (b, w) => {
|
|
4503
|
+
var C;
|
|
4504
|
+
b.stopPropagation(), y.value = w, a.value = { x: b.clientX, y: b.clientY, ...M.value }, ((C = M.value) == null ? void 0 : C.key.split("-")[0]) === "img" ? d.value.addEventListener("mousemove", R) : d.value.addEventListener("mousemove", ue), d.value.addEventListener("mouseleave", ce), d.value.addEventListener("mouseup", ce);
|
|
4505
|
+
}, R = (b) => {
|
|
4506
|
+
const w = { x: b.clientX - a.value.x, y: b.clientY - a.value.y }, C = { ...M.value }, N = w.x > w.y ? "width" : "height";
|
|
4521
4507
|
[
|
|
4522
4508
|
// 0
|
|
4523
4509
|
() => {
|
|
4524
4510
|
const P = {
|
|
4525
|
-
width: a.value.width -
|
|
4526
|
-
height: a.value.width * (1 -
|
|
4527
|
-
}[
|
|
4528
|
-
width: a.value.height * (1 -
|
|
4529
|
-
height: a.value.height -
|
|
4530
|
-
}[
|
|
4511
|
+
width: a.value.width - w.x,
|
|
4512
|
+
height: a.value.width * (1 - w.y / a.value.height)
|
|
4513
|
+
}[N], G = {
|
|
4514
|
+
width: a.value.height * (1 - w.x / a.value.width),
|
|
4515
|
+
height: a.value.height - w.y
|
|
4516
|
+
}[N];
|
|
4531
4517
|
s.value = {
|
|
4532
|
-
...
|
|
4518
|
+
...C,
|
|
4533
4519
|
width: P,
|
|
4534
4520
|
height: G,
|
|
4535
4521
|
left: a.value.left - (P - a.value.width),
|
|
@@ -4538,9 +4524,9 @@ const Ws = {
|
|
|
4538
4524
|
},
|
|
4539
4525
|
// 1
|
|
4540
4526
|
() => {
|
|
4541
|
-
const P = a.value.width * (1 -
|
|
4527
|
+
const P = a.value.width * (1 - w.y / a.value.height), G = a.value.height - w.y;
|
|
4542
4528
|
s.value = {
|
|
4543
|
-
...
|
|
4529
|
+
...C,
|
|
4544
4530
|
width: P,
|
|
4545
4531
|
height: G,
|
|
4546
4532
|
left: a.value.left - (P - a.value.width) / 2,
|
|
@@ -4550,24 +4536,24 @@ const Ws = {
|
|
|
4550
4536
|
// 2
|
|
4551
4537
|
() => {
|
|
4552
4538
|
const P = {
|
|
4553
|
-
width: a.value.height * (1 +
|
|
4554
|
-
height: a.value.height -
|
|
4555
|
-
}[
|
|
4539
|
+
width: a.value.height * (1 + w.x / a.value.width),
|
|
4540
|
+
height: a.value.height - w.y
|
|
4541
|
+
}[N];
|
|
4556
4542
|
s.value = {
|
|
4557
|
-
...
|
|
4543
|
+
...C,
|
|
4558
4544
|
width: {
|
|
4559
|
-
width: a.value.width +
|
|
4560
|
-
height: a.value.width * (1 -
|
|
4561
|
-
}[
|
|
4545
|
+
width: a.value.width + w.x,
|
|
4546
|
+
height: a.value.width * (1 - w.y / a.value.height)
|
|
4547
|
+
}[N],
|
|
4562
4548
|
height: P,
|
|
4563
4549
|
top: a.value.top - (P - a.value.height)
|
|
4564
4550
|
};
|
|
4565
4551
|
},
|
|
4566
4552
|
// 3
|
|
4567
4553
|
() => {
|
|
4568
|
-
const P = a.value.width -
|
|
4554
|
+
const P = a.value.width - w.x, G = a.value.height * (1 - w.x / a.value.width);
|
|
4569
4555
|
s.value = {
|
|
4570
|
-
...
|
|
4556
|
+
...C,
|
|
4571
4557
|
width: P,
|
|
4572
4558
|
height: G,
|
|
4573
4559
|
left: a.value.left - (P - a.value.width),
|
|
@@ -4576,9 +4562,9 @@ const Ws = {
|
|
|
4576
4562
|
},
|
|
4577
4563
|
// 4
|
|
4578
4564
|
() => {
|
|
4579
|
-
const P = a.value.width +
|
|
4565
|
+
const P = a.value.width + w.x, G = a.value.height * (1 + w.x / a.value.width);
|
|
4580
4566
|
s.value = {
|
|
4581
|
-
...
|
|
4567
|
+
...C,
|
|
4582
4568
|
width: P,
|
|
4583
4569
|
height: G,
|
|
4584
4570
|
top: a.value.top - (G - a.value.height) / 2
|
|
@@ -4587,14 +4573,14 @@ const Ws = {
|
|
|
4587
4573
|
// 5
|
|
4588
4574
|
() => {
|
|
4589
4575
|
const P = {
|
|
4590
|
-
width: a.value.width -
|
|
4591
|
-
height: a.value.width * (1 +
|
|
4592
|
-
}[
|
|
4593
|
-
width: a.value.height * (1 -
|
|
4594
|
-
height: a.value.height +
|
|
4595
|
-
}[
|
|
4576
|
+
width: a.value.width - w.x,
|
|
4577
|
+
height: a.value.width * (1 + w.y / a.value.height)
|
|
4578
|
+
}[N], G = {
|
|
4579
|
+
width: a.value.height * (1 - w.x / a.value.width),
|
|
4580
|
+
height: a.value.height + w.y
|
|
4581
|
+
}[N];
|
|
4596
4582
|
s.value = {
|
|
4597
|
-
...
|
|
4583
|
+
...C,
|
|
4598
4584
|
width: P,
|
|
4599
4585
|
height: G,
|
|
4600
4586
|
left: a.value.left - (P - a.value.width)
|
|
@@ -4602,9 +4588,9 @@ const Ws = {
|
|
|
4602
4588
|
},
|
|
4603
4589
|
// 6
|
|
4604
4590
|
() => {
|
|
4605
|
-
const P = a.value.width * (1 +
|
|
4591
|
+
const P = a.value.width * (1 + w.y / a.value.height), G = a.value.height + w.y;
|
|
4606
4592
|
s.value = {
|
|
4607
|
-
...
|
|
4593
|
+
...C,
|
|
4608
4594
|
width: P,
|
|
4609
4595
|
height: G,
|
|
4610
4596
|
left: a.value.left - (P - a.value.width) / 2
|
|
@@ -4613,114 +4599,114 @@ const Ws = {
|
|
|
4613
4599
|
// 7
|
|
4614
4600
|
() => {
|
|
4615
4601
|
const P = {
|
|
4616
|
-
width: a.value.width +
|
|
4617
|
-
height: a.value.width * (1 +
|
|
4618
|
-
}[
|
|
4619
|
-
width: a.value.height * (1 +
|
|
4620
|
-
height: a.value.height +
|
|
4621
|
-
}[
|
|
4602
|
+
width: a.value.width + w.x,
|
|
4603
|
+
height: a.value.width * (1 + w.y / a.value.height)
|
|
4604
|
+
}[N], G = {
|
|
4605
|
+
width: a.value.height * (1 + w.x / a.value.width),
|
|
4606
|
+
height: a.value.height + w.y
|
|
4607
|
+
}[N];
|
|
4622
4608
|
s.value = {
|
|
4623
|
-
...
|
|
4609
|
+
...C,
|
|
4624
4610
|
width: P,
|
|
4625
4611
|
height: G
|
|
4626
4612
|
};
|
|
4627
4613
|
}
|
|
4628
4614
|
][y.value]();
|
|
4629
|
-
}, ue = (
|
|
4630
|
-
const
|
|
4615
|
+
}, ue = (b) => {
|
|
4616
|
+
const w = { x: b.clientX - a.value.x, y: b.clientY - a.value.y }, C = { ...M.value }, N = [
|
|
4631
4617
|
{
|
|
4632
|
-
...
|
|
4633
|
-
width: a.value.width -
|
|
4634
|
-
height: a.value.height -
|
|
4635
|
-
left: a.value.left +
|
|
4636
|
-
top: a.value.top +
|
|
4618
|
+
...C,
|
|
4619
|
+
width: a.value.width - w.x,
|
|
4620
|
+
height: a.value.height - w.y,
|
|
4621
|
+
left: a.value.left + w.x,
|
|
4622
|
+
top: a.value.top + w.y
|
|
4637
4623
|
},
|
|
4638
4624
|
{
|
|
4639
|
-
...
|
|
4640
|
-
height: a.value.height -
|
|
4641
|
-
top: a.value.top +
|
|
4625
|
+
...C,
|
|
4626
|
+
height: a.value.height - w.y,
|
|
4627
|
+
top: a.value.top + w.y
|
|
4642
4628
|
},
|
|
4643
4629
|
{
|
|
4644
|
-
...
|
|
4645
|
-
width: a.value.width +
|
|
4646
|
-
height: a.value.height -
|
|
4647
|
-
top: a.value.top +
|
|
4630
|
+
...C,
|
|
4631
|
+
width: a.value.width + w.x,
|
|
4632
|
+
height: a.value.height - w.y,
|
|
4633
|
+
top: a.value.top + w.y
|
|
4648
4634
|
},
|
|
4649
4635
|
{
|
|
4650
|
-
...
|
|
4651
|
-
width: a.value.width -
|
|
4652
|
-
left: a.value.left +
|
|
4636
|
+
...C,
|
|
4637
|
+
width: a.value.width - w.x,
|
|
4638
|
+
left: a.value.left + w.x
|
|
4653
4639
|
},
|
|
4654
4640
|
{
|
|
4655
|
-
...
|
|
4656
|
-
width: a.value.width +
|
|
4641
|
+
...C,
|
|
4642
|
+
width: a.value.width + w.x
|
|
4657
4643
|
},
|
|
4658
4644
|
{
|
|
4659
|
-
...
|
|
4660
|
-
width: a.value.width -
|
|
4661
|
-
height: a.value.height +
|
|
4662
|
-
left: a.value.left +
|
|
4645
|
+
...C,
|
|
4646
|
+
width: a.value.width - w.x,
|
|
4647
|
+
height: a.value.height + w.y,
|
|
4648
|
+
left: a.value.left + w.x
|
|
4663
4649
|
},
|
|
4664
4650
|
{
|
|
4665
|
-
...
|
|
4666
|
-
height: a.value.height +
|
|
4651
|
+
...C,
|
|
4652
|
+
height: a.value.height + w.y
|
|
4667
4653
|
},
|
|
4668
4654
|
{
|
|
4669
|
-
...
|
|
4670
|
-
width: a.value.width +
|
|
4671
|
-
height: a.value.height +
|
|
4655
|
+
...C,
|
|
4656
|
+
width: a.value.width + w.x,
|
|
4657
|
+
height: a.value.height + w.y
|
|
4672
4658
|
}
|
|
4673
4659
|
];
|
|
4674
|
-
s.value =
|
|
4660
|
+
s.value = N[y.value];
|
|
4675
4661
|
}, ce = () => {
|
|
4676
|
-
var
|
|
4677
|
-
d.value.removeEventListener("mousemove", R), d.value.removeEventListener("mousemove", ue), d.value.removeEventListener("mouseleave", ce), d.value.removeEventListener("mouseup", ce), ((
|
|
4678
|
-
}, ge = (
|
|
4679
|
-
if (!
|
|
4662
|
+
var b;
|
|
4663
|
+
d.value.removeEventListener("mousemove", R), d.value.removeEventListener("mousemove", ue), d.value.removeEventListener("mouseleave", ce), d.value.removeEventListener("mouseup", ce), ((b = M.value) == null ? void 0 : b.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4664
|
+
}, ge = (b) => {
|
|
4665
|
+
if (!b || b === M.value.content) {
|
|
4680
4666
|
n.value++;
|
|
4681
4667
|
return;
|
|
4682
4668
|
}
|
|
4683
|
-
t("changeAbsTxtItem", { ...M.value, content:
|
|
4684
|
-
}, re = (
|
|
4685
|
-
var
|
|
4686
|
-
const
|
|
4687
|
-
!
|
|
4669
|
+
t("changeAbsTxtItem", { ...M.value, content: b });
|
|
4670
|
+
}, re = (b, w) => {
|
|
4671
|
+
var N;
|
|
4672
|
+
const C = document.body.querySelector(`.cke_editor_${wt}`);
|
|
4673
|
+
!b && ((N = (w == null ? void 0 : w.target).dataset) != null && N.safe || [...ee.value, ...L.value].find((K) => K.contains(w == null ? void 0 : w.target)) || C && window.getComputedStyle(C).display !== "none") || (H.value = b == null ? void 0 : b.key, s.value = b ? { ...b } : null);
|
|
4688
4674
|
};
|
|
4689
|
-
return (
|
|
4690
|
-
(r(!0),
|
|
4691
|
-
var
|
|
4692
|
-
return $t((r(),
|
|
4693
|
-
key:
|
|
4675
|
+
return (b, w) => (r(), u(B, null, [
|
|
4676
|
+
(r(!0), u(B, null, ae(q.value, (C) => {
|
|
4677
|
+
var N, K, P, G, Ce, $e, be;
|
|
4678
|
+
return $t((r(), u("div", {
|
|
4679
|
+
key: C.id,
|
|
4694
4680
|
ref_for: !0,
|
|
4695
4681
|
ref_key: "imgViewList",
|
|
4696
4682
|
ref: ee,
|
|
4697
4683
|
"data-safe": "true",
|
|
4698
|
-
class: te(["absolute", ((
|
|
4699
|
-
style: X({ left: Math.max(((K = V.value[
|
|
4700
|
-
onMousedown: De((
|
|
4701
|
-
"data-block":
|
|
4684
|
+
class: te(["absolute", ((N = M.value) == null ? void 0 : N.key) === C.key ? "z-8" : "z-7"]),
|
|
4685
|
+
style: X({ left: Math.max(((K = V.value[C.key]) == null ? void 0 : K.left) || C.left, 0) + "px", top: Math.max(((P = V.value[C.key]) == null ? void 0 : P.top) || C.top, 0) + "px", width: (((G = V.value[C.key]) == null ? void 0 : G.width) || C.width) + "px", height: (((Ce = V.value[C.key]) == null ? void 0 : Ce.height) || C.height) + "px", transform: `rotate(${(($e = V.value[C.key]) == null ? void 0 : $e.rotate) || C.rotate}deg)` }),
|
|
4686
|
+
onMousedown: De((f) => re(C), ["stop"]),
|
|
4687
|
+
"data-block": I(Ae)
|
|
4702
4688
|
}, [
|
|
4703
|
-
|
|
4704
|
-
src:
|
|
4689
|
+
v("img", {
|
|
4690
|
+
src: C.url
|
|
4705
4691
|
}, null, 8, Qs),
|
|
4706
|
-
((be = M.value) == null ? void 0 : be.key) ===
|
|
4707
|
-
|
|
4692
|
+
((be = M.value) == null ? void 0 : be.key) === C.key ? (r(), u(B, { key: 0 }, [
|
|
4693
|
+
v("span", qs, [
|
|
4708
4694
|
oe(fe, {
|
|
4709
4695
|
name: "close",
|
|
4710
4696
|
width: 2,
|
|
4711
4697
|
class: "cursor-pointer",
|
|
4712
|
-
onClick: (
|
|
4698
|
+
onClick: (f) => t("delAbsImgItem", C)
|
|
4713
4699
|
}, null, 8, ["onClick"])
|
|
4714
4700
|
]),
|
|
4715
|
-
|
|
4716
|
-
(r(),
|
|
4717
|
-
key:
|
|
4701
|
+
v("div", Ys, [
|
|
4702
|
+
(r(), u(B, null, ae(8, (f, $) => v("div", {
|
|
4703
|
+
key: f,
|
|
4718
4704
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4719
|
-
style: X({ ...i[
|
|
4720
|
-
onMousedown: De((me) =>
|
|
4705
|
+
style: X({ ...i[$], transform: "translate(-50%, -50%)" }),
|
|
4706
|
+
onMousedown: De((me) => F(me, $), ["stop"])
|
|
4721
4707
|
}, null, 44, Ks)), 64))
|
|
4722
4708
|
]),
|
|
4723
|
-
|
|
4709
|
+
v("span", {
|
|
4724
4710
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4725
4711
|
onMousedown: De(ne, ["stop"])
|
|
4726
4712
|
}, [
|
|
@@ -4729,57 +4715,57 @@ const Ws = {
|
|
|
4729
4715
|
width: 2
|
|
4730
4716
|
})
|
|
4731
4717
|
], 40, Us)
|
|
4732
|
-
], 64)) :
|
|
4718
|
+
], 64)) : D("", !0)
|
|
4733
4719
|
], 46, Gs)), [
|
|
4734
|
-
[
|
|
4735
|
-
[
|
|
4720
|
+
[I(c), W],
|
|
4721
|
+
[I(l), (f) => re(null, f)]
|
|
4736
4722
|
]);
|
|
4737
4723
|
}), 128)),
|
|
4738
|
-
(r(!0),
|
|
4739
|
-
var
|
|
4740
|
-
return $t((r(),
|
|
4741
|
-
key:
|
|
4724
|
+
(r(!0), u(B, null, ae(k.value, (C) => {
|
|
4725
|
+
var N, K, P, G, Ce, $e, be;
|
|
4726
|
+
return $t((r(), u("div", {
|
|
4727
|
+
key: C.id,
|
|
4742
4728
|
ref_for: !0,
|
|
4743
4729
|
ref_key: "txtViewList",
|
|
4744
|
-
ref:
|
|
4730
|
+
ref: L,
|
|
4745
4731
|
disabled: E.value,
|
|
4746
4732
|
"data-safe": "true",
|
|
4747
|
-
class: te(["absolute", ((
|
|
4748
|
-
style: X({ left: Math.max(((K = V.value[
|
|
4749
|
-
onMousedown: De((
|
|
4750
|
-
"data-block":
|
|
4733
|
+
class: te(["absolute", ((N = M.value) == null ? void 0 : N.key) === C.key ? "z-8 bg-white" : "z-7"]),
|
|
4734
|
+
style: X({ left: Math.max(((K = V.value[C.key]) == null ? void 0 : K.left) || C.left, 0) + "px", top: Math.max(((P = V.value[C.key]) == null ? void 0 : P.top) || C.top, 0) + "px", width: (((G = V.value[C.key]) == null ? void 0 : G.width) || C.width) + "px", height: (((Ce = V.value[C.key]) == null ? void 0 : Ce.height) || C.height) + "px" }),
|
|
4735
|
+
onMousedown: De((f) => re(C), ["stop"]),
|
|
4736
|
+
"data-block": I(Ae)
|
|
4751
4737
|
}, [
|
|
4752
4738
|
(r(), J(Rs, {
|
|
4753
4739
|
key: n.value,
|
|
4754
4740
|
class: "border-0 relative z-4",
|
|
4755
|
-
readonly: (($e = M.value) == null ? void 0 : $e.key) !==
|
|
4756
|
-
value:
|
|
4757
|
-
name:
|
|
4741
|
+
readonly: (($e = M.value) == null ? void 0 : $e.key) !== C.key,
|
|
4742
|
+
value: C.content,
|
|
4743
|
+
name: C.id.toString(),
|
|
4758
4744
|
onChange: ge,
|
|
4759
|
-
onFocus:
|
|
4760
|
-
onBlur:
|
|
4745
|
+
onFocus: w[0] || (w[0] = (f) => Y(!0)),
|
|
4746
|
+
onBlur: w[1] || (w[1] = (f) => Y(!1))
|
|
4761
4747
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4762
|
-
((be = M.value) == null ? void 0 : be.key) ===
|
|
4763
|
-
|
|
4748
|
+
((be = M.value) == null ? void 0 : be.key) === C.key ? (r(), u(B, { key: 0 }, [
|
|
4749
|
+
v("span", js, [
|
|
4764
4750
|
oe(fe, {
|
|
4765
4751
|
name: "close",
|
|
4766
4752
|
width: 2,
|
|
4767
4753
|
class: "cursor-pointer",
|
|
4768
|
-
onClick: (
|
|
4754
|
+
onClick: (f) => t("delAbsTxtItem", C)
|
|
4769
4755
|
}, null, 8, ["onClick"])
|
|
4770
4756
|
]),
|
|
4771
|
-
|
|
4772
|
-
(r(),
|
|
4773
|
-
key:
|
|
4757
|
+
v("div", Xs, [
|
|
4758
|
+
(r(), u(B, null, ae(8, (f, $) => v("div", {
|
|
4759
|
+
key: f,
|
|
4774
4760
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4775
|
-
style: X({ ...i[
|
|
4776
|
-
onMousedown: (me) =>
|
|
4761
|
+
style: X({ ...i[$], transform: "translate(-50%, -50%)" }),
|
|
4762
|
+
onMousedown: (me) => F(me, $)
|
|
4777
4763
|
}, null, 44, Js)), 64))
|
|
4778
4764
|
])
|
|
4779
|
-
], 64)) :
|
|
4765
|
+
], 64)) : D("", !0)
|
|
4780
4766
|
], 46, Vs)), [
|
|
4781
|
-
[
|
|
4782
|
-
[
|
|
4767
|
+
[I(c), W],
|
|
4768
|
+
[I(l), (f) => re(null, f)]
|
|
4783
4769
|
]);
|
|
4784
4770
|
}), 128))
|
|
4785
4771
|
], 64));
|
|
@@ -4808,36 +4794,36 @@ const ei = /* @__PURE__ */ pe(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4808
4794
|
setup(e, { emit: t }) {
|
|
4809
4795
|
const o = e;
|
|
4810
4796
|
Ut("ckeditorOrigin", o.ckeditorOrigin);
|
|
4811
|
-
const l = U([]), c = U([]), i = U(2), a = U(0), s = U(0), y = U(), n = U([]), d = U([]),
|
|
4812
|
-
...
|
|
4797
|
+
const l = U([]), c = U([]), i = U(2), a = U(0), s = U(0), y = U(), n = U([]), d = U([]), A = U([]), m = U([]), E = z(() => o.data.map((f) => ({
|
|
4798
|
+
...f,
|
|
4813
4799
|
__tag__: It(),
|
|
4814
|
-
rawChildren:
|
|
4815
|
-
children:
|
|
4800
|
+
rawChildren: f.children,
|
|
4801
|
+
children: f.children.map(($) => ({ ...$, ...ge($), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: It() }))
|
|
4816
4802
|
}))), H = z(() => {
|
|
4817
4803
|
if (!E.value.length)
|
|
4818
4804
|
return;
|
|
4819
|
-
const
|
|
4820
|
-
return V.value && [p.slove].includes(
|
|
4805
|
+
const f = E.value[E.value.length - 1], $ = f.rawChildren[f.rawChildren.length - 1];
|
|
4806
|
+
return V.value && [p.slove].includes($ == null ? void 0 : $.problemType) && $.id;
|
|
4821
4807
|
}), ee = z(() => {
|
|
4822
|
-
var
|
|
4823
|
-
return o.layout.bindFlag && !!((
|
|
4824
|
-
}),
|
|
4825
|
-
width: `${
|
|
4826
|
-
height: `${(
|
|
4808
|
+
var f;
|
|
4809
|
+
return o.layout.bindFlag && !!((f = We.find(($) => $.code === o.layout.paper)) != null && f.isMultCol);
|
|
4810
|
+
}), L = z(() => o.isFinal ? 0 : 10), q = z(() => o.isFinal ? 10 : 0), k = z(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || i.value || 1), M = z(() => Math.ceil(k.value / 2) * 2), V = z(() => ["sheet", "sheetCard"].includes(o.layout.mode)), W = z(() => V.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), Y = z(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || ft[o.layout.mode][o.layout.paper]), ne = z(() => x[o.layout.paper].width - Y.value.left - Y.value.right), g = z(() => x[o.layout.paper].height - Y.value.top - Y.value.bottom), S = z(() => (ne.value - (s.value ? s.value + K(0) : 0) + K(0)) / o.layout.column - K(0)), F = z(() => ({
|
|
4811
|
+
width: `${x[o.layout.paper].width}px`,
|
|
4812
|
+
height: `${(x[o.layout.paper].height + L.value) * M.value - L.value}px`
|
|
4827
4813
|
})), R = z(() => ({
|
|
4828
|
-
width: `${
|
|
4829
|
-
height: `${
|
|
4814
|
+
width: `${x[o.layout.paper].width}px`,
|
|
4815
|
+
height: `${x[o.layout.paper].height}px`,
|
|
4830
4816
|
padding: `${Y.value.top}px ${Y.value.right}px ${Y.value.bottom}px ${Y.value.left}px`,
|
|
4831
|
-
marginBottom: `${
|
|
4817
|
+
marginBottom: `${L.value}px`
|
|
4832
4818
|
})), ue = z(() => {
|
|
4833
|
-
var
|
|
4834
|
-
const
|
|
4819
|
+
var $;
|
|
4820
|
+
const f = ($ = We.find((me) => me.code === o.layout.paper)) == null ? void 0 : $.isFullTitle;
|
|
4835
4821
|
return {
|
|
4836
4822
|
left: `${Y.value.left + (s.value ? s.value + K(0) : 0)}px`,
|
|
4837
4823
|
top: `${Y.value.top}px`,
|
|
4838
|
-
width:
|
|
4824
|
+
width: f ? `${ne.value}px` : `${S.value}px`
|
|
4839
4825
|
};
|
|
4840
|
-
}), ce = z(() => Bt.filter((
|
|
4826
|
+
}), ce = z(() => Bt.filter((f) => o.info.bindExtentInfo[f.code]).map((f) => o.info.bindExtentInfo[f.key]));
|
|
4841
4827
|
Oe(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4842
4828
|
setTimeout(() => {
|
|
4843
4829
|
$e();
|
|
@@ -4845,37 +4831,37 @@ const ei = /* @__PURE__ */ pe(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4845
4831
|
}, { immediate: !0 }), Oe(() => ee.value, () => {
|
|
4846
4832
|
s.value = ee.value ? 100 : 0;
|
|
4847
4833
|
}, { immediate: !0 });
|
|
4848
|
-
const ge = (
|
|
4849
|
-
let
|
|
4850
|
-
if ([p.slove].includes(
|
|
4834
|
+
const ge = (f) => {
|
|
4835
|
+
let $ = { ...f };
|
|
4836
|
+
if ([p.slove].includes($.problemType) && V.value) {
|
|
4851
4837
|
const me = document.createElement("div");
|
|
4852
|
-
me.innerHTML =
|
|
4838
|
+
me.innerHTML = $.answerArea;
|
|
4853
4839
|
const j = me.querySelector(Ot.sub);
|
|
4854
4840
|
if (j) {
|
|
4855
4841
|
const se = document.createElement("div");
|
|
4856
|
-
se.innerHTML = cs(
|
|
4842
|
+
se.innerHTML = cs($.sub, $.style[h.public.scoreShowFlag] === _.bracket_none ? void 0 : [$.score].flat(2).reduce((Te, Me) => Te + Me, 0), $.style[h.public.scoreShowFlag]), j.replaceWith(se.children[0]), $.answerArea = me.innerHTML, $.customSub = !0, me.remove(), se.remove();
|
|
4857
4843
|
}
|
|
4858
4844
|
}
|
|
4859
|
-
return
|
|
4860
|
-
}, re = (
|
|
4861
|
-
const
|
|
4862
|
-
return
|
|
4863
|
-
},
|
|
4864
|
-
|
|
4865
|
-
},
|
|
4866
|
-
|
|
4867
|
-
}, K = (
|
|
4845
|
+
return $;
|
|
4846
|
+
}, re = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, b = (f, $) => Math.floor($ / 2) * (o.layout.column + o.layout.backColumn) + $ % 2 * o.layout.column + f, w = (f) => {
|
|
4847
|
+
const $ = f % (o.layout.column + o.layout.backColumn);
|
|
4848
|
+
return $ >= o.layout.column ? $ - o.layout.column : $;
|
|
4849
|
+
}, C = (f, $) => {
|
|
4850
|
+
f ? n.value[$] = f : n.value.splice($, 1);
|
|
4851
|
+
}, N = (f, $) => {
|
|
4852
|
+
f ? d.value[$] = f : d.value.splice($, 1);
|
|
4853
|
+
}, K = (f) => At[o.layout.mode][o.layout.paper][re(f)] || 0, P = (f, $ = !1) => (ne.value - (s.value ? s.value + K(f) : 0) + K(f)) / re(f) - K(f) - W.value.left - W.value.right + ($ ? W.value.left + W.value.right : 0), G = (f, $) => {
|
|
4868
4854
|
var j, se;
|
|
4869
|
-
const me =
|
|
4855
|
+
const me = f % (o.layout.column + o.layout.backColumn) ? 0 : ((j = A.value[Math.min($, 1)]) == null ? void 0 : j.offsetHeight) || 0;
|
|
4870
4856
|
return {
|
|
4871
|
-
left: `${Y.value.left + (
|
|
4872
|
-
top: `${me + Y.value.top + (
|
|
4873
|
-
width: `${P(
|
|
4874
|
-
height: `${
|
|
4875
|
-
contentHeight: `${(se = l.value[
|
|
4857
|
+
left: `${Y.value.left + ($ % 2 ? 0 : s.value ? s.value + K(f) : 0) + W.value.left + w(f) * (P(f) + K(f) + W.value.left + W.value.right)}px`,
|
|
4858
|
+
top: `${me + Y.value.top + (!$ && !f ? 0 : W.value.top)}px`,
|
|
4859
|
+
width: `${P(f)}px`,
|
|
4860
|
+
height: `${g.value - me - (!$ && !f ? 0 : W.value.top) - W.value.bottom}px`,
|
|
4861
|
+
contentHeight: `${(se = l.value[f]) == null ? void 0 : se.height}px`
|
|
4876
4862
|
};
|
|
4877
|
-
}, Ce = (
|
|
4878
|
-
c.value =
|
|
4863
|
+
}, Ce = (f, $ = !1) => {
|
|
4864
|
+
c.value = f.map((me) => ({ ...me })), $ && (l.value = [...f], a.value += 1, nt(() => {
|
|
4879
4865
|
i.value = Math.ceil(l.value.length / o.layout.column), c.value = [], d.value.forEach((me, j) => {
|
|
4880
4866
|
var se, Te;
|
|
4881
4867
|
!me || !me.col || ((se = l.value[j]) != null && se.top ? me.col.style.marginTop = `${(Te = l.value[j]) == null ? void 0 : Te.top}px` : me.col.style.marginTop = "");
|
|
@@ -4886,7 +4872,7 @@ const ei = /* @__PURE__ */ pe(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4886
4872
|
layout: o.layout,
|
|
4887
4873
|
pageTotal: k.value,
|
|
4888
4874
|
bindWidth: s.value,
|
|
4889
|
-
pageMargin:
|
|
4875
|
+
pageMargin: L.value,
|
|
4890
4876
|
pageDom: n.value.slice(0, k.value),
|
|
4891
4877
|
colDom: d.value.map((j) => j.col),
|
|
4892
4878
|
colViewDom: d.value.map((j) => j.colView)
|
|
@@ -4905,207 +4891,207 @@ const ei = /* @__PURE__ */ pe(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4905
4891
|
getColSize: G,
|
|
4906
4892
|
change: Ce
|
|
4907
4893
|
});
|
|
4908
|
-
}, be = (
|
|
4909
|
-
t("toggleActive",
|
|
4894
|
+
}, be = (f = { type: O.page, value: {} }) => {
|
|
4895
|
+
t("toggleActive", f);
|
|
4910
4896
|
};
|
|
4911
|
-
return (
|
|
4897
|
+
return (f, $) => {
|
|
4912
4898
|
var me;
|
|
4913
|
-
return r(),
|
|
4914
|
-
|
|
4899
|
+
return r(), u(B, null, [
|
|
4900
|
+
f.readonly ? D("", !0) : (r(), J(Ps, {
|
|
4915
4901
|
key: 0,
|
|
4916
4902
|
ColList: l.value,
|
|
4917
4903
|
ColDom: d.value.map((j) => j.col),
|
|
4918
|
-
ImgData:
|
|
4919
|
-
TxtData:
|
|
4920
|
-
onDelAbsImgItem:
|
|
4921
|
-
onDelAbsTxtItem:
|
|
4922
|
-
onChangeLayoutStatus:
|
|
4904
|
+
ImgData: f.imgData,
|
|
4905
|
+
TxtData: f.txtData,
|
|
4906
|
+
onDelAbsImgItem: $[0] || ($[0] = (j) => t("delAbsImgItem", j)),
|
|
4907
|
+
onDelAbsTxtItem: $[1] || ($[1] = (j) => t("delAbsTxtItem", j)),
|
|
4908
|
+
onChangeLayoutStatus: $[2] || ($[2] = (j) => t("changeLayoutStatus", j))
|
|
4923
4909
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4924
|
-
|
|
4910
|
+
v("div", {
|
|
4925
4911
|
class: "flex-1 overflow-auto relative z-1",
|
|
4926
4912
|
id: "alit-layout",
|
|
4927
|
-
onClick:
|
|
4913
|
+
onClick: $[14] || ($[14] = (j) => be())
|
|
4928
4914
|
}, [
|
|
4929
|
-
|
|
4915
|
+
v("div", {
|
|
4930
4916
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4931
4917
|
ref_key: "rawDom",
|
|
4932
4918
|
ref: y
|
|
4933
4919
|
}, [
|
|
4934
|
-
c.value.length ? (r(!0),
|
|
4935
|
-
j.isHidden ?
|
|
4920
|
+
c.value.length ? (r(!0), u(B, { key: 0 }, ae((me = c.value[c.value.length - 1]) == null ? void 0 : me.data, (j, se) => (r(), u(B, null, [
|
|
4921
|
+
j.isHidden ? D("", !0) : (r(), J(Ft, {
|
|
4936
4922
|
key: 0,
|
|
4937
4923
|
item: j,
|
|
4938
4924
|
showColBorder: V.value,
|
|
4939
4925
|
isFirst: !se && c.value.length === 1,
|
|
4940
|
-
layout:
|
|
4926
|
+
layout: f.layout
|
|
4941
4927
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4942
|
-
V.value ? (r(),
|
|
4928
|
+
V.value ? (r(), u("div", {
|
|
4943
4929
|
key: 1,
|
|
4944
4930
|
class: te([!j.children.length && j.problemType && "p-1 min-h-[2rem]"])
|
|
4945
4931
|
}, [
|
|
4946
4932
|
(r(), J(Ue, {
|
|
4947
4933
|
data: j,
|
|
4948
4934
|
key: c.value.length,
|
|
4949
|
-
layout:
|
|
4950
|
-
target:
|
|
4935
|
+
layout: f.layout,
|
|
4936
|
+
target: f.target,
|
|
4951
4937
|
noPortrait: "",
|
|
4952
4938
|
width: P(c.value.length - 1)
|
|
4953
4939
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4954
4940
|
], 2)) : (r(), J(Ue, {
|
|
4955
4941
|
data: j,
|
|
4956
4942
|
key: c.value.length,
|
|
4957
|
-
layout:
|
|
4958
|
-
target:
|
|
4943
|
+
layout: f.layout,
|
|
4944
|
+
target: f.target,
|
|
4959
4945
|
width: P(c.value.length - 1)
|
|
4960
4946
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4961
|
-
], 64))), 256)) :
|
|
4947
|
+
], 64))), 256)) : D("", !0)
|
|
4962
4948
|
], 512),
|
|
4963
|
-
|
|
4964
|
-
class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__",
|
|
4965
|
-
style: X(
|
|
4949
|
+
v("div", {
|
|
4950
|
+
class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", f.layout.redFlag && "red_mode", f.readonly && "pointer-events-none"]),
|
|
4951
|
+
style: X(F.value)
|
|
4966
4952
|
}, [
|
|
4967
4953
|
oe(ei, {
|
|
4968
|
-
imgData:
|
|
4969
|
-
txtData:
|
|
4970
|
-
layout:
|
|
4954
|
+
imgData: f.imgData,
|
|
4955
|
+
txtData: f.txtData,
|
|
4956
|
+
layout: f.layout,
|
|
4971
4957
|
pageMargin: q.value,
|
|
4972
|
-
onChangeAbsImgItem:
|
|
4973
|
-
onDelAbsImgItem:
|
|
4974
|
-
onChangeAbsTxtItem:
|
|
4975
|
-
onDelAbsTxtItem:
|
|
4958
|
+
onChangeAbsImgItem: $[3] || ($[3] = (j) => t("changeAbsImgItem", j)),
|
|
4959
|
+
onDelAbsImgItem: $[4] || ($[4] = (j) => t("delAbsImgItem", j)),
|
|
4960
|
+
onChangeAbsTxtItem: $[5] || ($[5] = (j) => t("changeAbsTxtItem", j)),
|
|
4961
|
+
onDelAbsTxtItem: $[6] || ($[6] = (j) => t("delAbsTxtItem", j))
|
|
4976
4962
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4977
|
-
(r(),
|
|
4978
|
-
viewBox: `0 0 ${parseFloat(
|
|
4963
|
+
(r(), u("svg", {
|
|
4964
|
+
viewBox: `0 0 ${parseFloat(F.value.width)} ${parseFloat(F.value.height)}`,
|
|
4979
4965
|
version: "1.1",
|
|
4980
4966
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4981
4967
|
key: a.value
|
|
4982
4968
|
}, [
|
|
4983
|
-
(r(),
|
|
4984
|
-
(r(!0),
|
|
4969
|
+
(r(), u("foreignObject", oi, [
|
|
4970
|
+
(r(!0), u(B, null, ae(M.value, (j, se) => (r(), u("div", {
|
|
4985
4971
|
key: j,
|
|
4986
4972
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4987
4973
|
ref_for: !0,
|
|
4988
|
-
ref: (Te) =>
|
|
4974
|
+
ref: (Te) => C(Te, se),
|
|
4989
4975
|
style: X(R.value)
|
|
4990
4976
|
}, [
|
|
4991
|
-
se < k.value ? (r(),
|
|
4977
|
+
se < k.value ? (r(), u(B, { key: 0 }, [
|
|
4992
4978
|
oe(Io, {
|
|
4993
|
-
layout:
|
|
4979
|
+
layout: f.layout,
|
|
4994
4980
|
currentPage: se,
|
|
4995
4981
|
totalPage: k.value,
|
|
4996
|
-
columnContentWidth: P(se % 2 ?
|
|
4997
|
-
columnMargin: K(se % 2 ?
|
|
4982
|
+
columnContentWidth: P(se % 2 ? f.layout.column : 0, !0),
|
|
4983
|
+
columnMargin: K(se % 2 ? f.layout.column : 0),
|
|
4998
4984
|
bindWidth: s.value,
|
|
4999
4985
|
padding: Y.value
|
|
5000
4986
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
5001
|
-
|
|
4987
|
+
f.layout.sloganFlag ? (r(), J(Po, {
|
|
5002
4988
|
key: 0,
|
|
5003
|
-
info:
|
|
5004
|
-
layout:
|
|
5005
|
-
onChange:
|
|
5006
|
-
}, null, 8, ["info", "layout"])) :
|
|
4989
|
+
info: f.info,
|
|
4990
|
+
layout: f.layout,
|
|
4991
|
+
onChange: $[7] || ($[7] = (Te) => t("changeInfo", Te))
|
|
4992
|
+
}, null, 8, ["info", "layout"])) : D("", !0),
|
|
5007
4993
|
oe(sl, {
|
|
5008
4994
|
ref_for: !0,
|
|
5009
4995
|
ref_key: "bindDom",
|
|
5010
4996
|
ref: m,
|
|
5011
4997
|
currentPage: se,
|
|
5012
4998
|
width: s.value,
|
|
5013
|
-
height:
|
|
4999
|
+
height: g.value,
|
|
5014
5000
|
isBindFlag: ee.value,
|
|
5015
|
-
bindSeatType:
|
|
5001
|
+
bindSeatType: f.layout.bindSeatType,
|
|
5016
5002
|
bindInfo: ce.value
|
|
5017
5003
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
5018
|
-
!(se % 2) || se === 1 && k.value < 3 ? (r(),
|
|
5004
|
+
!(se % 2) || se === 1 && k.value < 3 ? (r(), u("div", {
|
|
5019
5005
|
key: 1,
|
|
5020
5006
|
ref_for: !0,
|
|
5021
5007
|
ref_key: "titleDom",
|
|
5022
|
-
ref:
|
|
5008
|
+
ref: A,
|
|
5023
5009
|
class: te(["absolute text-black", se === 1 && k.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5024
5010
|
style: X(ue.value)
|
|
5025
5011
|
}, [
|
|
5026
5012
|
oe(zo, {
|
|
5027
|
-
layout:
|
|
5028
|
-
code:
|
|
5013
|
+
layout: f.layout,
|
|
5014
|
+
code: f.info.textCode
|
|
5029
5015
|
}, null, 8, ["layout", "code"]),
|
|
5030
5016
|
oe(ra, {
|
|
5031
|
-
info:
|
|
5032
|
-
layout:
|
|
5033
|
-
fontConfig:
|
|
5034
|
-
data:
|
|
5035
|
-
onChange:
|
|
5017
|
+
info: f.info,
|
|
5018
|
+
layout: f.layout,
|
|
5019
|
+
fontConfig: f.fontConfig,
|
|
5020
|
+
data: f.data,
|
|
5021
|
+
onChange: $[8] || ($[8] = (Te) => t("changeInfo", Te))
|
|
5036
5022
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5037
5023
|
oe(Ia, {
|
|
5038
|
-
layout:
|
|
5039
|
-
info:
|
|
5024
|
+
layout: f.layout,
|
|
5025
|
+
info: f.info,
|
|
5040
5026
|
isBindFlag: ee.value,
|
|
5041
|
-
onChange:
|
|
5027
|
+
onChange: $[9] || ($[9] = (Te) => t("changeExtentInfo", Te))
|
|
5042
5028
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5043
5029
|
oe(Wa, {
|
|
5044
|
-
layout:
|
|
5030
|
+
layout: f.layout,
|
|
5045
5031
|
isBindFlag: ee.value
|
|
5046
5032
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5047
|
-
se ?
|
|
5033
|
+
se ? D("", !0) : (r(), J(Va, {
|
|
5048
5034
|
key: 0,
|
|
5049
|
-
layout:
|
|
5050
|
-
data:
|
|
5035
|
+
layout: f.layout,
|
|
5036
|
+
data: f.data
|
|
5051
5037
|
}, null, 8, ["layout", "data"])),
|
|
5052
|
-
|
|
5038
|
+
f.layout.writeScoreFlag && !se ? (r(), J(xl, {
|
|
5053
5039
|
key: 1,
|
|
5054
|
-
info:
|
|
5055
|
-
layout:
|
|
5056
|
-
}, null, 8, ["info", "layout"])) :
|
|
5057
|
-
], 6)) :
|
|
5058
|
-
(r(!0),
|
|
5040
|
+
info: f.info,
|
|
5041
|
+
layout: f.layout
|
|
5042
|
+
}, null, 8, ["info", "layout"])) : D("", !0)
|
|
5043
|
+
], 6)) : D("", !0),
|
|
5044
|
+
(r(!0), u(B, null, ae(se % 2 ? f.layout.backColumn : f.layout.column, (Te, Me) => (r(), J(Xa, {
|
|
5059
5045
|
ref_for: !0,
|
|
5060
|
-
ref: (Ke) =>
|
|
5061
|
-
styleInfo: G(
|
|
5062
|
-
column:
|
|
5063
|
-
currentColumn:
|
|
5046
|
+
ref: (Ke) => N(Ke, b(Me, se)),
|
|
5047
|
+
styleInfo: G(b(Me, se), se),
|
|
5048
|
+
column: f.layout.column,
|
|
5049
|
+
currentColumn: b(Me, se),
|
|
5064
5050
|
showColBorder: V.value
|
|
5065
5051
|
}, {
|
|
5066
5052
|
default: Mt(() => {
|
|
5067
5053
|
var Ke;
|
|
5068
5054
|
return [
|
|
5069
|
-
(r(!0),
|
|
5055
|
+
(r(!0), u(B, null, ae(((Ke = l.value[b(Me, se)]) == null ? void 0 : Ke.data) || [], (ve, qt) => {
|
|
5070
5056
|
var kt;
|
|
5071
|
-
return r(),
|
|
5072
|
-
ve.isHidden ?
|
|
5057
|
+
return r(), u(B, null, [
|
|
5058
|
+
ve.isHidden ? D("", !0) : (r(), J(Ft, {
|
|
5073
5059
|
key: 0,
|
|
5074
5060
|
item: ve,
|
|
5075
5061
|
showColBorder: V.value,
|
|
5076
5062
|
isFirst: !se && !Me && !qt,
|
|
5077
|
-
layout:
|
|
5078
|
-
isActive: ((kt =
|
|
5079
|
-
onClick: (Ie) => be({ type: ve.problemType ?
|
|
5063
|
+
layout: f.layout,
|
|
5064
|
+
isActive: ((kt = f.target.value) == null ? void 0 : kt.id) === ve.id,
|
|
5065
|
+
onClick: (Ie) => be({ type: ve.problemType ? I(O).headline : I(O).headlineNotarea, value: ve }),
|
|
5080
5066
|
onDbclick: (Ie) => t("dbHeadLineClick", ve)
|
|
5081
5067
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5082
|
-
V.value ? (r(),
|
|
5068
|
+
V.value ? (r(), u("div", {
|
|
5083
5069
|
key: 1,
|
|
5084
|
-
class: te([!ve.children.length && ve.problemType && "p-1 min-h-[2rem]",
|
|
5085
|
-
onClick: De((Ie) => be({ type: ve.problemType ?
|
|
5070
|
+
class: te([!ve.children.length && ve.problemType && "p-1 min-h-[2rem]", f.target.type === I(O).headline && f.target.value.id === ve.id && "active_headline"]),
|
|
5071
|
+
onClick: De((Ie) => be({ type: ve.problemType ? I(O).headline : I(O).headlineNotarea, value: ve }), ["stop"]),
|
|
5086
5072
|
onDblclick: (Ie) => t("dbHeadLineClick", ve)
|
|
5087
5073
|
}, [
|
|
5088
5074
|
oe(Ue, {
|
|
5089
5075
|
data: ve,
|
|
5090
|
-
layout:
|
|
5091
|
-
target:
|
|
5092
|
-
width: P(
|
|
5093
|
-
onClick:
|
|
5094
|
-
onDbclick:
|
|
5076
|
+
layout: f.layout,
|
|
5077
|
+
target: f.target,
|
|
5078
|
+
width: P(b(Me, se)),
|
|
5079
|
+
onClick: $[10] || ($[10] = (Ie) => be({ type: Ie.problemType ? I(O).problem : I(O).problemNotarea, value: Ie })),
|
|
5080
|
+
onDbclick: $[11] || ($[11] = (Ie) => t("dbProblemClick", Ie))
|
|
5095
5081
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5096
|
-
ve.children.length && ve.children[ve.children.length - 1].id === H.value ? (r(),
|
|
5082
|
+
ve.children.length && ve.children[ve.children.length - 1].id === H.value ? (r(), u("div", {
|
|
5097
5083
|
key: 0,
|
|
5098
5084
|
class: "border-t",
|
|
5099
|
-
"data-block":
|
|
5100
|
-
}, null, 8, li)) :
|
|
5085
|
+
"data-block": I(Ae)
|
|
5086
|
+
}, null, 8, li)) : D("", !0)
|
|
5101
5087
|
], 42, ai)) : (r(), J(Ue, {
|
|
5102
5088
|
key: 2,
|
|
5103
5089
|
data: ve,
|
|
5104
|
-
layout:
|
|
5105
|
-
target:
|
|
5106
|
-
width: P(
|
|
5107
|
-
onClick:
|
|
5108
|
-
onDbclick:
|
|
5090
|
+
layout: f.layout,
|
|
5091
|
+
target: f.target,
|
|
5092
|
+
width: P(b(Me, se)),
|
|
5093
|
+
onClick: $[12] || ($[12] = (Ie) => be({ type: Ie.problemType ? I(O).problem : I(O).problemNotarea, value: Ie })),
|
|
5094
|
+
onDbclick: $[13] || ($[13] = (Ie) => t("dbProblemClick", Ie))
|
|
5109
5095
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5110
5096
|
], 64);
|
|
5111
5097
|
}), 256))
|
|
@@ -5113,7 +5099,7 @@ const ei = /* @__PURE__ */ pe(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5113
5099
|
}),
|
|
5114
5100
|
_: 2
|
|
5115
5101
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
5116
|
-
], 64)) :
|
|
5102
|
+
], 64)) : D("", !0)
|
|
5117
5103
|
], 4))), 128))
|
|
5118
5104
|
]))
|
|
5119
5105
|
], 8, ti))
|