alit-layout 1.1.44 → 1.2.0
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 +1261 -1251
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ie, computed as G, openBlock as r, createElementBlock as h, Fragment as R, renderList as se, createElementVNode as k, normalizeStyle as Z, unref as L, toDisplayString as oe, createCommentVNode as N, ref as X, watch as De, normalizeClass as le, createBlock as te, createTextVNode as et, createVNode as ne, pushScopeId as Ye, popScopeId as Ke, renderSlot as mt, onMounted as Ue, nextTick as lt, withModifiers as Ee, resolveComponent as qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as Qt, withDirectives as Ct, provide as Yt } from "vue";
|
|
2
2
|
const He = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -12,7 +12,7 @@ const He = {
|
|
|
12
12
|
...He,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
15
|
-
},
|
|
15
|
+
}, We = {
|
|
16
16
|
// 填空题
|
|
17
17
|
fill: "FILL_BLANKS",
|
|
18
18
|
// 听后填空
|
|
@@ -27,7 +27,7 @@ const He = {
|
|
|
27
27
|
art: "COMPOSITION_QUESTION",
|
|
28
28
|
// 选填题
|
|
29
29
|
mix: "OPTIONAL_QUESTIONS"
|
|
30
|
-
},
|
|
30
|
+
}, Se = {
|
|
31
31
|
// 选做题
|
|
32
32
|
one_choice: "CHOOSE_A_QUESTION",
|
|
33
33
|
// 复合题
|
|
@@ -47,7 +47,7 @@ const He = {
|
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
48
|
}, u = {
|
|
49
49
|
...Pt,
|
|
50
|
-
...
|
|
50
|
+
...We
|
|
51
51
|
}, qe = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
53
53
|
{ name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0, disabled: !0 },
|
|
@@ -327,12 +327,12 @@ const He = {
|
|
|
327
327
|
"16k": 0,
|
|
328
328
|
b4: 0
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, Fe = {
|
|
331
331
|
top: 21,
|
|
332
332
|
right: 6,
|
|
333
333
|
bottom: 21,
|
|
334
334
|
left: 6
|
|
335
|
-
},
|
|
335
|
+
}, Xt = {
|
|
336
336
|
left: 5,
|
|
337
337
|
right: 5
|
|
338
338
|
}, Mt = {
|
|
@@ -420,7 +420,7 @@ const He = {
|
|
|
420
420
|
2: 20
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
},
|
|
423
|
+
}, Jt = 10, Zt = {
|
|
424
424
|
base: {
|
|
425
425
|
secTitleFlag: "副标题",
|
|
426
426
|
authorFlag: "命题人",
|
|
@@ -502,7 +502,7 @@ const He = {
|
|
|
502
502
|
simpleScoreBarFlag: "简易打分条",
|
|
503
503
|
scoreTipFlag: "计分提示"
|
|
504
504
|
}
|
|
505
|
-
},
|
|
505
|
+
}, jt = {
|
|
506
506
|
a3: {
|
|
507
507
|
2: 1,
|
|
508
508
|
3: 1
|
|
@@ -531,7 +531,7 @@ const He = {
|
|
|
531
531
|
2: 1,
|
|
532
532
|
3: 1
|
|
533
533
|
}
|
|
534
|
-
},
|
|
534
|
+
}, A = {
|
|
535
535
|
page: "page",
|
|
536
536
|
headline: "headline",
|
|
537
537
|
text: "text",
|
|
@@ -542,34 +542,34 @@ const He = {
|
|
|
542
542
|
}, eo = [
|
|
543
543
|
{ name: "正常", code: "stand" },
|
|
544
544
|
{ name: "横向", code: "column" }
|
|
545
|
-
],
|
|
545
|
+
], Te = {
|
|
546
546
|
none: "none",
|
|
547
547
|
seat: "seat",
|
|
548
548
|
shortId: "short"
|
|
549
549
|
}, to = [
|
|
550
|
-
{ name: "无", code:
|
|
551
|
-
{ name: "座位号", code:
|
|
552
|
-
{ name: "短学号", code:
|
|
550
|
+
{ name: "无", code: Te.none },
|
|
551
|
+
{ name: "座位号", code: Te.seat, value: 3 },
|
|
552
|
+
{ name: "短学号", code: Te.shortId, value: 4 }
|
|
553
553
|
], oo = [
|
|
554
554
|
{ name: "无", code: !1 },
|
|
555
555
|
{ name: "有", code: !0 }
|
|
556
556
|
], ao = [
|
|
557
|
-
{ name: "条码", code:
|
|
558
|
-
{ name: "短学号", code:
|
|
557
|
+
{ name: "条码", code: Te.none },
|
|
558
|
+
{ name: "短学号", code: Te.shortId }
|
|
559
559
|
], dt = {
|
|
560
560
|
wide: "text",
|
|
561
561
|
local: "topic"
|
|
562
562
|
}, lo = [
|
|
563
563
|
{ name: "整卷", code: dt.wide },
|
|
564
564
|
{ name: "大题", code: dt.local }
|
|
565
|
-
],
|
|
565
|
+
], Je = {
|
|
566
566
|
system: "system",
|
|
567
567
|
second: "level_2",
|
|
568
568
|
three: "level_3"
|
|
569
569
|
}, no = [
|
|
570
|
-
{ name: "自增", code:
|
|
571
|
-
{ name: "二级", code:
|
|
572
|
-
{ name: "三级", code:
|
|
570
|
+
{ name: "自增", code: Je.system },
|
|
571
|
+
{ name: "二级", code: Je.second },
|
|
572
|
+
{ name: "三级", code: Je.three }
|
|
573
573
|
], so = [
|
|
574
574
|
{ name: "缩进", code: !0 },
|
|
575
575
|
{ name: "不缩进", code: !1 }
|
|
@@ -579,14 +579,14 @@ const He = {
|
|
|
579
579
|
{ name: "班级", code: "classFieldFlag", key: "classField" },
|
|
580
580
|
{ name: "考场", code: "examRoomFieldFlag", key: "examRoomField" },
|
|
581
581
|
{ name: "座号", code: "seatFieldFlag", key: "seatField" }
|
|
582
|
-
],
|
|
582
|
+
], Ze = {
|
|
583
583
|
auto: "auto",
|
|
584
584
|
on: "on",
|
|
585
585
|
off: "off"
|
|
586
586
|
}, io = [
|
|
587
|
-
{ name: "自动", code:
|
|
588
|
-
{ name: "开", code:
|
|
589
|
-
{ name: "关", code:
|
|
587
|
+
{ name: "自动", code: Ze.auto },
|
|
588
|
+
{ name: "开", code: Ze.on },
|
|
589
|
+
{ name: "关", code: Ze.off }
|
|
590
590
|
], ot = {
|
|
591
591
|
step: "step",
|
|
592
592
|
custom: "custom"
|
|
@@ -596,15 +596,15 @@ const He = {
|
|
|
596
596
|
], co = [
|
|
597
597
|
{ name: "显示", code: !0 },
|
|
598
598
|
{ name: "隐藏", code: !1 }
|
|
599
|
-
],
|
|
599
|
+
], je = {
|
|
600
600
|
custom: "less",
|
|
601
601
|
average: "ans",
|
|
602
602
|
averagefill: "opt"
|
|
603
603
|
}, uo = [
|
|
604
|
-
{ name: "按答案个数均分", code:
|
|
605
|
-
{ name: "手动设置", code:
|
|
606
|
-
{ name: "按答案个数均分(错选不扣分)", code:
|
|
607
|
-
],
|
|
604
|
+
{ name: "按答案个数均分", code: je.average },
|
|
605
|
+
{ name: "手动设置", code: je.custom },
|
|
606
|
+
{ name: "按答案个数均分(错选不扣分)", code: je.averagefill }
|
|
607
|
+
], _ = {
|
|
608
608
|
choice_1: "choice-1",
|
|
609
609
|
choice_2: "choice-2",
|
|
610
610
|
choice_3: "choice-3",
|
|
@@ -806,11 +806,11 @@ const He = {
|
|
|
806
806
|
type: "radio",
|
|
807
807
|
label: "横向分栏",
|
|
808
808
|
key: d.article.col_a,
|
|
809
|
-
target: [
|
|
809
|
+
target: [A.headline],
|
|
810
810
|
show: (e) => ![u.art].includes(e.problemType) && e.layoutMode === "column",
|
|
811
811
|
option: [
|
|
812
|
-
{ name: "1栏", code:
|
|
813
|
-
{ name: "横向2栏", code:
|
|
812
|
+
{ name: "1栏", code: _.col_1 },
|
|
813
|
+
{ name: "横向2栏", code: _.col_2 }
|
|
814
814
|
]
|
|
815
815
|
}
|
|
816
816
|
],
|
|
@@ -819,11 +819,11 @@ const He = {
|
|
|
819
819
|
type: "radio",
|
|
820
820
|
label: "横向分栏",
|
|
821
821
|
key: d.article.col_a,
|
|
822
|
-
target: [
|
|
822
|
+
target: [A.headline],
|
|
823
823
|
show: (e) => ![u.art].includes(e.problemType) && e.layoutMode === "column",
|
|
824
824
|
option: [
|
|
825
|
-
{ name: "1栏", code:
|
|
826
|
-
{ name: "横向2栏", code:
|
|
825
|
+
{ name: "1栏", code: _.col_1 },
|
|
826
|
+
{ name: "横向2栏", code: _.col_2 }
|
|
827
827
|
]
|
|
828
828
|
}
|
|
829
829
|
]
|
|
@@ -836,10 +836,10 @@ const He = {
|
|
|
836
836
|
label: "插入题号样式控制",
|
|
837
837
|
key: d.article.slove_d,
|
|
838
838
|
code: "slove_insert_sub",
|
|
839
|
-
target: [
|
|
839
|
+
target: [A.problem],
|
|
840
840
|
option: [
|
|
841
|
-
{ name: "无", code:
|
|
842
|
-
{ name: "下划线", code:
|
|
841
|
+
{ name: "无", code: _.slove_5 },
|
|
842
|
+
{ name: "下划线", code: _.slove_6 }
|
|
843
843
|
]
|
|
844
844
|
}
|
|
845
845
|
]
|
|
@@ -852,8 +852,8 @@ const He = {
|
|
|
852
852
|
label: "展示样式",
|
|
853
853
|
key: d.article.choice_a,
|
|
854
854
|
option: [
|
|
855
|
-
{ name: "分布式", code:
|
|
856
|
-
{ name: "集合式", code:
|
|
855
|
+
{ name: "分布式", code: _.choice_1 },
|
|
856
|
+
{ name: "集合式", code: _.choice_2 }
|
|
857
857
|
]
|
|
858
858
|
}
|
|
859
859
|
],
|
|
@@ -864,8 +864,8 @@ const He = {
|
|
|
864
864
|
label: "展示样式",
|
|
865
865
|
key: d.article.decide_a,
|
|
866
866
|
option: [
|
|
867
|
-
{ name: "对错", code:
|
|
868
|
-
{ name: "TF", code:
|
|
867
|
+
{ name: "对错", code: _.decide_1 },
|
|
868
|
+
{ name: "TF", code: _.decide_2 }
|
|
869
869
|
]
|
|
870
870
|
}
|
|
871
871
|
],
|
|
@@ -876,9 +876,9 @@ const He = {
|
|
|
876
876
|
label: "打分框位置",
|
|
877
877
|
key: d.article.fill_a,
|
|
878
878
|
option: [
|
|
879
|
-
{ name: "跟随下划线", code:
|
|
880
|
-
{ name: "跟随主题干", code:
|
|
881
|
-
{ name: "跟随标点符号", code:
|
|
879
|
+
{ name: "跟随下划线", code: _.fill_1 },
|
|
880
|
+
{ name: "跟随主题干", code: _.fill_2 },
|
|
881
|
+
{ name: "跟随标点符号", code: _.fill_3 }
|
|
882
882
|
]
|
|
883
883
|
}
|
|
884
884
|
],
|
|
@@ -891,18 +891,18 @@ const He = {
|
|
|
891
891
|
label: "边框控制",
|
|
892
892
|
key: d.article.slove_a,
|
|
893
893
|
option: [
|
|
894
|
-
{ name: "有边框", code:
|
|
895
|
-
{ name: "无边框", code:
|
|
894
|
+
{ name: "有边框", code: _.slove_1 },
|
|
895
|
+
{ name: "无边框", code: _.slove_2 }
|
|
896
896
|
]
|
|
897
897
|
},
|
|
898
898
|
{
|
|
899
899
|
type: "radio",
|
|
900
900
|
label: "边框样式",
|
|
901
901
|
key: d.article.slove_c,
|
|
902
|
-
show: (e) => e.style[d.article.slove_a] ===
|
|
902
|
+
show: (e) => e.style[d.article.slove_a] === _.slove_1,
|
|
903
903
|
option: [
|
|
904
|
-
{ name: "标准边框", code:
|
|
905
|
-
{ name: "简易边框", code:
|
|
904
|
+
{ name: "标准边框", code: _.slove_3 },
|
|
905
|
+
{ name: "简易边框", code: _.slove_4 }
|
|
906
906
|
]
|
|
907
907
|
},
|
|
908
908
|
{
|
|
@@ -919,10 +919,10 @@ const He = {
|
|
|
919
919
|
label: "插入题号样式控制",
|
|
920
920
|
key: d.article.slove_d,
|
|
921
921
|
code: "slove_insert_sub",
|
|
922
|
-
target: [
|
|
922
|
+
target: [A.problem],
|
|
923
923
|
option: [
|
|
924
|
-
{ name: "无", code:
|
|
925
|
-
{ name: "下划线", code:
|
|
924
|
+
{ name: "无", code: _.slove_5 },
|
|
925
|
+
{ name: "下划线", code: _.slove_6 }
|
|
926
926
|
]
|
|
927
927
|
}
|
|
928
928
|
],
|
|
@@ -942,7 +942,7 @@ const He = {
|
|
|
942
942
|
key: d.article.art_c,
|
|
943
943
|
detail: !0,
|
|
944
944
|
unit: "字",
|
|
945
|
-
target: [
|
|
945
|
+
target: [A.problem]
|
|
946
946
|
},
|
|
947
947
|
{
|
|
948
948
|
type: "slider",
|
|
@@ -951,7 +951,7 @@ const He = {
|
|
|
951
951
|
detail: !0,
|
|
952
952
|
min: () => 1,
|
|
953
953
|
max: (e) => Math.floor(e.style[d.article.art_c] / e.style[d.article.art_e]),
|
|
954
|
-
target: [
|
|
954
|
+
target: [A.problem]
|
|
955
955
|
},
|
|
956
956
|
{
|
|
957
957
|
type: "radio",
|
|
@@ -962,7 +962,7 @@ const He = {
|
|
|
962
962
|
{ name: "100", code: 100 }
|
|
963
963
|
],
|
|
964
964
|
detail: !0,
|
|
965
|
-
target: [
|
|
965
|
+
target: [A.problem]
|
|
966
966
|
}
|
|
967
967
|
]
|
|
968
968
|
},
|
|
@@ -974,26 +974,26 @@ const He = {
|
|
|
974
974
|
label: "排列样式",
|
|
975
975
|
key: d.sheet.choice_a,
|
|
976
976
|
option: [
|
|
977
|
-
{ name: "横排", code:
|
|
978
|
-
{ name: "竖排", code:
|
|
979
|
-
{ name: "分组", code:
|
|
977
|
+
{ name: "横排", code: _.choice_1 },
|
|
978
|
+
{ name: "竖排", code: _.choice_2 },
|
|
979
|
+
{ name: "分组", code: _.choice_3 }
|
|
980
980
|
]
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
983
|
type: "radio",
|
|
984
984
|
label: "排列方向",
|
|
985
985
|
key: d.sheet.choice_b,
|
|
986
|
-
show: (e) => e.style[d.sheet.choice_a] !==
|
|
986
|
+
show: (e) => e.style[d.sheet.choice_a] !== _.choice_2,
|
|
987
987
|
option: [
|
|
988
|
-
{ name: "横向", code:
|
|
989
|
-
{ name: "纵向", code:
|
|
988
|
+
{ name: "横向", code: _.landscape },
|
|
989
|
+
{ name: "纵向", code: _.portrait }
|
|
990
990
|
]
|
|
991
991
|
},
|
|
992
992
|
{
|
|
993
993
|
type: "radio",
|
|
994
994
|
label: "每组题数",
|
|
995
995
|
key: d.sheet.choice_c,
|
|
996
|
-
show: (e) => [
|
|
996
|
+
show: (e) => [_.choice_2].includes(e.style[d.sheet.choice_a]),
|
|
997
997
|
option: [
|
|
998
998
|
{ name: "3题", code: 3 },
|
|
999
999
|
{ name: "4题", code: 4 },
|
|
@@ -1003,18 +1003,18 @@ const He = {
|
|
|
1003
1003
|
{
|
|
1004
1004
|
type: "slider",
|
|
1005
1005
|
label: "每组个数",
|
|
1006
|
-
target: [
|
|
1006
|
+
target: [A.page, A.headline],
|
|
1007
1007
|
key: d.sheet.choice_e,
|
|
1008
|
-
show: (e) => e.style[d.sheet.choice_a] !==
|
|
1008
|
+
show: (e) => e.style[d.sheet.choice_a] !== _.choice_2,
|
|
1009
1009
|
min: () => 1,
|
|
1010
1010
|
max: () => 20
|
|
1011
1011
|
},
|
|
1012
1012
|
{
|
|
1013
1013
|
type: "slider",
|
|
1014
1014
|
label: "列数",
|
|
1015
|
-
target: [
|
|
1015
|
+
target: [A.page, A.headline],
|
|
1016
1016
|
key: d.sheet.choice_d,
|
|
1017
|
-
show: (e) => e.style[d.sheet.choice_a] ===
|
|
1017
|
+
show: (e) => e.style[d.sheet.choice_a] === _.choice_1,
|
|
1018
1018
|
min: () => 1,
|
|
1019
1019
|
max: () => 10
|
|
1020
1020
|
}
|
|
@@ -1027,8 +1027,8 @@ const He = {
|
|
|
1027
1027
|
key: d.sheet.decide_a,
|
|
1028
1028
|
show: (e) => !e.notSelf,
|
|
1029
1029
|
option: [
|
|
1030
|
-
{ name: "对错", code:
|
|
1031
|
-
{ name: "TF", code:
|
|
1030
|
+
{ name: "对错", code: _.decide_1 },
|
|
1031
|
+
{ name: "TF", code: _.decide_2 }
|
|
1032
1032
|
]
|
|
1033
1033
|
}
|
|
1034
1034
|
],
|
|
@@ -1049,20 +1049,20 @@ const He = {
|
|
|
1049
1049
|
key: d.sheet.fill_a,
|
|
1050
1050
|
show: (e) => e.style[d.sheet.fill_b],
|
|
1051
1051
|
option: [
|
|
1052
|
-
{ name: "跟随下划线", code:
|
|
1053
|
-
{ name: "跟随主题干", code:
|
|
1054
|
-
{ name: "跟随标点符号", code:
|
|
1052
|
+
{ name: "跟随下划线", code: _.fill_1 },
|
|
1053
|
+
{ name: "跟随主题干", code: _.fill_2 },
|
|
1054
|
+
{ name: "跟随标点符号", code: _.fill_3 }
|
|
1055
1055
|
]
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
1058
1058
|
type: "radio",
|
|
1059
1059
|
label: "分题换行",
|
|
1060
1060
|
key: d.sheet.fill_c,
|
|
1061
|
-
target: [
|
|
1061
|
+
target: [A.page, A.headline],
|
|
1062
1062
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1063
1063
|
option: [
|
|
1064
|
-
{ name: "开启", code:
|
|
1065
|
-
{ name: "关闭", code:
|
|
1064
|
+
{ name: "开启", code: _.fill_1 },
|
|
1065
|
+
{ name: "关闭", code: _.fill_2 }
|
|
1066
1066
|
]
|
|
1067
1067
|
},
|
|
1068
1068
|
{
|
|
@@ -1101,7 +1101,7 @@ const He = {
|
|
|
1101
1101
|
type: "slider",
|
|
1102
1102
|
label: "每空高度",
|
|
1103
1103
|
key: d.sheet.fill_e,
|
|
1104
|
-
target: [
|
|
1104
|
+
target: [A.page, A.headline],
|
|
1105
1105
|
show: (e) => !e.style[d.sheet.fill_b],
|
|
1106
1106
|
max: () => 20
|
|
1107
1107
|
}
|
|
@@ -1123,7 +1123,7 @@ const He = {
|
|
|
1123
1123
|
label: "每空宽度",
|
|
1124
1124
|
key: d.sheet.fill_d,
|
|
1125
1125
|
filter: (e, t) => e.mixType[t].problemType === u.fill,
|
|
1126
|
-
target: [
|
|
1126
|
+
target: [A.problem],
|
|
1127
1127
|
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === u.fill),
|
|
1128
1128
|
option: [
|
|
1129
1129
|
{ name: "1", code: 1 },
|
|
@@ -1148,19 +1148,19 @@ const He = {
|
|
|
1148
1148
|
key: d.sheet.decide_a,
|
|
1149
1149
|
show: (e) => !e.style[d.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(u).includes(t.problemType) && !t.style[d.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === u.decide),
|
|
1150
1150
|
option: [
|
|
1151
|
-
{ name: "对错", code:
|
|
1152
|
-
{ name: "TF", code:
|
|
1151
|
+
{ name: "对错", code: _.decide_1 },
|
|
1152
|
+
{ name: "TF", code: _.decide_2 }
|
|
1153
1153
|
]
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
1156
1156
|
type: "radio",
|
|
1157
1157
|
label: "排列方向",
|
|
1158
1158
|
key: d.sheet.choice_b,
|
|
1159
|
-
target: [
|
|
1159
|
+
target: [A.problem],
|
|
1160
1160
|
show: (e) => !e.style[d.sheet.mix_a] && !(e.mixType || []).find((t) => ![u.choice, u.choice_multiple].includes(t.problemType)),
|
|
1161
1161
|
option: [
|
|
1162
|
-
{ name: "横向", code:
|
|
1163
|
-
{ name: "竖向", code:
|
|
1162
|
+
{ name: "横向", code: _.landscape },
|
|
1163
|
+
{ name: "竖向", code: _.portrait }
|
|
1164
1164
|
]
|
|
1165
1165
|
},
|
|
1166
1166
|
{
|
|
@@ -1169,9 +1169,9 @@ const He = {
|
|
|
1169
1169
|
key: d.public.scoreShowFlag,
|
|
1170
1170
|
show: (e) => !e.style[d.sheet.mix_a],
|
|
1171
1171
|
option: [
|
|
1172
|
-
{ name: "隐藏", code:
|
|
1173
|
-
{ name: "显示(英文括号)", code:
|
|
1174
|
-
{ name: "显示(中文括号)", code:
|
|
1172
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1173
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1174
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1175
1175
|
]
|
|
1176
1176
|
}
|
|
1177
1177
|
],
|
|
@@ -1183,9 +1183,9 @@ const He = {
|
|
|
1183
1183
|
key: d.public.scoreShowFlag,
|
|
1184
1184
|
show: (e) => !e.notSelf,
|
|
1185
1185
|
option: [
|
|
1186
|
-
{ name: "隐藏", code:
|
|
1187
|
-
{ name: "显示(英文括号)", code:
|
|
1188
|
-
{ name: "显示(中文括号)", code:
|
|
1186
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1187
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1188
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1189
1189
|
]
|
|
1190
1190
|
}
|
|
1191
1191
|
],
|
|
@@ -1197,9 +1197,9 @@ const He = {
|
|
|
1197
1197
|
key: d.public.scoreShowFlag,
|
|
1198
1198
|
show: (e) => !e.notSelf,
|
|
1199
1199
|
option: [
|
|
1200
|
-
{ name: "隐藏", code:
|
|
1201
|
-
{ name: "显示(英文括号)", code:
|
|
1202
|
-
{ name: "显示(中文括号)", code:
|
|
1200
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1201
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1202
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1203
1203
|
]
|
|
1204
1204
|
}
|
|
1205
1205
|
],
|
|
@@ -1219,7 +1219,7 @@ const He = {
|
|
|
1219
1219
|
key: d.sheet.art_c,
|
|
1220
1220
|
detail: !0,
|
|
1221
1221
|
unit: "字",
|
|
1222
|
-
target: [
|
|
1222
|
+
target: [A.problem]
|
|
1223
1223
|
},
|
|
1224
1224
|
{
|
|
1225
1225
|
type: "slider",
|
|
@@ -1228,7 +1228,7 @@ const He = {
|
|
|
1228
1228
|
detail: !0,
|
|
1229
1229
|
min: () => 1,
|
|
1230
1230
|
max: (e) => Math.floor(e.style[d.sheet.art_c] / e.style[d.sheet.art_e]),
|
|
1231
|
-
target: [
|
|
1231
|
+
target: [A.problem]
|
|
1232
1232
|
},
|
|
1233
1233
|
{
|
|
1234
1234
|
type: "radio",
|
|
@@ -1239,16 +1239,16 @@ const He = {
|
|
|
1239
1239
|
{ name: "100", code: 100 }
|
|
1240
1240
|
],
|
|
1241
1241
|
detail: !0,
|
|
1242
|
-
target: [
|
|
1242
|
+
target: [A.problem]
|
|
1243
1243
|
},
|
|
1244
1244
|
{
|
|
1245
1245
|
type: "radio",
|
|
1246
1246
|
label: "题目计分提示",
|
|
1247
1247
|
key: d.public.scoreShowFlag,
|
|
1248
1248
|
option: [
|
|
1249
|
-
{ name: "隐藏", code:
|
|
1250
|
-
{ name: "显示(英文括号)", code:
|
|
1251
|
-
{ name: "显示(中文括号)", code:
|
|
1249
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1250
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1251
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1252
1252
|
]
|
|
1253
1253
|
}
|
|
1254
1254
|
],
|
|
@@ -1268,9 +1268,9 @@ const He = {
|
|
|
1268
1268
|
label: "题目计分提示",
|
|
1269
1269
|
key: d.public.scoreShowFlag,
|
|
1270
1270
|
option: [
|
|
1271
|
-
{ name: "隐藏", code:
|
|
1272
|
-
{ name: "显示(英文括号)", code:
|
|
1273
|
-
{ name: "显示(中文括号)", code:
|
|
1271
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1272
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1273
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1274
1274
|
]
|
|
1275
1275
|
}
|
|
1276
1276
|
]
|
|
@@ -1283,26 +1283,26 @@ const He = {
|
|
|
1283
1283
|
label: "排列样式",
|
|
1284
1284
|
key: d.sheetCard.choice_a,
|
|
1285
1285
|
option: [
|
|
1286
|
-
{ name: "横排", code:
|
|
1287
|
-
{ name: "竖排", code:
|
|
1288
|
-
{ name: "分组", code:
|
|
1286
|
+
{ name: "横排", code: _.choice_1 },
|
|
1287
|
+
{ name: "竖排", code: _.choice_2 },
|
|
1288
|
+
{ name: "分组", code: _.choice_3 }
|
|
1289
1289
|
]
|
|
1290
1290
|
},
|
|
1291
1291
|
{
|
|
1292
1292
|
type: "radio",
|
|
1293
1293
|
label: "排列方向",
|
|
1294
1294
|
key: d.sheetCard.choice_b,
|
|
1295
|
-
show: (e) => e.style[d.sheetCard.choice_a] !==
|
|
1295
|
+
show: (e) => e.style[d.sheetCard.choice_a] !== _.choice_2,
|
|
1296
1296
|
option: [
|
|
1297
|
-
{ name: "横向", code:
|
|
1298
|
-
{ name: "纵向", code:
|
|
1297
|
+
{ name: "横向", code: _.landscape },
|
|
1298
|
+
{ name: "纵向", code: _.portrait }
|
|
1299
1299
|
]
|
|
1300
1300
|
},
|
|
1301
1301
|
{
|
|
1302
1302
|
type: "radio",
|
|
1303
1303
|
label: "每组题数",
|
|
1304
1304
|
key: d.sheetCard.choice_c,
|
|
1305
|
-
show: (e) => [
|
|
1305
|
+
show: (e) => [_.choice_2].includes(e.style[d.sheetCard.choice_a]),
|
|
1306
1306
|
option: [
|
|
1307
1307
|
{ name: "3题", code: 3 },
|
|
1308
1308
|
{ name: "4题", code: 4 },
|
|
@@ -1312,30 +1312,30 @@ const He = {
|
|
|
1312
1312
|
{
|
|
1313
1313
|
type: "slider",
|
|
1314
1314
|
label: "每组个数",
|
|
1315
|
-
target: (e, t) => [u.synthesis].includes(e.problemType) ? [
|
|
1315
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [A.problem] : [A.page, A.headline],
|
|
1316
1316
|
key: d.sheetCard.choice_e,
|
|
1317
|
-
show: (e) => e.style[d.sheetCard.choice_a] ===
|
|
1317
|
+
show: (e) => e.style[d.sheetCard.choice_a] === _.choice_1 || e.style[d.sheetCard.choice_a] === _.choice_3 && e.style[d.sheetCard.choice_b] === _.portrait,
|
|
1318
1318
|
min: () => 1,
|
|
1319
1319
|
max: () => 20
|
|
1320
1320
|
},
|
|
1321
1321
|
{
|
|
1322
1322
|
type: "slider",
|
|
1323
1323
|
label: "列数",
|
|
1324
|
-
target: (e, t) => [u.synthesis].includes(e.problemType) ? [
|
|
1324
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [A.problem] : [A.page, A.headline],
|
|
1325
1325
|
key: d.sheetCard.choice_d,
|
|
1326
|
-
show: (e) => e.style[d.sheetCard.choice_a] !==
|
|
1326
|
+
show: (e) => e.style[d.sheetCard.choice_a] !== _.choice_2,
|
|
1327
1327
|
min: () => 1,
|
|
1328
1328
|
max: () => 10
|
|
1329
1329
|
},
|
|
1330
1330
|
{
|
|
1331
1331
|
type: "radio",
|
|
1332
1332
|
label: "排列偏好",
|
|
1333
|
-
target: (e, t) => [u.synthesis].includes(e.problemType) ? [
|
|
1333
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [A.problem] : [A.page, A.headline],
|
|
1334
1334
|
key: d.sheetCard.choice_f,
|
|
1335
|
-
show: (e) => e.style[d.sheetCard.choice_a] !==
|
|
1335
|
+
show: (e) => e.style[d.sheetCard.choice_a] !== _.choice_2,
|
|
1336
1336
|
option: [
|
|
1337
|
-
{ name: "紧凑", code:
|
|
1338
|
-
{ name: "均分", code:
|
|
1337
|
+
{ name: "紧凑", code: _.choice_6 },
|
|
1338
|
+
{ name: "均分", code: _.choice_7 }
|
|
1339
1339
|
]
|
|
1340
1340
|
}
|
|
1341
1341
|
],
|
|
@@ -1346,8 +1346,8 @@ const He = {
|
|
|
1346
1346
|
label: "展示样式",
|
|
1347
1347
|
key: d.sheetCard.decide_a,
|
|
1348
1348
|
option: [
|
|
1349
|
-
{ name: "对错", code:
|
|
1350
|
-
{ name: "TF", code:
|
|
1349
|
+
{ name: "对错", code: _.decide_1 },
|
|
1350
|
+
{ name: "TF", code: _.decide_2 }
|
|
1351
1351
|
]
|
|
1352
1352
|
}
|
|
1353
1353
|
],
|
|
@@ -1359,39 +1359,39 @@ const He = {
|
|
|
1359
1359
|
key: d.sheetCard.fill_a,
|
|
1360
1360
|
show: (e) => e.style[d.sheetCard.fill_b],
|
|
1361
1361
|
option: [
|
|
1362
|
-
{ name: "跟随下划线", code:
|
|
1363
|
-
{ name: "跟随主题干", code:
|
|
1364
|
-
{ name: "跟随标点符号", code:
|
|
1362
|
+
{ name: "跟随下划线", code: _.fill_1 },
|
|
1363
|
+
{ name: "跟随主题干", code: _.fill_2 },
|
|
1364
|
+
{ name: "跟随标点符号", code: _.fill_3 }
|
|
1365
1365
|
]
|
|
1366
1366
|
},
|
|
1367
1367
|
{
|
|
1368
1368
|
type: "radio",
|
|
1369
1369
|
label: "分题换行",
|
|
1370
1370
|
key: d.sheetCard.fill_c,
|
|
1371
|
-
target: (e, t) => [u.synthesis].includes(e.problemType) ? [
|
|
1371
|
+
target: (e, t) => [u.synthesis].includes(e.problemType) ? [A.problem] : [u.mix].includes(e.problemType) ? [] : [A.page, A.headline],
|
|
1372
1372
|
show: (e) => !e.style[d.sheetCard.fill_b],
|
|
1373
1373
|
option: [
|
|
1374
|
-
{ name: "开启", code:
|
|
1375
|
-
{ name: "关闭", code:
|
|
1374
|
+
{ name: "开启", code: _.fill_1 },
|
|
1375
|
+
{ name: "关闭", code: _.fill_2 }
|
|
1376
1376
|
]
|
|
1377
1377
|
},
|
|
1378
1378
|
{
|
|
1379
1379
|
type: "radio",
|
|
1380
1380
|
label: "排列方向",
|
|
1381
1381
|
key: d.sheetCard.fill_g,
|
|
1382
|
-
target: [
|
|
1383
|
-
show: (e) => e.style[d.sheetCard.fill_c] ===
|
|
1382
|
+
target: [A.page, A.headline],
|
|
1383
|
+
show: (e) => e.style[d.sheetCard.fill_c] === _.fill_2 && [u.fill, u.fill_english].includes(e.problemType),
|
|
1384
1384
|
option: [
|
|
1385
|
-
{ name: "横向", code:
|
|
1386
|
-
{ name: "纵向", code:
|
|
1385
|
+
{ name: "横向", code: _.landscape },
|
|
1386
|
+
{ name: "纵向", code: _.portrait }
|
|
1387
1387
|
]
|
|
1388
1388
|
},
|
|
1389
1389
|
{
|
|
1390
1390
|
type: "slider",
|
|
1391
1391
|
label: "每组个数",
|
|
1392
1392
|
key: d.sheetCard.fill_h,
|
|
1393
|
-
target: [
|
|
1394
|
-
show: (e) => e.style[d.sheetCard.fill_g] ===
|
|
1393
|
+
target: [A.page, A.headline],
|
|
1394
|
+
show: (e) => e.style[d.sheetCard.fill_g] === _.portrait,
|
|
1395
1395
|
min: () => 1,
|
|
1396
1396
|
max: () => 10
|
|
1397
1397
|
},
|
|
@@ -1400,10 +1400,10 @@ const He = {
|
|
|
1400
1400
|
type: "radio",
|
|
1401
1401
|
label: "每空宽度",
|
|
1402
1402
|
key: d.sheetCard.fill_d,
|
|
1403
|
-
target: [
|
|
1403
|
+
target: [A.problem],
|
|
1404
1404
|
detail: !0,
|
|
1405
1405
|
problemCode: [u.fill, u.fill_english],
|
|
1406
|
-
show: (e) => !e.style[d.sheetCard.fill_b] && e.style[d.sheetCard.fill_g] !==
|
|
1406
|
+
show: (e) => !e.style[d.sheetCard.fill_b] && e.style[d.sheetCard.fill_g] !== _.portrait,
|
|
1407
1407
|
option: [
|
|
1408
1408
|
{ name: "1", code: 1 },
|
|
1409
1409
|
{ name: "1/2", code: 2 },
|
|
@@ -1419,7 +1419,7 @@ const He = {
|
|
|
1419
1419
|
type: "radio",
|
|
1420
1420
|
label: "每行空数",
|
|
1421
1421
|
key: d.sheetCard.fill_f,
|
|
1422
|
-
target: [
|
|
1422
|
+
target: [A.page, A.headline],
|
|
1423
1423
|
show: (e) => !e.notSelf && !e.style[d.sheetCard.fill_b] && e.children.length,
|
|
1424
1424
|
option: [
|
|
1425
1425
|
{ name: "1", code: 1 },
|
|
@@ -1435,7 +1435,7 @@ const He = {
|
|
|
1435
1435
|
type: "slider",
|
|
1436
1436
|
label: "每空高度",
|
|
1437
1437
|
key: d.sheetCard.fill_e,
|
|
1438
|
-
target: (e, t) => [u.synthesis, u.mix].includes(e.problemType) ? [
|
|
1438
|
+
target: (e, t) => [u.synthesis, u.mix].includes(e.problemType) ? [A.problem] : [A.page, A.headline],
|
|
1439
1439
|
show: (e) => !e.notSelf && !e.style[d.sheetCard.fill_b],
|
|
1440
1440
|
max: () => 20
|
|
1441
1441
|
}
|
|
@@ -1503,9 +1503,9 @@ const He = {
|
|
|
1503
1503
|
key: d.public.scoreShowFlag,
|
|
1504
1504
|
show: (e) => !e.style[d.sheetCard.mix_a] && ((e.mixType || []).find((t) => [u.easy_slove].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [u.easy_slove].includes(t.problemType))),
|
|
1505
1505
|
option: [
|
|
1506
|
-
{ name: "隐藏", code:
|
|
1507
|
-
{ name: "显示(英文括号)", code:
|
|
1508
|
-
{ name: "显示(中文括号)", code:
|
|
1506
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1507
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1508
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1509
1509
|
]
|
|
1510
1510
|
},
|
|
1511
1511
|
// { // 其它
|
|
@@ -1540,9 +1540,9 @@ const He = {
|
|
|
1540
1540
|
key: d.public.scoreShowFlag,
|
|
1541
1541
|
show: (e) => !e.notSelf,
|
|
1542
1542
|
option: [
|
|
1543
|
-
{ name: "隐藏", code:
|
|
1544
|
-
{ name: "显示(英文括号)", code:
|
|
1545
|
-
{ name: "显示(中文括号)", code:
|
|
1543
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1544
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1545
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1546
1546
|
]
|
|
1547
1547
|
}
|
|
1548
1548
|
// {
|
|
@@ -1566,9 +1566,9 @@ const He = {
|
|
|
1566
1566
|
key: d.public.scoreShowFlag,
|
|
1567
1567
|
show: (e) => !e.notSelf,
|
|
1568
1568
|
option: [
|
|
1569
|
-
{ name: "隐藏", code:
|
|
1570
|
-
{ name: "显示(英文括号)", code:
|
|
1571
|
-
{ name: "显示(中文括号)", code:
|
|
1569
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1570
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1571
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1572
1572
|
]
|
|
1573
1573
|
},
|
|
1574
1574
|
{
|
|
@@ -1577,7 +1577,7 @@ const He = {
|
|
|
1577
1577
|
label: "宽度",
|
|
1578
1578
|
key: d.sheetCard.easy_slove_c,
|
|
1579
1579
|
detail: !0,
|
|
1580
|
-
target: [
|
|
1580
|
+
target: [A.problem],
|
|
1581
1581
|
problemCode: [u.easy_slove],
|
|
1582
1582
|
option: [
|
|
1583
1583
|
{ name: "1", code: 1 },
|
|
@@ -1594,7 +1594,7 @@ const He = {
|
|
|
1594
1594
|
type: "radio",
|
|
1595
1595
|
label: "每行空数",
|
|
1596
1596
|
key: d.sheetCard.easy_slove_e,
|
|
1597
|
-
target: [
|
|
1597
|
+
target: [A.page, A.headline],
|
|
1598
1598
|
show: (e) => !e.notSelf,
|
|
1599
1599
|
option: [
|
|
1600
1600
|
{ name: "1", code: 1 },
|
|
@@ -1611,7 +1611,7 @@ const He = {
|
|
|
1611
1611
|
label: "每空高度",
|
|
1612
1612
|
key: d.sheetCard.easy_slove_d,
|
|
1613
1613
|
show: (e) => !e.notSelf,
|
|
1614
|
-
target: (e, t) => [u.mix].includes(e.problemType) ? [
|
|
1614
|
+
target: (e, t) => [u.mix].includes(e.problemType) ? [A.problem] : [A.page, A.headline, A.problem],
|
|
1615
1615
|
max: () => 20
|
|
1616
1616
|
}
|
|
1617
1617
|
],
|
|
@@ -1622,7 +1622,7 @@ const He = {
|
|
|
1622
1622
|
label: "格子尺寸",
|
|
1623
1623
|
key: d.article.art_b,
|
|
1624
1624
|
detail: !0,
|
|
1625
|
-
target: [
|
|
1625
|
+
target: [A.problem],
|
|
1626
1626
|
show: (e) => e.artBlock,
|
|
1627
1627
|
min: () => 27,
|
|
1628
1628
|
max: () => 40,
|
|
@@ -1637,7 +1637,7 @@ const He = {
|
|
|
1637
1637
|
key: d.sheetCard.art_c,
|
|
1638
1638
|
detail: !0,
|
|
1639
1639
|
unit: "字",
|
|
1640
|
-
target: [
|
|
1640
|
+
target: [A.problem],
|
|
1641
1641
|
show: (e) => e.artBlock
|
|
1642
1642
|
},
|
|
1643
1643
|
{
|
|
@@ -1647,7 +1647,7 @@ const He = {
|
|
|
1647
1647
|
detail: !0,
|
|
1648
1648
|
min: () => 1,
|
|
1649
1649
|
max: (e) => Math.floor(e.style[d.sheetCard.art_c] / e.style[d.sheetCard.art_e]),
|
|
1650
|
-
target: [
|
|
1650
|
+
target: [A.problem],
|
|
1651
1651
|
show: (e) => e.artBlock
|
|
1652
1652
|
},
|
|
1653
1653
|
{
|
|
@@ -1659,7 +1659,7 @@ const He = {
|
|
|
1659
1659
|
{ name: "100", code: 100 }
|
|
1660
1660
|
],
|
|
1661
1661
|
detail: !0,
|
|
1662
|
-
target: [
|
|
1662
|
+
target: [A.problem],
|
|
1663
1663
|
show: (e) => e.artBlock
|
|
1664
1664
|
},
|
|
1665
1665
|
{
|
|
@@ -1668,7 +1668,7 @@ const He = {
|
|
|
1668
1668
|
key: d.sheetCard.art_c,
|
|
1669
1669
|
detail: !0,
|
|
1670
1670
|
unit: "行",
|
|
1671
|
-
target: [
|
|
1671
|
+
target: [A.problem],
|
|
1672
1672
|
show: (e) => !e.artBlock
|
|
1673
1673
|
},
|
|
1674
1674
|
{
|
|
@@ -1676,9 +1676,9 @@ const He = {
|
|
|
1676
1676
|
label: "题目计分提示",
|
|
1677
1677
|
key: d.public.scoreShowFlag,
|
|
1678
1678
|
option: [
|
|
1679
|
-
{ name: "隐藏", code:
|
|
1680
|
-
{ name: "显示(英文括号)", code:
|
|
1681
|
-
{ name: "显示(中文括号)", code:
|
|
1679
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1680
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1681
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1682
1682
|
]
|
|
1683
1683
|
}
|
|
1684
1684
|
// {
|
|
@@ -1712,9 +1712,9 @@ const He = {
|
|
|
1712
1712
|
key: d.public.scoreShowFlag,
|
|
1713
1713
|
show: (e) => (e.children || []).filter((t) => Object.values(u).includes(t.problemType)).map((t) => (t.children || []).length ? t.children : t).flat(2).find((t) => [u.easy_slove, u.slove].includes(t.problemType)),
|
|
1714
1714
|
option: [
|
|
1715
|
-
{ name: "隐藏", code:
|
|
1716
|
-
{ name: "显示(英文括号)", code:
|
|
1717
|
-
{ name: "显示(中文括号)", code:
|
|
1715
|
+
{ name: "隐藏", code: _.bracket_none },
|
|
1716
|
+
{ name: "显示(英文括号)", code: _.bracket_en },
|
|
1717
|
+
{ name: "显示(中文括号)", code: _.bracket_cn }
|
|
1718
1718
|
]
|
|
1719
1719
|
}
|
|
1720
1720
|
]
|
|
@@ -1753,7 +1753,7 @@ const He = {
|
|
|
1753
1753
|
{ name: "小四", code: "16px", alias: "s4" },
|
|
1754
1754
|
{ name: "五号", code: "14px", alias: "5" },
|
|
1755
1755
|
{ name: "小五", code: "12px", alias: "s5" }
|
|
1756
|
-
],
|
|
1756
|
+
], Le = {
|
|
1757
1757
|
stand: {
|
|
1758
1758
|
name: "标准",
|
|
1759
1759
|
code: "stand",
|
|
@@ -1772,7 +1772,7 @@ const He = {
|
|
|
1772
1772
|
value: 24,
|
|
1773
1773
|
height: 16
|
|
1774
1774
|
}
|
|
1775
|
-
},
|
|
1775
|
+
}, Ge = {
|
|
1776
1776
|
small: {
|
|
1777
1777
|
name: "小",
|
|
1778
1778
|
code: "small",
|
|
@@ -1834,46 +1834,46 @@ const He = {
|
|
|
1834
1834
|
column: Ut,
|
|
1835
1835
|
columnMargin: Mt,
|
|
1836
1836
|
defaultProblemLayout: ho,
|
|
1837
|
-
fillSize:
|
|
1837
|
+
fillSize: Le,
|
|
1838
1838
|
fontFamily: yo,
|
|
1839
1839
|
fontSize: fo,
|
|
1840
1840
|
fontWeight: _o,
|
|
1841
|
-
formatConfig:
|
|
1842
|
-
halfScoreType:
|
|
1841
|
+
formatConfig: Zt,
|
|
1842
|
+
halfScoreType: Ze,
|
|
1843
1843
|
halfScoreTypeOption: io,
|
|
1844
1844
|
inlineNotAreaOption: co,
|
|
1845
1845
|
layoutMode: eo,
|
|
1846
|
-
lessScoreRule:
|
|
1846
|
+
lessScoreRule: je,
|
|
1847
1847
|
lessScoreRuleOption: uo,
|
|
1848
1848
|
otherLayout: mo,
|
|
1849
1849
|
otherLayoutKey: Dt,
|
|
1850
1850
|
paddDiff: Vt,
|
|
1851
|
-
pageMargin:
|
|
1851
|
+
pageMargin: Jt,
|
|
1852
1852
|
pagePadding: yt,
|
|
1853
1853
|
pagePointPosition: Qe,
|
|
1854
1854
|
pageSize: x,
|
|
1855
|
-
pageTitleBlockCol:
|
|
1855
|
+
pageTitleBlockCol: jt,
|
|
1856
1856
|
paper: qe,
|
|
1857
1857
|
problemLayout: po,
|
|
1858
1858
|
problemLayoutKey: d,
|
|
1859
|
-
problemLayoutVal:
|
|
1860
|
-
scoreLineSize:
|
|
1859
|
+
problemLayoutVal: _,
|
|
1860
|
+
scoreLineSize: Ge,
|
|
1861
1861
|
scoreLineStyle: nt,
|
|
1862
1862
|
scoreLineType: ot,
|
|
1863
1863
|
scoreLineTypeOption: ro,
|
|
1864
1864
|
seatBarOption: oo,
|
|
1865
|
-
seatType:
|
|
1865
|
+
seatType: Te,
|
|
1866
1866
|
seatTypeBindOption: ao,
|
|
1867
1867
|
seatTypeOption: to,
|
|
1868
|
-
sheetColumnPad:
|
|
1869
|
-
sheetItemColumnPad:
|
|
1868
|
+
sheetColumnPad: Fe,
|
|
1869
|
+
sheetItemColumnPad: Xt,
|
|
1870
1870
|
specialPaper: tt,
|
|
1871
1871
|
subIndentOption: so,
|
|
1872
1872
|
subRange: dt,
|
|
1873
1873
|
subRangeOption: lo,
|
|
1874
|
-
subRule:
|
|
1874
|
+
subRule: Je,
|
|
1875
1875
|
subRuleOption: no,
|
|
1876
|
-
toolGroup:
|
|
1876
|
+
toolGroup: A
|
|
1877
1877
|
}, Symbol.toStringTag, { value: "Module" })), _t = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), bo = "TF".split(""), vo = {
|
|
1878
1878
|
a4: "TYPE_A4",
|
|
1879
1879
|
a4x: "TYPE_A4",
|
|
@@ -1885,49 +1885,49 @@ const He = {
|
|
|
1885
1885
|
"8k": "TYPE_8K",
|
|
1886
1886
|
"16k": "TYPE_16K",
|
|
1887
1887
|
"32k": "TYPE_32K"
|
|
1888
|
-
},
|
|
1888
|
+
}, be = window.btoa(Math.random().toString(32)).substring(0, 10), $ = {
|
|
1889
1889
|
// 定位点 主定位点 lt rt lb rb 辅助定位点 t b
|
|
1890
|
-
point: `__${
|
|
1890
|
+
point: `__${be}point`,
|
|
1891
1891
|
// 页码点
|
|
1892
|
-
page: `__${
|
|
1892
|
+
page: `__${be}pagetotal`,
|
|
1893
1893
|
// 单个页码点
|
|
1894
|
-
page_item: `__${
|
|
1894
|
+
page_item: `__${be}pageitem`,
|
|
1895
1895
|
// 缺考标记
|
|
1896
|
-
lack: `__${
|
|
1896
|
+
lack: `__${be}lack`,
|
|
1897
1897
|
// 试卷二维码
|
|
1898
|
-
art_code: `__${
|
|
1898
|
+
art_code: `__${be}artcode`,
|
|
1899
1899
|
// 条码区
|
|
1900
|
-
en_code: `__${
|
|
1900
|
+
en_code: `__${be}encode`,
|
|
1901
1901
|
// 填涂区容器
|
|
1902
|
-
en_num_view: `__${
|
|
1902
|
+
en_num_view: `__${be}ennumview`,
|
|
1903
1903
|
// 填涂区
|
|
1904
|
-
en_num: `__${
|
|
1904
|
+
en_num: `__${be}ennum`,
|
|
1905
1905
|
// 填涂区分组
|
|
1906
|
-
en_num_group: `__${
|
|
1906
|
+
en_num_group: `__${be}ennumg`,
|
|
1907
1907
|
// 填涂区单个
|
|
1908
|
-
en_num_item: `__${
|
|
1908
|
+
en_num_item: `__${be}ennumi`,
|
|
1909
1909
|
// 选做题
|
|
1910
|
-
choice: `__${
|
|
1910
|
+
choice: `__${be}choice`,
|
|
1911
1911
|
// 题目 + id
|
|
1912
|
-
item: `__${
|
|
1912
|
+
item: `__${be}problem`,
|
|
1913
1913
|
// 填涂框 + 序号
|
|
1914
|
-
fill: `__${
|
|
1914
|
+
fill: `__${be}fill`,
|
|
1915
1915
|
// 填空题下划线
|
|
1916
|
-
fill_line: `__${
|
|
1916
|
+
fill_line: `__${be}fillline`,
|
|
1917
1917
|
// 打分框
|
|
1918
|
-
score: `__${
|
|
1918
|
+
score: `__${be}score`,
|
|
1919
1919
|
// 十分位打分框
|
|
1920
|
-
score_tenbit: `__${
|
|
1920
|
+
score_tenbit: `__${be}tenbit`,
|
|
1921
1921
|
// 个位打分框
|
|
1922
|
-
score_base: `__${
|
|
1922
|
+
score_base: `__${be}base`,
|
|
1923
1923
|
// 单个打分框
|
|
1924
|
-
score_item: `__${
|
|
1924
|
+
score_item: `__${be}scorei`,
|
|
1925
1925
|
// 0.5分打分框
|
|
1926
|
-
score_half: `__${
|
|
1926
|
+
score_half: `__${be}scorehalf`,
|
|
1927
1927
|
// 书写分
|
|
1928
|
-
write_view: `__${
|
|
1928
|
+
write_view: `__${be}write`,
|
|
1929
1929
|
// 密封线
|
|
1930
|
-
bind_line: `__${
|
|
1930
|
+
bind_line: `__${be}bindline`
|
|
1931
1931
|
}, rt = {
|
|
1932
1932
|
[u.choice]: "TYPE_SINGLECHOICE",
|
|
1933
1933
|
// 单项选择
|
|
@@ -1948,11 +1948,11 @@ const He = {
|
|
|
1948
1948
|
// 作文
|
|
1949
1949
|
[u.synthesis]: "TYPE_MULTI",
|
|
1950
1950
|
// 综合题
|
|
1951
|
-
[
|
|
1951
|
+
[Se.one_choice]: "TYPE_SINGLECHOICE",
|
|
1952
1952
|
// 选做题
|
|
1953
|
-
[
|
|
1953
|
+
[Se.another_choice]: "TYPE_SINGLECHOICE"
|
|
1954
1954
|
// 附加选做题
|
|
1955
|
-
}, wo = ["data-xine"], ko = ["data-xine"], xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"],
|
|
1955
|
+
}, wo = ["data-xine"], ko = ["data-xine"], xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"], Ce = 20, To = /* @__PURE__ */ ie({
|
|
1956
1956
|
__name: "point",
|
|
1957
1957
|
props: {
|
|
1958
1958
|
layout: {},
|
|
@@ -1964,77 +1964,77 @@ const He = {
|
|
|
1964
1964
|
padding: {}
|
|
1965
1965
|
},
|
|
1966
1966
|
setup(e) {
|
|
1967
|
-
const t = e, o =
|
|
1968
|
-
lt: { left: `${t.padding.left -
|
|
1969
|
-
rt: { right: `${t.padding.right -
|
|
1970
|
-
lb: { left: `${t.padding.left -
|
|
1971
|
-
rb: { right: `${t.padding.right -
|
|
1967
|
+
const t = e, o = G(() => tt.includes(t.layout.paper) ? 2 : (t.currentPage % 2 ? t.layout.backColumn : t.layout.column) - 1), l = (c) => ({
|
|
1968
|
+
lt: { left: `${t.padding.left - Ce}px`, top: `${t.padding.top - Ce}px` },
|
|
1969
|
+
rt: { right: `${t.padding.right - Ce}px`, top: `${t.padding.top - Ce}px` },
|
|
1970
|
+
lb: { left: `${t.padding.left - Ce}px`, bottom: `${t.padding.bottom - Ce}px` },
|
|
1971
|
+
rb: { right: `${t.padding.right - Ce}px`, bottom: `${t.padding.bottom - Ce}px` }
|
|
1972
1972
|
})[c], i = () => ({
|
|
1973
1973
|
[Qe.left_down.code]: {
|
|
1974
|
-
left: `${t.padding.left -
|
|
1975
|
-
bottom: `${t.padding.bottom -
|
|
1974
|
+
left: `${t.padding.left - Ce + 100}px`,
|
|
1975
|
+
bottom: `${t.padding.bottom - Ce}px`
|
|
1976
1976
|
},
|
|
1977
1977
|
[Qe.right_up.code]: {
|
|
1978
|
-
right: `${t.padding.right -
|
|
1979
|
-
top: `${t.padding.top -
|
|
1978
|
+
right: `${t.padding.right - Ce + 100}px`,
|
|
1979
|
+
top: `${t.padding.top - Ce}px`
|
|
1980
1980
|
}
|
|
1981
1981
|
})[t.layout.pagePoint], a = (c, y) => {
|
|
1982
1982
|
const s = {
|
|
1983
1983
|
t: {
|
|
1984
|
-
top: `${t.padding.top -
|
|
1984
|
+
top: `${t.padding.top - Ce}px`
|
|
1985
1985
|
},
|
|
1986
1986
|
b: {
|
|
1987
|
-
bottom: `${t.padding.bottom -
|
|
1987
|
+
bottom: `${t.padding.bottom - Ce}px`
|
|
1988
1988
|
}
|
|
1989
|
-
}, m = (x[t.layout.paper].width - t.padding.left - t.padding.right +
|
|
1990
|
-
return { left: `${c * m + t.padding.left -
|
|
1989
|
+
}, m = (x[t.layout.paper].width - t.padding.left - t.padding.right + Ce) / (tt.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
1990
|
+
return { left: `${c * m + t.padding.left - Ce}px`, width: `${Ce}px`, ...s[y] };
|
|
1991
1991
|
}, n = (c) => {
|
|
1992
|
-
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, s = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((
|
|
1992
|
+
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, s = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((D) => D === c);
|
|
1993
1993
|
return { top: `${y * m + t.padding.top - 10}px`, width: "11px", ...s };
|
|
1994
1994
|
};
|
|
1995
1995
|
return (c, y) => {
|
|
1996
1996
|
var s;
|
|
1997
|
-
return r(), h(
|
|
1998
|
-
(r(), h(
|
|
1997
|
+
return r(), h(R, null, [
|
|
1998
|
+
(r(), h(R, null, se(["lt", "rt", "lb", "rb"], (m) => k("span", {
|
|
1999
1999
|
key: m,
|
|
2000
2000
|
class: "absolute w-8 bg-black point_item",
|
|
2001
|
-
style:
|
|
2001
|
+
style: Z(l(m)),
|
|
2002
2002
|
"data-xine": L($).point + m
|
|
2003
2003
|
}, null, 12, wo)), 64)),
|
|
2004
|
-
(r(!0), h(
|
|
2005
|
-
(r(), h(
|
|
2006
|
-
key:
|
|
2004
|
+
(r(!0), h(R, null, se(o.value, (m) => (r(), h(R, { key: m }, [
|
|
2005
|
+
(r(), h(R, null, se(["t", "b"], (D) => k("span", {
|
|
2006
|
+
key: D,
|
|
2007
2007
|
class: "absolute bg-black w-8 point_item",
|
|
2008
|
-
style:
|
|
2009
|
-
"data-xine": L($).point +
|
|
2008
|
+
style: Z(a(m, D)),
|
|
2009
|
+
"data-xine": L($).point + D
|
|
2010
2010
|
}, null, 12, ko)), 64))
|
|
2011
2011
|
], 64))), 128)),
|
|
2012
|
-
(r(), h(
|
|
2012
|
+
(r(), h(R, null, se(["l", "r"], (m) => k("span", {
|
|
2013
2013
|
key: m,
|
|
2014
2014
|
class: "absolute bg-black h-8",
|
|
2015
|
-
style:
|
|
2015
|
+
style: Z(n(m)),
|
|
2016
2016
|
"data-xine": L($).point + m
|
|
2017
2017
|
}, null, 12, xo)), 64)),
|
|
2018
2018
|
k("p", {
|
|
2019
2019
|
class: "absolute leading-none text-0",
|
|
2020
|
-
style:
|
|
2020
|
+
style: Z(i()),
|
|
2021
2021
|
"data-xine": L($).page
|
|
2022
2022
|
}, [
|
|
2023
|
-
(r(!0), h(
|
|
2023
|
+
(r(!0), h(R, null, se(c.currentPage + 1, (m, D) => (r(), h("span", {
|
|
2024
2024
|
key: m,
|
|
2025
2025
|
class: "inline-block bg-black mx-2 page_item",
|
|
2026
|
-
"data-xine": L($).page_item +
|
|
2026
|
+
"data-xine": L($).page_item + D
|
|
2027
2027
|
}, null, 8, So))), 128))
|
|
2028
2028
|
], 12, Co),
|
|
2029
|
-
c.currentPage % 2 ?
|
|
2029
|
+
c.currentPage % 2 ? N("", !0) : (r(), h("span", {
|
|
2030
2030
|
key: 0,
|
|
2031
2031
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
2032
|
-
style:
|
|
2033
|
-
}, "提示:本卷" +
|
|
2032
|
+
style: Z({ right: `${c.padding.right - 12}px` })
|
|
2033
|
+
}, "提示:本卷" + oe((s = L(qe).find((m) => m.code === c.layout.paper)) == null ? void 0 : s.name) + "纸张", 5)),
|
|
2034
2034
|
k("span", {
|
|
2035
2035
|
class: "absolute text-sm red_sheet",
|
|
2036
|
-
style:
|
|
2037
|
-
},
|
|
2036
|
+
style: Z({ right: `${c.padding.bottom - 20 + 75}px`, bottom: `${c.padding.bottom - 20 - 3}px` })
|
|
2037
|
+
}, oe(c.currentPage + 1) + "/" + oe(c.totalPage), 5)
|
|
2038
2038
|
], 64);
|
|
2039
2039
|
};
|
|
2040
2040
|
}
|
|
@@ -2047,7 +2047,7 @@ const me = (e, t) => {
|
|
|
2047
2047
|
}, Io = /* @__PURE__ */ me(To, [["__scopeId", "data-v-2c1c50bb"]]), $o = { class: "flex-1" }, Lo = ["type", "placeholder", "maxlength", "value"], Fo = {
|
|
2048
2048
|
key: 0,
|
|
2049
2049
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
2050
|
-
}, st = /* @__PURE__ */
|
|
2050
|
+
}, st = /* @__PURE__ */ ie({
|
|
2051
2051
|
__name: "index",
|
|
2052
2052
|
props: {
|
|
2053
2053
|
value: { default: "" },
|
|
@@ -2062,7 +2062,7 @@ const me = (e, t) => {
|
|
|
2062
2062
|
},
|
|
2063
2063
|
emits: ["change", "input", "focus", "blur"],
|
|
2064
2064
|
setup(e, { emit: t }) {
|
|
2065
|
-
const o = e, l =
|
|
2065
|
+
const o = e, l = X(o.value), i = X(!1);
|
|
2066
2066
|
De(() => o.value, () => {
|
|
2067
2067
|
l.value = o.value;
|
|
2068
2068
|
});
|
|
@@ -2078,11 +2078,11 @@ const me = (e, t) => {
|
|
|
2078
2078
|
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
|
|
2079
2079
|
};
|
|
2080
2080
|
return (s, m) => (r(), h("div", {
|
|
2081
|
-
class:
|
|
2081
|
+
class: le(["flex-1 flex items-center border rounded-lg", s.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", s.size === "small" && "p-1", s.size === "stand" && "p-2", s.size === "large" && "p-2"])
|
|
2082
2082
|
}, [
|
|
2083
2083
|
k("div", $o, [
|
|
2084
2084
|
k("input", {
|
|
2085
|
-
class:
|
|
2085
|
+
class: le(["w-full", s.dir === "center" && "text-center", s.dir === "right" && "text-right"]),
|
|
2086
2086
|
type: s.type,
|
|
2087
2087
|
placeholder: s.placeholder,
|
|
2088
2088
|
maxlength: s.maxLength,
|
|
@@ -2093,10 +2093,10 @@ const me = (e, t) => {
|
|
|
2093
2093
|
onBlur: y
|
|
2094
2094
|
}, null, 42, Lo)
|
|
2095
2095
|
]),
|
|
2096
|
-
s.unit ? (r(), h("span", Fo,
|
|
2096
|
+
s.unit ? (r(), h("span", Fo, oe(s.unit), 1)) : N("", !0)
|
|
2097
2097
|
], 2));
|
|
2098
2098
|
}
|
|
2099
|
-
}), Eo = /* @__PURE__ */
|
|
2099
|
+
}), Eo = /* @__PURE__ */ ie({
|
|
2100
2100
|
__name: "slogan",
|
|
2101
2101
|
props: {
|
|
2102
2102
|
info: {},
|
|
@@ -2104,11 +2104,11 @@ const me = (e, t) => {
|
|
|
2104
2104
|
},
|
|
2105
2105
|
emits: ["change"],
|
|
2106
2106
|
setup(e, { emit: t }) {
|
|
2107
|
-
const o = e, l =
|
|
2107
|
+
const o = e, l = G(() => yt[o.layout.mode][o.layout.paper]), i = G(() => ({
|
|
2108
2108
|
right: `${l.value.right + 97}px`,
|
|
2109
2109
|
bottom: `${l.value.bottom - 25}px`
|
|
2110
2110
|
}));
|
|
2111
|
-
return (a, n) => (r(),
|
|
2111
|
+
return (a, n) => (r(), te(st, {
|
|
2112
2112
|
class: "absolute w-72 text-sm",
|
|
2113
2113
|
value: a.info.slogan,
|
|
2114
2114
|
maxLength: 12,
|
|
@@ -2116,11 +2116,11 @@ const me = (e, t) => {
|
|
|
2116
2116
|
size: "small",
|
|
2117
2117
|
autoLine: "",
|
|
2118
2118
|
dir: "right",
|
|
2119
|
-
style:
|
|
2119
|
+
style: Z(i.value),
|
|
2120
2120
|
onChange: n[0] || (n[0] = (c) => t("change", { slogan: c }))
|
|
2121
2121
|
}, null, 8, ["value", "style"]));
|
|
2122
2122
|
}
|
|
2123
|
-
}), Po = ["width", "height"], Mo = ["xlink:href"], Ao = /* @__PURE__ */
|
|
2123
|
+
}), Po = ["width", "height"], Mo = ["xlink:href"], Ao = /* @__PURE__ */ ie({
|
|
2124
2124
|
__name: "index",
|
|
2125
2125
|
props: {
|
|
2126
2126
|
width: { default: 1.5 },
|
|
@@ -2129,7 +2129,7 @@ const me = (e, t) => {
|
|
|
2129
2129
|
},
|
|
2130
2130
|
emits: ["click"],
|
|
2131
2131
|
setup(e, { emit: t }) {
|
|
2132
|
-
const o = e, l =
|
|
2132
|
+
const o = e, l = G(() => `#icon-${o.name}`);
|
|
2133
2133
|
return (i, a) => (r(), h("span", {
|
|
2134
2134
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
2135
2135
|
onClick: a[0] || (a[0] = (n) => t("click"))
|
|
@@ -2143,10 +2143,10 @@ const me = (e, t) => {
|
|
|
2143
2143
|
]));
|
|
2144
2144
|
}
|
|
2145
2145
|
});
|
|
2146
|
-
const
|
|
2146
|
+
const we = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { class: "flex items-center text-black text-sm h-6 mb-2" }, Bo = {
|
|
2147
2147
|
key: 0,
|
|
2148
2148
|
class: "flex items-center"
|
|
2149
|
-
}, No = { class: "px-2 ml-2 border leading-none" }, Oo = /* @__PURE__ */
|
|
2149
|
+
}, No = { class: "px-2 ml-2 border leading-none" }, Oo = /* @__PURE__ */ ie({
|
|
2150
2150
|
__name: "secrecy",
|
|
2151
2151
|
props: {
|
|
2152
2152
|
layout: {},
|
|
@@ -2156,17 +2156,17 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2156
2156
|
return (t, o) => (r(), h("div", Do, [
|
|
2157
2157
|
t.layout.secrecyFlag ? (r(), h("p", Bo, [
|
|
2158
2158
|
et("绝密"),
|
|
2159
|
-
|
|
2159
|
+
ne(we, {
|
|
2160
2160
|
name: "fiveArrow",
|
|
2161
2161
|
width: 1.4,
|
|
2162
2162
|
class: "px-0 py-0"
|
|
2163
2163
|
}),
|
|
2164
2164
|
et("启用前")
|
|
2165
|
-
])) :
|
|
2166
|
-
k("p", No, "ID:" +
|
|
2165
|
+
])) : N("", !0),
|
|
2166
|
+
k("p", No, "ID:" + oe(t.code), 1)
|
|
2167
2167
|
]));
|
|
2168
2168
|
}
|
|
2169
|
-
}), zo = ["innerHTML"], Re = /* @__PURE__ */
|
|
2169
|
+
}), zo = ["innerHTML"], Re = /* @__PURE__ */ ie({
|
|
2170
2170
|
__name: "index",
|
|
2171
2171
|
props: {
|
|
2172
2172
|
value: {},
|
|
@@ -2184,7 +2184,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2184
2184
|
onBlur: l
|
|
2185
2185
|
}, null, 40, zo));
|
|
2186
2186
|
}
|
|
2187
|
-
}), Ro = { class: "flex w-full" }, Ho = ["src", "data-xine"],
|
|
2187
|
+
}), Ro = { class: "flex w-full" }, Ho = ["src", "data-xine"], Go = { class: "flex-1 mx-4" }, Wo = { class: "flex items-center justify-center flex-wrap" }, qo = {
|
|
2188
2188
|
key: 0,
|
|
2189
2189
|
class: "flex mx-4 min-w-[70px]"
|
|
2190
2190
|
}, Qo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Yo = {
|
|
@@ -2193,13 +2193,13 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2193
2193
|
}, Ko = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "时间:", -1), Uo = /* @__PURE__ */ k("span", null, "分钟", -1), Vo = {
|
|
2194
2194
|
key: 2,
|
|
2195
2195
|
class: "flex mx-4 min-w-[80px]"
|
|
2196
|
-
},
|
|
2196
|
+
}, Xo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "命题人:", -1), Jo = {
|
|
2197
2197
|
key: 3,
|
|
2198
2198
|
class: "flex mx-4 min-w-[80px]"
|
|
2199
|
-
},
|
|
2199
|
+
}, Zo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "审核人:", -1), jo = {
|
|
2200
2200
|
key: 4,
|
|
2201
2201
|
class: "flex items-center mx-4"
|
|
2202
|
-
}, ea = /* @__PURE__ */ k("span", null, "总", -1), ta = { key: 1 }, oa = { key: 3 }, aa = { key: 1 }, la = { key: 3 }, na = /* @__PURE__ */ k("span", null, ")", -1), sa = { key: 1 }, ia = /* @__PURE__ */
|
|
2202
|
+
}, ea = /* @__PURE__ */ k("span", null, "总", -1), ta = { key: 1 }, oa = { key: 3 }, aa = { key: 1 }, la = { key: 3 }, na = /* @__PURE__ */ k("span", null, ")", -1), sa = { key: 1 }, ia = /* @__PURE__ */ ie({
|
|
2203
2203
|
__name: "title",
|
|
2204
2204
|
props: {
|
|
2205
2205
|
info: {},
|
|
@@ -2209,7 +2209,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2209
2209
|
},
|
|
2210
2210
|
emits: ["change"],
|
|
2211
2211
|
setup(e, { emit: t }) {
|
|
2212
|
-
const o = e, l =
|
|
2212
|
+
const o = e, l = G(() => o.data.filter((n) => ![Se.another, Se.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), i = G(() => o.data.filter((n) => [Se.another, Se.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), a = G(() => o.layout.scoreAddStars === nt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2213
2213
|
return (n, c) => (r(), h("div", Ro, [
|
|
2214
2214
|
k("img", {
|
|
2215
2215
|
src: n.info.qrCode,
|
|
@@ -2217,32 +2217,32 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2217
2217
|
class: "flex-shrink-0 w-28 h-28",
|
|
2218
2218
|
"data-xine": L($).art_code
|
|
2219
2219
|
}, null, 8, Ho),
|
|
2220
|
-
k("div",
|
|
2221
|
-
|
|
2220
|
+
k("div", Go, [
|
|
2221
|
+
ne(Re, {
|
|
2222
2222
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2223
2223
|
value: n.info.title,
|
|
2224
|
-
style:
|
|
2224
|
+
style: Z(n.fontConfig.titleStyle),
|
|
2225
2225
|
onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
|
|
2226
2226
|
}, null, 8, ["value", "style"]),
|
|
2227
|
-
n.layout.secTitleFlag ? (r(),
|
|
2227
|
+
n.layout.secTitleFlag ? (r(), te(Re, {
|
|
2228
2228
|
key: 0,
|
|
2229
2229
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2230
2230
|
value: n.info.secTitle,
|
|
2231
|
-
style:
|
|
2231
|
+
style: Z(n.fontConfig.halfTitleStyle),
|
|
2232
2232
|
onChange: c[1] || (c[1] = (y) => t("change", { secTitle: y }))
|
|
2233
|
-
}, null, 8, ["value", "style"])) :
|
|
2234
|
-
k("div",
|
|
2233
|
+
}, null, 8, ["value", "style"])) : N("", !0),
|
|
2234
|
+
k("div", Wo, [
|
|
2235
2235
|
n.layout.examExtentFlag ? (r(), h("p", qo, [
|
|
2236
2236
|
Qo,
|
|
2237
|
-
|
|
2237
|
+
ne(Re, {
|
|
2238
2238
|
class: "flex-1",
|
|
2239
2239
|
value: n.info.extent,
|
|
2240
2240
|
onChange: c[2] || (c[2] = (y) => t("change", { extent: y }))
|
|
2241
2241
|
}, null, 8, ["value"])
|
|
2242
|
-
])) :
|
|
2242
|
+
])) : N("", !0),
|
|
2243
2243
|
n.layout.examTimeFlag ? (r(), h("p", Yo, [
|
|
2244
2244
|
Ko,
|
|
2245
|
-
|
|
2245
|
+
ne(st, {
|
|
2246
2246
|
value: n.info.time,
|
|
2247
2247
|
class: "text-center",
|
|
2248
2248
|
type: "number",
|
|
@@ -2252,65 +2252,65 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2252
2252
|
onChange: c[3] || (c[3] = (y) => t("change", { time: y }))
|
|
2253
2253
|
}, null, 8, ["value"]),
|
|
2254
2254
|
Uo
|
|
2255
|
-
])) :
|
|
2255
|
+
])) : N("", !0),
|
|
2256
2256
|
n.layout.authorFlag ? (r(), h("p", Vo, [
|
|
2257
|
-
|
|
2258
|
-
|
|
2257
|
+
Xo,
|
|
2258
|
+
ne(Re, {
|
|
2259
2259
|
class: "flex-1",
|
|
2260
2260
|
value: n.info.author,
|
|
2261
2261
|
onChange: c[4] || (c[4] = (y) => t("change", { author: y }))
|
|
2262
2262
|
}, null, 8, ["value"])
|
|
2263
|
-
])) :
|
|
2264
|
-
n.layout.reviewerFlag ? (r(), h("p",
|
|
2265
|
-
|
|
2266
|
-
|
|
2263
|
+
])) : N("", !0),
|
|
2264
|
+
n.layout.reviewerFlag ? (r(), h("p", Jo, [
|
|
2265
|
+
Zo,
|
|
2266
|
+
ne(Re, {
|
|
2267
2267
|
class: "flex-1",
|
|
2268
2268
|
value: n.info.reviewer,
|
|
2269
2269
|
onChange: c[5] || (c[5] = (y) => t("change", { reviewer: y }))
|
|
2270
2270
|
}, null, 8, ["value"])
|
|
2271
|
-
])) :
|
|
2272
|
-
n.layout.totalScoreFlag ? (r(), h("p",
|
|
2271
|
+
])) : N("", !0),
|
|
2272
|
+
n.layout.totalScoreFlag ? (r(), h("p", jo, [
|
|
2273
2273
|
ea,
|
|
2274
|
-
a.value ? (r(),
|
|
2274
|
+
a.value ? (r(), te(we, {
|
|
2275
2275
|
key: 0,
|
|
2276
2276
|
name: a.value,
|
|
2277
2277
|
class: "p-0 -translate-y-[1px]"
|
|
2278
2278
|
}, null, 8, ["name"])) : (r(), h("span", ta, "分")),
|
|
2279
|
-
k("span", null, ":" +
|
|
2280
|
-
a.value ? (r(),
|
|
2279
|
+
k("span", null, ":" + oe(l.value + (n.layout.writeScoreFlag ? n.info.writeScore : 0)), 1),
|
|
2280
|
+
a.value ? (r(), te(we, {
|
|
2281
2281
|
key: 2,
|
|
2282
2282
|
name: a.value,
|
|
2283
2283
|
class: "p-0 -translate-y-[1px]"
|
|
2284
2284
|
}, null, 8, ["name"])) : (r(), h("span", oa, "分")),
|
|
2285
|
-
n.layout.writeScoreFlag ? (r(), h(
|
|
2286
|
-
k("span", null, "(试题" +
|
|
2287
|
-
a.value ? (r(),
|
|
2285
|
+
n.layout.writeScoreFlag ? (r(), h(R, { key: 4 }, [
|
|
2286
|
+
k("span", null, "(试题" + oe(l.value), 1),
|
|
2287
|
+
a.value ? (r(), te(we, {
|
|
2288
2288
|
key: 0,
|
|
2289
2289
|
name: a.value,
|
|
2290
2290
|
class: "p-0 -translate-y-[1px]"
|
|
2291
2291
|
}, null, 8, ["name"])) : (r(), h("span", aa, "分")),
|
|
2292
|
-
k("span", null, "+卷面" +
|
|
2293
|
-
a.value ? (r(),
|
|
2292
|
+
k("span", null, "+卷面" + oe(n.info.writeScore || 0), 1),
|
|
2293
|
+
a.value ? (r(), te(we, {
|
|
2294
2294
|
key: 2,
|
|
2295
2295
|
name: a.value,
|
|
2296
2296
|
class: "p-0 -translate-y-[1px]"
|
|
2297
2297
|
}, null, 8, ["name"])) : (r(), h("span", la, "分")),
|
|
2298
2298
|
na
|
|
2299
|
-
], 64)) :
|
|
2300
|
-
i.value ? (r(), h(
|
|
2301
|
-
k("span", null, ";附加题:" +
|
|
2302
|
-
a.value ? (r(),
|
|
2299
|
+
], 64)) : N("", !0),
|
|
2300
|
+
i.value ? (r(), h(R, { key: 5 }, [
|
|
2301
|
+
k("span", null, ";附加题:" + oe(i.value), 1),
|
|
2302
|
+
a.value ? (r(), te(we, {
|
|
2303
2303
|
key: 0,
|
|
2304
2304
|
name: a.value,
|
|
2305
2305
|
class: "p-0 -translate-y-[1px]"
|
|
2306
2306
|
}, null, 8, ["name"])) : (r(), h("span", sa, "分"))
|
|
2307
|
-
], 64)) :
|
|
2308
|
-
])) :
|
|
2307
|
+
], 64)) : N("", !0)
|
|
2308
|
+
])) : N("", !0)
|
|
2309
2309
|
])
|
|
2310
2310
|
])
|
|
2311
2311
|
]));
|
|
2312
2312
|
}
|
|
2313
|
-
}), St = /* @__PURE__ */
|
|
2313
|
+
}), St = /* @__PURE__ */ ie({
|
|
2314
2314
|
__name: "examInfoNone",
|
|
2315
2315
|
props: {
|
|
2316
2316
|
extent: {},
|
|
@@ -2320,13 +2320,13 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2320
2320
|
setup(e, { emit: t }) {
|
|
2321
2321
|
const o = ["examNumField", "examRoomField", "scoreField"];
|
|
2322
2322
|
return (l, i) => (r(), h("ul", {
|
|
2323
|
-
class:
|
|
2323
|
+
class: le(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2324
2324
|
}, [
|
|
2325
|
-
(r(), h(
|
|
2325
|
+
(r(), h(R, null, se(o, (a, n) => k("li", {
|
|
2326
2326
|
key: a,
|
|
2327
|
-
class:
|
|
2327
|
+
class: le(["flex flex-1 min-w-[12rem]", l.isRow && n && "ml-2"])
|
|
2328
2328
|
}, [
|
|
2329
|
-
|
|
2329
|
+
ne(st, {
|
|
2330
2330
|
value: l.extent[a],
|
|
2331
2331
|
class: "px-0",
|
|
2332
2332
|
placeholder: "",
|
|
@@ -2337,7 +2337,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2337
2337
|
], 2)), 64))
|
|
2338
2338
|
], 2));
|
|
2339
2339
|
}
|
|
2340
|
-
}), ra = ["data-xine"], ca = { class: "flex items-center" }, da = ["data-xine"], ua = ["data-xine"], ha = ["data-xine"], pa = /* @__PURE__ */
|
|
2340
|
+
}), ra = ["data-xine"], ca = { class: "flex items-center" }, da = ["data-xine"], ua = ["data-xine"], ha = ["data-xine"], pa = /* @__PURE__ */ ie({
|
|
2341
2341
|
__name: "examInfoSeat",
|
|
2342
2342
|
setup(e) {
|
|
2343
2343
|
return (t, o) => (r(), h("div", {
|
|
@@ -2345,7 +2345,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2345
2345
|
"data-xine": L($).en_num_view
|
|
2346
2346
|
}, [
|
|
2347
2347
|
k("p", ca, [
|
|
2348
|
-
|
|
2348
|
+
ne(we, {
|
|
2349
2349
|
class: "pt-1",
|
|
2350
2350
|
name: "fiveArrow"
|
|
2351
2351
|
}),
|
|
@@ -2355,22 +2355,22 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2355
2355
|
class: "flex-1 flex flex-col",
|
|
2356
2356
|
"data-xine": L($).en_num
|
|
2357
2357
|
}, [
|
|
2358
|
-
(r(), h(
|
|
2358
|
+
(r(), h(R, null, se(3, (l, i) => k("p", {
|
|
2359
2359
|
key: l,
|
|
2360
2360
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2361
2361
|
"data-xine": L($).en_num_group
|
|
2362
2362
|
}, [
|
|
2363
|
-
(r(), h(
|
|
2363
|
+
(r(), h(R, null, se(10, (a) => k("span", {
|
|
2364
2364
|
key: a,
|
|
2365
2365
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2366
2366
|
"data-xine": L($).en_num_item
|
|
2367
|
-
},
|
|
2367
|
+
}, oe(a - 1), 9, ha)), 64))
|
|
2368
2368
|
], 8, ua)), 64))
|
|
2369
2369
|
], 8, da)
|
|
2370
2370
|
], 8, ra));
|
|
2371
2371
|
}
|
|
2372
2372
|
});
|
|
2373
|
-
const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["data-xine"], _a = { class: "flex items-center border-r tracking-[5px] text_dir" }, fa = ["data-xine"], ga = ["data-xine"], ba = ["data-xine"], va = /* @__PURE__ */
|
|
2373
|
+
const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["data-xine"], _a = { class: "flex items-center border-r tracking-[5px] text_dir" }, fa = ["data-xine"], ga = ["data-xine"], ba = ["data-xine"], va = /* @__PURE__ */ ie({
|
|
2374
2374
|
__name: "examInfoShort",
|
|
2375
2375
|
setup(e) {
|
|
2376
2376
|
return (t, o) => (r(), h("div", {
|
|
@@ -2378,7 +2378,7 @@ const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["da
|
|
|
2378
2378
|
"data-xine": L($).en_num_view
|
|
2379
2379
|
}, [
|
|
2380
2380
|
k("p", _a, [
|
|
2381
|
-
|
|
2381
|
+
ne(we, {
|
|
2382
2382
|
class: "px-1 pt-1",
|
|
2383
2383
|
name: "fiveArrow"
|
|
2384
2384
|
}),
|
|
@@ -2388,22 +2388,22 @@ const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["da
|
|
|
2388
2388
|
class: "flex-1 flex flex-col",
|
|
2389
2389
|
"data-xine": L($).en_num
|
|
2390
2390
|
}, [
|
|
2391
|
-
(r(), h(
|
|
2391
|
+
(r(), h(R, null, se(4, (l, i) => k("p", {
|
|
2392
2392
|
key: l,
|
|
2393
|
-
class:
|
|
2393
|
+
class: le(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
|
|
2394
2394
|
"data-xine": L($).en_num_group
|
|
2395
2395
|
}, [
|
|
2396
|
-
(r(), h(
|
|
2396
|
+
(r(), h(R, null, se(10, (a) => k("span", {
|
|
2397
2397
|
key: a,
|
|
2398
2398
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2399
2399
|
"data-xine": L($).en_num_item
|
|
2400
|
-
},
|
|
2400
|
+
}, oe(a - 1), 9, ba)), 64))
|
|
2401
2401
|
], 10, ga)), 64))
|
|
2402
2402
|
], 8, fa)
|
|
2403
2403
|
], 8, ya));
|
|
2404
2404
|
}
|
|
2405
2405
|
});
|
|
2406
|
-
const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @__PURE__ */
|
|
2406
|
+
const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @__PURE__ */ ie({
|
|
2407
2407
|
__name: "examInfoBase",
|
|
2408
2408
|
props: {
|
|
2409
2409
|
extent: {},
|
|
@@ -2413,13 +2413,13 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2413
2413
|
setup(e, { emit: t }) {
|
|
2414
2414
|
const o = ["nameField", "classField", "seatField"];
|
|
2415
2415
|
return (l, i) => (r(), h("ul", {
|
|
2416
|
-
class:
|
|
2416
|
+
class: le(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2417
2417
|
}, [
|
|
2418
|
-
(r(), h(
|
|
2418
|
+
(r(), h(R, null, se(o, (a, n) => k("li", {
|
|
2419
2419
|
key: a,
|
|
2420
|
-
class:
|
|
2420
|
+
class: le(["flex flex-1", l.isRow && n && "ml-2"])
|
|
2421
2421
|
}, [
|
|
2422
|
-
|
|
2422
|
+
ne(st, {
|
|
2423
2423
|
value: l.extent[a],
|
|
2424
2424
|
class: "px-0",
|
|
2425
2425
|
placeholder: "",
|
|
@@ -2432,7 +2432,7 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2432
2432
|
}
|
|
2433
2433
|
}), ka = (e) => (Ye("data-v-4d37cd56"), e = e(), Ke(), e), xa = ["data-xine"], Ca = /* @__PURE__ */ ka(() => /* @__PURE__ */ k("span", { class: "font-bold tips" }, "贴条码区域", -1)), Sa = [
|
|
2434
2434
|
Ca
|
|
2435
|
-
], Ta = /* @__PURE__ */
|
|
2435
|
+
], Ta = /* @__PURE__ */ ie({
|
|
2436
2436
|
__name: "examInfo",
|
|
2437
2437
|
props: {
|
|
2438
2438
|
layout: {},
|
|
@@ -2441,33 +2441,33 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
|
|
|
2441
2441
|
},
|
|
2442
2442
|
emits: ["change"],
|
|
2443
2443
|
setup(e, { emit: t }) {
|
|
2444
|
-
const o = e, l =
|
|
2445
|
-
return (n, c) => n.isBindFlag ?
|
|
2444
|
+
const o = e, l = G(() => o.layout.seatType === Te.none || !o.layout.seatBar), i = G(() => o.layout.column >= 3 && l.value), a = G(() => o.layout.column >= 3 && o.layout.seatType !== Te.none && o.layout.seatBar);
|
|
2445
|
+
return (n, c) => n.isBindFlag ? N("", !0) : (r(), h("div", {
|
|
2446
2446
|
key: 0,
|
|
2447
|
-
class:
|
|
2447
|
+
class: le(["flex justify-between", (a.value || i.value) && "flex-wrap"])
|
|
2448
2448
|
}, [
|
|
2449
|
-
i.value ? (r(),
|
|
2449
|
+
i.value ? (r(), te(St, {
|
|
2450
2450
|
key: 0,
|
|
2451
2451
|
isRow: "",
|
|
2452
2452
|
extent: n.info.extentInfo,
|
|
2453
2453
|
onChange: c[0] || (c[0] = (y) => t("change", y))
|
|
2454
|
-
}, null, 8, ["extent"])) :
|
|
2455
|
-
|
|
2454
|
+
}, null, 8, ["extent"])) : N("", !0),
|
|
2455
|
+
ne(wa, {
|
|
2456
2456
|
isRow: a.value,
|
|
2457
2457
|
extent: n.info.extentInfo,
|
|
2458
2458
|
onChange: c[1] || (c[1] = (y) => t("change", y))
|
|
2459
2459
|
}, null, 8, ["isRow", "extent"]),
|
|
2460
|
-
!i.value && l.value ? (r(),
|
|
2460
|
+
!i.value && l.value ? (r(), te(St, {
|
|
2461
2461
|
key: 1,
|
|
2462
2462
|
extent: n.info.extentInfo,
|
|
2463
2463
|
onChange: c[2] || (c[2] = (y) => t("change", y))
|
|
2464
|
-
}, null, 8, ["extent"])) :
|
|
2465
|
-
n.layout.seatType === L(
|
|
2464
|
+
}, null, 8, ["extent"])) : N("", !0),
|
|
2465
|
+
n.layout.seatType === L(Te).seat ? (r(), te(ma, { key: 2 })) : n.layout.seatType === L(Te).shortId ? (r(), te(Nt, { key: 3 })) : N("", !0),
|
|
2466
2466
|
n.layout.seatBar ? (r(), h("div", {
|
|
2467
2467
|
key: 4,
|
|
2468
2468
|
class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
|
|
2469
2469
|
"data-xine": L($).en_code
|
|
2470
|
-
}, Sa, 8, xa)) :
|
|
2470
|
+
}, Sa, 8, xa)) : N("", !0)
|
|
2471
2471
|
], 2));
|
|
2472
2472
|
}
|
|
2473
2473
|
});
|
|
@@ -2480,18 +2480,18 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2480
2480
|
], Oa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2481
2481
|
/* @__PURE__ */ k("span", null, "正确填涂示例"),
|
|
2482
2482
|
/* @__PURE__ */ k("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2483
|
-
], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ra = /* @__PURE__ */
|
|
2483
|
+
], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ra = /* @__PURE__ */ ie({
|
|
2484
2484
|
__name: "notice",
|
|
2485
2485
|
props: {
|
|
2486
2486
|
layout: {},
|
|
2487
2487
|
isBindFlag: { type: Boolean }
|
|
2488
2488
|
},
|
|
2489
2489
|
setup(e) {
|
|
2490
|
-
const t = e, o =
|
|
2490
|
+
const t = e, o = G(() => {
|
|
2491
2491
|
const l = {
|
|
2492
|
-
[
|
|
2493
|
-
[
|
|
2494
|
-
[
|
|
2492
|
+
[Te.none]: "",
|
|
2493
|
+
[Te.seat]: "座位号或",
|
|
2494
|
+
[Te.shortId]: "短学号或"
|
|
2495
2495
|
};
|
|
2496
2496
|
return [
|
|
2497
2497
|
`1.答题前,考生先将自己的基本信息填写清楚,并认真核对${t.isBindFlag ? "" : l[t.layout.seatType]}条形码上的信息;`,
|
|
@@ -2500,24 +2500,24 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2500
2500
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2501
2501
|
];
|
|
2502
2502
|
});
|
|
2503
|
-
return (l, i) => (r(), h(
|
|
2503
|
+
return (l, i) => (r(), h(R, null, [
|
|
2504
2504
|
l.layout.noteFlag ? (r(), h("div", $a, [
|
|
2505
2505
|
La,
|
|
2506
2506
|
k("div", Fa, [
|
|
2507
|
-
(r(!0), h(
|
|
2507
|
+
(r(!0), h(R, null, se(o.value, (a) => (r(), h("p", {
|
|
2508
2508
|
key: a,
|
|
2509
2509
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2510
|
-
},
|
|
2510
|
+
}, oe(a), 1))), 128))
|
|
2511
2511
|
])
|
|
2512
|
-
])) :
|
|
2512
|
+
])) : N("", !0),
|
|
2513
2513
|
l.layout.lackFlag ? (r(), h("div", {
|
|
2514
2514
|
key: 1,
|
|
2515
|
-
class:
|
|
2515
|
+
class: le(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2516
2516
|
}, [
|
|
2517
2517
|
k("p", Ea, [
|
|
2518
2518
|
Pa,
|
|
2519
2519
|
k("span", Ma, [
|
|
2520
|
-
|
|
2520
|
+
ne(we, { name: "rightArrow" }),
|
|
2521
2521
|
k("span", {
|
|
2522
2522
|
class: "flex items-center leading-4",
|
|
2523
2523
|
"data-xine": L($).lack
|
|
@@ -2525,12 +2525,12 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2525
2525
|
])
|
|
2526
2526
|
]),
|
|
2527
2527
|
Oa
|
|
2528
|
-
], 2)) :
|
|
2528
|
+
], 2)) : N("", !0),
|
|
2529
2529
|
za
|
|
2530
2530
|
], 64));
|
|
2531
2531
|
}
|
|
2532
2532
|
});
|
|
2533
|
-
const Ha = /* @__PURE__ */ me(Ra, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),
|
|
2533
|
+
const Ha = /* @__PURE__ */ me(Ra, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Ga = (e, t = "", o = !0, l = "children") => {
|
|
2534
2534
|
let i = [];
|
|
2535
2535
|
const a = (n) => {
|
|
2536
2536
|
(n[l] || []).length ? (o && i.push(t ? n[t] : n[l]), n[l].forEach((c) => a(c))) : i.push(t ? n[t] : n);
|
|
@@ -2549,7 +2549,7 @@ function Ot(e) {
|
|
|
2549
2549
|
function Tt(e) {
|
|
2550
2550
|
return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
|
|
2551
2551
|
}
|
|
2552
|
-
const
|
|
2552
|
+
const Wa = {
|
|
2553
2553
|
key: 0,
|
|
2554
2554
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2555
2555
|
}, qa = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col" }, [
|
|
@@ -2558,27 +2558,27 @@ const Ga = {
|
|
|
2558
2558
|
], -1), Qa = { class: "flex-1" }, Ya = /* @__PURE__ */ k("p", { class: "flex-1 border-t" }, null, -1), Ka = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2559
2559
|
/* @__PURE__ */ k("p", { class: "flex-1" }, "总分"),
|
|
2560
2560
|
/* @__PURE__ */ k("p", { class: "flex-1 border-t" })
|
|
2561
|
-
], -1), Ua = /* @__PURE__ */
|
|
2561
|
+
], -1), Ua = /* @__PURE__ */ ie({
|
|
2562
2562
|
__name: "scoreTable",
|
|
2563
2563
|
props: {
|
|
2564
2564
|
layout: {},
|
|
2565
2565
|
data: {}
|
|
2566
2566
|
},
|
|
2567
2567
|
setup(e) {
|
|
2568
|
-
const t = e, o =
|
|
2569
|
-
return (l, i) => l.layout.scoreFlag ? (r(), h("ul",
|
|
2568
|
+
const t = e, o = G(() => t.data.filter((l) => l.problemType));
|
|
2569
|
+
return (l, i) => l.layout.scoreFlag ? (r(), h("ul", Wa, [
|
|
2570
2570
|
qa,
|
|
2571
|
-
(r(!0), h(
|
|
2571
|
+
(r(!0), h(R, null, se(o.value, (a, n) => (r(), h("li", {
|
|
2572
2572
|
key: a.id,
|
|
2573
2573
|
class: "flex-1 flex flex-col border-l"
|
|
2574
2574
|
}, [
|
|
2575
|
-
k("p", Qa,
|
|
2575
|
+
k("p", Qa, oe(L(Ot)(n)), 1),
|
|
2576
2576
|
Ya
|
|
2577
2577
|
]))), 128)),
|
|
2578
2578
|
Ka
|
|
2579
|
-
])) :
|
|
2579
|
+
])) : N("", !0);
|
|
2580
2580
|
}
|
|
2581
|
-
}), Va = /* @__PURE__ */
|
|
2581
|
+
}), Va = /* @__PURE__ */ ie({
|
|
2582
2582
|
__name: "columnDom",
|
|
2583
2583
|
props: {
|
|
2584
2584
|
column: {},
|
|
@@ -2587,44 +2587,44 @@ const Ga = {
|
|
|
2587
2587
|
styleInfo: {}
|
|
2588
2588
|
},
|
|
2589
2589
|
setup(e, { expose: t }) {
|
|
2590
|
-
const o = e, l =
|
|
2590
|
+
const o = e, l = X(), i = X();
|
|
2591
2591
|
t({ col: l, colView: i });
|
|
2592
|
-
const a =
|
|
2593
|
-
const { top: y, width: s, height: m, left:
|
|
2592
|
+
const a = G(() => {
|
|
2593
|
+
const { top: y, width: s, height: m, left: D } = o.styleInfo;
|
|
2594
2594
|
return {
|
|
2595
|
-
top: `${parseFloat(y) - (o.currentColumn ?
|
|
2596
|
-
left: `${parseFloat(
|
|
2597
|
-
width: `${parseFloat(s) +
|
|
2598
|
-
height: `${parseFloat(m) + (o.currentColumn ?
|
|
2595
|
+
top: `${parseFloat(y) - (o.currentColumn ? Fe.top : 1)}px`,
|
|
2596
|
+
left: `${parseFloat(D) - Fe.left}px`,
|
|
2597
|
+
width: `${parseFloat(s) + Fe.left + Fe.right}px`,
|
|
2598
|
+
height: `${parseFloat(m) + (o.currentColumn ? Fe.top : 0) + Fe.bottom}px`
|
|
2599
2599
|
};
|
|
2600
|
-
}), n =
|
|
2601
|
-
left: `${
|
|
2602
|
-
top: `${
|
|
2603
|
-
bottom: `${
|
|
2604
|
-
right: `${
|
|
2605
|
-
})), c =
|
|
2606
|
-
return (y, s) => (r(), h(
|
|
2600
|
+
}), n = G(() => ({
|
|
2601
|
+
left: `${Fe.left - 1}px`,
|
|
2602
|
+
top: `${Fe.top - 1}px`,
|
|
2603
|
+
bottom: `${Fe.bottom - 1}px`,
|
|
2604
|
+
right: `${Fe.right - 1}px`
|
|
2605
|
+
})), c = G(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2606
|
+
return (y, s) => (r(), h(R, null, [
|
|
2607
2607
|
y.showColBorder ? (r(), h("div", {
|
|
2608
2608
|
key: 0,
|
|
2609
|
-
class:
|
|
2610
|
-
style:
|
|
2609
|
+
class: le(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
|
|
2610
|
+
style: Z(a.value)
|
|
2611
2611
|
}, [
|
|
2612
2612
|
k("span", {
|
|
2613
2613
|
class: "absolute border border-black",
|
|
2614
|
-
style:
|
|
2614
|
+
style: Z(n.value)
|
|
2615
2615
|
}, null, 4)
|
|
2616
|
-
], 6)) :
|
|
2616
|
+
], 6)) : N("", !0),
|
|
2617
2617
|
k("div", {
|
|
2618
2618
|
class: "absolute overflow-hidden",
|
|
2619
2619
|
ref_key: "colView",
|
|
2620
2620
|
ref: i,
|
|
2621
|
-
style:
|
|
2621
|
+
style: Z(y.styleInfo)
|
|
2622
2622
|
}, [
|
|
2623
2623
|
k("div", {
|
|
2624
2624
|
ref_key: "col",
|
|
2625
2625
|
ref: l,
|
|
2626
2626
|
class: "overflow-hidden __col__",
|
|
2627
|
-
style:
|
|
2627
|
+
style: Z({ height: y.styleInfo.contentHeight })
|
|
2628
2628
|
}, [
|
|
2629
2629
|
mt(y.$slots, "default", {}, void 0, !0)
|
|
2630
2630
|
], 4)
|
|
@@ -2632,12 +2632,12 @@ const Ga = {
|
|
|
2632
2632
|
], 64));
|
|
2633
2633
|
}
|
|
2634
2634
|
});
|
|
2635
|
-
const
|
|
2635
|
+
const Xa = /* @__PURE__ */ me(Va, [["__scopeId", "data-v-e102e805"]]), Ja = (e) => (Ye("data-v-01785ba3"), e = e(), Ke(), e), Za = { class: "flex-1 flex items-center flex-wrap relative" }, ja = {
|
|
2636
2636
|
key: 0,
|
|
2637
2637
|
class: "flex-1 mr-4 mb-4 min-w-[30%] max-w-[35%]"
|
|
2638
|
-
}, el = ["data-xine"], tl = /* @__PURE__ */
|
|
2638
|
+
}, el = ["data-xine"], tl = /* @__PURE__ */ Ja(() => /* @__PURE__ */ k("span", null, "贴条码区域", -1)), ol = [
|
|
2639
2639
|
tl
|
|
2640
|
-
], al = ["data-xine"], ll = /* @__PURE__ */
|
|
2640
|
+
], al = ["data-xine"], ll = /* @__PURE__ */ ie({
|
|
2641
2641
|
__name: "bind",
|
|
2642
2642
|
props: {
|
|
2643
2643
|
currentPage: {},
|
|
@@ -2648,55 +2648,55 @@ const ja = /* @__PURE__ */ me(Va, [["__scopeId", "data-v-e102e805"]]), Xa = (e)
|
|
|
2648
2648
|
bindInfo: {}
|
|
2649
2649
|
},
|
|
2650
2650
|
setup(e) {
|
|
2651
|
-
const t =
|
|
2651
|
+
const t = X();
|
|
2652
2652
|
return (o, l) => o.isBindFlag ? (r(), h("div", {
|
|
2653
2653
|
key: 0,
|
|
2654
|
-
style:
|
|
2655
|
-
class:
|
|
2654
|
+
style: Z({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2655
|
+
class: le([o.currentPage % 2 && "right_view"]),
|
|
2656
2656
|
ref_key: "view",
|
|
2657
2657
|
ref: t
|
|
2658
2658
|
}, [
|
|
2659
2659
|
o.currentPage % 2 ? (r(), h("div", {
|
|
2660
2660
|
key: 0,
|
|
2661
2661
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2662
|
-
style:
|
|
2662
|
+
style: Z({ width: `${o.height - 20}px`, height: `${o.width}px` })
|
|
2663
2663
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), h("div", {
|
|
2664
2664
|
key: 1,
|
|
2665
2665
|
class: "relative flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2666
|
-
style:
|
|
2666
|
+
style: Z({ width: `${o.height - 20}px` })
|
|
2667
2667
|
}, [
|
|
2668
|
-
k("div",
|
|
2669
|
-
(r(!0), h(
|
|
2670
|
-
a === 2 && o.bindInfo.length === 5 ? (r(), h("span",
|
|
2668
|
+
k("div", Za, [
|
|
2669
|
+
(r(!0), h(R, null, se(o.bindInfo, (i, a) => (r(), h(R, { key: i }, [
|
|
2670
|
+
a === 2 && o.bindInfo.length === 5 ? (r(), h("span", ja)) : N("", !0),
|
|
2671
2671
|
k("span", {
|
|
2672
|
-
class:
|
|
2673
|
-
},
|
|
2672
|
+
class: le(["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%]"])
|
|
2673
|
+
}, oe(i), 3)
|
|
2674
2674
|
], 64))), 128))
|
|
2675
2675
|
]),
|
|
2676
|
-
o.bindSeatType === L(
|
|
2676
|
+
o.bindSeatType === L(Te).none ? (r(), h("div", {
|
|
2677
2677
|
key: 0,
|
|
2678
2678
|
class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2679
2679
|
"data-xine": L($).en_code
|
|
2680
|
-
}, ol, 8, el)) : o.bindSeatType === L(
|
|
2680
|
+
}, ol, 8, el)) : o.bindSeatType === L(Te).shortId ? (r(), te(Nt, {
|
|
2681
2681
|
key: 1,
|
|
2682
2682
|
class: "h-40"
|
|
2683
|
-
})) :
|
|
2683
|
+
})) : N("", !0),
|
|
2684
2684
|
k("span", {
|
|
2685
2685
|
class: "absolute right-0 bottom-0",
|
|
2686
2686
|
"data-xine": L($).bind_line
|
|
2687
2687
|
}, null, 8, al)
|
|
2688
2688
|
], 4))
|
|
2689
|
-
], 6)) :
|
|
2689
|
+
], 6)) : N("", !0);
|
|
2690
2690
|
}
|
|
2691
2691
|
});
|
|
2692
|
-
const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", It = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */
|
|
2692
|
+
const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", It = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */ ie({
|
|
2693
2693
|
__name: "simple",
|
|
2694
2694
|
props: {
|
|
2695
2695
|
item: {},
|
|
2696
2696
|
layout: {}
|
|
2697
2697
|
},
|
|
2698
2698
|
setup(e) {
|
|
2699
|
-
const t = e, o = ["right", "half_right", "wrong"], l =
|
|
2699
|
+
const t = e, o = ["right", "half_right", "wrong"], l = G(() => {
|
|
2700
2700
|
const i = t.item.score;
|
|
2701
2701
|
return [i, Math.round(i / 2 * 100) / 100, 0];
|
|
2702
2702
|
});
|
|
@@ -2709,13 +2709,13 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2709
2709
|
class: "flex h-full divide-x divide-solid",
|
|
2710
2710
|
"data-xine": L($).score_base
|
|
2711
2711
|
}, [
|
|
2712
|
-
(r(!0), h(
|
|
2712
|
+
(r(!0), h(R, null, se(l.value, (n, c) => (r(), h("li", {
|
|
2713
2713
|
class: "flex items-center justify-center relative score_line",
|
|
2714
|
-
style:
|
|
2714
|
+
style: Z({ width: `${L(Ge)[i.layout.scoreLineSize].value}px` }),
|
|
2715
2715
|
"data-xine": L($).score_item
|
|
2716
2716
|
}, [
|
|
2717
|
-
k("span", pl,
|
|
2718
|
-
|
|
2717
|
+
k("span", pl, oe(n), 1),
|
|
2718
|
+
ne(we, {
|
|
2719
2719
|
class: "p-0",
|
|
2720
2720
|
name: o[c]
|
|
2721
2721
|
}, null, 8, ["name"])
|
|
@@ -2723,7 +2723,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2723
2723
|
], 8, ul)
|
|
2724
2724
|
], 8, dl));
|
|
2725
2725
|
}
|
|
2726
|
-
}), yl = ["data-block", "data-xine"], _l = ["data-xine"], fl = ["data-xine"], it = /* @__PURE__ */
|
|
2726
|
+
}), yl = ["data-block", "data-xine"], _l = ["data-xine"], fl = ["data-xine"], it = /* @__PURE__ */ ie({
|
|
2727
2727
|
__name: "index",
|
|
2728
2728
|
props: {
|
|
2729
2729
|
item: {},
|
|
@@ -2731,7 +2731,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2731
2731
|
static: { type: Boolean }
|
|
2732
2732
|
},
|
|
2733
2733
|
setup(e) {
|
|
2734
|
-
const t = e, o =
|
|
2734
|
+
const t = e, o = X(), l = X(!1), i = X(!1), a = X(!1), n = X([]), c = G(() => t.layout.scoreAddStars === nt.star.code);
|
|
2735
2735
|
De(() => [t.item.score], () => y()), Ue(() => {
|
|
2736
2736
|
y();
|
|
2737
2737
|
});
|
|
@@ -2741,16 +2741,16 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2741
2741
|
if (t.item.scoreLineType === ot.custom)
|
|
2742
2742
|
m = [[...t.item.customScore, 0]];
|
|
2743
2743
|
else if (t.item.scoreStep)
|
|
2744
|
-
m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((
|
|
2744
|
+
m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((D) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * D)).reverse());
|
|
2745
2745
|
else {
|
|
2746
|
-
const
|
|
2747
|
-
l.value =
|
|
2746
|
+
const D = o.value.offsetWidth, p = Ge[t.layout.scoreLineSize].value + 1;
|
|
2747
|
+
l.value = D - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((M) => M && M * 10).reverse()), m.push([...Array(10).keys()].reverse()), a.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2748
2748
|
}
|
|
2749
|
-
t.item.hasHalfScore && m.push([0.5]), n.value = m, i.value = !!m.flat().find((
|
|
2749
|
+
t.item.hasHalfScore && m.push([0.5]), n.value = m, i.value = !!m.flat().find((D) => `${D}`.length > 3) || t.layout.scoreLineSize === Ge.small.code;
|
|
2750
2750
|
});
|
|
2751
2751
|
}, s = (m) => t.item.hasHalfScore ? [$.score_half, $.score_base, $.score_tenbit][n.value.length - m - 1] : [$.score_base, $.score_tenbit][n.value.length - m - 1];
|
|
2752
|
-
return (m,
|
|
2753
|
-
m.layout.simpleScoreBarFlag && !m.static ? (r(),
|
|
2752
|
+
return (m, D) => m.layout.handReadFlag ? (r(), h(R, { key: 0 }, [
|
|
2753
|
+
m.layout.simpleScoreBarFlag && !m.static ? (r(), te(ml, {
|
|
2754
2754
|
key: 0,
|
|
2755
2755
|
item: m.item,
|
|
2756
2756
|
layout: m.layout
|
|
@@ -2758,34 +2758,34 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2758
2758
|
key: 1,
|
|
2759
2759
|
ref_key: "view",
|
|
2760
2760
|
ref: o,
|
|
2761
|
-
class:
|
|
2761
|
+
class: le([n.value.length ? "inline-flex" : "flex-1", "max-w-full overflow-hidden border border-l-2 border-r-2 divide-x divide-solid"]),
|
|
2762
2762
|
"data-block": L(Ie),
|
|
2763
2763
|
"data-xine": L($).score
|
|
2764
2764
|
}, [
|
|
2765
|
-
(r(!0), h(
|
|
2765
|
+
(r(!0), h(R, null, se(n.value, (p, M) => (r(), h("ul", {
|
|
2766
2766
|
class: "flex divide-x divide-solid",
|
|
2767
|
-
"data-xine": s(
|
|
2767
|
+
"data-xine": s(M)
|
|
2768
2768
|
}, [
|
|
2769
|
-
(r(!0), h(
|
|
2769
|
+
(r(!0), h(R, null, se(p, (H) => (r(), h("li", {
|
|
2770
2770
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2771
|
-
style:
|
|
2772
|
-
"data-xine":
|
|
2771
|
+
style: Z({ width: `${L(Ge)[m.layout.scoreLineSize].value}px` }),
|
|
2772
|
+
"data-xine": H.toString() ? L($).score_item : ""
|
|
2773
2773
|
}, [
|
|
2774
2774
|
k("span", {
|
|
2775
|
-
class:
|
|
2776
|
-
},
|
|
2777
|
-
c.value &&
|
|
2775
|
+
class: le(["whitespace-nowrap", c.value && "origin-right", i.value && "scale-75"])
|
|
2776
|
+
}, oe(m.layout.minusFlag && H.toString().length && !c.value ? "-" : "") + oe(H), 3),
|
|
2777
|
+
c.value && H.toString().length ? (r(), te(we, {
|
|
2778
2778
|
key: 0,
|
|
2779
2779
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2780
2780
|
name: m.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2781
2781
|
width: i.value ? 0.9 : 1.2
|
|
2782
|
-
}, null, 8, ["name", "width"])) :
|
|
2782
|
+
}, null, 8, ["name", "width"])) : N("", !0)
|
|
2783
2783
|
], 12, fl))), 256))
|
|
2784
2784
|
], 8, _l))), 256))
|
|
2785
2785
|
], 10, yl))
|
|
2786
|
-
], 64)) :
|
|
2786
|
+
], 64)) : N("", !0);
|
|
2787
2787
|
}
|
|
2788
|
-
}), zt = (e) => (Ye("data-v-a8dbd3b0"), e = e(), Ke(), e), gl = ["data-xine"], bl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), vl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), wl = /* @__PURE__ */
|
|
2788
|
+
}), zt = (e) => (Ye("data-v-a8dbd3b0"), e = e(), Ke(), e), gl = ["data-xine"], bl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), vl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), wl = /* @__PURE__ */ ie({
|
|
2789
2789
|
__name: "writeScore",
|
|
2790
2790
|
props: {
|
|
2791
2791
|
info: {},
|
|
@@ -2798,7 +2798,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2798
2798
|
}, [
|
|
2799
2799
|
bl,
|
|
2800
2800
|
vl,
|
|
2801
|
-
|
|
2801
|
+
ne(it, {
|
|
2802
2802
|
item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
|
|
2803
2803
|
layout: t.layout,
|
|
2804
2804
|
static: ""
|
|
@@ -2806,7 +2806,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2806
2806
|
], 8, gl));
|
|
2807
2807
|
}
|
|
2808
2808
|
});
|
|
2809
|
-
const kl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-a8dbd3b0"]]), xl = ["innerHTML"], Cl = /* @__PURE__ */
|
|
2809
|
+
const kl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-a8dbd3b0"]]), xl = ["innerHTML"], Cl = /* @__PURE__ */ ie({
|
|
2810
2810
|
__name: "index",
|
|
2811
2811
|
props: {
|
|
2812
2812
|
data: {}
|
|
@@ -2819,7 +2819,7 @@ const kl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-a8dbd3b0"]]), xl = ["in
|
|
|
2819
2819
|
}, null, 8, xl));
|
|
2820
2820
|
}
|
|
2821
2821
|
});
|
|
2822
|
-
const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["data-tag", "data-block"], Tl = /* @__PURE__ */
|
|
2822
|
+
const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["data-tag", "data-block"], Tl = /* @__PURE__ */ ie({
|
|
2823
2823
|
__name: "notArea",
|
|
2824
2824
|
props: {
|
|
2825
2825
|
item: {}
|
|
@@ -2830,7 +2830,7 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
|
|
|
2830
2830
|
"data-tag": t.item.__tag__,
|
|
2831
2831
|
"data-block": L(ft)
|
|
2832
2832
|
}, [
|
|
2833
|
-
|
|
2833
|
+
ne(Oe, {
|
|
2834
2834
|
"data-content": t.item.id,
|
|
2835
2835
|
data: t.item.content
|
|
2836
2836
|
}, null, 8, ["data-content", "data"])
|
|
@@ -2842,7 +2842,7 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
|
|
|
2842
2842
|
}, Fl = { key: 0 }, El = {
|
|
2843
2843
|
key: 1,
|
|
2844
2844
|
class: "indent-2"
|
|
2845
|
-
}, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ Il(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */
|
|
2845
|
+
}, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ Il(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */ ie({
|
|
2846
2846
|
__name: "index",
|
|
2847
2847
|
props: {
|
|
2848
2848
|
item: {},
|
|
@@ -2853,50 +2853,50 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
|
|
|
2853
2853
|
},
|
|
2854
2854
|
emits: ["click", "dbclick"],
|
|
2855
2855
|
setup(e, { emit: t }) {
|
|
2856
|
-
const o = e, l =
|
|
2856
|
+
const o = e, l = X(!1), i = X(), a = G(() => [Se.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((s) => s.problemType) : null), n = G(() => [Se.another_choice].includes(o.item.problemType)), c = G(() => [Se.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Ga(o.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), y = G(() => [...new Set(o.item.rawChildren.map((s) => [...new Set(s.sub.map((m) => m.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
|
|
2857
2857
|
return Ue(() => {
|
|
2858
2858
|
o.isFirst && o.item.problemType && (i.value.offsetHeight / parseFloat(window.getComputedStyle(i.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
2859
2859
|
}), (s, m) => s.item.problemType ? (r(), h("div", {
|
|
2860
2860
|
key: 1,
|
|
2861
|
-
class:
|
|
2862
|
-
onClick: m[2] || (m[2] = Ee((
|
|
2861
|
+
class: le(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
2862
|
+
onClick: m[2] || (m[2] = Ee((D) => t("click", s.item), ["stop"])),
|
|
2863
2863
|
ref_key: "view",
|
|
2864
2864
|
ref: i,
|
|
2865
2865
|
"data-tag": s.item.__tag__,
|
|
2866
2866
|
"data-block": L(Ie),
|
|
2867
|
-
onDblclick: m[3] || (m[3] = Ee((
|
|
2867
|
+
onDblclick: m[3] || (m[3] = Ee((D) => t("dbclick", s.item), ["stop"]))
|
|
2868
2868
|
}, [
|
|
2869
|
-
!s.layout.listIndexFlag && s.item.sub ? (r(), h("span", Ll,
|
|
2869
|
+
!s.layout.listIndexFlag && s.item.sub ? (r(), h("span", Ll, oe(L(Ot)(s.item.sub - 1)) + "、", 1)) : N("", !0),
|
|
2870
2870
|
k("div", null, [
|
|
2871
2871
|
k("div", null, [
|
|
2872
|
-
k("span", null,
|
|
2873
|
-
s.item.desc ? (r(), h("span", Fl, "(" +
|
|
2874
|
-
s.layout.scoreTipFlag ? (r(), h("span", El, "(共" +
|
|
2872
|
+
k("span", null, oe(s.item.name), 1),
|
|
2873
|
+
s.item.desc ? (r(), h("span", Fl, "(" + oe(s.item.desc) + ")", 1)) : N("", !0),
|
|
2874
|
+
s.layout.scoreTipFlag ? (r(), h("span", El, "(共" + oe(c.value) + "题,共" + oe(s.item.totalScore) + "分)", 1)) : N("", !0)
|
|
2875
2875
|
]),
|
|
2876
2876
|
a.value || n.value ? (r(), h("div", Pl, [
|
|
2877
|
-
a.value ? (r(), h("p", Ml, "请在以下" +
|
|
2877
|
+
a.value ? (r(), h("p", Ml, "请在以下" + oe(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), h("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2878
2878
|
k("p", {
|
|
2879
2879
|
class: "flex flex-wrap",
|
|
2880
2880
|
"data-block": L(Ie),
|
|
2881
2881
|
"data-xine": L($).choice + s.item.id
|
|
2882
2882
|
}, [
|
|
2883
2883
|
Bl,
|
|
2884
|
-
(r(!0), h(
|
|
2885
|
-
k("span", null,
|
|
2884
|
+
(r(!0), h(R, null, se(y.value, (D, p) => (r(), h("span", Nl, [
|
|
2885
|
+
k("span", null, oe(D), 1),
|
|
2886
2886
|
k("span", {
|
|
2887
2887
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2888
2888
|
"data-xine": L($).fill
|
|
2889
2889
|
}, null, 8, Ol)
|
|
2890
2890
|
]))), 256))
|
|
2891
2891
|
], 8, Dl)
|
|
2892
|
-
])) :
|
|
2892
|
+
])) : N("", !0)
|
|
2893
2893
|
])
|
|
2894
|
-
], 42, $l)) : (r(),
|
|
2894
|
+
], 42, $l)) : (r(), te(Tl, {
|
|
2895
2895
|
key: 0,
|
|
2896
|
-
class:
|
|
2896
|
+
class: le([s.isActive && "border-current", s.isFirst && "mt-9"]),
|
|
2897
2897
|
item: s.item,
|
|
2898
|
-
onClick: m[0] || (m[0] = Ee((
|
|
2899
|
-
onDblclick: m[1] || (m[1] = Ee((
|
|
2898
|
+
onClick: m[0] || (m[0] = Ee((D) => t("click", s.item), ["stop"])),
|
|
2899
|
+
onDblclick: m[1] || (m[1] = Ee((D) => t("dbclick", s.item), ["stop"]))
|
|
2900
2900
|
}, null, 8, ["class", "item"]));
|
|
2901
2901
|
}
|
|
2902
2902
|
});
|
|
@@ -2904,7 +2904,7 @@ const $t = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Rl = {};
|
|
|
2904
2904
|
function Hl(e, t) {
|
|
2905
2905
|
return null;
|
|
2906
2906
|
}
|
|
2907
|
-
const
|
|
2907
|
+
const Gl = /* @__PURE__ */ me(Rl, [["render", Hl]]), Wl = ["data-block"], ql = ["data-xine"], Ql = /* @__PURE__ */ ie({
|
|
2908
2908
|
__name: "sheet",
|
|
2909
2909
|
props: {
|
|
2910
2910
|
item: {},
|
|
@@ -2915,71 +2915,71 @@ const Wl = /* @__PURE__ */ me(Rl, [["render", Hl]]), Gl = ["data-block"], ql = [
|
|
|
2915
2915
|
class: "flex items-center red_sheet",
|
|
2916
2916
|
"data-block": L(Ie)
|
|
2917
2917
|
}, [
|
|
2918
|
-
(r(!0), h(
|
|
2919
|
-
class:
|
|
2920
|
-
style:
|
|
2918
|
+
(r(!0), h(R, null, se(t.item.optList, (l, i) => (r(), h("span", {
|
|
2919
|
+
class: le(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(ut)[i]) && "bg-success border-success"]),
|
|
2920
|
+
style: Z({ width: `${L(Le)[t.layout.fillSize].value + 1}px`, height: `${L(Le)[t.layout.fillSize].height + 1}px` }),
|
|
2921
2921
|
"data-xine": L($).fill + i
|
|
2922
2922
|
}, [
|
|
2923
|
-
|
|
2923
|
+
ne(we, {
|
|
2924
2924
|
width: 1,
|
|
2925
2925
|
name: L(ut)[i]
|
|
2926
2926
|
}, null, 8, ["name"])
|
|
2927
2927
|
], 14, ql))), 256))
|
|
2928
|
-
], 8,
|
|
2928
|
+
], 8, Wl));
|
|
2929
2929
|
}
|
|
2930
2930
|
}), Yl = {};
|
|
2931
2931
|
function Kl(e, t) {
|
|
2932
2932
|
return null;
|
|
2933
2933
|
}
|
|
2934
|
-
const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"],
|
|
2935
|
-
|
|
2934
|
+
const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], Xl = ["data-xine"], Jl = ["data-xine"], Zl = ["data-xine"], jl = /* @__PURE__ */ k("span", { class: "text-sm scale-75" }, "T", -1), en = [
|
|
2935
|
+
jl
|
|
2936
2936
|
], tn = ["data-xine"], on = /* @__PURE__ */ k("span", { class: "text-sm scale-75" }, "F", -1), an = [
|
|
2937
2937
|
on
|
|
2938
|
-
], ln = /* @__PURE__ */
|
|
2938
|
+
], ln = /* @__PURE__ */ ie({
|
|
2939
2939
|
__name: "sheet",
|
|
2940
2940
|
props: {
|
|
2941
2941
|
item: {},
|
|
2942
2942
|
layout: {}
|
|
2943
2943
|
},
|
|
2944
2944
|
setup(e) {
|
|
2945
|
-
const t = e, o =
|
|
2946
|
-
width: `${
|
|
2947
|
-
height: `${
|
|
2945
|
+
const t = e, o = G(() => ({
|
|
2946
|
+
width: `${Le[t.layout.fillSize].value + 1}px`,
|
|
2947
|
+
height: `${Le[t.layout.fillSize].height + 1}px`
|
|
2948
2948
|
}));
|
|
2949
2949
|
return (l, i) => (r(), h("div", {
|
|
2950
2950
|
class: "flex red_sheet",
|
|
2951
2951
|
"data-block": L(Ie)
|
|
2952
2952
|
}, [
|
|
2953
|
-
l.item.style[L(d)[l.layout.mode].decide_a] === L(
|
|
2953
|
+
l.item.style[L(d)[l.layout.mode].decide_a] === L(_).decide_1 ? (r(), h(R, { key: 0 }, [
|
|
2954
2954
|
k("span", {
|
|
2955
|
-
class:
|
|
2956
|
-
style:
|
|
2955
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2956
|
+
style: Z(o.value),
|
|
2957
2957
|
"data-xine": L($).fill + "0"
|
|
2958
2958
|
}, [
|
|
2959
|
-
|
|
2959
|
+
ne(we, {
|
|
2960
2960
|
name: "right",
|
|
2961
2961
|
width: 1
|
|
2962
2962
|
})
|
|
2963
|
-
], 14,
|
|
2963
|
+
], 14, Xl),
|
|
2964
2964
|
k("span", {
|
|
2965
|
-
class:
|
|
2966
|
-
style:
|
|
2965
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2966
|
+
style: Z(o.value),
|
|
2967
2967
|
"data-xine": L($).fill + "1"
|
|
2968
2968
|
}, [
|
|
2969
|
-
|
|
2969
|
+
ne(we, {
|
|
2970
2970
|
name: "wrong",
|
|
2971
2971
|
width: 1
|
|
2972
2972
|
})
|
|
2973
|
-
], 14,
|
|
2974
|
-
], 64)) : (r(), h(
|
|
2973
|
+
], 14, Jl)
|
|
2974
|
+
], 64)) : (r(), h(R, { key: 1 }, [
|
|
2975
2975
|
k("span", {
|
|
2976
|
-
class:
|
|
2977
|
-
style:
|
|
2976
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2977
|
+
style: Z(o.value),
|
|
2978
2978
|
"data-xine": L($).fill + "0"
|
|
2979
|
-
}, en, 14,
|
|
2979
|
+
}, en, 14, Zl),
|
|
2980
2980
|
k("span", {
|
|
2981
|
-
class:
|
|
2982
|
-
style:
|
|
2981
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2982
|
+
style: Z(o.value),
|
|
2983
2983
|
"data-xine": L($).fill + "1"
|
|
2984
2984
|
}, an, 14, tn)
|
|
2985
2985
|
], 64))
|
|
@@ -2992,7 +2992,7 @@ function sn(e, t) {
|
|
|
2992
2992
|
const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-xine"], dn = {
|
|
2993
2993
|
key: 0,
|
|
2994
2994
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2995
|
-
}, un = { key: 1 }, hn = /* @__PURE__ */
|
|
2995
|
+
}, un = { key: 1 }, hn = /* @__PURE__ */ ie({
|
|
2996
2996
|
__name: "index",
|
|
2997
2997
|
props: {
|
|
2998
2998
|
item: {},
|
|
@@ -3000,7 +3000,7 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
|
|
|
3000
3000
|
showScoreCn: { type: Boolean }
|
|
3001
3001
|
},
|
|
3002
3002
|
setup(e) {
|
|
3003
|
-
const t = e, o =
|
|
3003
|
+
const t = e, o = G(() => t.layout.scoreAddStars === nt.star.code);
|
|
3004
3004
|
return (l, i) => l.layout.handReadFlag ? (r(), h("div", {
|
|
3005
3005
|
key: 0,
|
|
3006
3006
|
class: "score_fill flex items-center",
|
|
@@ -3008,17 +3008,17 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
|
|
|
3008
3008
|
"data-xine": L($).fill
|
|
3009
3009
|
}, [
|
|
3010
3010
|
l.showScoreCn ? (r(), h("span", dn, [
|
|
3011
|
-
k("span", null,
|
|
3012
|
-
o.value ? (r(),
|
|
3011
|
+
k("span", null, oe(o.value ? "" : "-") + oe(l.item.score), 1),
|
|
3012
|
+
o.value ? (r(), te(we, {
|
|
3013
3013
|
key: 0,
|
|
3014
3014
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
3015
3015
|
name: "fiveArrowLine",
|
|
3016
3016
|
width: 1.2
|
|
3017
3017
|
})) : (r(), h("span", un, "分"))
|
|
3018
|
-
])) :
|
|
3019
|
-
], 8, cn)) :
|
|
3018
|
+
])) : N("", !0)
|
|
3019
|
+
], 8, cn)) : N("", !0);
|
|
3020
3020
|
}
|
|
3021
|
-
}), pn = ["data-xine"], mn = /* @__PURE__ */
|
|
3021
|
+
}), pn = ["data-xine"], mn = /* @__PURE__ */ ie({
|
|
3022
3022
|
__name: "sheet",
|
|
3023
3023
|
props: {
|
|
3024
3024
|
item: {},
|
|
@@ -3026,25 +3026,25 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
|
|
|
3026
3026
|
},
|
|
3027
3027
|
setup(e) {
|
|
3028
3028
|
const t = e;
|
|
3029
|
-
return (o, l) => (r(), h(
|
|
3029
|
+
return (o, l) => (r(), h(R, null, [
|
|
3030
3030
|
k("div", {
|
|
3031
3031
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
3032
|
-
style:
|
|
3032
|
+
style: Z({ height: `${20 + o.item.style[L(d)[t.layout.mode].fill_e]}px` }),
|
|
3033
3033
|
"data-xine": L($).fill_line
|
|
3034
3034
|
}, null, 12, pn),
|
|
3035
|
-
o.layout.handReadFlag ? (r(),
|
|
3035
|
+
o.layout.handReadFlag ? (r(), te(hn, {
|
|
3036
3036
|
key: 0,
|
|
3037
3037
|
item: o.item,
|
|
3038
3038
|
layout: o.layout,
|
|
3039
3039
|
showScoreCn: o.layout.fillScoreFlag
|
|
3040
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
3040
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : N("", !0)
|
|
3041
3041
|
], 64));
|
|
3042
3042
|
}
|
|
3043
3043
|
}), yn = {};
|
|
3044
3044
|
function _n(e, t) {
|
|
3045
3045
|
return null;
|
|
3046
3046
|
}
|
|
3047
|
-
const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = { class: "flex-1 flex justify-end overflow-hidden" }, vn = /* @__PURE__ */
|
|
3047
|
+
const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = { class: "flex-1 flex justify-end overflow-hidden" }, vn = /* @__PURE__ */ ie({
|
|
3048
3048
|
__name: "sheet",
|
|
3049
3049
|
props: {
|
|
3050
3050
|
item: {},
|
|
@@ -3053,22 +3053,22 @@ const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = {
|
|
|
3053
3053
|
},
|
|
3054
3054
|
setup(e) {
|
|
3055
3055
|
return (t, o) => (r(), h("div", {
|
|
3056
|
-
class:
|
|
3056
|
+
class: le(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
3057
3057
|
}, [
|
|
3058
|
-
t.item.chunk ?
|
|
3058
|
+
t.item.chunk ? N("", !0) : (r(), h("div", {
|
|
3059
3059
|
key: 0,
|
|
3060
3060
|
class: "absolute left-0 top-2 w-full flex items-center",
|
|
3061
3061
|
"data-block": L(Ie)
|
|
3062
3062
|
}, [
|
|
3063
3063
|
mt(t.$slots, "default"),
|
|
3064
3064
|
k("div", bn, [
|
|
3065
|
-
|
|
3065
|
+
ne(it, {
|
|
3066
3066
|
item: t.item,
|
|
3067
3067
|
layout: t.layout
|
|
3068
3068
|
}, null, 8, ["item", "layout"])
|
|
3069
3069
|
])
|
|
3070
3070
|
], 8, gn)),
|
|
3071
|
-
|
|
3071
|
+
ne(Oe, {
|
|
3072
3072
|
"data-area": t.item.id,
|
|
3073
3073
|
data: t.item.answerArea
|
|
3074
3074
|
}, null, 8, ["data-area", "data"])
|
|
@@ -3078,7 +3078,7 @@ const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = {
|
|
|
3078
3078
|
function kn(e, t) {
|
|
3079
3079
|
return null;
|
|
3080
3080
|
}
|
|
3081
|
-
const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */
|
|
3081
|
+
const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */ ie({
|
|
3082
3082
|
__name: "sheet",
|
|
3083
3083
|
props: {
|
|
3084
3084
|
item: {},
|
|
@@ -3086,12 +3086,12 @@ const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */ ne({
|
|
|
3086
3086
|
},
|
|
3087
3087
|
setup(e) {
|
|
3088
3088
|
const t = e;
|
|
3089
|
-
return (o, l) => (r(), h(
|
|
3089
|
+
return (o, l) => (r(), h(R, null, [
|
|
3090
3090
|
k("div", {
|
|
3091
3091
|
class: "flex-1 border-b self-end mr-2",
|
|
3092
|
-
style:
|
|
3092
|
+
style: Z({ height: `${20 + o.item.style[L(d)[t.layout.mode].easy_slove_d]}px` })
|
|
3093
3093
|
}, null, 4),
|
|
3094
|
-
|
|
3094
|
+
ne(it, {
|
|
3095
3095
|
item: o.item,
|
|
3096
3096
|
layout: o.layout
|
|
3097
3097
|
}, null, 8, ["item", "layout"])
|
|
@@ -3117,22 +3117,22 @@ const Bn = /* @__PURE__ */ me(An, [["render", Dn]]), Nn = {};
|
|
|
3117
3117
|
function On(e, t) {
|
|
3118
3118
|
return null;
|
|
3119
3119
|
}
|
|
3120
|
-
const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn = ["data-block"],
|
|
3120
|
+
const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn = ["data-block"], Gn = { class: "flex-1 flex justify-end overflow-hidden" }, Wn = ["data-block", "data-size"], qn = ["data-block"], Qn = /* @__PURE__ */ ie({
|
|
3121
3121
|
__name: "sheet",
|
|
3122
3122
|
props: {
|
|
3123
3123
|
item: {},
|
|
3124
3124
|
layout: {}
|
|
3125
3125
|
},
|
|
3126
3126
|
setup(e) {
|
|
3127
|
-
const t = e, o =
|
|
3128
|
-
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen,
|
|
3127
|
+
const t = e, o = X(0), l = X({}), i = X(), a = X(), n = X([]), c = G(() => {
|
|
3128
|
+
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, D.value.length, 0);
|
|
3129
3129
|
return p ? Math.ceil(p / (o.value || p)) : 0;
|
|
3130
|
-
}), y =
|
|
3130
|
+
}), y = G(() => parseInt(t.item.style[d[t.layout.mode].art_b])), s = G(() => ({
|
|
3131
3131
|
width: `${o.value * y.value}px`,
|
|
3132
3132
|
height: `${y.value}px`
|
|
3133
|
-
})), m =
|
|
3133
|
+
})), m = G(() => ({
|
|
3134
3134
|
width: `${y.value}px`
|
|
3135
|
-
})),
|
|
3135
|
+
})), D = G(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3136
3136
|
return Ue(() => {
|
|
3137
3137
|
if (!t.item.artBlock)
|
|
3138
3138
|
return;
|
|
@@ -3140,77 +3140,77 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn =
|
|
|
3140
3140
|
o.value = Math.floor(i.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3141
3141
|
if (!i.value)
|
|
3142
3142
|
return;
|
|
3143
|
-
const
|
|
3143
|
+
const j = i.value.getBoundingClientRect(), B = a.value[0].getBoundingClientRect();
|
|
3144
3144
|
l.value = {
|
|
3145
|
-
left: `${
|
|
3146
|
-
top: `${
|
|
3145
|
+
left: `${B.left - j.left}px`,
|
|
3146
|
+
top: `${B.top - j.top}px`
|
|
3147
3147
|
};
|
|
3148
3148
|
}, 20);
|
|
3149
3149
|
});
|
|
3150
|
-
const p = parseInt(t.item.style[d[t.layout.mode].art_c]),
|
|
3151
|
-
n.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1,
|
|
3152
|
-
}), (p,
|
|
3150
|
+
const p = parseInt(t.item.style[d[t.layout.mode].art_c]), M = t.item.style[d[t.layout.mode].art_e], H = Math.floor(p / M), J = Math.round(H / (t.item.style[d[t.layout.mode].art_d] || 1) - 0.01) * M;
|
|
3151
|
+
n.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, H) - 1 || 0).keys()].map((j) => (j + 1) * J).concat(p / M < 2 ? M : p).filter((j) => j);
|
|
3152
|
+
}), (p, M) => (r(), h("div", {
|
|
3153
3153
|
class: "w-full relative min-h-[10rem]",
|
|
3154
3154
|
ref_key: "view",
|
|
3155
3155
|
ref: i,
|
|
3156
3156
|
"data-viewid": p.item.id
|
|
3157
3157
|
}, [
|
|
3158
|
-
p.item.chunk ?
|
|
3158
|
+
p.item.chunk ? N("", !0) : (r(), h("div", {
|
|
3159
3159
|
key: 0,
|
|
3160
3160
|
class: "flex items-center mt-1 mb-4",
|
|
3161
3161
|
"data-block": L(Ie)
|
|
3162
3162
|
}, [
|
|
3163
3163
|
mt(p.$slots, "default"),
|
|
3164
|
-
k("div",
|
|
3165
|
-
|
|
3164
|
+
k("div", Gn, [
|
|
3165
|
+
ne(it, {
|
|
3166
3166
|
item: p.item,
|
|
3167
3167
|
layout: p.layout
|
|
3168
3168
|
}, null, 8, ["item", "layout"])
|
|
3169
3169
|
])
|
|
3170
3170
|
], 8, Hn)),
|
|
3171
|
-
p.item.artBlock ? (r(), h(
|
|
3172
|
-
p.item.beforeArt && !p.item.startAnswerLen ? (r(),
|
|
3171
|
+
p.item.artBlock ? (r(), h(R, { key: 1 }, [
|
|
3172
|
+
p.item.beforeArt && !p.item.startAnswerLen ? (r(), te(Oe, {
|
|
3173
3173
|
key: 0,
|
|
3174
3174
|
data: p.item.beforeArt,
|
|
3175
3175
|
"data-bart": p.item.id,
|
|
3176
3176
|
class: "indent-[2em]"
|
|
3177
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
3178
|
-
(r(!0), h(
|
|
3177
|
+
}, null, 8, ["data", "data-bart"])) : N("", !0),
|
|
3178
|
+
(r(!0), h(R, null, se(c.value, (H, J) => (r(), h("p", {
|
|
3179
3179
|
ref_for: !0,
|
|
3180
3180
|
ref_key: "line",
|
|
3181
3181
|
ref: a,
|
|
3182
3182
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3183
3183
|
"data-block": L(Ie),
|
|
3184
|
-
"data-size": p.item.startAnswerLen + (
|
|
3185
|
-
style:
|
|
3184
|
+
"data-size": p.item.startAnswerLen + (J + 1) * o.value,
|
|
3185
|
+
style: Z(s.value)
|
|
3186
3186
|
}, [
|
|
3187
|
-
(r(!0), h(
|
|
3188
|
-
class:
|
|
3189
|
-
style:
|
|
3190
|
-
},
|
|
3191
|
-
(r(!0), h(
|
|
3192
|
-
p.item.startAnswerLen +
|
|
3187
|
+
(r(!0), h(R, null, se(o.value, (j, B) => (r(), h("span", {
|
|
3188
|
+
class: le([D.value[J * o.value + B] && "flex items-center justify-center"]),
|
|
3189
|
+
style: Z(m.value)
|
|
3190
|
+
}, oe(D.value[J * o.value + B] || ""), 7))), 256)),
|
|
3191
|
+
(r(!0), h(R, null, se(n.value, (j) => (r(), h(R, null, [
|
|
3192
|
+
p.item.startAnswerLen + J * o.value < j && p.item.startAnswerLen + (J + 1) * o.value >= j ? (r(), h("span", {
|
|
3193
3193
|
key: 0,
|
|
3194
3194
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3195
|
-
style:
|
|
3195
|
+
style: Z({ left: `${(j - p.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3196
3196
|
"data-block": L(Be)
|
|
3197
|
-
},
|
|
3197
|
+
}, oe(j), 13, qn)) : N("", !0)
|
|
3198
3198
|
], 64))), 256))
|
|
3199
|
-
], 12,
|
|
3200
|
-
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(),
|
|
3199
|
+
], 12, Wn))), 256)),
|
|
3200
|
+
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), te(Oe, {
|
|
3201
3201
|
key: 1,
|
|
3202
3202
|
data: p.item.afterArt,
|
|
3203
3203
|
"data-aart": p.item.id,
|
|
3204
3204
|
class: "mt-2 indent-[2em]"
|
|
3205
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
3206
|
-
], 64)) : (r(),
|
|
3205
|
+
}, null, 8, ["data", "data-aart"])) : N("", !0)
|
|
3206
|
+
], 64)) : (r(), te(Oe, {
|
|
3207
3207
|
key: 2,
|
|
3208
3208
|
"data-area": p.item.id,
|
|
3209
3209
|
data: p.item.answerArea
|
|
3210
3210
|
}, null, 8, ["data-area", "data"]))
|
|
3211
3211
|
], 8, Rn));
|
|
3212
3212
|
}
|
|
3213
|
-
}), Yn = ["data-block"], Kn = /* @__PURE__ */
|
|
3213
|
+
}), Yn = ["data-block"], Kn = /* @__PURE__ */ ie({
|
|
3214
3214
|
__name: "index",
|
|
3215
3215
|
props: {
|
|
3216
3216
|
item: {},
|
|
@@ -3222,16 +3222,16 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn =
|
|
|
3222
3222
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
3223
3223
|
"data-block": L(ft)
|
|
3224
3224
|
}, [
|
|
3225
|
-
|
|
3225
|
+
ne(Oe, {
|
|
3226
3226
|
"data-content": o.item.id,
|
|
3227
3227
|
data: o.item.content
|
|
3228
3228
|
}, null, 8, ["data-content", "data"])
|
|
3229
3229
|
], 8, Yn));
|
|
3230
3230
|
}
|
|
3231
|
-
}), Un = ["data-block"], Vn = { key: 0 },
|
|
3231
|
+
}), Un = ["data-block"], Vn = { key: 0 }, Xn = { key: 1 }, Jn = { key: 2 }, Zn = {
|
|
3232
3232
|
key: 3,
|
|
3233
3233
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
3234
|
-
},
|
|
3234
|
+
}, jn = { key: 0 }, es = /* @__PURE__ */ ie({
|
|
3235
3235
|
__name: "index",
|
|
3236
3236
|
props: {
|
|
3237
3237
|
sub: {},
|
|
@@ -3241,31 +3241,31 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn =
|
|
|
3241
3241
|
bracketType: {}
|
|
3242
3242
|
},
|
|
3243
3243
|
setup(e) {
|
|
3244
|
-
const t = e, o =
|
|
3244
|
+
const t = e, o = G(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((n) => n.split(".")).map((n) => t.isFull ? n : n.map((c, y) => y === n.length - 1 ? c : ""))), l = G(() => t.width ? `${Math.max(t.width * 5 / 7, 1)}em` : ""), i = (a) => {
|
|
3245
3245
|
if (!t.bracketType)
|
|
3246
3246
|
return "";
|
|
3247
3247
|
if (a === "prev")
|
|
3248
|
-
return t.bracketType ===
|
|
3248
|
+
return t.bracketType === _.bracket_cn ? "(" : "(";
|
|
3249
3249
|
if (a === "after")
|
|
3250
|
-
return t.bracketType ===
|
|
3250
|
+
return t.bracketType === _.bracket_cn ? ")" : ")";
|
|
3251
3251
|
};
|
|
3252
3252
|
return (a, n) => (r(), h("span", {
|
|
3253
|
-
class:
|
|
3254
|
-
style:
|
|
3253
|
+
class: le(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", a.isFull && "justify-end"]),
|
|
3254
|
+
style: Z({ width: l.value }),
|
|
3255
3255
|
"data-block": L(Be)
|
|
3256
3256
|
}, [
|
|
3257
|
-
(r(!0), h(
|
|
3258
|
-
y ? (r(), h("span", Vn, " - ")) :
|
|
3259
|
-
c[0] ? (r(), h("span",
|
|
3260
|
-
c[1] ? (r(), h("span",
|
|
3261
|
-
c[2] ? (r(), h("span",
|
|
3257
|
+
(r(!0), h(R, null, se(o.value, (c, y) => (r(), h(R, null, [
|
|
3258
|
+
y ? (r(), h("span", Vn, " - ")) : N("", !0),
|
|
3259
|
+
c[0] ? (r(), h("span", Xn, oe(c[0]), 1)) : N("", !0),
|
|
3260
|
+
c[1] ? (r(), h("span", Jn, "(" + oe(c[1]) + ")", 1)) : N("", !0),
|
|
3261
|
+
c[2] ? (r(), h("span", Zn, oe(c[2]), 1)) : N("", !0)
|
|
3262
3262
|
], 64))), 256)),
|
|
3263
|
-
a.score ? (r(), h("span",
|
|
3263
|
+
a.score ? (r(), h("span", jn, oe(i("prev")) + oe(a.score) + "分" + oe(i("after")), 1)) : N("", !0)
|
|
3264
3264
|
], 14, Un));
|
|
3265
3265
|
}
|
|
3266
3266
|
}), ts = {
|
|
3267
3267
|
components: {
|
|
3268
|
-
choice:
|
|
3268
|
+
choice: Gl,
|
|
3269
3269
|
choiceSheet: Ql,
|
|
3270
3270
|
decide: Ul,
|
|
3271
3271
|
decideSheet: ln,
|
|
@@ -3311,74 +3311,84 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn =
|
|
|
3311
3311
|
dbclick: null
|
|
3312
3312
|
},
|
|
3313
3313
|
setup(e, { emit: t }) {
|
|
3314
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Pt), i =
|
|
3315
|
-
const
|
|
3314
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Pt), i = X(""), a = G(() => {
|
|
3315
|
+
const b = o ? {
|
|
3316
3316
|
choiceSheet: [u.choice, u.choice_english, u.choice_multiple, u.cloze],
|
|
3317
3317
|
fillSheet: [u.fill, u.fill_english]
|
|
3318
3318
|
} : {
|
|
3319
3319
|
choice: [u.choice, u.choice_english, u.choice_multiple, u.cloze],
|
|
3320
3320
|
fill: [u.fill, u.fill_english]
|
|
3321
3321
|
};
|
|
3322
|
-
return Object.keys(u).reduce((S, I) => ({ ...S, [u[I]]: Object.keys(
|
|
3323
|
-
}), n =
|
|
3324
|
-
let
|
|
3322
|
+
return Object.keys(u).reduce((S, I) => ({ ...S, [u[I]]: Object.keys(b).find((O) => b[O].includes(u[I])) || `${I}${o}` }), {});
|
|
3323
|
+
}), n = G(() => [Se.one_choice, Se.another_choice].includes(e.data.problemType)), c = G(() => {
|
|
3324
|
+
let b = [];
|
|
3325
3325
|
e.data.children.forEach((I) => {
|
|
3326
|
-
let
|
|
3327
|
-
((I.polymerId || l.includes(e.data.problemType)) && l.includes(I.problemType) || [
|
|
3326
|
+
let O = b[b.length - 1];
|
|
3327
|
+
((I.polymerId || l.includes(e.data.problemType)) && l.includes(I.problemType) || [We.fill, We.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === _.portrait) && I.style ? (!O || O.type !== "polymer" || O.polymerId !== I.polymerId) && (b.push({
|
|
3328
3328
|
type: "polymer",
|
|
3329
3329
|
problemType: I.problemType,
|
|
3330
3330
|
polymerId: I.polymerId,
|
|
3331
3331
|
styleInfo: I.polymerId ? I.style : e.data.style,
|
|
3332
3332
|
children: [],
|
|
3333
3333
|
rawChildren: e.data.rawChildren || []
|
|
3334
|
-
}),
|
|
3334
|
+
}), O = b[b.length - 1]) : (!O || O.type !== "base") && (b.push({
|
|
3335
3335
|
type: "base",
|
|
3336
3336
|
children: []
|
|
3337
|
-
}),
|
|
3337
|
+
}), O = b[b.length - 1]), O.children.push({ ...I, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3338
3338
|
});
|
|
3339
|
-
const S = (I,
|
|
3340
|
-
let
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
};
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3339
|
+
const S = (I, O, ae, U, T) => {
|
|
3340
|
+
let f = Math.min(Math.floor(e.width / (Math.min(...I.children.filter((P) => {
|
|
3341
|
+
var q;
|
|
3342
|
+
return (q = P.optList) == null ? void 0 : q.length;
|
|
3343
|
+
}).map((P) => {
|
|
3344
|
+
var q;
|
|
3345
|
+
return (q = P.optList) == null ? void 0 : q.length;
|
|
3346
|
+
})) * (Le[e.layout.fillSize].value + 9) + U)), O), g = !0, z = [], K = [], E = [];
|
|
3347
|
+
if (T) {
|
|
3348
|
+
for (; g; )
|
|
3349
|
+
z = [...Array(Math.ceil(I.children.length / ae)).keys()].map((P) => I.children.slice(P * ae, (P + 1) * ae)).map((P) => [...Array(Math.ceil(P.length / f)).keys()].map((q) => P.slice(q * f, (q + 1) * f))), E = [...Array(f).keys()].map((P) => Math.max(...z.flat().map((q) => {
|
|
3350
|
+
var _e, fe;
|
|
3351
|
+
return ((fe = (_e = q[P]) == null ? void 0 : _e.optList) == null ? void 0 : fe.length) || 0;
|
|
3352
|
+
}))), g = E.reduce((P, q) => P + q, 0) * (Le[e.layout.fillSize].value + 9) + E.length * U > e.width, g && f--;
|
|
3353
|
+
K = z.map((P) => P.map((q) => q.map((_e) => _e.optList.length))).flat();
|
|
3354
|
+
} else {
|
|
3355
|
+
for (; g; )
|
|
3356
|
+
z = [...Array(Math.ceil(I.children.length / (f * ae))).keys()].map((P) => I.children.slice(P * (f * ae), (P + 1) * (f * ae))).map((P) => [...Array(f).keys()].map((q) => P.slice(q * ae, (q + 1) * ae)).filter((q) => q.length)), z[0].length < f && (f = z[0].length), E = [...Array(f).keys()].map((P) => Math.max(...z.flat().filter((q, _e) => _e % f === P).flat().map((q) => {
|
|
3357
|
+
var _e;
|
|
3358
|
+
return ((_e = q == null ? void 0 : q.optList) == null ? void 0 : _e.length) || 0;
|
|
3359
|
+
}))), g = E.reduce((P, q) => P + q, 0) * (Le[e.layout.fillSize].value + 9) + E.length * U > e.width, g && f--;
|
|
3360
|
+
K = z.map((P) => [...Array(ae).keys()].map((q) => [...Array(f).keys()].map((_e) => {
|
|
3361
|
+
var fe, ke;
|
|
3362
|
+
return (ke = (fe = (P[_e] || [])[q]) == null ? void 0 : fe.optList) == null ? void 0 : ke.length;
|
|
3363
|
+
}))).flat();
|
|
3364
|
+
}
|
|
3365
|
+
z = z.map((P) => P.flat());
|
|
3366
|
+
const W = [...Array(f).keys()].map((P) => Math.max(...K.map((q) => q[P] || 0)));
|
|
3367
|
+
return z.map((P, q) => ({ ...I, groupIndex: q, children: P, col: f, colList: W }));
|
|
3350
3368
|
};
|
|
3351
|
-
return
|
|
3352
|
-
var
|
|
3369
|
+
return b = b.map((I) => {
|
|
3370
|
+
var O;
|
|
3353
3371
|
if (I.type === "polymer") {
|
|
3354
|
-
const
|
|
3355
|
-
if (I.styleInfo[d[e.layout.mode].choice_a] ===
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
} else if (I.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
|
|
3372
|
-
let _ = [], R = 0, q = 0, E = 0, H = 0;
|
|
3373
|
-
return I.children.forEach((K) => {
|
|
3374
|
-
K.optList.length !== R && (q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / q), T), H = ue ? E * 20 : E * I.styleInfo[d[e.layout.mode].choice_e], R = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(He).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= H) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
|
|
3375
|
-
}), _.map((K, se) => ({ ...I, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
|
|
3376
|
-
} else if ([u.fill, u.fill_english].includes(I.problemType) && I.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
|
|
3377
|
-
const _ = Math.floor(I.styleInfo[d[e.layout.mode].fill_f]) * (I.styleInfo[d[e.layout.mode].fill_h] || 10);
|
|
3378
|
-
return [...Array(Math.ceil(I.children.length / _)).keys()].map((R, q) => ({
|
|
3372
|
+
const ae = I.styleInfo[d[e.layout.mode].choice_b] === _.landscape, U = I.styleInfo[d[e.layout.mode].choice_e] || 20, T = e.data.style[d[e.layout.mode].choice_d] || 10, f = (s.value[`h${e.data.id}`] || s.value[I.polymerId] || s.value[((O = e.data.children[0]) == null ? void 0 : O.polymerId) || ""] || 0) * 10 + 10;
|
|
3373
|
+
if (I.styleInfo[d[e.layout.mode].choice_a] === _.choice_1)
|
|
3374
|
+
return S(I, T, U, f, ae);
|
|
3375
|
+
if (I.styleInfo[d[e.layout.mode].choice_a] === _.choice_2) {
|
|
3376
|
+
const g = Math.max(Le[e.layout.fillSize].value + 9, f), z = Math.floor(e.width / (g * I.styleInfo[d[e.layout.mode].choice_c] + 10)), K = z * I.styleInfo[d[e.layout.mode].choice_c];
|
|
3377
|
+
let E = [{ children: [], col: z }];
|
|
3378
|
+
return I.children.forEach((W, P) => {
|
|
3379
|
+
P >= K * E.length && E.push({ children: [], col: z }), E[E.length - 1].children.push(W);
|
|
3380
|
+
}), E.map((W, P) => ({ ...I, groupIndex: P, children: W.children, col: W.col, colList: [] }));
|
|
3381
|
+
} else if (I.styleInfo[d[e.layout.mode].choice_a] === _.choice_3) {
|
|
3382
|
+
let g = [], z = 0, K = 0, E = 0, W = 0;
|
|
3383
|
+
return I.children.forEach((P) => {
|
|
3384
|
+
P.optList.length !== z && (K = P.optList.length * (Le[e.layout.fillSize].value + 9) + f, E = Math.min(Math.floor(e.width / K), T), W = ae ? E * 20 : E * I.styleInfo[d[e.layout.mode].choice_e], z = P.optList.length, g.push({ children: [], col: E, colList: [...Array(E).keys()].map((q) => P.optList.length) })), (!Object.values(He).includes(P.problemType) && !g.length || g[g.length - 1].children.length >= W) && g.push({ children: [], col: E, colList: [...Array(E).keys()].map((q) => P.optList.length) }), g[g.length - 1].children.push(P);
|
|
3385
|
+
}), g.map((P, q) => ({ ...I, groupIndex: q, children: P.children, col: P.col, colList: P.colList }));
|
|
3386
|
+
} else if ([u.fill, u.fill_english].includes(I.problemType) && I.styleInfo[d[e.layout.mode].fill_g] === _.portrait) {
|
|
3387
|
+
const g = Math.floor(I.styleInfo[d[e.layout.mode].fill_f]) * (I.styleInfo[d[e.layout.mode].fill_h] || 10);
|
|
3388
|
+
return [...Array(Math.ceil(I.children.length / g)).keys()].map((z, K) => ({
|
|
3379
3389
|
...I,
|
|
3380
|
-
groupIndex:
|
|
3381
|
-
children: I.children.slice(
|
|
3390
|
+
groupIndex: K,
|
|
3391
|
+
children: I.children.slice(K * g, (K + 1) * g).map((E) => ({
|
|
3382
3392
|
...E,
|
|
3383
3393
|
style: {
|
|
3384
3394
|
...E.style,
|
|
@@ -3391,171 +3401,171 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn =
|
|
|
3391
3401
|
return I;
|
|
3392
3402
|
} else
|
|
3393
3403
|
return I;
|
|
3394
|
-
}).flat(),
|
|
3395
|
-
}), y =
|
|
3396
|
-
let
|
|
3404
|
+
}).flat(), b;
|
|
3405
|
+
}), y = G(() => {
|
|
3406
|
+
let b = {};
|
|
3397
3407
|
return e.data.children.forEach((S) => {
|
|
3398
|
-
S.polymerId && (
|
|
3399
|
-
}),
|
|
3400
|
-
}), s =
|
|
3408
|
+
S.polymerId && (b[S.polymerId] || (b[S.polymerId] = []), b[S.polymerId][S.polymerOrder || 0] = S.id);
|
|
3409
|
+
}), b;
|
|
3410
|
+
}), s = G(() => {
|
|
3401
3411
|
if (l.includes(e.data.problemType)) {
|
|
3402
|
-
const
|
|
3403
|
-
return { [`h${e.data.id}`]: Math.max(...
|
|
3412
|
+
const b = (e.data.rawChildren || e.data.children).map((S) => S.subStr.length);
|
|
3413
|
+
return { [`h${e.data.id}`]: Math.max(...b) };
|
|
3404
3414
|
} else
|
|
3405
|
-
return Object.keys(y.value).map((
|
|
3406
|
-
const S = (e.data.rawChildren || e.data.children).filter((I) => I.polymerId ===
|
|
3415
|
+
return Object.keys(y.value).map((b) => {
|
|
3416
|
+
const S = (e.data.rawChildren || e.data.children).filter((I) => I.polymerId === b).map((I) => I.subStr.length);
|
|
3407
3417
|
return {
|
|
3408
|
-
[
|
|
3418
|
+
[b]: Math.max(...S)
|
|
3409
3419
|
};
|
|
3410
|
-
}).reduce((
|
|
3420
|
+
}).reduce((b, S) => ({ ...b, ...S }), {});
|
|
3411
3421
|
});
|
|
3412
3422
|
return {
|
|
3413
3423
|
Gps_cls: $,
|
|
3414
3424
|
problemLayoutKey: d,
|
|
3415
|
-
problemLayoutVal:
|
|
3425
|
+
problemLayoutVal: _,
|
|
3416
3426
|
hoverActive: i,
|
|
3417
3427
|
ModuleTag: o,
|
|
3418
3428
|
ChoiceType: n,
|
|
3419
3429
|
GroupData: c,
|
|
3420
3430
|
PolymerData: y,
|
|
3421
3431
|
SubWidthInfo: s,
|
|
3422
|
-
ComputName: (
|
|
3423
|
-
ComputAbs: (
|
|
3424
|
-
ComputPolymerCls: (
|
|
3425
|
-
ComputPolymerStyle: (
|
|
3432
|
+
ComputName: (b) => !b.problemType || b.notAreaFlag ? "notArea" : a.value[b.problemType],
|
|
3433
|
+
ComputAbs: (b) => o && [u.slove, u.art].includes(b.problemType),
|
|
3434
|
+
ComputPolymerCls: (b) => [u.decide].includes(b.problemType) ? [] : b.styleInfo[d[e.layout.mode].choice_a] === _.choice_2 ? ["port_view"] : ["grid", b.groupIndex && "mt-6"],
|
|
3435
|
+
ComputPolymerStyle: (b) => {
|
|
3426
3436
|
var I;
|
|
3427
3437
|
let S = {};
|
|
3428
|
-
if ([u.fill, u.fill_english].includes(
|
|
3429
|
-
switch (
|
|
3430
|
-
case
|
|
3438
|
+
if ([u.fill, u.fill_english].includes(b.problemType))
|
|
3439
|
+
switch (b.styleInfo[d[e.layout.mode].fill_g]) {
|
|
3440
|
+
case _.portrait:
|
|
3431
3441
|
S = {
|
|
3432
3442
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
3433
|
-
"grid-template-columns": `repeat(${Math.floor(
|
|
3434
|
-
"grid-template-rows": `repeat(${Math.ceil(
|
|
3443
|
+
"grid-template-columns": `repeat(${Math.floor(b.styleInfo[d[e.layout.mode].fill_f])}, 1fr)`,
|
|
3444
|
+
"grid-template-rows": `repeat(${Math.ceil(b.children.length / Math.floor(b.styleInfo[d[e.layout.mode].fill_f]))}, 1fr)`
|
|
3435
3445
|
};
|
|
3436
3446
|
break;
|
|
3437
3447
|
}
|
|
3438
|
-
else if (Object.values(He).includes(
|
|
3439
|
-
if (
|
|
3448
|
+
else if (Object.values(He).includes(b.problemType)) {
|
|
3449
|
+
if (b.styleInfo[d[e.layout.mode].choice_a] === _.choice_2)
|
|
3440
3450
|
return S;
|
|
3441
|
-
let
|
|
3442
|
-
const
|
|
3443
|
-
switch (
|
|
3444
|
-
case
|
|
3445
|
-
|
|
3451
|
+
let O = [];
|
|
3452
|
+
const ae = b.styleInfo[d[e.layout.mode].choice_b] === _.landscape, U = b.styleInfo[d[e.layout.mode].choice_e] || 20, T = (s.value[`h${e.data.id}`] || s.value[b.polymerId] || s.value[((I = e.data.children[0]) == null ? void 0 : I.polymerId) || ""] || 0) * 10 + 10, f = b.colList.map((g) => g * (Le[e.layout.fillSize].value + 9) + T);
|
|
3453
|
+
switch (b.styleInfo[d[e.layout.mode].choice_f]) {
|
|
3454
|
+
case _.choice_6:
|
|
3455
|
+
O = f.map((g) => `${g}px`);
|
|
3446
3456
|
break;
|
|
3447
|
-
case
|
|
3457
|
+
case _.choice_7:
|
|
3448
3458
|
default:
|
|
3449
|
-
|
|
3459
|
+
O = f.map((g) => `${g / Math.max(...f)}fr`);
|
|
3450
3460
|
}
|
|
3451
|
-
switch (
|
|
3452
|
-
case
|
|
3453
|
-
case
|
|
3454
|
-
|
|
3455
|
-
const
|
|
3456
|
-
|
|
3457
|
-
}), S =
|
|
3458
|
-
"grid-template": `repeat(${Math.ceil(
|
|
3461
|
+
switch (b.styleInfo[d[e.layout.mode].choice_a]) {
|
|
3462
|
+
case _.choice_1:
|
|
3463
|
+
case _.choice_3:
|
|
3464
|
+
ae && !e.noPortrait && [...Array(Math.ceil(b.children.length / U)).keys()].map((z) => b.children.filter((K, E) => E >= z * U && E < (z + 1) * U)).map((z, K) => z.map((E, W) => ({ ...E, _grid_area_: ae ? null : ut[W] + K }))).flat(2).forEach((z) => {
|
|
3465
|
+
const K = b.children.find((E) => E.id === z.id);
|
|
3466
|
+
K._grid_area_ = z._grid_area_;
|
|
3467
|
+
}), S = ae ? {
|
|
3468
|
+
"grid-template": `repeat(${Math.ceil(b.children.length / b.col)}, 1fr) / ${O.join(" ")}`
|
|
3459
3469
|
} : {
|
|
3460
3470
|
"grid-auto-flow": "column",
|
|
3461
|
-
"grid-template": `repeat(${Math.min(
|
|
3471
|
+
"grid-template": `repeat(${Math.min(U, b.children.length)}, 1fr) / ${O.join(" ")}`
|
|
3462
3472
|
};
|
|
3463
3473
|
break;
|
|
3464
3474
|
}
|
|
3465
3475
|
}
|
|
3466
3476
|
return S;
|
|
3467
3477
|
},
|
|
3468
|
-
ComputPolymerItemStyle: (
|
|
3478
|
+
ComputPolymerItemStyle: (b, S) => {
|
|
3469
3479
|
var I;
|
|
3470
|
-
if (
|
|
3480
|
+
if (b._grid_area_)
|
|
3471
3481
|
return {
|
|
3472
|
-
"grid-area":
|
|
3482
|
+
"grid-area": b._grid_area_
|
|
3473
3483
|
};
|
|
3474
|
-
if (Object.values(He).includes(
|
|
3475
|
-
const
|
|
3476
|
-
return !((S + 1) %
|
|
3477
|
-
"min-width": `${
|
|
3478
|
-
"margin-right": `${
|
|
3484
|
+
if (Object.values(He).includes(b.problemType) && b.style[d[e.layout.mode].choice_a] === _.choice_2) {
|
|
3485
|
+
const O = Math.max(Le[e.layout.fillSize].value + 9, (s.value[`h${e.data.id}`] || s.value[b.polymerId] || s.value[(I = b.children[0]) == null ? void 0 : I.polymerId] || 0) * 10 + 10), ae = Math.floor(e.width / (O * b.style[d[e.layout.mode].choice_c] + 10)), U = (e.width - O * ae * b.style[d[e.layout.mode].choice_c]) / (ae - 1 || 1) - 1;
|
|
3486
|
+
return !((S + 1) % b.style[d[e.layout.mode].choice_c]) && ((S + 1) % (b.style[d[e.layout.mode].choice_c] * ae) || ae < 2) ? {
|
|
3487
|
+
"min-width": `${O - 5}px`,
|
|
3488
|
+
"margin-right": `${U}px`
|
|
3479
3489
|
} : {
|
|
3480
|
-
"min-width": `${
|
|
3490
|
+
"min-width": `${O - 5}px`
|
|
3481
3491
|
};
|
|
3482
3492
|
}
|
|
3483
3493
|
return {};
|
|
3484
3494
|
},
|
|
3485
|
-
ComputStyle: (
|
|
3486
|
-
var
|
|
3495
|
+
ComputStyle: (b, S) => {
|
|
3496
|
+
var O;
|
|
3487
3497
|
let I = {};
|
|
3488
3498
|
if (!o)
|
|
3489
3499
|
return I;
|
|
3490
|
-
if (l.includes(
|
|
3491
|
-
let
|
|
3500
|
+
if (l.includes(b.problemType)) {
|
|
3501
|
+
let ae = {};
|
|
3492
3502
|
if (Object.values(He).includes(e.data.problemType)) {
|
|
3493
|
-
const
|
|
3494
|
-
e.data.children.map((
|
|
3495
|
-
|
|
3503
|
+
const U = Math.max(.../*props.data.rawChildren || */
|
|
3504
|
+
e.data.children.map((f) => f.optList.length)) * (Le[e.layout.fillSize].value + 9) + (s.value[`h${e.data.id}`] || s.value[b.polymerId || ""] || s.value[((O = e.data.children[0]) == null ? void 0 : O.polymerId) || ""] || 0) * 10 + 10, T = Math.min(Math.floor(e.width / U), e.data.style[d[e.layout.mode].choice_d] || 10);
|
|
3505
|
+
ae = S % T ? { minWidth: `${U}px`, marginLeft: `${(e.width - U * T) / (T - 1) - 5}px` } : { minWidth: `${U}px` };
|
|
3496
3506
|
}
|
|
3497
3507
|
I = {
|
|
3498
3508
|
...I,
|
|
3499
3509
|
display: "inline-flex",
|
|
3500
|
-
...
|
|
3510
|
+
...ae
|
|
3501
3511
|
};
|
|
3502
3512
|
} else
|
|
3503
|
-
[u.fill, u.fill_english, u.easy_slove].includes(
|
|
3513
|
+
[u.fill, u.fill_english, u.easy_slove].includes(b.problemType) && (I = {
|
|
3504
3514
|
// display: (item.style[problemLayoutKey[props.layout.mode].fill_c] === problemLayoutVal.fill_1 && item.answerLen === 1) ? 'flex' : 'inline-flex',
|
|
3505
3515
|
display: "inline-flex",
|
|
3506
3516
|
alignItems: "flex-end",
|
|
3507
|
-
width: `calc(${100 / ([u.easy_slove].includes(
|
|
3517
|
+
width: `calc(${100 / ([u.easy_slove].includes(b.problemType) ? b.style[d[e.layout.mode].easy_slove_c] : b.style[d[e.layout.mode].fill_d][b.order || 0])}% - 6px)`
|
|
3508
3518
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3509
3519
|
});
|
|
3510
3520
|
return I;
|
|
3511
3521
|
},
|
|
3512
|
-
ComputBlock: (
|
|
3522
|
+
ComputBlock: (b) => {
|
|
3513
3523
|
const S = [...l, u.fill, u.fill_english];
|
|
3514
|
-
if (o && (S.includes(
|
|
3524
|
+
if (o && (S.includes(b.problemType) || typeof b.groupIndex == "number"))
|
|
3515
3525
|
return Ie;
|
|
3516
3526
|
},
|
|
3517
|
-
ComputItemScore: (
|
|
3518
|
-
ComputPayload: (
|
|
3519
|
-
switch (
|
|
3527
|
+
ComputItemScore: (b) => [u.slove, u.easy_slove, u.art].includes(b.problemType) && b.style[d.public.scoreShowFlag] !== _.bracket_none ? [b.score].flat(2).reduce((I, O) => I + O, 0) : null,
|
|
3528
|
+
ComputPayload: (b, S) => {
|
|
3529
|
+
switch (b.problemType) {
|
|
3520
3530
|
case u.slove:
|
|
3521
3531
|
return { isFirst: !S };
|
|
3522
3532
|
default:
|
|
3523
3533
|
return {};
|
|
3524
3534
|
}
|
|
3525
3535
|
},
|
|
3526
|
-
handleHoverIn: (
|
|
3527
|
-
i.value =
|
|
3536
|
+
handleHoverIn: (b) => {
|
|
3537
|
+
i.value = b.rootProblemId;
|
|
3528
3538
|
},
|
|
3529
|
-
handleHoverOut: (
|
|
3539
|
+
handleHoverOut: (b) => {
|
|
3530
3540
|
i.value = "";
|
|
3531
3541
|
},
|
|
3532
|
-
handleClick: (
|
|
3533
|
-
e.data.isPolymer || (
|
|
3542
|
+
handleClick: (b, S) => {
|
|
3543
|
+
e.data.isPolymer || (b.stopPropagation(), t("click", S));
|
|
3534
3544
|
},
|
|
3535
|
-
handleGroupClick: (
|
|
3536
|
-
(Object.values(
|
|
3545
|
+
handleGroupClick: (b, S) => {
|
|
3546
|
+
(Object.values(Se).includes(S.__rootProblemType__) || !e.layout.polymerFlag || [u.mix, u.synthesis].includes(S.problemType)) && (b.stopPropagation(), t("click", S));
|
|
3537
3547
|
},
|
|
3538
|
-
handleDblClick: (
|
|
3539
|
-
e.data.isPolymer || (
|
|
3548
|
+
handleDblClick: (b, S) => {
|
|
3549
|
+
e.data.isPolymer || (b.stopPropagation(), t("dbclick", S));
|
|
3540
3550
|
}
|
|
3541
3551
|
};
|
|
3542
3552
|
}
|
|
3543
3553
|
}, os = ["data-block", "data-polymer"], as = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ls = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ns = { key: 0 };
|
|
3544
3554
|
function ss(e, t, o, l, i, a) {
|
|
3545
3555
|
const n = qt("Sub");
|
|
3546
|
-
return r(!0), h(
|
|
3556
|
+
return r(!0), h(R, null, se(l.GroupData, (c, y) => (r(), h(R, null, [
|
|
3547
3557
|
c.type === "polymer" ? (r(), h("div", {
|
|
3548
3558
|
key: 0,
|
|
3549
3559
|
"data-block": l.ComputBlock(c),
|
|
3550
3560
|
"data-polymer": y,
|
|
3551
|
-
class:
|
|
3552
|
-
style:
|
|
3561
|
+
class: le([...l.ComputPolymerCls(c)]),
|
|
3562
|
+
style: Z(l.ComputPolymerStyle(c))
|
|
3553
3563
|
}, [
|
|
3554
|
-
(r(!0), h(
|
|
3555
|
-
var
|
|
3564
|
+
(r(!0), h(R, null, se(c.children, (s, m) => {
|
|
3565
|
+
var D;
|
|
3556
3566
|
return r(), h("div", {
|
|
3557
|
-
class:
|
|
3558
|
-
style:
|
|
3567
|
+
class: le(["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 === s.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((D = o.target.value) == null ? void 0 : D.rootProblemId) === s.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3568
|
+
style: Z(l.ComputPolymerItemStyle(s, m)),
|
|
3559
3569
|
"data-tag": s.__tag__,
|
|
3560
3570
|
"data-polymer": y,
|
|
3561
3571
|
"data-block": l.ComputBlock(s),
|
|
@@ -3564,22 +3574,22 @@ function ss(e, t, o, l, i, a) {
|
|
|
3564
3574
|
onMouseenter: (p) => l.handleHoverIn(s),
|
|
3565
3575
|
onMouseleave: (p) => l.handleHoverOut(s)
|
|
3566
3576
|
}, [
|
|
3567
|
-
s.problemType ? (r(),
|
|
3577
|
+
s.problemType ? (r(), te(n, {
|
|
3568
3578
|
key: 0,
|
|
3569
3579
|
sub: s.sub,
|
|
3570
3580
|
isFull: !!l.ModuleTag,
|
|
3571
3581
|
width: l.SubWidthInfo[`h${s.headLineId}`] || l.SubWidthInfo[s.polymerId || ""] || 0,
|
|
3572
|
-
class:
|
|
3573
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3574
|
-
(r(),
|
|
3582
|
+
class: le(["sub_item", l.ComputAbs(s) && "absolute left-0 top-3 left_sub"])
|
|
3583
|
+
}, null, 8, ["sub", "isFull", "width", "class"])) : N("", !0),
|
|
3584
|
+
(r(), te(wt(l.ComputName(s)), kt(xt({ item: s, layout: o.layout, ...l.ComputPayload(s, m) })), null, 16))
|
|
3575
3585
|
], 46, as);
|
|
3576
3586
|
}), 256))
|
|
3577
|
-
], 14, os)) : (r(!0), h(
|
|
3578
|
-
var
|
|
3579
|
-
return r(), h(
|
|
3587
|
+
], 14, os)) : (r(!0), h(R, { key: 1 }, se(c.children, (s, m) => {
|
|
3588
|
+
var D;
|
|
3589
|
+
return r(), h(R, null, [
|
|
3580
3590
|
k("div", {
|
|
3581
|
-
class:
|
|
3582
|
-
style:
|
|
3591
|
+
class: le(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === s.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((D = o.target.value) == null ? void 0 : D.rootProblemId) === s.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3592
|
+
style: Z(l.ComputStyle(s, m)),
|
|
3583
3593
|
"data-tag": s.__tag__,
|
|
3584
3594
|
"data-block": l.ComputBlock(s),
|
|
3585
3595
|
"data-xine": l.Gps_cls.item + s._sub,
|
|
@@ -3588,17 +3598,17 @@ function ss(e, t, o, l, i, a) {
|
|
|
3588
3598
|
onMouseenter: (p) => l.handleHoverIn(s),
|
|
3589
3599
|
onMouseleave: (p) => l.handleHoverOut(s)
|
|
3590
3600
|
}, [
|
|
3591
|
-
s.problemType && !l.ComputAbs(s) ? (r(),
|
|
3601
|
+
s.problemType && !l.ComputAbs(s) ? (r(), te(n, {
|
|
3592
3602
|
key: 0,
|
|
3593
3603
|
sub: s.sub,
|
|
3594
3604
|
isFull: !!l.ModuleTag,
|
|
3595
3605
|
width: l.SubWidthInfo[`h${s.headLineId}`] || l.SubWidthInfo[s.polymerId || ""] || 0,
|
|
3596
3606
|
score: l.ComputItemScore(s),
|
|
3597
3607
|
bracketType: s.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3598
|
-
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) :
|
|
3599
|
-
(r(),
|
|
3608
|
+
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : N("", !0),
|
|
3609
|
+
(r(), te(wt(l.ComputName(s)), kt(xt({ item: s, layout: o.layout, ...l.ComputPayload(s, m) })), {
|
|
3600
3610
|
default: Et(() => [
|
|
3601
|
-
s.customSub ?
|
|
3611
|
+
s.customSub ? N("", !0) : (r(), te(n, {
|
|
3602
3612
|
key: 0,
|
|
3603
3613
|
sub: s.sub,
|
|
3604
3614
|
isFull: !!l.ModuleTag,
|
|
@@ -3610,23 +3620,23 @@ function ss(e, t, o, l, i, a) {
|
|
|
3610
3620
|
_: 2
|
|
3611
3621
|
}, 1040))
|
|
3612
3622
|
], 46, ls),
|
|
3613
|
-
s.polymerId && l.PolymerData[s.polymerId][l.PolymerData[s.polymerId].length - 1] === s.id || s.style && s.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && s.order === s.answerLen - 1 ? (r(), h("div", ns)) :
|
|
3623
|
+
s.polymerId && l.PolymerData[s.polymerId][l.PolymerData[s.polymerId].length - 1] === s.id || s.style && s.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && s.order === s.answerLen - 1 ? (r(), h("div", ns)) : N("", !0)
|
|
3614
3624
|
], 64);
|
|
3615
3625
|
}), 256))
|
|
3616
3626
|
], 64))), 256);
|
|
3617
3627
|
}
|
|
3618
|
-
const
|
|
3628
|
+
const Xe = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
3619
3629
|
const i = (e.length > 1 ? [e[0], e[e.length - 1]] : e).map((c) => c.split(".")).map((c) => `${c[0] ? `<span>${c[0]}</span>` : ""}${c[1] ? `<span> - </span><span>${c[1]}</span>` : ""}${c[2] ? `<span> - </span><span class="flex items-center justify-center w-8 h-8 border rounded-full scale-75">${c[2]}</span>` : ""}`).filter((c) => c).join(""), a = (c) => {
|
|
3620
3630
|
if (!o)
|
|
3621
3631
|
return "";
|
|
3622
3632
|
if (c === "prev")
|
|
3623
|
-
return o ===
|
|
3633
|
+
return o === _.bracket_cn ? "(" : "(";
|
|
3624
3634
|
if (c === "after")
|
|
3625
|
-
return o ===
|
|
3635
|
+
return o === _.bracket_cn ? ")" : ")";
|
|
3626
3636
|
}, n = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
|
|
3627
3637
|
return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${n}</span>` : "";
|
|
3628
|
-
}, Pe = 200 / 96, Rt = 4, rs = 10,
|
|
3629
|
-
const l =
|
|
3638
|
+
}, Pe = 200 / 96, Rt = 4, rs = 10, Y = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), cs = (e, t, o) => {
|
|
3639
|
+
const l = Y(he(`${$.item}${e._sub}`, t));
|
|
3630
3640
|
return !(l.top >= o.top + o.height || l.top + l.height < o.top);
|
|
3631
3641
|
}, pe = (e, t, o = !1) => !e || !t ? null : {
|
|
3632
3642
|
x: e.x - t.x,
|
|
@@ -3641,14 +3651,14 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3641
3651
|
width: 0,
|
|
3642
3652
|
height: 0
|
|
3643
3653
|
};
|
|
3644
|
-
const a =
|
|
3654
|
+
const a = Y(e), n = Math.min(t.height, a.y < t.y ? a.y + a.height - t.y : a.y + a.height > t.y + t.height || i ? t.y + t.height - a.y : a.height);
|
|
3645
3655
|
return n > 5 ? {
|
|
3646
3656
|
x: a.x - o.x,
|
|
3647
3657
|
y: Math.max(a.y, t.y) + (l ? 1 : 0) - o.y,
|
|
3648
3658
|
width: a.width,
|
|
3649
3659
|
height: n - (l ? 2 : 0)
|
|
3650
3660
|
} : null;
|
|
3651
|
-
},
|
|
3661
|
+
}, de = (e, t = !1) => {
|
|
3652
3662
|
if (!e)
|
|
3653
3663
|
return null;
|
|
3654
3664
|
const o = t ? Rt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -3664,24 +3674,24 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3664
3674
|
return null;
|
|
3665
3675
|
const l = {
|
|
3666
3676
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3667
|
-
area: pe(
|
|
3668
|
-
list: Me($.en_num_group, o).map((i) => Me($.en_num_item, i).map((a) => pe(
|
|
3677
|
+
area: pe(Y(o), Y(e.pageDom[0])),
|
|
3678
|
+
list: Me($.en_num_group, o).map((i) => Me($.en_num_item, i).map((a) => pe(Y(a), Y(e.pageDom[0]), !0)))
|
|
3669
3679
|
};
|
|
3670
3680
|
return e.bindWidth ? {
|
|
3671
3681
|
choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
|
|
3672
3682
|
yRowOffset: Math.round((l.list[0][0].y - l.list[0][1].y - l.list[0][1].height) * Pe),
|
|
3673
|
-
firstChoicePosition:
|
|
3683
|
+
firstChoicePosition: de(l.list[0][9]),
|
|
3674
3684
|
crosswised: !1,
|
|
3675
|
-
choiceQuestionPosition:
|
|
3685
|
+
choiceQuestionPosition: de(l.area),
|
|
3676
3686
|
choiceQuestionCount: l.list.length,
|
|
3677
3687
|
xColOffset: Math.round((l.list[1][0].x - l.list[0][0].x - l.list[0][0].width) * Pe),
|
|
3678
3688
|
questionNOList: [...Array(l.list.length).keys()].map((i, a) => a + 1)
|
|
3679
3689
|
} : {
|
|
3680
3690
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3681
3691
|
yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) * Pe),
|
|
3682
|
-
firstChoicePosition:
|
|
3692
|
+
firstChoicePosition: de(l.list[0][0]),
|
|
3683
3693
|
crosswised: !0,
|
|
3684
|
-
choiceQuestionPosition:
|
|
3694
|
+
choiceQuestionPosition: de(l.area),
|
|
3685
3695
|
choiceQuestionCount: l.list.length,
|
|
3686
3696
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Pe),
|
|
3687
3697
|
questionNOList: [...Array(l.list.length).keys()].map((i, a) => a + 1)
|
|
@@ -3694,32 +3704,32 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3694
3704
|
paperWidth: Math.round(x[e.layout.paper].width * Pe),
|
|
3695
3705
|
paperHeight: Math.round(x[e.layout.paper].height * Pe)
|
|
3696
3706
|
}), us = (e) => {
|
|
3697
|
-
const t =
|
|
3707
|
+
const t = Y(e.pageDom[0]), o = Y(e.pageDom[1]), l = (a, n) => {
|
|
3698
3708
|
var y;
|
|
3699
3709
|
const c = n > 2 || tt.includes(e.layout.paper) ? {
|
|
3700
|
-
trdLeftTopPos:
|
|
3701
|
-
trdLeftBottomPos:
|
|
3710
|
+
trdLeftTopPos: de(pe(Y(Me(`${$.point}t`, e.pageDom[a])[1]), Y(e.pageDom[a]))),
|
|
3711
|
+
trdLeftBottomPos: de(pe(Y(Me(`${$.point}b`, e.pageDom[a])[1]), Y(e.pageDom[a])))
|
|
3702
3712
|
} : {};
|
|
3703
3713
|
return (y = qe.find((s) => s.code === e.layout.paper)) != null && y.isMultCol ? {
|
|
3704
|
-
secLeftTopPos:
|
|
3705
|
-
secLeftBottomPos:
|
|
3714
|
+
secLeftTopPos: de(pe(Y(Me(`${$.point}t`, e.pageDom[a])[0]), Y(e.pageDom[a]))),
|
|
3715
|
+
secLeftBottomPos: de(pe(Y(Me(`${$.point}b`, e.pageDom[a])[0]), Y(e.pageDom[a]))),
|
|
3706
3716
|
...c
|
|
3707
3717
|
} : null;
|
|
3708
3718
|
}, i = [
|
|
3709
|
-
|
|
3710
|
-
|
|
3719
|
+
de(pe(Y(he(`${$.point}l`, e.pageDom[0])), t)),
|
|
3720
|
+
de(pe(Y(he(`${$.point}r`, e.pageDom[0])), t))
|
|
3711
3721
|
];
|
|
3712
3722
|
return {
|
|
3713
3723
|
// 取第一/二页定位点信息
|
|
3714
|
-
leftTopPos:
|
|
3715
|
-
rightTopPos:
|
|
3716
|
-
leftBottomPos:
|
|
3717
|
-
rightBottomPos:
|
|
3724
|
+
leftTopPos: de(pe(Y(he(`${$.point}lt`, e.pageDom[0])), t)),
|
|
3725
|
+
rightTopPos: de(pe(Y(he(`${$.point}rt`, e.pageDom[0])), t)),
|
|
3726
|
+
leftBottomPos: de(pe(Y(he(`${$.point}lb`, e.pageDom[0])), t)),
|
|
3727
|
+
rightBottomPos: de(pe(Y(he(`${$.point}rb`, e.pageDom[0])), t)),
|
|
3718
3728
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3719
3729
|
verticalAuxInfo: i,
|
|
3720
3730
|
verticalAuxInfo2: e.pageDom[1] ? e.bindWidth ? [
|
|
3721
|
-
|
|
3722
|
-
|
|
3731
|
+
de(pe(Y(he(`${$.point}l`, e.pageDom[1])), o)),
|
|
3732
|
+
de(pe(Y(he(`${$.point}r`, e.pageDom[1])), o))
|
|
3723
3733
|
] : i : null,
|
|
3724
3734
|
auxAnchorInfo: l(0, e.layout.column),
|
|
3725
3735
|
auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
|
|
@@ -3730,7 +3740,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3730
3740
|
const l = he(`${$.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3731
3741
|
t = he(`${$.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
|
|
3732
3742
|
}
|
|
3733
|
-
let o = pe(
|
|
3743
|
+
let o = pe(Y(he($.page, e.pageDom[e.pageTotal - 1])), Y(e.pageDom[e.pageTotal - 1]));
|
|
3734
3744
|
return o = { ...o, y: o.y % (x[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3735
3745
|
{
|
|
3736
3746
|
// 固定值
|
|
@@ -3738,9 +3748,9 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3738
3748
|
// 固定值
|
|
3739
3749
|
questionNOList: [1],
|
|
3740
3750
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3741
|
-
choiceQuestionPosition:
|
|
3751
|
+
choiceQuestionPosition: de(o, !0),
|
|
3742
3752
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3743
|
-
firstChoicePosition:
|
|
3753
|
+
firstChoicePosition: de(pe(Y(he(`${$.page_item}0`, e.pageDom[e.pageTotal - 1])), Y(e.pageDom[e.pageTotal - 1]))),
|
|
3744
3754
|
// 页码点最大值,展开为数组
|
|
3745
3755
|
choiceGridSequenceNOList: _t.filter((l, i) => i < e.pageTotal),
|
|
3746
3756
|
// 排列方向
|
|
@@ -3759,9 +3769,9 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3759
3769
|
// 固定值
|
|
3760
3770
|
questionNOList: [1],
|
|
3761
3771
|
// 方框业务坐标
|
|
3762
|
-
choiceQuestionPosition:
|
|
3772
|
+
choiceQuestionPosition: de(pe(Y(t), Y(e.pageDom[0])), !0),
|
|
3763
3773
|
// 数据坐标
|
|
3764
|
-
firstChoicePosition:
|
|
3774
|
+
firstChoicePosition: de(pe(Y(t), Y(e.pageDom[0]))),
|
|
3765
3775
|
// 固定值
|
|
3766
3776
|
choiceGridSequenceNOList: [
|
|
3767
3777
|
"true"
|
|
@@ -3775,11 +3785,11 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3775
3785
|
const t = he($.en_code, e.pageDom[0]);
|
|
3776
3786
|
if (!t)
|
|
3777
3787
|
return null;
|
|
3778
|
-
let o = pe(
|
|
3788
|
+
let o = pe(Y(t), Y(e.pageDom[0]));
|
|
3779
3789
|
return {
|
|
3780
3790
|
// 条形码虚线框位置, x, y, width, height
|
|
3781
3791
|
// encodePictureArea: ComputPoint(GetPosition(GetEl(GpsKey.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
3782
|
-
encodePictureArea:
|
|
3792
|
+
encodePictureArea: de(o),
|
|
3783
3793
|
// ComputPoint(GetPosition(GetEl(GpsKey.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
3784
3794
|
// 固定值
|
|
3785
3795
|
qrCodePosition: null,
|
|
@@ -3794,9 +3804,9 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3794
3804
|
return {
|
|
3795
3805
|
id: "0",
|
|
3796
3806
|
problemType: u.slove,
|
|
3797
|
-
position: pe(
|
|
3807
|
+
position: pe(Y(t), Y(e.pageDom[0])),
|
|
3798
3808
|
scoreList: o.map((l, i) => ({
|
|
3799
|
-
position: pe(
|
|
3809
|
+
position: pe(Y(o[i]), Y(e.pageDom[0])),
|
|
3800
3810
|
itemPosition: {
|
|
3801
3811
|
width: o[i].offsetWidth
|
|
3802
3812
|
},
|
|
@@ -3872,80 +3882,80 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3872
3882
|
return [...Array(e.pageDom.length).keys()].map((i) => {
|
|
3873
3883
|
var c, y, s, m;
|
|
3874
3884
|
const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), n = ((m = (s = t[t.length - 1]) == null ? void 0 : s.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : m.children) || [];
|
|
3875
|
-
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((
|
|
3876
|
-
const
|
|
3877
|
-
const
|
|
3878
|
-
return
|
|
3885
|
+
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((D, p) => a + p < t.length).map((D, p) => {
|
|
3886
|
+
const M = e.pageDom[i], H = Y(M), J = e.colDom[a + p], j = Y(J), B = e.colViewDom[a + p], w = Y(B), Q = t[a + p].data.map((C) => C.children).flat(), re = t[a + p].data.filter((C) => [Se.one_choice, Se.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
|
|
3887
|
+
const V = he(`${$.choice}${C.id}`, J);
|
|
3888
|
+
return V ? {
|
|
3879
3889
|
id: `${++o}`,
|
|
3880
3890
|
baseIndex: parseInt(C.rawChildren[0]._sub),
|
|
3881
|
-
position: pe(
|
|
3891
|
+
position: pe(Y(V), H),
|
|
3882
3892
|
problemType: C.problemType,
|
|
3883
3893
|
isOneChoice: !0,
|
|
3884
|
-
optList: Me($.fill,
|
|
3885
|
-
id: `${o}.${
|
|
3886
|
-
position: pe(
|
|
3887
|
-
})).filter((
|
|
3894
|
+
optList: Me($.fill, V).map((ue, b) => ({
|
|
3895
|
+
id: `${o}.${b + 1}`,
|
|
3896
|
+
position: pe(Y(ue), H)
|
|
3897
|
+
})).filter((ue) => ue.position)
|
|
3888
3898
|
} : {};
|
|
3889
3899
|
}).filter((C) => C.position);
|
|
3890
|
-
return
|
|
3900
|
+
return Q.filter((C) => C.problemType && cs(C, J, j)).map((C, V) => {
|
|
3891
3901
|
var S;
|
|
3892
|
-
let
|
|
3902
|
+
let ue = {};
|
|
3893
3903
|
l[C._sub] ? l[C._sub] += 1 : l[C._sub] = 1;
|
|
3894
|
-
const
|
|
3904
|
+
const b = he(`${$.item}${C._sub}`, J);
|
|
3895
3905
|
switch (C.problemType) {
|
|
3896
3906
|
case u.choice:
|
|
3897
3907
|
case u.choice_english:
|
|
3898
3908
|
case u.choice_multiple:
|
|
3899
3909
|
case u.cloze:
|
|
3900
|
-
|
|
3910
|
+
ue = {
|
|
3901
3911
|
score: C.score,
|
|
3902
|
-
isColumn: C.style[d[e.layout.mode].choice_a] !==
|
|
3903
|
-
optList: C.optList.map((
|
|
3912
|
+
isColumn: C.style[d[e.layout.mode].choice_a] !== _.choice_2,
|
|
3913
|
+
optList: C.optList.map((U, T) => ({
|
|
3904
3914
|
id: `${C._sub}.${T + 1}`,
|
|
3905
|
-
position: Ne(he(`${$.fill}${T}`,
|
|
3906
|
-
})).filter((
|
|
3915
|
+
position: Ne(he(`${$.fill}${T}`, b), w, H)
|
|
3916
|
+
})).filter((U) => U.position)
|
|
3907
3917
|
};
|
|
3908
3918
|
break;
|
|
3909
3919
|
case u.decide:
|
|
3910
|
-
|
|
3911
|
-
optList: [0, 1].map((
|
|
3920
|
+
ue = {
|
|
3921
|
+
optList: [0, 1].map((U, T) => ({
|
|
3912
3922
|
id: `${C._sub}.${T + 1}`,
|
|
3913
|
-
position: Ne(he(`${$.fill}${T}`,
|
|
3914
|
-
})).filter((
|
|
3923
|
+
position: Ne(he(`${$.fill}${T}`, b), w, H)
|
|
3924
|
+
})).filter((U) => U.position)
|
|
3915
3925
|
};
|
|
3916
3926
|
break;
|
|
3917
3927
|
case u.fill:
|
|
3918
3928
|
case u.fill_english:
|
|
3919
|
-
const I = Me($.fill,
|
|
3920
|
-
|
|
3921
|
-
children: [C.score].flat().map((
|
|
3922
|
-
id:
|
|
3923
|
-
score:
|
|
3929
|
+
const I = Me($.fill, b), O = Me($.fill_line, b);
|
|
3930
|
+
ue = {
|
|
3931
|
+
children: [C.score].flat().map((U, T, f) => ({
|
|
3932
|
+
id: f.length > 1 ? `${C._sub}.${T + 1}` : C._sub,
|
|
3933
|
+
score: U,
|
|
3924
3934
|
problemType: C.problemType,
|
|
3925
3935
|
isHiddenContent: !C.style[d[e.layout.mode].fill_b],
|
|
3926
|
-
position: Ne(
|
|
3927
|
-
scorePosition: Ne(I[T], w,
|
|
3928
|
-
answerPosition: Ne(
|
|
3929
|
-
})).filter((
|
|
3936
|
+
position: Ne(b, w, H),
|
|
3937
|
+
scorePosition: Ne(I[T], w, H),
|
|
3938
|
+
answerPosition: Ne(O[T], w, H)
|
|
3939
|
+
})).filter((U) => U.position)
|
|
3930
3940
|
};
|
|
3931
3941
|
break;
|
|
3932
3942
|
case u.slove:
|
|
3933
3943
|
case u.easy_slove:
|
|
3934
3944
|
case u.art:
|
|
3935
|
-
const
|
|
3936
|
-
|
|
3937
|
-
scoreList:
|
|
3938
|
-
if (!
|
|
3945
|
+
const ae = he($.score, b);
|
|
3946
|
+
ue = {
|
|
3947
|
+
scoreList: ae ? [he($.score_tenbit, ae), he($.score_base, ae), he($.score_half, ae)].map((U) => {
|
|
3948
|
+
if (!U)
|
|
3939
3949
|
return {};
|
|
3940
|
-
const T = Me($.score_item,
|
|
3950
|
+
const T = Me($.score_item, U);
|
|
3941
3951
|
return {
|
|
3942
|
-
position: Ne(
|
|
3952
|
+
position: Ne(U, w, H, !0),
|
|
3943
3953
|
itemPosition: {
|
|
3944
3954
|
width: T[0].getBoundingClientRect().width
|
|
3945
3955
|
},
|
|
3946
|
-
score: T.map((
|
|
3956
|
+
score: T.map((f) => Math.abs(parseFloat(f.innerText)))
|
|
3947
3957
|
};
|
|
3948
|
-
}).filter((
|
|
3958
|
+
}).filter((U) => U.position) : null
|
|
3949
3959
|
};
|
|
3950
3960
|
}
|
|
3951
3961
|
return {
|
|
@@ -3955,10 +3965,10 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3955
3965
|
problemType: C.problemType,
|
|
3956
3966
|
_rootProblemType: C._rootProblemType,
|
|
3957
3967
|
_parentProblemType: C._parentProblemType,
|
|
3958
|
-
position: Ne(
|
|
3959
|
-
...
|
|
3968
|
+
position: Ne(b, w, H, !1, C.id === Q[Q.length - 1].id && C.id !== ((S = n[n.length - 1]) == null ? void 0 : S.id) && [u.slove].includes(C.problemType)),
|
|
3969
|
+
...ue
|
|
3960
3970
|
};
|
|
3961
|
-
}).concat(
|
|
3971
|
+
}).concat(re).filter((C) => C.position);
|
|
3962
3972
|
});
|
|
3963
3973
|
}).map((i) => i.flat());
|
|
3964
3974
|
}, bs = (e) => {
|
|
@@ -3968,7 +3978,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3968
3978
|
_parentProblemType: rt[e._parentProblemType]
|
|
3969
3979
|
}, {
|
|
3970
3980
|
// 块位置
|
|
3971
|
-
sectionPosition:
|
|
3981
|
+
sectionPosition: de(a.position, !0),
|
|
3972
3982
|
// 块ID,前端生成,同一道题同一个ID
|
|
3973
3983
|
sectionID: a.id,
|
|
3974
3984
|
// 块内序号ID,按切块自增
|
|
@@ -3995,7 +4005,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3995
4005
|
// 单个选项的信息数组
|
|
3996
4006
|
choiceUnitSectionList: e.optList.map((a, n) => ({
|
|
3997
4007
|
...o(a, !0),
|
|
3998
|
-
choicePosition:
|
|
4008
|
+
choicePosition: de(a.position),
|
|
3999
4009
|
choiceResult: [u.decide].includes(e.problemType) ? bo[n] : _t[n]
|
|
4000
4010
|
}))
|
|
4001
4011
|
}]
|
|
@@ -4011,10 +4021,10 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4011
4021
|
// 每个小题的切图块
|
|
4012
4022
|
singleBlankSectionList: (e.children || [e]).map((a) => ({
|
|
4013
4023
|
...o(a, !0),
|
|
4014
|
-
answerPosition:
|
|
4024
|
+
answerPosition: de(a.answerPosition, !0),
|
|
4015
4025
|
correctFrame: a.scorePosition && a.scorePosition.width && a.scorePosition.height ? [{
|
|
4016
|
-
correctSectionPosition:
|
|
4017
|
-
firstBlockPostion:
|
|
4026
|
+
correctSectionPosition: de(a.scorePosition, !0),
|
|
4027
|
+
firstBlockPostion: de(a.scorePosition),
|
|
4018
4028
|
gridScoresList: [a.score].flat(),
|
|
4019
4029
|
lineMeanGetScore: !1,
|
|
4020
4030
|
weight: 1
|
|
@@ -4036,8 +4046,8 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4036
4046
|
...o(e, !0),
|
|
4037
4047
|
answerPosition: null,
|
|
4038
4048
|
correctFrame: (e.scoreList || []).map((a) => ({
|
|
4039
|
-
correctSectionPosition:
|
|
4040
|
-
firstBlockPostion:
|
|
4049
|
+
correctSectionPosition: de(a.position, !0),
|
|
4050
|
+
firstBlockPostion: de({ ...a.position, ...a.itemPosition }),
|
|
4041
4051
|
gridScoresList: [a.score].flat(),
|
|
4042
4052
|
lineMeanGetScore: !0,
|
|
4043
4053
|
weight: 1
|
|
@@ -4049,8 +4059,8 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4049
4059
|
case u.synthesis:
|
|
4050
4060
|
case u.mix:
|
|
4051
4061
|
break;
|
|
4052
|
-
case
|
|
4053
|
-
case
|
|
4062
|
+
case Se.one_choice:
|
|
4063
|
+
case Se.another_choice:
|
|
4054
4064
|
l = {
|
|
4055
4065
|
choiceQuestionPartialSectionList: [{
|
|
4056
4066
|
...o(e),
|
|
@@ -4063,7 +4073,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4063
4073
|
// 单个选项的信息数组
|
|
4064
4074
|
choiceUnitSectionList: e.optList.map((a, n) => ({
|
|
4065
4075
|
...o(a),
|
|
4066
|
-
choicePosition:
|
|
4076
|
+
choicePosition: de(a.position),
|
|
4067
4077
|
choiceResult: (e.baseIndex + n).toString()
|
|
4068
4078
|
}))
|
|
4069
4079
|
}]
|
|
@@ -4099,42 +4109,42 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4099
4109
|
}).flat()
|
|
4100
4110
|
})), i = (n, c) => ([n.sectionID].flat(2)[0] || "").split(".").filter((y, s) => s < c).join("."), a = l.map((n) => {
|
|
4101
4111
|
let c = [], y = [], s = [];
|
|
4102
|
-
return n.cardCuttingSectionList.forEach((m,
|
|
4103
|
-
const
|
|
4104
|
-
let
|
|
4105
|
-
if (s.find((
|
|
4112
|
+
return n.cardCuttingSectionList.forEach((m, D, p) => {
|
|
4113
|
+
const M = i(m, 1);
|
|
4114
|
+
let H = !1, J = !1;
|
|
4115
|
+
if (s.find((B) => i(B, 1) === M && B.secitonSeqID === m.secitonSeqID) && !(m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(m), H = D < p.length - 1, J = !0), H)
|
|
4106
4116
|
return;
|
|
4107
|
-
let
|
|
4108
|
-
if ((m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(m),
|
|
4117
|
+
let j = !1;
|
|
4118
|
+
if ((m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(m), j = !0), s.length) {
|
|
4109
4119
|
if (s.length === 1)
|
|
4110
4120
|
c.push(s[0]);
|
|
4111
4121
|
else {
|
|
4112
|
-
const
|
|
4122
|
+
const B = s.map((C) => C.subjectiveQuestionSectionList || []).flat(), w = s.map((C) => C.choiceQuestionPartialSectionList || []).flat(), Q = w.length ? { choiceQuestionPartialSectionList: w } : {}, re = B.length ? { subjectiveQuestionSectionList: B } : {};
|
|
4113
4123
|
c.push({
|
|
4114
4124
|
...s[0],
|
|
4115
4125
|
// cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
|
|
4116
|
-
...
|
|
4117
|
-
...
|
|
4126
|
+
...Q,
|
|
4127
|
+
...re
|
|
4118
4128
|
});
|
|
4119
4129
|
}
|
|
4120
4130
|
s = [];
|
|
4121
4131
|
}
|
|
4122
|
-
|
|
4132
|
+
j || J || s.push(m);
|
|
4123
4133
|
}), c = [...c, ...s].map((m) => ({ ...m, cuttingSectionQuestionType: o[m.sectionID]._rootProblemType || m.cuttingSectionQuestionType, sectionID: i(m, 1) })), { ...n, cardCuttingSectionList: [...c, ...y] };
|
|
4124
4134
|
}).map((n) => {
|
|
4125
4135
|
const c = n.cardCuttingSectionList.map((y) => {
|
|
4126
|
-
var
|
|
4136
|
+
var M;
|
|
4127
4137
|
let s = [], m = [];
|
|
4128
|
-
const
|
|
4129
|
-
(
|
|
4130
|
-
const
|
|
4131
|
-
let w = !1,
|
|
4132
|
-
if (m.find((
|
|
4138
|
+
const D = Math.max(...(y.subjectiveQuestionSectionList || []).map((H) => H.sectionID.split(".").length - 1), 1);
|
|
4139
|
+
(M = y.subjectiveQuestionSectionList) == null || M.forEach((H, J, j) => {
|
|
4140
|
+
const B = i(H, D);
|
|
4141
|
+
let w = !1, Q = !1;
|
|
4142
|
+
if (m.find((re) => i(re, D) === B && re.secitonSeqID === H.secitonSeqID) && (m.push(H), w = J < j.length - 1, Q = !0), !w) {
|
|
4133
4143
|
if (m.length) {
|
|
4134
4144
|
if (m.length === 1)
|
|
4135
4145
|
s.push(m[0]);
|
|
4136
4146
|
else {
|
|
4137
|
-
const
|
|
4147
|
+
const re = m.map((V) => V.singleBlankSectionList || []).flat(), C = re.length ? { singleBlankSectionList: re, unitCount: re.length } : {};
|
|
4138
4148
|
s.push({
|
|
4139
4149
|
...m[0],
|
|
4140
4150
|
// cuttingSectionQuestionType: typeResult[subjectTmp[0].sectionID]._parentProblemType || subjectTmp[0].cuttingSectionQuestionType,
|
|
@@ -4143,11 +4153,11 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4143
4153
|
}
|
|
4144
4154
|
m = [];
|
|
4145
4155
|
}
|
|
4146
|
-
|
|
4156
|
+
Q || m.push(H);
|
|
4147
4157
|
}
|
|
4148
4158
|
});
|
|
4149
|
-
const p = Math.max(...[...s, ...m].map((
|
|
4150
|
-
return s = [...s, ...m].map((
|
|
4159
|
+
const p = Math.max(...[...s, ...m].map((H) => H.sectionID.split(".").length));
|
|
4160
|
+
return s = [...s, ...m].map((H) => ({ ...H, cuttingSectionQuestionType: o[H.sectionID]._parentProblemType || H.cuttingSectionQuestionType, sectionID: i(H, Math.max(p - 1, 1)) })), s.length ? {
|
|
4151
4161
|
...y,
|
|
4152
4162
|
subjectiveQuestionSectionList: s
|
|
4153
4163
|
} : y;
|
|
@@ -4157,7 +4167,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4157
4167
|
return o = {}, a;
|
|
4158
4168
|
}, ws = (e, t) => {
|
|
4159
4169
|
var l;
|
|
4160
|
-
const o =
|
|
4170
|
+
const o = Y(e.pageDom[0]);
|
|
4161
4171
|
return {
|
|
4162
4172
|
// 正文code
|
|
4163
4173
|
cardID: e.textCode,
|
|
@@ -4174,8 +4184,8 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4174
4184
|
// 试卷二维码
|
|
4175
4185
|
cardSerialNumber: {
|
|
4176
4186
|
// 条形码虚线框位置, x, y, width, height
|
|
4177
|
-
encodePictureArea:
|
|
4178
|
-
qrCodePosition:
|
|
4187
|
+
encodePictureArea: de(pe(Y(he($.art_code, e.pageDom[0])), o), !0),
|
|
4188
|
+
qrCodePosition: de(pe(Y(he($.art_code, e.pageDom[0])), o)),
|
|
4179
4189
|
// 条形码或二维码,不确定,固定此值
|
|
4180
4190
|
pictureType: "TYPE_QRCODE"
|
|
4181
4191
|
},
|
|
@@ -4197,7 +4207,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4197
4207
|
layerType: ds(e),
|
|
4198
4208
|
// 定位点信息
|
|
4199
4209
|
...us(e),
|
|
4200
|
-
pottedLineXPos: e.bindWidth ? (l =
|
|
4210
|
+
pottedLineXPos: e.bindWidth ? (l = de(pe(Y(he($.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4201
4211
|
// 页码点信息
|
|
4202
4212
|
pageSideAnchorsList: hs(e),
|
|
4203
4213
|
// 缺考标记
|
|
@@ -4219,7 +4229,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4219
4229
|
}, xs = { class: "layt-moni_view" }, Cs = { class: "layt-moni_content" }, Ss = { class: "layt-moni_icon" }, Ts = { class: "layt-moni_msg" }, Is = {
|
|
4220
4230
|
key: 0,
|
|
4221
4231
|
class: "layt-moni_err_view"
|
|
4222
|
-
}, $s = { class: "layt-moni_err_item_msg" }, Ls = ["onClick"], Fs = /* @__PURE__ */
|
|
4232
|
+
}, $s = { class: "layt-moni_err_item_msg" }, Ls = ["onClick"], Fs = /* @__PURE__ */ ie({
|
|
4223
4233
|
__name: "index",
|
|
4224
4234
|
props: {
|
|
4225
4235
|
ColList: {},
|
|
@@ -4229,19 +4239,19 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4229
4239
|
},
|
|
4230
4240
|
emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
|
|
4231
4241
|
setup(e, { emit: t }) {
|
|
4232
|
-
const o = e, l =
|
|
4242
|
+
const o = e, l = X([]);
|
|
4233
4243
|
De(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
4234
4244
|
l.value = [], setTimeout(() => {
|
|
4235
4245
|
var s;
|
|
4236
|
-
o.ColList.forEach((m,
|
|
4246
|
+
o.ColList.forEach((m, D) => {
|
|
4237
4247
|
m.data.map((p) => p.children).flat().filter((p) => [u.slove, u.art, u.easy_slove].includes(p.problemType) && !p.chunk).forEach((p) => {
|
|
4238
|
-
var
|
|
4239
|
-
const
|
|
4240
|
-
if (!
|
|
4248
|
+
var j;
|
|
4249
|
+
const M = (j = o.ColDom[D].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : j.querySelector(`*[data-xine="${$.score}"]`);
|
|
4250
|
+
if (!M)
|
|
4241
4251
|
return;
|
|
4242
|
-
|
|
4243
|
-
const
|
|
4244
|
-
|
|
4252
|
+
M.classList.remove("err_lack");
|
|
4253
|
+
const H = window.getComputedStyle(M), J = [...Array.from(M.children)].map((B) => B.offsetWidth).reduce((B, w) => B + w, 0);
|
|
4254
|
+
M.offsetWidth - parseFloat(H.borderLeft) - parseFloat(H.borderRight) < J && (l.value.push({ msg: `${p.subStr}题打分条超长` }), M.classList.add("err_lack"), M.title = "打分条超长,请调整排版或使用自编打分条");
|
|
4245
4255
|
});
|
|
4246
4256
|
});
|
|
4247
4257
|
const n = (s = document.querySelector(".__layout__")) == null ? void 0 : s.getBoundingClientRect();
|
|
@@ -4265,32 +4275,32 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
4265
4275
|
return (n, c) => (r(), h("div", xs, [
|
|
4266
4276
|
k("div", Cs, [
|
|
4267
4277
|
k("div", {
|
|
4268
|
-
class:
|
|
4278
|
+
class: le(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4269
4279
|
}, null, 2),
|
|
4270
4280
|
k("div", {
|
|
4271
|
-
class:
|
|
4281
|
+
class: le(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4272
4282
|
}, [
|
|
4273
4283
|
k("span", Ss, [
|
|
4274
|
-
|
|
4284
|
+
ne(we, {
|
|
4275
4285
|
width: 1.6,
|
|
4276
4286
|
name: l.value.length ? "wrong" : "right"
|
|
4277
4287
|
}, null, 8, ["name"])
|
|
4278
4288
|
]),
|
|
4279
|
-
k("span", Ts, "排版" +
|
|
4289
|
+
k("span", Ts, "排版" + oe(l.value.length ? "异常" : "良好"), 1)
|
|
4280
4290
|
], 2),
|
|
4281
4291
|
l.value.length ? (r(), h("ul", Is, [
|
|
4282
|
-
(r(!0), h(
|
|
4292
|
+
(r(!0), h(R, null, se(l.value, (y, s) => (r(), h("li", {
|
|
4283
4293
|
key: s,
|
|
4284
4294
|
class: "layt-moni_err_item"
|
|
4285
4295
|
}, [
|
|
4286
|
-
k("span", $s,
|
|
4296
|
+
k("span", $s, oe(y.msg), 1),
|
|
4287
4297
|
y.fn ? (r(), h("span", {
|
|
4288
4298
|
key: 0,
|
|
4289
4299
|
class: "layt-moni_err_item_fn",
|
|
4290
4300
|
onClick: y.fn
|
|
4291
|
-
},
|
|
4301
|
+
}, oe(y.btnTxt || "删除"), 9, Ls)) : N("", !0)
|
|
4292
4302
|
]))), 128))
|
|
4293
|
-
])) :
|
|
4303
|
+
])) : N("", !0)
|
|
4294
4304
|
])
|
|
4295
4305
|
]));
|
|
4296
4306
|
}
|
|
@@ -4322,40 +4332,40 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
|
|
|
4322
4332
|
return a || (a = at(e), ye(a).top + a.offsetHeight - t > o && (a = pt(a, t, o))), a;
|
|
4323
4333
|
}, Ft = (e, t, o, l) => {
|
|
4324
4334
|
const i = (n, c = o) => {
|
|
4325
|
-
var
|
|
4335
|
+
var J, j, B;
|
|
4326
4336
|
const y = n.map((w) => {
|
|
4327
|
-
const
|
|
4337
|
+
const Q = ye(w);
|
|
4328
4338
|
return {
|
|
4329
4339
|
el: w,
|
|
4330
|
-
top:
|
|
4331
|
-
left:
|
|
4340
|
+
top: Q.top - t,
|
|
4341
|
+
left: Q.left
|
|
4332
4342
|
};
|
|
4333
|
-
}), s = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w,
|
|
4343
|
+
}), s = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, Q) => w.top - Q.top), m = (J = s.shift()) == null ? void 0 : J.el;
|
|
4334
4344
|
if (!m) {
|
|
4335
4345
|
const w = ye(n[0].parentElement);
|
|
4336
4346
|
if (w.top + w.height - t - 10 < c)
|
|
4337
4347
|
return n[0].parentElement;
|
|
4338
|
-
const
|
|
4339
|
-
return (
|
|
4348
|
+
const Q = document.createElement("div");
|
|
4349
|
+
return (j = n[0].parentElement) == null || j.appendChild(Q), Q.style.height = c - (ye(Q).top - t) + "px", Q;
|
|
4340
4350
|
}
|
|
4341
|
-
const
|
|
4342
|
-
if (s.filter((w) => w.top < p + m.offsetHeight && w.top + w.el.offsetHeight - 1 > p && (w.left + w.el.offsetWidth - 1 <
|
|
4343
|
-
const w = (
|
|
4351
|
+
const D = ye(m), p = D.top - t, M = D.left;
|
|
4352
|
+
if (s.filter((w) => w.top < p + m.offsetHeight && w.top + w.el.offsetHeight - 1 > p && (w.left + w.el.offsetWidth - 1 < M || w.left + 1 > M + m.offsetWidth)).length) {
|
|
4353
|
+
const w = (B = y.filter((Q) => Q.top < p).pop()) == null ? void 0 : B.el;
|
|
4344
4354
|
if (w != null && w.children.length) {
|
|
4345
|
-
const
|
|
4346
|
-
return i(
|
|
4355
|
+
const Q = ht(w);
|
|
4356
|
+
return i(Q, p) || w;
|
|
4347
4357
|
} else
|
|
4348
4358
|
return w ? ye(w).top - t + w.offsetHeight > p ? Lt(w, t, p) : w : pt(m.parentElement, t, p);
|
|
4349
4359
|
} else {
|
|
4350
4360
|
const w = getComputedStyle(m);
|
|
4351
4361
|
if (p + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
|
|
4352
4362
|
return pt(m, t, p);
|
|
4353
|
-
const
|
|
4354
|
-
if (
|
|
4355
|
-
return at(
|
|
4363
|
+
const Q = Ms(m, c - p, c, l);
|
|
4364
|
+
if (Q)
|
|
4365
|
+
return at(Q);
|
|
4356
4366
|
if (m.children.length) {
|
|
4357
|
-
const
|
|
4358
|
-
return i(
|
|
4367
|
+
const re = ht(m);
|
|
4368
|
+
return i(re, c);
|
|
4359
4369
|
} else
|
|
4360
4370
|
return Lt(m, t, c);
|
|
4361
4371
|
}
|
|
@@ -4370,142 +4380,142 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
|
|
|
4370
4380
|
console.time("layout");
|
|
4371
4381
|
const c = ye(t).top;
|
|
4372
4382
|
let y = {}, s = 0, m = 0;
|
|
4373
|
-
const
|
|
4374
|
-
const
|
|
4383
|
+
const D = (w) => {
|
|
4384
|
+
const Q = w % (l + i), re = Math.floor(w / (l + i)) * 2 + (Q >= l ? 1 : 0), C = a(w, re);
|
|
4375
4385
|
y = {
|
|
4376
4386
|
top: c,
|
|
4377
4387
|
width: parseFloat(C.width),
|
|
4378
4388
|
height: parseFloat(C.height)
|
|
4379
4389
|
};
|
|
4380
4390
|
};
|
|
4381
|
-
let p = [],
|
|
4382
|
-
const
|
|
4383
|
-
|
|
4391
|
+
let p = [], M = 0;
|
|
4392
|
+
const H = () => {
|
|
4393
|
+
D(p.length), t.style.width = `${y.width}px`, p.push({
|
|
4384
4394
|
top: 0,
|
|
4385
4395
|
data: [],
|
|
4386
4396
|
width: y.width,
|
|
4387
4397
|
height: y.height
|
|
4388
4398
|
}), n([...p]);
|
|
4389
4399
|
};
|
|
4390
|
-
|
|
4391
|
-
const
|
|
4392
|
-
const
|
|
4393
|
-
return ye(w).top - y.top + parseFloat(
|
|
4394
|
-
},
|
|
4395
|
-
const
|
|
4396
|
-
return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === Ie ? 0 : parseFloat(
|
|
4397
|
-
},
|
|
4398
|
-
if (
|
|
4400
|
+
H();
|
|
4401
|
+
const J = (w) => {
|
|
4402
|
+
const Q = getComputedStyle(w);
|
|
4403
|
+
return ye(w).top - y.top + parseFloat(Q.borderTop) + parseFloat(Q.paddingTop) + parseFloat(Q.lineHeight) > p[p.length - 1].height;
|
|
4404
|
+
}, j = (w) => {
|
|
4405
|
+
const Q = getComputedStyle(w);
|
|
4406
|
+
return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === Ie ? 0 : parseFloat(Q.paddingBottom) - parseFloat(Q.borderBottom)) <= p[p.length - 1].height;
|
|
4407
|
+
}, B = (w = JSON.parse(JSON.stringify(o[M] || {}))) => {
|
|
4408
|
+
if (M >= o.length || !Object.keys(w).length) {
|
|
4399
4409
|
n([...p], !0), console.timeEnd("layout"), p = [], s = 0;
|
|
4400
4410
|
return;
|
|
4401
4411
|
}
|
|
4402
4412
|
p[p.length - 1].data.push({ ...w }), n([...p]), window.requestAnimationFrame(() => {
|
|
4403
|
-
const
|
|
4413
|
+
const Q = ct(w.__tag__, t), re = !w.isHidden && ye(Q);
|
|
4404
4414
|
let C = null;
|
|
4405
4415
|
if (m) {
|
|
4406
|
-
const
|
|
4407
|
-
p[p.length - 1].top = y.top -
|
|
4416
|
+
const V = Q.querySelector(`*[data-hutkey="${m}"]`), ue = ye(V);
|
|
4417
|
+
p[p.length - 1].top = y.top - ue.top, p[p.length - 1].height = y.height - p[p.length - 1].top, m = 0;
|
|
4408
4418
|
}
|
|
4409
|
-
if (
|
|
4419
|
+
if (re && re.height + re.top - y.top > p[p.length - 1].height)
|
|
4410
4420
|
if (w.problemType)
|
|
4411
|
-
p[p.length - 1].data.pop(),
|
|
4412
|
-
else if (
|
|
4413
|
-
|
|
4414
|
-
else if (
|
|
4415
|
-
p[p.length - 1].data.pop(),
|
|
4421
|
+
p[p.length - 1].data.pop(), H(), B({ ...w });
|
|
4422
|
+
else if (j(Q))
|
|
4423
|
+
H(), M++, B();
|
|
4424
|
+
else if (J(Q))
|
|
4425
|
+
p[p.length - 1].data.pop(), H(), B({ ...w });
|
|
4416
4426
|
else {
|
|
4417
|
-
C = Ft(
|
|
4418
|
-
const
|
|
4419
|
-
p[p.length - 1].height = ye(C.cut).top - y.top,
|
|
4427
|
+
C = Ft(Q, y.top, p[p.length - 1].height, p.length % (l + i) >= l), console.log(C);
|
|
4428
|
+
const V = Q.querySelector(`*[data-content="${w.id}"]`);
|
|
4429
|
+
p[p.length - 1].height = ye(C.cut).top - y.top, H(), V != null && V.contains(C.cut) ? (m = Date.now(), C.cut.dataset.hutkey = m, B({ ...w, content: V.innerHTML })) : (p[p.length - 1].data.pop(), B({ ...w }));
|
|
4420
4430
|
}
|
|
4421
4431
|
else {
|
|
4422
|
-
let
|
|
4432
|
+
let V = [], ue = [], b = !1;
|
|
4423
4433
|
if (w.children.some((S, I) => {
|
|
4424
|
-
var
|
|
4425
|
-
const
|
|
4434
|
+
var U, T;
|
|
4435
|
+
const O = ct(S.__tag__, t), ae = ye(O);
|
|
4426
4436
|
if (s) {
|
|
4427
|
-
const
|
|
4428
|
-
p[p.length - 1].top = y.top -
|
|
4437
|
+
const f = O.querySelector(`*[data-cutkey="${s}"]`), g = ye(f);
|
|
4438
|
+
p[p.length - 1].top = y.top - g.top, p[p.length - 1].height = y.height - p[p.length - 1].top, s = 0;
|
|
4429
4439
|
}
|
|
4430
|
-
if (
|
|
4431
|
-
if ((
|
|
4432
|
-
parseInt((T =
|
|
4433
|
-
var
|
|
4434
|
-
return ct(
|
|
4435
|
-
}),
|
|
4436
|
-
else if (
|
|
4437
|
-
|
|
4438
|
-
else if (
|
|
4439
|
-
|
|
4440
|
+
if (ae.height + ae.top - y.top > p[p.length - 1].height) {
|
|
4441
|
+
if ((U = O.parentElement) != null && U.dataset.polymer)
|
|
4442
|
+
parseInt((T = O.parentElement) == null ? void 0 : T.dataset.polymer) ? (V = V.filter((f) => {
|
|
4443
|
+
var g;
|
|
4444
|
+
return ct(f.__tag__, t).dataset.polymer !== ((g = O.parentElement) == null ? void 0 : g.dataset.polymer);
|
|
4445
|
+
}), ue = w.children.slice(V.length)) : (p[p.length - 1].data.pop(), V = [], b = !0, H(), B({ ...w }));
|
|
4446
|
+
else if (j(O))
|
|
4447
|
+
V.push(S), ue = I < w.children.length - 1 ? w.children.slice(I + 1) : [];
|
|
4448
|
+
else if (J(O))
|
|
4449
|
+
ue = w.children.slice(I);
|
|
4440
4450
|
else {
|
|
4441
|
-
C = Ft(
|
|
4442
|
-
const
|
|
4443
|
-
if (
|
|
4444
|
-
|
|
4445
|
-
else if (
|
|
4446
|
-
s = Date.now(), C.cut.dataset.cutkey = s, S.content =
|
|
4451
|
+
C = Ft(O, y.top, p[p.length - 1].height, p.length % (l + i) >= l);
|
|
4452
|
+
const f = O.querySelector(`*[data-content="${S.id}"]`);
|
|
4453
|
+
if (O === C.targetEl)
|
|
4454
|
+
V.push(S), ue = I < w.children.length - 1 ? w.children.slice(I + 1) : [];
|
|
4455
|
+
else if (f && f.contains(C.cut))
|
|
4456
|
+
s = Date.now(), C.cut.dataset.cutkey = s, S.content = f.innerHTML, V.push(S), ue = [{ ...S, content: f.innerHTML }, ...I < w.children.length - 1 ? w.children.slice(I + 1) : []], p[p.length - 1].height = ye(C.cut).top - y.top;
|
|
4447
4457
|
else {
|
|
4448
|
-
if (!
|
|
4449
|
-
let
|
|
4458
|
+
if (!ue.length) {
|
|
4459
|
+
let g = { ...S };
|
|
4450
4460
|
switch (S.problemType) {
|
|
4451
|
-
case
|
|
4452
|
-
const
|
|
4453
|
-
|
|
4461
|
+
case We.slove:
|
|
4462
|
+
const z = O.querySelector(`*[data-area="${S.id}"]`);
|
|
4463
|
+
z != null && z.contains(C.cut) && (s = Date.now(), C.cut.dataset.cutkey = s, S.answerArea = z.innerHTML), O.contains(C.targetEl) && (S.chunk += 1);
|
|
4454
4464
|
break;
|
|
4455
|
-
case
|
|
4465
|
+
case We.art:
|
|
4456
4466
|
if (S.artEditor) {
|
|
4457
|
-
const
|
|
4458
|
-
|
|
4467
|
+
const K = O.querySelector(`*[data-area="${S.id}"]`);
|
|
4468
|
+
K != null && K.contains(C.cut) && (s = Date.now(), C.cut.dataset.cutkey = s, S.answerArea = K.innerHTML), O.contains(C.targetEl) && (S.chunk += 1);
|
|
4459
4469
|
break;
|
|
4460
4470
|
} else {
|
|
4461
|
-
const
|
|
4462
|
-
if (
|
|
4463
|
-
s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt =
|
|
4471
|
+
const K = O.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === Ie && C.targetEl.dataset.size ? C.targetEl : null, W = O.querySelector(`*[data-aart="${S.id}"]`);
|
|
4472
|
+
if (K != null && K.contains(C.cut))
|
|
4473
|
+
s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt = K == null ? void 0 : K.innerHTML, g.beforeGuide = "", g.afterArt = "", g.endAnswerLen = -1;
|
|
4464
4474
|
else if (E) {
|
|
4465
|
-
const
|
|
4475
|
+
const P = parseInt(E.dataset.size);
|
|
4466
4476
|
if (!S.artBlock)
|
|
4467
|
-
if (S.beforeGuide && S.beforeGuide.length + (S.startAnswerLen ? 0 : 2) - S.startAnswerLen >
|
|
4468
|
-
const
|
|
4469
|
-
if (
|
|
4470
|
-
|
|
4471
|
-
const
|
|
4472
|
-
|
|
4477
|
+
if (S.beforeGuide && S.beforeGuide.length + (S.startAnswerLen ? 0 : 2) - S.startAnswerLen > P) {
|
|
4478
|
+
const q = O.querySelector(`*[data-guide="${S.id}"]`), _e = ye(q);
|
|
4479
|
+
if (_e.height + _e.top - y.top > y.height) {
|
|
4480
|
+
q.innerHTML = S.beforeGuide.split("").map((v) => `<span>${v}</span>`).join("");
|
|
4481
|
+
const fe = ye(E).top + E.offsetHeight, ke = [...Array.from(q.children)].findIndex((v) => ye(v).top > fe);
|
|
4482
|
+
g.beforeGuide = S.beforeGuide.substring(0, ke), S.beforeGuide = S.beforeGuide.substring(ke);
|
|
4473
4483
|
} else
|
|
4474
4484
|
S.beforeGuide = "";
|
|
4475
4485
|
} else
|
|
4476
4486
|
S.beforeGuide = "";
|
|
4477
|
-
|
|
4487
|
+
g.endAnswerLen = P, S.startAnswerLen = P;
|
|
4478
4488
|
} else
|
|
4479
|
-
|
|
4480
|
-
|
|
4489
|
+
W != null && W.contains(C.cut) ? (s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = W.innerHTML) : C.targetEl === K ? (g.endAnswerLen = -1, g.beforeGuide = "", g.afterArt = "", S.beforeArt = "") : (K == null ? void 0 : K.previousElementSibling) === C.cut && (g.endAnswerLen = -1, g.beforeArt = "", g.beforeGuide = "", g.afterArt = "");
|
|
4490
|
+
O.contains(C.targetEl) && (S.chunk += 1);
|
|
4481
4491
|
break;
|
|
4482
4492
|
}
|
|
4483
4493
|
}
|
|
4484
|
-
|
|
4494
|
+
O.contains(C.targetEl) && V.push(g), s && (p[p.length - 1].height = ye(C.cut).top - y.top);
|
|
4485
4495
|
}
|
|
4486
|
-
|
|
4496
|
+
ue = [S, ...I < w.children.length - 1 ? w.children.slice(I + 1) : []];
|
|
4487
4497
|
}
|
|
4488
4498
|
}
|
|
4489
4499
|
return !0;
|
|
4490
4500
|
} else
|
|
4491
|
-
|
|
4492
|
-
}),
|
|
4501
|
+
V.push(S);
|
|
4502
|
+
}), b)
|
|
4493
4503
|
return;
|
|
4494
|
-
p[p.length - 1].data[p[p.length - 1].data.length - 1].children =
|
|
4504
|
+
p[p.length - 1].data[p[p.length - 1].data.length - 1].children = V, ue.length ? (H(), B({ ...w, isHidden: !0, children: ue })) : (n([...p]), M++, B());
|
|
4495
4505
|
}
|
|
4496
4506
|
});
|
|
4497
4507
|
};
|
|
4498
|
-
|
|
4499
|
-
},
|
|
4500
|
-
|
|
4508
|
+
B();
|
|
4509
|
+
}, Gt = window.CKEDITOR;
|
|
4510
|
+
Gt.disableAutoInline = !0;
|
|
4501
4511
|
const bt = `dx${Math.random().toString(32).substring(2)}`;
|
|
4502
4512
|
function Ds(e, t) {
|
|
4503
|
-
return
|
|
4513
|
+
return Gt[e](bt, {
|
|
4504
4514
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
4505
4515
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
4506
4516
|
});
|
|
4507
4517
|
}
|
|
4508
|
-
const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Ns = ["disabled", "contentEditable", "id"], Os = /* @__PURE__ */
|
|
4518
|
+
const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Ns = ["disabled", "contentEditable", "id"], Os = /* @__PURE__ */ ie({
|
|
4509
4519
|
__name: "index",
|
|
4510
4520
|
props: {
|
|
4511
4521
|
value: {},
|
|
@@ -4514,7 +4524,7 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4514
4524
|
},
|
|
4515
4525
|
emits: ["change", "focus", "blur"],
|
|
4516
4526
|
setup(e, { emit: t }) {
|
|
4517
|
-
const o = e, l = Qt("ckeditorOrigin", ""), i =
|
|
4527
|
+
const o = e, l = Qt("ckeditorOrigin", ""), i = X();
|
|
4518
4528
|
De(() => o.readonly, () => a()), Ue(() => a());
|
|
4519
4529
|
const a = () => {
|
|
4520
4530
|
if (window.CKEDITOR) {
|
|
@@ -4542,24 +4552,24 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4542
4552
|
}, y = (s) => {
|
|
4543
4553
|
const m = document.createElement("div");
|
|
4544
4554
|
m.innerHTML = s, [...Array.from(m.querySelectorAll("*"))].forEach((p) => {
|
|
4545
|
-
const
|
|
4546
|
-
(
|
|
4555
|
+
const M = window.getComputedStyle(p);
|
|
4556
|
+
(M.display === "none" || M.width === "0px" && M.height === "0px" || M.opacity === "0" || M.visibility === "hidden") && p.remove();
|
|
4547
4557
|
});
|
|
4548
|
-
const
|
|
4549
|
-
[...Array.from(p.childNodes)].forEach((
|
|
4550
|
-
var
|
|
4551
|
-
if (
|
|
4552
|
-
|
|
4553
|
-
else if (
|
|
4554
|
-
const
|
|
4555
|
-
|
|
4558
|
+
const D = (p = m) => {
|
|
4559
|
+
[...Array.from(p.childNodes)].forEach((M) => {
|
|
4560
|
+
var H;
|
|
4561
|
+
if (M.nodeType === Node.ELEMENT_NODE && M.children.length)
|
|
4562
|
+
D(M);
|
|
4563
|
+
else if (M.nodeType === Node.TEXT_NODE) {
|
|
4564
|
+
const J = document.createElement("span");
|
|
4565
|
+
J.textContent = M.textContent, window.REGULAR.underscore.test(M.textContent || "") && (window.getComputedStyle(M.parentNode).wordBreak !== "break-all" || !(M.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (M.textContent || "").length > 5 && (J.innerHTML = (M.textContent || "").replace(window.REGULAR.underscore, (B) => B.length > 5 ? `<span style="word-break: break-all">${B}</span>` : B)), (H = M.parentElement) == null || H.replaceChild(J, M);
|
|
4556
4566
|
}
|
|
4557
4567
|
});
|
|
4558
4568
|
};
|
|
4559
|
-
return
|
|
4569
|
+
return D(), m.innerHTML;
|
|
4560
4570
|
};
|
|
4561
4571
|
return (s, m) => (r(), h("div", Bs, [
|
|
4562
|
-
o.readonly ? (r(),
|
|
4572
|
+
o.readonly ? (r(), te(Oe, {
|
|
4563
4573
|
key: 1,
|
|
4564
4574
|
data: o.value,
|
|
4565
4575
|
class: "raw_view"
|
|
@@ -4579,21 +4589,21 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4579
4589
|
mounted: (e, t) => {
|
|
4580
4590
|
let o = null, l = null, i = {}, a = !1, n = e.offsetParent, c = {}, y = {}, s = {};
|
|
4581
4591
|
const m = e.querySelector(".move-target") || e;
|
|
4582
|
-
m.style.cursor = "move", m.addEventListener("mousedown", (
|
|
4592
|
+
m.style.cursor = "move", m.addEventListener("mousedown", (D) => {
|
|
4583
4593
|
a = !!e.dataset.safe, n = e.offsetParent;
|
|
4584
4594
|
const p = window.getComputedStyle(e);
|
|
4585
|
-
i = { x:
|
|
4595
|
+
i = { x: D.clientX, y: D.clientY }, c = { x: parseInt(p.left), y: parseInt(p.top) }, document.addEventListener("mousemove", o), document.addEventListener("mouseup", l), document.addEventListener("mouseleave", l);
|
|
4586
4596
|
}), l = () => {
|
|
4587
4597
|
t.value && typeof t.value == "function" && t.value(s), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", l), document.removeEventListener("mouseleave", l);
|
|
4588
|
-
}, o = (
|
|
4598
|
+
}, o = (D) => {
|
|
4589
4599
|
if (e.getAttribute("disabled") === "true")
|
|
4590
4600
|
return;
|
|
4591
|
-
|
|
4592
|
-
const p = a ? Math.min(Math.max(y.x - i.x + c.x, 0), n.offsetWidth - e.offsetWidth) : y.x - i.x + c.x,
|
|
4593
|
-
e.style.left = `${p}px`, e.style.top = `${
|
|
4601
|
+
D.stopPropagation(), D.preventDefault(), y = { x: D.clientX, y: D.clientY };
|
|
4602
|
+
const p = a ? Math.min(Math.max(y.x - i.x + c.x, 0), n.offsetWidth - e.offsetWidth) : y.x - i.x + c.x, M = a ? Math.min(Math.max(y.y - i.y + c.y, 0), n.offsetHeight - e.offsetHeight) : y.y - i.y + c.y;
|
|
4603
|
+
e.style.left = `${p}px`, e.style.top = `${M}px`, s = { x: p, y: M };
|
|
4594
4604
|
};
|
|
4595
4605
|
}
|
|
4596
|
-
}, Hs = ["onMousedown", "data-block"],
|
|
4606
|
+
}, Hs = ["onMousedown", "data-block"], Gs = ["src"], Ws = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, qs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Qs = ["onMousedown"], Ys = ["onMousedown"], Ks = ["disabled", "onMousedown", "data-block"], Us = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Vs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Xs = ["onMousedown"], Js = /* @__PURE__ */ ie({
|
|
4597
4607
|
__name: "absItem",
|
|
4598
4608
|
props: {
|
|
4599
4609
|
imgData: {},
|
|
@@ -4614,314 +4624,314 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
|
4614
4624
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4615
4625
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4616
4626
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4617
|
-
], a =
|
|
4618
|
-
|
|
4619
|
-
const m =
|
|
4627
|
+
], a = X({}), n = X(), c = X(0), y = X(0), s = X();
|
|
4628
|
+
X();
|
|
4629
|
+
const m = X({}), D = X(!1), p = X(), M = X(), H = X(), J = G(() => o.imgData.map((T) => ({
|
|
4620
4630
|
...T,
|
|
4621
4631
|
top: T.top - Math.floor(T.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4622
|
-
}))),
|
|
4632
|
+
}))), j = G(() => o.txtData.map((T) => ({
|
|
4623
4633
|
...T,
|
|
4624
4634
|
top: T.top - Math.floor(T.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4625
|
-
}))),
|
|
4635
|
+
}))), B = G(() => p.value ? p.value.split("-")[0] === "img" ? J.value.find((f) => f.key === p.value) : j.value.find((f) => f.key === p.value) : null), w = G(() => B.value ? { [B.value.key]: { ...n.value } } : {});
|
|
4626
4636
|
De(() => o.activeAbsItem, () => {
|
|
4627
|
-
o.activeAbsItem &&
|
|
4637
|
+
o.activeAbsItem && U({ ...o.activeAbsItem });
|
|
4628
4638
|
}), De(() => o.target, () => {
|
|
4629
|
-
|
|
4639
|
+
U(null);
|
|
4630
4640
|
}), Ue(() => {
|
|
4631
4641
|
s.value = document.body.querySelector(".__layout__");
|
|
4632
4642
|
});
|
|
4633
|
-
const
|
|
4634
|
-
var
|
|
4635
|
-
n.value = { ...
|
|
4636
|
-
},
|
|
4637
|
-
|
|
4643
|
+
const Q = (T) => {
|
|
4644
|
+
var f;
|
|
4645
|
+
n.value = { ...B.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }, (f = B.value) != null && f.key && (B.value.key.split("-")[0] === "img" ? t("changeAbsImgItem", { ...B.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }) : t("changeAbsTxtItem", { ...B.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }));
|
|
4646
|
+
}, re = (T) => {
|
|
4647
|
+
D.value = T;
|
|
4638
4648
|
}, C = () => {
|
|
4639
|
-
const T =
|
|
4640
|
-
m.value = { x:
|
|
4641
|
-
},
|
|
4649
|
+
const T = B.value, f = T.left + T.width / 2, g = T.top + T.height / 2, z = s.value.getBoundingClientRect() || {};
|
|
4650
|
+
m.value = { x: f + z.left, y: g + z.top }, s.value.addEventListener("mousemove", V), s.value.addEventListener("mouseleave", ue), s.value.addEventListener("mouseup", ue);
|
|
4651
|
+
}, V = (T) => {
|
|
4642
4652
|
T.stopPropagation(), T.preventDefault();
|
|
4643
|
-
const
|
|
4644
|
-
n.value = { ...
|
|
4645
|
-
},
|
|
4646
|
-
T.stopPropagation(), T.preventDefault(), t("changeAbsImgItem", n.value), s.value.removeEventListener("mousemove",
|
|
4647
|
-
},
|
|
4648
|
-
var
|
|
4649
|
-
T.stopPropagation(), c.value =
|
|
4653
|
+
const f = T.clientX - m.value.x, g = m.value.y - T.clientY, z = Math.atan2(g, f) / (Math.PI / 180);
|
|
4654
|
+
n.value = { ...B.value, rotate: -parseInt(z.toString()) };
|
|
4655
|
+
}, ue = (T) => {
|
|
4656
|
+
T.stopPropagation(), T.preventDefault(), t("changeAbsImgItem", n.value), s.value.removeEventListener("mousemove", V), s.value.removeEventListener("mouseleave", ue), s.value.removeEventListener("mouseup", ue);
|
|
4657
|
+
}, b = (T, f) => {
|
|
4658
|
+
var g;
|
|
4659
|
+
T.stopPropagation(), c.value = f, a.value = { x: T.clientX, y: T.clientY, ...B.value }, ((g = B.value) == null ? void 0 : g.key.split("-")[0]) === "img" ? s.value.addEventListener("mousemove", S) : s.value.addEventListener("mousemove", I), s.value.addEventListener("mouseleave", O), s.value.addEventListener("mouseup", O);
|
|
4650
4660
|
}, S = (T) => {
|
|
4651
|
-
const
|
|
4661
|
+
const f = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, g = { ...B.value }, z = f.x > f.y ? "width" : "height";
|
|
4652
4662
|
[
|
|
4653
4663
|
// 0
|
|
4654
4664
|
() => {
|
|
4655
4665
|
const E = {
|
|
4656
|
-
width: a.value.width -
|
|
4657
|
-
height: a.value.width * (1 -
|
|
4658
|
-
}[
|
|
4659
|
-
width: a.value.height * (1 -
|
|
4660
|
-
height: a.value.height -
|
|
4661
|
-
}[
|
|
4666
|
+
width: a.value.width - f.x,
|
|
4667
|
+
height: a.value.width * (1 - f.y / a.value.height)
|
|
4668
|
+
}[z], W = {
|
|
4669
|
+
width: a.value.height * (1 - f.x / a.value.width),
|
|
4670
|
+
height: a.value.height - f.y
|
|
4671
|
+
}[z];
|
|
4662
4672
|
n.value = {
|
|
4663
|
-
...
|
|
4673
|
+
...g,
|
|
4664
4674
|
width: E,
|
|
4665
|
-
height:
|
|
4675
|
+
height: W,
|
|
4666
4676
|
left: a.value.left - (E - a.value.width),
|
|
4667
|
-
top: a.value.top - (
|
|
4677
|
+
top: a.value.top - (W - a.value.height)
|
|
4668
4678
|
};
|
|
4669
4679
|
},
|
|
4670
4680
|
// 1
|
|
4671
4681
|
() => {
|
|
4672
|
-
const E = a.value.width * (1 -
|
|
4682
|
+
const E = a.value.width * (1 - f.y / a.value.height), W = a.value.height - f.y;
|
|
4673
4683
|
n.value = {
|
|
4674
|
-
...
|
|
4684
|
+
...g,
|
|
4675
4685
|
width: E,
|
|
4676
|
-
height:
|
|
4686
|
+
height: W,
|
|
4677
4687
|
left: a.value.left - (E - a.value.width) / 2,
|
|
4678
|
-
top: a.value.top - (
|
|
4688
|
+
top: a.value.top - (W - a.value.height)
|
|
4679
4689
|
};
|
|
4680
4690
|
},
|
|
4681
4691
|
// 2
|
|
4682
4692
|
() => {
|
|
4683
4693
|
const E = {
|
|
4684
|
-
width: a.value.height * (1 +
|
|
4685
|
-
height: a.value.height -
|
|
4686
|
-
}[
|
|
4694
|
+
width: a.value.height * (1 + f.x / a.value.width),
|
|
4695
|
+
height: a.value.height - f.y
|
|
4696
|
+
}[z];
|
|
4687
4697
|
n.value = {
|
|
4688
|
-
...
|
|
4698
|
+
...g,
|
|
4689
4699
|
width: {
|
|
4690
|
-
width: a.value.width +
|
|
4691
|
-
height: a.value.width * (1 -
|
|
4692
|
-
}[
|
|
4700
|
+
width: a.value.width + f.x,
|
|
4701
|
+
height: a.value.width * (1 - f.y / a.value.height)
|
|
4702
|
+
}[z],
|
|
4693
4703
|
height: E,
|
|
4694
4704
|
top: a.value.top - (E - a.value.height)
|
|
4695
4705
|
};
|
|
4696
4706
|
},
|
|
4697
4707
|
// 3
|
|
4698
4708
|
() => {
|
|
4699
|
-
const E = a.value.width -
|
|
4709
|
+
const E = a.value.width - f.x, W = a.value.height * (1 - f.x / a.value.width);
|
|
4700
4710
|
n.value = {
|
|
4701
|
-
...
|
|
4711
|
+
...g,
|
|
4702
4712
|
width: E,
|
|
4703
|
-
height:
|
|
4713
|
+
height: W,
|
|
4704
4714
|
left: a.value.left - (E - a.value.width),
|
|
4705
|
-
top: a.value.top - (
|
|
4715
|
+
top: a.value.top - (W - a.value.height) / 2
|
|
4706
4716
|
};
|
|
4707
4717
|
},
|
|
4708
4718
|
// 4
|
|
4709
4719
|
() => {
|
|
4710
|
-
const E = a.value.width +
|
|
4720
|
+
const E = a.value.width + f.x, W = a.value.height * (1 + f.x / a.value.width);
|
|
4711
4721
|
n.value = {
|
|
4712
|
-
...
|
|
4722
|
+
...g,
|
|
4713
4723
|
width: E,
|
|
4714
|
-
height:
|
|
4715
|
-
top: a.value.top - (
|
|
4724
|
+
height: W,
|
|
4725
|
+
top: a.value.top - (W - a.value.height) / 2
|
|
4716
4726
|
};
|
|
4717
4727
|
},
|
|
4718
4728
|
// 5
|
|
4719
4729
|
() => {
|
|
4720
4730
|
const E = {
|
|
4721
|
-
width: a.value.width -
|
|
4722
|
-
height: a.value.width * (1 +
|
|
4723
|
-
}[
|
|
4724
|
-
width: a.value.height * (1 -
|
|
4725
|
-
height: a.value.height +
|
|
4726
|
-
}[
|
|
4731
|
+
width: a.value.width - f.x,
|
|
4732
|
+
height: a.value.width * (1 + f.y / a.value.height)
|
|
4733
|
+
}[z], W = {
|
|
4734
|
+
width: a.value.height * (1 - f.x / a.value.width),
|
|
4735
|
+
height: a.value.height + f.y
|
|
4736
|
+
}[z];
|
|
4727
4737
|
n.value = {
|
|
4728
|
-
...
|
|
4738
|
+
...g,
|
|
4729
4739
|
width: E,
|
|
4730
|
-
height:
|
|
4740
|
+
height: W,
|
|
4731
4741
|
left: a.value.left - (E - a.value.width)
|
|
4732
4742
|
};
|
|
4733
4743
|
},
|
|
4734
4744
|
// 6
|
|
4735
4745
|
() => {
|
|
4736
|
-
const E = a.value.width * (1 +
|
|
4746
|
+
const E = a.value.width * (1 + f.y / a.value.height), W = a.value.height + f.y;
|
|
4737
4747
|
n.value = {
|
|
4738
|
-
...
|
|
4748
|
+
...g,
|
|
4739
4749
|
width: E,
|
|
4740
|
-
height:
|
|
4750
|
+
height: W,
|
|
4741
4751
|
left: a.value.left - (E - a.value.width) / 2
|
|
4742
4752
|
};
|
|
4743
4753
|
},
|
|
4744
4754
|
// 7
|
|
4745
4755
|
() => {
|
|
4746
4756
|
const E = {
|
|
4747
|
-
width: a.value.width +
|
|
4748
|
-
height: a.value.width * (1 +
|
|
4749
|
-
}[
|
|
4750
|
-
width: a.value.height * (1 +
|
|
4751
|
-
height: a.value.height +
|
|
4752
|
-
}[
|
|
4757
|
+
width: a.value.width + f.x,
|
|
4758
|
+
height: a.value.width * (1 + f.y / a.value.height)
|
|
4759
|
+
}[z], W = {
|
|
4760
|
+
width: a.value.height * (1 + f.x / a.value.width),
|
|
4761
|
+
height: a.value.height + f.y
|
|
4762
|
+
}[z];
|
|
4753
4763
|
n.value = {
|
|
4754
|
-
...
|
|
4764
|
+
...g,
|
|
4755
4765
|
width: E,
|
|
4756
|
-
height:
|
|
4766
|
+
height: W
|
|
4757
4767
|
};
|
|
4758
4768
|
}
|
|
4759
4769
|
][c.value]();
|
|
4760
4770
|
}, I = (T) => {
|
|
4761
|
-
const
|
|
4771
|
+
const f = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, g = { ...B.value }, z = [
|
|
4762
4772
|
{
|
|
4763
|
-
...
|
|
4764
|
-
width: a.value.width -
|
|
4765
|
-
height: a.value.height -
|
|
4766
|
-
left: a.value.left +
|
|
4767
|
-
top: a.value.top +
|
|
4773
|
+
...g,
|
|
4774
|
+
width: a.value.width - f.x,
|
|
4775
|
+
height: a.value.height - f.y,
|
|
4776
|
+
left: a.value.left + f.x,
|
|
4777
|
+
top: a.value.top + f.y
|
|
4768
4778
|
},
|
|
4769
4779
|
{
|
|
4770
|
-
...
|
|
4771
|
-
height: a.value.height -
|
|
4772
|
-
top: a.value.top +
|
|
4780
|
+
...g,
|
|
4781
|
+
height: a.value.height - f.y,
|
|
4782
|
+
top: a.value.top + f.y
|
|
4773
4783
|
},
|
|
4774
4784
|
{
|
|
4775
|
-
...
|
|
4776
|
-
width: a.value.width +
|
|
4777
|
-
height: a.value.height -
|
|
4778
|
-
top: a.value.top +
|
|
4785
|
+
...g,
|
|
4786
|
+
width: a.value.width + f.x,
|
|
4787
|
+
height: a.value.height - f.y,
|
|
4788
|
+
top: a.value.top + f.y
|
|
4779
4789
|
},
|
|
4780
4790
|
{
|
|
4781
|
-
...
|
|
4782
|
-
width: a.value.width -
|
|
4783
|
-
left: a.value.left +
|
|
4791
|
+
...g,
|
|
4792
|
+
width: a.value.width - f.x,
|
|
4793
|
+
left: a.value.left + f.x
|
|
4784
4794
|
},
|
|
4785
4795
|
{
|
|
4786
|
-
...
|
|
4787
|
-
width: a.value.width +
|
|
4796
|
+
...g,
|
|
4797
|
+
width: a.value.width + f.x
|
|
4788
4798
|
},
|
|
4789
4799
|
{
|
|
4790
|
-
...
|
|
4791
|
-
width: a.value.width -
|
|
4792
|
-
height: a.value.height +
|
|
4793
|
-
left: a.value.left +
|
|
4800
|
+
...g,
|
|
4801
|
+
width: a.value.width - f.x,
|
|
4802
|
+
height: a.value.height + f.y,
|
|
4803
|
+
left: a.value.left + f.x
|
|
4794
4804
|
},
|
|
4795
4805
|
{
|
|
4796
|
-
...
|
|
4797
|
-
height: a.value.height +
|
|
4806
|
+
...g,
|
|
4807
|
+
height: a.value.height + f.y
|
|
4798
4808
|
},
|
|
4799
4809
|
{
|
|
4800
|
-
...
|
|
4801
|
-
width: a.value.width +
|
|
4802
|
-
height: a.value.height +
|
|
4810
|
+
...g,
|
|
4811
|
+
width: a.value.width + f.x,
|
|
4812
|
+
height: a.value.height + f.y
|
|
4803
4813
|
}
|
|
4804
4814
|
];
|
|
4805
|
-
n.value =
|
|
4806
|
-
},
|
|
4815
|
+
n.value = z[c.value];
|
|
4816
|
+
}, O = () => {
|
|
4807
4817
|
var T;
|
|
4808
|
-
s.value.removeEventListener("mousemove", S), s.value.removeEventListener("mousemove", I), s.value.removeEventListener("mouseleave",
|
|
4809
|
-
},
|
|
4810
|
-
if (!T || T ===
|
|
4818
|
+
s.value.removeEventListener("mousemove", S), s.value.removeEventListener("mousemove", I), s.value.removeEventListener("mouseleave", O), s.value.removeEventListener("mouseup", O), ((T = B.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? t("changeAbsImgItem", n.value) : t("changeAbsTxtItem", n.value), n.value = null;
|
|
4819
|
+
}, ae = (T) => {
|
|
4820
|
+
if (!T || T === B.value.content) {
|
|
4811
4821
|
y.value++;
|
|
4812
4822
|
return;
|
|
4813
4823
|
}
|
|
4814
|
-
t("changeAbsTxtItem", { ...
|
|
4815
|
-
},
|
|
4816
|
-
var
|
|
4817
|
-
const
|
|
4818
|
-
!T && ((
|
|
4824
|
+
t("changeAbsTxtItem", { ...B.value, content: T });
|
|
4825
|
+
}, U = (T, f) => {
|
|
4826
|
+
var z, K;
|
|
4827
|
+
const g = document.body.querySelector(`.cke_editor_${bt}`);
|
|
4828
|
+
!T && ((K = (z = f == null ? void 0 : f.target) == null ? void 0 : z.dataset) != null && K.safe || [...M.value || [], ...H.value || []].find((E) => E.contains(f == null ? void 0 : f.target)) || g && window.getComputedStyle(g).display !== "none") || (p.value = T == null ? void 0 : T.key, T && (n.value = { ...T }));
|
|
4819
4829
|
};
|
|
4820
|
-
return (T,
|
|
4821
|
-
(r(!0), h(
|
|
4822
|
-
var
|
|
4830
|
+
return (T, f) => (r(), h(R, null, [
|
|
4831
|
+
(r(!0), h(R, null, se(J.value, (g) => {
|
|
4832
|
+
var z, K, E, W, P, q, _e;
|
|
4823
4833
|
return Ct((r(), h("div", {
|
|
4824
|
-
key:
|
|
4834
|
+
key: g.id,
|
|
4825
4835
|
ref_for: !0,
|
|
4826
4836
|
ref_key: "imgViewList",
|
|
4827
|
-
ref:
|
|
4837
|
+
ref: M,
|
|
4828
4838
|
"data-safe": "true",
|
|
4829
|
-
class:
|
|
4830
|
-
style:
|
|
4831
|
-
onClick:
|
|
4832
|
-
onMousedown: Ee((
|
|
4839
|
+
class: le(["absolute", ((z = B.value) == null ? void 0 : z.key) === g.key ? "z-8" : "z-7"]),
|
|
4840
|
+
style: Z({ left: Math.max(((K = w.value[g.key]) == null ? void 0 : K.left) || g.left, 0) + "px", top: Math.max(((E = w.value[g.key]) == null ? void 0 : E.top) || g.top, 0) + "px", width: (((W = w.value[g.key]) == null ? void 0 : W.width) || g.width) + "px", height: (((P = w.value[g.key]) == null ? void 0 : P.height) || g.height) + "px", transform: `rotate(${((q = w.value[g.key]) == null ? void 0 : q.rotate) || g.rotate}deg)` }),
|
|
4841
|
+
onClick: f[0] || (f[0] = Ee((fe) => T.void, ["stop"])),
|
|
4842
|
+
onMousedown: Ee((fe) => U(g), ["stop"]),
|
|
4833
4843
|
"data-block": L(Be)
|
|
4834
4844
|
}, [
|
|
4835
4845
|
k("img", {
|
|
4836
|
-
src:
|
|
4837
|
-
}, null, 8,
|
|
4838
|
-
((
|
|
4839
|
-
k("span",
|
|
4840
|
-
|
|
4846
|
+
src: g.url
|
|
4847
|
+
}, null, 8, Gs),
|
|
4848
|
+
((_e = B.value) == null ? void 0 : _e.key) === g.key ? (r(), h(R, { key: 0 }, [
|
|
4849
|
+
k("span", Ws, [
|
|
4850
|
+
ne(we, {
|
|
4841
4851
|
name: "close",
|
|
4842
4852
|
width: 2,
|
|
4843
4853
|
class: "cursor-pointer",
|
|
4844
|
-
onClick: (
|
|
4854
|
+
onClick: (fe) => t("delAbsImgItem", g)
|
|
4845
4855
|
}, null, 8, ["onClick"])
|
|
4846
4856
|
]),
|
|
4847
4857
|
k("div", qs, [
|
|
4848
|
-
(r(), h(
|
|
4849
|
-
key:
|
|
4858
|
+
(r(), h(R, null, se(8, (fe, ke) => k("div", {
|
|
4859
|
+
key: fe,
|
|
4850
4860
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4851
|
-
style:
|
|
4852
|
-
onMousedown: Ee((
|
|
4861
|
+
style: Z({ ...i[ke], transform: "translate(-50%, -50%)" }),
|
|
4862
|
+
onMousedown: Ee((v) => b(v, ke), ["stop"])
|
|
4853
4863
|
}, null, 44, Qs)), 64))
|
|
4854
4864
|
]),
|
|
4855
4865
|
k("span", {
|
|
4856
4866
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4857
4867
|
onMousedown: Ee(C, ["stop"])
|
|
4858
4868
|
}, [
|
|
4859
|
-
|
|
4869
|
+
ne(we, {
|
|
4860
4870
|
name: "reset",
|
|
4861
4871
|
width: 2
|
|
4862
4872
|
})
|
|
4863
4873
|
], 40, Ys)
|
|
4864
|
-
], 64)) :
|
|
4874
|
+
], 64)) : N("", !0)
|
|
4865
4875
|
], 46, Hs)), [
|
|
4866
|
-
[L(l),
|
|
4876
|
+
[L(l), Q]
|
|
4867
4877
|
]);
|
|
4868
4878
|
}), 128)),
|
|
4869
|
-
(r(!0), h(
|
|
4870
|
-
var
|
|
4879
|
+
(r(!0), h(R, null, se(j.value, (g) => {
|
|
4880
|
+
var z, K, E, W, P, q, _e;
|
|
4871
4881
|
return Ct((r(), h("div", {
|
|
4872
|
-
key:
|
|
4882
|
+
key: g.id,
|
|
4873
4883
|
ref_for: !0,
|
|
4874
4884
|
ref_key: "txtViewList",
|
|
4875
|
-
ref:
|
|
4876
|
-
disabled:
|
|
4885
|
+
ref: H,
|
|
4886
|
+
disabled: D.value,
|
|
4877
4887
|
"data-safe": "true",
|
|
4878
|
-
class:
|
|
4879
|
-
style:
|
|
4880
|
-
onClick:
|
|
4881
|
-
onMousedown: Ee((
|
|
4888
|
+
class: le(["absolute", ((z = B.value) == null ? void 0 : z.key) === g.key ? "z-8 bg-white" : "z-7"]),
|
|
4889
|
+
style: Z({ left: Math.max(((K = w.value[g.key]) == null ? void 0 : K.left) || g.left, 0) + "px", top: Math.max(((E = w.value[g.key]) == null ? void 0 : E.top) || g.top, 0) + "px", width: (((W = w.value[g.key]) == null ? void 0 : W.width) || g.width) + "px", height: (((P = w.value[g.key]) == null ? void 0 : P.height) || g.height) + "px" }),
|
|
4890
|
+
onClick: f[3] || (f[3] = Ee((fe) => T.void, ["stop"])),
|
|
4891
|
+
onMousedown: Ee((fe) => U(g), ["stop"]),
|
|
4882
4892
|
"data-block": L(Be)
|
|
4883
4893
|
}, [
|
|
4884
|
-
(r(),
|
|
4894
|
+
(r(), te(zs, {
|
|
4885
4895
|
key: y.value,
|
|
4886
4896
|
class: "border-0 relative z-4",
|
|
4887
|
-
readonly: ((
|
|
4888
|
-
value:
|
|
4889
|
-
name:
|
|
4890
|
-
onChange:
|
|
4891
|
-
onFocus:
|
|
4892
|
-
onBlur:
|
|
4897
|
+
readonly: ((q = B.value) == null ? void 0 : q.key) !== g.key,
|
|
4898
|
+
value: g.content,
|
|
4899
|
+
name: g.id.toString(),
|
|
4900
|
+
onChange: ae,
|
|
4901
|
+
onFocus: f[1] || (f[1] = (fe) => re(!0)),
|
|
4902
|
+
onBlur: f[2] || (f[2] = (fe) => re(!1))
|
|
4893
4903
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4894
|
-
((
|
|
4904
|
+
((_e = B.value) == null ? void 0 : _e.key) === g.key ? (r(), h(R, { key: 0 }, [
|
|
4895
4905
|
k("span", Us, [
|
|
4896
|
-
|
|
4906
|
+
ne(we, {
|
|
4897
4907
|
name: "close",
|
|
4898
4908
|
width: 2,
|
|
4899
4909
|
class: "cursor-pointer",
|
|
4900
|
-
onClick: (
|
|
4910
|
+
onClick: (fe) => t("delAbsTxtItem", g)
|
|
4901
4911
|
}, null, 8, ["onClick"])
|
|
4902
4912
|
]),
|
|
4903
4913
|
k("div", Vs, [
|
|
4904
|
-
(r(), h(
|
|
4905
|
-
key:
|
|
4914
|
+
(r(), h(R, null, se(8, (fe, ke) => k("div", {
|
|
4915
|
+
key: fe,
|
|
4906
4916
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4907
|
-
style:
|
|
4908
|
-
onMousedown: (
|
|
4909
|
-
}, null, 44,
|
|
4917
|
+
style: Z({ ...i[ke], transform: "translate(-50%, -50%)" }),
|
|
4918
|
+
onMousedown: (v) => b(v, ke)
|
|
4919
|
+
}, null, 44, Xs)), 64))
|
|
4910
4920
|
])
|
|
4911
|
-
], 64)) :
|
|
4921
|
+
], 64)) : N("", !0)
|
|
4912
4922
|
], 46, Ks)), [
|
|
4913
|
-
[L(l),
|
|
4923
|
+
[L(l), Q]
|
|
4914
4924
|
]);
|
|
4915
4925
|
}), 128))
|
|
4916
4926
|
], 64));
|
|
4917
4927
|
}
|
|
4918
4928
|
});
|
|
4919
|
-
const
|
|
4929
|
+
const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), js = ["viewBox"], ei = {
|
|
4920
4930
|
x: "0",
|
|
4921
4931
|
y: "0",
|
|
4922
4932
|
width: "100%",
|
|
4923
4933
|
height: "100%"
|
|
4924
|
-
}, ti = ["onClick", "onDblclick"], oi = ["data-block"], ai = /* @__PURE__ */
|
|
4934
|
+
}, ti = ["onClick", "onDblclick"], oi = ["data-block"], ai = /* @__PURE__ */ ie({
|
|
4925
4935
|
__name: "index",
|
|
4926
4936
|
props: {
|
|
4927
4937
|
layout: {},
|
|
@@ -4940,173 +4950,173 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
|
|
|
4940
4950
|
setup(e, { emit: t }) {
|
|
4941
4951
|
const o = e;
|
|
4942
4952
|
Yt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4943
|
-
const l =
|
|
4944
|
-
...
|
|
4953
|
+
const l = X([]), i = X([]), a = X(2), n = X(0), c = X(0), y = X(), s = X([]), m = X([]), D = X([]), p = X([]), M = G(() => o.data.map((v) => ({
|
|
4954
|
+
...v,
|
|
4945
4955
|
__tag__: Tt(),
|
|
4946
|
-
rawChildren:
|
|
4947
|
-
children:
|
|
4948
|
-
}))),
|
|
4949
|
-
if (!
|
|
4956
|
+
rawChildren: v.children,
|
|
4957
|
+
children: v.children.map((F) => ({ ...F, ...T(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Tt() }))
|
|
4958
|
+
}))), H = G(() => {
|
|
4959
|
+
if (!M.value.length)
|
|
4950
4960
|
return;
|
|
4951
|
-
const
|
|
4952
|
-
return
|
|
4953
|
-
}),
|
|
4954
|
-
var
|
|
4955
|
-
return o.layout.bindFlag && !!((
|
|
4956
|
-
}),
|
|
4961
|
+
const v = M.value[M.value.length - 1], F = v.rawChildren[v.rawChildren.length - 1];
|
|
4962
|
+
return re.value && [u.slove].includes(F == null ? void 0 : F.problemType) && F.id;
|
|
4963
|
+
}), J = G(() => {
|
|
4964
|
+
var v;
|
|
4965
|
+
return o.layout.bindFlag && !!((v = qe.find((F) => F.code === o.layout.paper)) != null && v.isMultCol);
|
|
4966
|
+
}), j = G(() => o.isFinal ? 0 : 10), B = G(() => o.isFinal ? 10 : 0), w = G(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), Q = G(() => Math.ceil(w.value / 2) * 2), re = G(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = G(() => re.value ? Fe : { top: 0, right: 0, bottom: 0, left: 0 }), V = G(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), ue = G(() => x[o.layout.paper].width - V.value.left - V.value.right), b = G(() => x[o.layout.paper].height - V.value.top - V.value.bottom), S = G(() => (ue.value - (c.value ? c.value + W(0) : 0) + W(0)) / o.layout.column - W(0)), I = G(() => ({
|
|
4957
4967
|
width: `${x[o.layout.paper].width}px`,
|
|
4958
|
-
height: `${(x[o.layout.paper].height +
|
|
4959
|
-
})),
|
|
4968
|
+
height: `${(x[o.layout.paper].height + j.value) * Q.value - j.value}px`
|
|
4969
|
+
})), O = G(() => ({
|
|
4960
4970
|
width: `${x[o.layout.paper].width}px`,
|
|
4961
4971
|
height: `${x[o.layout.paper].height}px`,
|
|
4962
|
-
padding: `${
|
|
4963
|
-
marginBottom: `${
|
|
4964
|
-
})),
|
|
4972
|
+
padding: `${V.value.top}px ${V.value.right}px ${V.value.bottom}px ${V.value.left}px`,
|
|
4973
|
+
marginBottom: `${j.value}px`
|
|
4974
|
+
})), ae = G(() => {
|
|
4965
4975
|
var F;
|
|
4966
|
-
const
|
|
4976
|
+
const v = (F = qe.find((ge) => ge.code === o.layout.paper)) == null ? void 0 : F.isFullTitle;
|
|
4967
4977
|
return {
|
|
4968
|
-
left: `${
|
|
4969
|
-
top: `${
|
|
4970
|
-
width:
|
|
4978
|
+
left: `${V.value.left + (c.value ? c.value + W(0) : 0)}px`,
|
|
4979
|
+
top: `${V.value.top}px`,
|
|
4980
|
+
width: v ? `${ue.value}px` : `${S.value}px`
|
|
4971
4981
|
};
|
|
4972
|
-
}),
|
|
4982
|
+
}), U = G(() => At.filter((v) => o.info.bindExtentInfo[v.code]).map((v) => o.info.bindExtentInfo[v.key]));
|
|
4973
4983
|
De(() => [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(""), () => {
|
|
4974
4984
|
setTimeout(() => {
|
|
4975
|
-
|
|
4985
|
+
fe();
|
|
4976
4986
|
}, 100);
|
|
4977
|
-
}, { immediate: !0 }), De(() =>
|
|
4978
|
-
c.value =
|
|
4987
|
+
}, { immediate: !0 }), De(() => J.value, () => {
|
|
4988
|
+
c.value = J.value ? 100 : 0;
|
|
4979
4989
|
}, { immediate: !0 });
|
|
4980
|
-
const T = (
|
|
4981
|
-
let F = { ...
|
|
4982
|
-
if ([u.slove].includes(F.problemType) &&
|
|
4983
|
-
const
|
|
4984
|
-
|
|
4985
|
-
const
|
|
4986
|
-
if (
|
|
4987
|
-
const
|
|
4988
|
-
|
|
4990
|
+
const T = (v) => {
|
|
4991
|
+
let F = { ...v };
|
|
4992
|
+
if ([u.slove].includes(F.problemType) && re.value) {
|
|
4993
|
+
const ge = document.createElement("div");
|
|
4994
|
+
ge.innerHTML = F.answerArea;
|
|
4995
|
+
const ee = ge.querySelector(Bt.sub);
|
|
4996
|
+
if (ee) {
|
|
4997
|
+
const ce = document.createElement("div");
|
|
4998
|
+
ce.innerHTML = is(F.sub, F.style[d.public.scoreShowFlag] === _.bracket_none ? void 0 : [F.score].flat(2).reduce(($e, Ae) => $e + Ae, 0), F.style[d.public.scoreShowFlag]), ee.replaceWith(ce.children[0]), F.answerArea = ge.innerHTML, F.customSub = !0, ge.remove(), ce.remove();
|
|
4989
4999
|
}
|
|
4990
5000
|
}
|
|
4991
5001
|
return F;
|
|
4992
|
-
},
|
|
4993
|
-
const F =
|
|
5002
|
+
}, f = (v) => v % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, g = (v, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + v, z = (v) => {
|
|
5003
|
+
const F = v % (o.layout.column + o.layout.backColumn);
|
|
4994
5004
|
return F >= o.layout.column ? F - o.layout.column : F;
|
|
4995
|
-
},
|
|
4996
|
-
|
|
4997
|
-
}, E = (
|
|
4998
|
-
|
|
4999
|
-
},
|
|
5000
|
-
var
|
|
5001
|
-
const
|
|
5005
|
+
}, K = (v, F) => {
|
|
5006
|
+
v ? s.value[F] = v : s.value.splice(F, 1);
|
|
5007
|
+
}, E = (v, F) => {
|
|
5008
|
+
v ? m.value[F] = v : m.value.splice(F, 1);
|
|
5009
|
+
}, W = (v) => Mt[o.layout.mode][o.layout.paper][f(v)] || 0, P = (v, F = !1) => (ue.value - (c.value ? c.value + W(v) : 0) + W(v)) / f(v) - W(v) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), q = (v, F) => {
|
|
5010
|
+
var ee, ce;
|
|
5011
|
+
const ge = v % (o.layout.column + o.layout.backColumn) ? 0 : ((ee = D.value[Math.min(F, 1)]) == null ? void 0 : ee.offsetHeight) || 0;
|
|
5002
5012
|
return {
|
|
5003
|
-
left: `${
|
|
5004
|
-
top: `${
|
|
5005
|
-
width: `${
|
|
5006
|
-
height: `${
|
|
5007
|
-
contentHeight: `${(
|
|
5013
|
+
left: `${V.value.left + (F % 2 ? 0 : c.value ? c.value + W(v) : 0) + C.value.left + z(v) * (P(v) + W(v) + C.value.left + C.value.right)}px`,
|
|
5014
|
+
top: `${ge + V.value.top + (!F && !v ? 0 : C.value.top)}px`,
|
|
5015
|
+
width: `${P(v)}px`,
|
|
5016
|
+
height: `${b.value - ge - (!F && !v ? 0 : C.value.top) - C.value.bottom}px`,
|
|
5017
|
+
contentHeight: `${(ce = l.value[v]) == null ? void 0 : ce.height}px`
|
|
5008
5018
|
};
|
|
5009
|
-
},
|
|
5010
|
-
i.value =
|
|
5011
|
-
a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], m.value.forEach((
|
|
5012
|
-
var
|
|
5013
|
-
!
|
|
5019
|
+
}, _e = (v, F = !1) => {
|
|
5020
|
+
i.value = v.map((ge) => ({ ...ge })), F && (l.value = [...v], n.value += 1, lt(() => {
|
|
5021
|
+
a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], m.value.forEach((ge, ee) => {
|
|
5022
|
+
var ce, $e;
|
|
5023
|
+
!ge || !ge.col || ((ce = l.value[ee]) != null && ce.top ? ge.col.style.marginTop = `${($e = l.value[ee]) == null ? void 0 : $e.top}px` : ge.col.style.marginTop = "");
|
|
5014
5024
|
}), o.isFinal && setTimeout(() => {
|
|
5015
|
-
const
|
|
5025
|
+
const ge = ks({
|
|
5016
5026
|
config: {
|
|
5017
5027
|
...o.info,
|
|
5018
5028
|
layout: o.layout,
|
|
5019
5029
|
pageTotal: w.value,
|
|
5020
5030
|
bindWidth: c.value,
|
|
5021
|
-
pageMargin:
|
|
5031
|
+
pageMargin: j.value,
|
|
5022
5032
|
pageDom: s.value.slice(0, w.value),
|
|
5023
|
-
colDom: m.value.map((
|
|
5024
|
-
colViewDom: m.value.map((
|
|
5033
|
+
colDom: m.value.map((ee) => ee.col),
|
|
5034
|
+
colViewDom: m.value.map((ee) => ee.colView)
|
|
5025
5035
|
},
|
|
5026
5036
|
data: l.value
|
|
5027
5037
|
});
|
|
5028
|
-
t("getFinalData",
|
|
5038
|
+
t("getFinalData", ge);
|
|
5029
5039
|
}, 500);
|
|
5030
5040
|
}));
|
|
5031
|
-
},
|
|
5041
|
+
}, fe = () => {
|
|
5032
5042
|
As({
|
|
5033
5043
|
el: y.value,
|
|
5034
|
-
data:
|
|
5044
|
+
data: M.value,
|
|
5035
5045
|
column: o.layout.column,
|
|
5036
5046
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
5037
|
-
getColSize:
|
|
5038
|
-
change:
|
|
5047
|
+
getColSize: q,
|
|
5048
|
+
change: _e
|
|
5039
5049
|
});
|
|
5040
|
-
},
|
|
5041
|
-
t("toggleActive",
|
|
5050
|
+
}, ke = (v = { type: A.page, value: {} }) => {
|
|
5051
|
+
t("toggleActive", v);
|
|
5042
5052
|
};
|
|
5043
|
-
return (
|
|
5044
|
-
var
|
|
5045
|
-
return r(), h(
|
|
5046
|
-
|
|
5053
|
+
return (v, F) => {
|
|
5054
|
+
var ge;
|
|
5055
|
+
return r(), h(R, null, [
|
|
5056
|
+
v.readonly ? N("", !0) : (r(), te(Es, {
|
|
5047
5057
|
key: 0,
|
|
5048
5058
|
ColList: l.value,
|
|
5049
|
-
ColDom: m.value.map((
|
|
5050
|
-
ImgData:
|
|
5051
|
-
TxtData:
|
|
5052
|
-
onDelAbsImgItem: F[0] || (F[0] = (
|
|
5053
|
-
onDelAbsTxtItem: F[1] || (F[1] = (
|
|
5054
|
-
onChangeLayoutStatus: F[2] || (F[2] = (
|
|
5059
|
+
ColDom: m.value.map((ee) => ee.col),
|
|
5060
|
+
ImgData: v.imgData,
|
|
5061
|
+
TxtData: v.txtData,
|
|
5062
|
+
onDelAbsImgItem: F[0] || (F[0] = (ee) => t("delAbsImgItem", ee)),
|
|
5063
|
+
onDelAbsTxtItem: F[1] || (F[1] = (ee) => t("delAbsTxtItem", ee)),
|
|
5064
|
+
onChangeLayoutStatus: F[2] || (F[2] = (ee) => t("changeLayoutStatus", ee))
|
|
5055
5065
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
5056
5066
|
k("div", {
|
|
5057
5067
|
class: "flex-1 overflow-auto relative z-1",
|
|
5058
5068
|
id: "alit-layout",
|
|
5059
|
-
onClick: F[14] || (F[14] = (
|
|
5069
|
+
onClick: F[14] || (F[14] = (ee) => ke())
|
|
5060
5070
|
}, [
|
|
5061
5071
|
k("div", {
|
|
5062
5072
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
5063
5073
|
ref_key: "rawDom",
|
|
5064
5074
|
ref: y
|
|
5065
5075
|
}, [
|
|
5066
|
-
i.value.length ? (r(!0), h(
|
|
5067
|
-
|
|
5076
|
+
i.value.length ? (r(!0), h(R, { key: 0 }, se((ge = i.value[i.value.length - 1]) == null ? void 0 : ge.data, (ee, ce) => (r(), h(R, null, [
|
|
5077
|
+
ee.isHidden ? N("", !0) : (r(), te($t, {
|
|
5068
5078
|
key: 0,
|
|
5069
|
-
item:
|
|
5070
|
-
showColBorder:
|
|
5071
|
-
isFirst: !
|
|
5072
|
-
layout:
|
|
5079
|
+
item: ee,
|
|
5080
|
+
showColBorder: re.value,
|
|
5081
|
+
isFirst: !ce && i.value.length === 1,
|
|
5082
|
+
layout: v.layout
|
|
5073
5083
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
5074
|
-
|
|
5084
|
+
re.value ? (r(), h("div", {
|
|
5075
5085
|
key: 1,
|
|
5076
|
-
class:
|
|
5086
|
+
class: le([!ee.children.length && ee.problemType && "p-1 min-h-[2rem]"])
|
|
5077
5087
|
}, [
|
|
5078
|
-
(r(),
|
|
5079
|
-
data:
|
|
5088
|
+
(r(), te(Xe, {
|
|
5089
|
+
data: ee,
|
|
5080
5090
|
key: i.value.length,
|
|
5081
|
-
layout:
|
|
5082
|
-
target:
|
|
5091
|
+
layout: v.layout,
|
|
5092
|
+
target: v.target,
|
|
5083
5093
|
noPortrait: "",
|
|
5084
|
-
width:
|
|
5094
|
+
width: P(i.value.length - 1)
|
|
5085
5095
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5086
|
-
], 2)) : (r(),
|
|
5087
|
-
data:
|
|
5096
|
+
], 2)) : (r(), te(Xe, {
|
|
5097
|
+
data: ee,
|
|
5088
5098
|
key: i.value.length,
|
|
5089
|
-
layout:
|
|
5090
|
-
target:
|
|
5091
|
-
width:
|
|
5099
|
+
layout: v.layout,
|
|
5100
|
+
target: v.target,
|
|
5101
|
+
width: P(i.value.length - 1)
|
|
5092
5102
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5093
|
-
], 64))), 256)) :
|
|
5103
|
+
], 64))), 256)) : N("", !0)
|
|
5094
5104
|
], 512),
|
|
5095
5105
|
k("div", {
|
|
5096
|
-
class:
|
|
5097
|
-
style:
|
|
5106
|
+
class: le(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", v.layout.redFlag && "red_mode", v.readonly && "pointer-events-none"]),
|
|
5107
|
+
style: Z(I.value)
|
|
5098
5108
|
}, [
|
|
5099
|
-
|
|
5100
|
-
imgData:
|
|
5101
|
-
txtData:
|
|
5102
|
-
activeAbsItem:
|
|
5103
|
-
target:
|
|
5104
|
-
layout:
|
|
5105
|
-
pageMargin:
|
|
5106
|
-
onChangeAbsImgItem: F[3] || (F[3] = (
|
|
5107
|
-
onDelAbsImgItem: F[4] || (F[4] = (
|
|
5108
|
-
onChangeAbsTxtItem: F[5] || (F[5] = (
|
|
5109
|
-
onDelAbsTxtItem: F[6] || (F[6] = (
|
|
5109
|
+
ne(Zs, {
|
|
5110
|
+
imgData: v.imgData,
|
|
5111
|
+
txtData: v.txtData,
|
|
5112
|
+
activeAbsItem: v.activeAbsItem,
|
|
5113
|
+
target: v.target,
|
|
5114
|
+
layout: v.layout,
|
|
5115
|
+
pageMargin: B.value,
|
|
5116
|
+
onChangeAbsImgItem: F[3] || (F[3] = (ee) => t("changeAbsImgItem", ee)),
|
|
5117
|
+
onDelAbsImgItem: F[4] || (F[4] = (ee) => t("delAbsImgItem", ee)),
|
|
5118
|
+
onChangeAbsTxtItem: F[5] || (F[5] = (ee) => t("changeAbsTxtItem", ee)),
|
|
5119
|
+
onDelAbsTxtItem: F[6] || (F[6] = (ee) => t("delAbsTxtItem", ee))
|
|
5110
5120
|
}, null, 8, ["imgData", "txtData", "activeAbsItem", "target", "layout", "pageMargin"]),
|
|
5111
5121
|
(r(), h("svg", {
|
|
5112
5122
|
viewBox: `0 0 ${parseFloat(I.value.width)} ${parseFloat(I.value.height)}`,
|
|
@@ -5115,131 +5125,131 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
|
|
|
5115
5125
|
key: n.value
|
|
5116
5126
|
}, [
|
|
5117
5127
|
(r(), h("foreignObject", ei, [
|
|
5118
|
-
(r(!0), h(
|
|
5119
|
-
key:
|
|
5128
|
+
(r(!0), h(R, null, se(Q.value, (ee, ce) => (r(), h("div", {
|
|
5129
|
+
key: ee,
|
|
5120
5130
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
5121
5131
|
ref_for: !0,
|
|
5122
|
-
ref: ($e) =>
|
|
5123
|
-
style:
|
|
5132
|
+
ref: ($e) => K($e, ce),
|
|
5133
|
+
style: Z(O.value)
|
|
5124
5134
|
}, [
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
layout:
|
|
5128
|
-
currentPage:
|
|
5135
|
+
ce < w.value ? (r(), h(R, { key: 0 }, [
|
|
5136
|
+
ne(Io, {
|
|
5137
|
+
layout: v.layout,
|
|
5138
|
+
currentPage: ce,
|
|
5129
5139
|
totalPage: w.value,
|
|
5130
|
-
columnContentWidth:
|
|
5131
|
-
columnMargin:
|
|
5140
|
+
columnContentWidth: P(ce % 2 ? v.layout.column : 0, !0),
|
|
5141
|
+
columnMargin: W(ce % 2 ? v.layout.column : 0),
|
|
5132
5142
|
bindWidth: c.value,
|
|
5133
|
-
padding:
|
|
5143
|
+
padding: V.value
|
|
5134
5144
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
5135
|
-
|
|
5145
|
+
v.layout.sloganFlag ? (r(), te(Eo, {
|
|
5136
5146
|
key: 0,
|
|
5137
|
-
info:
|
|
5138
|
-
layout:
|
|
5147
|
+
info: v.info,
|
|
5148
|
+
layout: v.layout,
|
|
5139
5149
|
onChange: F[7] || (F[7] = ($e) => t("changeInfo", $e))
|
|
5140
|
-
}, null, 8, ["info", "layout"])) :
|
|
5141
|
-
|
|
5150
|
+
}, null, 8, ["info", "layout"])) : N("", !0),
|
|
5151
|
+
ne(nl, {
|
|
5142
5152
|
ref_for: !0,
|
|
5143
5153
|
ref_key: "bindDom",
|
|
5144
5154
|
ref: p,
|
|
5145
|
-
currentPage:
|
|
5155
|
+
currentPage: ce,
|
|
5146
5156
|
width: c.value,
|
|
5147
|
-
height:
|
|
5148
|
-
isBindFlag:
|
|
5149
|
-
bindSeatType:
|
|
5150
|
-
bindInfo:
|
|
5157
|
+
height: b.value,
|
|
5158
|
+
isBindFlag: J.value,
|
|
5159
|
+
bindSeatType: v.layout.bindSeatType,
|
|
5160
|
+
bindInfo: U.value
|
|
5151
5161
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
5152
|
-
!(
|
|
5162
|
+
!(ce % 2) || ce === 1 && w.value < 3 ? (r(), h("div", {
|
|
5153
5163
|
key: 1,
|
|
5154
5164
|
ref_for: !0,
|
|
5155
5165
|
ref_key: "titleDom",
|
|
5156
|
-
ref:
|
|
5157
|
-
class:
|
|
5158
|
-
style:
|
|
5166
|
+
ref: D,
|
|
5167
|
+
class: le(["absolute text-black", ce === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5168
|
+
style: Z(ae.value)
|
|
5159
5169
|
}, [
|
|
5160
|
-
|
|
5161
|
-
layout:
|
|
5162
|
-
code:
|
|
5170
|
+
ne(Oo, {
|
|
5171
|
+
layout: v.layout,
|
|
5172
|
+
code: v.info.textCode
|
|
5163
5173
|
}, null, 8, ["layout", "code"]),
|
|
5164
|
-
|
|
5165
|
-
info:
|
|
5166
|
-
layout:
|
|
5167
|
-
fontConfig:
|
|
5168
|
-
data:
|
|
5174
|
+
ne(ia, {
|
|
5175
|
+
info: v.info,
|
|
5176
|
+
layout: v.layout,
|
|
5177
|
+
fontConfig: v.fontConfig,
|
|
5178
|
+
data: v.data,
|
|
5169
5179
|
onChange: F[8] || (F[8] = ($e) => t("changeInfo", $e))
|
|
5170
5180
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5171
|
-
|
|
5172
|
-
layout:
|
|
5173
|
-
info:
|
|
5174
|
-
isBindFlag:
|
|
5181
|
+
ne(Ia, {
|
|
5182
|
+
layout: v.layout,
|
|
5183
|
+
info: v.info,
|
|
5184
|
+
isBindFlag: J.value,
|
|
5175
5185
|
onChange: F[9] || (F[9] = ($e) => t("changeExtentInfo", $e))
|
|
5176
5186
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5177
|
-
|
|
5178
|
-
layout:
|
|
5179
|
-
isBindFlag:
|
|
5187
|
+
ne(Ha, {
|
|
5188
|
+
layout: v.layout,
|
|
5189
|
+
isBindFlag: J.value
|
|
5180
5190
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5181
|
-
|
|
5191
|
+
ce ? N("", !0) : (r(), te(Ua, {
|
|
5182
5192
|
key: 0,
|
|
5183
|
-
layout:
|
|
5184
|
-
data:
|
|
5193
|
+
layout: v.layout,
|
|
5194
|
+
data: v.data
|
|
5185
5195
|
}, null, 8, ["layout", "data"])),
|
|
5186
|
-
|
|
5196
|
+
v.layout.writeScoreFlag && !ce ? (r(), te(kl, {
|
|
5187
5197
|
key: 1,
|
|
5188
|
-
info:
|
|
5189
|
-
layout:
|
|
5190
|
-
}, null, 8, ["info", "layout"])) :
|
|
5191
|
-
], 6)) :
|
|
5192
|
-
(r(!0), h(
|
|
5198
|
+
info: v.info,
|
|
5199
|
+
layout: v.layout
|
|
5200
|
+
}, null, 8, ["info", "layout"])) : N("", !0)
|
|
5201
|
+
], 6)) : N("", !0),
|
|
5202
|
+
(r(!0), h(R, null, se(ce % 2 ? v.layout.backColumn : v.layout.column, ($e, Ae) => (r(), te(Xa, {
|
|
5193
5203
|
ref_for: !0,
|
|
5194
|
-
ref: (Ve) => E(Ve,
|
|
5195
|
-
styleInfo:
|
|
5196
|
-
column:
|
|
5197
|
-
currentColumn:
|
|
5198
|
-
showColBorder:
|
|
5204
|
+
ref: (Ve) => E(Ve, g(Ae, ce)),
|
|
5205
|
+
styleInfo: q(g(Ae, ce), ce),
|
|
5206
|
+
column: v.layout.column,
|
|
5207
|
+
currentColumn: g(Ae, ce),
|
|
5208
|
+
showColBorder: re.value
|
|
5199
5209
|
}, {
|
|
5200
5210
|
default: Et(() => {
|
|
5201
5211
|
var Ve;
|
|
5202
5212
|
return [
|
|
5203
|
-
(r(!0), h(
|
|
5213
|
+
(r(!0), h(R, null, se(((Ve = l.value[g(Ae, ce)]) == null ? void 0 : Ve.data) || [], (xe, Wt) => {
|
|
5204
5214
|
var vt;
|
|
5205
|
-
return r(), h(
|
|
5206
|
-
|
|
5215
|
+
return r(), h(R, null, [
|
|
5216
|
+
xe.isHidden ? N("", !0) : (r(), te($t, {
|
|
5207
5217
|
key: 0,
|
|
5208
|
-
item:
|
|
5209
|
-
showColBorder:
|
|
5210
|
-
isFirst: !
|
|
5211
|
-
layout:
|
|
5212
|
-
isActive: ((vt =
|
|
5213
|
-
onClick: (
|
|
5214
|
-
onDbclick: (
|
|
5218
|
+
item: xe,
|
|
5219
|
+
showColBorder: re.value,
|
|
5220
|
+
isFirst: !ce && !Ae && !Wt,
|
|
5221
|
+
layout: v.layout,
|
|
5222
|
+
isActive: ((vt = v.target.value) == null ? void 0 : vt.id) === xe.id,
|
|
5223
|
+
onClick: (ve) => ke({ type: xe.problemType ? L(A).headline : L(A).headlineNotarea, value: xe }),
|
|
5224
|
+
onDbclick: (ve) => t("dbHeadLineClick", xe)
|
|
5215
5225
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5216
|
-
|
|
5226
|
+
re.value ? (r(), h("div", {
|
|
5217
5227
|
key: 1,
|
|
5218
|
-
class:
|
|
5219
|
-
onClick: Ee((
|
|
5220
|
-
onDblclick: (
|
|
5228
|
+
class: le([!xe.children.length && xe.problemType && "p-1 min-h-[2rem]", v.target.type === L(A).headline && v.target.value.id === xe.id && "active_headline"]),
|
|
5229
|
+
onClick: Ee((ve) => ke({ type: xe.problemType ? L(A).headline : L(A).headlineNotarea, value: xe }), ["stop"]),
|
|
5230
|
+
onDblclick: (ve) => t("dbHeadLineClick", xe)
|
|
5221
5231
|
}, [
|
|
5222
|
-
|
|
5223
|
-
data:
|
|
5224
|
-
layout:
|
|
5225
|
-
target:
|
|
5226
|
-
width:
|
|
5227
|
-
onClick: F[10] || (F[10] = (
|
|
5228
|
-
onDbclick: F[11] || (F[11] = (
|
|
5232
|
+
ne(Xe, {
|
|
5233
|
+
data: xe,
|
|
5234
|
+
layout: v.layout,
|
|
5235
|
+
target: v.target,
|
|
5236
|
+
width: P(g(Ae, ce)),
|
|
5237
|
+
onClick: F[10] || (F[10] = (ve) => ke({ type: ve.problemType || ve.notAreaFlag ? L(A).problem : L(A).problemNotarea, value: { ...ve, problemType: ve.problemType || ve.sourceProblemType } })),
|
|
5238
|
+
onDbclick: F[11] || (F[11] = (ve) => t("dbProblemClick", ve))
|
|
5229
5239
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5230
|
-
|
|
5240
|
+
xe.children.length && xe.children[xe.children.length - 1].id === H.value ? (r(), h("div", {
|
|
5231
5241
|
key: 0,
|
|
5232
5242
|
class: "border-t",
|
|
5233
5243
|
"data-block": L(Be)
|
|
5234
|
-
}, null, 8, oi)) :
|
|
5235
|
-
], 42, ti)) : (r(),
|
|
5244
|
+
}, null, 8, oi)) : N("", !0)
|
|
5245
|
+
], 42, ti)) : (r(), te(Xe, {
|
|
5236
5246
|
key: 2,
|
|
5237
|
-
data:
|
|
5238
|
-
layout:
|
|
5239
|
-
target:
|
|
5240
|
-
width:
|
|
5241
|
-
onClick: F[12] || (F[12] = (
|
|
5242
|
-
onDbclick: F[13] || (F[13] = (
|
|
5247
|
+
data: xe,
|
|
5248
|
+
layout: v.layout,
|
|
5249
|
+
target: v.target,
|
|
5250
|
+
width: P(g(Ae, ce)),
|
|
5251
|
+
onClick: F[12] || (F[12] = (ve) => ke({ type: ve.problemType || ve.notAreaFlag ? L(A).problem : L(A).problemNotarea, value: { ...ve, problemType: ve.problemType || ve.sourceProblemType } })),
|
|
5252
|
+
onDbclick: F[13] || (F[13] = (ve) => t("dbProblemClick", ve))
|
|
5243
5253
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5244
5254
|
], 64);
|
|
5245
5255
|
}), 256))
|
|
@@ -5247,17 +5257,17 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
|
|
|
5247
5257
|
}),
|
|
5248
5258
|
_: 2
|
|
5249
5259
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
5250
|
-
], 64)) :
|
|
5260
|
+
], 64)) : N("", !0)
|
|
5251
5261
|
], 4))), 128))
|
|
5252
5262
|
]))
|
|
5253
|
-
], 8,
|
|
5263
|
+
], 8, js))
|
|
5254
5264
|
], 6)
|
|
5255
5265
|
])
|
|
5256
5266
|
], 64);
|
|
5257
5267
|
};
|
|
5258
5268
|
}
|
|
5259
5269
|
});
|
|
5260
|
-
const si = /* @__PURE__ */ me(ai, [["__scopeId", "data-v-
|
|
5270
|
+
const si = /* @__PURE__ */ me(ai, [["__scopeId", "data-v-58a0f547"]]);
|
|
5261
5271
|
export {
|
|
5262
5272
|
ni as Config,
|
|
5263
5273
|
si as default
|