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