alit-layout 1.1.22 → 1.1.24
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 +1008 -994
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, computed as R, openBlock as r, createElementBlock as
|
|
1
|
+
import { defineComponent as se, computed as R, openBlock as r, createElementBlock as h, Fragment as O, renderList as ne, createElementVNode as w, normalizeStyle as Z, unref as F, toDisplayString as te, createCommentVNode as D, ref as U, watch as Oe, normalizeClass as oe, createBlock as ee, createTextVNode as et, createVNode as le, pushScopeId as Qe, popScopeId as qe, renderSlot as _t, onMounted as Ye, nextTick as nt, withModifiers as De, resolveComponent as Yt, resolveDynamicComponent as xt, normalizeProps as Ct, guardReactiveProps as St, withCtx as Mt, inject as Kt, withDirectives as $t, provide as Ut } from "vue";
|
|
2
2
|
const je = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -56,7 +56,7 @@ const je = {
|
|
|
56
56
|
{ name: "8k", code: "8k", size: "370*260mm", isMultCol: !0 },
|
|
57
57
|
{ name: "16k", code: "16k", size: "185*260mm" },
|
|
58
58
|
{ name: "B4", code: "b4", size: "353*250mm", isMultCol: !0 }
|
|
59
|
-
],
|
|
59
|
+
], x = {
|
|
60
60
|
a3: {
|
|
61
61
|
width: 1588,
|
|
62
62
|
height: 1124
|
|
@@ -169,134 +169,134 @@ const je = {
|
|
|
169
169
|
}, tt = ["a3", "a3+", "8k", "b4"], ft = {
|
|
170
170
|
article: {
|
|
171
171
|
a3: {
|
|
172
|
-
top:
|
|
173
|
-
right:
|
|
174
|
-
bottom:
|
|
175
|
-
left:
|
|
172
|
+
top: x.a3.width / 420 * 20.5,
|
|
173
|
+
right: x.a3.width / 420 * 20.5,
|
|
174
|
+
bottom: x.a3.width / 420 * 20.5,
|
|
175
|
+
left: x.a3.width / 420 * 20.5
|
|
176
176
|
},
|
|
177
177
|
"a3+": {
|
|
178
|
-
top:
|
|
179
|
-
right:
|
|
180
|
-
bottom:
|
|
181
|
-
left:
|
|
178
|
+
top: x["a3+"].width / 420 * 20.5,
|
|
179
|
+
right: x["a3+"].width / 420 * 20.5,
|
|
180
|
+
bottom: x["a3+"].width / 420 * 20.5,
|
|
181
|
+
left: x["a3+"].width / 420 * 20.5
|
|
182
182
|
},
|
|
183
183
|
a4: {
|
|
184
|
-
top:
|
|
185
|
-
right:
|
|
186
|
-
bottom:
|
|
187
|
-
left:
|
|
184
|
+
top: x.a4.width / 210 * 20.5,
|
|
185
|
+
right: x.a4.width / 210 * 20.5,
|
|
186
|
+
bottom: x.a4.width / 210 * 20.5,
|
|
187
|
+
left: x.a4.width / 210 * 20.5
|
|
188
188
|
},
|
|
189
189
|
a4x: {
|
|
190
|
-
top:
|
|
191
|
-
right:
|
|
192
|
-
bottom:
|
|
193
|
-
left:
|
|
190
|
+
top: x.b4.width / 353 * 20,
|
|
191
|
+
right: x.b4.width / 353 * 20,
|
|
192
|
+
bottom: x.b4.width / 353 * 20,
|
|
193
|
+
left: x.b4.width / 353 * 20
|
|
194
194
|
},
|
|
195
195
|
"8k": {
|
|
196
|
-
top:
|
|
197
|
-
right:
|
|
198
|
-
bottom:
|
|
199
|
-
left:
|
|
196
|
+
top: x["8k"].width / 370 * 17.5,
|
|
197
|
+
right: x["8k"].width / 370 * 17.5,
|
|
198
|
+
bottom: x["8k"].width / 370 * 17.5,
|
|
199
|
+
left: x["8k"].width / 370 * 17.5
|
|
200
200
|
},
|
|
201
201
|
"16k": {
|
|
202
|
-
top:
|
|
203
|
-
right:
|
|
204
|
-
bottom:
|
|
205
|
-
left:
|
|
202
|
+
top: x["16k"].width / 185 * 14.5,
|
|
203
|
+
right: x["16k"].width / 185 * 14.5,
|
|
204
|
+
bottom: x["16k"].width / 185 * 14.5,
|
|
205
|
+
left: x["16k"].width / 185 * 14.5
|
|
206
206
|
},
|
|
207
207
|
b4: {
|
|
208
|
-
top:
|
|
209
|
-
right:
|
|
210
|
-
bottom:
|
|
211
|
-
left:
|
|
208
|
+
top: x.b4.width / 353 * 17.5,
|
|
209
|
+
right: x.b4.width / 353 * 17.5,
|
|
210
|
+
bottom: x.b4.width / 353 * 17.5,
|
|
211
|
+
left: x.b4.width / 353 * 17.5
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
sheet: {
|
|
215
215
|
a3: {
|
|
216
|
-
top:
|
|
217
|
-
right:
|
|
218
|
-
bottom:
|
|
219
|
-
left:
|
|
216
|
+
top: x.a3.width / 420 * 19,
|
|
217
|
+
right: x.a3.width / 420 * 19,
|
|
218
|
+
bottom: x.a3.width / 420 * 19,
|
|
219
|
+
left: x.a3.width / 420 * 19
|
|
220
220
|
},
|
|
221
221
|
"a3+": {
|
|
222
|
-
top:
|
|
223
|
-
right:
|
|
224
|
-
bottom:
|
|
225
|
-
left:
|
|
222
|
+
top: x["a3+"].width / 420 * 19,
|
|
223
|
+
right: x["a3+"].width / 420 * 19,
|
|
224
|
+
bottom: x["a3+"].width / 420 * 19,
|
|
225
|
+
left: x["a3+"].width / 420 * 19
|
|
226
226
|
},
|
|
227
227
|
a4: {
|
|
228
|
-
top:
|
|
229
|
-
right:
|
|
230
|
-
bottom:
|
|
231
|
-
left:
|
|
228
|
+
top: x.a4.width / 210 * 19,
|
|
229
|
+
right: x.a4.width / 210 * 19,
|
|
230
|
+
bottom: x.a4.width / 210 * 19,
|
|
231
|
+
left: x.a4.width / 210 * 19
|
|
232
232
|
},
|
|
233
233
|
a4x: {
|
|
234
|
-
top:
|
|
235
|
-
right:
|
|
236
|
-
bottom:
|
|
237
|
-
left:
|
|
234
|
+
top: x.b4.width / 353 * 20,
|
|
235
|
+
right: x.b4.width / 353 * 20,
|
|
236
|
+
bottom: x.b4.width / 353 * 20,
|
|
237
|
+
left: x.b4.width / 353 * 20
|
|
238
238
|
},
|
|
239
239
|
"8k": {
|
|
240
|
-
top:
|
|
241
|
-
right:
|
|
242
|
-
bottom:
|
|
243
|
-
left:
|
|
240
|
+
top: x["8k"].width / 370 * 16,
|
|
241
|
+
right: x["8k"].width / 370 * 16,
|
|
242
|
+
bottom: x["8k"].width / 370 * 16,
|
|
243
|
+
left: x["8k"].width / 370 * 16
|
|
244
244
|
},
|
|
245
245
|
"16k": {
|
|
246
|
-
top:
|
|
247
|
-
right:
|
|
248
|
-
bottom:
|
|
249
|
-
left:
|
|
246
|
+
top: x["16k"].width / 185 * 15,
|
|
247
|
+
right: x["16k"].width / 185 * 15,
|
|
248
|
+
bottom: x["16k"].width / 185 * 15,
|
|
249
|
+
left: x["16k"].width / 185 * 15
|
|
250
250
|
},
|
|
251
251
|
b4: {
|
|
252
|
-
top:
|
|
253
|
-
right:
|
|
254
|
-
bottom:
|
|
255
|
-
left:
|
|
252
|
+
top: x.b4.width / 353 * 19,
|
|
253
|
+
right: x.b4.width / 353 * 19,
|
|
254
|
+
bottom: x.b4.width / 353 * 19,
|
|
255
|
+
left: x.b4.width / 353 * 19
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
sheetCard: {
|
|
259
259
|
a3: {
|
|
260
|
-
top:
|
|
261
|
-
right:
|
|
262
|
-
bottom:
|
|
263
|
-
left:
|
|
260
|
+
top: x.a3.width / 420 * 19,
|
|
261
|
+
right: x.a3.width / 420 * 19,
|
|
262
|
+
bottom: x.a3.width / 420 * 19,
|
|
263
|
+
left: x.a3.width / 420 * 19
|
|
264
264
|
},
|
|
265
265
|
"a3+": {
|
|
266
|
-
top:
|
|
267
|
-
right:
|
|
268
|
-
bottom:
|
|
269
|
-
left:
|
|
266
|
+
top: x["a3+"].width / 420 * 19,
|
|
267
|
+
right: x["a3+"].width / 420 * 19,
|
|
268
|
+
bottom: x["a3+"].width / 420 * 19,
|
|
269
|
+
left: x["a3+"].width / 420 * 19
|
|
270
270
|
},
|
|
271
271
|
a4: {
|
|
272
|
-
top:
|
|
273
|
-
right:
|
|
274
|
-
bottom:
|
|
275
|
-
left:
|
|
272
|
+
top: x.a4.width / 210 * 19,
|
|
273
|
+
right: x.a4.width / 210 * 19,
|
|
274
|
+
bottom: x.a4.width / 210 * 19,
|
|
275
|
+
left: x.a4.width / 210 * 19
|
|
276
276
|
},
|
|
277
277
|
a4x: {
|
|
278
|
-
top:
|
|
279
|
-
right:
|
|
280
|
-
bottom:
|
|
281
|
-
left:
|
|
278
|
+
top: x.b4.width / 353 * 20,
|
|
279
|
+
right: x.b4.width / 353 * 20,
|
|
280
|
+
bottom: x.b4.width / 353 * 20,
|
|
281
|
+
left: x.b4.width / 353 * 20
|
|
282
282
|
},
|
|
283
283
|
"8k": {
|
|
284
|
-
top:
|
|
285
|
-
right:
|
|
286
|
-
bottom:
|
|
287
|
-
left:
|
|
284
|
+
top: x["8k"].width / 370 * 16,
|
|
285
|
+
right: x["8k"].width / 370 * 16,
|
|
286
|
+
bottom: x["8k"].width / 370 * 16,
|
|
287
|
+
left: x["8k"].width / 370 * 16
|
|
288
288
|
},
|
|
289
289
|
"16k": {
|
|
290
|
-
top:
|
|
291
|
-
right:
|
|
292
|
-
bottom:
|
|
293
|
-
left:
|
|
290
|
+
top: x["16k"].width / 185 * 15,
|
|
291
|
+
right: x["16k"].width / 185 * 15,
|
|
292
|
+
bottom: x["16k"].width / 185 * 15,
|
|
293
|
+
left: x["16k"].width / 185 * 15
|
|
294
294
|
},
|
|
295
295
|
b4: {
|
|
296
|
-
top:
|
|
297
|
-
right:
|
|
298
|
-
bottom:
|
|
299
|
-
left:
|
|
296
|
+
top: x.b4.width / 353 * 19,
|
|
297
|
+
right: x.b4.width / 353 * 19,
|
|
298
|
+
bottom: x.b4.width / 353 * 19,
|
|
299
|
+
left: x.b4.width / 353 * 19
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}, Xt = {
|
|
@@ -631,7 +631,7 @@ const je = {
|
|
|
631
631
|
max: "max",
|
|
632
632
|
col_1: 1,
|
|
633
633
|
col_2: 2
|
|
634
|
-
},
|
|
634
|
+
}, 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: [z.headline],
|
|
798
798
|
show: (e) => ![m.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: [z.headline],
|
|
811
811
|
show: (e) => ![m.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: [z.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: [z.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: [z.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: [z.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: [z.page, z.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: [z.page, z.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: [z.page, z.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: [z.page, z.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 === m.fill,
|
|
1112
1112
|
target: [z.problem],
|
|
1113
|
-
show: (e) => !e.style[
|
|
1113
|
+
show: (e) => !e.style[u.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === m.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(m).includes(t.problemType) && !t.style[u.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.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(m).includes(t.problemType) && !t.style[u.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.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: [z.problem],
|
|
1145
|
-
show: (e) => !e.style[
|
|
1145
|
+
show: (e) => !e.style[u.sheet.mix_a] && !(e.mixType || []).find((t) => ![m.choice, m.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: [z.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: [z.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) => [m.synthesis].includes(e.problemType) ? [z.problem] : [z.page, z.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) => [m.synthesis].includes(e.problemType) ? [z.problem] : [z.page, z.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) => [m.synthesis].includes(e.problemType) ? [z.problem] : [z.page, z.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) => [m.synthesis].includes(e.problemType) ? [z.problem] : [m.mix].includes(e.problemType) ? [] : [z.page, z.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: [z.page, z.headline],
|
|
1368
|
-
show: (e) => e.style[
|
|
1368
|
+
show: (e) => e.style[u.sheetCard.fill_c] === _.fill_2 && [m.fill, m.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: [z.page, z.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: [z.problem],
|
|
1389
1389
|
detail: !0,
|
|
1390
1390
|
problemCode: [m.fill, m.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: [z.page, z.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) => [m.synthesis, m.mix].includes(e.problemType) ? [z.problem] : [z.page, z.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) => [m.easy_slove].includes(t.problemType)) || (e.children || []).filter((t) => Object.values(m).includes(t.problemType)).map((t) => t.mixType || []).flat(2).find((t) => [m.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: [z.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: [z.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: [z.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: [z.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(m).includes(t.problemType)).map((t) => (t.children || []).length ? t.children : t).flat(2).find((t) => [m.easy_slove, m.slove].includes(t.problemType)),
|
|
1606
1606
|
option: [
|
|
1607
1607
|
{ name: "隐藏", code: _.bracket_none },
|
|
@@ -1737,11 +1737,11 @@ const je = {
|
|
|
1737
1737
|
pageMargin: Zt,
|
|
1738
1738
|
pagePadding: ft,
|
|
1739
1739
|
pagePointPosition: Ge,
|
|
1740
|
-
pageSize:
|
|
1740
|
+
pageSize: x,
|
|
1741
1741
|
pageTitleBlockCol: to,
|
|
1742
1742
|
paper: We,
|
|
1743
1743
|
problemLayout: mo,
|
|
1744
|
-
problemLayoutKey:
|
|
1744
|
+
problemLayoutKey: 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
|
-
}, fe = window.btoa(Math.random().toString(32)).substring(0, 10),
|
|
1774
|
+
}, fe = window.btoa(Math.random().toString(32)).substring(0, 10), L = {
|
|
1775
1775
|
// 定位点 主定位点 lt rt lb rb 辅助定位点 t b
|
|
1776
1776
|
point: `__${fe}point`,
|
|
1777
1777
|
// 页码点
|
|
@@ -1872,52 +1872,52 @@ const je = {
|
|
|
1872
1872
|
b: {
|
|
1873
1873
|
bottom: `${t.padding.bottom - we}px`
|
|
1874
1874
|
}
|
|
1875
|
-
}, d = (
|
|
1875
|
+
}, d = (x[t.layout.paper].width - t.padding.left - t.padding.right + we) / (tt.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
1876
1876
|
return { left: `${i * d + t.padding.left - we}px`, width: `${we}px`, ...n[y] };
|
|
1877
1877
|
}, a = (i) => {
|
|
1878
|
-
const y = (
|
|
1878
|
+
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, d = ["", "l", "r"].findIndex((A) => A === i);
|
|
1879
1879
|
return { top: `${y * d + t.padding.top - 10}px`, width: "11px", ...n };
|
|
1880
1880
|
};
|
|
1881
1881
|
return (i, y) => {
|
|
1882
1882
|
var n;
|
|
1883
|
-
return r(),
|
|
1884
|
-
(r(),
|
|
1883
|
+
return r(), h(O, null, [
|
|
1884
|
+
(r(), h(O, null, ne(["lt", "rt", "lb", "rb"], (d) => w("span", {
|
|
1885
1885
|
key: d,
|
|
1886
1886
|
class: "absolute w-8 bg-black point_item",
|
|
1887
1887
|
style: Z(l(d)),
|
|
1888
|
-
"data-xine": L
|
|
1888
|
+
"data-xine": F(L).point + d
|
|
1889
1889
|
}, null, 12, ko)), 64)),
|
|
1890
|
-
(r(!0),
|
|
1891
|
-
(r(),
|
|
1892
|
-
key:
|
|
1890
|
+
(r(!0), h(O, null, ne(o.value, (d) => (r(), h(O, { key: d }, [
|
|
1891
|
+
(r(), h(O, null, ne(["t", "b"], (A) => w("span", {
|
|
1892
|
+
key: A,
|
|
1893
1893
|
class: "absolute bg-black w-8 point_item",
|
|
1894
|
-
style: Z(s(d,
|
|
1895
|
-
"data-xine": L
|
|
1894
|
+
style: Z(s(d, A)),
|
|
1895
|
+
"data-xine": F(L).point + A
|
|
1896
1896
|
}, null, 12, xo)), 64))
|
|
1897
1897
|
], 64))), 128)),
|
|
1898
|
-
(r(),
|
|
1898
|
+
(r(), h(O, null, ne(["l", "r"], (d) => w("span", {
|
|
1899
1899
|
key: d,
|
|
1900
1900
|
class: "absolute bg-black h-8",
|
|
1901
1901
|
style: Z(a(d)),
|
|
1902
|
-
"data-xine": L
|
|
1902
|
+
"data-xine": F(L).point + d
|
|
1903
1903
|
}, null, 12, Co)), 64)),
|
|
1904
|
-
|
|
1904
|
+
w("p", {
|
|
1905
1905
|
class: "absolute leading-none text-0",
|
|
1906
1906
|
style: Z(c()),
|
|
1907
|
-
"data-xine": L
|
|
1907
|
+
"data-xine": F(L).page
|
|
1908
1908
|
}, [
|
|
1909
|
-
(r(!0),
|
|
1909
|
+
(r(!0), h(O, null, ne(i.currentPage + 1, (d, A) => (r(), h("span", {
|
|
1910
1910
|
key: d,
|
|
1911
1911
|
class: "inline-block bg-black mx-2 page_item",
|
|
1912
|
-
"data-xine": L
|
|
1912
|
+
"data-xine": F(L).page_item + A
|
|
1913
1913
|
}, null, 8, $o))), 128))
|
|
1914
1914
|
], 12, So),
|
|
1915
|
-
i.currentPage % 2 ?
|
|
1915
|
+
i.currentPage % 2 ? D("", !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: Z({ right: `${i.padding.right - 12}px` })
|
|
1919
|
-
}, "提示:本卷" + te((n =
|
|
1920
|
-
|
|
1919
|
+
}, "提示:本卷" + te((n = F(We).find((d) => d.code === i.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
|
|
1920
|
+
w("span", {
|
|
1921
1921
|
class: "absolute text-sm red_sheet",
|
|
1922
1922
|
style: Z({ right: `${i.padding.bottom - 20 + 75}px`, bottom: `${i.padding.bottom - 20 - 3}px` })
|
|
1923
1923
|
}, te(i.currentPage + 1) + "/" + te(i.totalPage), 5)
|
|
@@ -1963,11 +1963,11 @@ const me = (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: oe(["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: oe(["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 me = (e, t) => {
|
|
|
1979
1979
|
onBlur: y
|
|
1980
1980
|
}, null, 42, Fo)
|
|
1981
1981
|
]),
|
|
1982
|
-
n.unit ? (r(),
|
|
1982
|
+
n.unit ? (r(), h("span", Eo, te(n.unit), 1)) : D("", !0)
|
|
1983
1983
|
], 2));
|
|
1984
1984
|
}
|
|
1985
1985
|
}), Po = /* @__PURE__ */ se({
|
|
@@ -2016,15 +2016,15 @@ const me = (e, t) => {
|
|
|
2016
2016
|
emits: ["click"],
|
|
2017
2017
|
setup(e, { emit: t }) {
|
|
2018
2018
|
const o = e, l = R(() => `#icon-${o.name}`);
|
|
2019
|
-
return (c, s) => (r(),
|
|
2019
|
+
return (c, s) => (r(), h("span", {
|
|
2020
2020
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
2021
2021
|
onClick: s[0] || (s[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 ge = /* @__PURE__ */ me(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
|
le(ge, {
|
|
2046
2046
|
name: "fiveArrow",
|
|
@@ -2048,8 +2048,8 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2048
2048
|
class: "px-0 py-0"
|
|
2049
2049
|
}),
|
|
2050
2050
|
et("启用前")
|
|
2051
|
-
])) :
|
|
2052
|
-
|
|
2051
|
+
])) : D("", !0),
|
|
2052
|
+
w("p", Oo, "ID:" + te(t.code), 1)
|
|
2053
2053
|
]));
|
|
2054
2054
|
}
|
|
2055
2055
|
}), Ho = ["innerHTML"], He = /* @__PURE__ */ se({
|
|
@@ -2064,7 +2064,7 @@ const ge = /* @__PURE__ */ me(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, s) => (r(),
|
|
2067
|
+
return (c, s) => (r(), h("div", {
|
|
2068
2068
|
innerHTML: c.value,
|
|
2069
2069
|
contenteditable: "",
|
|
2070
2070
|
onBlur: l
|
|
@@ -2073,19 +2073,19 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2073
2073
|
}), Ro = { 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), Ko = {
|
|
2077
2077
|
key: 1,
|
|
2078
2078
|
class: "flex items-center w-40 mx-4"
|
|
2079
|
-
}, Uo = /* @__PURE__ */
|
|
2079
|
+
}, Uo = /* @__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__ */ se({
|
|
2089
2089
|
__name: "title",
|
|
2090
2090
|
props: {
|
|
2091
2091
|
info: {},
|
|
@@ -2096,14 +2096,14 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2096
2096
|
emits: ["change"],
|
|
2097
2097
|
setup(e, { emit: t }) {
|
|
2098
2098
|
const o = e, l = R(() => o.data.filter((a) => ![ke.another, ke.another_choice, ke.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, i) => a + i, 0)), c = R(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, i) => a + i, 0)), s = R(() => o.layout.scoreAddStars === st.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2099
|
-
return (a, i) => (r(),
|
|
2100
|
-
|
|
2099
|
+
return (a, i) => (r(), h("div", Ro, [
|
|
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": L
|
|
2104
|
+
"data-xine": F(L).art_code
|
|
2105
2105
|
}, null, 8, Wo),
|
|
2106
|
-
|
|
2106
|
+
w("div", Go, [
|
|
2107
2107
|
le(He, {
|
|
2108
2108
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2109
2109
|
value: a.info.title,
|
|
@@ -2116,17 +2116,17 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2116
2116
|
value: a.info.secTitle,
|
|
2117
2117
|
style: Z(a.fontConfig.halfTitleStyle),
|
|
2118
2118
|
onChange: i[1] || (i[1] = (y) => t("change", { secTitle: y }))
|
|
2119
|
-
}, null, 8, ["value", "style"])) :
|
|
2120
|
-
|
|
2121
|
-
a.layout.examExtentFlag ? (r(),
|
|
2119
|
+
}, null, 8, ["value", "style"])) : D("", !0),
|
|
2120
|
+
w("div", Qo, [
|
|
2121
|
+
a.layout.examExtentFlag ? (r(), h("p", qo, [
|
|
2122
2122
|
Yo,
|
|
2123
2123
|
le(He, {
|
|
2124
2124
|
class: "flex-1",
|
|
2125
2125
|
value: a.info.extent,
|
|
2126
2126
|
onChange: i[2] || (i[2] = (y) => t("change", { extent: y }))
|
|
2127
2127
|
}, null, 8, ["value"])
|
|
2128
|
-
])) :
|
|
2129
|
-
a.layout.examTimeFlag ? (r(),
|
|
2128
|
+
])) : D("", !0),
|
|
2129
|
+
a.layout.examTimeFlag ? (r(), h("p", Ko, [
|
|
2130
2130
|
Uo,
|
|
2131
2131
|
le(it, {
|
|
2132
2132
|
value: a.info.time,
|
|
@@ -2138,60 +2138,60 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2138
2138
|
onChange: i[3] || (i[3] = (y) => t("change", { time: y }))
|
|
2139
2139
|
}, null, 8, ["value"]),
|
|
2140
2140
|
Vo
|
|
2141
|
-
])) :
|
|
2142
|
-
a.layout.authorFlag ? (r(),
|
|
2141
|
+
])) : D("", !0),
|
|
2142
|
+
a.layout.authorFlag ? (r(), h("p", jo, [
|
|
2143
2143
|
Xo,
|
|
2144
2144
|
le(He, {
|
|
2145
2145
|
class: "flex-1",
|
|
2146
2146
|
value: a.info.author,
|
|
2147
2147
|
onChange: i[4] || (i[4] = (y) => t("change", { author: y }))
|
|
2148
2148
|
}, null, 8, ["value"])
|
|
2149
|
-
])) :
|
|
2150
|
-
a.layout.reviewerFlag ? (r(),
|
|
2149
|
+
])) : D("", !0),
|
|
2150
|
+
a.layout.reviewerFlag ? (r(), h("p", Jo, [
|
|
2151
2151
|
Zo,
|
|
2152
2152
|
le(He, {
|
|
2153
2153
|
class: "flex-1",
|
|
2154
2154
|
value: a.info.reviewer,
|
|
2155
2155
|
onChange: i[5] || (i[5] = (y) => t("change", { reviewer: y }))
|
|
2156
2156
|
}, null, 8, ["value"])
|
|
2157
|
-
])) :
|
|
2158
|
-
a.layout.totalScoreFlag ? (r(),
|
|
2157
|
+
])) : D("", !0),
|
|
2158
|
+
a.layout.totalScoreFlag ? (r(), h("p", ea, [
|
|
2159
2159
|
ta,
|
|
2160
2160
|
s.value ? (r(), ee(ge, {
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
name: s.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, ":" + te(l.value + (a.layout.writeScoreFlag ? a.info.writeScore : 0)), 1),
|
|
2166
2166
|
s.value ? (r(), ee(ge, {
|
|
2167
2167
|
key: 2,
|
|
2168
2168
|
name: s.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(O, { key: 4 }, [
|
|
2172
|
+
w("span", null, "(试题" + te(l.value), 1),
|
|
2173
2173
|
s.value ? (r(), ee(ge, {
|
|
2174
2174
|
key: 0,
|
|
2175
2175
|
name: s.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, "+卷面" + te(a.info.writeScore || 0), 1),
|
|
2179
2179
|
s.value ? (r(), ee(ge, {
|
|
2180
2180
|
key: 2,
|
|
2181
2181
|
name: s.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)) : D("", !0),
|
|
2186
|
+
c.value ? (r(), h(O, { key: 5 }, [
|
|
2187
|
+
w("span", null, ";附加题:" + te(c.value), 1),
|
|
2188
2188
|
s.value ? (r(), ee(ge, {
|
|
2189
2189
|
key: 0,
|
|
2190
2190
|
name: s.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)) : D("", !0)
|
|
2194
|
+
])) : D("", !0)
|
|
2195
2195
|
])
|
|
2196
2196
|
])
|
|
2197
2197
|
]));
|
|
@@ -2205,10 +2205,10 @@ const ge = /* @__PURE__ */ me(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: oe(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2210
2210
|
}, [
|
|
2211
|
-
(r(),
|
|
2211
|
+
(r(), h(O, null, ne(o, (s, a) => w("li", {
|
|
2212
2212
|
key: s,
|
|
2213
2213
|
class: oe(["flex flex-1 min-w-[12rem]", l.isRow && a && "ml-2"])
|
|
2214
2214
|
}, [
|
|
@@ -2226,30 +2226,30 @@ const ge = /* @__PURE__ */ me(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__ */ se({
|
|
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": L
|
|
2231
|
+
"data-xine": F(L).en_num_view
|
|
2232
2232
|
}, [
|
|
2233
|
-
|
|
2233
|
+
w("p", da, [
|
|
2234
2234
|
le(ge, {
|
|
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": L
|
|
2242
|
+
"data-xine": F(L).en_num
|
|
2243
2243
|
}, [
|
|
2244
|
-
(r(),
|
|
2244
|
+
(r(), h(O, null, ne(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": L
|
|
2247
|
+
"data-xine": F(L).en_num_group
|
|
2248
2248
|
}, [
|
|
2249
|
-
(r(),
|
|
2249
|
+
(r(), h(O, null, ne(10, (s) => w("span", {
|
|
2250
2250
|
key: s,
|
|
2251
2251
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2252
|
-
"data-xine": L
|
|
2252
|
+
"data-xine": F(L).en_num_item
|
|
2253
2253
|
}, te(s - 1), 9, pa)), 64))
|
|
2254
2254
|
], 8, ha)), 64))
|
|
2255
2255
|
], 8, ua)
|
|
@@ -2259,30 +2259,30 @@ const ge = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2259
2259
|
const ya = /* @__PURE__ */ me(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__ */ se({
|
|
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": L
|
|
2264
|
+
"data-xine": F(L).en_num_view
|
|
2265
2265
|
}, [
|
|
2266
|
-
|
|
2266
|
+
w("p", fa, [
|
|
2267
2267
|
le(ge, {
|
|
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": L
|
|
2275
|
+
"data-xine": F(L).en_num
|
|
2276
2276
|
}, [
|
|
2277
|
-
(r(),
|
|
2277
|
+
(r(), h(O, null, ne(4, (l, c) => w("p", {
|
|
2278
2278
|
key: l,
|
|
2279
2279
|
class: oe(["flex-1 flex items-center text-0 px-1", c && "border-t"]),
|
|
2280
|
-
"data-xine": L
|
|
2280
|
+
"data-xine": F(L).en_num_group
|
|
2281
2281
|
}, [
|
|
2282
|
-
(r(),
|
|
2282
|
+
(r(), h(O, null, ne(10, (s) => w("span", {
|
|
2283
2283
|
key: s,
|
|
2284
2284
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2285
|
-
"data-xine": L
|
|
2285
|
+
"data-xine": F(L).en_num_item
|
|
2286
2286
|
}, te(s - 1), 9, va)), 64))
|
|
2287
2287
|
], 10, ba)), 64))
|
|
2288
2288
|
], 8, ga)
|
|
@@ -2298,10 +2298,10 @@ const zt = /* @__PURE__ */ me(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: oe(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2303
2303
|
}, [
|
|
2304
|
-
(r(),
|
|
2304
|
+
(r(), h(O, null, ne(o, (s, a) => w("li", {
|
|
2305
2305
|
key: s,
|
|
2306
2306
|
class: oe(["flex flex-1", l.isRow && a && "ml-2"])
|
|
2307
2307
|
}, [
|
|
@@ -2316,7 +2316,7 @@ const zt = /* @__PURE__ */ me(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__ */ se({
|
|
2322
2322
|
__name: "examInfo",
|
|
@@ -2328,7 +2328,7 @@ const zt = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2328
2328
|
emits: ["change"],
|
|
2329
2329
|
setup(e, { emit: t }) {
|
|
2330
2330
|
const o = e, l = R(() => o.layout.seatType === xe.none || !o.layout.seatBar), c = R(() => o.layout.column >= 3 && l.value), s = R(() => o.layout.column >= 3 && o.layout.seatType !== xe.none && o.layout.seatBar);
|
|
2331
|
-
return (a, i) => a.isBindFlag ?
|
|
2331
|
+
return (a, i) => a.isBindFlag ? D("", !0) : (r(), h("div", {
|
|
2332
2332
|
key: 0,
|
|
2333
2333
|
class: oe(["flex justify-between", (s.value || c.value) && "flex-wrap"])
|
|
2334
2334
|
}, [
|
|
@@ -2337,7 +2337,7 @@ const zt = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2337
2337
|
isRow: "",
|
|
2338
2338
|
extent: a.info.extentInfo,
|
|
2339
2339
|
onChange: i[0] || (i[0] = (y) => t("change", y))
|
|
2340
|
-
}, null, 8, ["extent"])) :
|
|
2340
|
+
}, null, 8, ["extent"])) : D("", !0),
|
|
2341
2341
|
le(ka, {
|
|
2342
2342
|
isRow: s.value,
|
|
2343
2343
|
extent: a.info.extentInfo,
|
|
@@ -2347,26 +2347,26 @@ const zt = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2347
2347
|
key: 1,
|
|
2348
2348
|
extent: a.info.extentInfo,
|
|
2349
2349
|
onChange: i[2] || (i[2] = (y) => t("change", y))
|
|
2350
|
-
}, null, 8, ["extent"])) :
|
|
2351
|
-
a.layout.seatType ===
|
|
2352
|
-
a.layout.seatBar ? (r(),
|
|
2350
|
+
}, null, 8, ["extent"])) : D("", !0),
|
|
2351
|
+
a.layout.seatType === F(xe).seat ? (r(), ee(ya, { key: 2 })) : a.layout.seatType === F(xe).shortId ? (r(), ee(zt, { key: 3 })) : D("", !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": L
|
|
2356
|
-
}, $a, 8, Ca)) :
|
|
2355
|
+
"data-xine": F(L).en_code
|
|
2356
|
+
}, $a, 8, Ca)) : D("", !0)
|
|
2357
2357
|
], 2));
|
|
2358
2358
|
}
|
|
2359
2359
|
});
|
|
2360
2360
|
const Ia = /* @__PURE__ */ me(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)), Ha = /* @__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)), Ha = /* @__PURE__ */ ze(() => /* @__PURE__ */ w("div", { class: "h-2" }, null, -1)), Ra = /* @__PURE__ */ se({
|
|
2370
2370
|
__name: "notice",
|
|
2371
2371
|
props: {
|
|
2372
2372
|
layout: {},
|
|
@@ -2386,32 +2386,32 @@ const Ia = /* @__PURE__ */ me(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(O, null, [
|
|
2390
|
+
l.layout.noteFlag ? (r(), h("div", La, [
|
|
2391
2391
|
Fa,
|
|
2392
|
-
|
|
2393
|
-
(r(!0),
|
|
2392
|
+
w("div", Ea, [
|
|
2393
|
+
(r(!0), h(O, null, ne(o.value, (s) => (r(), h("p", {
|
|
2394
2394
|
key: s,
|
|
2395
2395
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2396
2396
|
}, te(s), 1))), 128))
|
|
2397
2397
|
])
|
|
2398
|
-
])) :
|
|
2399
|
-
l.layout.lackFlag ? (r(),
|
|
2398
|
+
])) : D("", !0),
|
|
2399
|
+
l.layout.lackFlag ? (r(), h("div", {
|
|
2400
2400
|
key: 1,
|
|
2401
2401
|
class: oe(["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
|
le(ge, { name: "rightArrow" }),
|
|
2407
|
-
|
|
2407
|
+
w("span", {
|
|
2408
2408
|
class: "flex items-center leading-4",
|
|
2409
|
-
"data-xine": L
|
|
2409
|
+
"data-xine": F(L).lack
|
|
2410
2410
|
}, Oa, 8, Aa)
|
|
2411
2411
|
])
|
|
2412
2412
|
]),
|
|
2413
2413
|
za
|
|
2414
|
-
], 2)) :
|
|
2414
|
+
], 2)) : D("", !0),
|
|
2415
2415
|
Ha
|
|
2416
2416
|
], 64));
|
|
2417
2417
|
}
|
|
@@ -2438,12 +2438,12 @@ function It(e) {
|
|
|
2438
2438
|
const Qa = {
|
|
2439
2439
|
key: 0,
|
|
2440
2440
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2441
|
-
}, qa = /* @__PURE__ */
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
/* @__PURE__ */
|
|
2444
|
-
], -1), Ya = { class: "flex-1" }, Ka = /* @__PURE__ */
|
|
2445
|
-
/* @__PURE__ */
|
|
2446
|
-
/* @__PURE__ */
|
|
2441
|
+
}, qa = /* @__PURE__ */ 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" }, Ka = /* @__PURE__ */ w("p", { class: "flex-1 border-t" }, null, -1), Ua = /* @__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__ */ se({
|
|
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 = R(() => 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(O, null, ne(o.value, (s, a) => (r(), h("li", {
|
|
2458
2458
|
key: s.id,
|
|
2459
2459
|
class: "flex-1 flex flex-col border-l"
|
|
2460
2460
|
}, [
|
|
2461
|
-
|
|
2461
|
+
w("p", Ya, te(F(Ht)(a)), 1),
|
|
2462
2462
|
Ka
|
|
2463
2463
|
]))), 128)),
|
|
2464
2464
|
Ua
|
|
2465
|
-
])) :
|
|
2465
|
+
])) : D("", !0);
|
|
2466
2466
|
}
|
|
2467
2467
|
}), ja = /* @__PURE__ */ se({
|
|
2468
2468
|
__name: "columnDom",
|
|
@@ -2476,10 +2476,10 @@ const Qa = {
|
|
|
2476
2476
|
const o = e, l = U(), c = U();
|
|
2477
2477
|
t({ col: l, colView: c });
|
|
2478
2478
|
const s = R(() => {
|
|
2479
|
-
const { top: y, width: n, height: d, left:
|
|
2479
|
+
const { top: y, width: n, height: d, left: A } = o.styleInfo;
|
|
2480
2480
|
return {
|
|
2481
2481
|
top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
|
|
2482
|
-
left: `${parseFloat(
|
|
2482
|
+
left: `${parseFloat(A) - Le.left}px`,
|
|
2483
2483
|
width: `${parseFloat(n) + Le.left + Le.right}px`,
|
|
2484
2484
|
height: `${parseFloat(d) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
|
|
2485
2485
|
};
|
|
@@ -2489,24 +2489,24 @@ const Qa = {
|
|
|
2489
2489
|
bottom: `${Le.bottom - 1}px`,
|
|
2490
2490
|
right: `${Le.right - 1}px`
|
|
2491
2491
|
})), i = R(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2492
|
-
return (y, n) => (r(),
|
|
2493
|
-
y.showColBorder ? (r(),
|
|
2492
|
+
return (y, n) => (r(), h(O, null, [
|
|
2493
|
+
y.showColBorder ? (r(), h("div", {
|
|
2494
2494
|
key: 0,
|
|
2495
2495
|
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
|
|
2496
2496
|
style: Z(s.value)
|
|
2497
2497
|
}, [
|
|
2498
|
-
|
|
2498
|
+
w("span", {
|
|
2499
2499
|
class: "absolute border border-black",
|
|
2500
2500
|
style: Z(a.value)
|
|
2501
2501
|
}, null, 4)
|
|
2502
|
-
], 6)) :
|
|
2503
|
-
|
|
2502
|
+
], 6)) : D("", !0),
|
|
2503
|
+
w("div", {
|
|
2504
2504
|
class: "absolute overflow-hidden",
|
|
2505
2505
|
ref_key: "colView",
|
|
2506
2506
|
ref: c,
|
|
2507
2507
|
style: Z(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__ */ me(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__ */ se({
|
|
2527
2527
|
__name: "bind",
|
|
@@ -2535,43 +2535,43 @@ const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e)
|
|
|
2535
2535
|
},
|
|
2536
2536
|
setup(e) {
|
|
2537
2537
|
const t = U();
|
|
2538
|
-
return (o, l) => o.isBindFlag ? (r(),
|
|
2538
|
+
return (o, l) => o.isBindFlag ? (r(), h("div", {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
style: Z({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2541
2541
|
class: oe([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: Z({ 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: Z({ width: `${o.height - 20}px` })
|
|
2553
2553
|
}, [
|
|
2554
|
-
|
|
2555
|
-
(r(!0),
|
|
2556
|
-
s === 2 && o.bindInfo.length === 5 ? (r(),
|
|
2557
|
-
|
|
2554
|
+
w("div", Za, [
|
|
2555
|
+
(r(!0), h(O, null, ne(o.bindInfo, (c, s) => (r(), h(O, { key: c }, [
|
|
2556
|
+
s === 2 && o.bindInfo.length === 5 ? (r(), h("span", el)) : D("", !0),
|
|
2557
|
+
w("span", {
|
|
2558
2558
|
class: oe(["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
|
}, te(c), 3)
|
|
2560
2560
|
], 64))), 128))
|
|
2561
2561
|
]),
|
|
2562
|
-
o.bindSeatType ===
|
|
2562
|
+
o.bindSeatType === F(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": L
|
|
2566
|
-
}, al, 8, tl)) : o.bindSeatType ===
|
|
2565
|
+
"data-xine": F(L).en_code
|
|
2566
|
+
}, al, 8, tl)) : o.bindSeatType === F(xe).shortId ? (r(), ee(zt, {
|
|
2567
2567
|
key: 1,
|
|
2568
2568
|
class: "h-40"
|
|
2569
|
-
})) :
|
|
2570
|
-
|
|
2571
|
-
"data-xine": L
|
|
2569
|
+
})) : D("", !0),
|
|
2570
|
+
w("span", {
|
|
2571
|
+
"data-xine": F(L).bind_line
|
|
2572
2572
|
}, null, 8, ll)
|
|
2573
2573
|
], 4))
|
|
2574
|
-
], 6)) :
|
|
2574
|
+
], 6)) : D("", !0);
|
|
2575
2575
|
}
|
|
2576
2576
|
});
|
|
2577
2577
|
const sl = /* @__PURE__ */ me(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__ */ se({
|
|
@@ -2585,21 +2585,21 @@ const sl = /* @__PURE__ */ me(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, s) => (r(),
|
|
2588
|
+
return (c, s) => (r(), h("div", {
|
|
2589
2589
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2590
|
-
"data-block":
|
|
2591
|
-
"data-xine": L
|
|
2590
|
+
"data-block": F(Se),
|
|
2591
|
+
"data-xine": F(L).score
|
|
2592
2592
|
}, [
|
|
2593
|
-
|
|
2593
|
+
w("ul", {
|
|
2594
2594
|
class: "flex h-full divide-x divide-solid",
|
|
2595
|
-
"data-xine": L
|
|
2595
|
+
"data-xine": F(L).score_base
|
|
2596
2596
|
}, [
|
|
2597
|
-
(r(!0),
|
|
2597
|
+
(r(!0), h(O, null, ne(l.value, (a, i) => (r(), h("li", {
|
|
2598
2598
|
class: "flex items-center justify-center relative score_line",
|
|
2599
|
-
style: Z({ width: `${
|
|
2600
|
-
"data-xine": L
|
|
2599
|
+
style: Z({ width: `${F(at)[c.layout.scoreLineSize].value}px` }),
|
|
2600
|
+
"data-xine": F(L).score_item
|
|
2601
2601
|
}, [
|
|
2602
|
-
|
|
2602
|
+
w("span", ml, te(a), 1),
|
|
2603
2603
|
le(ge, {
|
|
2604
2604
|
class: "p-0",
|
|
2605
2605
|
name: o[i]
|
|
@@ -2626,60 +2626,60 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
|
|
|
2626
2626
|
if (t.item.scoreLineType === ot.custom)
|
|
2627
2627
|
d = [[...t.item.customScore, 0]];
|
|
2628
2628
|
else if (t.item.scoreStep)
|
|
2629
|
-
d.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((
|
|
2629
|
+
d.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((A) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * A)).reverse());
|
|
2630
2630
|
else {
|
|
2631
|
-
const
|
|
2632
|
-
l.value =
|
|
2631
|
+
const A = o.value.offsetWidth, p = at[t.layout.scoreLineSize].value + 1;
|
|
2632
|
+
l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (d.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((P) => P && P * 10).reverse()), d.push([...Array(10).keys()].reverse()), s.value = !0) : d.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2633
2633
|
}
|
|
2634
|
-
t.item.hasHalfScore && d.push([0.5]), a.value = d, c.value = !!d.flat().find((
|
|
2634
|
+
t.item.hasHalfScore && d.push([0.5]), a.value = d, c.value = !!d.flat().find((A) => `${A}`.length > 3);
|
|
2635
2635
|
});
|
|
2636
|
-
}, n = (d) => t.item.hasHalfScore ? [
|
|
2637
|
-
return (d,
|
|
2636
|
+
}, n = (d) => t.item.hasHalfScore ? [L.score_half, L.score_base, L.score_tenbit][a.value.length - d - 1] : [L.score_base, L.score_tenbit][a.value.length - d - 1];
|
|
2637
|
+
return (d, A) => d.layout.handReadFlag ? (r(), h(O, { key: 0 }, [
|
|
2638
2638
|
d.layout.simpleScoreBarFlag && !d.static ? (r(), ee(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: oe([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": L
|
|
2647
|
+
"data-block": F(Se),
|
|
2648
|
+
"data-xine": F(L).score
|
|
2649
2649
|
}, [
|
|
2650
|
-
(r(!0),
|
|
2650
|
+
(r(!0), h(O, null, ne(a.value, (p, P) => (r(), h("ul", {
|
|
2651
2651
|
class: "flex divide-x divide-solid",
|
|
2652
2652
|
"data-xine": n(P)
|
|
2653
2653
|
}, [
|
|
2654
|
-
(r(!0),
|
|
2654
|
+
(r(!0), h(O, null, ne(p, (B) => (r(), h("li", {
|
|
2655
2655
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2656
|
-
style: Z({ width: `${
|
|
2657
|
-
"data-xine":
|
|
2656
|
+
style: Z({ width: `${F(at)[d.layout.scoreLineSize].value}px` }),
|
|
2657
|
+
"data-xine": B.toString() ? F(L).score_item : ""
|
|
2658
2658
|
}, [
|
|
2659
|
-
|
|
2659
|
+
w("span", {
|
|
2660
2660
|
class: oe(["whitespace-nowrap", i.value && "origin-right", c.value && "scale-75"])
|
|
2661
|
-
}, te(d.layout.minusFlag &&
|
|
2662
|
-
i.value &&
|
|
2661
|
+
}, te(d.layout.minusFlag && B.toString().length && !i.value ? "-" : "") + te(B), 3),
|
|
2662
|
+
i.value && B.toString().length ? (r(), ee(ge, {
|
|
2663
2663
|
key: 0,
|
|
2664
2664
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2665
2665
|
name: d.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2666
2666
|
width: c.value ? 0.9 : 1.2
|
|
2667
|
-
}, null, 8, ["name", "width"])) :
|
|
2667
|
+
}, null, 8, ["name", "width"])) : D("", !0)
|
|
2668
2668
|
], 12, gl))), 256))
|
|
2669
2669
|
], 8, fl))), 256))
|
|
2670
2670
|
], 10, _l))
|
|
2671
|
-
], 64)) :
|
|
2671
|
+
], 64)) : D("", !0);
|
|
2672
2672
|
}
|
|
2673
|
-
}), Rt = (e) => (Qe("data-v-a8dbd3b0"), e = e(), qe(), e), bl = ["data-xine"], vl = /* @__PURE__ */ Rt(() => /* @__PURE__ */
|
|
2673
|
+
}), Rt = (e) => (Qe("data-v-a8dbd3b0"), e = e(), qe(), e), bl = ["data-xine"], vl = /* @__PURE__ */ Rt(() => /* @__PURE__ */ w("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), wl = /* @__PURE__ */ Rt(() => /* @__PURE__ */ w("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), kl = /* @__PURE__ */ se({
|
|
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": L
|
|
2682
|
+
"data-xine": F(L).write_view
|
|
2683
2683
|
}, [
|
|
2684
2684
|
vl,
|
|
2685
2685
|
wl,
|
|
@@ -2698,7 +2698,7 @@ const xl = /* @__PURE__ */ me(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__ */ me(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": F(bt)
|
|
2717
2717
|
}, [
|
|
2718
2718
|
le(Ne, {
|
|
2719
2719
|
"data-content": t.item.id,
|
|
@@ -2727,7 +2727,7 @@ const Ne = /* @__PURE__ */ me(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"], Hl = /* @__PURE__ */ se({
|
|
2731
2731
|
__name: "index",
|
|
2732
2732
|
props: {
|
|
2733
2733
|
item: {},
|
|
@@ -2741,47 +2741,47 @@ const Ne = /* @__PURE__ */ me(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2741
2741
|
const o = e, l = U(!1), c = U(), s = R(() => [ke.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), a = R(() => [ke.another_choice].includes(o.item.problemType)), i = R(() => [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 = R(() => [...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: oe(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
2747
|
-
onClick: d[2] || (d[2] = De((
|
|
2747
|
+
onClick: d[2] || (d[2] = De((A) => t("click", n.item), ["stop"])),
|
|
2748
2748
|
ref_key: "view",
|
|
2749
2749
|
ref: c,
|
|
2750
2750
|
"data-tag": n.item.__tag__,
|
|
2751
|
-
"data-block":
|
|
2752
|
-
onDblclick: d[3] || (d[3] = De((
|
|
2751
|
+
"data-block": F(Se),
|
|
2752
|
+
onDblclick: d[3] || (d[3] = De((A) => t("dbclick", n.item), ["stop"]))
|
|
2753
2753
|
}, [
|
|
2754
|
-
!n.layout.listIndexFlag && n.item.sub ? (r(),
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
n.item.desc ? (r(),
|
|
2759
|
-
n.layout.scoreTipFlag ? (r(),
|
|
2754
|
+
!n.layout.listIndexFlag && n.item.sub ? (r(), h("span", Fl, te(F(Ht)(n.item.sub - 1)) + "、", 1)) : D("", !0),
|
|
2755
|
+
w("div", null, [
|
|
2756
|
+
w("div", null, [
|
|
2757
|
+
w("span", null, te(n.item.name), 1),
|
|
2758
|
+
n.item.desc ? (r(), h("span", El, "(" + te(n.item.desc) + ")", 1)) : D("", !0),
|
|
2759
|
+
n.layout.scoreTipFlag ? (r(), h("span", Pl, "(共" + te(i.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : D("", !0)
|
|
2760
2760
|
]),
|
|
2761
|
-
s.value || a.value ? (r(),
|
|
2762
|
-
s.value ? (r(),
|
|
2763
|
-
|
|
2761
|
+
s.value || a.value ? (r(), h("div", Ml, [
|
|
2762
|
+
s.value ? (r(), h("p", Dl, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), h("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2763
|
+
w("p", {
|
|
2764
2764
|
class: "flex flex-wrap",
|
|
2765
|
-
"data-block":
|
|
2766
|
-
"data-xine": L
|
|
2765
|
+
"data-block": F(Se),
|
|
2766
|
+
"data-xine": F(L).choice + n.item.id
|
|
2767
2767
|
}, [
|
|
2768
2768
|
Nl,
|
|
2769
|
-
(r(!0),
|
|
2770
|
-
|
|
2771
|
-
|
|
2769
|
+
(r(!0), h(O, null, ne(y.value, (A, p) => (r(), h("span", Ol, [
|
|
2770
|
+
w("span", null, te(A), 1),
|
|
2771
|
+
w("span", {
|
|
2772
2772
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2773
|
-
"data-xine": L
|
|
2773
|
+
"data-xine": F(L).fill
|
|
2774
2774
|
}, null, 8, zl)
|
|
2775
2775
|
]))), 256))
|
|
2776
2776
|
], 8, Bl)
|
|
2777
|
-
])) :
|
|
2777
|
+
])) : D("", !0)
|
|
2778
2778
|
])
|
|
2779
2779
|
], 42, Ll)) : (r(), ee(Tl, {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
|
|
2782
2782
|
item: n.item,
|
|
2783
|
-
onClick: d[0] || (d[0] = De((
|
|
2784
|
-
onDblclick: d[1] || (d[1] = De((
|
|
2783
|
+
onClick: d[0] || (d[0] = De((A) => t("click", n.item), ["stop"])),
|
|
2784
|
+
onDblclick: d[1] || (d[1] = De((A) => t("dbclick", n.item), ["stop"]))
|
|
2785
2785
|
}, null, 8, ["class", "item"]));
|
|
2786
2786
|
}
|
|
2787
2787
|
});
|
|
@@ -2796,18 +2796,18 @@ const Gl = /* @__PURE__ */ me(Rl, [["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": F(Se)
|
|
2802
2802
|
}, [
|
|
2803
|
-
(r(!0),
|
|
2804
|
-
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(
|
|
2805
|
-
style: Z({ width: `${
|
|
2806
|
-
"data-xine": L
|
|
2803
|
+
(r(!0), h(O, null, ne(t.item.optList, (l, c) => (r(), h("span", {
|
|
2804
|
+
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(F(pt)[c]) && "bg-success border-success"]),
|
|
2805
|
+
style: Z({ width: `${F(Fe)[t.layout.fillSize].value + 1}px`, height: `${F(Fe)[t.layout.fillSize].height + 1}px` }),
|
|
2806
|
+
"data-xine": F(L).fill + c
|
|
2807
2807
|
}, [
|
|
2808
2808
|
le(ge, {
|
|
2809
2809
|
width: 1,
|
|
2810
|
-
name:
|
|
2810
|
+
name: F(pt)[c]
|
|
2811
2811
|
}, null, 8, ["name"])
|
|
2812
2812
|
], 14, ql))), 256))
|
|
2813
2813
|
], 8, Ql));
|
|
@@ -2816,9 +2816,9 @@ const Gl = /* @__PURE__ */ me(Rl, [["render", Wl]]), Ql = ["data-block"], ql = [
|
|
|
2816
2816
|
function Ul(e, t) {
|
|
2817
2817
|
return null;
|
|
2818
2818
|
}
|
|
2819
|
-
const Vl = /* @__PURE__ */ me(Kl, [["render", Ul]]), jl = ["data-block"], Xl = ["data-xine"], Jl = ["data-xine"], Zl = ["data-xine"], en = /* @__PURE__ */
|
|
2819
|
+
const Vl = /* @__PURE__ */ me(Kl, [["render", Ul]]), 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__ */ se({
|
|
2824
2824
|
__name: "sheet",
|
|
@@ -2831,41 +2831,41 @@ const Vl = /* @__PURE__ */ me(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": F(Se)
|
|
2837
2837
|
}, [
|
|
2838
|
-
l.item.style[
|
|
2839
|
-
|
|
2838
|
+
l.item.style[F(u)[l.layout.mode].decide_a] === F(_).decide_1 ? (r(), h(O, { key: 0 }, [
|
|
2839
|
+
w("span", {
|
|
2840
2840
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2841
2841
|
style: Z(o.value),
|
|
2842
|
-
"data-xine": L
|
|
2842
|
+
"data-xine": F(L).fill + "0"
|
|
2843
2843
|
}, [
|
|
2844
2844
|
le(ge, {
|
|
2845
2845
|
name: "right",
|
|
2846
2846
|
width: 1
|
|
2847
2847
|
})
|
|
2848
2848
|
], 14, Xl),
|
|
2849
|
-
|
|
2849
|
+
w("span", {
|
|
2850
2850
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2851
2851
|
style: Z(o.value),
|
|
2852
|
-
"data-xine": L
|
|
2852
|
+
"data-xine": F(L).fill + "1"
|
|
2853
2853
|
}, [
|
|
2854
2854
|
le(ge, {
|
|
2855
2855
|
name: "wrong",
|
|
2856
2856
|
width: 1
|
|
2857
2857
|
})
|
|
2858
2858
|
], 14, Jl)
|
|
2859
|
-
], 64)) : (r(),
|
|
2860
|
-
|
|
2859
|
+
], 64)) : (r(), h(O, { key: 1 }, [
|
|
2860
|
+
w("span", {
|
|
2861
2861
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2862
2862
|
style: Z(o.value),
|
|
2863
|
-
"data-xine": L
|
|
2863
|
+
"data-xine": F(L).fill + "0"
|
|
2864
2864
|
}, tn, 14, Zl),
|
|
2865
|
-
|
|
2865
|
+
w("span", {
|
|
2866
2866
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2867
2867
|
style: Z(o.value),
|
|
2868
|
-
"data-xine": L
|
|
2868
|
+
"data-xine": F(L).fill + "1"
|
|
2869
2869
|
}, ln, 14, on)
|
|
2870
2870
|
], 64))
|
|
2871
2871
|
], 8, jl));
|
|
@@ -2886,22 +2886,22 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2886
2886
|
},
|
|
2887
2887
|
setup(e) {
|
|
2888
2888
|
const t = e, o = R(() => 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": L
|
|
2892
|
+
"data-block": F(Se),
|
|
2893
|
+
"data-xine": F(L).fill
|
|
2894
2894
|
}, [
|
|
2895
|
-
l.showScoreCn ? (r(),
|
|
2896
|
-
|
|
2895
|
+
l.showScoreCn ? (r(), h("span", un, [
|
|
2896
|
+
w("span", null, te(o.value ? "" : "-") + te(l.item.score), 1),
|
|
2897
2897
|
o.value ? (r(), ee(ge, {
|
|
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
|
+
])) : D("", !0)
|
|
2904
|
+
], 8, dn)) : D("", !0);
|
|
2905
2905
|
}
|
|
2906
2906
|
}), mn = ["data-xine"], yn = /* @__PURE__ */ se({
|
|
2907
2907
|
__name: "sheet",
|
|
@@ -2911,18 +2911,18 @@ const cn = /* @__PURE__ */ me(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(O, null, [
|
|
2915
|
+
w("div", {
|
|
2916
2916
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2917
|
-
style: Z({ height: `${20 + o.item.style[
|
|
2918
|
-
"data-xine": L
|
|
2917
|
+
style: Z({ height: `${20 + o.item.style[F(u)[t.layout.mode].fill_e]}px` }),
|
|
2918
|
+
"data-xine": F(L).fill_line
|
|
2919
2919
|
}, null, 12, mn),
|
|
2920
2920
|
o.layout.handReadFlag ? (r(), ee(pn, {
|
|
2921
2921
|
key: 0,
|
|
2922
2922
|
item: o.item,
|
|
2923
2923
|
layout: o.layout,
|
|
2924
2924
|
showScoreCn: o.layout.fillScoreFlag
|
|
2925
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
2925
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
|
|
2926
2926
|
], 64));
|
|
2927
2927
|
}
|
|
2928
2928
|
}), _n = {};
|
|
@@ -2937,16 +2937,16 @@ const gn = /* @__PURE__ */ me(_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: oe(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
2942
2942
|
}, [
|
|
2943
|
-
t.item.chunk ?
|
|
2943
|
+
t.item.chunk ? D("", !0) : (r(), 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": F(Se)
|
|
2947
2947
|
}, [
|
|
2948
2948
|
_t(t.$slots, "default"),
|
|
2949
|
-
|
|
2949
|
+
w("div", vn, [
|
|
2950
2950
|
le(rt, {
|
|
2951
2951
|
item: t.item,
|
|
2952
2952
|
layout: t.layout
|
|
@@ -2963,14 +2963,14 @@ const gn = /* @__PURE__ */ me(_n, [["render", fn]]), bn = ["data-block"], vn = {
|
|
|
2963
2963
|
function xn(e, t) {
|
|
2964
2964
|
return null;
|
|
2965
2965
|
}
|
|
2966
|
-
const Cn = /* @__PURE__ */ me(kn, [["render", xn]]), Sn = /* @__PURE__ */
|
|
2966
|
+
const Cn = /* @__PURE__ */ me(kn, [["render", xn]]), Sn = /* @__PURE__ */ w("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), $n = /* @__PURE__ */ se({
|
|
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(O, null, [
|
|
2974
2974
|
Sn,
|
|
2975
2975
|
le(rt, {
|
|
2976
2976
|
item: t.item,
|
|
@@ -3006,14 +3006,14 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3006
3006
|
},
|
|
3007
3007
|
setup(e) {
|
|
3008
3008
|
const t = e, o = U(0), l = U({}), c = U(), s = U(), a = U([]), i = R(() => {
|
|
3009
|
-
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[
|
|
3009
|
+
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[u[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
|
|
3010
3010
|
return p ? Math.ceil(p / (o.value || p)) : 0;
|
|
3011
|
-
}), y = R(() => parseInt(t.item.style[
|
|
3011
|
+
}), y = R(() => parseInt(t.item.style[u[t.layout.mode].art_b])), n = R(() => ({
|
|
3012
3012
|
width: `${o.value * y.value}px`,
|
|
3013
3013
|
height: `${y.value}px`
|
|
3014
3014
|
})), d = R(() => ({
|
|
3015
3015
|
width: `${y.value}px`
|
|
3016
|
-
})),
|
|
3016
|
+
})), A = R(() => 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;
|
|
@@ -3028,54 +3028,54 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3028
3028
|
};
|
|
3029
3029
|
}, 20);
|
|
3030
3030
|
});
|
|
3031
|
-
const p = parseInt(t.item.style[
|
|
3032
|
-
a.value = [...Array(Math.min(t.item.style[
|
|
3033
|
-
}), (p, P) => (r(),
|
|
3031
|
+
const p = parseInt(t.item.style[u[t.layout.mode].art_c]), P = t.item.style[u[t.layout.mode].art_e], B = Math.floor(p / P), V = Math.round(B / (t.item.style[u[t.layout.mode].art_d] || 1) - 0.01) * P;
|
|
3032
|
+
a.value = [...Array(Math.min(t.item.style[u[t.layout.mode].art_d] || 1, B) - 1 || 0).keys()].map((X) => (X + 1) * V).concat(p / P < 2 ? P : p).filter((X) => X);
|
|
3033
|
+
}), (p, P) => (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": p.item.id
|
|
3038
3038
|
}, [
|
|
3039
|
-
p.item.chunk ?
|
|
3039
|
+
p.item.chunk ? D("", !0) : (r(), h("div", {
|
|
3040
3040
|
key: 0,
|
|
3041
3041
|
class: "flex items-center mt-1 mb-4",
|
|
3042
|
-
"data-block":
|
|
3042
|
+
"data-block": F(Se)
|
|
3043
3043
|
}, [
|
|
3044
3044
|
_t(p.$slots, "default"),
|
|
3045
|
-
|
|
3045
|
+
w("div", Qn, [
|
|
3046
3046
|
le(rt, {
|
|
3047
3047
|
item: p.item,
|
|
3048
3048
|
layout: p.layout
|
|
3049
3049
|
}, null, 8, ["item", "layout"])
|
|
3050
3050
|
])
|
|
3051
3051
|
], 8, Gn)),
|
|
3052
|
-
p.item.artBlock ? (r(),
|
|
3052
|
+
p.item.artBlock ? (r(), h(O, { key: 1 }, [
|
|
3053
3053
|
p.item.beforeArt && !p.item.startAnswerLen ? (r(), ee(Ne, {
|
|
3054
3054
|
key: 0,
|
|
3055
3055
|
data: p.item.beforeArt,
|
|
3056
3056
|
"data-bart": p.item.id,
|
|
3057
3057
|
class: "indent-[2em]"
|
|
3058
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
3059
|
-
(r(!0),
|
|
3058
|
+
}, null, 8, ["data", "data-bart"])) : D("", !0),
|
|
3059
|
+
(r(!0), h(O, null, ne(i.value, (B, V) => (r(), h("p", {
|
|
3060
3060
|
ref_for: !0,
|
|
3061
3061
|
ref_key: "line",
|
|
3062
3062
|
ref: s,
|
|
3063
3063
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3064
|
-
"data-block":
|
|
3064
|
+
"data-block": F(Se),
|
|
3065
3065
|
"data-size": p.item.startAnswerLen + (V + 1) * o.value,
|
|
3066
3066
|
style: Z(n.value)
|
|
3067
3067
|
}, [
|
|
3068
|
-
(r(!0),
|
|
3069
|
-
class: oe([
|
|
3068
|
+
(r(!0), h(O, null, ne(o.value, (X, q) => (r(), h("span", {
|
|
3069
|
+
class: oe([A.value[V * o.value + q] && "flex items-center justify-center"]),
|
|
3070
3070
|
style: Z(d.value)
|
|
3071
|
-
}, te(
|
|
3072
|
-
(r(!0),
|
|
3073
|
-
p.item.startAnswerLen + V * o.value < X && p.item.startAnswerLen + (V + 1) * o.value >= X ? (r(),
|
|
3071
|
+
}, te(A.value[V * o.value + q] || ""), 7))), 256)),
|
|
3072
|
+
(r(!0), h(O, null, ne(a.value, (X) => (r(), h(O, null, [
|
|
3073
|
+
p.item.startAnswerLen + V * o.value < X && p.item.startAnswerLen + (V + 1) * o.value >= X ? (r(), h("span", {
|
|
3074
3074
|
key: 0,
|
|
3075
3075
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3076
3076
|
style: Z({ left: `${(X - p.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3077
|
-
"data-block":
|
|
3078
|
-
}, te(X), 13, Yn)) :
|
|
3077
|
+
"data-block": F(Ae)
|
|
3078
|
+
}, te(X), 13, Yn)) : D("", !0)
|
|
3079
3079
|
], 64))), 256))
|
|
3080
3080
|
], 12, qn))), 256)),
|
|
3081
3081
|
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), ee(Ne, {
|
|
@@ -3083,7 +3083,7 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3083
3083
|
data: p.item.afterArt,
|
|
3084
3084
|
"data-aart": p.item.id,
|
|
3085
3085
|
class: "mt-2 indent-[2em]"
|
|
3086
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
3086
|
+
}, null, 8, ["data", "data-aart"])) : D("", !0)
|
|
3087
3087
|
], 64)) : (r(), ee(Ne, {
|
|
3088
3088
|
key: 2,
|
|
3089
3089
|
"data-area": p.item.id,
|
|
@@ -3099,9 +3099,9 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), 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": F(bt)
|
|
3105
3105
|
}, [
|
|
3106
3106
|
le(Ne, {
|
|
3107
3107
|
"data-content": o.item.id,
|
|
@@ -3130,18 +3130,18 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3130
3130
|
if (s === "after")
|
|
3131
3131
|
return t.bracketType === _.bracket_cn ? ")" : ")";
|
|
3132
3132
|
};
|
|
3133
|
-
return (s, a) => (r(),
|
|
3133
|
+
return (s, a) => (r(), h("span", {
|
|
3134
3134
|
class: oe(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", s.isFull && "justify-end"]),
|
|
3135
3135
|
style: Z({ width: l.value }),
|
|
3136
|
-
"data-block":
|
|
3136
|
+
"data-block": F(Ae)
|
|
3137
3137
|
}, [
|
|
3138
|
-
(r(!0),
|
|
3139
|
-
y ? (r(),
|
|
3140
|
-
i[0] ? (r(),
|
|
3141
|
-
i[1] ? (r(),
|
|
3142
|
-
i[2] ? (r(),
|
|
3138
|
+
(r(!0), h(O, null, ne(o.value, (i, y) => (r(), h(O, null, [
|
|
3139
|
+
y ? (r(), h("span", Xn, " - ")) : D("", !0),
|
|
3140
|
+
i[0] ? (r(), h("span", Jn, te(i[0]), 1)) : D("", !0),
|
|
3141
|
+
i[1] ? (r(), h("span", Zn, "(" + te(i[1]) + ")", 1)) : D("", !0),
|
|
3142
|
+
i[2] ? (r(), h("span", es, te(i[2]), 1)) : D("", !0)
|
|
3143
3143
|
], 64))), 256)),
|
|
3144
|
-
s.score ? (r(),
|
|
3144
|
+
s.score ? (r(), h("span", ts, te(c("prev")) + te(s.score) + "分" + te(c("after")), 1)) : D("", !0)
|
|
3145
3145
|
], 14, jn));
|
|
3146
3146
|
}
|
|
3147
3147
|
}), as = {
|
|
@@ -3200,64 +3200,78 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3200
3200
|
choice: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
3201
3201
|
fill: [m.fill, m.fill_english]
|
|
3202
3202
|
};
|
|
3203
|
-
return Object.keys(m).reduce(($,
|
|
3203
|
+
return Object.keys(m).reduce(($, T) => ({ ...$, [m[T]]: Object.keys(b).find((H) => b[H].includes(m[T])) || `${T}${o}` }), {});
|
|
3204
3204
|
}), a = R(() => [ke.one_choice, ke.another_choice].includes(e.data.problemType)), i = R(() => {
|
|
3205
3205
|
let b = [];
|
|
3206
|
-
e.data.children.forEach((
|
|
3206
|
+
e.data.children.forEach((T) => {
|
|
3207
3207
|
let H = b[b.length - 1];
|
|
3208
|
-
((
|
|
3208
|
+
((T.polymerId || l.includes(e.data.problemType)) && l.includes(T.problemType) || [Re.fill, Re.fill_english].includes(e.data.problemType) && e.data.style[u[e.layout.mode].fill_g] === _.portrait) && T.style ? (!H || H.type !== "polymer" || H.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
3215
|
}), H = b[b.length - 1]) : (!H || H.type !== "base") && (b.push({
|
|
3216
3216
|
type: "base",
|
|
3217
3217
|
children: []
|
|
3218
|
-
}), H = b[b.length - 1]), H.children.push({ ...
|
|
3218
|
+
}), H = b[b.length - 1]), H.children.push({ ...T, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3219
3219
|
});
|
|
3220
|
-
const $ = (
|
|
3221
|
-
let
|
|
3222
|
-
const K = (E =
|
|
3223
|
-
|
|
3220
|
+
const $ = (T, H, ce, Q, de, ae) => {
|
|
3221
|
+
let f = Math.min(Math.floor(e.width / H), ce), v = [], k = [], M = !0;
|
|
3222
|
+
const K = (E = f) => {
|
|
3223
|
+
v = (ae ? [...Array(E).keys()].map((W, Ce) => T.children.filter(($e, be) => be < (ae ? Q : Q * f) && be % E === Ce)).filter((W) => W.length) : [...Array(E).keys()].map((W) => T.children.slice(W * Q, (W + 1) * Q))).filter((W) => W.length).map((W) => Math.max(...W.map((Ce) => {
|
|
3224
3224
|
var $e;
|
|
3225
3225
|
return (($e = Ce.optList) == null ? void 0 : $e.length) || 0;
|
|
3226
3226
|
})));
|
|
3227
3227
|
};
|
|
3228
|
-
for (K(
|
|
3229
|
-
K(
|
|
3230
|
-
return { children:
|
|
3228
|
+
for (K(f), k = [...v]; M && f < ce; )
|
|
3229
|
+
K(f + 1), M = f + 1 <= ce && v.reduce((E, W) => E + W, 0) * (Fe[e.layout.fillSize].value + 9) + (f + 1) * de < e.width, M && (f += 1, k = [...v]);
|
|
3230
|
+
return { children: T.children.slice(0, ae ? Q : Q * f), col: f, colList: [...k] };
|
|
3231
3231
|
};
|
|
3232
|
-
return b = b.map((
|
|
3232
|
+
return b = b.map((T) => {
|
|
3233
3233
|
var H;
|
|
3234
|
-
if (
|
|
3235
|
-
const ce =
|
|
3236
|
-
if (
|
|
3237
|
-
let
|
|
3238
|
-
for (;
|
|
3239
|
-
const
|
|
3234
|
+
if (T.type === "polymer") {
|
|
3235
|
+
const ce = T.styleInfo[u[e.layout.mode].choice_b] === _.landscape, Q = T.styleInfo[u[e.layout.mode].choice_e] || 20, de = e.data.style[u[e.layout.mode].choice_d] || 10, ae = (n.value[`h${e.data.id}`] || n.value[T.polymerId] || n.value[((H = e.data.children[0]) == null ? void 0 : H.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 k = T.children.slice(v), M = Math.max(...k.map((E) => {
|
|
3240
3240
|
var W;
|
|
3241
3241
|
return ((W = E.optList) == null ? void 0 : W.length) || 0;
|
|
3242
|
-
})) * (Fe[e.layout.fillSize].value + 9) + ae, K = $({ ...
|
|
3243
|
-
|
|
3242
|
+
})) * (Fe[e.layout.fillSize].value + 9) + ae, K = $({ ...T, children: k }, M, de, Q, ae, ce);
|
|
3243
|
+
f.push({ ...T, groupIndex: f.length, children: K.children, col: K.col, colList: K.colList }), v = f.map((E) => E.children.length).reduce((E, W) => E + W, 0);
|
|
3244
3244
|
}
|
|
3245
|
-
return
|
|
3246
|
-
} else if (
|
|
3247
|
-
const
|
|
3248
|
-
let
|
|
3249
|
-
return
|
|
3250
|
-
E >=
|
|
3251
|
-
}),
|
|
3252
|
-
} else if (
|
|
3253
|
-
let
|
|
3254
|
-
return
|
|
3255
|
-
E.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, ae), v = Math.floor(e.width / (f * T.styleInfo[u[e.layout.mode].choice_c] + 10)), k = v * T.styleInfo[u[e.layout.mode].choice_c];
|
|
3248
|
+
let M = [{ children: [], col: v }];
|
|
3249
|
+
return T.children.forEach((K, E) => {
|
|
3250
|
+
E >= k * M.length && M.push({ children: [], col: v }), M[M.length - 1].children.push(K);
|
|
3251
|
+
}), M.map((K, E) => ({ ...T, groupIndex: E, children: K.children, col: K.col, colList: [] }));
|
|
3252
|
+
} else if (T.styleInfo[u[e.layout.mode].choice_a] === _.choice_3) {
|
|
3253
|
+
let f = [], v = 0, k = 0, M = 0, K = 0;
|
|
3254
|
+
return T.children.forEach((E) => {
|
|
3255
|
+
E.optList.length !== v && (k = E.optList.length * (Fe[e.layout.fillSize].value + 9) + ae, M = Math.min(Math.floor(e.width / k), de), K = ce ? M * 20 : M * T.styleInfo[u[e.layout.mode].choice_e], v = E.optList.length, f.push({ children: [], col: M, colList: [...Array(M).keys()].map((W) => E.optList.length) })), (!Object.values(je).includes(E.problemType) && !f.length || f[f.length - 1].children.length >= K) && f.push({ children: [], col: M, colList: [...Array(M).keys()].map((W) => E.optList.length) }), f[f.length - 1].children.push(E);
|
|
3256
|
+
}), f.map((E, W) => ({ ...T, groupIndex: W, children: E.children, col: E.col, colList: E.colList }));
|
|
3257
|
+
} else if ([m.fill, m.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, k) => ({
|
|
3260
|
+
...T,
|
|
3261
|
+
groupIndex: k,
|
|
3262
|
+
children: T.children.slice(k * f, (k + 1) * f).map((M) => ({
|
|
3263
|
+
...M,
|
|
3264
|
+
style: {
|
|
3265
|
+
...M.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
|
|
3274
|
+
return T;
|
|
3261
3275
|
}).flat(), b;
|
|
3262
3276
|
}), y = R(() => {
|
|
3263
3277
|
let b = {};
|
|
@@ -3270,15 +3284,15 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3270
3284
|
return { [`h${e.data.id}`]: Math.max(...b) };
|
|
3271
3285
|
} else
|
|
3272
3286
|
return Object.keys(y.value).map((b) => {
|
|
3273
|
-
const $ = (e.data.rawChildren || e.data.children).filter((
|
|
3287
|
+
const $ = (e.data.rawChildren || e.data.children).filter((T) => T.polymerId === b).map((T) => T.subStr.length);
|
|
3274
3288
|
return {
|
|
3275
3289
|
[b]: Math.max(...$)
|
|
3276
3290
|
};
|
|
3277
3291
|
}).reduce((b, $) => ({ ...b, ...$ }), {});
|
|
3278
3292
|
});
|
|
3279
3293
|
return {
|
|
3280
|
-
Gps_cls:
|
|
3281
|
-
problemLayoutKey:
|
|
3294
|
+
Gps_cls: L,
|
|
3295
|
+
problemLayoutKey: u,
|
|
3282
3296
|
problemLayoutVal: _,
|
|
3283
3297
|
hoverActive: c,
|
|
3284
3298
|
ModuleTag: o,
|
|
@@ -3288,39 +3302,39 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3288
3302
|
SubWidthInfo: n,
|
|
3289
3303
|
ComputName: (b) => b.problemType ? s.value[b.problemType] : "notArea",
|
|
3290
3304
|
ComputAbs: (b) => o && [m.slove, m.art].includes(b.problemType),
|
|
3291
|
-
ComputPolymerCls: (b) => [m.decide].includes(b.problemType) ? [] : b.styleInfo[
|
|
3305
|
+
ComputPolymerCls: (b) => [m.decide].includes(b.problemType) ? [] : b.styleInfo[u[e.layout.mode].choice_a] === _.choice_2 ? ["port_view"] : ["grid", b.groupIndex && "mt-6"],
|
|
3292
3306
|
ComputPolymerStyle: (b) => {
|
|
3293
|
-
var
|
|
3307
|
+
var T;
|
|
3294
3308
|
let $ = {};
|
|
3295
3309
|
if ([m.fill, m.fill_english].includes(b.problemType))
|
|
3296
|
-
switch (b.styleInfo[
|
|
3310
|
+
switch (b.styleInfo[u[e.layout.mode].fill_g]) {
|
|
3297
3311
|
case _.portrait:
|
|
3298
3312
|
$ = {
|
|
3299
3313
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
3300
|
-
"grid-template-columns": `repeat(${Math.floor(b.styleInfo[
|
|
3301
|
-
"grid-template-rows": `repeat(${Math.ceil(b.children.length / Math.floor(b.styleInfo[
|
|
3314
|
+
"grid-template-columns": `repeat(${Math.floor(b.styleInfo[u[e.layout.mode].fill_f])}, 1fr)`,
|
|
3315
|
+
"grid-template-rows": `repeat(${Math.ceil(b.children.length / Math.floor(b.styleInfo[u[e.layout.mode].fill_f]))}, 1fr)`
|
|
3302
3316
|
};
|
|
3303
3317
|
break;
|
|
3304
3318
|
}
|
|
3305
3319
|
else if (Object.values(je).includes(b.problemType)) {
|
|
3306
|
-
if (b.styleInfo[
|
|
3320
|
+
if (b.styleInfo[u[e.layout.mode].choice_a] === _.choice_2)
|
|
3307
3321
|
return $;
|
|
3308
3322
|
let H = [];
|
|
3309
|
-
const ce = b.styleInfo[
|
|
3310
|
-
switch (b.styleInfo[
|
|
3323
|
+
const ce = b.styleInfo[u[e.layout.mode].choice_b] === _.landscape, Q = b.styleInfo[u[e.layout.mode].choice_e] || 20, de = (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, ae = b.colList.map((f) => f * (Fe[e.layout.fillSize].value + 9) + de);
|
|
3324
|
+
switch (b.styleInfo[u[e.layout.mode].choice_f]) {
|
|
3311
3325
|
case _.choice_6:
|
|
3312
|
-
H = ae.map((
|
|
3326
|
+
H = ae.map((f) => `${f}px`);
|
|
3313
3327
|
break;
|
|
3314
3328
|
case _.choice_7:
|
|
3315
3329
|
default:
|
|
3316
|
-
H = ae.map((
|
|
3330
|
+
H = ae.map((f) => `${f / Math.max(...ae)}fr`);
|
|
3317
3331
|
}
|
|
3318
|
-
switch (b.styleInfo[
|
|
3332
|
+
switch (b.styleInfo[u[e.layout.mode].choice_a]) {
|
|
3319
3333
|
case _.choice_1:
|
|
3320
3334
|
case _.choice_3:
|
|
3321
|
-
ce && !e.noPortrait && [...Array(Math.ceil(b.children.length / Q)).keys()].map((
|
|
3322
|
-
const
|
|
3323
|
-
|
|
3335
|
+
ce && !e.noPortrait && [...Array(Math.ceil(b.children.length / Q)).keys()].map((v) => b.children.filter((k, M) => M >= v * Q && M < (v + 1) * Q)).map((v, k) => v.map((M, K) => ({ ...M, _grid_area_: ce ? null : pt[K] + k }))).flat(2).forEach((v) => {
|
|
3336
|
+
const k = b.children.find((M) => M.id === v.id);
|
|
3337
|
+
k._grid_area_ = v._grid_area_;
|
|
3324
3338
|
}), $ = ce ? {
|
|
3325
3339
|
"grid-template": `repeat(${Math.ceil(b.children.length / b.col)}, 1fr) / ${H.join(" ")}`
|
|
3326
3340
|
} : {
|
|
@@ -3333,14 +3347,14 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3333
3347
|
return $;
|
|
3334
3348
|
},
|
|
3335
3349
|
ComputPolymerItemStyle: (b, $) => {
|
|
3336
|
-
var
|
|
3350
|
+
var T;
|
|
3337
3351
|
if (b._grid_area_)
|
|
3338
3352
|
return {
|
|
3339
3353
|
"grid-area": b._grid_area_
|
|
3340
3354
|
};
|
|
3341
|
-
if (l.includes(b.problemType) && b.style[
|
|
3342
|
-
const H = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[(
|
|
3343
|
-
return !(($ + 1) % b.style[
|
|
3355
|
+
if (l.includes(b.problemType) && b.style[u[e.layout.mode].choice_a] === _.choice_2) {
|
|
3356
|
+
const H = 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), ce = Math.floor(e.width / (H * b.style[u[e.layout.mode].choice_c] + 10)), Q = (e.width - H * ce * b.style[u[e.layout.mode].choice_c]) / (ce - 1 || 1) - 1;
|
|
3357
|
+
return !(($ + 1) % b.style[u[e.layout.mode].choice_c]) && (($ + 1) % (b.style[u[e.layout.mode].choice_c] * ce) || ce < 2) ? {
|
|
3344
3358
|
"min-width": `${H - 5}px`,
|
|
3345
3359
|
"margin-right": `${Q}px`
|
|
3346
3360
|
} : {
|
|
@@ -3351,37 +3365,37 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3351
3365
|
},
|
|
3352
3366
|
ComputStyle: (b, $) => {
|
|
3353
3367
|
var H;
|
|
3354
|
-
let
|
|
3368
|
+
let T = {};
|
|
3355
3369
|
if (!o)
|
|
3356
|
-
return
|
|
3370
|
+
return T;
|
|
3357
3371
|
if (l.includes(b.problemType)) {
|
|
3358
3372
|
let ce = {};
|
|
3359
3373
|
if (Object.values(je).includes(e.data.problemType)) {
|
|
3360
3374
|
const Q = Math.max(.../*props.data.rawChildren || */
|
|
3361
|
-
e.data.children.map((ae) => ae.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((H = e.data.children[0]) == null ? void 0 : H.polymerId) || ""] || 0) * 10 + 10, de = Math.min(Math.floor(e.width / Q), e.data.style[
|
|
3375
|
+
e.data.children.map((ae) => ae.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((H = e.data.children[0]) == null ? void 0 : H.polymerId) || ""] || 0) * 10 + 10, de = Math.min(Math.floor(e.width / Q), e.data.style[u[e.layout.mode].choice_d] || 10);
|
|
3362
3376
|
ce = $ % de ? { minWidth: `${Q}px`, marginLeft: `${(e.width - Q * de) / (de - 1) - 5}px` } : { minWidth: `${Q}px` };
|
|
3363
3377
|
}
|
|
3364
|
-
|
|
3365
|
-
...
|
|
3378
|
+
T = {
|
|
3379
|
+
...T,
|
|
3366
3380
|
display: "inline-flex",
|
|
3367
3381
|
...ce
|
|
3368
3382
|
};
|
|
3369
3383
|
} else
|
|
3370
|
-
[m.fill, m.fill_english].includes(b.problemType) && (
|
|
3384
|
+
[m.fill, m.fill_english].includes(b.problemType) && (T = {
|
|
3371
3385
|
// display: (item.style[problemLayoutKey[props.layout.mode].fill_c] === problemLayoutVal.fill_1 && item.answerLen === 1) ? 'flex' : 'inline-flex',
|
|
3372
3386
|
display: "inline-flex",
|
|
3373
3387
|
alignItems: "flex-end",
|
|
3374
|
-
width: `calc(${100 / b.style[
|
|
3388
|
+
width: `calc(${100 / b.style[u[e.layout.mode].fill_d][b.order || 0]}% - 6px)`
|
|
3375
3389
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3376
3390
|
});
|
|
3377
|
-
return
|
|
3391
|
+
return T;
|
|
3378
3392
|
},
|
|
3379
3393
|
ComputBlock: (b) => {
|
|
3380
3394
|
const $ = [...l, m.fill, m.fill_english];
|
|
3381
3395
|
if (o && ($.includes(b.problemType) || typeof b.groupIndex == "number"))
|
|
3382
3396
|
return Se;
|
|
3383
3397
|
},
|
|
3384
|
-
ComputItemScore: (b) => [m.slove, m.easy_slove, m.art].includes(b.problemType) && b.style[
|
|
3398
|
+
ComputItemScore: (b) => [m.slove, m.easy_slove, m.art].includes(b.problemType) && b.style[u.public.scoreShowFlag] !== _.bracket_none ? [b.score].flat(2).reduce((T, H) => T + H, 0) : null,
|
|
3385
3399
|
ComputPayload: (b, $) => {
|
|
3386
3400
|
switch (b.problemType) {
|
|
3387
3401
|
case m.slove:
|
|
@@ -3410,18 +3424,18 @@ const Rn = /* @__PURE__ */ me(zn, [["render", Hn]]), Wn = ["data-viewid"], Gn =
|
|
|
3410
3424
|
}, 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
3425
|
function rs(e, t, o, l, c, s) {
|
|
3412
3426
|
const a = Yt("Sub");
|
|
3413
|
-
return r(!0),
|
|
3414
|
-
i.type === "polymer" ? (r(),
|
|
3427
|
+
return r(!0), h(O, null, ne(l.GroupData, (i, y) => (r(), h(O, null, [
|
|
3428
|
+
i.type === "polymer" ? (r(), h("div", {
|
|
3415
3429
|
key: 0,
|
|
3416
3430
|
"data-block": l.ComputBlock(i),
|
|
3417
3431
|
"data-polymer": y,
|
|
3418
3432
|
class: oe([...l.ComputPolymerCls(i)]),
|
|
3419
3433
|
style: Z(l.ComputPolymerStyle(i))
|
|
3420
3434
|
}, [
|
|
3421
|
-
(r(!0),
|
|
3422
|
-
var
|
|
3423
|
-
return r(),
|
|
3424
|
-
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3435
|
+
(r(!0), h(O, null, ne(i.children, (n, d) => {
|
|
3436
|
+
var A;
|
|
3437
|
+
return r(), h("div", {
|
|
3438
|
+
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3425
3439
|
style: Z(l.ComputPolymerItemStyle(n, d)),
|
|
3426
3440
|
"data-tag": n.__tag__,
|
|
3427
3441
|
"data-polymer": y,
|
|
@@ -3437,15 +3451,15 @@ function rs(e, t, o, l, c, s) {
|
|
|
3437
3451
|
isFull: !!l.ModuleTag,
|
|
3438
3452
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3439
3453
|
class: oe(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
|
|
3440
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3454
|
+
}, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
|
|
3441
3455
|
(r(), ee(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, d) })), null, 16))
|
|
3442
3456
|
], 46, ns);
|
|
3443
3457
|
}), 256))
|
|
3444
|
-
], 14, ls)) : (r(!0),
|
|
3445
|
-
var
|
|
3446
|
-
return r(),
|
|
3447
|
-
|
|
3448
|
-
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3458
|
+
], 14, ls)) : (r(!0), h(O, { key: 1 }, ne(i.children, (n, d) => {
|
|
3459
|
+
var A;
|
|
3460
|
+
return r(), h(O, null, [
|
|
3461
|
+
w("div", {
|
|
3462
|
+
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3449
3463
|
style: Z(l.ComputStyle(n, d)),
|
|
3450
3464
|
"data-tag": n.__tag__,
|
|
3451
3465
|
"data-block": l.ComputBlock(n),
|
|
@@ -3462,10 +3476,10 @@ function rs(e, t, o, l, c, s) {
|
|
|
3462
3476
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3463
3477
|
score: l.ComputItemScore(n),
|
|
3464
3478
|
bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3465
|
-
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) :
|
|
3479
|
+
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : D("", !0),
|
|
3466
3480
|
(r(), ee(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, d) })), {
|
|
3467
3481
|
default: Mt(() => [
|
|
3468
|
-
n.customSub ?
|
|
3482
|
+
n.customSub ? D("", !0) : (r(), ee(a, {
|
|
3469
3483
|
key: 0,
|
|
3470
3484
|
sub: n.sub,
|
|
3471
3485
|
isFull: !!l.ModuleTag,
|
|
@@ -3477,7 +3491,7 @@ function rs(e, t, o, l, c, s) {
|
|
|
3477
3491
|
_: 2
|
|
3478
3492
|
}, 1040))
|
|
3479
3493
|
], 46, ss),
|
|
3480
|
-
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(),
|
|
3494
|
+
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), h("div", is)) : D("", !0)
|
|
3481
3495
|
], 64);
|
|
3482
3496
|
}), 256))
|
|
3483
3497
|
], 64))), 256);
|
|
@@ -3493,7 +3507,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3493
3507
|
}, a = t ? `<span>${s("prev")}${t}分${s("after")}</span>` : "";
|
|
3494
3508
|
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
3509
|
}, Ee = 200 / 96, Wt = 4, ds = 10, G = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, ue = (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 = G(ue(`${
|
|
3510
|
+
const l = G(ue(`${L.item}${e._sub}`, t));
|
|
3497
3511
|
return !(l.top >= o.top + o.height || l.top + l.height < o.top);
|
|
3498
3512
|
}, pe = (e, t, o = !1) => !e || !t ? null : {
|
|
3499
3513
|
x: e.x - t.x,
|
|
@@ -3525,14 +3539,14 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3525
3539
|
width: Math.round(l.width * Ee + o * 2),
|
|
3526
3540
|
height: Math.round(l.height * Ee + o * 2)
|
|
3527
3541
|
};
|
|
3528
|
-
}, Gt = (e, t =
|
|
3542
|
+
}, Gt = (e, t = L.en_num) => {
|
|
3529
3543
|
const o = ue(t);
|
|
3530
3544
|
if (!o)
|
|
3531
3545
|
return null;
|
|
3532
3546
|
const l = {
|
|
3533
3547
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3534
3548
|
area: pe(G(o), G(e.pageDom[0])),
|
|
3535
|
-
list: Pe(
|
|
3549
|
+
list: Pe(L.en_num_group, o).map((c) => Pe(L.en_num_item, c).map((s) => pe(G(s), G(e.pageDom[0]), !0)))
|
|
3536
3550
|
};
|
|
3537
3551
|
return e.bindWidth ? {
|
|
3538
3552
|
choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
|
|
@@ -3558,35 +3572,35 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3558
3572
|
cardColumnCount: e.layout.column,
|
|
3559
3573
|
cardColumnCount2: e.layout.backColumn,
|
|
3560
3574
|
doubleCard: !0,
|
|
3561
|
-
paperWidth: Math.round(
|
|
3562
|
-
paperHeight: Math.round(
|
|
3575
|
+
paperWidth: Math.round(x[e.layout.paper].width * Ee),
|
|
3576
|
+
paperHeight: Math.round(x[e.layout.paper].height * Ee)
|
|
3563
3577
|
}), ps = (e) => {
|
|
3564
3578
|
const t = G(e.pageDom[0]), o = G(e.pageDom[1]), l = (c, s) => {
|
|
3565
3579
|
var i;
|
|
3566
3580
|
const a = s > 2 || tt.includes(e.layout.paper) ? {
|
|
3567
|
-
trdLeftTopPos: re(pe(G(Pe(`${
|
|
3568
|
-
trdLeftBottomPos: re(pe(G(Pe(`${
|
|
3581
|
+
trdLeftTopPos: re(pe(G(Pe(`${L.point}t`, e.pageDom[c])[1]), G(e.pageDom[c]))),
|
|
3582
|
+
trdLeftBottomPos: re(pe(G(Pe(`${L.point}b`, e.pageDom[c])[1]), G(e.pageDom[c])))
|
|
3569
3583
|
} : {};
|
|
3570
3584
|
return (i = We.find((y) => y.code === e.layout.paper)) != null && i.isMultCol ? {
|
|
3571
|
-
secLeftTopPos: re(pe(G(Pe(`${
|
|
3572
|
-
secLeftBottomPos: re(pe(G(Pe(`${
|
|
3585
|
+
secLeftTopPos: re(pe(G(Pe(`${L.point}t`, e.pageDom[c])[0]), G(e.pageDom[c]))),
|
|
3586
|
+
secLeftBottomPos: re(pe(G(Pe(`${L.point}b`, e.pageDom[c])[0]), G(e.pageDom[c]))),
|
|
3573
3587
|
...a
|
|
3574
3588
|
} : null;
|
|
3575
3589
|
};
|
|
3576
3590
|
return {
|
|
3577
3591
|
// 取第一/二页定位点信息
|
|
3578
|
-
leftTopPos: re(pe(G(ue(`${
|
|
3579
|
-
rightTopPos: re(pe(G(ue(`${
|
|
3580
|
-
leftBottomPos: re(pe(G(ue(`${
|
|
3581
|
-
rightBottomPos: re(pe(G(ue(`${
|
|
3592
|
+
leftTopPos: re(pe(G(ue(`${L.point}lt`, e.pageDom[0])), t)),
|
|
3593
|
+
rightTopPos: re(pe(G(ue(`${L.point}rt`, e.pageDom[0])), t)),
|
|
3594
|
+
leftBottomPos: re(pe(G(ue(`${L.point}lb`, e.pageDom[0])), t)),
|
|
3595
|
+
rightBottomPos: re(pe(G(ue(`${L.point}rb`, e.pageDom[0])), t)),
|
|
3582
3596
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3583
3597
|
verticalAuxInfo: [
|
|
3584
|
-
re(pe(G(ue(`${
|
|
3585
|
-
re(pe(G(ue(`${
|
|
3598
|
+
re(pe(G(ue(`${L.point}l`, e.pageDom[0])), t)),
|
|
3599
|
+
re(pe(G(ue(`${L.point}r`, e.pageDom[0])), t))
|
|
3586
3600
|
],
|
|
3587
3601
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3588
|
-
re(pe(G(ue(`${
|
|
3589
|
-
re(pe(G(ue(`${
|
|
3602
|
+
re(pe(G(ue(`${L.point}l`, e.pageDom[1])), o)),
|
|
3603
|
+
re(pe(G(ue(`${L.point}r`, e.pageDom[1])), o))
|
|
3590
3604
|
] : null,
|
|
3591
3605
|
auxAnchorInfo: l(0, e.layout.column),
|
|
3592
3606
|
auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
|
|
@@ -3594,11 +3608,11 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3594
3608
|
}, ms = (e) => {
|
|
3595
3609
|
let t = 10;
|
|
3596
3610
|
if (e.pageDom[1]) {
|
|
3597
|
-
const l = ue(`${
|
|
3598
|
-
t = ue(`${
|
|
3611
|
+
const l = ue(`${L.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3612
|
+
t = ue(`${L.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
|
|
3599
3613
|
}
|
|
3600
|
-
let o = pe(G(ue(
|
|
3601
|
-
return o = { ...o, y: o.y % (
|
|
3614
|
+
let o = pe(G(ue(L.page, e.pageDom[e.pageTotal - 1])), G(e.pageDom[e.pageTotal - 1]));
|
|
3615
|
+
return o = { ...o, y: o.y % (x[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3602
3616
|
{
|
|
3603
3617
|
// 固定值
|
|
3604
3618
|
choiceQuestionCount: 1,
|
|
@@ -3607,7 +3621,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3607
3621
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3608
3622
|
choiceQuestionPosition: re(o, !0),
|
|
3609
3623
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3610
|
-
firstChoicePosition: re(pe(G(ue(`${
|
|
3624
|
+
firstChoicePosition: re(pe(G(ue(`${L.page_item}0`, e.pageDom[e.pageTotal - 1])), G(e.pageDom[e.pageTotal - 1]))),
|
|
3611
3625
|
// 页码点最大值,展开为数组
|
|
3612
3626
|
choiceGridSequenceNOList: gt.filter((l, c) => c < e.pageTotal),
|
|
3613
3627
|
// 排列方向
|
|
@@ -3619,7 +3633,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3619
3633
|
}
|
|
3620
3634
|
];
|
|
3621
3635
|
}, ys = (e) => {
|
|
3622
|
-
const t = ue(
|
|
3636
|
+
const t = ue(L.lack, e.pageDom[0]);
|
|
3623
3637
|
return t ? {
|
|
3624
3638
|
// 固定值
|
|
3625
3639
|
choiceQuestionCount: 1,
|
|
@@ -3639,13 +3653,13 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3639
3653
|
xColOffset: 0
|
|
3640
3654
|
} : null;
|
|
3641
3655
|
}, _s = (e) => {
|
|
3642
|
-
let t = pe(G(ue(
|
|
3656
|
+
let t = pe(G(ue(L.en_code, e.pageDom[0])), G(e.pageDom[0]));
|
|
3643
3657
|
return re(t);
|
|
3644
3658
|
}, fs = (e) => {
|
|
3645
|
-
const t = ue(
|
|
3659
|
+
const t = ue(L.write_view, e.pageDom[0]);
|
|
3646
3660
|
if (!t)
|
|
3647
3661
|
return null;
|
|
3648
|
-
const o = Pe(
|
|
3662
|
+
const o = Pe(L.score_item, t);
|
|
3649
3663
|
return {
|
|
3650
3664
|
id: "0",
|
|
3651
3665
|
problemType: m.slove,
|
|
@@ -3712,26 +3726,26 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3712
3726
|
return [...Array(e.pageDom.length).keys()].map((c) => {
|
|
3713
3727
|
var i, y, n, d;
|
|
3714
3728
|
const s = Math.floor(c / 2) * (e.layout.column + e.layout.backColumn) + (c % 2 ? e.layout.column : 0), a = (d = (n = t[t.length - 1]) == null ? void 0 : n.data[((y = (i = t[t.length - 1]) == null ? void 0 : i.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : d.children;
|
|
3715
|
-
return [...Array(c % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((
|
|
3716
|
-
const P = e.pageDom[c],
|
|
3717
|
-
const Y = ue(`${
|
|
3729
|
+
return [...Array(c % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((A, p) => s + p < t.length).map((A, p) => {
|
|
3730
|
+
const P = e.pageDom[c], B = G(P), V = e.colDom[s + p], X = G(V), q = e.colViewDom[s + p], C = G(q), N = t[s + p].data.map((S) => S.children).flat(), j = t[s + p].data.filter((S) => [ke.one_choice, ke.another_choice].includes(S.problemType) && S.rawChildren.length).map((S) => {
|
|
3731
|
+
const Y = ue(`${L.choice}${S.id}`, V);
|
|
3718
3732
|
return Y ? {
|
|
3719
3733
|
id: `${++o}`,
|
|
3720
3734
|
baseIndex: parseInt(S.rawChildren[0]._sub),
|
|
3721
|
-
position: pe(G(Y),
|
|
3735
|
+
position: pe(G(Y), B),
|
|
3722
3736
|
problemType: S.problemType,
|
|
3723
3737
|
isOneChoice: !0,
|
|
3724
|
-
optList: Pe(
|
|
3738
|
+
optList: Pe(L.fill, Y).map((he, b) => ({
|
|
3725
3739
|
id: `${o}.${b + 1}`,
|
|
3726
|
-
position: pe(G(he),
|
|
3740
|
+
position: pe(G(he), B)
|
|
3727
3741
|
})).filter((he) => he.position)
|
|
3728
3742
|
} : {};
|
|
3729
3743
|
}).filter((S) => S.position);
|
|
3730
|
-
return
|
|
3744
|
+
return N.filter((S) => S.problemType && us(S, V, X)).map((S, Y) => {
|
|
3731
3745
|
var $;
|
|
3732
3746
|
let he = {};
|
|
3733
3747
|
l[S._sub] ? l[S._sub] += 1 : l[S._sub] = 1;
|
|
3734
|
-
const b = ue(`${
|
|
3748
|
+
const b = ue(`${L.item}${S._sub}`, V);
|
|
3735
3749
|
switch (S.problemType) {
|
|
3736
3750
|
case m.choice:
|
|
3737
3751
|
case m.choice_english:
|
|
@@ -3739,10 +3753,10 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3739
3753
|
case m.cloze:
|
|
3740
3754
|
he = {
|
|
3741
3755
|
score: S.score,
|
|
3742
|
-
isColumn: S.style[
|
|
3756
|
+
isColumn: S.style[u[e.layout.mode].choice_a] !== _.choice_2,
|
|
3743
3757
|
optList: S.optList.map((Q, de) => ({
|
|
3744
3758
|
id: `${S._sub}.${de + 1}`,
|
|
3745
|
-
position: Be(ue(`${
|
|
3759
|
+
position: Be(ue(`${L.fill}${de}`, b), C, B)
|
|
3746
3760
|
})).filter((Q) => Q.position)
|
|
3747
3761
|
};
|
|
3748
3762
|
break;
|
|
@@ -3750,36 +3764,36 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3750
3764
|
he = {
|
|
3751
3765
|
optList: [0, 1].map((Q, de) => ({
|
|
3752
3766
|
id: `${S._sub}.${de + 1}`,
|
|
3753
|
-
position: Be(ue(`${
|
|
3767
|
+
position: Be(ue(`${L.fill}${de}`, b), C, B)
|
|
3754
3768
|
})).filter((Q) => Q.position)
|
|
3755
3769
|
};
|
|
3756
3770
|
break;
|
|
3757
3771
|
case m.fill:
|
|
3758
3772
|
case m.fill_english:
|
|
3759
|
-
const
|
|
3773
|
+
const T = Pe(L.fill, b), H = Pe(L.fill_line, b);
|
|
3760
3774
|
he = {
|
|
3761
3775
|
children: [S.score].flat().map((Q, de, ae) => ({
|
|
3762
3776
|
id: ae.length > 1 ? `${S._sub}.${de + 1}` : S._sub,
|
|
3763
3777
|
score: Q,
|
|
3764
3778
|
problemType: S.problemType,
|
|
3765
|
-
isHiddenContent: !S.style[
|
|
3766
|
-
position: Be(b,
|
|
3767
|
-
scorePosition: Be(
|
|
3768
|
-
answerPosition: Be(H[de],
|
|
3779
|
+
isHiddenContent: !S.style[u[e.layout.mode].fill_b],
|
|
3780
|
+
position: Be(b, C, B),
|
|
3781
|
+
scorePosition: Be(T[de], C, B),
|
|
3782
|
+
answerPosition: Be(H[de], C, B)
|
|
3769
3783
|
})).filter((Q) => Q.position)
|
|
3770
3784
|
};
|
|
3771
3785
|
break;
|
|
3772
3786
|
case m.slove:
|
|
3773
3787
|
case m.easy_slove:
|
|
3774
3788
|
case m.art:
|
|
3775
|
-
const ce = ue(
|
|
3789
|
+
const ce = ue(L.score, b);
|
|
3776
3790
|
he = {
|
|
3777
|
-
scoreList: ce ? [ue(
|
|
3791
|
+
scoreList: ce ? [ue(L.score_tenbit, ce), ue(L.score_base, ce), ue(L.score_half, ce)].map((Q) => {
|
|
3778
3792
|
if (!Q)
|
|
3779
3793
|
return {};
|
|
3780
|
-
const de = Pe(
|
|
3794
|
+
const de = Pe(L.score_item, Q);
|
|
3781
3795
|
return {
|
|
3782
|
-
position: Be(Q,
|
|
3796
|
+
position: Be(Q, C, B, !0),
|
|
3783
3797
|
itemPosition: {
|
|
3784
3798
|
width: de[0].offsetWidth
|
|
3785
3799
|
},
|
|
@@ -3795,7 +3809,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3795
3809
|
problemType: S.problemType,
|
|
3796
3810
|
_rootProblemType: S._rootProblemType,
|
|
3797
3811
|
_parentProblemType: S._parentProblemType,
|
|
3798
|
-
position: Be(b,
|
|
3812
|
+
position: Be(b, C, B, !1, S.id === N[N.length - 1].id && S.id !== (($ = a[a.length - 1]) == null ? void 0 : $.id) && [m.slove].includes(S.problemType)),
|
|
3799
3813
|
...he
|
|
3800
3814
|
};
|
|
3801
3815
|
}).concat(j).filter((S) => S.position);
|
|
@@ -3939,21 +3953,21 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3939
3953
|
}).flat()
|
|
3940
3954
|
})), c = (a, i) => ([a.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < i).join("."), s = l.map((a) => {
|
|
3941
3955
|
let i = [], y = [], n = [];
|
|
3942
|
-
return a.cardCuttingSectionList.forEach((d,
|
|
3956
|
+
return a.cardCuttingSectionList.forEach((d, A, p) => {
|
|
3943
3957
|
const P = c(d, 1);
|
|
3944
|
-
let
|
|
3945
|
-
if (n.find((q) => c(q, 1) === P && q.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(d),
|
|
3958
|
+
let B = !1, V = !1;
|
|
3959
|
+
if (n.find((q) => c(q, 1) === P && q.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(d), B = A < p.length - 1, V = !0), B)
|
|
3946
3960
|
return;
|
|
3947
3961
|
let X = !1;
|
|
3948
3962
|
if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(d), X = !0), n.length) {
|
|
3949
3963
|
if (n.length === 1)
|
|
3950
3964
|
i.push(n[0]);
|
|
3951
3965
|
else {
|
|
3952
|
-
const q = n.map((S) => S.subjectiveQuestionSectionList || []).flat(),
|
|
3966
|
+
const q = n.map((S) => S.subjectiveQuestionSectionList || []).flat(), C = n.map((S) => S.choiceQuestionPartialSectionList || []).flat(), N = C.length ? { choiceQuestionPartialSectionList: C } : {}, j = q.length ? { subjectiveQuestionSectionList: q } : {};
|
|
3953
3967
|
i.push({
|
|
3954
3968
|
...n[0],
|
|
3955
3969
|
// cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
|
|
3956
|
-
...
|
|
3970
|
+
...N,
|
|
3957
3971
|
...j
|
|
3958
3972
|
});
|
|
3959
3973
|
}
|
|
@@ -3965,11 +3979,11 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3965
3979
|
const i = a.cardCuttingSectionList.map((y) => {
|
|
3966
3980
|
var P;
|
|
3967
3981
|
let n = [], d = [];
|
|
3968
|
-
const
|
|
3969
|
-
(P = y.subjectiveQuestionSectionList) == null || P.forEach((
|
|
3970
|
-
const q = c(
|
|
3971
|
-
let
|
|
3972
|
-
if (d.find((j) => c(j,
|
|
3982
|
+
const A = Math.max(...(y.subjectiveQuestionSectionList || []).map((B) => B.sectionID.split(".").length - 1), 1);
|
|
3983
|
+
(P = y.subjectiveQuestionSectionList) == null || P.forEach((B, V, X) => {
|
|
3984
|
+
const q = c(B, A);
|
|
3985
|
+
let C = !1, N = !1;
|
|
3986
|
+
if (d.find((j) => c(j, A) === q && j.secitonSeqID === B.secitonSeqID) && (d.push(B), C = V < X.length - 1, N = !0), !C) {
|
|
3973
3987
|
if (d.length) {
|
|
3974
3988
|
if (d.length === 1)
|
|
3975
3989
|
n.push(d[0]);
|
|
@@ -3983,11 +3997,11 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3983
3997
|
}
|
|
3984
3998
|
d = [];
|
|
3985
3999
|
}
|
|
3986
|
-
|
|
4000
|
+
N || d.push(B);
|
|
3987
4001
|
}
|
|
3988
4002
|
});
|
|
3989
|
-
const p = Math.max(...[...n, ...d].map((
|
|
3990
|
-
return n = [...n, ...d].map((
|
|
4003
|
+
const p = Math.max(...[...n, ...d].map((B) => B.sectionID.split(".").length));
|
|
4004
|
+
return n = [...n, ...d].map((B) => ({ ...B, cuttingSectionQuestionType: o[B.sectionID]._parentProblemType || B.cuttingSectionQuestionType, sectionID: c(B, Math.max(p - 1, 1)) })), n.length ? {
|
|
3991
4005
|
...y,
|
|
3992
4006
|
subjectiveQuestionSectionList: n
|
|
3993
4007
|
} : y;
|
|
@@ -4014,8 +4028,8 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4014
4028
|
// 试卷二维码
|
|
4015
4029
|
cardSerialNumber: {
|
|
4016
4030
|
// 条形码虚线框位置, x, y, width, height
|
|
4017
|
-
encodePictureArea: re(pe(G(ue(
|
|
4018
|
-
qrCodePosition: re(pe(G(ue(
|
|
4031
|
+
encodePictureArea: re(pe(G(ue(L.art_code, e.pageDom[0])), o), !0),
|
|
4032
|
+
qrCodePosition: re(pe(G(ue(L.art_code, e.pageDom[0])), o)),
|
|
4019
4033
|
// 条形码或二维码,不确定,固定此值
|
|
4020
4034
|
pictureType: "TYPE_QRCODE"
|
|
4021
4035
|
},
|
|
@@ -4037,7 +4051,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4037
4051
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
4038
4052
|
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((c) => c % 2),
|
|
4039
4053
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
4040
|
-
absenceInfoIndexList: ue(
|
|
4054
|
+
absenceInfoIndexList: ue(L.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((c) => c % 2) : null,
|
|
4041
4055
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
4042
4056
|
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((c) => c % 2),
|
|
4043
4057
|
// 哪些面有选做老师布置题的信息,固定值
|
|
@@ -4046,7 +4060,7 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4046
4060
|
layerType: hs(e),
|
|
4047
4061
|
// 定位点信息
|
|
4048
4062
|
...ps(e),
|
|
4049
|
-
pottedLineXPos: e.bindWidth ? (l = re(pe(G(ue(
|
|
4063
|
+
pottedLineXPos: e.bindWidth ? (l = re(pe(G(ue(L.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4050
4064
|
// 页码点信息
|
|
4051
4065
|
pageSideAnchorsList: ms(e),
|
|
4052
4066
|
// 缺考标记
|
|
@@ -4057,11 +4071,11 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4057
4071
|
}, xs = (e) => {
|
|
4058
4072
|
const { config: t, data: o } = e, l = fs(t), c = bs(t, o);
|
|
4059
4073
|
l && c[0].unshift(l);
|
|
4060
|
-
const s = gs(t, c), a = ws(t, c), i = ks(t, a), y = Gt(t,
|
|
4074
|
+
const s = gs(t, c), a = ws(t, c), i = ks(t, a), y = Gt(t, L.en_num_view) || {};
|
|
4061
4075
|
return {
|
|
4062
4076
|
engineData: i,
|
|
4063
4077
|
pageTotal: t.pageTotal,
|
|
4064
|
-
format:
|
|
4078
|
+
format: x[t.layout.paper],
|
|
4065
4079
|
localData: s,
|
|
4066
4080
|
extendInfo: { shortCoordinate: y }
|
|
4067
4081
|
};
|
|
@@ -4082,15 +4096,15 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4082
4096
|
Oe(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
4083
4097
|
l.value = [], setTimeout(() => {
|
|
4084
4098
|
var n;
|
|
4085
|
-
o.ColList.forEach((d,
|
|
4099
|
+
o.ColList.forEach((d, A) => {
|
|
4086
4100
|
d.data.map((p) => p.children).flat().filter((p) => [m.slove, m.art].includes(p.problemType) && !p.chunk).forEach((p) => {
|
|
4087
4101
|
var X;
|
|
4088
|
-
const P = (X = o.ColDom[
|
|
4102
|
+
const P = (X = o.ColDom[A].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : X.querySelector(`*[data-xine="${L.score}"]`);
|
|
4089
4103
|
if (!P)
|
|
4090
4104
|
return;
|
|
4091
4105
|
P.classList.remove("err_lack");
|
|
4092
|
-
const
|
|
4093
|
-
P.offsetWidth - parseFloat(
|
|
4106
|
+
const B = window.getComputedStyle(P), V = [...Array.from(P.children)].map((q) => q.offsetWidth).reduce((q, C) => q + C, 0);
|
|
4107
|
+
P.offsetWidth - parseFloat(B.borderLeft) - parseFloat(B.borderRight) < V && (l.value.push({ msg: `${p.subStr}题打分条超长` }), P.classList.add("err_lack"), P.title = "打分条超长,请调整排版或使用自编打分条");
|
|
4094
4108
|
});
|
|
4095
4109
|
});
|
|
4096
4110
|
const a = (n = document.querySelector(".__layout__")) == null ? void 0 : n.getBoundingClientRect();
|
|
@@ -4111,35 +4125,35 @@ const Ue = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4111
4125
|
var i;
|
|
4112
4126
|
(((i = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((y) => t("delAbsTxtItem", y));
|
|
4113
4127
|
};
|
|
4114
|
-
return (a, i) => (r(),
|
|
4115
|
-
|
|
4116
|
-
|
|
4128
|
+
return (a, i) => (r(), h("div", Cs, [
|
|
4129
|
+
w("div", Ss, [
|
|
4130
|
+
w("div", {
|
|
4117
4131
|
class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4118
4132
|
}, null, 2),
|
|
4119
|
-
|
|
4133
|
+
w("div", {
|
|
4120
4134
|
class: oe(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4121
4135
|
}, [
|
|
4122
|
-
|
|
4136
|
+
w("span", $s, [
|
|
4123
4137
|
le(ge, {
|
|
4124
4138
|
width: 1.6,
|
|
4125
4139
|
name: l.value.length ? "wrong" : "right"
|
|
4126
4140
|
}, null, 8, ["name"])
|
|
4127
4141
|
]),
|
|
4128
|
-
|
|
4142
|
+
w("span", Ts, "排版" + te(l.value.length ? "异常" : "良好"), 1)
|
|
4129
4143
|
], 2),
|
|
4130
|
-
l.value.length ? (r(),
|
|
4131
|
-
(r(!0),
|
|
4144
|
+
l.value.length ? (r(), h("ul", Is, [
|
|
4145
|
+
(r(!0), h(O, null, ne(l.value, (y, n) => (r(), h("li", {
|
|
4132
4146
|
key: n,
|
|
4133
4147
|
class: "layt-moni_err_item"
|
|
4134
4148
|
}, [
|
|
4135
|
-
|
|
4136
|
-
y.fn ? (r(),
|
|
4149
|
+
w("span", Ls, te(y.msg), 1),
|
|
4150
|
+
y.fn ? (r(), h("span", {
|
|
4137
4151
|
key: 0,
|
|
4138
4152
|
class: "layt-moni_err_item_fn",
|
|
4139
4153
|
onClick: y.fn
|
|
4140
|
-
}, te(y.btnTxt || "删除"), 9, Fs)) :
|
|
4154
|
+
}, te(y.btnTxt || "删除"), 9, Fs)) : D("", !0)
|
|
4141
4155
|
]))), 128))
|
|
4142
|
-
])) :
|
|
4156
|
+
])) : D("", !0)
|
|
4143
4157
|
])
|
|
4144
4158
|
]));
|
|
4145
4159
|
}
|
|
@@ -4172,33 +4186,33 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4172
4186
|
}, Pt = (e, t, o, l) => {
|
|
4173
4187
|
const c = (a, i = o) => {
|
|
4174
4188
|
var V, X, q;
|
|
4175
|
-
const y = a.map((
|
|
4176
|
-
const
|
|
4189
|
+
const y = a.map((C) => {
|
|
4190
|
+
const N = _e(C);
|
|
4177
4191
|
return {
|
|
4178
|
-
el:
|
|
4179
|
-
top:
|
|
4180
|
-
left:
|
|
4192
|
+
el: C,
|
|
4193
|
+
top: N.top - t,
|
|
4194
|
+
left: N.left
|
|
4181
4195
|
};
|
|
4182
|
-
}), n = y.filter((
|
|
4196
|
+
}), n = y.filter((C) => C.el.offsetHeight + C.top > i).sort((C, N) => C.top - N.top), d = (V = n.shift()) == null ? void 0 : V.el;
|
|
4183
4197
|
if (!d) {
|
|
4184
|
-
const
|
|
4185
|
-
return (X = a[0].parentElement) == null || X.appendChild(
|
|
4198
|
+
const C = document.createElement("div");
|
|
4199
|
+
return (X = a[0].parentElement) == null || X.appendChild(C), C.style.height = i - (_e(C).top - t) + "px", C;
|
|
4186
4200
|
}
|
|
4187
|
-
const
|
|
4188
|
-
if (n.filter((
|
|
4189
|
-
const
|
|
4190
|
-
if (
|
|
4191
|
-
const
|
|
4192
|
-
return c(
|
|
4201
|
+
const A = _e(d), p = A.top - t, P = A.left;
|
|
4202
|
+
if (n.filter((C) => C.top < p + d.offsetHeight && C.top + C.el.offsetHeight - 1 > p && (C.left + C.el.offsetWidth - 1 < P || C.left + 1 > P + d.offsetWidth)).length) {
|
|
4203
|
+
const C = (q = y.filter((N) => N.top < p).pop()) == null ? void 0 : q.el;
|
|
4204
|
+
if (C != null && C.children.length) {
|
|
4205
|
+
const N = mt(C);
|
|
4206
|
+
return c(N, p) || C;
|
|
4193
4207
|
} else
|
|
4194
|
-
return
|
|
4208
|
+
return C ? _e(C).top - t + C.offsetHeight > p ? Et(C, t, p) : C : yt(d.parentElement, t, p);
|
|
4195
4209
|
} else {
|
|
4196
|
-
const
|
|
4197
|
-
if (p + (parseFloat(
|
|
4210
|
+
const C = getComputedStyle(d);
|
|
4211
|
+
if (p + (parseFloat(C.fontSize) + (parseFloat(C.lineHeight) - parseFloat(C.fontSize)) / 2) > i)
|
|
4198
4212
|
return yt(d, t, p);
|
|
4199
|
-
const
|
|
4200
|
-
if (
|
|
4201
|
-
return lt(
|
|
4213
|
+
const N = Ds(d, i - p, i, l);
|
|
4214
|
+
if (N)
|
|
4215
|
+
return lt(N);
|
|
4202
4216
|
if (d.children.length) {
|
|
4203
4217
|
const j = mt(d);
|
|
4204
4218
|
return c(j, i);
|
|
@@ -4216,8 +4230,8 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4216
4230
|
console.time("layout");
|
|
4217
4231
|
const i = _e(t).top;
|
|
4218
4232
|
let y = {}, n = 0, d = 0;
|
|
4219
|
-
const
|
|
4220
|
-
const
|
|
4233
|
+
const A = (C) => {
|
|
4234
|
+
const N = C % (l + c), j = Math.floor(C / (l + c)) * 2 + (N >= l ? 1 : 0), S = s(C, j);
|
|
4221
4235
|
y = {
|
|
4222
4236
|
top: i,
|
|
4223
4237
|
width: parseFloat(S.width),
|
|
@@ -4225,111 +4239,111 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4225
4239
|
};
|
|
4226
4240
|
};
|
|
4227
4241
|
let p = [], P = 0;
|
|
4228
|
-
const
|
|
4229
|
-
|
|
4242
|
+
const B = () => {
|
|
4243
|
+
A(p.length), t.style.width = `${y.width}px`, p.push({
|
|
4230
4244
|
top: 0,
|
|
4231
4245
|
data: [],
|
|
4232
4246
|
width: y.width,
|
|
4233
4247
|
height: y.height
|
|
4234
4248
|
}), a([...p]);
|
|
4235
4249
|
};
|
|
4236
|
-
|
|
4237
|
-
const V = (
|
|
4238
|
-
const
|
|
4239
|
-
return _e(
|
|
4240
|
-
}, X = (
|
|
4241
|
-
const
|
|
4242
|
-
return _e(
|
|
4243
|
-
}, q = (
|
|
4244
|
-
if (P >= o.length || !Object.keys(
|
|
4250
|
+
B();
|
|
4251
|
+
const V = (C) => {
|
|
4252
|
+
const N = getComputedStyle(C);
|
|
4253
|
+
return _e(C).top - y.top + parseFloat(N.borderTop) + parseFloat(N.paddingTop) + parseFloat(N.lineHeight) > p[p.length - 1].height;
|
|
4254
|
+
}, X = (C) => {
|
|
4255
|
+
const N = getComputedStyle(C);
|
|
4256
|
+
return _e(C).top + C.offsetHeight - y.top - (C.dataset.block === Se ? 0 : parseFloat(N.paddingBottom) - parseFloat(N.borderBottom)) <= p[p.length - 1].height;
|
|
4257
|
+
}, q = (C = JSON.parse(JSON.stringify(o[P] || {}))) => {
|
|
4258
|
+
if (P >= o.length || !Object.keys(C).length) {
|
|
4245
4259
|
a([...p], !0), console.timeEnd("layout"), p = [], n = 0;
|
|
4246
4260
|
return;
|
|
4247
4261
|
}
|
|
4248
|
-
p[p.length - 1].data.push({ ...
|
|
4249
|
-
const
|
|
4262
|
+
p[p.length - 1].data.push({ ...C }), a([...p]), window.requestAnimationFrame(() => {
|
|
4263
|
+
const N = dt(C.__tag__, t), j = !C.isHidden && _e(N);
|
|
4250
4264
|
let S = null;
|
|
4251
4265
|
if (d) {
|
|
4252
|
-
const Y =
|
|
4266
|
+
const Y = N.querySelector(`*[data-hutkey="${d}"]`), he = _e(Y);
|
|
4253
4267
|
p[p.length - 1].top = y.top - he.top, p[p.length - 1].height = y.height - p[p.length - 1].top, d = 0;
|
|
4254
4268
|
}
|
|
4255
4269
|
if (j && j.height + j.top - y.top > p[p.length - 1].height)
|
|
4256
|
-
if (
|
|
4257
|
-
p[p.length - 1].data.pop(),
|
|
4258
|
-
else if (X(
|
|
4259
|
-
|
|
4260
|
-
else if (V(
|
|
4261
|
-
p[p.length - 1].data.pop(),
|
|
4270
|
+
if (C.problemType)
|
|
4271
|
+
p[p.length - 1].data.pop(), B(), q({ ...C });
|
|
4272
|
+
else if (X(N))
|
|
4273
|
+
B(), P++, q();
|
|
4274
|
+
else if (V(N))
|
|
4275
|
+
p[p.length - 1].data.pop(), B(), q({ ...C });
|
|
4262
4276
|
else {
|
|
4263
|
-
S = Pt(
|
|
4264
|
-
const Y =
|
|
4265
|
-
p[p.length - 1].height = _e(S.cut).top - y.top,
|
|
4277
|
+
S = Pt(N, y.top, p[p.length - 1].height, p.length % (l + c) >= l);
|
|
4278
|
+
const Y = N.querySelector(`*[data-content="${C.id}"]`);
|
|
4279
|
+
p[p.length - 1].height = _e(S.cut).top - y.top, B(), Y != null && Y.contains(S.cut) ? (d = Date.now(), S.cut.dataset.hutkey = d, q({ ...C, content: Y.innerHTML })) : (p[p.length - 1].data.pop(), q({ ...C }));
|
|
4266
4280
|
}
|
|
4267
4281
|
else {
|
|
4268
4282
|
let Y = [], he = [], b = !1;
|
|
4269
|
-
if (
|
|
4283
|
+
if (C.children.some(($, T) => {
|
|
4270
4284
|
var Q, de;
|
|
4271
4285
|
const H = dt($.__tag__, t), ce = _e(H);
|
|
4272
4286
|
if (n) {
|
|
4273
|
-
const ae = H.querySelector(`*[data-cutkey="${n}"]`),
|
|
4274
|
-
p[p.length - 1].top = y.top -
|
|
4287
|
+
const ae = H.querySelector(`*[data-cutkey="${n}"]`), f = _e(ae);
|
|
4288
|
+
p[p.length - 1].top = y.top - f.top, p[p.length - 1].height = y.height - p[p.length - 1].top, n = 0;
|
|
4275
4289
|
}
|
|
4276
4290
|
if (ce.height + ce.top - y.top > p[p.length - 1].height) {
|
|
4277
4291
|
if ((Q = H.parentElement) != null && Q.dataset.polymer)
|
|
4278
4292
|
parseInt((de = H.parentElement) == null ? void 0 : de.dataset.polymer) ? (Y = Y.filter((ae) => {
|
|
4279
|
-
var
|
|
4280
|
-
return dt(ae.__tag__, t).dataset.polymer !== ((
|
|
4281
|
-
}), he =
|
|
4293
|
+
var f;
|
|
4294
|
+
return dt(ae.__tag__, t).dataset.polymer !== ((f = H.parentElement) == null ? void 0 : f.dataset.polymer);
|
|
4295
|
+
}), he = C.children.slice(Y.length)) : (p[p.length - 1].data.pop(), Y = [], b = !0, B(), q({ ...C }));
|
|
4282
4296
|
else if (X(H))
|
|
4283
|
-
Y.push($), he =
|
|
4297
|
+
Y.push($), he = T < C.children.length - 1 ? C.children.slice(T + 1) : [];
|
|
4284
4298
|
else if (V(H))
|
|
4285
|
-
he =
|
|
4299
|
+
he = C.children.slice(T);
|
|
4286
4300
|
else {
|
|
4287
4301
|
S = Pt(H, y.top, p[p.length - 1].height, p.length % (l + c) >= l);
|
|
4288
4302
|
const ae = H.querySelector(`*[data-content="${$.id}"]`);
|
|
4289
4303
|
if (H === S.targetEl)
|
|
4290
|
-
Y.push($), he =
|
|
4304
|
+
Y.push($), he = T < C.children.length - 1 ? C.children.slice(T + 1) : [];
|
|
4291
4305
|
else if (ae && ae.contains(S.cut))
|
|
4292
|
-
n = Date.now(), S.cut.dataset.cutkey = n, $.content = ae.innerHTML, Y.push($), he = [{ ...$, content: ae.innerHTML }, ...
|
|
4306
|
+
n = Date.now(), S.cut.dataset.cutkey = n, $.content = ae.innerHTML, Y.push($), he = [{ ...$, content: ae.innerHTML }, ...T < C.children.length - 1 ? C.children.slice(T + 1) : []], p[p.length - 1].height = _e(S.cut).top - y.top;
|
|
4293
4307
|
else {
|
|
4294
4308
|
if (!he.length) {
|
|
4295
|
-
let
|
|
4309
|
+
let f = { ...$ };
|
|
4296
4310
|
switch ($.problemType) {
|
|
4297
4311
|
case Re.slove:
|
|
4298
|
-
const
|
|
4299
|
-
|
|
4312
|
+
const v = H.querySelector(`*[data-area="${$.id}"]`);
|
|
4313
|
+
v != null && v.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = v.innerHTML), H.contains(S.targetEl) && ($.chunk += 1);
|
|
4300
4314
|
break;
|
|
4301
4315
|
case Re.art:
|
|
4302
4316
|
if ($.artEditor) {
|
|
4303
|
-
const
|
|
4304
|
-
|
|
4317
|
+
const k = H.querySelector(`*[data-area="${$.id}"]`);
|
|
4318
|
+
k != null && k.contains(S.cut) && (n = Date.now(), S.cut.dataset.cutkey = n, $.answerArea = k.innerHTML), H.contains(S.targetEl) && ($.chunk += 1);
|
|
4305
4319
|
break;
|
|
4306
4320
|
} else {
|
|
4307
|
-
const
|
|
4308
|
-
if (
|
|
4309
|
-
n = Date.now(), S.cut.dataset.cutkey = n, $.beforeArt =
|
|
4310
|
-
else if (
|
|
4311
|
-
const E = parseInt(
|
|
4321
|
+
const k = H.querySelector(`*[data-bart="${$.id}"]`), M = S.targetEl.dataset.block === Se && S.targetEl.dataset.size ? S.targetEl : null, K = H.querySelector(`*[data-aart="${$.id}"]`);
|
|
4322
|
+
if (k != null && k.contains(S.cut))
|
|
4323
|
+
n = Date.now(), S.cut.dataset.cutkey = n, $.beforeArt = k == null ? void 0 : k.innerHTML, f.beforeGuide = "", f.afterArt = "", f.endAnswerLen = -1;
|
|
4324
|
+
else if (M) {
|
|
4325
|
+
const E = parseInt(M.dataset.size);
|
|
4312
4326
|
if (!$.artBlock)
|
|
4313
4327
|
if ($.beforeGuide && $.beforeGuide.length + ($.startAnswerLen ? 0 : 2) - $.startAnswerLen > E) {
|
|
4314
4328
|
const W = H.querySelector(`*[data-guide="${$.id}"]`), Ce = _e(W);
|
|
4315
4329
|
if (Ce.height + Ce.top - y.top > y.height) {
|
|
4316
|
-
W.innerHTML = $.beforeGuide.split("").map((
|
|
4317
|
-
const $e = _e(
|
|
4318
|
-
|
|
4330
|
+
W.innerHTML = $.beforeGuide.split("").map((g) => `<span>${g}</span>`).join("");
|
|
4331
|
+
const $e = _e(M).top + M.offsetHeight, be = [...Array.from(W.children)].findIndex((g) => _e(g).top > $e);
|
|
4332
|
+
f.beforeGuide = $.beforeGuide.substring(0, be), $.beforeGuide = $.beforeGuide.substring(be);
|
|
4319
4333
|
} else
|
|
4320
4334
|
$.beforeGuide = "";
|
|
4321
4335
|
} else
|
|
4322
4336
|
$.beforeGuide = "";
|
|
4323
|
-
|
|
4337
|
+
f.endAnswerLen = E, $.startAnswerLen = E;
|
|
4324
4338
|
} else
|
|
4325
|
-
K != null && K.contains(S.cut) ? (n = Date.now(), S.cut.dataset.cutkey = n, $.beforeArt = "", $.beforeGuide = "", $.startAnswerLen = 1, $.endAnswerLen = -1, $.afterArt = K.innerHTML) : S.targetEl ===
|
|
4339
|
+
K != null && K.contains(S.cut) ? (n = Date.now(), S.cut.dataset.cutkey = n, $.beforeArt = "", $.beforeGuide = "", $.startAnswerLen = 1, $.endAnswerLen = -1, $.afterArt = K.innerHTML) : S.targetEl === k ? (f.endAnswerLen = -1, f.beforeGuide = "", f.afterArt = "", $.beforeArt = "") : (k == null ? void 0 : k.previousElementSibling) === S.cut && (f.endAnswerLen = -1, f.beforeArt = "", f.beforeGuide = "", f.afterArt = "");
|
|
4326
4340
|
H.contains(S.targetEl) && ($.chunk += 1);
|
|
4327
4341
|
break;
|
|
4328
4342
|
}
|
|
4329
4343
|
}
|
|
4330
|
-
H.contains(S.targetEl) && Y.push(
|
|
4344
|
+
H.contains(S.targetEl) && Y.push(f), n && (p[p.length - 1].height = _e(S.cut).top - y.top);
|
|
4331
4345
|
}
|
|
4332
|
-
he = [$, ...
|
|
4346
|
+
he = [$, ...T < C.children.length - 1 ? C.children.slice(T + 1) : []];
|
|
4333
4347
|
}
|
|
4334
4348
|
}
|
|
4335
4349
|
return !0;
|
|
@@ -4337,7 +4351,7 @@ const Ps = /* @__PURE__ */ me(Es, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
|
|
|
4337
4351
|
Y.push($);
|
|
4338
4352
|
}), b)
|
|
4339
4353
|
return;
|
|
4340
|
-
p[p.length - 1].data[p[p.length - 1].data.length - 1].children = Y, he.length ? (
|
|
4354
|
+
p[p.length - 1].data[p[p.length - 1].data.length - 1].children = Y, he.length ? (B(), q({ ...C, isHidden: !0, children: he })) : (a([...p]), P++, q());
|
|
4341
4355
|
}
|
|
4342
4356
|
});
|
|
4343
4357
|
};
|
|
@@ -4391,30 +4405,30 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4391
4405
|
const P = window.getComputedStyle(p);
|
|
4392
4406
|
(P.display === "none" || P.width === "0px" && P.height === "0px" || P.opacity === "0" || P.visibility === "hidden") && p.remove();
|
|
4393
4407
|
});
|
|
4394
|
-
const
|
|
4408
|
+
const A = (p = d) => {
|
|
4395
4409
|
[...Array.from(p.childNodes)].forEach((P) => {
|
|
4396
|
-
var
|
|
4410
|
+
var B;
|
|
4397
4411
|
if (P.nodeType === Node.ELEMENT_NODE && P.children.length)
|
|
4398
|
-
|
|
4412
|
+
A(P);
|
|
4399
4413
|
else if (P.nodeType === Node.TEXT_NODE) {
|
|
4400
4414
|
const V = document.createElement("span");
|
|
4401
|
-
V.textContent = P.textContent, window.REGULAR.underscore.test(P.textContent || "") && (window.getComputedStyle(P.parentNode).wordBreak !== "break-all" || !(P.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (P.textContent || "").length > 5 && (V.innerHTML = (P.textContent || "").replace(window.REGULAR.underscore, (q) => q.length > 5 ? `<span style="word-break: break-all">${q}</span>` : q)), (
|
|
4415
|
+
V.textContent = P.textContent, window.REGULAR.underscore.test(P.textContent || "") && (window.getComputedStyle(P.parentNode).wordBreak !== "break-all" || !(P.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (P.textContent || "").length > 5 && (V.innerHTML = (P.textContent || "").replace(window.REGULAR.underscore, (q) => q.length > 5 ? `<span style="word-break: break-all">${q}</span>` : q)), (B = P.parentElement) == null || B.replaceChild(V, P);
|
|
4402
4416
|
}
|
|
4403
4417
|
});
|
|
4404
4418
|
};
|
|
4405
|
-
return
|
|
4419
|
+
return A(), d.innerHTML;
|
|
4406
4420
|
};
|
|
4407
|
-
return (n, d) => (r(),
|
|
4421
|
+
return (n, d) => (r(), h("div", Ns, [
|
|
4408
4422
|
o.readonly ? (r(), ee(Ne, {
|
|
4409
4423
|
key: 1,
|
|
4410
4424
|
data: o.value,
|
|
4411
4425
|
class: "raw_view"
|
|
4412
|
-
}, null, 8, ["data"])) : (r(),
|
|
4426
|
+
}, null, 8, ["data"])) : (r(), h("div", {
|
|
4413
4427
|
key: 0,
|
|
4414
4428
|
class: "overflow-auto outline-none whitespace-normal editor_view",
|
|
4415
4429
|
disabled: o.readonly,
|
|
4416
4430
|
contentEditable: !o.readonly,
|
|
4417
|
-
id:
|
|
4431
|
+
id: F(wt),
|
|
4418
4432
|
onFocus: i,
|
|
4419
4433
|
onBlur: a
|
|
4420
4434
|
}, null, 40, Os))
|
|
@@ -4449,8 +4463,8 @@ const Ws = {
|
|
|
4449
4463
|
if (!l || e.getAttribute("disabled") === "true")
|
|
4450
4464
|
return;
|
|
4451
4465
|
n.stopPropagation(), n.preventDefault(), i = { x: n.clientX, y: n.clientY };
|
|
4452
|
-
const d = c ? Math.min(Math.max(i.x - o.x + a.x, 0), s.offsetWidth - e.offsetWidth) : i.x - o.x + a.x,
|
|
4453
|
-
e.style.left = `${d}px`, e.style.top = `${
|
|
4466
|
+
const d = c ? Math.min(Math.max(i.x - o.x + a.x, 0), s.offsetWidth - e.offsetWidth) : i.x - o.x + a.x, A = c ? Math.min(Math.max(i.y - o.y + a.y, 0), s.offsetHeight - e.offsetHeight) : i.y - o.y + a.y;
|
|
4467
|
+
e.style.left = `${d}px`, e.style.top = `${A}px`, t.value && typeof t.value == "function" && t.value({ x: d, y: A });
|
|
4454
4468
|
}, document.addEventListener("mousemove", ut);
|
|
4455
4469
|
},
|
|
4456
4470
|
unmounted: () => {
|
|
@@ -4475,49 +4489,49 @@ const Ws = {
|
|
|
4475
4489
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4476
4490
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4477
4491
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4478
|
-
], a = U({}), i = U(), y = U(0), n = U(0), d = U(),
|
|
4479
|
-
...
|
|
4480
|
-
top:
|
|
4481
|
-
}))),
|
|
4482
|
-
...
|
|
4483
|
-
top:
|
|
4484
|
-
}))),
|
|
4492
|
+
], a = U({}), i = U(), y = U(0), n = U(0), d = U(), A = U(), p = U({}), P = U(!1), B = U(), V = U(), X = U(), q = R(() => o.imgData.map((f) => ({
|
|
4493
|
+
...f,
|
|
4494
|
+
top: f.top - Math.floor(f.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4495
|
+
}))), C = R(() => o.txtData.map((f) => ({
|
|
4496
|
+
...f,
|
|
4497
|
+
top: f.top - Math.floor(f.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4498
|
+
}))), N = R(() => B.value ? B.value.split("-")[0] === "img" ? q.value.find((v) => v.key === B.value) : C.value.find((v) => v.key === B.value) : null), j = R(() => N.value ? { [N.value.key]: { ...i.value } } : {});
|
|
4485
4499
|
Ye(() => {
|
|
4486
4500
|
d.value = document.body.querySelector(".__layout__");
|
|
4487
4501
|
});
|
|
4488
|
-
const S = (
|
|
4489
|
-
i.value = { ...
|
|
4490
|
-
var
|
|
4491
|
-
((
|
|
4502
|
+
const S = (f) => {
|
|
4503
|
+
i.value = { ...N.value, left: Math.max(f.x, 0), top: Math.max(f.y, 0) }, clearTimeout(A.value), A.value = setTimeout(() => {
|
|
4504
|
+
var v;
|
|
4505
|
+
((v = N.value) == null ? void 0 : v.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4492
4506
|
}, 400);
|
|
4493
|
-
}, Y = (
|
|
4494
|
-
P.value =
|
|
4507
|
+
}, Y = (f) => {
|
|
4508
|
+
P.value = f;
|
|
4495
4509
|
}, he = () => {
|
|
4496
|
-
const
|
|
4497
|
-
p.value = { x:
|
|
4498
|
-
}, b = (
|
|
4499
|
-
|
|
4500
|
-
const
|
|
4501
|
-
i.value = { ...
|
|
4502
|
-
}, $ = (
|
|
4503
|
-
|
|
4504
|
-
},
|
|
4505
|
-
var
|
|
4506
|
-
|
|
4507
|
-
}, H = (
|
|
4508
|
-
const
|
|
4510
|
+
const f = N.value, v = f.left + f.width / 2, k = f.top + f.height / 2, M = d.value.getBoundingClientRect() || {};
|
|
4511
|
+
p.value = { x: v + M.left, y: k + M.top }, d.value.addEventListener("mousemove", b), d.value.addEventListener("mouseleave", $), d.value.addEventListener("mouseup", $);
|
|
4512
|
+
}, b = (f) => {
|
|
4513
|
+
f.stopPropagation(), f.preventDefault();
|
|
4514
|
+
const v = f.clientX - p.value.x, k = p.value.y - f.clientY, M = Math.atan2(k, v) / (Math.PI / 180);
|
|
4515
|
+
i.value = { ...N.value, rotate: -parseInt(M.toString()) };
|
|
4516
|
+
}, $ = (f) => {
|
|
4517
|
+
f.stopPropagation(), f.preventDefault(), t("changeAbsImgItem", i.value), d.value.removeEventListener("mousemove", b), d.value.removeEventListener("mouseleave", $), d.value.removeEventListener("mouseup", $);
|
|
4518
|
+
}, T = (f, v) => {
|
|
4519
|
+
var k;
|
|
4520
|
+
f.stopPropagation(), y.value = v, a.value = { x: f.clientX, y: f.clientY, ...N.value }, ((k = N.value) == null ? void 0 : k.key.split("-")[0]) === "img" ? d.value.addEventListener("mousemove", H) : d.value.addEventListener("mousemove", ce), d.value.addEventListener("mouseleave", Q), d.value.addEventListener("mouseup", Q);
|
|
4521
|
+
}, H = (f) => {
|
|
4522
|
+
const v = { x: f.clientX - a.value.x, y: f.clientY - a.value.y }, k = { ...N.value }, M = v.x > v.y ? "width" : "height";
|
|
4509
4523
|
[
|
|
4510
4524
|
// 0
|
|
4511
4525
|
() => {
|
|
4512
4526
|
const E = {
|
|
4513
|
-
width: a.value.width -
|
|
4514
|
-
height: a.value.width * (1 -
|
|
4515
|
-
}[
|
|
4516
|
-
width: a.value.height * (1 -
|
|
4517
|
-
height: a.value.height -
|
|
4518
|
-
}[
|
|
4527
|
+
width: a.value.width - v.x,
|
|
4528
|
+
height: a.value.width * (1 - v.y / a.value.height)
|
|
4529
|
+
}[M], W = {
|
|
4530
|
+
width: a.value.height * (1 - v.x / a.value.width),
|
|
4531
|
+
height: a.value.height - v.y
|
|
4532
|
+
}[M];
|
|
4519
4533
|
i.value = {
|
|
4520
|
-
...
|
|
4534
|
+
...k,
|
|
4521
4535
|
width: E,
|
|
4522
4536
|
height: W,
|
|
4523
4537
|
left: a.value.left - (E - a.value.width),
|
|
@@ -4526,9 +4540,9 @@ const Ws = {
|
|
|
4526
4540
|
},
|
|
4527
4541
|
// 1
|
|
4528
4542
|
() => {
|
|
4529
|
-
const E = a.value.width * (1 -
|
|
4543
|
+
const E = a.value.width * (1 - v.y / a.value.height), W = a.value.height - v.y;
|
|
4530
4544
|
i.value = {
|
|
4531
|
-
...
|
|
4545
|
+
...k,
|
|
4532
4546
|
width: E,
|
|
4533
4547
|
height: W,
|
|
4534
4548
|
left: a.value.left - (E - a.value.width) / 2,
|
|
@@ -4538,24 +4552,24 @@ const Ws = {
|
|
|
4538
4552
|
// 2
|
|
4539
4553
|
() => {
|
|
4540
4554
|
const E = {
|
|
4541
|
-
width: a.value.height * (1 +
|
|
4542
|
-
height: a.value.height -
|
|
4543
|
-
}[
|
|
4555
|
+
width: a.value.height * (1 + v.x / a.value.width),
|
|
4556
|
+
height: a.value.height - v.y
|
|
4557
|
+
}[M];
|
|
4544
4558
|
i.value = {
|
|
4545
|
-
...
|
|
4559
|
+
...k,
|
|
4546
4560
|
width: {
|
|
4547
|
-
width: a.value.width +
|
|
4548
|
-
height: a.value.width * (1 -
|
|
4549
|
-
}[
|
|
4561
|
+
width: a.value.width + v.x,
|
|
4562
|
+
height: a.value.width * (1 - v.y / a.value.height)
|
|
4563
|
+
}[M],
|
|
4550
4564
|
height: E,
|
|
4551
4565
|
top: a.value.top - (E - a.value.height)
|
|
4552
4566
|
};
|
|
4553
4567
|
},
|
|
4554
4568
|
// 3
|
|
4555
4569
|
() => {
|
|
4556
|
-
const E = a.value.width -
|
|
4570
|
+
const E = a.value.width - v.x, W = a.value.height * (1 - v.x / a.value.width);
|
|
4557
4571
|
i.value = {
|
|
4558
|
-
...
|
|
4572
|
+
...k,
|
|
4559
4573
|
width: E,
|
|
4560
4574
|
height: W,
|
|
4561
4575
|
left: a.value.left - (E - a.value.width),
|
|
@@ -4564,9 +4578,9 @@ const Ws = {
|
|
|
4564
4578
|
},
|
|
4565
4579
|
// 4
|
|
4566
4580
|
() => {
|
|
4567
|
-
const E = a.value.width +
|
|
4581
|
+
const E = a.value.width + v.x, W = a.value.height * (1 + v.x / a.value.width);
|
|
4568
4582
|
i.value = {
|
|
4569
|
-
...
|
|
4583
|
+
...k,
|
|
4570
4584
|
width: E,
|
|
4571
4585
|
height: W,
|
|
4572
4586
|
top: a.value.top - (W - a.value.height) / 2
|
|
@@ -4575,14 +4589,14 @@ const Ws = {
|
|
|
4575
4589
|
// 5
|
|
4576
4590
|
() => {
|
|
4577
4591
|
const E = {
|
|
4578
|
-
width: a.value.width -
|
|
4579
|
-
height: a.value.width * (1 +
|
|
4580
|
-
}[
|
|
4581
|
-
width: a.value.height * (1 -
|
|
4582
|
-
height: a.value.height +
|
|
4583
|
-
}[
|
|
4592
|
+
width: a.value.width - v.x,
|
|
4593
|
+
height: a.value.width * (1 + v.y / a.value.height)
|
|
4594
|
+
}[M], W = {
|
|
4595
|
+
width: a.value.height * (1 - v.x / a.value.width),
|
|
4596
|
+
height: a.value.height + v.y
|
|
4597
|
+
}[M];
|
|
4584
4598
|
i.value = {
|
|
4585
|
-
...
|
|
4599
|
+
...k,
|
|
4586
4600
|
width: E,
|
|
4587
4601
|
height: W,
|
|
4588
4602
|
left: a.value.left - (E - a.value.width)
|
|
@@ -4590,9 +4604,9 @@ const Ws = {
|
|
|
4590
4604
|
},
|
|
4591
4605
|
// 6
|
|
4592
4606
|
() => {
|
|
4593
|
-
const E = a.value.width * (1 +
|
|
4607
|
+
const E = a.value.width * (1 + v.y / a.value.height), W = a.value.height + v.y;
|
|
4594
4608
|
i.value = {
|
|
4595
|
-
...
|
|
4609
|
+
...k,
|
|
4596
4610
|
width: E,
|
|
4597
4611
|
height: W,
|
|
4598
4612
|
left: a.value.left - (E - a.value.width) / 2
|
|
@@ -4601,114 +4615,114 @@ const Ws = {
|
|
|
4601
4615
|
// 7
|
|
4602
4616
|
() => {
|
|
4603
4617
|
const E = {
|
|
4604
|
-
width: a.value.width +
|
|
4605
|
-
height: a.value.width * (1 +
|
|
4606
|
-
}[
|
|
4607
|
-
width: a.value.height * (1 +
|
|
4608
|
-
height: a.value.height +
|
|
4609
|
-
}[
|
|
4618
|
+
width: a.value.width + v.x,
|
|
4619
|
+
height: a.value.width * (1 + v.y / a.value.height)
|
|
4620
|
+
}[M], W = {
|
|
4621
|
+
width: a.value.height * (1 + v.x / a.value.width),
|
|
4622
|
+
height: a.value.height + v.y
|
|
4623
|
+
}[M];
|
|
4610
4624
|
i.value = {
|
|
4611
|
-
...
|
|
4625
|
+
...k,
|
|
4612
4626
|
width: E,
|
|
4613
4627
|
height: W
|
|
4614
4628
|
};
|
|
4615
4629
|
}
|
|
4616
4630
|
][y.value]();
|
|
4617
|
-
}, ce = (
|
|
4618
|
-
const
|
|
4631
|
+
}, ce = (f) => {
|
|
4632
|
+
const v = { x: f.clientX - a.value.x, y: f.clientY - a.value.y }, k = { ...N.value }, M = [
|
|
4619
4633
|
{
|
|
4620
|
-
...
|
|
4621
|
-
width: a.value.width -
|
|
4622
|
-
height: a.value.height -
|
|
4623
|
-
left: a.value.left +
|
|
4624
|
-
top: a.value.top +
|
|
4634
|
+
...k,
|
|
4635
|
+
width: a.value.width - v.x,
|
|
4636
|
+
height: a.value.height - v.y,
|
|
4637
|
+
left: a.value.left + v.x,
|
|
4638
|
+
top: a.value.top + v.y
|
|
4625
4639
|
},
|
|
4626
4640
|
{
|
|
4627
|
-
...
|
|
4628
|
-
height: a.value.height -
|
|
4629
|
-
top: a.value.top +
|
|
4641
|
+
...k,
|
|
4642
|
+
height: a.value.height - v.y,
|
|
4643
|
+
top: a.value.top + v.y
|
|
4630
4644
|
},
|
|
4631
4645
|
{
|
|
4632
|
-
...
|
|
4633
|
-
width: a.value.width +
|
|
4634
|
-
height: a.value.height -
|
|
4635
|
-
top: a.value.top +
|
|
4646
|
+
...k,
|
|
4647
|
+
width: a.value.width + v.x,
|
|
4648
|
+
height: a.value.height - v.y,
|
|
4649
|
+
top: a.value.top + v.y
|
|
4636
4650
|
},
|
|
4637
4651
|
{
|
|
4638
|
-
...
|
|
4639
|
-
width: a.value.width -
|
|
4640
|
-
left: a.value.left +
|
|
4652
|
+
...k,
|
|
4653
|
+
width: a.value.width - v.x,
|
|
4654
|
+
left: a.value.left + v.x
|
|
4641
4655
|
},
|
|
4642
4656
|
{
|
|
4643
|
-
...
|
|
4644
|
-
width: a.value.width +
|
|
4657
|
+
...k,
|
|
4658
|
+
width: a.value.width + v.x
|
|
4645
4659
|
},
|
|
4646
4660
|
{
|
|
4647
|
-
...
|
|
4648
|
-
width: a.value.width -
|
|
4649
|
-
height: a.value.height +
|
|
4650
|
-
left: a.value.left +
|
|
4661
|
+
...k,
|
|
4662
|
+
width: a.value.width - v.x,
|
|
4663
|
+
height: a.value.height + v.y,
|
|
4664
|
+
left: a.value.left + v.x
|
|
4651
4665
|
},
|
|
4652
4666
|
{
|
|
4653
|
-
...
|
|
4654
|
-
height: a.value.height +
|
|
4667
|
+
...k,
|
|
4668
|
+
height: a.value.height + v.y
|
|
4655
4669
|
},
|
|
4656
4670
|
{
|
|
4657
|
-
...
|
|
4658
|
-
width: a.value.width +
|
|
4659
|
-
height: a.value.height +
|
|
4671
|
+
...k,
|
|
4672
|
+
width: a.value.width + v.x,
|
|
4673
|
+
height: a.value.height + v.y
|
|
4660
4674
|
}
|
|
4661
4675
|
];
|
|
4662
|
-
i.value =
|
|
4676
|
+
i.value = M[y.value];
|
|
4663
4677
|
}, Q = () => {
|
|
4664
|
-
var
|
|
4665
|
-
d.value.removeEventListener("mousemove", H), d.value.removeEventListener("mousemove", ce), d.value.removeEventListener("mouseleave", Q), d.value.removeEventListener("mouseup", Q), ((
|
|
4666
|
-
}, de = (
|
|
4667
|
-
if (!
|
|
4678
|
+
var f;
|
|
4679
|
+
d.value.removeEventListener("mousemove", H), d.value.removeEventListener("mousemove", ce), d.value.removeEventListener("mouseleave", Q), d.value.removeEventListener("mouseup", Q), ((f = N.value) == null ? void 0 : f.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4680
|
+
}, de = (f) => {
|
|
4681
|
+
if (!f || f === N.value.content) {
|
|
4668
4682
|
n.value++;
|
|
4669
4683
|
return;
|
|
4670
4684
|
}
|
|
4671
|
-
t("changeAbsTxtItem", { ...
|
|
4672
|
-
}, ae = (
|
|
4673
|
-
var
|
|
4674
|
-
const
|
|
4675
|
-
!
|
|
4685
|
+
t("changeAbsTxtItem", { ...N.value, content: f });
|
|
4686
|
+
}, ae = (f, v) => {
|
|
4687
|
+
var M;
|
|
4688
|
+
const k = document.body.querySelector(`.cke_editor_${wt}`);
|
|
4689
|
+
!f && ((M = (v == null ? void 0 : v.target).dataset) != null && M.safe || [...V.value, ...X.value].find((K) => K.contains(v == null ? void 0 : v.target)) || k && window.getComputedStyle(k).display !== "none") || (B.value = f == null ? void 0 : f.key, i.value = f ? { ...f } : null);
|
|
4676
4690
|
};
|
|
4677
|
-
return (
|
|
4678
|
-
(r(!0),
|
|
4679
|
-
var
|
|
4680
|
-
return $t((r(),
|
|
4681
|
-
key:
|
|
4691
|
+
return (f, v) => (r(), h(O, null, [
|
|
4692
|
+
(r(!0), h(O, null, ne(q.value, (k) => {
|
|
4693
|
+
var M, K, E, W, Ce, $e, be;
|
|
4694
|
+
return $t((r(), h("div", {
|
|
4695
|
+
key: k.id,
|
|
4682
4696
|
ref_for: !0,
|
|
4683
4697
|
ref_key: "imgViewList",
|
|
4684
4698
|
ref: V,
|
|
4685
4699
|
"data-safe": "true",
|
|
4686
|
-
class: oe(["absolute", ((
|
|
4687
|
-
style: Z({ left: Math.max(((K = j.value[
|
|
4688
|
-
onMousedown: De((
|
|
4689
|
-
"data-block":
|
|
4700
|
+
class: oe(["absolute", ((M = N.value) == null ? void 0 : M.key) === k.key ? "z-8" : "z-7"]),
|
|
4701
|
+
style: Z({ left: Math.max(((K = j.value[k.key]) == null ? void 0 : K.left) || k.left, 0) + "px", top: Math.max(((E = j.value[k.key]) == null ? void 0 : E.top) || k.top, 0) + "px", width: (((W = j.value[k.key]) == null ? void 0 : W.width) || k.width) + "px", height: (((Ce = j.value[k.key]) == null ? void 0 : Ce.height) || k.height) + "px", transform: `rotate(${(($e = j.value[k.key]) == null ? void 0 : $e.rotate) || k.rotate}deg)` }),
|
|
4702
|
+
onMousedown: De((g) => ae(k), ["stop"]),
|
|
4703
|
+
"data-block": F(Ae)
|
|
4690
4704
|
}, [
|
|
4691
|
-
|
|
4692
|
-
src:
|
|
4705
|
+
w("img", {
|
|
4706
|
+
src: k.url
|
|
4693
4707
|
}, null, 8, Qs),
|
|
4694
|
-
((be =
|
|
4695
|
-
|
|
4708
|
+
((be = N.value) == null ? void 0 : be.key) === k.key ? (r(), h(O, { key: 0 }, [
|
|
4709
|
+
w("span", qs, [
|
|
4696
4710
|
le(ge, {
|
|
4697
4711
|
name: "close",
|
|
4698
4712
|
width: 2,
|
|
4699
4713
|
class: "cursor-pointer",
|
|
4700
|
-
onClick: (
|
|
4714
|
+
onClick: (g) => t("delAbsImgItem", k)
|
|
4701
4715
|
}, null, 8, ["onClick"])
|
|
4702
4716
|
]),
|
|
4703
|
-
|
|
4704
|
-
(r(),
|
|
4705
|
-
key:
|
|
4717
|
+
w("div", Ys, [
|
|
4718
|
+
(r(), h(O, null, ne(8, (g, I) => w("div", {
|
|
4719
|
+
key: g,
|
|
4706
4720
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4707
|
-
style: Z({ ...s[
|
|
4708
|
-
onMousedown: De((ye) =>
|
|
4721
|
+
style: Z({ ...s[I], transform: "translate(-50%, -50%)" }),
|
|
4722
|
+
onMousedown: De((ye) => T(ye, I), ["stop"])
|
|
4709
4723
|
}, null, 44, Ks)), 64))
|
|
4710
4724
|
]),
|
|
4711
|
-
|
|
4725
|
+
w("span", {
|
|
4712
4726
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4713
4727
|
onMousedown: De(he, ["stop"])
|
|
4714
4728
|
}, [
|
|
@@ -4717,57 +4731,57 @@ const Ws = {
|
|
|
4717
4731
|
width: 2
|
|
4718
4732
|
})
|
|
4719
4733
|
], 40, Us)
|
|
4720
|
-
], 64)) :
|
|
4734
|
+
], 64)) : D("", !0)
|
|
4721
4735
|
], 46, Gs)), [
|
|
4722
|
-
[
|
|
4723
|
-
[
|
|
4736
|
+
[F(c), S],
|
|
4737
|
+
[F(l), (g) => ae(null, g)]
|
|
4724
4738
|
]);
|
|
4725
4739
|
}), 128)),
|
|
4726
|
-
(r(!0),
|
|
4727
|
-
var
|
|
4728
|
-
return $t((r(),
|
|
4729
|
-
key:
|
|
4740
|
+
(r(!0), h(O, null, ne(C.value, (k) => {
|
|
4741
|
+
var M, K, E, W, Ce, $e, be;
|
|
4742
|
+
return $t((r(), h("div", {
|
|
4743
|
+
key: k.id,
|
|
4730
4744
|
ref_for: !0,
|
|
4731
4745
|
ref_key: "txtViewList",
|
|
4732
4746
|
ref: X,
|
|
4733
4747
|
disabled: P.value,
|
|
4734
4748
|
"data-safe": "true",
|
|
4735
|
-
class: oe(["absolute", ((
|
|
4736
|
-
style: Z({ left: Math.max(((K = j.value[
|
|
4737
|
-
onMousedown: De((
|
|
4738
|
-
"data-block":
|
|
4749
|
+
class: oe(["absolute", ((M = N.value) == null ? void 0 : M.key) === k.key ? "z-8 bg-white" : "z-7"]),
|
|
4750
|
+
style: Z({ left: Math.max(((K = j.value[k.key]) == null ? void 0 : K.left) || k.left, 0) + "px", top: Math.max(((E = j.value[k.key]) == null ? void 0 : E.top) || k.top, 0) + "px", width: (((W = j.value[k.key]) == null ? void 0 : W.width) || k.width) + "px", height: (((Ce = j.value[k.key]) == null ? void 0 : Ce.height) || k.height) + "px" }),
|
|
4751
|
+
onMousedown: De((g) => ae(k), ["stop"]),
|
|
4752
|
+
"data-block": F(Ae)
|
|
4739
4753
|
}, [
|
|
4740
4754
|
(r(), ee(Hs, {
|
|
4741
4755
|
key: n.value,
|
|
4742
4756
|
class: "border-0 relative z-4",
|
|
4743
|
-
readonly: (($e =
|
|
4744
|
-
value:
|
|
4745
|
-
name:
|
|
4757
|
+
readonly: (($e = N.value) == null ? void 0 : $e.key) !== k.key,
|
|
4758
|
+
value: k.content,
|
|
4759
|
+
name: k.id.toString(),
|
|
4746
4760
|
onChange: de,
|
|
4747
|
-
onFocus:
|
|
4748
|
-
onBlur:
|
|
4761
|
+
onFocus: v[0] || (v[0] = (g) => Y(!0)),
|
|
4762
|
+
onBlur: v[1] || (v[1] = (g) => Y(!1))
|
|
4749
4763
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4750
|
-
((be =
|
|
4751
|
-
|
|
4764
|
+
((be = N.value) == null ? void 0 : be.key) === k.key ? (r(), h(O, { key: 0 }, [
|
|
4765
|
+
w("span", js, [
|
|
4752
4766
|
le(ge, {
|
|
4753
4767
|
name: "close",
|
|
4754
4768
|
width: 2,
|
|
4755
4769
|
class: "cursor-pointer",
|
|
4756
|
-
onClick: (
|
|
4770
|
+
onClick: (g) => t("delAbsTxtItem", k)
|
|
4757
4771
|
}, null, 8, ["onClick"])
|
|
4758
4772
|
]),
|
|
4759
|
-
|
|
4760
|
-
(r(),
|
|
4761
|
-
key:
|
|
4773
|
+
w("div", Xs, [
|
|
4774
|
+
(r(), h(O, null, ne(8, (g, I) => w("div", {
|
|
4775
|
+
key: g,
|
|
4762
4776
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4763
|
-
style: Z({ ...s[
|
|
4764
|
-
onMousedown: (ye) =>
|
|
4777
|
+
style: Z({ ...s[I], transform: "translate(-50%, -50%)" }),
|
|
4778
|
+
onMousedown: (ye) => T(ye, I)
|
|
4765
4779
|
}, null, 44, Js)), 64))
|
|
4766
4780
|
])
|
|
4767
|
-
], 64)) :
|
|
4781
|
+
], 64)) : D("", !0)
|
|
4768
4782
|
], 46, Vs)), [
|
|
4769
|
-
[
|
|
4770
|
-
[
|
|
4783
|
+
[F(c), S],
|
|
4784
|
+
[F(l), (g) => ae(null, g)]
|
|
4771
4785
|
]);
|
|
4772
4786
|
}), 128))
|
|
4773
4787
|
], 64));
|
|
@@ -4796,36 +4810,36 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4796
4810
|
setup(e, { emit: t }) {
|
|
4797
4811
|
const o = e;
|
|
4798
4812
|
Ut("ckeditorOrigin", o.ckeditorOrigin);
|
|
4799
|
-
const l = U([]), c = U([]), s = U(2), a = U(0), i = U(0), y = U(), n = U([]), d = U([]),
|
|
4800
|
-
...
|
|
4813
|
+
const l = U([]), c = U([]), s = U(2), a = U(0), i = U(0), y = U(), n = U([]), d = U([]), A = U([]), p = U([]), P = R(() => o.data.map((g) => ({
|
|
4814
|
+
...g,
|
|
4801
4815
|
__tag__: It(),
|
|
4802
|
-
rawChildren:
|
|
4803
|
-
children:
|
|
4804
|
-
}))),
|
|
4816
|
+
rawChildren: g.children,
|
|
4817
|
+
children: g.children.map((I) => ({ ...I, ...de(I), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: It() }))
|
|
4818
|
+
}))), B = R(() => {
|
|
4805
4819
|
if (!P.value.length)
|
|
4806
4820
|
return;
|
|
4807
|
-
const
|
|
4808
|
-
return j.value && [m.slove].includes(
|
|
4821
|
+
const g = P.value[P.value.length - 1], I = g.rawChildren[g.rawChildren.length - 1];
|
|
4822
|
+
return j.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
|
|
4809
4823
|
}), V = R(() => {
|
|
4810
|
-
var
|
|
4811
|
-
return o.layout.bindFlag && !!((
|
|
4812
|
-
}), X = R(() => o.isFinal ? 0 : 10), q = R(() => o.isFinal ? 10 : 0),
|
|
4813
|
-
width: `${
|
|
4814
|
-
height: `${(
|
|
4824
|
+
var g;
|
|
4825
|
+
return o.layout.bindFlag && !!((g = We.find((I) => I.code === o.layout.paper)) != null && g.isMultCol);
|
|
4826
|
+
}), X = R(() => o.isFinal ? 0 : 10), q = R(() => o.isFinal ? 10 : 0), C = R(() => 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) || s.value || 1), N = R(() => Math.ceil(C.value / 2) * 2), j = R(() => ["sheet", "sheetCard"].includes(o.layout.mode)), S = R(() => j.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), Y = R(() => 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]), he = R(() => x[o.layout.paper].width - Y.value.left - Y.value.right), b = R(() => x[o.layout.paper].height - Y.value.top - Y.value.bottom), $ = R(() => (he.value - (i.value ? i.value + K(0) : 0) + K(0)) / o.layout.column - K(0)), T = R(() => ({
|
|
4827
|
+
width: `${x[o.layout.paper].width}px`,
|
|
4828
|
+
height: `${(x[o.layout.paper].height + X.value) * N.value - X.value}px`
|
|
4815
4829
|
})), H = R(() => ({
|
|
4816
|
-
width: `${
|
|
4817
|
-
height: `${
|
|
4830
|
+
width: `${x[o.layout.paper].width}px`,
|
|
4831
|
+
height: `${x[o.layout.paper].height}px`,
|
|
4818
4832
|
padding: `${Y.value.top}px ${Y.value.right}px ${Y.value.bottom}px ${Y.value.left}px`,
|
|
4819
4833
|
marginBottom: `${X.value}px`
|
|
4820
4834
|
})), ce = R(() => {
|
|
4821
|
-
var
|
|
4822
|
-
const
|
|
4835
|
+
var I;
|
|
4836
|
+
const g = (I = We.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : I.isFullTitle;
|
|
4823
4837
|
return {
|
|
4824
4838
|
left: `${Y.value.left + (i.value ? i.value + K(0) : 0)}px`,
|
|
4825
4839
|
top: `${Y.value.top}px`,
|
|
4826
|
-
width:
|
|
4840
|
+
width: g ? `${he.value}px` : `${$.value}px`
|
|
4827
4841
|
};
|
|
4828
|
-
}), Q = R(() => Bt.filter((
|
|
4842
|
+
}), Q = R(() => Bt.filter((g) => o.info.bindExtentInfo[g.code]).map((g) => o.info.bindExtentInfo[g.key]));
|
|
4829
4843
|
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(""), () => {
|
|
4830
4844
|
setTimeout(() => {
|
|
4831
4845
|
$e();
|
|
@@ -4833,37 +4847,37 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4833
4847
|
}, { immediate: !0 }), Oe(() => V.value, () => {
|
|
4834
4848
|
i.value = V.value ? 100 : 0;
|
|
4835
4849
|
}, { immediate: !0 });
|
|
4836
|
-
const de = (
|
|
4837
|
-
let
|
|
4838
|
-
if ([m.slove].includes(
|
|
4850
|
+
const de = (g) => {
|
|
4851
|
+
let I = { ...g };
|
|
4852
|
+
if ([m.slove].includes(I.problemType) && j.value) {
|
|
4839
4853
|
const ye = document.createElement("div");
|
|
4840
|
-
ye.innerHTML =
|
|
4854
|
+
ye.innerHTML = I.answerArea;
|
|
4841
4855
|
const J = ye.querySelector(Ot.sub);
|
|
4842
4856
|
if (J) {
|
|
4843
4857
|
const ie = document.createElement("div");
|
|
4844
|
-
ie.innerHTML = cs(
|
|
4858
|
+
ie.innerHTML = cs(I.sub, I.style[u.public.scoreShowFlag] === _.bracket_none ? void 0 : [I.score].flat(2).reduce((Te, Me) => Te + Me, 0), I.style[u.public.scoreShowFlag]), J.replaceWith(ie.children[0]), I.answerArea = ye.innerHTML, I.customSub = !0, ye.remove(), ie.remove();
|
|
4845
4859
|
}
|
|
4846
4860
|
}
|
|
4847
|
-
return
|
|
4848
|
-
}, ae = (
|
|
4849
|
-
const
|
|
4850
|
-
return
|
|
4851
|
-
},
|
|
4852
|
-
|
|
4853
|
-
},
|
|
4854
|
-
|
|
4855
|
-
}, K = (
|
|
4861
|
+
return I;
|
|
4862
|
+
}, ae = (g) => g % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, f = (g, I) => Math.floor(I / 2) * (o.layout.column + o.layout.backColumn) + I % 2 * o.layout.column + g, v = (g) => {
|
|
4863
|
+
const I = g % (o.layout.column + o.layout.backColumn);
|
|
4864
|
+
return I >= o.layout.column ? I - o.layout.column : I;
|
|
4865
|
+
}, k = (g, I) => {
|
|
4866
|
+
g ? n.value[I] = g : n.value.splice(I, 1);
|
|
4867
|
+
}, M = (g, I) => {
|
|
4868
|
+
g ? d.value[I] = g : d.value.splice(I, 1);
|
|
4869
|
+
}, K = (g) => At[o.layout.mode][o.layout.paper][ae(g)] || 0, E = (g, I = !1) => (he.value - (i.value ? i.value + K(g) : 0) + K(g)) / ae(g) - K(g) - S.value.left - S.value.right + (I ? S.value.left + S.value.right : 0), W = (g, I) => {
|
|
4856
4870
|
var J, ie;
|
|
4857
|
-
const ye =
|
|
4871
|
+
const ye = g % (o.layout.column + o.layout.backColumn) ? 0 : ((J = A.value[Math.min(I, 1)]) == null ? void 0 : J.offsetHeight) || 0;
|
|
4858
4872
|
return {
|
|
4859
|
-
left: `${Y.value.left + (
|
|
4860
|
-
top: `${ye + Y.value.top + (!
|
|
4861
|
-
width: `${E(
|
|
4862
|
-
height: `${b.value - ye - (!
|
|
4863
|
-
contentHeight: `${(ie = l.value[
|
|
4873
|
+
left: `${Y.value.left + (I % 2 ? 0 : i.value ? i.value + K(g) : 0) + S.value.left + v(g) * (E(g) + K(g) + S.value.left + S.value.right)}px`,
|
|
4874
|
+
top: `${ye + Y.value.top + (!I && !g ? 0 : S.value.top)}px`,
|
|
4875
|
+
width: `${E(g)}px`,
|
|
4876
|
+
height: `${b.value - ye - (!I && !g ? 0 : S.value.top) - S.value.bottom}px`,
|
|
4877
|
+
contentHeight: `${(ie = l.value[g]) == null ? void 0 : ie.height}px`
|
|
4864
4878
|
};
|
|
4865
|
-
}, Ce = (
|
|
4866
|
-
c.value =
|
|
4879
|
+
}, Ce = (g, I = !1) => {
|
|
4880
|
+
c.value = g.map((ye) => ({ ...ye })), I && (l.value = [...g], a.value += 1, nt(() => {
|
|
4867
4881
|
s.value = Math.ceil(l.value.length / o.layout.column), c.value = [], d.value.forEach((ye, J) => {
|
|
4868
4882
|
var ie, Te;
|
|
4869
4883
|
!ye || !ye.col || ((ie = l.value[J]) != null && ie.top ? ye.col.style.marginTop = `${(Te = l.value[J]) == null ? void 0 : Te.top}px` : ye.col.style.marginTop = "");
|
|
@@ -4872,10 +4886,10 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4872
4886
|
config: {
|
|
4873
4887
|
...o.info,
|
|
4874
4888
|
layout: o.layout,
|
|
4875
|
-
pageTotal:
|
|
4889
|
+
pageTotal: C.value,
|
|
4876
4890
|
bindWidth: i.value,
|
|
4877
4891
|
pageMargin: X.value,
|
|
4878
|
-
pageDom: n.value.slice(0,
|
|
4892
|
+
pageDom: n.value.slice(0, C.value),
|
|
4879
4893
|
colDom: d.value.map((J) => J.col),
|
|
4880
4894
|
colViewDom: d.value.map((J) => J.colView)
|
|
4881
4895
|
},
|
|
@@ -4893,105 +4907,105 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
4893
4907
|
getColSize: W,
|
|
4894
4908
|
change: Ce
|
|
4895
4909
|
});
|
|
4896
|
-
}, be = (
|
|
4897
|
-
t("toggleActive",
|
|
4910
|
+
}, be = (g = { type: z.page, value: {} }) => {
|
|
4911
|
+
t("toggleActive", g);
|
|
4898
4912
|
};
|
|
4899
|
-
return (
|
|
4913
|
+
return (g, I) => {
|
|
4900
4914
|
var ye;
|
|
4901
|
-
return r(),
|
|
4902
|
-
|
|
4915
|
+
return r(), h(O, null, [
|
|
4916
|
+
g.readonly ? D("", !0) : (r(), ee(Ps, {
|
|
4903
4917
|
key: 0,
|
|
4904
4918
|
ColList: l.value,
|
|
4905
4919
|
ColDom: d.value.map((J) => J.col),
|
|
4906
|
-
ImgData:
|
|
4907
|
-
TxtData:
|
|
4908
|
-
onDelAbsImgItem:
|
|
4909
|
-
onDelAbsTxtItem:
|
|
4910
|
-
onChangeLayoutStatus:
|
|
4920
|
+
ImgData: g.imgData,
|
|
4921
|
+
TxtData: g.txtData,
|
|
4922
|
+
onDelAbsImgItem: I[0] || (I[0] = (J) => t("delAbsImgItem", J)),
|
|
4923
|
+
onDelAbsTxtItem: I[1] || (I[1] = (J) => t("delAbsTxtItem", J)),
|
|
4924
|
+
onChangeLayoutStatus: I[2] || (I[2] = (J) => t("changeLayoutStatus", J))
|
|
4911
4925
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4912
|
-
|
|
4926
|
+
w("div", {
|
|
4913
4927
|
class: "flex-1 overflow-auto relative z-1",
|
|
4914
4928
|
id: "alit-layout",
|
|
4915
|
-
onClick:
|
|
4929
|
+
onClick: I[14] || (I[14] = (J) => be())
|
|
4916
4930
|
}, [
|
|
4917
|
-
|
|
4931
|
+
w("div", {
|
|
4918
4932
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4919
4933
|
ref_key: "rawDom",
|
|
4920
4934
|
ref: y
|
|
4921
4935
|
}, [
|
|
4922
|
-
c.value.length ? (r(!0),
|
|
4923
|
-
J.isHidden ?
|
|
4936
|
+
c.value.length ? (r(!0), h(O, { key: 0 }, ne((ye = c.value[c.value.length - 1]) == null ? void 0 : ye.data, (J, ie) => (r(), h(O, null, [
|
|
4937
|
+
J.isHidden ? D("", !0) : (r(), ee(Ft, {
|
|
4924
4938
|
key: 0,
|
|
4925
4939
|
item: J,
|
|
4926
4940
|
showColBorder: j.value,
|
|
4927
4941
|
isFirst: !ie && c.value.length === 1,
|
|
4928
|
-
layout:
|
|
4942
|
+
layout: g.layout
|
|
4929
4943
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4930
|
-
j.value ? (r(),
|
|
4944
|
+
j.value ? (r(), h("div", {
|
|
4931
4945
|
key: 1,
|
|
4932
4946
|
class: oe([!J.children.length && J.problemType && "p-1 min-h-[2rem]"])
|
|
4933
4947
|
}, [
|
|
4934
4948
|
(r(), ee(Ue, {
|
|
4935
4949
|
data: J,
|
|
4936
4950
|
key: c.value.length,
|
|
4937
|
-
layout:
|
|
4938
|
-
target:
|
|
4951
|
+
layout: g.layout,
|
|
4952
|
+
target: g.target,
|
|
4939
4953
|
noPortrait: "",
|
|
4940
4954
|
width: E(c.value.length - 1)
|
|
4941
4955
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4942
4956
|
], 2)) : (r(), ee(Ue, {
|
|
4943
4957
|
data: J,
|
|
4944
4958
|
key: c.value.length,
|
|
4945
|
-
layout:
|
|
4946
|
-
target:
|
|
4959
|
+
layout: g.layout,
|
|
4960
|
+
target: g.target,
|
|
4947
4961
|
width: E(c.value.length - 1)
|
|
4948
4962
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4949
|
-
], 64))), 256)) :
|
|
4963
|
+
], 64))), 256)) : D("", !0)
|
|
4950
4964
|
], 512),
|
|
4951
|
-
|
|
4952
|
-
class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__",
|
|
4953
|
-
style: Z(
|
|
4965
|
+
w("div", {
|
|
4966
|
+
class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", g.layout.redFlag && "red_mode", g.readonly && "pointer-events-none"]),
|
|
4967
|
+
style: Z(T.value)
|
|
4954
4968
|
}, [
|
|
4955
4969
|
le(ei, {
|
|
4956
|
-
imgData:
|
|
4957
|
-
txtData:
|
|
4958
|
-
layout:
|
|
4970
|
+
imgData: g.imgData,
|
|
4971
|
+
txtData: g.txtData,
|
|
4972
|
+
layout: g.layout,
|
|
4959
4973
|
pageMargin: q.value,
|
|
4960
|
-
onChangeAbsImgItem:
|
|
4961
|
-
onDelAbsImgItem:
|
|
4962
|
-
onChangeAbsTxtItem:
|
|
4963
|
-
onDelAbsTxtItem:
|
|
4974
|
+
onChangeAbsImgItem: I[3] || (I[3] = (J) => t("changeAbsImgItem", J)),
|
|
4975
|
+
onDelAbsImgItem: I[4] || (I[4] = (J) => t("delAbsImgItem", J)),
|
|
4976
|
+
onChangeAbsTxtItem: I[5] || (I[5] = (J) => t("changeAbsTxtItem", J)),
|
|
4977
|
+
onDelAbsTxtItem: I[6] || (I[6] = (J) => t("delAbsTxtItem", J))
|
|
4964
4978
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4965
|
-
(r(),
|
|
4966
|
-
viewBox: `0 0 ${parseFloat(
|
|
4979
|
+
(r(), h("svg", {
|
|
4980
|
+
viewBox: `0 0 ${parseFloat(T.value.width)} ${parseFloat(T.value.height)}`,
|
|
4967
4981
|
version: "1.1",
|
|
4968
4982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4969
4983
|
key: a.value
|
|
4970
4984
|
}, [
|
|
4971
|
-
(r(),
|
|
4972
|
-
(r(!0),
|
|
4985
|
+
(r(), h("foreignObject", oi, [
|
|
4986
|
+
(r(!0), h(O, null, ne(N.value, (J, ie) => (r(), h("div", {
|
|
4973
4987
|
key: J,
|
|
4974
4988
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4975
4989
|
ref_for: !0,
|
|
4976
|
-
ref: (Te) =>
|
|
4990
|
+
ref: (Te) => k(Te, ie),
|
|
4977
4991
|
style: Z(H.value)
|
|
4978
4992
|
}, [
|
|
4979
|
-
ie <
|
|
4993
|
+
ie < C.value ? (r(), h(O, { key: 0 }, [
|
|
4980
4994
|
le(Io, {
|
|
4981
|
-
layout:
|
|
4995
|
+
layout: g.layout,
|
|
4982
4996
|
currentPage: ie,
|
|
4983
|
-
totalPage:
|
|
4984
|
-
columnContentWidth: E(ie % 2 ?
|
|
4985
|
-
columnMargin: K(ie % 2 ?
|
|
4997
|
+
totalPage: C.value,
|
|
4998
|
+
columnContentWidth: E(ie % 2 ? g.layout.column : 0, !0),
|
|
4999
|
+
columnMargin: K(ie % 2 ? g.layout.column : 0),
|
|
4986
5000
|
bindWidth: i.value,
|
|
4987
5001
|
padding: Y.value
|
|
4988
5002
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4989
|
-
|
|
5003
|
+
g.layout.sloganFlag ? (r(), ee(Po, {
|
|
4990
5004
|
key: 0,
|
|
4991
|
-
info:
|
|
4992
|
-
layout:
|
|
4993
|
-
onChange:
|
|
4994
|
-
}, null, 8, ["info", "layout"])) :
|
|
5005
|
+
info: g.info,
|
|
5006
|
+
layout: g.layout,
|
|
5007
|
+
onChange: I[7] || (I[7] = (Te) => t("changeInfo", Te))
|
|
5008
|
+
}, null, 8, ["info", "layout"])) : D("", !0),
|
|
4995
5009
|
le(sl, {
|
|
4996
5010
|
ref_for: !0,
|
|
4997
5011
|
ref_key: "bindDom",
|
|
@@ -5000,100 +5014,100 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5000
5014
|
width: i.value,
|
|
5001
5015
|
height: b.value,
|
|
5002
5016
|
isBindFlag: V.value,
|
|
5003
|
-
bindSeatType:
|
|
5017
|
+
bindSeatType: g.layout.bindSeatType,
|
|
5004
5018
|
bindInfo: Q.value
|
|
5005
5019
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
5006
|
-
!(ie % 2) || ie === 1 &&
|
|
5020
|
+
!(ie % 2) || ie === 1 && C.value < 3 ? (r(), h("div", {
|
|
5007
5021
|
key: 1,
|
|
5008
5022
|
ref_for: !0,
|
|
5009
5023
|
ref_key: "titleDom",
|
|
5010
|
-
ref:
|
|
5011
|
-
class: oe(["absolute text-black", ie === 1 &&
|
|
5024
|
+
ref: A,
|
|
5025
|
+
class: oe(["absolute text-black", ie === 1 && C.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5012
5026
|
style: Z(ce.value)
|
|
5013
5027
|
}, [
|
|
5014
5028
|
le(zo, {
|
|
5015
|
-
layout:
|
|
5016
|
-
code:
|
|
5029
|
+
layout: g.layout,
|
|
5030
|
+
code: g.info.textCode
|
|
5017
5031
|
}, null, 8, ["layout", "code"]),
|
|
5018
5032
|
le(ra, {
|
|
5019
|
-
info:
|
|
5020
|
-
layout:
|
|
5021
|
-
fontConfig:
|
|
5022
|
-
data:
|
|
5023
|
-
onChange:
|
|
5033
|
+
info: g.info,
|
|
5034
|
+
layout: g.layout,
|
|
5035
|
+
fontConfig: g.fontConfig,
|
|
5036
|
+
data: g.data,
|
|
5037
|
+
onChange: I[8] || (I[8] = (Te) => t("changeInfo", Te))
|
|
5024
5038
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5025
5039
|
le(Ia, {
|
|
5026
|
-
layout:
|
|
5027
|
-
info:
|
|
5040
|
+
layout: g.layout,
|
|
5041
|
+
info: g.info,
|
|
5028
5042
|
isBindFlag: V.value,
|
|
5029
|
-
onChange:
|
|
5043
|
+
onChange: I[9] || (I[9] = (Te) => t("changeExtentInfo", Te))
|
|
5030
5044
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5031
5045
|
le(Wa, {
|
|
5032
|
-
layout:
|
|
5046
|
+
layout: g.layout,
|
|
5033
5047
|
isBindFlag: V.value
|
|
5034
5048
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5035
|
-
ie ?
|
|
5049
|
+
ie ? D("", !0) : (r(), ee(Va, {
|
|
5036
5050
|
key: 0,
|
|
5037
|
-
layout:
|
|
5038
|
-
data:
|
|
5051
|
+
layout: g.layout,
|
|
5052
|
+
data: g.data
|
|
5039
5053
|
}, null, 8, ["layout", "data"])),
|
|
5040
|
-
|
|
5054
|
+
g.layout.writeScoreFlag && !ie ? (r(), ee(xl, {
|
|
5041
5055
|
key: 1,
|
|
5042
|
-
info:
|
|
5043
|
-
layout:
|
|
5044
|
-
}, null, 8, ["info", "layout"])) :
|
|
5045
|
-
], 6)) :
|
|
5046
|
-
(r(!0),
|
|
5056
|
+
info: g.info,
|
|
5057
|
+
layout: g.layout
|
|
5058
|
+
}, null, 8, ["info", "layout"])) : D("", !0)
|
|
5059
|
+
], 6)) : D("", !0),
|
|
5060
|
+
(r(!0), h(O, null, ne(ie % 2 ? g.layout.backColumn : g.layout.column, (Te, Me) => (r(), ee(Xa, {
|
|
5047
5061
|
ref_for: !0,
|
|
5048
|
-
ref: (Ke) =>
|
|
5049
|
-
styleInfo: W(
|
|
5050
|
-
column:
|
|
5051
|
-
currentColumn:
|
|
5062
|
+
ref: (Ke) => M(Ke, f(Me, ie)),
|
|
5063
|
+
styleInfo: W(f(Me, ie), ie),
|
|
5064
|
+
column: g.layout.column,
|
|
5065
|
+
currentColumn: f(Me, ie),
|
|
5052
5066
|
showColBorder: j.value
|
|
5053
5067
|
}, {
|
|
5054
5068
|
default: Mt(() => {
|
|
5055
5069
|
var Ke;
|
|
5056
5070
|
return [
|
|
5057
|
-
(r(!0),
|
|
5071
|
+
(r(!0), h(O, null, ne(((Ke = l.value[f(Me, ie)]) == null ? void 0 : Ke.data) || [], (ve, qt) => {
|
|
5058
5072
|
var kt;
|
|
5059
|
-
return r(),
|
|
5060
|
-
ve.isHidden ?
|
|
5073
|
+
return r(), h(O, null, [
|
|
5074
|
+
ve.isHidden ? D("", !0) : (r(), ee(Ft, {
|
|
5061
5075
|
key: 0,
|
|
5062
5076
|
item: ve,
|
|
5063
5077
|
showColBorder: j.value,
|
|
5064
5078
|
isFirst: !ie && !Me && !qt,
|
|
5065
|
-
layout:
|
|
5066
|
-
isActive: ((kt =
|
|
5067
|
-
onClick: (Ie) => be({ type: ve.problemType ?
|
|
5079
|
+
layout: g.layout,
|
|
5080
|
+
isActive: ((kt = g.target.value) == null ? void 0 : kt.id) === ve.id,
|
|
5081
|
+
onClick: (Ie) => be({ type: ve.problemType ? F(z).headline : F(z).headlineNotarea, value: ve }),
|
|
5068
5082
|
onDbclick: (Ie) => t("dbHeadLineClick", ve)
|
|
5069
5083
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5070
|
-
j.value ? (r(),
|
|
5084
|
+
j.value ? (r(), h("div", {
|
|
5071
5085
|
key: 1,
|
|
5072
|
-
class: oe([!ve.children.length && ve.problemType && "p-1 min-h-[2rem]",
|
|
5073
|
-
onClick: De((Ie) => be({ type: ve.problemType ?
|
|
5086
|
+
class: oe([!ve.children.length && ve.problemType && "p-1 min-h-[2rem]", g.target.type === F(z).headline && g.target.value.id === ve.id && "active_headline"]),
|
|
5087
|
+
onClick: De((Ie) => be({ type: ve.problemType ? F(z).headline : F(z).headlineNotarea, value: ve }), ["stop"]),
|
|
5074
5088
|
onDblclick: (Ie) => t("dbHeadLineClick", ve)
|
|
5075
5089
|
}, [
|
|
5076
5090
|
le(Ue, {
|
|
5077
5091
|
data: ve,
|
|
5078
|
-
layout:
|
|
5079
|
-
target:
|
|
5080
|
-
width: E(
|
|
5081
|
-
onClick:
|
|
5082
|
-
onDbclick:
|
|
5092
|
+
layout: g.layout,
|
|
5093
|
+
target: g.target,
|
|
5094
|
+
width: E(f(Me, ie)),
|
|
5095
|
+
onClick: I[10] || (I[10] = (Ie) => be({ type: Ie.problemType ? F(z).problem : F(z).problemNotarea, value: Ie })),
|
|
5096
|
+
onDbclick: I[11] || (I[11] = (Ie) => t("dbProblemClick", Ie))
|
|
5083
5097
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5084
|
-
ve.children.length && ve.children[ve.children.length - 1].id ===
|
|
5098
|
+
ve.children.length && ve.children[ve.children.length - 1].id === B.value ? (r(), h("div", {
|
|
5085
5099
|
key: 0,
|
|
5086
5100
|
class: "border-t",
|
|
5087
|
-
"data-block":
|
|
5088
|
-
}, null, 8, li)) :
|
|
5101
|
+
"data-block": F(Ae)
|
|
5102
|
+
}, null, 8, li)) : D("", !0)
|
|
5089
5103
|
], 42, ai)) : (r(), ee(Ue, {
|
|
5090
5104
|
key: 2,
|
|
5091
5105
|
data: ve,
|
|
5092
|
-
layout:
|
|
5093
|
-
target:
|
|
5094
|
-
width: E(
|
|
5095
|
-
onClick:
|
|
5096
|
-
onDbclick:
|
|
5106
|
+
layout: g.layout,
|
|
5107
|
+
target: g.target,
|
|
5108
|
+
width: E(f(Me, ie)),
|
|
5109
|
+
onClick: I[12] || (I[12] = (Ie) => be({ type: Ie.problemType ? F(z).problem : F(z).problemNotarea, value: Ie })),
|
|
5110
|
+
onDbclick: I[13] || (I[13] = (Ie) => t("dbProblemClick", Ie))
|
|
5097
5111
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5098
5112
|
], 64);
|
|
5099
5113
|
}), 256))
|
|
@@ -5101,7 +5115,7 @@ const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-410db2aa"]]), ti = ["vi
|
|
|
5101
5115
|
}),
|
|
5102
5116
|
_: 2
|
|
5103
5117
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
5104
|
-
], 64)) :
|
|
5118
|
+
], 64)) : D("", !0)
|
|
5105
5119
|
], 4))), 128))
|
|
5106
5120
|
]))
|
|
5107
5121
|
], 8, ti))
|