alit-layout 1.0.6 → 1.0.7
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 +494 -493
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as W, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as
|
|
1
|
+
import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as W, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as Ae, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as Re, popScopeId as Ge, renderSlot as it, onMounted as Ve, nextTick as Ze, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as St, inject as Rt, withDirectives as ft, provide as Gt } from "vue";
|
|
2
2
|
const Lt = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -48,7 +48,7 @@ const Lt = {
|
|
|
48
48
|
}, p = {
|
|
49
49
|
...Ft,
|
|
50
50
|
...at
|
|
51
|
-
},
|
|
51
|
+
}, ze = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
53
53
|
{ name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0 },
|
|
54
54
|
{ name: "A4", code: "a4", size: "210*297mm" },
|
|
@@ -555,34 +555,33 @@ const Lt = {
|
|
|
555
555
|
}, Zt = [
|
|
556
556
|
{ name: "整卷", code: lt.wide },
|
|
557
557
|
{ name: "大题", code: lt.local }
|
|
558
|
-
],
|
|
558
|
+
], Qe = {
|
|
559
559
|
system: "system",
|
|
560
560
|
second: "level_2",
|
|
561
561
|
three: "level_3"
|
|
562
562
|
}, Jt = [
|
|
563
|
-
{ name: "自增", code:
|
|
564
|
-
{ name: "二级", code:
|
|
565
|
-
{ name: "三级", code:
|
|
563
|
+
{ name: "自增", code: Qe.system },
|
|
564
|
+
{ name: "二级", code: Qe.second },
|
|
565
|
+
{ name: "三级", code: Qe.three }
|
|
566
566
|
], eo = [
|
|
567
567
|
{ name: "缩进", code: !0 },
|
|
568
568
|
{ name: "不缩进", code: !1 }
|
|
569
|
-
],
|
|
569
|
+
], Ue = {
|
|
570
570
|
auto: "auto",
|
|
571
571
|
on: "on",
|
|
572
572
|
off: "off"
|
|
573
573
|
}, to = [
|
|
574
|
-
{ name: "自动", code:
|
|
575
|
-
{ name: "开", code:
|
|
576
|
-
{ name: "关", code:
|
|
577
|
-
],
|
|
574
|
+
{ name: "自动", code: Ue.auto },
|
|
575
|
+
{ name: "开", code: Ue.on },
|
|
576
|
+
{ name: "关", code: Ue.off }
|
|
577
|
+
], De = {
|
|
578
578
|
none: "none",
|
|
579
579
|
step: "step",
|
|
580
580
|
custom: "custom"
|
|
581
581
|
}, oo = [
|
|
582
|
-
{ name: "
|
|
583
|
-
{ name: "
|
|
584
|
-
|
|
585
|
-
], S = {
|
|
582
|
+
{ name: "分段", code: De.step },
|
|
583
|
+
{ name: "自编", code: De.custom }
|
|
584
|
+
], I = {
|
|
586
585
|
choice_1: "choice-1",
|
|
587
586
|
choice_2: "choice-2",
|
|
588
587
|
choice_3: "choice-3",
|
|
@@ -606,7 +605,7 @@ const Lt = {
|
|
|
606
605
|
max: "max",
|
|
607
606
|
col_1: 1,
|
|
608
607
|
col_2: 2
|
|
609
|
-
},
|
|
608
|
+
}, y = {
|
|
610
609
|
article: {
|
|
611
610
|
sub_a: "quesNumIndentFlag",
|
|
612
611
|
// 题号缩进
|
|
@@ -739,12 +738,12 @@ const Lt = {
|
|
|
739
738
|
{
|
|
740
739
|
type: "radio",
|
|
741
740
|
label: "横向分栏",
|
|
742
|
-
key:
|
|
741
|
+
key: y.article.col_a,
|
|
743
742
|
target: [q.headline],
|
|
744
743
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
745
744
|
option: [
|
|
746
|
-
{ name: "1栏", code:
|
|
747
|
-
{ name: "横向2栏", code:
|
|
745
|
+
{ name: "1栏", code: I.col_1 },
|
|
746
|
+
{ name: "横向2栏", code: I.col_2 }
|
|
748
747
|
]
|
|
749
748
|
}
|
|
750
749
|
],
|
|
@@ -752,12 +751,12 @@ const Lt = {
|
|
|
752
751
|
{
|
|
753
752
|
type: "radio",
|
|
754
753
|
label: "横向分栏",
|
|
755
|
-
key:
|
|
754
|
+
key: y.article.col_a,
|
|
756
755
|
target: [q.headline],
|
|
757
756
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
758
757
|
option: [
|
|
759
|
-
{ name: "1栏", code:
|
|
760
|
-
{ name: "横向2栏", code:
|
|
758
|
+
{ name: "1栏", code: I.col_1 },
|
|
759
|
+
{ name: "横向2栏", code: I.col_2 }
|
|
761
760
|
]
|
|
762
761
|
}
|
|
763
762
|
]
|
|
@@ -768,12 +767,12 @@ const Lt = {
|
|
|
768
767
|
{
|
|
769
768
|
type: "radio",
|
|
770
769
|
label: "插入题号样式控制",
|
|
771
|
-
key:
|
|
770
|
+
key: y.article.slove_d,
|
|
772
771
|
code: "slove_insert_sub",
|
|
773
772
|
target: [q.problem],
|
|
774
773
|
option: [
|
|
775
|
-
{ name: "无", code:
|
|
776
|
-
{ name: "下划线", code:
|
|
774
|
+
{ name: "无", code: I.slove_5 },
|
|
775
|
+
{ name: "下划线", code: I.slove_6 }
|
|
777
776
|
]
|
|
778
777
|
}
|
|
779
778
|
]
|
|
@@ -784,10 +783,10 @@ const Lt = {
|
|
|
784
783
|
{
|
|
785
784
|
type: "radio",
|
|
786
785
|
label: "展示样式",
|
|
787
|
-
key:
|
|
786
|
+
key: y.article.choice_a,
|
|
788
787
|
option: [
|
|
789
|
-
{ name: "分布式", code:
|
|
790
|
-
{ name: "集合式", code:
|
|
788
|
+
{ name: "分布式", code: I.choice_1 },
|
|
789
|
+
{ name: "集合式", code: I.choice_2 }
|
|
791
790
|
]
|
|
792
791
|
}
|
|
793
792
|
],
|
|
@@ -796,10 +795,10 @@ const Lt = {
|
|
|
796
795
|
{
|
|
797
796
|
type: "radio",
|
|
798
797
|
label: "展示样式",
|
|
799
|
-
key:
|
|
798
|
+
key: y.article.decide_a,
|
|
800
799
|
option: [
|
|
801
|
-
{ name: "对错", code:
|
|
802
|
-
{ name: "TF", code:
|
|
800
|
+
{ name: "对错", code: I.decide_1 },
|
|
801
|
+
{ name: "TF", code: I.decide_2 }
|
|
803
802
|
]
|
|
804
803
|
}
|
|
805
804
|
],
|
|
@@ -808,11 +807,11 @@ const Lt = {
|
|
|
808
807
|
{
|
|
809
808
|
type: "radio",
|
|
810
809
|
label: "打分框位置",
|
|
811
|
-
key:
|
|
810
|
+
key: y.article.fill_a,
|
|
812
811
|
option: [
|
|
813
|
-
{ name: "跟随下划线", code:
|
|
814
|
-
{ name: "跟随主题干", code:
|
|
815
|
-
{ name: "跟随标点符号", code:
|
|
812
|
+
{ name: "跟随下划线", code: I.fill_1 },
|
|
813
|
+
{ name: "跟随主题干", code: I.fill_2 },
|
|
814
|
+
{ name: "跟随标点符号", code: I.fill_3 }
|
|
816
815
|
]
|
|
817
816
|
}
|
|
818
817
|
],
|
|
@@ -823,26 +822,26 @@ const Lt = {
|
|
|
823
822
|
{
|
|
824
823
|
type: "radio",
|
|
825
824
|
label: "边框控制",
|
|
826
|
-
key:
|
|
825
|
+
key: y.article.slove_a,
|
|
827
826
|
option: [
|
|
828
|
-
{ name: "有边框", code:
|
|
829
|
-
{ name: "无边框", code:
|
|
827
|
+
{ name: "有边框", code: I.slove_1 },
|
|
828
|
+
{ name: "无边框", code: I.slove_2 }
|
|
830
829
|
]
|
|
831
830
|
},
|
|
832
831
|
{
|
|
833
832
|
type: "radio",
|
|
834
833
|
label: "边框样式",
|
|
835
|
-
key:
|
|
836
|
-
show: (e) => e.style[
|
|
834
|
+
key: y.article.slove_c,
|
|
835
|
+
show: (e) => e.style[y.article.slove_a] === I.slove_1,
|
|
837
836
|
option: [
|
|
838
|
-
{ name: "标准边框", code:
|
|
839
|
-
{ name: "简易边框", code:
|
|
837
|
+
{ name: "标准边框", code: I.slove_3 },
|
|
838
|
+
{ name: "简易边框", code: I.slove_4 }
|
|
840
839
|
]
|
|
841
840
|
},
|
|
842
841
|
{
|
|
843
842
|
type: "radio",
|
|
844
843
|
label: "题干显示控制",
|
|
845
|
-
key:
|
|
844
|
+
key: y.article.slove_b,
|
|
846
845
|
option: [
|
|
847
846
|
{ name: "内置题干", code: !0 },
|
|
848
847
|
{ name: "外置题干", code: !1 }
|
|
@@ -851,12 +850,12 @@ const Lt = {
|
|
|
851
850
|
{
|
|
852
851
|
type: "radio",
|
|
853
852
|
label: "插入题号样式控制",
|
|
854
|
-
key:
|
|
853
|
+
key: y.article.slove_d,
|
|
855
854
|
code: "slove_insert_sub",
|
|
856
855
|
target: [q.problem],
|
|
857
856
|
option: [
|
|
858
|
-
{ name: "无", code:
|
|
859
|
-
{ name: "下划线", code:
|
|
857
|
+
{ name: "无", code: I.slove_5 },
|
|
858
|
+
{ name: "下划线", code: I.slove_6 }
|
|
860
859
|
]
|
|
861
860
|
}
|
|
862
861
|
],
|
|
@@ -865,7 +864,7 @@ const Lt = {
|
|
|
865
864
|
{
|
|
866
865
|
type: "slider",
|
|
867
866
|
label: "格子尺寸",
|
|
868
|
-
key:
|
|
867
|
+
key: y.article.art_b,
|
|
869
868
|
detail: !0,
|
|
870
869
|
min: () => 27,
|
|
871
870
|
max: () => 40
|
|
@@ -873,7 +872,7 @@ const Lt = {
|
|
|
873
872
|
{
|
|
874
873
|
type: "input",
|
|
875
874
|
label: "设置字数",
|
|
876
|
-
key:
|
|
875
|
+
key: y.article.art_c,
|
|
877
876
|
detail: !0,
|
|
878
877
|
unit: "字",
|
|
879
878
|
target: [q.problem]
|
|
@@ -881,15 +880,15 @@ const Lt = {
|
|
|
881
880
|
{
|
|
882
881
|
type: "slider",
|
|
883
882
|
label: "字数游标分段",
|
|
884
|
-
key:
|
|
883
|
+
key: y.article.art_d,
|
|
885
884
|
detail: !0,
|
|
886
|
-
max: (e) => Math.floor(e.style[
|
|
885
|
+
max: (e) => Math.floor(e.style[y.article.art_c] / e.style[y.article.art_e]),
|
|
887
886
|
target: [q.problem]
|
|
888
887
|
},
|
|
889
888
|
{
|
|
890
889
|
type: "radio",
|
|
891
890
|
label: "字数分段区间",
|
|
892
|
-
key:
|
|
891
|
+
key: y.article.art_e,
|
|
893
892
|
option: [
|
|
894
893
|
{ name: "80", code: 80 },
|
|
895
894
|
{ name: "100", code: 100 }
|
|
@@ -905,28 +904,28 @@ const Lt = {
|
|
|
905
904
|
{
|
|
906
905
|
type: "radio",
|
|
907
906
|
label: "排列样式",
|
|
908
|
-
key:
|
|
907
|
+
key: y.sheet.choice_a,
|
|
909
908
|
option: [
|
|
910
|
-
{ name: "横排", code:
|
|
911
|
-
{ name: "竖排", code:
|
|
912
|
-
{ name: "分组", code:
|
|
909
|
+
{ name: "横排", code: I.choice_1 },
|
|
910
|
+
{ name: "竖排", code: I.choice_2 },
|
|
911
|
+
{ name: "分组", code: I.choice_3 }
|
|
913
912
|
]
|
|
914
913
|
},
|
|
915
914
|
{
|
|
916
915
|
type: "radio",
|
|
917
916
|
label: "排列方向",
|
|
918
|
-
key:
|
|
919
|
-
show: (e) => e.style[
|
|
917
|
+
key: y.sheet.choice_b,
|
|
918
|
+
show: (e) => e.style[y.sheet.choice_a] !== I.choice_2,
|
|
920
919
|
option: [
|
|
921
|
-
{ name: "横向", code:
|
|
922
|
-
{ name: "纵向", code:
|
|
920
|
+
{ name: "横向", code: I.landscape },
|
|
921
|
+
{ name: "纵向", code: I.portrait }
|
|
923
922
|
]
|
|
924
923
|
},
|
|
925
924
|
{
|
|
926
925
|
type: "radio",
|
|
927
926
|
label: "每组题数",
|
|
928
|
-
key:
|
|
929
|
-
show: (e) => [
|
|
927
|
+
key: y.sheet.choice_c,
|
|
928
|
+
show: (e) => [I.choice_2].includes(e.style[y.sheet.choice_a]),
|
|
930
929
|
option: [
|
|
931
930
|
{ name: "3题", code: 3 },
|
|
932
931
|
{ name: "4题", code: 4 },
|
|
@@ -939,10 +938,10 @@ const Lt = {
|
|
|
939
938
|
{
|
|
940
939
|
type: "radio",
|
|
941
940
|
label: "展示样式",
|
|
942
|
-
key:
|
|
941
|
+
key: y.sheet.decide_a,
|
|
943
942
|
option: [
|
|
944
|
-
{ name: "对错", code:
|
|
945
|
-
{ name: "TF", code:
|
|
943
|
+
{ name: "对错", code: I.decide_1 },
|
|
944
|
+
{ name: "TF", code: I.decide_2 }
|
|
946
945
|
]
|
|
947
946
|
}
|
|
948
947
|
],
|
|
@@ -951,7 +950,7 @@ const Lt = {
|
|
|
951
950
|
{
|
|
952
951
|
type: "radio",
|
|
953
952
|
label: "题干显示控制",
|
|
954
|
-
key:
|
|
953
|
+
key: y.sheet.fill_b,
|
|
955
954
|
option: [
|
|
956
955
|
{ name: "显示题干", code: !0 },
|
|
957
956
|
{ name: "隐藏题干", code: !1 }
|
|
@@ -960,31 +959,31 @@ const Lt = {
|
|
|
960
959
|
{
|
|
961
960
|
type: "radio",
|
|
962
961
|
label: "打分框位置",
|
|
963
|
-
key:
|
|
964
|
-
show: (e) => e.style[
|
|
962
|
+
key: y.sheet.fill_a,
|
|
963
|
+
show: (e) => e.style[y.sheet.fill_b],
|
|
965
964
|
option: [
|
|
966
|
-
{ name: "跟随下划线", code:
|
|
967
|
-
{ name: "跟随主题干", code:
|
|
968
|
-
{ name: "跟随标点符号", code:
|
|
965
|
+
{ name: "跟随下划线", code: I.fill_1 },
|
|
966
|
+
{ name: "跟随主题干", code: I.fill_2 },
|
|
967
|
+
{ name: "跟随标点符号", code: I.fill_3 }
|
|
969
968
|
]
|
|
970
969
|
},
|
|
971
970
|
{
|
|
972
971
|
type: "radio",
|
|
973
972
|
label: "分题换行",
|
|
974
|
-
key:
|
|
973
|
+
key: y.sheet.fill_c,
|
|
975
974
|
target: [q.page, q.headline],
|
|
976
|
-
show: (e) => !e.style[
|
|
975
|
+
show: (e) => !e.style[y.sheet.fill_b],
|
|
977
976
|
option: [
|
|
978
|
-
{ name: "开启", code:
|
|
979
|
-
{ name: "关闭", code:
|
|
977
|
+
{ name: "开启", code: I.fill_1 },
|
|
978
|
+
{ name: "关闭", code: I.fill_2 }
|
|
980
979
|
]
|
|
981
980
|
},
|
|
982
981
|
{
|
|
983
982
|
// 试题自身
|
|
984
983
|
type: "radio",
|
|
985
984
|
label: "每空宽度",
|
|
986
|
-
key:
|
|
987
|
-
show: (e) => !e.style[
|
|
985
|
+
key: y.sheet.fill_d,
|
|
986
|
+
show: (e) => !e.style[y.sheet.fill_b] && !e.children.length,
|
|
988
987
|
option: [
|
|
989
988
|
{ name: "1", code: 1 },
|
|
990
989
|
{ name: "1/2", code: 2 },
|
|
@@ -998,8 +997,8 @@ const Lt = {
|
|
|
998
997
|
// 其它
|
|
999
998
|
type: "radio",
|
|
1000
999
|
label: "每行空数",
|
|
1001
|
-
key:
|
|
1002
|
-
show: (e) => !e.style[
|
|
1000
|
+
key: y.sheet.fill_f,
|
|
1001
|
+
show: (e) => !e.style[y.sheet.fill_b] && e.children.length,
|
|
1003
1002
|
option: [
|
|
1004
1003
|
{ name: "1", code: 1 },
|
|
1005
1004
|
{ name: "1/2", code: 2 },
|
|
@@ -1012,9 +1011,9 @@ const Lt = {
|
|
|
1012
1011
|
{
|
|
1013
1012
|
type: "slider",
|
|
1014
1013
|
label: "每空高度",
|
|
1015
|
-
key:
|
|
1014
|
+
key: y.sheet.fill_e,
|
|
1016
1015
|
target: [q.page, q.headline],
|
|
1017
|
-
show: (e) => !e.style[
|
|
1016
|
+
show: (e) => !e.style[y.sheet.fill_b],
|
|
1018
1017
|
max: () => 20
|
|
1019
1018
|
}
|
|
1020
1019
|
],
|
|
@@ -1023,7 +1022,7 @@ const Lt = {
|
|
|
1023
1022
|
{
|
|
1024
1023
|
type: "radio",
|
|
1025
1024
|
label: "题干显示控制",
|
|
1026
|
-
key:
|
|
1025
|
+
key: y.sheet.mix_a,
|
|
1027
1026
|
option: [
|
|
1028
1027
|
{ name: "显示题干", code: !0 },
|
|
1029
1028
|
{ name: "隐藏题干", code: !1 }
|
|
@@ -1033,10 +1032,10 @@ const Lt = {
|
|
|
1033
1032
|
// 试题自身
|
|
1034
1033
|
type: "radio",
|
|
1035
1034
|
label: "每空宽度",
|
|
1036
|
-
key:
|
|
1035
|
+
key: y.sheet.fill_d,
|
|
1037
1036
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1038
1037
|
target: [q.problem],
|
|
1039
|
-
show: (e) => !e.style[
|
|
1038
|
+
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1040
1039
|
option: [
|
|
1041
1040
|
{ name: "1", code: 1 },
|
|
1042
1041
|
{ name: "1/2", code: 2 },
|
|
@@ -1049,29 +1048,29 @@ const Lt = {
|
|
|
1049
1048
|
{
|
|
1050
1049
|
type: "slider",
|
|
1051
1050
|
label: "每空高度",
|
|
1052
|
-
key:
|
|
1053
|
-
show: (e) => !e.style[
|
|
1051
|
+
key: y.sheet.fill_e,
|
|
1052
|
+
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.fill),
|
|
1054
1053
|
max: () => 20
|
|
1055
1054
|
},
|
|
1056
1055
|
{
|
|
1057
1056
|
type: "radio",
|
|
1058
1057
|
label: "展示样式",
|
|
1059
|
-
key:
|
|
1060
|
-
show: (e) => !e.style[
|
|
1058
|
+
key: y.sheet.decide_a,
|
|
1059
|
+
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1061
1060
|
option: [
|
|
1062
|
-
{ name: "对错", code:
|
|
1063
|
-
{ name: "TF", code:
|
|
1061
|
+
{ name: "对错", code: I.decide_1 },
|
|
1062
|
+
{ name: "TF", code: I.decide_2 }
|
|
1064
1063
|
]
|
|
1065
1064
|
},
|
|
1066
1065
|
{
|
|
1067
1066
|
type: "radio",
|
|
1068
1067
|
label: "排列方向",
|
|
1069
|
-
key:
|
|
1068
|
+
key: y.sheet.choice_b,
|
|
1070
1069
|
target: [q.problem],
|
|
1071
|
-
show: (e) => !e.style[
|
|
1070
|
+
show: (e) => !e.style[y.sheet.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1072
1071
|
option: [
|
|
1073
|
-
{ name: "横向", code:
|
|
1074
|
-
{ name: "竖向", code:
|
|
1072
|
+
{ name: "横向", code: I.landscape },
|
|
1073
|
+
{ name: "竖向", code: I.portrait }
|
|
1075
1074
|
]
|
|
1076
1075
|
}
|
|
1077
1076
|
],
|
|
@@ -1082,7 +1081,7 @@ const Lt = {
|
|
|
1082
1081
|
{
|
|
1083
1082
|
type: "slider",
|
|
1084
1083
|
label: "格子尺寸",
|
|
1085
|
-
key:
|
|
1084
|
+
key: y.article.art_b,
|
|
1086
1085
|
detail: !0,
|
|
1087
1086
|
min: () => 27,
|
|
1088
1087
|
max: () => 40
|
|
@@ -1090,7 +1089,7 @@ const Lt = {
|
|
|
1090
1089
|
{
|
|
1091
1090
|
type: "input",
|
|
1092
1091
|
label: "设置字数",
|
|
1093
|
-
key:
|
|
1092
|
+
key: y.sheet.art_c,
|
|
1094
1093
|
detail: !0,
|
|
1095
1094
|
unit: "字",
|
|
1096
1095
|
target: [q.problem]
|
|
@@ -1098,15 +1097,15 @@ const Lt = {
|
|
|
1098
1097
|
{
|
|
1099
1098
|
type: "slider",
|
|
1100
1099
|
label: "字数游标分段",
|
|
1101
|
-
key:
|
|
1100
|
+
key: y.sheet.art_d,
|
|
1102
1101
|
detail: !0,
|
|
1103
|
-
max: (e) => Math.floor(e.style[
|
|
1102
|
+
max: (e) => Math.floor(e.style[y.sheet.art_c] / e.style[y.sheet.art_e]),
|
|
1104
1103
|
target: [q.problem]
|
|
1105
1104
|
},
|
|
1106
1105
|
{
|
|
1107
1106
|
type: "radio",
|
|
1108
1107
|
label: "字数分段区间",
|
|
1109
|
-
key:
|
|
1108
|
+
key: y.sheet.art_e,
|
|
1110
1109
|
option: [
|
|
1111
1110
|
{ name: "80", code: 80 },
|
|
1112
1111
|
{ name: "100", code: 100 }
|
|
@@ -1120,7 +1119,7 @@ const Lt = {
|
|
|
1120
1119
|
{
|
|
1121
1120
|
type: "radio",
|
|
1122
1121
|
label: "主客分离",
|
|
1123
|
-
key:
|
|
1122
|
+
key: y.sheet.synthesis_a,
|
|
1124
1123
|
option: [
|
|
1125
1124
|
{ name: "分离", code: !0 },
|
|
1126
1125
|
{ name: "不分离", code: !1 }
|
|
@@ -1134,28 +1133,28 @@ const Lt = {
|
|
|
1134
1133
|
{
|
|
1135
1134
|
type: "radio",
|
|
1136
1135
|
label: "排列样式",
|
|
1137
|
-
key:
|
|
1136
|
+
key: y.sheetCard.choice_a,
|
|
1138
1137
|
option: [
|
|
1139
|
-
{ name: "横排", code:
|
|
1140
|
-
{ name: "竖排", code:
|
|
1141
|
-
{ name: "分组", code:
|
|
1138
|
+
{ name: "横排", code: I.choice_1 },
|
|
1139
|
+
{ name: "竖排", code: I.choice_2 },
|
|
1140
|
+
{ name: "分组", code: I.choice_3 }
|
|
1142
1141
|
]
|
|
1143
1142
|
},
|
|
1144
1143
|
{
|
|
1145
1144
|
type: "radio",
|
|
1146
1145
|
label: "排列方向",
|
|
1147
|
-
key:
|
|
1148
|
-
show: (e) => e.style[
|
|
1146
|
+
key: y.sheetCard.choice_b,
|
|
1147
|
+
show: (e) => e.style[y.sheetCard.choice_a] !== I.choice_2,
|
|
1149
1148
|
option: [
|
|
1150
|
-
{ name: "横向", code:
|
|
1151
|
-
{ name: "纵向", code:
|
|
1149
|
+
{ name: "横向", code: I.landscape },
|
|
1150
|
+
{ name: "纵向", code: I.portrait }
|
|
1152
1151
|
]
|
|
1153
1152
|
},
|
|
1154
1153
|
{
|
|
1155
1154
|
type: "radio",
|
|
1156
1155
|
label: "每组题数",
|
|
1157
|
-
key:
|
|
1158
|
-
show: (e) => [
|
|
1156
|
+
key: y.sheetCard.choice_c,
|
|
1157
|
+
show: (e) => [I.choice_2].includes(e.style[y.sheetCard.choice_a]),
|
|
1159
1158
|
option: [
|
|
1160
1159
|
{ name: "3题", code: 3 },
|
|
1161
1160
|
{ name: "4题", code: 4 },
|
|
@@ -1166,8 +1165,8 @@ const Lt = {
|
|
|
1166
1165
|
type: "slider",
|
|
1167
1166
|
label: "列数",
|
|
1168
1167
|
target: [q.headline],
|
|
1169
|
-
key:
|
|
1170
|
-
show: (e) => e.style[
|
|
1168
|
+
key: y.sheetCard.choice_d,
|
|
1169
|
+
show: (e) => e.style[y.sheetCard.choice_a] !== I.choice_2,
|
|
1171
1170
|
min: () => 2,
|
|
1172
1171
|
max: () => 10
|
|
1173
1172
|
}
|
|
@@ -1177,10 +1176,10 @@ const Lt = {
|
|
|
1177
1176
|
{
|
|
1178
1177
|
type: "radio",
|
|
1179
1178
|
label: "展示样式",
|
|
1180
|
-
key:
|
|
1179
|
+
key: y.sheetCard.decide_a,
|
|
1181
1180
|
option: [
|
|
1182
|
-
{ name: "对错", code:
|
|
1183
|
-
{ name: "TF", code:
|
|
1181
|
+
{ name: "对错", code: I.decide_1 },
|
|
1182
|
+
{ name: "TF", code: I.decide_2 }
|
|
1184
1183
|
]
|
|
1185
1184
|
}
|
|
1186
1185
|
],
|
|
@@ -1189,31 +1188,31 @@ const Lt = {
|
|
|
1189
1188
|
{
|
|
1190
1189
|
type: "radio",
|
|
1191
1190
|
label: "打分框位置",
|
|
1192
|
-
key:
|
|
1193
|
-
show: (e) => e.style[
|
|
1191
|
+
key: y.sheetCard.fill_a,
|
|
1192
|
+
show: (e) => e.style[y.sheetCard.fill_b],
|
|
1194
1193
|
option: [
|
|
1195
|
-
{ name: "跟随下划线", code:
|
|
1196
|
-
{ name: "跟随主题干", code:
|
|
1197
|
-
{ name: "跟随标点符号", code:
|
|
1194
|
+
{ name: "跟随下划线", code: I.fill_1 },
|
|
1195
|
+
{ name: "跟随主题干", code: I.fill_2 },
|
|
1196
|
+
{ name: "跟随标点符号", code: I.fill_3 }
|
|
1198
1197
|
]
|
|
1199
1198
|
},
|
|
1200
1199
|
{
|
|
1201
1200
|
type: "radio",
|
|
1202
1201
|
label: "分题换行",
|
|
1203
|
-
key:
|
|
1202
|
+
key: y.sheetCard.fill_c,
|
|
1204
1203
|
target: [q.page, q.headline],
|
|
1205
|
-
show: (e) => !e.style[
|
|
1204
|
+
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1206
1205
|
option: [
|
|
1207
|
-
{ name: "开启", code:
|
|
1208
|
-
{ name: "关闭", code:
|
|
1206
|
+
{ name: "开启", code: I.fill_1 },
|
|
1207
|
+
{ name: "关闭", code: I.fill_2 }
|
|
1209
1208
|
]
|
|
1210
1209
|
},
|
|
1211
1210
|
{
|
|
1212
1211
|
// 试题自身
|
|
1213
1212
|
type: "radio",
|
|
1214
1213
|
label: "每空宽度",
|
|
1215
|
-
key:
|
|
1216
|
-
show: (e) => !e.style[
|
|
1214
|
+
key: y.sheetCard.fill_d,
|
|
1215
|
+
show: (e) => !e.style[y.sheetCard.fill_b] && !e.children.length,
|
|
1217
1216
|
option: [
|
|
1218
1217
|
{ name: "1", code: 1 },
|
|
1219
1218
|
{ name: "1/2", code: 2 },
|
|
@@ -1227,8 +1226,8 @@ const Lt = {
|
|
|
1227
1226
|
// 其它
|
|
1228
1227
|
type: "radio",
|
|
1229
1228
|
label: "每行空数",
|
|
1230
|
-
key:
|
|
1231
|
-
show: (e) => !e.style[
|
|
1229
|
+
key: y.sheetCard.fill_f,
|
|
1230
|
+
show: (e) => !e.style[y.sheetCard.fill_b] && e.children.length,
|
|
1232
1231
|
option: [
|
|
1233
1232
|
{ name: "1", code: 1 },
|
|
1234
1233
|
{ name: "1/2", code: 2 },
|
|
@@ -1241,9 +1240,9 @@ const Lt = {
|
|
|
1241
1240
|
{
|
|
1242
1241
|
type: "slider",
|
|
1243
1242
|
label: "每空高度",
|
|
1244
|
-
key:
|
|
1243
|
+
key: y.sheetCard.fill_e,
|
|
1245
1244
|
target: [q.page, q.headline],
|
|
1246
|
-
show: (e) => !e.style[
|
|
1245
|
+
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1247
1246
|
max: () => 20
|
|
1248
1247
|
}
|
|
1249
1248
|
],
|
|
@@ -1253,10 +1252,10 @@ const Lt = {
|
|
|
1253
1252
|
// 试题自身
|
|
1254
1253
|
type: "radio",
|
|
1255
1254
|
label: "每空宽度",
|
|
1256
|
-
key:
|
|
1255
|
+
key: y.sheetCard.fill_d,
|
|
1257
1256
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1258
1257
|
target: [q.problem],
|
|
1259
|
-
show: (e) => !e.style[
|
|
1258
|
+
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1260
1259
|
option: [
|
|
1261
1260
|
{ name: "1", code: 1 },
|
|
1262
1261
|
{ name: "1/2", code: 2 },
|
|
@@ -1269,29 +1268,29 @@ const Lt = {
|
|
|
1269
1268
|
{
|
|
1270
1269
|
type: "slider",
|
|
1271
1270
|
label: "每空高度",
|
|
1272
|
-
key:
|
|
1273
|
-
show: (e) => !e.style[
|
|
1271
|
+
key: y.sheetCard.fill_e,
|
|
1272
|
+
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheetCard.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.fill),
|
|
1274
1273
|
max: () => 20
|
|
1275
1274
|
},
|
|
1276
1275
|
{
|
|
1277
1276
|
type: "radio",
|
|
1278
1277
|
label: "展示样式",
|
|
1279
|
-
key:
|
|
1280
|
-
show: (e) => !e.style[
|
|
1278
|
+
key: y.sheetCard.decide_a,
|
|
1279
|
+
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheetCard.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1281
1280
|
option: [
|
|
1282
|
-
{ name: "对错", code:
|
|
1283
|
-
{ name: "TF", code:
|
|
1281
|
+
{ name: "对错", code: I.decide_1 },
|
|
1282
|
+
{ name: "TF", code: I.decide_2 }
|
|
1284
1283
|
]
|
|
1285
1284
|
},
|
|
1286
1285
|
{
|
|
1287
1286
|
type: "radio",
|
|
1288
1287
|
label: "排列方向",
|
|
1289
|
-
key:
|
|
1288
|
+
key: y.sheetCard.choice_b,
|
|
1290
1289
|
target: [q.problem],
|
|
1291
|
-
show: (e) => !e.style[
|
|
1290
|
+
show: (e) => !e.style[y.sheetCard.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1292
1291
|
option: [
|
|
1293
|
-
{ name: "横向", code:
|
|
1294
|
-
{ name: "竖向", code:
|
|
1292
|
+
{ name: "横向", code: I.landscape },
|
|
1293
|
+
{ name: "竖向", code: I.portrait }
|
|
1295
1294
|
]
|
|
1296
1295
|
}
|
|
1297
1296
|
],
|
|
@@ -1300,7 +1299,7 @@ const Lt = {
|
|
|
1300
1299
|
{
|
|
1301
1300
|
type: "slider",
|
|
1302
1301
|
label: "格子尺寸",
|
|
1303
|
-
key:
|
|
1302
|
+
key: y.article.art_b,
|
|
1304
1303
|
detail: !0,
|
|
1305
1304
|
min: () => 27,
|
|
1306
1305
|
max: () => 40
|
|
@@ -1308,7 +1307,7 @@ const Lt = {
|
|
|
1308
1307
|
{
|
|
1309
1308
|
type: "input",
|
|
1310
1309
|
label: "设置字数",
|
|
1311
|
-
key:
|
|
1310
|
+
key: y.sheetCard.art_c,
|
|
1312
1311
|
detail: !0,
|
|
1313
1312
|
unit: "字",
|
|
1314
1313
|
target: [q.problem]
|
|
@@ -1316,15 +1315,15 @@ const Lt = {
|
|
|
1316
1315
|
{
|
|
1317
1316
|
type: "slider",
|
|
1318
1317
|
label: "字数游标分段",
|
|
1319
|
-
key:
|
|
1318
|
+
key: y.sheetCard.art_d,
|
|
1320
1319
|
detail: !0,
|
|
1321
|
-
max: (e) => Math.floor(e.style[
|
|
1320
|
+
max: (e) => Math.floor(e.style[y.sheetCard.art_c] / e.style[y.sheetCard.art_e]),
|
|
1322
1321
|
target: [q.problem]
|
|
1323
1322
|
},
|
|
1324
1323
|
{
|
|
1325
1324
|
type: "radio",
|
|
1326
1325
|
label: "字数分段区间",
|
|
1327
|
-
key:
|
|
1326
|
+
key: y.sheetCard.art_e,
|
|
1328
1327
|
option: [
|
|
1329
1328
|
{ name: "80", code: 80 },
|
|
1330
1329
|
{ name: "100", code: 100 }
|
|
@@ -1338,7 +1337,7 @@ const Lt = {
|
|
|
1338
1337
|
{
|
|
1339
1338
|
type: "radio",
|
|
1340
1339
|
label: "主客分离",
|
|
1341
|
-
key:
|
|
1340
|
+
key: y.sheetCard.synthesis_a,
|
|
1342
1341
|
option: [
|
|
1343
1342
|
{ name: "分离", code: !0 },
|
|
1344
1343
|
{ name: "不分离", code: !1 }
|
|
@@ -1380,7 +1379,7 @@ const Lt = {
|
|
|
1380
1379
|
{ name: "小四", code: "16px", alias: "s4" },
|
|
1381
1380
|
{ name: "五号", code: "14px", alias: "5" },
|
|
1382
1381
|
{ name: "小五", code: "12px", alias: "s5" }
|
|
1383
|
-
],
|
|
1382
|
+
], Ie = {
|
|
1384
1383
|
stand: {
|
|
1385
1384
|
name: "标准",
|
|
1386
1385
|
code: "stand",
|
|
@@ -1421,7 +1420,7 @@ const Lt = {
|
|
|
1421
1420
|
code: "star",
|
|
1422
1421
|
value: "star"
|
|
1423
1422
|
}
|
|
1424
|
-
},
|
|
1423
|
+
}, He = {
|
|
1425
1424
|
left_down: {
|
|
1426
1425
|
name: "左下",
|
|
1427
1426
|
code: "left_down",
|
|
@@ -1455,12 +1454,12 @@ const Lt = {
|
|
|
1455
1454
|
column: Yt,
|
|
1456
1455
|
columnMargin: Et,
|
|
1457
1456
|
defaultProblemLayout: ao,
|
|
1458
|
-
fillSize:
|
|
1457
|
+
fillSize: Ie,
|
|
1459
1458
|
fontFamily: so,
|
|
1460
1459
|
fontSize: ro,
|
|
1461
1460
|
fontWeight: io,
|
|
1462
1461
|
formatConfig: Kt,
|
|
1463
|
-
halfScoreType:
|
|
1462
|
+
halfScoreType: Ue,
|
|
1464
1463
|
halfScoreTypeOption: to,
|
|
1465
1464
|
layoutMode: Xt,
|
|
1466
1465
|
otherLayout: no,
|
|
@@ -1468,16 +1467,16 @@ const Lt = {
|
|
|
1468
1467
|
paddDiff: qt,
|
|
1469
1468
|
pageMargin: Ut,
|
|
1470
1469
|
pagePadding: rt,
|
|
1471
|
-
pagePointPosition:
|
|
1470
|
+
pagePointPosition: He,
|
|
1472
1471
|
pageSize: b,
|
|
1473
1472
|
pageTitleBlockCol: jt,
|
|
1474
|
-
paper:
|
|
1473
|
+
paper: ze,
|
|
1475
1474
|
problemLayout: lo,
|
|
1476
|
-
problemLayoutKey:
|
|
1477
|
-
problemLayoutVal:
|
|
1475
|
+
problemLayoutKey: y,
|
|
1476
|
+
problemLayoutVal: I,
|
|
1478
1477
|
scoreLineSize: je,
|
|
1479
1478
|
scoreLineStyle: Je,
|
|
1480
|
-
scoreLineType:
|
|
1479
|
+
scoreLineType: De,
|
|
1481
1480
|
scoreLineTypeOption: oo,
|
|
1482
1481
|
seatType: ve,
|
|
1483
1482
|
seatTypeOption: Vt,
|
|
@@ -1486,7 +1485,7 @@ const Lt = {
|
|
|
1486
1485
|
subIndentOption: eo,
|
|
1487
1486
|
subRange: lt,
|
|
1488
1487
|
subRangeOption: Zt,
|
|
1489
|
-
subRule:
|
|
1488
|
+
subRule: Qe,
|
|
1490
1489
|
subRuleOption: Jt,
|
|
1491
1490
|
toolGroup: q
|
|
1492
1491
|
}, Symbol.toStringTag, { value: "Module" })), ct = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
|
|
@@ -1585,16 +1584,16 @@ const Lt = {
|
|
|
1585
1584
|
lb: { left: `${t.padding.left - 20}px`, bottom: `${t.padding.bottom - 20}px` },
|
|
1586
1585
|
rb: { right: `${t.padding.right - 20}px`, bottom: `${t.padding.bottom - 20}px` }
|
|
1587
1586
|
})[l], a = () => ({
|
|
1588
|
-
[
|
|
1587
|
+
[He.left_down.code]: {
|
|
1589
1588
|
left: `${t.padding.left - 20 + 100}px`,
|
|
1590
1589
|
bottom: `${t.padding.bottom - 20}px`
|
|
1591
1590
|
},
|
|
1592
|
-
[
|
|
1591
|
+
[He.right_up.code]: {
|
|
1593
1592
|
right: `${t.padding.right - 20 + 100}px`,
|
|
1594
1593
|
top: `${t.padding.top - 20}px`
|
|
1595
1594
|
}
|
|
1596
1595
|
})[t.layout.pagePoint], n = (l, i) => {
|
|
1597
|
-
const c = t.columnContentWidth + t.columnMargin, u = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10,
|
|
1596
|
+
const c = t.columnContentWidth + t.columnMargin, u = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, m = {
|
|
1598
1597
|
t: {
|
|
1599
1598
|
top: `${t.padding.top - 20}px`
|
|
1600
1599
|
},
|
|
@@ -1602,10 +1601,10 @@ const Lt = {
|
|
|
1602
1601
|
bottom: `${t.padding.bottom - 20}px`
|
|
1603
1602
|
}
|
|
1604
1603
|
};
|
|
1605
|
-
return { left: `${l * c + u}px`, ...
|
|
1604
|
+
return { left: `${l * c + u}px`, ...m[i] };
|
|
1606
1605
|
}, r = (l) => {
|
|
1607
|
-
const i = (b[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` },
|
|
1608
|
-
return { top: `${i *
|
|
1606
|
+
const i = (b[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((O) => O === l);
|
|
1607
|
+
return { top: `${i * m + t.padding.top - 10}px`, width: "11px", ...u };
|
|
1609
1608
|
};
|
|
1610
1609
|
return (l, i) => {
|
|
1611
1610
|
var c;
|
|
@@ -1617,11 +1616,11 @@ const Lt = {
|
|
|
1617
1616
|
"data-xine": x(C).point + u
|
|
1618
1617
|
}, null, 12, yo)), 64)),
|
|
1619
1618
|
(s(!0), d(M, null, V((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(M, { key: u }, [
|
|
1620
|
-
(s(), d(M, null, V(["t", "b"], (
|
|
1621
|
-
key:
|
|
1619
|
+
(s(), d(M, null, V(["t", "b"], (m) => g("span", {
|
|
1620
|
+
key: m,
|
|
1622
1621
|
class: "absolute bg-black w-8 point_item",
|
|
1623
|
-
style: W(n(u,
|
|
1624
|
-
"data-xine": x(C).point +
|
|
1622
|
+
style: W(n(u, m)),
|
|
1623
|
+
"data-xine": x(C).point + m
|
|
1625
1624
|
}, null, 12, _o)), 64))
|
|
1626
1625
|
], 64))), 128)),
|
|
1627
1626
|
(s(), d(M, null, V(["l", "r"], (u) => g("span", {
|
|
@@ -1635,17 +1634,17 @@ const Lt = {
|
|
|
1635
1634
|
style: W(a()),
|
|
1636
1635
|
"data-xine": x(C).page
|
|
1637
1636
|
}, [
|
|
1638
|
-
(s(!0), d(M, null, V(l.currentPage + 1, (u,
|
|
1637
|
+
(s(!0), d(M, null, V(l.currentPage + 1, (u, m) => (s(), d("span", {
|
|
1639
1638
|
key: u,
|
|
1640
1639
|
class: "inline-block bg-black mx-2 page_item",
|
|
1641
|
-
"data-xine": x(C).page_item +
|
|
1640
|
+
"data-xine": x(C).page_item + m
|
|
1642
1641
|
}, null, 8, bo))), 128))
|
|
1643
1642
|
], 12, go),
|
|
1644
1643
|
l.currentPage % 2 ? P("", !0) : (s(), d("span", {
|
|
1645
1644
|
key: 0,
|
|
1646
1645
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1647
1646
|
style: W({ right: `${l.padding.right - 12}px` })
|
|
1648
|
-
}, "提示:本卷" + X((c = x(
|
|
1647
|
+
}, "提示:本卷" + X((c = x(ze).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
|
|
1649
1648
|
g("span", {
|
|
1650
1649
|
class: "absolute text-sm red_sheet",
|
|
1651
1650
|
style: W({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
|
|
@@ -1678,7 +1677,7 @@ const ce = (e, t) => {
|
|
|
1678
1677
|
emits: ["change", "input", "focus", "blur"],
|
|
1679
1678
|
setup(e, { emit: t }) {
|
|
1680
1679
|
const o = e, a = Q(o.value), n = Q(!1);
|
|
1681
|
-
|
|
1680
|
+
Ae(() => o.value, () => {
|
|
1682
1681
|
a.value = o.value;
|
|
1683
1682
|
});
|
|
1684
1683
|
const r = (u) => {
|
|
@@ -1692,7 +1691,7 @@ const ce = (e, t) => {
|
|
|
1692
1691
|
}, c = () => {
|
|
1693
1692
|
t("blur", o.type === "number" ? parseFloat(`${a.value}`) : a.value), n.value = !1;
|
|
1694
1693
|
};
|
|
1695
|
-
return (u,
|
|
1694
|
+
return (u, m) => (s(), d("div", {
|
|
1696
1695
|
class: te(["flex-1 flex items-center border rounded-lg", u.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
|
|
1697
1696
|
}, [
|
|
1698
1697
|
g("div", xo, [
|
|
@@ -1735,7 +1734,7 @@ const ce = (e, t) => {
|
|
|
1735
1734
|
onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
|
|
1736
1735
|
}, null, 8, ["value", "style"]));
|
|
1737
1736
|
}
|
|
1738
|
-
}),
|
|
1737
|
+
}), To = ["width", "height"], Io = ["xlink:href"], So = /* @__PURE__ */ Z({
|
|
1739
1738
|
__name: "index",
|
|
1740
1739
|
props: {
|
|
1741
1740
|
width: { default: 1.5 },
|
|
@@ -1753,12 +1752,12 @@ const ce = (e, t) => {
|
|
|
1753
1752
|
width: n.width + "rem",
|
|
1754
1753
|
height: (n.height || n.width) + "rem"
|
|
1755
1754
|
}, [
|
|
1756
|
-
g("use", { "xlink:href": a.value }, null, 8,
|
|
1757
|
-
], 8,
|
|
1755
|
+
g("use", { "xlink:href": a.value }, null, 8, Io)
|
|
1756
|
+
], 8, To))
|
|
1758
1757
|
]));
|
|
1759
1758
|
}
|
|
1760
1759
|
});
|
|
1761
|
-
const _e = /* @__PURE__ */ ce(
|
|
1760
|
+
const _e = /* @__PURE__ */ ce(So, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
|
|
1762
1761
|
key: 0,
|
|
1763
1762
|
class: "flex items-center"
|
|
1764
1763
|
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ Z({
|
|
@@ -1781,7 +1780,7 @@ const _e = /* @__PURE__ */ ce(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1781
1780
|
g("p", Eo, "ID:" + X(t.code), 1)
|
|
1782
1781
|
]));
|
|
1783
1782
|
}
|
|
1784
|
-
}), Po = ["innerHTML"],
|
|
1783
|
+
}), Po = ["innerHTML"], Oe = /* @__PURE__ */ Z({
|
|
1785
1784
|
__name: "index",
|
|
1786
1785
|
props: {
|
|
1787
1786
|
value: {},
|
|
@@ -1833,13 +1832,13 @@ const _e = /* @__PURE__ */ ce(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1833
1832
|
"data-xine": x(C).art_code
|
|
1834
1833
|
}, null, 8, Ao),
|
|
1835
1834
|
g("div", No, [
|
|
1836
|
-
K(
|
|
1835
|
+
K(Oe, {
|
|
1837
1836
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1838
1837
|
value: l.info.title,
|
|
1839
1838
|
style: W(l.fontConfig.titleStyle),
|
|
1840
1839
|
onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
|
|
1841
1840
|
}, null, 8, ["value", "style"]),
|
|
1842
|
-
l.layout.secTitleFlag ? (s(), U(
|
|
1841
|
+
l.layout.secTitleFlag ? (s(), U(Oe, {
|
|
1843
1842
|
key: 0,
|
|
1844
1843
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1845
1844
|
value: l.info.secTitle,
|
|
@@ -1849,7 +1848,7 @@ const _e = /* @__PURE__ */ ce(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1849
1848
|
g("div", Bo, [
|
|
1850
1849
|
l.layout.examExtentFlag ? (s(), d("p", Oo, [
|
|
1851
1850
|
zo,
|
|
1852
|
-
K(
|
|
1851
|
+
K(Oe, {
|
|
1853
1852
|
class: "flex-1",
|
|
1854
1853
|
value: l.info.extent,
|
|
1855
1854
|
onChange: i[2] || (i[2] = (c) => t("change", { extent: c }))
|
|
@@ -1870,7 +1869,7 @@ const _e = /* @__PURE__ */ ce(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1870
1869
|
])) : P("", !0),
|
|
1871
1870
|
l.layout.authorFlag ? (s(), d("p", Wo, [
|
|
1872
1871
|
Yo,
|
|
1873
|
-
K(
|
|
1872
|
+
K(Oe, {
|
|
1874
1873
|
class: "flex-1",
|
|
1875
1874
|
value: l.info.author,
|
|
1876
1875
|
onChange: i[4] || (i[4] = (c) => t("change", { author: c }))
|
|
@@ -1878,7 +1877,7 @@ const _e = /* @__PURE__ */ ce(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1878
1877
|
])) : P("", !0),
|
|
1879
1878
|
l.layout.reviewerFlag ? (s(), d("p", qo, [
|
|
1880
1879
|
Qo,
|
|
1881
|
-
K(
|
|
1880
|
+
K(Oe, {
|
|
1882
1881
|
class: "flex-1",
|
|
1883
1882
|
value: l.info.reviewer,
|
|
1884
1883
|
onChange: i[5] || (i[5] = (c) => t("change", { reviewer: c }))
|
|
@@ -2037,7 +2036,7 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2037
2036
|
])), 64))
|
|
2038
2037
|
]));
|
|
2039
2038
|
}
|
|
2040
|
-
}), fa = (e) => (
|
|
2039
|
+
}), fa = (e) => (Re("data-v-44e44996"), e = e(), Ge(), e), ga = {
|
|
2041
2040
|
key: 0,
|
|
2042
2041
|
class: "flex"
|
|
2043
2042
|
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ g("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
|
|
@@ -2078,16 +2077,16 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2078
2077
|
]));
|
|
2079
2078
|
}
|
|
2080
2079
|
});
|
|
2081
|
-
const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]),
|
|
2080
|
+
const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), Ge(), e), Ca = {
|
|
2082
2081
|
key: 0,
|
|
2083
2082
|
class: "flex border mt-2 red_sheet"
|
|
2084
|
-
}, $a = /* @__PURE__ */
|
|
2083
|
+
}, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Ta = { class: "flex-1 overflow-hidden" }, Ia = { class: "flex items-center flex-1 pl-2" }, Sa = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "[", -1)), Ma = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", { class: "ml-4" }, "]", -1)), Pa = [
|
|
2085
2084
|
Ea,
|
|
2086
2085
|
Ma
|
|
2087
|
-
], Da = /* @__PURE__ */
|
|
2086
|
+
], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2088
2087
|
/* @__PURE__ */ g("span", null, "正确填涂示例"),
|
|
2089
2088
|
/* @__PURE__ */ g("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2090
|
-
], -1)), Aa = /* @__PURE__ */
|
|
2089
|
+
], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ Z({
|
|
2091
2090
|
__name: "notice",
|
|
2092
2091
|
props: {
|
|
2093
2092
|
layout: {},
|
|
@@ -2110,7 +2109,7 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2110
2109
|
return (a, n) => (s(), d(M, null, [
|
|
2111
2110
|
a.layout.noteFlag ? (s(), d("div", Ca, [
|
|
2112
2111
|
$a,
|
|
2113
|
-
g("div",
|
|
2112
|
+
g("div", Ta, [
|
|
2114
2113
|
(s(!0), d(M, null, V(o.value, (r) => (s(), d("p", {
|
|
2115
2114
|
key: r,
|
|
2116
2115
|
class: "px-2 origin-left scale-75 tip_item"
|
|
@@ -2121,8 +2120,8 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2121
2120
|
key: 1,
|
|
2122
2121
|
class: te(["flex border text-sm red_sheet", a.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2123
2122
|
}, [
|
|
2124
|
-
g("p",
|
|
2125
|
-
|
|
2123
|
+
g("p", Ia, [
|
|
2124
|
+
Sa,
|
|
2126
2125
|
g("span", La, [
|
|
2127
2126
|
K(_e, { name: "rightArrow" }),
|
|
2128
2127
|
g("span", {
|
|
@@ -2197,12 +2196,12 @@ const za = {
|
|
|
2197
2196
|
const o = e, a = Q(), n = Q();
|
|
2198
2197
|
t({ col: a, colView: n });
|
|
2199
2198
|
const r = A(() => {
|
|
2200
|
-
const { top: c, width: u, height:
|
|
2199
|
+
const { top: c, width: u, height: m, left: O } = o.styleInfo;
|
|
2201
2200
|
return {
|
|
2202
2201
|
top: `${parseFloat(c) - (o.currentColumn ? ke.top : 1)}px`,
|
|
2203
2202
|
left: `${parseFloat(O) - ke.left}px`,
|
|
2204
2203
|
width: `${parseFloat(u) + ke.left + ke.right}px`,
|
|
2205
|
-
height: `${parseFloat(
|
|
2204
|
+
height: `${parseFloat(m) + (o.currentColumn ? ke.top : 0) + ke.bottom}px`
|
|
2206
2205
|
};
|
|
2207
2206
|
}), l = A(() => ({
|
|
2208
2207
|
left: `${ke.left - 1}px`,
|
|
@@ -2239,7 +2238,7 @@ const za = {
|
|
|
2239
2238
|
], 64));
|
|
2240
2239
|
}
|
|
2241
2240
|
});
|
|
2242
|
-
const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (
|
|
2241
|
+
const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), Ge(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
|
|
2243
2242
|
ja
|
|
2244
2243
|
], Va = ["data-xine"], Za = /* @__PURE__ */ Z({
|
|
2245
2244
|
__name: "bind",
|
|
@@ -2328,26 +2327,28 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2328
2327
|
},
|
|
2329
2328
|
setup(e) {
|
|
2330
2329
|
const t = e, o = Q(), a = Q(!1), n = Q(!1), r = Q(!1), l = Q([]), i = A(() => t.layout.scoreAddStars === Je.star.code);
|
|
2331
|
-
|
|
2330
|
+
Ae(() => [t.item.score], () => c()), Ve(() => {
|
|
2332
2331
|
c();
|
|
2333
2332
|
});
|
|
2334
2333
|
const c = () => {
|
|
2335
2334
|
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Ze(() => {
|
|
2336
|
-
let
|
|
2337
|
-
if (t.item.scoreLineType ===
|
|
2338
|
-
|
|
2339
|
-
else
|
|
2335
|
+
let m = [];
|
|
2336
|
+
if (t.item.scoreLineType === De.custom)
|
|
2337
|
+
m = [[...t.item.customScore, 0]];
|
|
2338
|
+
else if (t.item.scoreLineType === De.step)
|
|
2339
|
+
m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((O) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * O)).reverse());
|
|
2340
|
+
else if (t.item.scoreLineType === De.none) {
|
|
2340
2341
|
const O = o.value.offsetWidth, h = je[t.layout.scoreLineSize].value + 1;
|
|
2341
|
-
a.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, a.value ? (
|
|
2342
|
+
a.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, a.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((E) => E && E * 10).reverse()), m.push([...Array(10).keys()].reverse()), r.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2342
2343
|
}
|
|
2343
|
-
t.item.hasHalfScore &&
|
|
2344
|
+
t.item.hasHalfScore && m.push([0.5]), l.value = m, n.value = !!m.flat().find((O) => `${O}`.length > 3);
|
|
2344
2345
|
});
|
|
2345
|
-
}, u = (
|
|
2346
|
-
return (
|
|
2347
|
-
|
|
2346
|
+
}, u = (m) => t.item.hasHalfScore ? [C.score_half, C.score_base, C.score_tenbit][l.value.length - m - 1] : [C.score_base, C.score_tenbit][l.value.length - m - 1];
|
|
2347
|
+
return (m, O) => m.layout.handReadFlag ? (s(), d(M, { key: 0 }, [
|
|
2348
|
+
m.layout.simpleScoreBarFlag && !m.static ? (s(), U(rl, {
|
|
2348
2349
|
key: 0,
|
|
2349
|
-
item:
|
|
2350
|
-
layout:
|
|
2350
|
+
item: m.item,
|
|
2351
|
+
layout: m.layout
|
|
2351
2352
|
}, null, 8, ["item", "layout"])) : (s(), d("div", {
|
|
2352
2353
|
key: 1,
|
|
2353
2354
|
ref_key: "view",
|
|
@@ -2356,22 +2357,22 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2356
2357
|
"data-block": x(we),
|
|
2357
2358
|
"data-xine": x(C).score
|
|
2358
2359
|
}, [
|
|
2359
|
-
(s(!0), d(M, null, V(l.value, (h,
|
|
2360
|
+
(s(!0), d(M, null, V(l.value, (h, E) => (s(), d("ul", {
|
|
2360
2361
|
class: "flex divide-x divide-solid",
|
|
2361
|
-
"data-xine": u(
|
|
2362
|
+
"data-xine": u(E)
|
|
2362
2363
|
}, [
|
|
2363
2364
|
(s(!0), d(M, null, V(h, (Y) => (s(), d("li", {
|
|
2364
2365
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2365
|
-
style: W({ width: `${x(je)[
|
|
2366
|
+
style: W({ width: `${x(je)[m.layout.scoreLineSize].value}px` }),
|
|
2366
2367
|
"data-xine": Y.toString() ? x(C).score_item : ""
|
|
2367
2368
|
}, [
|
|
2368
2369
|
g("span", {
|
|
2369
2370
|
class: te(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
|
|
2370
|
-
}, X(
|
|
2371
|
+
}, X(m.layout.minusFlag && Y.toString().length && !i.value ? "-" : "") + X(Y), 3),
|
|
2371
2372
|
i.value && Y.toString().length ? (s(), U(_e, {
|
|
2372
2373
|
key: 0,
|
|
2373
2374
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2374
|
-
name:
|
|
2375
|
+
name: m.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2375
2376
|
width: n.value ? 0.9 : 1.2
|
|
2376
2377
|
}, null, 8, ["name", "width"])) : P("", !0)
|
|
2377
2378
|
], 12, ul))), 256))
|
|
@@ -2379,7 +2380,7 @@ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2379
2380
|
], 8, cl))
|
|
2380
2381
|
], 64)) : P("", !0);
|
|
2381
2382
|
}
|
|
2382
|
-
}), At = (e) => (
|
|
2383
|
+
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), Ge(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ Z({
|
|
2383
2384
|
__name: "writeScore",
|
|
2384
2385
|
props: {
|
|
2385
2386
|
info: {},
|
|
@@ -2413,7 +2414,7 @@ const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2413
2414
|
}, null, 8, fl));
|
|
2414
2415
|
}
|
|
2415
2416
|
});
|
|
2416
|
-
const
|
|
2417
|
+
const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ Z({
|
|
2417
2418
|
__name: "notArea",
|
|
2418
2419
|
props: {
|
|
2419
2420
|
item: {}
|
|
@@ -2424,19 +2425,19 @@ const Ae = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2424
2425
|
"data-tag": t.item.__tag__,
|
|
2425
2426
|
"data-block": x(dt)
|
|
2426
2427
|
}, [
|
|
2427
|
-
K(
|
|
2428
|
+
K(Ne, {
|
|
2428
2429
|
"data-content": t.item.id,
|
|
2429
2430
|
data: t.item.content
|
|
2430
2431
|
}, null, 8, ["data-content", "data"])
|
|
2431
2432
|
], 8, bl));
|
|
2432
2433
|
}
|
|
2433
|
-
}), wl = (e) => (
|
|
2434
|
+
}), wl = (e) => (Re("data-v-7092617e"), e = e(), Ge(), e), xl = ["data-tag", "data-block"], kl = {
|
|
2434
2435
|
key: 0,
|
|
2435
2436
|
class: "flex-shrink-0"
|
|
2436
|
-
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 },
|
|
2437
|
+
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Tl = {
|
|
2437
2438
|
key: 1,
|
|
2438
2439
|
class: "indent-2"
|
|
2439
|
-
},
|
|
2440
|
+
}, Il = { key: 0 }, Sl = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ g("span", null, "我选答的题目是:", -1)), Ml = { class: "flex items-center" }, Pl = ["data-xine"], Dl = /* @__PURE__ */ Z({
|
|
2440
2441
|
__name: "index",
|
|
2441
2442
|
props: {
|
|
2442
2443
|
item: {},
|
|
@@ -2461,17 +2462,17 @@ const Ae = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2461
2462
|
g("div", Cl, [
|
|
2462
2463
|
g("span", null, X(i.item.name), 1),
|
|
2463
2464
|
i.item.desc ? (s(), d("span", $l, "(" + X(i.item.desc) + ")", 1)) : P("", !0),
|
|
2464
|
-
i.layout.scoreTipFlag ? (s(), d("span",
|
|
2465
|
+
i.layout.scoreTipFlag ? (s(), d("span", Tl, "(共" + X(r.value) + "题,共" + X(i.item.totalScore) + "分)", 1)) : P("", !0)
|
|
2465
2466
|
]),
|
|
2466
|
-
a.value || n.value ? (s(), d("div",
|
|
2467
|
-
a.value ? (s(), d("p",
|
|
2467
|
+
a.value || n.value ? (s(), d("div", Il, [
|
|
2468
|
+
a.value ? (s(), d("p", Sl, "请在以下" + X(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2468
2469
|
g("p", {
|
|
2469
2470
|
class: "flex flex-wrap",
|
|
2470
2471
|
"data-block": x(we),
|
|
2471
2472
|
"data-xine": x(C).choice + i.item.id
|
|
2472
2473
|
}, [
|
|
2473
2474
|
El,
|
|
2474
|
-
(s(!0), d(M, null, V(l.value, (u,
|
|
2475
|
+
(s(!0), d(M, null, V(l.value, (u, m) => (s(), d("span", Ml, [
|
|
2475
2476
|
g("span", null, X(u), 1),
|
|
2476
2477
|
g("span", {
|
|
2477
2478
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
@@ -2507,7 +2508,7 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2507
2508
|
}, [
|
|
2508
2509
|
(s(!0), d(M, null, V(t.item.optList, (a, n) => (s(), d("span", {
|
|
2509
2510
|
class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
|
|
2510
|
-
style: W({ width: `${x(
|
|
2511
|
+
style: W({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
|
|
2511
2512
|
"data-xine": x(C).fill + n
|
|
2512
2513
|
}, [
|
|
2513
2514
|
K(_e, {
|
|
@@ -2533,14 +2534,14 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2533
2534
|
},
|
|
2534
2535
|
setup(e) {
|
|
2535
2536
|
const t = e, o = A(() => ({
|
|
2536
|
-
width: `${
|
|
2537
|
-
height: `${
|
|
2537
|
+
width: `${Ie[t.layout.fillSize].value + 1}px`,
|
|
2538
|
+
height: `${Ie[t.layout.fillSize].height + 1}px`
|
|
2538
2539
|
}));
|
|
2539
2540
|
return (a, n) => (s(), d("div", {
|
|
2540
2541
|
class: "flex red_sheet",
|
|
2541
2542
|
"data-block": x(we)
|
|
2542
2543
|
}, [
|
|
2543
|
-
a.item.style[x(
|
|
2544
|
+
a.item.style[x(y)[a.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(M, { key: 0 }, [
|
|
2544
2545
|
g("span", {
|
|
2545
2546
|
class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2546
2547
|
style: W(o.value),
|
|
@@ -2619,7 +2620,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2619
2620
|
return (o, a) => (s(), d(M, null, [
|
|
2620
2621
|
g("div", {
|
|
2621
2622
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2622
|
-
style: W({ height: `${20 + o.item.style[x(
|
|
2623
|
+
style: W({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
2623
2624
|
"data-xine": x(C).fill_line
|
|
2624
2625
|
}, null, 12, rn),
|
|
2625
2626
|
o.layout.handReadFlag ? (s(), U(sn, {
|
|
@@ -2658,7 +2659,7 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2658
2659
|
}, null, 8, ["item", "layout"])
|
|
2659
2660
|
])
|
|
2660
2661
|
], 8, pn)),
|
|
2661
|
-
K(
|
|
2662
|
+
K(Ne, {
|
|
2662
2663
|
"data-area": t.item.id,
|
|
2663
2664
|
data: t.item.answerArea
|
|
2664
2665
|
}, null, 8, ["data-area", "data"])
|
|
@@ -2691,11 +2692,11 @@ const kn = /* @__PURE__ */ ce(wn, [["render", xn]]), Cn = {};
|
|
|
2691
2692
|
function $n(e, t) {
|
|
2692
2693
|
return null;
|
|
2693
2694
|
}
|
|
2694
|
-
const
|
|
2695
|
-
function
|
|
2695
|
+
const Tn = /* @__PURE__ */ ce(Cn, [["render", $n]]), In = {};
|
|
2696
|
+
function Sn(e, t) {
|
|
2696
2697
|
return null;
|
|
2697
2698
|
}
|
|
2698
|
-
const Ln = /* @__PURE__ */ ce(
|
|
2699
|
+
const Ln = /* @__PURE__ */ ce(In, [["render", Sn]]), Fn = {};
|
|
2699
2700
|
function En(e, t) {
|
|
2700
2701
|
return null;
|
|
2701
2702
|
}
|
|
@@ -2711,12 +2712,12 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2711
2712
|
},
|
|
2712
2713
|
setup(e) {
|
|
2713
2714
|
const t = e, o = Q(0), a = Q({}), n = Q(), r = Q(), l = Q([]), i = A(() => {
|
|
2714
|
-
const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[
|
|
2715
|
+
const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, O.value.length, 0);
|
|
2715
2716
|
return h ? Math.ceil(h / (o.value || h)) : 0;
|
|
2716
|
-
}), c = A(() => parseInt(t.item.style[
|
|
2717
|
+
}), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), u = A(() => ({
|
|
2717
2718
|
width: `${o.value * c.value}px`,
|
|
2718
2719
|
height: `${c.value}px`
|
|
2719
|
-
})),
|
|
2720
|
+
})), m = A(() => ({
|
|
2720
2721
|
width: `${c.value}px`
|
|
2721
2722
|
})), O = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
2722
2723
|
return Ve(() => {
|
|
@@ -2731,9 +2732,9 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2731
2732
|
};
|
|
2732
2733
|
}, 20);
|
|
2733
2734
|
});
|
|
2734
|
-
const h = Math.floor(parseInt(t.item.style[
|
|
2735
|
-
l.value = [...Array(Math.min(t.item.style[
|
|
2736
|
-
}), (h,
|
|
2735
|
+
const h = Math.floor(parseInt(t.item.style[y[t.layout.mode].art_c]) / t.item.style[y[t.layout.mode].art_e]), E = Math.round(h / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * t.item.style[y[t.layout.mode].art_e];
|
|
2736
|
+
l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, h) - 1 || 0).keys()].map((Y) => (Y + 1) * E).concat(parseInt(t.item.style[y[t.layout.mode].art_c])).filter((Y) => Y);
|
|
2737
|
+
}), (h, E) => (s(), d("div", {
|
|
2737
2738
|
class: "w-full relative min-h-[10rem]",
|
|
2738
2739
|
ref_key: "view",
|
|
2739
2740
|
ref: n
|
|
@@ -2751,7 +2752,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2751
2752
|
}, null, 8, ["item", "layout"])
|
|
2752
2753
|
])
|
|
2753
2754
|
], 8, Nn)),
|
|
2754
|
-
h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(
|
|
2755
|
+
h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(Ne, {
|
|
2755
2756
|
key: 1,
|
|
2756
2757
|
data: h.item.beforeArt,
|
|
2757
2758
|
"data-bart": h.item.id,
|
|
@@ -2773,20 +2774,20 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2773
2774
|
"data-size": h.item.startAnswerLen + (J + 1) * o.value,
|
|
2774
2775
|
style: W(u.value)
|
|
2775
2776
|
}, [
|
|
2776
|
-
h.item.artBlock ? (s(!0), d(M, { key: 0 }, V(o.value, (
|
|
2777
|
+
h.item.artBlock ? (s(!0), d(M, { key: 0 }, V(o.value, (F, D) => (s(), d("span", {
|
|
2777
2778
|
class: te([O.value[J * o.value + D] && "flex items-center justify-center"]),
|
|
2778
|
-
style: W(
|
|
2779
|
+
style: W(m.value)
|
|
2779
2780
|
}, X(O.value[J * o.value + D]), 7))), 256)) : P("", !0),
|
|
2780
|
-
(s(!0), d(M, null, V(l.value, (
|
|
2781
|
-
h.item.startAnswerLen + J * o.value <
|
|
2781
|
+
(s(!0), d(M, null, V(l.value, (F) => (s(), d(M, null, [
|
|
2782
|
+
h.item.startAnswerLen + J * o.value < F && h.item.startAnswerLen + (J + 1) * o.value >= F ? (s(), d("span", {
|
|
2782
2783
|
key: 0,
|
|
2783
2784
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2784
|
-
style: W({ left: `${(
|
|
2785
|
+
style: W({ left: `${(F - h.item.startAnswerLen) % o.value * c.value}px` }),
|
|
2785
2786
|
"data-block": x(Ee)
|
|
2786
|
-
}, X(
|
|
2787
|
+
}, X(F), 13, Hn)) : P("", !0)
|
|
2787
2788
|
], 64))), 256))
|
|
2788
2789
|
], 14, zn))), 256)),
|
|
2789
|
-
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(
|
|
2790
|
+
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(Ne, {
|
|
2790
2791
|
key: 3,
|
|
2791
2792
|
data: h.item.afterArt,
|
|
2792
2793
|
"data-aart": h.item.id,
|
|
@@ -2806,7 +2807,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2806
2807
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
2807
2808
|
"data-block": x(dt)
|
|
2808
2809
|
}, [
|
|
2809
|
-
K(
|
|
2810
|
+
K(Ne, {
|
|
2810
2811
|
"data-content": o.item.id,
|
|
2811
2812
|
data: o.item.content
|
|
2812
2813
|
}, null, 8, ["data-content", "data"])
|
|
@@ -2850,7 +2851,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2850
2851
|
easy_slove: gn,
|
|
2851
2852
|
easy_sloveSheet: vn,
|
|
2852
2853
|
mix: kn,
|
|
2853
|
-
mixSheet:
|
|
2854
|
+
mixSheet: Tn,
|
|
2854
2855
|
synthesis: Ln,
|
|
2855
2856
|
synthesisSheet: Mn,
|
|
2856
2857
|
art: An,
|
|
@@ -2898,7 +2899,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2898
2899
|
let _ = [];
|
|
2899
2900
|
return e.data.children.forEach((k) => {
|
|
2900
2901
|
let w = _[_.length - 1];
|
|
2901
|
-
(k.polymerId || a.includes(e.data.problemType)) && a.includes(k.problemType) && k.style && (k.style[
|
|
2902
|
+
(k.polymerId || a.includes(e.data.problemType)) && a.includes(k.problemType) && k.style && (k.style[y[e.layout.mode].choice_a] !== I.choice_1 || k.style[y[e.layout.mode].choice_b] === I.portrait) ? (!w || w.type !== "polymer" || w.polymerId !== k.polymerId) && (_.push({
|
|
2902
2903
|
type: "polymer",
|
|
2903
2904
|
problemType: k.problemType,
|
|
2904
2905
|
polymerId: k.polymerId,
|
|
@@ -2911,8 +2912,8 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2911
2912
|
}), w = _[_.length - 1]), w.children.push(k);
|
|
2912
2913
|
}), _ = _.map((k) => {
|
|
2913
2914
|
var w;
|
|
2914
|
-
if (k.type === "polymer" && k.styleInfo[
|
|
2915
|
-
const R = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (
|
|
2915
|
+
if (k.type === "polymer" && k.styleInfo[y[e.layout.mode].choice_a] === I.choice_3) {
|
|
2916
|
+
const R = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((w = k.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
|
|
2916
2917
|
if (k.children.length > R * 5) {
|
|
2917
2918
|
const B = k.children.length % 4 > 4 ? 5 : 4;
|
|
2918
2919
|
return [...Array(Math.ceil(k.children.length / (R * B))).keys()].map((ue, he) => ({
|
|
@@ -2952,25 +2953,25 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2952
2953
|
SubWidthInfo: u,
|
|
2953
2954
|
ComputName: (_) => _.problemType ? r.value[_.problemType] : "notArea",
|
|
2954
2955
|
ComputAbs: (_) => o && [p.slove, p.art].includes(_.problemType),
|
|
2955
|
-
ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[
|
|
2956
|
+
ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === I.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
|
|
2956
2957
|
ComputPolymerStyle: (_) => {
|
|
2957
2958
|
var he, se;
|
|
2958
2959
|
let k = {};
|
|
2959
|
-
const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (
|
|
2960
|
-
switch (_.styleInfo[
|
|
2961
|
-
case
|
|
2962
|
-
_.styleInfo[
|
|
2960
|
+
const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((se = _.children[0]) == null ? void 0 : se.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
|
|
2961
|
+
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2962
|
+
case I.choice_1:
|
|
2963
|
+
_.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (k = {
|
|
2963
2964
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2964
2965
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2965
2966
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
|
|
2966
2967
|
"column-gap": `${ue}px`
|
|
2967
2968
|
});
|
|
2968
2969
|
break;
|
|
2969
|
-
case
|
|
2970
|
+
case I.choice_3:
|
|
2970
2971
|
k = {
|
|
2971
2972
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2972
2973
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
|
|
2973
|
-
}, _.styleInfo[
|
|
2974
|
+
}, _.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (k = {
|
|
2974
2975
|
...k,
|
|
2975
2976
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2976
2977
|
"column-gap": `${ue}px`
|
|
@@ -2981,9 +2982,9 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2981
2982
|
},
|
|
2982
2983
|
ComputPolymerItemStyle: (_, k) => {
|
|
2983
2984
|
var w;
|
|
2984
|
-
if (a.includes(_.problemType) && _.style[
|
|
2985
|
-
const R = Math.max(
|
|
2986
|
-
if (!((k + 1) % _.style[
|
|
2985
|
+
if (a.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === I.choice_2) {
|
|
2986
|
+
const R = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (R * _.style[y[e.layout.mode].choice_c] + 10)), ue = (e.width - R * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
|
|
2987
|
+
if (!((k + 1) % _.style[y[e.layout.mode].choice_c]) && ((k + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
|
|
2987
2988
|
return {
|
|
2988
2989
|
"margin-right": `${ue}px`
|
|
2989
2990
|
};
|
|
@@ -2998,7 +2999,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2998
2999
|
if (a.includes(_.problemType)) {
|
|
2999
3000
|
let B = {};
|
|
3000
3001
|
if (Object.values(Lt).includes(e.data.problemType)) {
|
|
3001
|
-
const ue = Math.max(...(e.data.rawChildren || e.data.children).map((se) => se.optList.length)) * (
|
|
3002
|
+
const ue = Math.max(...(e.data.rawChildren || e.data.children).map((se) => se.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / ue), e.data.style[y[e.layout.mode].choice_d] || 10);
|
|
3002
3003
|
B = k % he ? { minWidth: `${ue}px`, marginLeft: `${(e.width - ue * he) / (he - 1) - 5}px` } : { minWidth: `${ue}px` };
|
|
3003
3004
|
}
|
|
3004
3005
|
w = {
|
|
@@ -3008,9 +3009,9 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
3008
3009
|
};
|
|
3009
3010
|
} else
|
|
3010
3011
|
[p.fill, p.fill_english].includes(_.problemType) && (w = {
|
|
3011
|
-
display: _.style[
|
|
3012
|
+
display: _.style[y[e.layout.mode].fill_c] === I.fill_1 && typeof _.order != "number" ? "flex" : "inline-flex",
|
|
3012
3013
|
alignItems: "flex-end",
|
|
3013
|
-
width: `calc(${100 / _.style[
|
|
3014
|
+
width: `calc(${100 / _.style[y[e.layout.mode].fill_d][_.order || 0]}% - 6px)`
|
|
3014
3015
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3015
3016
|
});
|
|
3016
3017
|
return w;
|
|
@@ -3053,9 +3054,9 @@ function ts(e, t, o, a, n, r) {
|
|
|
3053
3054
|
style: W(a.ComputPolymerStyle(i))
|
|
3054
3055
|
}, [
|
|
3055
3056
|
(s(!0), d(M, null, V(i.children, (c, u) => {
|
|
3056
|
-
var
|
|
3057
|
+
var m;
|
|
3057
3058
|
return s(), d("div", {
|
|
3058
|
-
class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3059
|
+
class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3059
3060
|
style: W(a.ComputPolymerItemStyle(c, u)),
|
|
3060
3061
|
"data-tag": c.__tag__,
|
|
3061
3062
|
"data-block": a.ComputBlock(c),
|
|
@@ -3074,10 +3075,10 @@ function ts(e, t, o, a, n, r) {
|
|
|
3074
3075
|
], 46, Zn);
|
|
3075
3076
|
}), 256))
|
|
3076
3077
|
], 14, Vn)) : (s(!0), d(M, { key: 1 }, V(i.children, (c, u) => {
|
|
3077
|
-
var
|
|
3078
|
+
var m;
|
|
3078
3079
|
return s(), d(M, null, [
|
|
3079
3080
|
g("div", {
|
|
3080
|
-
class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3081
|
+
class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3081
3082
|
style: W(a.ComputStyle(c, u)),
|
|
3082
3083
|
"data-tag": c.__tag__,
|
|
3083
3084
|
"data-block": a.ComputBlock(c),
|
|
@@ -3094,7 +3095,7 @@ function ts(e, t, o, a, n, r) {
|
|
|
3094
3095
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
|
|
3095
3096
|
}, null, 8, ["sub", "isFull", "width"])) : P("", !0),
|
|
3096
3097
|
(s(), U(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), {
|
|
3097
|
-
default:
|
|
3098
|
+
default: St(() => [
|
|
3098
3099
|
K(l, {
|
|
3099
3100
|
sub: c.sub,
|
|
3100
3101
|
isFull: !!a.ModuleTag,
|
|
@@ -3109,7 +3110,7 @@ function ts(e, t, o, a, n, r) {
|
|
|
3109
3110
|
}), 256))
|
|
3110
3111
|
], 64))), 256);
|
|
3111
3112
|
}
|
|
3112
|
-
const
|
|
3113
|
+
const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, le = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), $e = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), as = (e, t, o) => {
|
|
3113
3114
|
const a = N(le(`${C.item}${e._sub}`, t));
|
|
3114
3115
|
return !(a.top >= o.top + o.height || a.top + a.height < o.top);
|
|
3115
3116
|
}, re = (e, t, o = !1) => !e || !t ? null : {
|
|
@@ -3175,7 +3176,7 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3175
3176
|
trdLeftTopPos: ae(re(N($e(`${C.point}t`, e.pageDom[n])[1]), N(e.pageDom[n]))),
|
|
3176
3177
|
trdLeftBottomPos: ae(re(N($e(`${C.point}b`, e.pageDom[n])[1]), N(e.pageDom[n])))
|
|
3177
3178
|
} : {};
|
|
3178
|
-
return (l =
|
|
3179
|
+
return (l = ze.find((i) => i.code === e.layout.paper)) != null && l.isMultCol ? {
|
|
3179
3180
|
secLeftTopPos: ae(re(N($e(`${C.point}t`, e.pageDom[n])[0]), N(e.pageDom[n]))),
|
|
3180
3181
|
secLeftBottomPos: ae(re(N($e(`${C.point}b`, e.pageDom[n])[0]), N(e.pageDom[n]))),
|
|
3181
3182
|
...r
|
|
@@ -3320,43 +3321,43 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3320
3321
|
return [...Array(e.pageDom.length).keys()].map((n) => {
|
|
3321
3322
|
const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
|
|
3322
3323
|
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((l, i) => r + i < t.length).map((l, i) => {
|
|
3323
|
-
const c = e.pageDom[n], u = N(c),
|
|
3324
|
-
const D = le(`${C.choice}${
|
|
3324
|
+
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], E = N(h), Y = t[r + i].data.map((F) => F.children.filter((D) => D.problemType)).flat(), J = t[r + i].data.filter((F) => [be.one_choice, be.another_choice].includes(F.problemType) && F.children.length).map((F) => {
|
|
3325
|
+
const D = le(`${C.choice}${F.id}`, m);
|
|
3325
3326
|
return D ? {
|
|
3326
3327
|
id: `${++o}`,
|
|
3327
|
-
baseIndex: parseInt(
|
|
3328
|
+
baseIndex: parseInt(F.children[0]._sub),
|
|
3328
3329
|
position: re(N(D), u),
|
|
3329
|
-
problemType:
|
|
3330
|
+
problemType: F.problemType,
|
|
3330
3331
|
isOneChoice: !0,
|
|
3331
3332
|
optList: $e(C.fill, D).map((v, z) => ({
|
|
3332
3333
|
id: `${o}.${z + 1}`,
|
|
3333
3334
|
position: re(N(v), u)
|
|
3334
3335
|
})).filter((v) => v.position)
|
|
3335
3336
|
} : {};
|
|
3336
|
-
}).filter((
|
|
3337
|
-
return Y.filter((
|
|
3337
|
+
}).filter((F) => F.position);
|
|
3338
|
+
return Y.filter((F) => as(F, m, O)).map((F, D, v) => {
|
|
3338
3339
|
let z = {};
|
|
3339
|
-
a[
|
|
3340
|
-
const ne = le(`${C.item}${
|
|
3341
|
-
switch (
|
|
3340
|
+
a[F._sub] ? a[F._sub] += 1 : a[F._sub] = 1;
|
|
3341
|
+
const ne = le(`${C.item}${F._sub}`, m);
|
|
3342
|
+
switch (F.problemType) {
|
|
3342
3343
|
case p.choice:
|
|
3343
3344
|
case p.choice_english:
|
|
3344
3345
|
case p.choice_multiple:
|
|
3345
3346
|
case p.cloze:
|
|
3346
3347
|
z = {
|
|
3347
|
-
score:
|
|
3348
|
-
isColumn:
|
|
3349
|
-
optList:
|
|
3350
|
-
id: `${
|
|
3351
|
-
position: Pe(le(`${C.fill}${R}`, ne),
|
|
3348
|
+
score: F.score,
|
|
3349
|
+
isColumn: F.style[y[e.layout.mode].choice_a] !== I.choice_2,
|
|
3350
|
+
optList: F.optList.map((w, R) => ({
|
|
3351
|
+
id: `${F._sub}.${R + 1}`,
|
|
3352
|
+
position: Pe(le(`${C.fill}${R}`, ne), E, u)
|
|
3352
3353
|
})).filter((w) => w.position)
|
|
3353
3354
|
};
|
|
3354
3355
|
break;
|
|
3355
3356
|
case p.decide:
|
|
3356
3357
|
z = {
|
|
3357
3358
|
optList: [0, 1].map((w, R) => ({
|
|
3358
|
-
id: `${
|
|
3359
|
-
position: Pe(le(`${C.fill}${R}`, ne),
|
|
3359
|
+
id: `${F._sub}.${R}`,
|
|
3360
|
+
position: Pe(le(`${C.fill}${R}`, ne), E, u)
|
|
3360
3361
|
})).filter((w) => w.position)
|
|
3361
3362
|
};
|
|
3362
3363
|
break;
|
|
@@ -3364,14 +3365,14 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3364
3365
|
case p.fill_english:
|
|
3365
3366
|
const H = $e(C.fill, ne), _ = $e(C.fill_line, ne);
|
|
3366
3367
|
z = {
|
|
3367
|
-
children: [
|
|
3368
|
-
id: B.length > 1 ? `${
|
|
3368
|
+
children: [F.score].flat().map((w, R, B) => ({
|
|
3369
|
+
id: B.length > 1 ? `${F._sub}.${R + 1}` : F._sub,
|
|
3369
3370
|
score: w,
|
|
3370
|
-
problemType:
|
|
3371
|
-
isHiddenContent: !
|
|
3372
|
-
position: Pe(ne,
|
|
3373
|
-
scorePosition: Pe(H[R],
|
|
3374
|
-
answerPosition: Pe(_[R],
|
|
3371
|
+
problemType: F.problemType,
|
|
3372
|
+
isHiddenContent: !F.style[y[e.layout.mode].fill_b],
|
|
3373
|
+
position: Pe(ne, E, u),
|
|
3374
|
+
scorePosition: Pe(H[R], E, u),
|
|
3375
|
+
answerPosition: Pe(_[R], E, u)
|
|
3375
3376
|
})).filter((w) => w.position)
|
|
3376
3377
|
};
|
|
3377
3378
|
break;
|
|
@@ -3385,7 +3386,7 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3385
3386
|
return {};
|
|
3386
3387
|
const B = $e(C.score_item, w);
|
|
3387
3388
|
return {
|
|
3388
|
-
position: Pe(w,
|
|
3389
|
+
position: Pe(w, E, u, !0),
|
|
3389
3390
|
itemPosition: {
|
|
3390
3391
|
width: B[0].offsetWidth
|
|
3391
3392
|
},
|
|
@@ -3395,14 +3396,14 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3395
3396
|
};
|
|
3396
3397
|
}
|
|
3397
3398
|
return {
|
|
3398
|
-
id:
|
|
3399
|
-
elId:
|
|
3400
|
-
colIndex: a[
|
|
3401
|
-
problemType:
|
|
3402
|
-
position: Pe(ne,
|
|
3399
|
+
id: F._sub,
|
|
3400
|
+
elId: F.id,
|
|
3401
|
+
colIndex: a[F._sub],
|
|
3402
|
+
problemType: F.problemType,
|
|
3403
|
+
position: Pe(ne, E, u, !1, D === v.length - 1 && [p.slove].includes(F.problemType)),
|
|
3403
3404
|
...z
|
|
3404
3405
|
};
|
|
3405
|
-
}).concat(J).filter((
|
|
3406
|
+
}).concat(J).filter((F) => F.position);
|
|
3406
3407
|
});
|
|
3407
3408
|
}).map((n) => n.flat());
|
|
3408
3409
|
}, hs = (e) => {
|
|
@@ -3526,7 +3527,7 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3526
3527
|
// 固定值
|
|
3527
3528
|
splitFileList: [],
|
|
3528
3529
|
// 依据当前页码设置答案
|
|
3529
|
-
answerResultList: ct.slice(e.layout.pagePoint ===
|
|
3530
|
+
answerResultList: ct.slice(e.layout.pagePoint === He.right_up ? e.pageTotal - o - 1 : 0, e.layout.pagePoint === He.right_up ? e.pageTotal : o + 1),
|
|
3530
3531
|
// 固定值
|
|
3531
3532
|
noAnswerTag: !1
|
|
3532
3533
|
}],
|
|
@@ -3616,28 +3617,28 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3616
3617
|
emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
|
|
3617
3618
|
setup(e, { emit: t }) {
|
|
3618
3619
|
const o = e, a = Q([]);
|
|
3619
|
-
|
|
3620
|
+
Ae(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
3620
3621
|
a.value = [], setTimeout(() => {
|
|
3621
3622
|
var u;
|
|
3622
|
-
o.ColList.forEach((
|
|
3623
|
-
|
|
3624
|
-
var
|
|
3625
|
-
const
|
|
3626
|
-
if (!
|
|
3623
|
+
o.ColList.forEach((m, O) => {
|
|
3624
|
+
m.data.map((h) => h.children).flat().filter((h) => [p.slove, p.art].includes(h.problemType) && !h.chunk).forEach((h) => {
|
|
3625
|
+
var F;
|
|
3626
|
+
const E = (F = o.ColDom[O].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : F.querySelector(`*[data-xine="${C.score}"]`);
|
|
3627
|
+
if (!E)
|
|
3627
3628
|
return;
|
|
3628
|
-
|
|
3629
|
-
const Y = window.getComputedStyle(
|
|
3630
|
-
|
|
3629
|
+
E.classList.remove("err_lack");
|
|
3630
|
+
const Y = window.getComputedStyle(E), J = [...Array.from(E.children)].map((D) => D.offsetWidth).reduce((D, v) => D + v, 0);
|
|
3631
|
+
E.offsetWidth - parseFloat(Y.borderLeft) - parseFloat(Y.borderRight) < J && (a.value.push({ msg: `${h.subStr}题打分条超长` }), E.classList.add("err_lack"), E.title = "打分条超长,请调整排版或使用自编打分条");
|
|
3631
3632
|
});
|
|
3632
3633
|
});
|
|
3633
3634
|
const l = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
|
|
3634
3635
|
if (!l)
|
|
3635
3636
|
return;
|
|
3636
3637
|
let i = [], c = [];
|
|
3637
|
-
o.ImgData.forEach((
|
|
3638
|
-
(
|
|
3639
|
-
}), o.TxtData.forEach((
|
|
3640
|
-
(
|
|
3638
|
+
o.ImgData.forEach((m) => {
|
|
3639
|
+
(m.left + m.width > l.width || m.top + m.height > l.height) && i.push(m);
|
|
3640
|
+
}), o.TxtData.forEach((m) => {
|
|
3641
|
+
(m.left + m.width > l.width || m.top + m.height > l.height) && c.push(m);
|
|
3641
3642
|
}), i.length && a.value.push({ type: "absImg", value: i, msg: `${i.length}张插入图片溢出`, fn: n }), c.length && a.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: r }), t("changeLayoutStatus", a.value.length ? "error" : "ok");
|
|
3642
3643
|
}, 500);
|
|
3643
3644
|
});
|
|
@@ -3684,7 +3685,7 @@ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3684
3685
|
const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Xe = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Xe(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Xe(e.parentElement) : document.body, $s = (e) => {
|
|
3685
3686
|
const t = e.parentElement, o = document.createElement("span");
|
|
3686
3687
|
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ut, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
3687
|
-
},
|
|
3688
|
+
}, Ts = (e, t, o, a) => {
|
|
3688
3689
|
let n = null;
|
|
3689
3690
|
if (e.dataset.block === dt && !e.dataset.used) {
|
|
3690
3691
|
const r = window.getComputedStyle(e);
|
|
@@ -3692,7 +3693,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3692
3693
|
} else
|
|
3693
3694
|
e.dataset.block === kt ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === we && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${kt}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && a || al.includes(e.tagName.toLowerCase())) && (n = e);
|
|
3694
3695
|
return n;
|
|
3695
|
-
},
|
|
3696
|
+
}, Tt = (e, t, o) => {
|
|
3696
3697
|
const a = e.textContent || "", n = a.split("").map((c) => `<span>${c}</span>`).join("");
|
|
3697
3698
|
e.innerHTML = n;
|
|
3698
3699
|
const r = [...Array.from(e.children)].findIndex((c) => de(c).top - t + c.offsetHeight > o);
|
|
@@ -3706,9 +3707,9 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3706
3707
|
const a = nt("", e.parentElement), n = a.findIndex((l) => l === e);
|
|
3707
3708
|
let r = a.filter((l, i) => de(l).top + l.offsetHeight - 1 < de(e).top || i < n && de(l).top < de(e).top).reverse()[0];
|
|
3708
3709
|
return r || (r = Xe(e), de(r).top + r.offsetHeight - t > o && (r = st(r, t, o))), r;
|
|
3709
|
-
},
|
|
3710
|
+
}, It = (e, t, o, a) => {
|
|
3710
3711
|
const n = (l, i = o) => {
|
|
3711
|
-
var J,
|
|
3712
|
+
var J, F, D;
|
|
3712
3713
|
const c = l.map((v) => {
|
|
3713
3714
|
const z = de(v);
|
|
3714
3715
|
return {
|
|
@@ -3716,35 +3717,35 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3716
3717
|
top: z.top - t,
|
|
3717
3718
|
left: z.left
|
|
3718
3719
|
};
|
|
3719
|
-
}), u = c.filter((v) => v.el.offsetHeight + v.top > i).sort((v, z) => v.top - z.top),
|
|
3720
|
-
if (!
|
|
3720
|
+
}), u = c.filter((v) => v.el.offsetHeight + v.top > i).sort((v, z) => v.top - z.top), m = (J = u.shift()) == null ? void 0 : J.el;
|
|
3721
|
+
if (!m) {
|
|
3721
3722
|
const v = document.createElement("div");
|
|
3722
|
-
return (
|
|
3723
|
+
return (F = l[0].parentElement) == null || F.appendChild(v), v.style.height = i - (de(v).top - t) + "px", v;
|
|
3723
3724
|
}
|
|
3724
|
-
const O = de(
|
|
3725
|
-
if (u.filter((v) => v.top < h +
|
|
3725
|
+
const O = de(m), h = O.top - t, E = O.left;
|
|
3726
|
+
if (u.filter((v) => v.top < h + m.offsetHeight && v.top + v.el.offsetHeight - 1 > h && (v.left + v.el.offsetWidth - 1 < E || v.left + 1 > E + m.offsetWidth)).length) {
|
|
3726
3727
|
const v = (D = c.filter((z) => z.top < h).pop()) == null ? void 0 : D.el;
|
|
3727
3728
|
if (v != null && v.children.length) {
|
|
3728
3729
|
const z = nt(v);
|
|
3729
3730
|
return n(z, h) || v;
|
|
3730
3731
|
} else
|
|
3731
|
-
return v ? de(v).top - t + v.offsetHeight > h ?
|
|
3732
|
+
return v ? de(v).top - t + v.offsetHeight > h ? Tt(v, t, h) : v : st(m.parentElement, t, h);
|
|
3732
3733
|
} else {
|
|
3733
|
-
const v = getComputedStyle(
|
|
3734
|
+
const v = getComputedStyle(m);
|
|
3734
3735
|
if (h + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > i)
|
|
3735
|
-
return st(
|
|
3736
|
-
const z =
|
|
3736
|
+
return st(m, t, h);
|
|
3737
|
+
const z = Ts(m, i - h, i, a);
|
|
3737
3738
|
if (z)
|
|
3738
3739
|
return Xe(z);
|
|
3739
|
-
if (
|
|
3740
|
-
const ne = nt(
|
|
3740
|
+
if (m.children.length) {
|
|
3741
|
+
const ne = nt(m);
|
|
3741
3742
|
return n(ne, i);
|
|
3742
3743
|
} else
|
|
3743
|
-
return
|
|
3744
|
+
return Tt(m, t, i);
|
|
3744
3745
|
}
|
|
3745
3746
|
}, r = n([e]);
|
|
3746
3747
|
return { cut: $s(r), targetEl: r };
|
|
3747
|
-
},
|
|
3748
|
+
}, Is = (e) => {
|
|
3748
3749
|
const { el: t, data: o, column: a, backColumn: n, getColSize: r, change: l } = e;
|
|
3749
3750
|
if (!t || !o.length) {
|
|
3750
3751
|
l([], !0);
|
|
@@ -3752,7 +3753,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3752
3753
|
}
|
|
3753
3754
|
console.time("layout");
|
|
3754
3755
|
const i = de(t).top;
|
|
3755
|
-
let c = {}, u = 0,
|
|
3756
|
+
let c = {}, u = 0, m = 0;
|
|
3756
3757
|
const O = (v) => {
|
|
3757
3758
|
const z = v % (a + n), ne = Math.floor(v / (a + n)) * 2 + (z >= a ? 1 : 0), H = r(v, ne);
|
|
3758
3759
|
c = {
|
|
@@ -3761,7 +3762,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3761
3762
|
height: parseFloat(H.height)
|
|
3762
3763
|
};
|
|
3763
3764
|
};
|
|
3764
|
-
let h = [],
|
|
3765
|
+
let h = [], E = 0;
|
|
3765
3766
|
const Y = () => {
|
|
3766
3767
|
O(h.length), t.style.width = `${c.width}px`, h.push({
|
|
3767
3768
|
top: 0,
|
|
@@ -3774,32 +3775,32 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3774
3775
|
const J = (v) => {
|
|
3775
3776
|
const z = getComputedStyle(v);
|
|
3776
3777
|
return de(v).top - c.top + parseFloat(z.borderTop) + parseFloat(z.paddingTop) + parseFloat(z.lineHeight) > h[h.length - 1].height;
|
|
3777
|
-
},
|
|
3778
|
+
}, F = (v) => {
|
|
3778
3779
|
const z = getComputedStyle(v);
|
|
3779
3780
|
return de(v).top + v.offsetHeight - c.top - (v.dataset.block === we ? 0 : parseFloat(z.paddingBottom) - parseFloat(z.borderBottom)) <= h[h.length - 1].height;
|
|
3780
|
-
}, D = (v = o[
|
|
3781
|
-
if (
|
|
3781
|
+
}, D = (v = o[E]) => {
|
|
3782
|
+
if (E >= o.length || !v) {
|
|
3782
3783
|
l([...h], !0), console.timeEnd("layout"), h = [], u = 0;
|
|
3783
3784
|
return;
|
|
3784
3785
|
}
|
|
3785
3786
|
h[h.length - 1].data.push(v), l([...h]), window.requestAnimationFrame(() => {
|
|
3786
3787
|
const z = $t(v.__tag__, t), ne = !v.isHidden && de(z);
|
|
3787
3788
|
let H = null;
|
|
3788
|
-
if (
|
|
3789
|
-
const _ = z.querySelector(`*[data-hutkey="${
|
|
3790
|
-
h[h.length - 1].top = c.top - k.top, h[h.length - 1].height = c.height - h[h.length - 1].top,
|
|
3789
|
+
if (m) {
|
|
3790
|
+
const _ = z.querySelector(`*[data-hutkey="${m}"]`), k = de(_);
|
|
3791
|
+
h[h.length - 1].top = c.top - k.top, h[h.length - 1].height = c.height - h[h.length - 1].top, m = 0;
|
|
3791
3792
|
}
|
|
3792
3793
|
if (ne && ne.height + ne.top - c.top > h[h.length - 1].height)
|
|
3793
3794
|
if (v.problemType)
|
|
3794
3795
|
h[h.length - 1].data.pop(), Y(), D(v);
|
|
3795
|
-
else if (
|
|
3796
|
-
Y(),
|
|
3796
|
+
else if (F(z))
|
|
3797
|
+
Y(), E++, D();
|
|
3797
3798
|
else if (J(z))
|
|
3798
3799
|
h[h.length - 1].data.pop(), Y(), D(v);
|
|
3799
3800
|
else {
|
|
3800
|
-
H =
|
|
3801
|
+
H = It(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3801
3802
|
const _ = z.querySelector(`*[data-content="${v.id}"]`);
|
|
3802
|
-
h[h.length - 1].height = de(H.cut).top - c.top, Y(), _ != null && _.contains(H.cut) ? (
|
|
3803
|
+
h[h.length - 1].height = de(H.cut).top - c.top, Y(), _ != null && _.contains(H.cut) ? (m = Date.now(), H.cut.dataset.hutkey = m, D({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), D(v));
|
|
3803
3804
|
}
|
|
3804
3805
|
else {
|
|
3805
3806
|
let _ = [], k = [];
|
|
@@ -3810,12 +3811,12 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3810
3811
|
h[h.length - 1].top = c.top - se.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
|
|
3811
3812
|
}
|
|
3812
3813
|
if (ue.height + ue.top - c.top > h[h.length - 1].height) {
|
|
3813
|
-
if (
|
|
3814
|
+
if (F(B))
|
|
3814
3815
|
_.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
3815
3816
|
else if (J(B))
|
|
3816
3817
|
k = v.children.slice(R);
|
|
3817
3818
|
else {
|
|
3818
|
-
H =
|
|
3819
|
+
H = It(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3819
3820
|
const he = B.querySelector(`*[data-content="${w.id}"]`);
|
|
3820
3821
|
if (B === H.targetEl)
|
|
3821
3822
|
_.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
|
|
@@ -3830,18 +3831,18 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3830
3831
|
L != null && L.contains(H.cut) && (u = Date.now(), H.cut.dataset.cutkey = u, w.answerArea = L.innerHTML), w.chunk += 1;
|
|
3831
3832
|
break;
|
|
3832
3833
|
case at.art:
|
|
3833
|
-
const $ = B.querySelector(`*[data-bart="${w.id}"]`),
|
|
3834
|
+
const $ = B.querySelector(`*[data-bart="${w.id}"]`), S = H.targetEl.dataset.block === we && H.targetEl.dataset.size ? H.targetEl : null, ee = B.querySelector(`*[data-aart="${w.id}"]`);
|
|
3834
3835
|
if ($ != null && $.contains(H.cut))
|
|
3835
3836
|
u = Date.now(), H.cut.dataset.cutkey = u, w.beforeArt = $ == null ? void 0 : $.innerHTML, se.beforeGuide = "", se.afterArt = "", se.endAnswerLen = -1;
|
|
3836
|
-
else if (
|
|
3837
|
-
const pe = parseInt(
|
|
3837
|
+
else if (S) {
|
|
3838
|
+
const pe = parseInt(S.dataset.size);
|
|
3838
3839
|
if (!w.artBlock)
|
|
3839
3840
|
if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > pe) {
|
|
3840
3841
|
const G = B.querySelector(`*[data-guide="${w.id}"]`), oe = de(G);
|
|
3841
3842
|
if (console.log(G, oe, c), oe.height + oe.top - c.top > c.height) {
|
|
3842
3843
|
G.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
|
|
3843
|
-
const
|
|
3844
|
-
se.beforeGuide = w.beforeGuide.substring(0,
|
|
3844
|
+
const Se = de(S).top + S.offsetHeight, Te = [...Array.from(G.children)].findIndex((ge) => de(ge).top > Se);
|
|
3845
|
+
se.beforeGuide = w.beforeGuide.substring(0, Te), w.beforeGuide = w.beforeGuide.substring(Te);
|
|
3845
3846
|
} else
|
|
3846
3847
|
w.beforeGuide = "";
|
|
3847
3848
|
} else
|
|
@@ -3860,7 +3861,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3860
3861
|
return !0;
|
|
3861
3862
|
} else
|
|
3862
3863
|
_.push(w);
|
|
3863
|
-
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, k.length ? (Y(), D({ ...v, isHidden: !0, children: k })) : (l([...h]),
|
|
3864
|
+
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, k.length ? (Y(), D({ ...v, isHidden: !0, children: k })) : (l([...h]), E++, D());
|
|
3864
3865
|
}
|
|
3865
3866
|
});
|
|
3866
3867
|
};
|
|
@@ -3868,7 +3869,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3868
3869
|
}, Ot = window.CKEDITOR;
|
|
3869
3870
|
Ot.disableAutoInline = !0;
|
|
3870
3871
|
const ht = `dx${Math.random().toString(32).substring(2)}`;
|
|
3871
|
-
function
|
|
3872
|
+
function Ss(e, t) {
|
|
3872
3873
|
return Ot[e](ht, {
|
|
3873
3874
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
3874
3875
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
@@ -3884,7 +3885,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3884
3885
|
emits: ["change", "focus", "blur"],
|
|
3885
3886
|
setup(e, { emit: t }) {
|
|
3886
3887
|
const o = e, a = Rt("ckeditorOrigin", ""), n = Q();
|
|
3887
|
-
|
|
3888
|
+
Ae(() => o.readonly, () => r()), Ve(() => r());
|
|
3888
3889
|
const r = () => {
|
|
3889
3890
|
if (window.CKEDITOR) {
|
|
3890
3891
|
if (o.readonly) {
|
|
@@ -3892,7 +3893,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3892
3893
|
return;
|
|
3893
3894
|
}
|
|
3894
3895
|
Ze(() => {
|
|
3895
|
-
n.value =
|
|
3896
|
+
n.value = Ss("inline", a), n.value && n.value.on("instanceReady", (u) => {
|
|
3896
3897
|
n.value.setData(o.value);
|
|
3897
3898
|
});
|
|
3898
3899
|
});
|
|
@@ -3909,26 +3910,26 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3909
3910
|
}, i = () => {
|
|
3910
3911
|
t("focus");
|
|
3911
3912
|
}, c = (u) => {
|
|
3912
|
-
const
|
|
3913
|
-
|
|
3914
|
-
const
|
|
3915
|
-
(
|
|
3913
|
+
const m = document.createElement("div");
|
|
3914
|
+
m.innerHTML = u, [...Array.from(m.querySelectorAll("*"))].forEach((h) => {
|
|
3915
|
+
const E = window.getComputedStyle(h);
|
|
3916
|
+
(E.display === "none" || E.width === "0px" && E.height === "0px" || E.opacity === "0" || E.visibility === "hidden") && h.remove();
|
|
3916
3917
|
});
|
|
3917
|
-
const O = (h =
|
|
3918
|
-
[...Array.from(h.childNodes)].forEach((
|
|
3918
|
+
const O = (h = m) => {
|
|
3919
|
+
[...Array.from(h.childNodes)].forEach((E) => {
|
|
3919
3920
|
var Y;
|
|
3920
|
-
if (
|
|
3921
|
-
O(
|
|
3922
|
-
else if (
|
|
3921
|
+
if (E.nodeType === Node.ELEMENT_NODE && E.children.length)
|
|
3922
|
+
O(E);
|
|
3923
|
+
else if (E.nodeType === Node.TEXT_NODE) {
|
|
3923
3924
|
const J = document.createElement("span");
|
|
3924
|
-
J.textContent =
|
|
3925
|
+
J.textContent = E.textContent, window.REGULAR.underscore.test(E.textContent || "") && (window.getComputedStyle(E.parentNode).wordBreak !== "break-all" || !(E.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (E.textContent || "").length > 5 && (J.innerHTML = (E.textContent || "").replace(window.REGULAR.underscore, (D) => D.length > 5 ? `<span style="word-break: break-all">${D}</span>` : D)), (Y = E.parentElement) == null || Y.replaceChild(J, E);
|
|
3925
3926
|
}
|
|
3926
3927
|
});
|
|
3927
3928
|
};
|
|
3928
|
-
return O(),
|
|
3929
|
+
return O(), m.innerHTML;
|
|
3929
3930
|
};
|
|
3930
|
-
return (u,
|
|
3931
|
-
o.readonly ? (s(), U(
|
|
3931
|
+
return (u, m) => (s(), d("div", Ls, [
|
|
3932
|
+
o.readonly ? (s(), U(Ne, {
|
|
3932
3933
|
key: 1,
|
|
3933
3934
|
data: o.value,
|
|
3934
3935
|
class: "raw_view"
|
|
@@ -3945,16 +3946,16 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3945
3946
|
}
|
|
3946
3947
|
});
|
|
3947
3948
|
const Ms = /* @__PURE__ */ ce(Es, [["__scopeId", "data-v-1398ac85"]]);
|
|
3948
|
-
let
|
|
3949
|
+
let qe = (e) => {
|
|
3949
3950
|
};
|
|
3950
3951
|
const Ps = {
|
|
3951
3952
|
updated: function(e, t) {
|
|
3952
|
-
document.body.removeEventListener("click",
|
|
3953
|
+
document.body.removeEventListener("click", qe), qe = (o) => {
|
|
3953
3954
|
!e.contains(o.target) && t.value && t.value(o);
|
|
3954
|
-
}, document.body.addEventListener("click",
|
|
3955
|
+
}, document.body.addEventListener("click", qe);
|
|
3955
3956
|
},
|
|
3956
3957
|
unmounted: () => {
|
|
3957
|
-
document.body.removeEventListener("click",
|
|
3958
|
+
document.body.removeEventListener("click", qe);
|
|
3958
3959
|
}
|
|
3959
3960
|
};
|
|
3960
3961
|
let ot = null;
|
|
@@ -3964,16 +3965,16 @@ const Ds = {
|
|
|
3964
3965
|
const c = e.querySelector(".move-target") || e;
|
|
3965
3966
|
c.style.cursor = "move", c.addEventListener("mousedown", (u) => {
|
|
3966
3967
|
a = !0, n = !!e.dataset.safe, r = e.offsetParent;
|
|
3967
|
-
const
|
|
3968
|
-
o = { x: u.clientX, y: u.clientY }, l = { x: parseInt(
|
|
3968
|
+
const m = window.getComputedStyle(e);
|
|
3969
|
+
o = { x: u.clientX, y: u.clientY }, l = { x: parseInt(m.left), y: parseInt(m.top) };
|
|
3969
3970
|
}), document.addEventListener("mouseup", (u) => {
|
|
3970
3971
|
a = !1;
|
|
3971
3972
|
}), ot = (u) => {
|
|
3972
3973
|
if (!a || e.getAttribute("disabled") === "true")
|
|
3973
3974
|
return;
|
|
3974
3975
|
u.stopPropagation(), u.preventDefault(), i = { x: u.clientX, y: u.clientY };
|
|
3975
|
-
const
|
|
3976
|
-
e.style.left = `${
|
|
3976
|
+
const m = n ? Math.min(Math.max(i.x - o.x + l.x, 0), r.offsetWidth - e.offsetWidth) : i.x - o.x + l.x, O = n ? Math.min(Math.max(i.y - o.y + l.y, 0), r.offsetHeight - e.offsetHeight) : i.y - o.y + l.y;
|
|
3977
|
+
e.style.left = `${m}px`, e.style.top = `${O}px`, t.value && typeof t.value == "function" && t.value({ x: m, y: O });
|
|
3977
3978
|
}, document.addEventListener("mousemove", ot);
|
|
3978
3979
|
},
|
|
3979
3980
|
unmounted: () => {
|
|
@@ -3998,15 +3999,15 @@ const Ds = {
|
|
|
3998
3999
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
3999
4000
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4000
4001
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4001
|
-
], l = Q({}), i = Q(), c = Q(0), u = Q(0),
|
|
4002
|
+
], l = Q({}), i = Q(), c = Q(0), u = Q(0), m = Q(), O = Q(), h = Q({}), E = Q(!1), Y = Q(), J = A(() => o.imgData.map((L) => ({
|
|
4002
4003
|
...L,
|
|
4003
4004
|
top: L.top - Math.floor(L.top / (b[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4004
|
-
}))),
|
|
4005
|
+
}))), F = A(() => o.txtData.map((L) => ({
|
|
4005
4006
|
...L,
|
|
4006
4007
|
top: L.top - Math.floor(L.top / (b[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4007
|
-
}))), D = A(() => Y.value ? Y.value.split("-")[0] === "img" ? J.value.find(($) => $.key === Y.value) :
|
|
4008
|
+
}))), D = A(() => Y.value ? Y.value.split("-")[0] === "img" ? J.value.find(($) => $.key === Y.value) : F.value.find(($) => $.key === Y.value) : null), v = A(() => D.value ? { [D.value.key]: { ...i.value } } : {});
|
|
4008
4009
|
Ve(() => {
|
|
4009
|
-
|
|
4010
|
+
m.value = document.body.querySelector(".__layout__");
|
|
4010
4011
|
});
|
|
4011
4012
|
const z = (L) => {
|
|
4012
4013
|
i.value = { ...D.value, left: Math.max(L.x, 0), top: Math.max(L.y, 0) }, clearTimeout(O.value), O.value = setTimeout(() => {
|
|
@@ -4014,21 +4015,21 @@ const Ds = {
|
|
|
4014
4015
|
(($ = D.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4015
4016
|
}, 400);
|
|
4016
4017
|
}, ne = (L) => {
|
|
4017
|
-
|
|
4018
|
+
E.value = L;
|
|
4018
4019
|
}, H = () => {
|
|
4019
|
-
const L = D.value, $ = L.left + L.width / 2,
|
|
4020
|
-
h.value = { x: $ + ee.left, y:
|
|
4020
|
+
const L = D.value, $ = L.left + L.width / 2, S = L.top + L.height / 2, ee = m.value.getBoundingClientRect() || {};
|
|
4021
|
+
h.value = { x: $ + ee.left, y: S + ee.top }, m.value.addEventListener("mousemove", _), m.value.addEventListener("mouseleave", k), m.value.addEventListener("mouseup", k);
|
|
4021
4022
|
}, _ = (L) => {
|
|
4022
4023
|
L.stopPropagation(), L.preventDefault();
|
|
4023
|
-
const $ = L.clientX - h.value.x,
|
|
4024
|
+
const $ = L.clientX - h.value.x, S = h.value.y - L.clientY, ee = Math.atan2(S, $) / (Math.PI / 180);
|
|
4024
4025
|
i.value = { ...D.value, rotate: -parseInt(ee.toString()) };
|
|
4025
4026
|
}, k = (L) => {
|
|
4026
|
-
L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value),
|
|
4027
|
+
L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove", _), m.value.removeEventListener("mouseleave", k), m.value.removeEventListener("mouseup", k);
|
|
4027
4028
|
}, w = (L, $) => {
|
|
4028
|
-
var
|
|
4029
|
-
L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((
|
|
4029
|
+
var S;
|
|
4030
|
+
L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((S = D.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? m.value.addEventListener("mousemove", R) : m.value.addEventListener("mousemove", B), m.value.addEventListener("mouseleave", ue), m.value.addEventListener("mouseup", ue);
|
|
4030
4031
|
}, R = (L) => {
|
|
4031
|
-
const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y },
|
|
4032
|
+
const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, S = { ...D.value }, ee = $.x > $.y ? "width" : "height";
|
|
4032
4033
|
[
|
|
4033
4034
|
// 0
|
|
4034
4035
|
() => {
|
|
@@ -4040,7 +4041,7 @@ const Ds = {
|
|
|
4040
4041
|
height: l.value.height - $.y
|
|
4041
4042
|
}[ee];
|
|
4042
4043
|
i.value = {
|
|
4043
|
-
...
|
|
4044
|
+
...S,
|
|
4044
4045
|
width: G,
|
|
4045
4046
|
height: oe,
|
|
4046
4047
|
left: l.value.left - (G - l.value.width),
|
|
@@ -4051,7 +4052,7 @@ const Ds = {
|
|
|
4051
4052
|
() => {
|
|
4052
4053
|
const G = l.value.width * (1 - $.y / l.value.height), oe = l.value.height - $.y;
|
|
4053
4054
|
i.value = {
|
|
4054
|
-
...
|
|
4055
|
+
...S,
|
|
4055
4056
|
width: G,
|
|
4056
4057
|
height: oe,
|
|
4057
4058
|
left: l.value.left - (G - l.value.width) / 2,
|
|
@@ -4065,7 +4066,7 @@ const Ds = {
|
|
|
4065
4066
|
height: l.value.height - $.y
|
|
4066
4067
|
}[ee];
|
|
4067
4068
|
i.value = {
|
|
4068
|
-
...
|
|
4069
|
+
...S,
|
|
4069
4070
|
width: {
|
|
4070
4071
|
width: l.value.width + $.x,
|
|
4071
4072
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
@@ -4078,7 +4079,7 @@ const Ds = {
|
|
|
4078
4079
|
() => {
|
|
4079
4080
|
const G = l.value.width - $.x, oe = l.value.height * (1 - $.x / l.value.width);
|
|
4080
4081
|
i.value = {
|
|
4081
|
-
...
|
|
4082
|
+
...S,
|
|
4082
4083
|
width: G,
|
|
4083
4084
|
height: oe,
|
|
4084
4085
|
left: l.value.left - (G - l.value.width),
|
|
@@ -4089,7 +4090,7 @@ const Ds = {
|
|
|
4089
4090
|
() => {
|
|
4090
4091
|
const G = l.value.width + $.x, oe = l.value.height * (1 + $.x / l.value.width);
|
|
4091
4092
|
i.value = {
|
|
4092
|
-
...
|
|
4093
|
+
...S,
|
|
4093
4094
|
width: G,
|
|
4094
4095
|
height: oe,
|
|
4095
4096
|
top: l.value.top - (oe - l.value.height) / 2
|
|
@@ -4105,7 +4106,7 @@ const Ds = {
|
|
|
4105
4106
|
height: l.value.height + $.y
|
|
4106
4107
|
}[ee];
|
|
4107
4108
|
i.value = {
|
|
4108
|
-
...
|
|
4109
|
+
...S,
|
|
4109
4110
|
width: G,
|
|
4110
4111
|
height: oe,
|
|
4111
4112
|
left: l.value.left - (G - l.value.width)
|
|
@@ -4115,7 +4116,7 @@ const Ds = {
|
|
|
4115
4116
|
() => {
|
|
4116
4117
|
const G = l.value.width * (1 + $.y / l.value.height), oe = l.value.height + $.y;
|
|
4117
4118
|
i.value = {
|
|
4118
|
-
...
|
|
4119
|
+
...S,
|
|
4119
4120
|
width: G,
|
|
4120
4121
|
height: oe,
|
|
4121
4122
|
left: l.value.left - (G - l.value.width) / 2
|
|
@@ -4131,53 +4132,53 @@ const Ds = {
|
|
|
4131
4132
|
height: l.value.height + $.y
|
|
4132
4133
|
}[ee];
|
|
4133
4134
|
i.value = {
|
|
4134
|
-
...
|
|
4135
|
+
...S,
|
|
4135
4136
|
width: G,
|
|
4136
4137
|
height: oe
|
|
4137
4138
|
};
|
|
4138
4139
|
}
|
|
4139
4140
|
][c.value]();
|
|
4140
4141
|
}, B = (L) => {
|
|
4141
|
-
const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y },
|
|
4142
|
+
const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, S = { ...D.value }, ee = [
|
|
4142
4143
|
{
|
|
4143
|
-
...
|
|
4144
|
+
...S,
|
|
4144
4145
|
width: l.value.width - $.x,
|
|
4145
4146
|
height: l.value.height - $.y,
|
|
4146
4147
|
left: l.value.left + $.x,
|
|
4147
4148
|
top: l.value.top + $.y
|
|
4148
4149
|
},
|
|
4149
4150
|
{
|
|
4150
|
-
...
|
|
4151
|
+
...S,
|
|
4151
4152
|
height: l.value.height - $.y,
|
|
4152
4153
|
top: l.value.top + $.y
|
|
4153
4154
|
},
|
|
4154
4155
|
{
|
|
4155
|
-
...
|
|
4156
|
+
...S,
|
|
4156
4157
|
width: l.value.width + $.x,
|
|
4157
4158
|
height: l.value.height - $.y,
|
|
4158
4159
|
top: l.value.top + $.y
|
|
4159
4160
|
},
|
|
4160
4161
|
{
|
|
4161
|
-
...
|
|
4162
|
+
...S,
|
|
4162
4163
|
width: l.value.width - $.x,
|
|
4163
4164
|
left: l.value.left + $.x
|
|
4164
4165
|
},
|
|
4165
4166
|
{
|
|
4166
|
-
...
|
|
4167
|
+
...S,
|
|
4167
4168
|
width: l.value.width + $.x
|
|
4168
4169
|
},
|
|
4169
4170
|
{
|
|
4170
|
-
...
|
|
4171
|
+
...S,
|
|
4171
4172
|
width: l.value.width - $.x,
|
|
4172
4173
|
height: l.value.height + $.y,
|
|
4173
4174
|
left: l.value.left + $.x
|
|
4174
4175
|
},
|
|
4175
4176
|
{
|
|
4176
|
-
...
|
|
4177
|
+
...S,
|
|
4177
4178
|
height: l.value.height + $.y
|
|
4178
4179
|
},
|
|
4179
4180
|
{
|
|
4180
|
-
...
|
|
4181
|
+
...S,
|
|
4181
4182
|
width: l.value.width + $.x,
|
|
4182
4183
|
height: l.value.height + $.y
|
|
4183
4184
|
}
|
|
@@ -4185,7 +4186,7 @@ const Ds = {
|
|
|
4185
4186
|
i.value = ee[c.value];
|
|
4186
4187
|
}, ue = () => {
|
|
4187
4188
|
var L;
|
|
4188
|
-
|
|
4189
|
+
m.value.removeEventListener("mousemove", R), m.value.removeEventListener("mousemove", B), m.value.removeEventListener("mouseleave", ue), m.value.removeEventListener("mouseup", ue), ((L = D.value) == null ? void 0 : L.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4189
4190
|
}, he = (L) => {
|
|
4190
4191
|
if (!L || L === D.value.content) {
|
|
4191
4192
|
u.value++;
|
|
@@ -4194,38 +4195,38 @@ const Ds = {
|
|
|
4194
4195
|
t("changeAbsTxtItem", { ...D.value, content: L });
|
|
4195
4196
|
}, se = (L, $) => {
|
|
4196
4197
|
var ee;
|
|
4197
|
-
const
|
|
4198
|
-
!L && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe ||
|
|
4198
|
+
const S = document.body.querySelector(`.cke_editor_${ht}`);
|
|
4199
|
+
!L && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe || S && window.getComputedStyle(S).display !== "none") || (Y.value = L == null ? void 0 : L.key, i.value = L ? { ...L } : null);
|
|
4199
4200
|
};
|
|
4200
4201
|
return (L, $) => (s(), d(M, null, [
|
|
4201
|
-
(s(!0), d(M, null, V(J.value, (
|
|
4202
|
-
var ee, pe, G, oe,
|
|
4202
|
+
(s(!0), d(M, null, V(J.value, (S) => {
|
|
4203
|
+
var ee, pe, G, oe, Se, Te, ge;
|
|
4203
4204
|
return ft((s(), d("div", {
|
|
4204
|
-
key:
|
|
4205
|
+
key: S.id,
|
|
4205
4206
|
"data-safe": "true",
|
|
4206
|
-
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) ===
|
|
4207
|
-
style: W({ left: Math.max(((pe = v.value[
|
|
4208
|
-
onMousedown: Le((f) => se(
|
|
4207
|
+
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === S.key ? "z-8" : "z-7"]),
|
|
4208
|
+
style: W({ left: Math.max(((pe = v.value[S.key]) == null ? void 0 : pe.left) || S.left, 0) + "px", top: Math.max(((G = v.value[S.key]) == null ? void 0 : G.top) || S.top, 0) + "px", width: (((oe = v.value[S.key]) == null ? void 0 : oe.width) || S.width) + "px", height: (((Se = v.value[S.key]) == null ? void 0 : Se.height) || S.height) + "px", transform: `rotate(${((Te = v.value[S.key]) == null ? void 0 : Te.rotate) || S.rotate}deg)` }),
|
|
4209
|
+
onMousedown: Le((f) => se(S), ["stop"]),
|
|
4209
4210
|
"data-block": x(Ee)
|
|
4210
4211
|
}, [
|
|
4211
4212
|
g("img", {
|
|
4212
|
-
src:
|
|
4213
|
+
src: S.url
|
|
4213
4214
|
}, null, 8, Ns),
|
|
4214
|
-
((ge = D.value) == null ? void 0 : ge.key) ===
|
|
4215
|
+
((ge = D.value) == null ? void 0 : ge.key) === S.key ? (s(), d(M, { key: 0 }, [
|
|
4215
4216
|
g("span", Bs, [
|
|
4216
4217
|
K(_e, {
|
|
4217
4218
|
name: "close",
|
|
4218
4219
|
width: 2,
|
|
4219
4220
|
class: "cursor-pointer",
|
|
4220
|
-
onClick: (f) => t("delAbsImgItem",
|
|
4221
|
+
onClick: (f) => t("delAbsImgItem", S)
|
|
4221
4222
|
}, null, 8, ["onClick"])
|
|
4222
4223
|
]),
|
|
4223
4224
|
g("div", Os, [
|
|
4224
|
-
(s(), d(M, null, V(8, (f,
|
|
4225
|
+
(s(), d(M, null, V(8, (f, T) => g("div", {
|
|
4225
4226
|
key: f,
|
|
4226
4227
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4227
|
-
style: W({ ...r[
|
|
4228
|
-
onMousedown: Le((ye) => w(ye,
|
|
4228
|
+
style: W({ ...r[T], transform: "translate(-50%, -50%)" }),
|
|
4229
|
+
onMousedown: Le((ye) => w(ye, T), ["stop"])
|
|
4229
4230
|
}, null, 44, zs)), 64))
|
|
4230
4231
|
]),
|
|
4231
4232
|
g("span", {
|
|
@@ -4243,42 +4244,42 @@ const Ds = {
|
|
|
4243
4244
|
[x(a), (f) => se(null, f)]
|
|
4244
4245
|
]);
|
|
4245
4246
|
}), 128)),
|
|
4246
|
-
(s(!0), d(M, null, V(
|
|
4247
|
-
var ee, pe, G, oe,
|
|
4247
|
+
(s(!0), d(M, null, V(F.value, (S) => {
|
|
4248
|
+
var ee, pe, G, oe, Se, Te, ge;
|
|
4248
4249
|
return ft((s(), d("div", {
|
|
4249
|
-
key:
|
|
4250
|
-
disabled:
|
|
4250
|
+
key: S.id,
|
|
4251
|
+
disabled: E.value,
|
|
4251
4252
|
"data-safe": "true",
|
|
4252
|
-
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) ===
|
|
4253
|
-
style: W({ left: Math.max(((pe = v.value[
|
|
4254
|
-
onMousedown: Le((f) => se(
|
|
4253
|
+
class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === S.key ? "z-8 bg-white" : "z-7"]),
|
|
4254
|
+
style: W({ left: Math.max(((pe = v.value[S.key]) == null ? void 0 : pe.left) || S.left, 0) + "px", top: Math.max(((G = v.value[S.key]) == null ? void 0 : G.top) || S.top, 0) + "px", width: (((oe = v.value[S.key]) == null ? void 0 : oe.width) || S.width) + "px", height: (((Se = v.value[S.key]) == null ? void 0 : Se.height) || S.height) + "px" }),
|
|
4255
|
+
onMousedown: Le((f) => se(S), ["stop"]),
|
|
4255
4256
|
"data-block": x(Ee)
|
|
4256
4257
|
}, [
|
|
4257
4258
|
(s(), U(Ms, {
|
|
4258
4259
|
key: u.value,
|
|
4259
4260
|
class: "border-0 relative z-4",
|
|
4260
|
-
readonly: ((
|
|
4261
|
-
value:
|
|
4262
|
-
name:
|
|
4261
|
+
readonly: ((Te = D.value) == null ? void 0 : Te.key) !== S.key,
|
|
4262
|
+
value: S.content,
|
|
4263
|
+
name: S.id.toString(),
|
|
4263
4264
|
onChange: he,
|
|
4264
4265
|
onFocus: $[0] || ($[0] = (f) => ne(!0)),
|
|
4265
4266
|
onBlur: $[1] || ($[1] = (f) => ne(!1))
|
|
4266
4267
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4267
|
-
((ge = D.value) == null ? void 0 : ge.key) ===
|
|
4268
|
+
((ge = D.value) == null ? void 0 : ge.key) === S.key ? (s(), d(M, { key: 0 }, [
|
|
4268
4269
|
g("span", Gs, [
|
|
4269
4270
|
K(_e, {
|
|
4270
4271
|
name: "close",
|
|
4271
4272
|
width: 2,
|
|
4272
4273
|
class: "cursor-pointer",
|
|
4273
|
-
onClick: (f) => t("delAbsTxtItem",
|
|
4274
|
+
onClick: (f) => t("delAbsTxtItem", S)
|
|
4274
4275
|
}, null, 8, ["onClick"])
|
|
4275
4276
|
]),
|
|
4276
4277
|
g("div", Ws, [
|
|
4277
|
-
(s(), d(M, null, V(8, (f,
|
|
4278
|
+
(s(), d(M, null, V(8, (f, T) => g("div", {
|
|
4278
4279
|
key: f,
|
|
4279
4280
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4280
|
-
style: W({ ...r[
|
|
4281
|
-
onMousedown: (ye) => w(ye,
|
|
4281
|
+
style: W({ ...r[T], transform: "translate(-50%, -50%)" }),
|
|
4282
|
+
onMousedown: (ye) => w(ye, T)
|
|
4282
4283
|
}, null, 44, Ys)), 64))
|
|
4283
4284
|
])
|
|
4284
4285
|
], 64)) : P("", !0)
|
|
@@ -4313,61 +4314,61 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4313
4314
|
setup(e, { emit: t }) {
|
|
4314
4315
|
const o = e;
|
|
4315
4316
|
Gt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4316
|
-
const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]),
|
|
4317
|
+
const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]), m = Q([]), O = Q([]), h = Q([]), E = A(() => o.data.map((f) => ({
|
|
4317
4318
|
...f,
|
|
4318
4319
|
__tag__: xt(),
|
|
4319
4320
|
rawChildren: f.children,
|
|
4320
|
-
children: f.children.map((
|
|
4321
|
+
children: f.children.map((T) => ({ ...T, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: xt() }))
|
|
4321
4322
|
})).flat()), Y = A(() => {
|
|
4322
|
-
const f =
|
|
4323
|
-
return ne.value && [p.slove].includes(
|
|
4323
|
+
const f = E.value[E.value.length - 1], T = f.rawChildren[f.rawChildren.length - 1];
|
|
4324
|
+
return ne.value && [p.slove].includes(T == null ? void 0 : T.problemType) && T.id;
|
|
4324
4325
|
}), J = A(() => {
|
|
4325
4326
|
var f;
|
|
4326
|
-
return o.layout.bindFlag && !!((f =
|
|
4327
|
-
}),
|
|
4327
|
+
return o.layout.bindFlag && !!((f = ze.find((T) => T.code === o.layout.paper)) != null && f.isMultCol);
|
|
4328
|
+
}), F = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), k = A(() => b[o.layout.paper].width - _.value.left - _.value.right), w = A(() => b[o.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (k.value - (i.value ? i.value + pe(0) : 0) + pe(0)) / o.layout.column - pe(0)), B = A(() => ({
|
|
4328
4329
|
width: `${b[o.layout.paper].width}px`,
|
|
4329
|
-
height: `${(b[o.layout.paper].height +
|
|
4330
|
+
height: `${(b[o.layout.paper].height + F.value) * z.value - F.value}px`
|
|
4330
4331
|
})), ue = A(() => ({
|
|
4331
4332
|
width: `${b[o.layout.paper].width}px`,
|
|
4332
4333
|
height: `${b[o.layout.paper].height}px`,
|
|
4333
4334
|
padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
|
|
4334
|
-
marginBottom: `${
|
|
4335
|
+
marginBottom: `${F.value}px`
|
|
4335
4336
|
})), he = A(() => {
|
|
4336
|
-
var
|
|
4337
|
-
const f = (
|
|
4337
|
+
var T;
|
|
4338
|
+
const f = (T = ze.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : T.isMultCol;
|
|
4338
4339
|
return {
|
|
4339
4340
|
left: `${_.value.left + (i.value ? i.value + pe(0) : 0)}px`,
|
|
4340
4341
|
top: `${_.value.top}px`,
|
|
4341
4342
|
width: f ? `${R.value}px` : `${k.value}px`
|
|
4342
4343
|
};
|
|
4343
4344
|
});
|
|
4344
|
-
|
|
4345
|
+
Ae(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4345
4346
|
setTimeout(() => {
|
|
4346
|
-
l.value += 1,
|
|
4347
|
+
l.value += 1, Te();
|
|
4347
4348
|
}, 100);
|
|
4348
|
-
}, { immediate: !0 }),
|
|
4349
|
+
}, { immediate: !0 }), Ae(() => J.value, () => {
|
|
4349
4350
|
i.value = J.value ? 100 : 0;
|
|
4350
4351
|
}, { immediate: !0 });
|
|
4351
|
-
const se = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (f,
|
|
4352
|
-
const
|
|
4353
|
-
return
|
|
4354
|
-
},
|
|
4355
|
-
f ? u.value[
|
|
4356
|
-
}, ee = (f,
|
|
4357
|
-
f ?
|
|
4358
|
-
}, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, G = (f,
|
|
4352
|
+
const se = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (f, T) => Math.floor(T / 2) * (o.layout.column + o.layout.backColumn) + T % 2 * o.layout.column + f, $ = (f) => {
|
|
4353
|
+
const T = f % (o.layout.column + o.layout.backColumn);
|
|
4354
|
+
return T >= o.layout.column ? T - o.layout.column : T;
|
|
4355
|
+
}, S = (f, T) => {
|
|
4356
|
+
f ? u.value[T] = f : u.value.splice(T, 1);
|
|
4357
|
+
}, ee = (f, T) => {
|
|
4358
|
+
f ? m.value[T] = f : m.value.splice(T, 1);
|
|
4359
|
+
}, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, G = (f, T = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / se(f) - pe(f) - H.value.left - H.value.right + (T ? H.value.left + H.value.right : 0), oe = (f, T) => {
|
|
4359
4360
|
var j, ie;
|
|
4360
|
-
const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((j = O.value[Math.min(
|
|
4361
|
+
const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((j = O.value[Math.min(T, 1)]) == null ? void 0 : j.offsetHeight) || 0;
|
|
4361
4362
|
return {
|
|
4362
|
-
left: `${_.value.left + (
|
|
4363
|
-
top: `${ye + _.value.top + (!
|
|
4363
|
+
left: `${_.value.left + (T % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (G(f) + pe(f) + H.value.left + H.value.right)}px`,
|
|
4364
|
+
top: `${ye + _.value.top + (!T && !f ? 0 : H.value.top)}px`,
|
|
4364
4365
|
width: `${G(f)}px`,
|
|
4365
|
-
height: `${w.value - ye - (!
|
|
4366
|
+
height: `${w.value - ye - (!T && !f ? 0 : H.value.top) - H.value.bottom}px`,
|
|
4366
4367
|
contentHeight: `${(ie = a.value[f]) == null ? void 0 : ie.height}px`
|
|
4367
4368
|
};
|
|
4368
|
-
},
|
|
4369
|
-
n.value = f.map((ye) => ({ ...ye })),
|
|
4370
|
-
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [],
|
|
4369
|
+
}, Se = (f, T = !1) => {
|
|
4370
|
+
n.value = f.map((ye) => ({ ...ye })), T && (a.value = [...f], Ze(() => {
|
|
4371
|
+
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((ye, j) => {
|
|
4371
4372
|
var ie, Ce;
|
|
4372
4373
|
!ye || !ye.col || ((ie = a.value[j]) != null && ie.top ? ye.col.style.marginTop = `${(Ce = a.value[j]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
|
|
4373
4374
|
}), o.isFinal && setTimeout(() => {
|
|
@@ -4377,45 +4378,45 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4377
4378
|
layout: o.layout,
|
|
4378
4379
|
pageTotal: v.value,
|
|
4379
4380
|
bindWidth: i.value,
|
|
4380
|
-
pageMargin:
|
|
4381
|
+
pageMargin: F.value,
|
|
4381
4382
|
pageDom: u.value.slice(0, v.value),
|
|
4382
|
-
colDom:
|
|
4383
|
-
colViewDom:
|
|
4383
|
+
colDom: m.value.map((j) => j.col),
|
|
4384
|
+
colViewDom: m.value.map((j) => j.colView)
|
|
4384
4385
|
},
|
|
4385
4386
|
data: a.value
|
|
4386
4387
|
});
|
|
4387
4388
|
t("getFinalData", ye);
|
|
4388
4389
|
}, 500);
|
|
4389
4390
|
}));
|
|
4390
|
-
},
|
|
4391
|
-
|
|
4391
|
+
}, Te = () => {
|
|
4392
|
+
Is({
|
|
4392
4393
|
el: c.value,
|
|
4393
|
-
data:
|
|
4394
|
+
data: E.value,
|
|
4394
4395
|
column: o.layout.column,
|
|
4395
4396
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4396
4397
|
getColSize: oe,
|
|
4397
|
-
change:
|
|
4398
|
+
change: Se
|
|
4398
4399
|
});
|
|
4399
4400
|
}, ge = (f = { type: q.page, value: {} }) => {
|
|
4400
4401
|
t("toggleActive", f);
|
|
4401
4402
|
};
|
|
4402
|
-
return (f,
|
|
4403
|
+
return (f, T) => {
|
|
4403
4404
|
var ye;
|
|
4404
4405
|
return s(), d(M, null, [
|
|
4405
4406
|
f.readonly ? P("", !0) : (s(), U(Cs, {
|
|
4406
4407
|
key: 0,
|
|
4407
4408
|
ColList: a.value,
|
|
4408
|
-
ColDom:
|
|
4409
|
+
ColDom: m.value.map((j) => j.col),
|
|
4409
4410
|
ImgData: f.imgData,
|
|
4410
4411
|
TxtData: f.txtData,
|
|
4411
|
-
onDelAbsImgItem:
|
|
4412
|
-
onDelAbsTxtItem:
|
|
4413
|
-
onChangeLayoutStatus:
|
|
4412
|
+
onDelAbsImgItem: T[0] || (T[0] = (j) => t("delAbsImgItem", j)),
|
|
4413
|
+
onDelAbsTxtItem: T[1] || (T[1] = (j) => t("delAbsTxtItem", j)),
|
|
4414
|
+
onChangeLayoutStatus: T[2] || (T[2] = (j) => t("changeLayoutStatus", j))
|
|
4414
4415
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4415
4416
|
g("div", {
|
|
4416
4417
|
class: "flex-1 overflow-auto relative z-1",
|
|
4417
4418
|
id: "alit-layout",
|
|
4418
|
-
onClick:
|
|
4419
|
+
onClick: T[14] || (T[14] = (j) => ge())
|
|
4419
4420
|
}, [
|
|
4420
4421
|
g("div", {
|
|
4421
4422
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
@@ -4434,7 +4435,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4434
4435
|
key: 1,
|
|
4435
4436
|
class: te([!j.children.length && j.problemType && "p-1 min-h-[2rem]"])
|
|
4436
4437
|
}, [
|
|
4437
|
-
(s(), U(
|
|
4438
|
+
(s(), U(Ye, {
|
|
4438
4439
|
data: j,
|
|
4439
4440
|
key: n.value.length,
|
|
4440
4441
|
layout: f.layout,
|
|
@@ -4442,7 +4443,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4442
4443
|
noPortrait: "",
|
|
4443
4444
|
width: G(n.value.length - 1) - 10
|
|
4444
4445
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4445
|
-
], 2)) : (s(), U(
|
|
4446
|
+
], 2)) : (s(), U(Ye, {
|
|
4446
4447
|
data: j,
|
|
4447
4448
|
key: n.value.length,
|
|
4448
4449
|
layout: f.layout,
|
|
@@ -4460,10 +4461,10 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4460
4461
|
txtData: f.txtData,
|
|
4461
4462
|
layout: f.layout,
|
|
4462
4463
|
pageMargin: D.value,
|
|
4463
|
-
onChangeAbsImgItem:
|
|
4464
|
-
onDelAbsImgItem:
|
|
4465
|
-
onChangeAbsTxtItem:
|
|
4466
|
-
onDelAbsTxtItem:
|
|
4464
|
+
onChangeAbsImgItem: T[3] || (T[3] = (j) => t("changeAbsImgItem", j)),
|
|
4465
|
+
onDelAbsImgItem: T[4] || (T[4] = (j) => t("delAbsImgItem", j)),
|
|
4466
|
+
onChangeAbsTxtItem: T[5] || (T[5] = (j) => t("changeAbsTxtItem", j)),
|
|
4467
|
+
onDelAbsTxtItem: T[6] || (T[6] = (j) => t("delAbsTxtItem", j))
|
|
4467
4468
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4468
4469
|
(s(), d("svg", {
|
|
4469
4470
|
viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
|
|
@@ -4476,7 +4477,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4476
4477
|
key: j,
|
|
4477
4478
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4478
4479
|
ref_for: !0,
|
|
4479
|
-
ref: (Ce) =>
|
|
4480
|
+
ref: (Ce) => S(Ce, ie),
|
|
4480
4481
|
style: W(ue.value)
|
|
4481
4482
|
}, [
|
|
4482
4483
|
ie < v.value ? (s(), d(M, { key: 0 }, [
|
|
@@ -4493,7 +4494,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4493
4494
|
key: 0,
|
|
4494
4495
|
info: f.info,
|
|
4495
4496
|
layout: f.layout,
|
|
4496
|
-
onChange:
|
|
4497
|
+
onChange: T[7] || (T[7] = (Ce) => t("changeInfo", Ce))
|
|
4497
4498
|
}, null, 8, ["info", "layout"])) : P("", !0),
|
|
4498
4499
|
K(Ja, {
|
|
4499
4500
|
ref_for: !0,
|
|
@@ -4521,13 +4522,13 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4521
4522
|
layout: f.layout,
|
|
4522
4523
|
fontConfig: f.fontConfig,
|
|
4523
4524
|
data: f.data,
|
|
4524
|
-
onChange:
|
|
4525
|
+
onChange: T[8] || (T[8] = (Ce) => t("changeInfo", Ce))
|
|
4525
4526
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
4526
4527
|
K(ka, {
|
|
4527
4528
|
layout: f.layout,
|
|
4528
4529
|
info: f.info,
|
|
4529
4530
|
isBindFlag: J.value,
|
|
4530
|
-
onChange:
|
|
4531
|
+
onChange: T[9] || (T[9] = (Ce) => t("changeExtentInfo", Ce))
|
|
4531
4532
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4532
4533
|
K(Ba, {
|
|
4533
4534
|
layout: f.layout,
|
|
@@ -4546,16 +4547,16 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4546
4547
|
], 6)) : P("", !0),
|
|
4547
4548
|
(s(!0), d(M, null, V(ie % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), U(Qa, {
|
|
4548
4549
|
ref_for: !0,
|
|
4549
|
-
ref: (
|
|
4550
|
+
ref: (We) => ee(We, L(Me, ie)),
|
|
4550
4551
|
styleInfo: oe(L(Me, ie), ie),
|
|
4551
4552
|
column: f.layout.column,
|
|
4552
4553
|
currentColumn: L(Me, ie),
|
|
4553
4554
|
showColBorder: ne.value
|
|
4554
4555
|
}, {
|
|
4555
|
-
default:
|
|
4556
|
-
var
|
|
4556
|
+
default: St(() => {
|
|
4557
|
+
var We;
|
|
4557
4558
|
return [
|
|
4558
|
-
(s(!0), d(M, null, V(((
|
|
4559
|
+
(s(!0), d(M, null, V(((We = a.value[L(Me, ie)]) == null ? void 0 : We.data) || [], (fe, zt) => {
|
|
4559
4560
|
var pt;
|
|
4560
4561
|
return s(), d(M, null, [
|
|
4561
4562
|
fe.isHidden ? P("", !0) : (s(), U(Ct, {
|
|
@@ -4574,27 +4575,27 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4574
4575
|
onClick: Le((xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }), ["stop"]),
|
|
4575
4576
|
onDblclick: (xe) => t("dbHeadLineClick", fe)
|
|
4576
4577
|
}, [
|
|
4577
|
-
K(
|
|
4578
|
+
K(Ye, {
|
|
4578
4579
|
data: fe,
|
|
4579
4580
|
layout: f.layout,
|
|
4580
4581
|
target: f.target,
|
|
4581
4582
|
width: G(L(Me, ie)) - 10,
|
|
4582
|
-
onClick:
|
|
4583
|
-
onDbclick:
|
|
4583
|
+
onClick: T[10] || (T[10] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
|
|
4584
|
+
onDbclick: T[11] || (T[11] = (xe) => t("dbProblemClick", xe))
|
|
4584
4585
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4585
4586
|
fe.children.length && fe.children[fe.children.length - 1].id === Y.value ? (s(), d("div", {
|
|
4586
4587
|
key: 0,
|
|
4587
4588
|
class: "border-t",
|
|
4588
4589
|
"data-block": x(Ee)
|
|
4589
4590
|
}, null, 8, Xs)) : P("", !0)
|
|
4590
|
-
], 42, js)) : (s(), U(
|
|
4591
|
+
], 42, js)) : (s(), U(Ye, {
|
|
4591
4592
|
key: 2,
|
|
4592
4593
|
data: fe,
|
|
4593
4594
|
layout: f.layout,
|
|
4594
4595
|
target: f.target,
|
|
4595
4596
|
width: G(L(Me, ie)),
|
|
4596
|
-
onClick:
|
|
4597
|
-
onDbclick:
|
|
4597
|
+
onClick: T[12] || (T[12] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
|
|
4598
|
+
onDbclick: T[13] || (T[13] = (xe) => t("dbProblemClick", xe))
|
|
4598
4599
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4599
4600
|
], 64);
|
|
4600
4601
|
}), 256))
|