alit-layout 1.0.15 → 1.0.17
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 +1298 -1286
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as J, openBlock as s, createElementBlock as d, Fragment as E, renderList as X, createElementVNode as f, normalizeStyle as Y, unref as x, toDisplayString as V, createCommentVNode as D, ref as G, watch as Ae, normalizeClass as ae, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as Re, popScopeId as We, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as It, inject as Rt, withDirectives as ft, provide as Wt } from "vue";
|
|
2
2
|
const Lt = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -27,7 +27,7 @@ const Lt = {
|
|
|
27
27
|
art: "COMPOSITION_QUESTION",
|
|
28
28
|
// 选填题
|
|
29
29
|
mix: "OPTIONAL_QUESTIONS"
|
|
30
|
-
},
|
|
30
|
+
}, ve = {
|
|
31
31
|
// 选做题
|
|
32
32
|
one_choice: "CHOOSE_A_QUESTION",
|
|
33
33
|
// 复合题
|
|
@@ -36,7 +36,7 @@ const Lt = {
|
|
|
36
36
|
another: "ADDITIONAL_QUESTION",
|
|
37
37
|
// 附加选做题
|
|
38
38
|
another_choice: "ADDITIONAL_CHOOSE_QUESTION"
|
|
39
|
-
},
|
|
39
|
+
}, Gt = {
|
|
40
40
|
// 文本
|
|
41
41
|
__text: "TXT",
|
|
42
42
|
// 文案
|
|
@@ -56,7 +56,7 @@ const Lt = {
|
|
|
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
|
+
], g = {
|
|
60
60
|
a3: {
|
|
61
61
|
width: 1588,
|
|
62
62
|
height: 1124
|
|
@@ -169,134 +169,134 @@ const Lt = {
|
|
|
169
169
|
}, rt = {
|
|
170
170
|
article: {
|
|
171
171
|
a3: {
|
|
172
|
-
top:
|
|
173
|
-
right:
|
|
174
|
-
bottom:
|
|
175
|
-
left:
|
|
172
|
+
top: g.a3.width / 420 * 20.5,
|
|
173
|
+
right: g.a3.width / 420 * 20.5,
|
|
174
|
+
bottom: g.a3.width / 420 * 20.5,
|
|
175
|
+
left: g.a3.width / 420 * 20.5
|
|
176
176
|
},
|
|
177
177
|
"a3+": {
|
|
178
|
-
top:
|
|
179
|
-
right:
|
|
180
|
-
bottom:
|
|
181
|
-
left:
|
|
178
|
+
top: g["a3+"].width / 420 * 20.5,
|
|
179
|
+
right: g["a3+"].width / 420 * 20.5,
|
|
180
|
+
bottom: g["a3+"].width / 420 * 20.5,
|
|
181
|
+
left: g["a3+"].width / 420 * 20.5
|
|
182
182
|
},
|
|
183
183
|
a4: {
|
|
184
|
-
top:
|
|
185
|
-
right:
|
|
186
|
-
bottom:
|
|
187
|
-
left:
|
|
184
|
+
top: g.a4.width / 210 * 20.5,
|
|
185
|
+
right: g.a4.width / 210 * 20.5,
|
|
186
|
+
bottom: g.a4.width / 210 * 20.5,
|
|
187
|
+
left: g.a4.width / 210 * 20.5
|
|
188
188
|
},
|
|
189
189
|
a4x: {
|
|
190
|
-
top:
|
|
191
|
-
right:
|
|
192
|
-
bottom:
|
|
193
|
-
left:
|
|
190
|
+
top: g.b4.width / 353 * 20,
|
|
191
|
+
right: g.b4.width / 353 * 20,
|
|
192
|
+
bottom: g.b4.width / 353 * 20,
|
|
193
|
+
left: g.b4.width / 353 * 20
|
|
194
194
|
},
|
|
195
195
|
"8k": {
|
|
196
|
-
top:
|
|
197
|
-
right:
|
|
198
|
-
bottom:
|
|
199
|
-
left:
|
|
196
|
+
top: g["8k"].width / 370 * 17.5,
|
|
197
|
+
right: g["8k"].width / 370 * 17.5,
|
|
198
|
+
bottom: g["8k"].width / 370 * 17.5,
|
|
199
|
+
left: g["8k"].width / 370 * 17.5
|
|
200
200
|
},
|
|
201
201
|
"16k": {
|
|
202
|
-
top:
|
|
203
|
-
right:
|
|
204
|
-
bottom:
|
|
205
|
-
left:
|
|
202
|
+
top: g["16k"].width / 185 * 14.5,
|
|
203
|
+
right: g["16k"].width / 185 * 14.5,
|
|
204
|
+
bottom: g["16k"].width / 185 * 14.5,
|
|
205
|
+
left: g["16k"].width / 185 * 14.5
|
|
206
206
|
},
|
|
207
207
|
b4: {
|
|
208
|
-
top:
|
|
209
|
-
right:
|
|
210
|
-
bottom:
|
|
211
|
-
left:
|
|
208
|
+
top: g.b4.width / 353 * 17.5,
|
|
209
|
+
right: g.b4.width / 353 * 17.5,
|
|
210
|
+
bottom: g.b4.width / 353 * 17.5,
|
|
211
|
+
left: g.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: g.a3.width / 420 * 19,
|
|
217
|
+
right: g.a3.width / 420 * 19,
|
|
218
|
+
bottom: g.a3.width / 420 * 19,
|
|
219
|
+
left: g.a3.width / 420 * 19
|
|
220
220
|
},
|
|
221
221
|
"a3+": {
|
|
222
|
-
top:
|
|
223
|
-
right:
|
|
224
|
-
bottom:
|
|
225
|
-
left:
|
|
222
|
+
top: g["a3+"].width / 420 * 19,
|
|
223
|
+
right: g["a3+"].width / 420 * 19,
|
|
224
|
+
bottom: g["a3+"].width / 420 * 19,
|
|
225
|
+
left: g["a3+"].width / 420 * 19
|
|
226
226
|
},
|
|
227
227
|
a4: {
|
|
228
|
-
top:
|
|
229
|
-
right:
|
|
230
|
-
bottom:
|
|
231
|
-
left:
|
|
228
|
+
top: g.a4.width / 210 * 19,
|
|
229
|
+
right: g.a4.width / 210 * 19,
|
|
230
|
+
bottom: g.a4.width / 210 * 19,
|
|
231
|
+
left: g.a4.width / 210 * 19
|
|
232
232
|
},
|
|
233
233
|
a4x: {
|
|
234
|
-
top:
|
|
235
|
-
right:
|
|
236
|
-
bottom:
|
|
237
|
-
left:
|
|
234
|
+
top: g.b4.width / 353 * 20,
|
|
235
|
+
right: g.b4.width / 353 * 20,
|
|
236
|
+
bottom: g.b4.width / 353 * 20,
|
|
237
|
+
left: g.b4.width / 353 * 20
|
|
238
238
|
},
|
|
239
239
|
"8k": {
|
|
240
|
-
top:
|
|
241
|
-
right:
|
|
242
|
-
bottom:
|
|
243
|
-
left:
|
|
240
|
+
top: g["8k"].width / 370 * 16,
|
|
241
|
+
right: g["8k"].width / 370 * 16,
|
|
242
|
+
bottom: g["8k"].width / 370 * 16,
|
|
243
|
+
left: g["8k"].width / 370 * 16
|
|
244
244
|
},
|
|
245
245
|
"16k": {
|
|
246
|
-
top:
|
|
247
|
-
right:
|
|
248
|
-
bottom:
|
|
249
|
-
left:
|
|
246
|
+
top: g["16k"].width / 185 * 15,
|
|
247
|
+
right: g["16k"].width / 185 * 15,
|
|
248
|
+
bottom: g["16k"].width / 185 * 15,
|
|
249
|
+
left: g["16k"].width / 185 * 15
|
|
250
250
|
},
|
|
251
251
|
b4: {
|
|
252
|
-
top:
|
|
253
|
-
right:
|
|
254
|
-
bottom:
|
|
255
|
-
left:
|
|
252
|
+
top: g.b4.width / 353 * 19,
|
|
253
|
+
right: g.b4.width / 353 * 19,
|
|
254
|
+
bottom: g.b4.width / 353 * 19,
|
|
255
|
+
left: g.b4.width / 353 * 19
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
sheetCard: {
|
|
259
259
|
a3: {
|
|
260
|
-
top:
|
|
261
|
-
right:
|
|
262
|
-
bottom:
|
|
263
|
-
left:
|
|
260
|
+
top: g.a3.width / 420 * 19,
|
|
261
|
+
right: g.a3.width / 420 * 19,
|
|
262
|
+
bottom: g.a3.width / 420 * 19,
|
|
263
|
+
left: g.a3.width / 420 * 19
|
|
264
264
|
},
|
|
265
265
|
"a3+": {
|
|
266
|
-
top:
|
|
267
|
-
right:
|
|
268
|
-
bottom:
|
|
269
|
-
left:
|
|
266
|
+
top: g["a3+"].width / 420 * 19,
|
|
267
|
+
right: g["a3+"].width / 420 * 19,
|
|
268
|
+
bottom: g["a3+"].width / 420 * 19,
|
|
269
|
+
left: g["a3+"].width / 420 * 19
|
|
270
270
|
},
|
|
271
271
|
a4: {
|
|
272
|
-
top:
|
|
273
|
-
right:
|
|
274
|
-
bottom:
|
|
275
|
-
left:
|
|
272
|
+
top: g.a4.width / 210 * 19,
|
|
273
|
+
right: g.a4.width / 210 * 19,
|
|
274
|
+
bottom: g.a4.width / 210 * 19,
|
|
275
|
+
left: g.a4.width / 210 * 19
|
|
276
276
|
},
|
|
277
277
|
a4x: {
|
|
278
|
-
top:
|
|
279
|
-
right:
|
|
280
|
-
bottom:
|
|
281
|
-
left:
|
|
278
|
+
top: g.b4.width / 353 * 20,
|
|
279
|
+
right: g.b4.width / 353 * 20,
|
|
280
|
+
bottom: g.b4.width / 353 * 20,
|
|
281
|
+
left: g.b4.width / 353 * 20
|
|
282
282
|
},
|
|
283
283
|
"8k": {
|
|
284
|
-
top:
|
|
285
|
-
right:
|
|
286
|
-
bottom:
|
|
287
|
-
left:
|
|
284
|
+
top: g["8k"].width / 370 * 16,
|
|
285
|
+
right: g["8k"].width / 370 * 16,
|
|
286
|
+
bottom: g["8k"].width / 370 * 16,
|
|
287
|
+
left: g["8k"].width / 370 * 16
|
|
288
288
|
},
|
|
289
289
|
"16k": {
|
|
290
|
-
top:
|
|
291
|
-
right:
|
|
292
|
-
bottom:
|
|
293
|
-
left:
|
|
290
|
+
top: g["16k"].width / 185 * 15,
|
|
291
|
+
right: g["16k"].width / 185 * 15,
|
|
292
|
+
bottom: g["16k"].width / 185 * 15,
|
|
293
|
+
left: g["16k"].width / 185 * 15
|
|
294
294
|
},
|
|
295
295
|
b4: {
|
|
296
|
-
top:
|
|
297
|
-
right:
|
|
298
|
-
bottom:
|
|
299
|
-
left:
|
|
296
|
+
top: g.b4.width / 353 * 19,
|
|
297
|
+
right: g.b4.width / 353 * 19,
|
|
298
|
+
bottom: g.b4.width / 353 * 19,
|
|
299
|
+
left: g.b4.width / 353 * 19
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}, qt = {
|
|
@@ -327,7 +327,7 @@ const Lt = {
|
|
|
327
327
|
"16k": 0,
|
|
328
328
|
b4: 0
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, $e = {
|
|
331
331
|
top: 21,
|
|
332
332
|
right: 6,
|
|
333
333
|
bottom: 21,
|
|
@@ -530,7 +530,7 @@ const Lt = {
|
|
|
530
530
|
2: 1,
|
|
531
531
|
3: 1
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, q = {
|
|
534
534
|
page: "page",
|
|
535
535
|
headline: "headline",
|
|
536
536
|
text: "text",
|
|
@@ -538,17 +538,17 @@ const Lt = {
|
|
|
538
538
|
cdest: "cdest",
|
|
539
539
|
headlineNotarea: "headlineNotarea",
|
|
540
540
|
problemNotarea: "problemNotarea"
|
|
541
|
-
},
|
|
541
|
+
}, Vt = [
|
|
542
542
|
{ name: "正常", code: "stand" },
|
|
543
543
|
{ name: "横向", code: "column" }
|
|
544
|
-
],
|
|
544
|
+
], xe = {
|
|
545
545
|
none: "none",
|
|
546
546
|
seat: "seat",
|
|
547
547
|
shortId: "short"
|
|
548
|
-
},
|
|
549
|
-
{ name: "无", code:
|
|
550
|
-
{ name: "座位号", code:
|
|
551
|
-
{ name: "短学号", code:
|
|
548
|
+
}, Xt = [
|
|
549
|
+
{ name: "无", code: xe.none },
|
|
550
|
+
{ name: "座位号", code: xe.seat, value: 3 },
|
|
551
|
+
{ name: "短学号", code: xe.shortId, value: 4 }
|
|
552
552
|
], lt = {
|
|
553
553
|
wide: "text",
|
|
554
554
|
local: "topic"
|
|
@@ -580,7 +580,7 @@ const Lt = {
|
|
|
580
580
|
}, oo = [
|
|
581
581
|
{ name: "分段", code: De.step },
|
|
582
582
|
{ name: "自编", code: De.custom }
|
|
583
|
-
],
|
|
583
|
+
], I = {
|
|
584
584
|
choice_1: "choice-1",
|
|
585
585
|
choice_2: "choice-2",
|
|
586
586
|
choice_3: "choice-3",
|
|
@@ -738,11 +738,11 @@ const Lt = {
|
|
|
738
738
|
type: "radio",
|
|
739
739
|
label: "横向分栏",
|
|
740
740
|
key: y.article.col_a,
|
|
741
|
-
target: [
|
|
741
|
+
target: [q.headline],
|
|
742
742
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
743
743
|
option: [
|
|
744
|
-
{ name: "1栏", code:
|
|
745
|
-
{ name: "横向2栏", code:
|
|
744
|
+
{ name: "1栏", code: I.col_1 },
|
|
745
|
+
{ name: "横向2栏", code: I.col_2 }
|
|
746
746
|
]
|
|
747
747
|
}
|
|
748
748
|
],
|
|
@@ -751,11 +751,11 @@ const Lt = {
|
|
|
751
751
|
type: "radio",
|
|
752
752
|
label: "横向分栏",
|
|
753
753
|
key: y.article.col_a,
|
|
754
|
-
target: [
|
|
754
|
+
target: [q.headline],
|
|
755
755
|
show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
|
|
756
756
|
option: [
|
|
757
|
-
{ name: "1栏", code:
|
|
758
|
-
{ name: "横向2栏", code:
|
|
757
|
+
{ name: "1栏", code: I.col_1 },
|
|
758
|
+
{ name: "横向2栏", code: I.col_2 }
|
|
759
759
|
]
|
|
760
760
|
}
|
|
761
761
|
]
|
|
@@ -768,10 +768,10 @@ const Lt = {
|
|
|
768
768
|
label: "插入题号样式控制",
|
|
769
769
|
key: y.article.slove_d,
|
|
770
770
|
code: "slove_insert_sub",
|
|
771
|
-
target: [
|
|
771
|
+
target: [q.problem],
|
|
772
772
|
option: [
|
|
773
|
-
{ name: "无", code:
|
|
774
|
-
{ name: "下划线", code:
|
|
773
|
+
{ name: "无", code: I.slove_5 },
|
|
774
|
+
{ name: "下划线", code: I.slove_6 }
|
|
775
775
|
]
|
|
776
776
|
}
|
|
777
777
|
]
|
|
@@ -784,8 +784,8 @@ const Lt = {
|
|
|
784
784
|
label: "展示样式",
|
|
785
785
|
key: y.article.choice_a,
|
|
786
786
|
option: [
|
|
787
|
-
{ name: "分布式", code:
|
|
788
|
-
{ name: "集合式", code:
|
|
787
|
+
{ name: "分布式", code: I.choice_1 },
|
|
788
|
+
{ name: "集合式", code: I.choice_2 }
|
|
789
789
|
]
|
|
790
790
|
}
|
|
791
791
|
],
|
|
@@ -796,8 +796,8 @@ const Lt = {
|
|
|
796
796
|
label: "展示样式",
|
|
797
797
|
key: y.article.decide_a,
|
|
798
798
|
option: [
|
|
799
|
-
{ name: "对错", code:
|
|
800
|
-
{ name: "TF", code:
|
|
799
|
+
{ name: "对错", code: I.decide_1 },
|
|
800
|
+
{ name: "TF", code: I.decide_2 }
|
|
801
801
|
]
|
|
802
802
|
}
|
|
803
803
|
],
|
|
@@ -808,9 +808,9 @@ const Lt = {
|
|
|
808
808
|
label: "打分框位置",
|
|
809
809
|
key: y.article.fill_a,
|
|
810
810
|
option: [
|
|
811
|
-
{ name: "跟随下划线", code:
|
|
812
|
-
{ name: "跟随主题干", code:
|
|
813
|
-
{ name: "跟随标点符号", code:
|
|
811
|
+
{ name: "跟随下划线", code: I.fill_1 },
|
|
812
|
+
{ name: "跟随主题干", code: I.fill_2 },
|
|
813
|
+
{ name: "跟随标点符号", code: I.fill_3 }
|
|
814
814
|
]
|
|
815
815
|
}
|
|
816
816
|
],
|
|
@@ -823,18 +823,18 @@ const Lt = {
|
|
|
823
823
|
label: "边框控制",
|
|
824
824
|
key: y.article.slove_a,
|
|
825
825
|
option: [
|
|
826
|
-
{ name: "有边框", code:
|
|
827
|
-
{ name: "无边框", code:
|
|
826
|
+
{ name: "有边框", code: I.slove_1 },
|
|
827
|
+
{ name: "无边框", code: I.slove_2 }
|
|
828
828
|
]
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
831
|
type: "radio",
|
|
832
832
|
label: "边框样式",
|
|
833
833
|
key: y.article.slove_c,
|
|
834
|
-
show: (e) => e.style[y.article.slove_a] ===
|
|
834
|
+
show: (e) => e.style[y.article.slove_a] === I.slove_1,
|
|
835
835
|
option: [
|
|
836
|
-
{ name: "标准边框", code:
|
|
837
|
-
{ name: "简易边框", code:
|
|
836
|
+
{ name: "标准边框", code: I.slove_3 },
|
|
837
|
+
{ name: "简易边框", code: I.slove_4 }
|
|
838
838
|
]
|
|
839
839
|
},
|
|
840
840
|
{
|
|
@@ -851,10 +851,10 @@ const Lt = {
|
|
|
851
851
|
label: "插入题号样式控制",
|
|
852
852
|
key: y.article.slove_d,
|
|
853
853
|
code: "slove_insert_sub",
|
|
854
|
-
target: [
|
|
854
|
+
target: [q.problem],
|
|
855
855
|
option: [
|
|
856
|
-
{ name: "无", code:
|
|
857
|
-
{ name: "下划线", code:
|
|
856
|
+
{ name: "无", code: I.slove_5 },
|
|
857
|
+
{ name: "下划线", code: I.slove_6 }
|
|
858
858
|
]
|
|
859
859
|
}
|
|
860
860
|
],
|
|
@@ -874,7 +874,7 @@ const Lt = {
|
|
|
874
874
|
key: y.article.art_c,
|
|
875
875
|
detail: !0,
|
|
876
876
|
unit: "字",
|
|
877
|
-
target: [
|
|
877
|
+
target: [q.problem]
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
type: "slider",
|
|
@@ -883,7 +883,7 @@ const Lt = {
|
|
|
883
883
|
detail: !0,
|
|
884
884
|
min: () => 1,
|
|
885
885
|
max: (e) => Math.floor(e.style[y.article.art_c] / e.style[y.article.art_e]),
|
|
886
|
-
target: [
|
|
886
|
+
target: [q.problem]
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
type: "radio",
|
|
@@ -894,7 +894,7 @@ const Lt = {
|
|
|
894
894
|
{ name: "100", code: 100 }
|
|
895
895
|
],
|
|
896
896
|
detail: !0,
|
|
897
|
-
target: [
|
|
897
|
+
target: [q.problem]
|
|
898
898
|
}
|
|
899
899
|
]
|
|
900
900
|
},
|
|
@@ -906,26 +906,26 @@ const Lt = {
|
|
|
906
906
|
label: "排列样式",
|
|
907
907
|
key: y.sheet.choice_a,
|
|
908
908
|
option: [
|
|
909
|
-
{ name: "横排", code:
|
|
910
|
-
{ name: "竖排", code:
|
|
911
|
-
{ name: "分组", code:
|
|
909
|
+
{ name: "横排", code: I.choice_1 },
|
|
910
|
+
{ name: "竖排", code: I.choice_2 },
|
|
911
|
+
{ name: "分组", code: I.choice_3 }
|
|
912
912
|
]
|
|
913
913
|
},
|
|
914
914
|
{
|
|
915
915
|
type: "radio",
|
|
916
916
|
label: "排列方向",
|
|
917
917
|
key: y.sheet.choice_b,
|
|
918
|
-
show: (e) => e.style[y.sheet.choice_a] !==
|
|
918
|
+
show: (e) => e.style[y.sheet.choice_a] !== I.choice_2,
|
|
919
919
|
option: [
|
|
920
|
-
{ name: "横向", code:
|
|
921
|
-
{ name: "纵向", code:
|
|
920
|
+
{ name: "横向", code: I.landscape },
|
|
921
|
+
{ name: "纵向", code: I.portrait }
|
|
922
922
|
]
|
|
923
923
|
},
|
|
924
924
|
{
|
|
925
925
|
type: "radio",
|
|
926
926
|
label: "每组题数",
|
|
927
927
|
key: y.sheet.choice_c,
|
|
928
|
-
show: (e) => [
|
|
928
|
+
show: (e) => [I.choice_2].includes(e.style[y.sheet.choice_a]),
|
|
929
929
|
option: [
|
|
930
930
|
{ name: "3题", code: 3 },
|
|
931
931
|
{ name: "4题", code: 4 },
|
|
@@ -940,8 +940,8 @@ const Lt = {
|
|
|
940
940
|
label: "展示样式",
|
|
941
941
|
key: y.sheet.decide_a,
|
|
942
942
|
option: [
|
|
943
|
-
{ name: "对错", code:
|
|
944
|
-
{ name: "TF", code:
|
|
943
|
+
{ name: "对错", code: I.decide_1 },
|
|
944
|
+
{ name: "TF", code: I.decide_2 }
|
|
945
945
|
]
|
|
946
946
|
}
|
|
947
947
|
],
|
|
@@ -962,20 +962,20 @@ const Lt = {
|
|
|
962
962
|
key: y.sheet.fill_a,
|
|
963
963
|
show: (e) => e.style[y.sheet.fill_b],
|
|
964
964
|
option: [
|
|
965
|
-
{ name: "跟随下划线", code:
|
|
966
|
-
{ name: "跟随主题干", code:
|
|
967
|
-
{ name: "跟随标点符号", code:
|
|
965
|
+
{ name: "跟随下划线", code: I.fill_1 },
|
|
966
|
+
{ name: "跟随主题干", code: I.fill_2 },
|
|
967
|
+
{ name: "跟随标点符号", code: I.fill_3 }
|
|
968
968
|
]
|
|
969
969
|
},
|
|
970
970
|
{
|
|
971
971
|
type: "radio",
|
|
972
972
|
label: "分题换行",
|
|
973
973
|
key: y.sheet.fill_c,
|
|
974
|
-
target: [
|
|
974
|
+
target: [q.page, q.headline],
|
|
975
975
|
show: (e) => !e.style[y.sheet.fill_b],
|
|
976
976
|
option: [
|
|
977
|
-
{ name: "开启", code:
|
|
978
|
-
{ name: "关闭", code:
|
|
977
|
+
{ name: "开启", code: I.fill_1 },
|
|
978
|
+
{ name: "关闭", code: I.fill_2 }
|
|
979
979
|
]
|
|
980
980
|
},
|
|
981
981
|
{
|
|
@@ -1012,7 +1012,7 @@ const Lt = {
|
|
|
1012
1012
|
type: "slider",
|
|
1013
1013
|
label: "每空高度",
|
|
1014
1014
|
key: y.sheet.fill_e,
|
|
1015
|
-
target: [
|
|
1015
|
+
target: [q.page, q.headline],
|
|
1016
1016
|
show: (e) => !e.style[y.sheet.fill_b],
|
|
1017
1017
|
max: () => 20
|
|
1018
1018
|
}
|
|
@@ -1034,7 +1034,7 @@ const Lt = {
|
|
|
1034
1034
|
label: "每空宽度",
|
|
1035
1035
|
key: y.sheet.fill_d,
|
|
1036
1036
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1037
|
-
target: [
|
|
1037
|
+
target: [q.problem],
|
|
1038
1038
|
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1039
1039
|
option: [
|
|
1040
1040
|
{ name: "1", code: 1 },
|
|
@@ -1058,19 +1058,19 @@ const Lt = {
|
|
|
1058
1058
|
key: y.sheet.decide_a,
|
|
1059
1059
|
show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1060
1060
|
option: [
|
|
1061
|
-
{ name: "对错", code:
|
|
1062
|
-
{ name: "TF", code:
|
|
1061
|
+
{ name: "对错", code: I.decide_1 },
|
|
1062
|
+
{ name: "TF", code: I.decide_2 }
|
|
1063
1063
|
]
|
|
1064
1064
|
},
|
|
1065
1065
|
{
|
|
1066
1066
|
type: "radio",
|
|
1067
1067
|
label: "排列方向",
|
|
1068
1068
|
key: y.sheet.choice_b,
|
|
1069
|
-
target: [
|
|
1069
|
+
target: [q.problem],
|
|
1070
1070
|
show: (e) => !e.style[y.sheet.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1071
1071
|
option: [
|
|
1072
|
-
{ name: "横向", code:
|
|
1073
|
-
{ name: "竖向", code:
|
|
1072
|
+
{ name: "横向", code: I.landscape },
|
|
1073
|
+
{ name: "竖向", code: I.portrait }
|
|
1074
1074
|
]
|
|
1075
1075
|
}
|
|
1076
1076
|
],
|
|
@@ -1092,7 +1092,7 @@ const Lt = {
|
|
|
1092
1092
|
key: y.sheet.art_c,
|
|
1093
1093
|
detail: !0,
|
|
1094
1094
|
unit: "字",
|
|
1095
|
-
target: [
|
|
1095
|
+
target: [q.problem]
|
|
1096
1096
|
},
|
|
1097
1097
|
{
|
|
1098
1098
|
type: "slider",
|
|
@@ -1101,7 +1101,7 @@ const Lt = {
|
|
|
1101
1101
|
detail: !0,
|
|
1102
1102
|
min: () => 1,
|
|
1103
1103
|
max: (e) => Math.floor(e.style[y.sheet.art_c] / e.style[y.sheet.art_e]),
|
|
1104
|
-
target: [
|
|
1104
|
+
target: [q.problem]
|
|
1105
1105
|
},
|
|
1106
1106
|
{
|
|
1107
1107
|
type: "radio",
|
|
@@ -1112,7 +1112,7 @@ const Lt = {
|
|
|
1112
1112
|
{ name: "100", code: 100 }
|
|
1113
1113
|
],
|
|
1114
1114
|
detail: !0,
|
|
1115
|
-
target: [
|
|
1115
|
+
target: [q.problem]
|
|
1116
1116
|
}
|
|
1117
1117
|
],
|
|
1118
1118
|
// 综合题
|
|
@@ -1136,26 +1136,26 @@ const Lt = {
|
|
|
1136
1136
|
label: "排列样式",
|
|
1137
1137
|
key: y.sheetCard.choice_a,
|
|
1138
1138
|
option: [
|
|
1139
|
-
{ name: "横排", code:
|
|
1140
|
-
{ name: "竖排", code:
|
|
1141
|
-
{ name: "分组", code:
|
|
1139
|
+
{ name: "横排", code: I.choice_1 },
|
|
1140
|
+
{ name: "竖排", code: I.choice_2 },
|
|
1141
|
+
{ name: "分组", code: I.choice_3 }
|
|
1142
1142
|
]
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
1145
1145
|
type: "radio",
|
|
1146
1146
|
label: "排列方向",
|
|
1147
1147
|
key: y.sheetCard.choice_b,
|
|
1148
|
-
show: (e) => e.style[y.sheetCard.choice_a] !==
|
|
1148
|
+
show: (e) => e.style[y.sheetCard.choice_a] !== I.choice_2,
|
|
1149
1149
|
option: [
|
|
1150
|
-
{ name: "横向", code:
|
|
1151
|
-
{ name: "纵向", code:
|
|
1150
|
+
{ name: "横向", code: I.landscape },
|
|
1151
|
+
{ name: "纵向", code: I.portrait }
|
|
1152
1152
|
]
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
1155
1155
|
type: "radio",
|
|
1156
1156
|
label: "每组题数",
|
|
1157
1157
|
key: y.sheetCard.choice_c,
|
|
1158
|
-
show: (e) => [
|
|
1158
|
+
show: (e) => [I.choice_2].includes(e.style[y.sheetCard.choice_a]),
|
|
1159
1159
|
option: [
|
|
1160
1160
|
{ name: "3题", code: 3 },
|
|
1161
1161
|
{ name: "4题", code: 4 },
|
|
@@ -1165,9 +1165,9 @@ const Lt = {
|
|
|
1165
1165
|
{
|
|
1166
1166
|
type: "slider",
|
|
1167
1167
|
label: "列数",
|
|
1168
|
-
target: [
|
|
1168
|
+
target: [q.headline],
|
|
1169
1169
|
key: y.sheetCard.choice_d,
|
|
1170
|
-
show: (e) => e.style[y.sheetCard.choice_a] !==
|
|
1170
|
+
show: (e) => e.style[y.sheetCard.choice_a] !== I.choice_2,
|
|
1171
1171
|
min: () => 2,
|
|
1172
1172
|
max: () => 10
|
|
1173
1173
|
}
|
|
@@ -1179,8 +1179,8 @@ const Lt = {
|
|
|
1179
1179
|
label: "展示样式",
|
|
1180
1180
|
key: y.sheetCard.decide_a,
|
|
1181
1181
|
option: [
|
|
1182
|
-
{ name: "对错", code:
|
|
1183
|
-
{ name: "TF", code:
|
|
1182
|
+
{ name: "对错", code: I.decide_1 },
|
|
1183
|
+
{ name: "TF", code: I.decide_2 }
|
|
1184
1184
|
]
|
|
1185
1185
|
}
|
|
1186
1186
|
],
|
|
@@ -1192,20 +1192,20 @@ const Lt = {
|
|
|
1192
1192
|
key: y.sheetCard.fill_a,
|
|
1193
1193
|
show: (e) => e.style[y.sheetCard.fill_b],
|
|
1194
1194
|
option: [
|
|
1195
|
-
{ name: "跟随下划线", code:
|
|
1196
|
-
{ name: "跟随主题干", code:
|
|
1197
|
-
{ name: "跟随标点符号", code:
|
|
1195
|
+
{ name: "跟随下划线", code: I.fill_1 },
|
|
1196
|
+
{ name: "跟随主题干", code: I.fill_2 },
|
|
1197
|
+
{ name: "跟随标点符号", code: I.fill_3 }
|
|
1198
1198
|
]
|
|
1199
1199
|
},
|
|
1200
1200
|
{
|
|
1201
1201
|
type: "radio",
|
|
1202
1202
|
label: "分题换行",
|
|
1203
1203
|
key: y.sheetCard.fill_c,
|
|
1204
|
-
target: [
|
|
1204
|
+
target: [q.page, q.headline],
|
|
1205
1205
|
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1206
1206
|
option: [
|
|
1207
|
-
{ name: "开启", code:
|
|
1208
|
-
{ name: "关闭", code:
|
|
1207
|
+
{ name: "开启", code: I.fill_1 },
|
|
1208
|
+
{ name: "关闭", code: I.fill_2 }
|
|
1209
1209
|
]
|
|
1210
1210
|
},
|
|
1211
1211
|
{
|
|
@@ -1242,7 +1242,7 @@ const Lt = {
|
|
|
1242
1242
|
type: "slider",
|
|
1243
1243
|
label: "每空高度",
|
|
1244
1244
|
key: y.sheetCard.fill_e,
|
|
1245
|
-
target: [
|
|
1245
|
+
target: [q.page, q.headline],
|
|
1246
1246
|
show: (e) => !e.style[y.sheetCard.fill_b],
|
|
1247
1247
|
max: () => 20
|
|
1248
1248
|
}
|
|
@@ -1255,7 +1255,7 @@ const Lt = {
|
|
|
1255
1255
|
label: "每空宽度",
|
|
1256
1256
|
key: y.sheetCard.fill_d,
|
|
1257
1257
|
filter: (e, t) => e.mixType[t].problemType === p.fill,
|
|
1258
|
-
target: [
|
|
1258
|
+
target: [q.problem],
|
|
1259
1259
|
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || []).find((t) => t.problemType === p.fill),
|
|
1260
1260
|
option: [
|
|
1261
1261
|
{ name: "1", code: 1 },
|
|
@@ -1279,19 +1279,19 @@ const Lt = {
|
|
|
1279
1279
|
key: y.sheetCard.decide_a,
|
|
1280
1280
|
show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[y.sheetCard.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
|
|
1281
1281
|
option: [
|
|
1282
|
-
{ name: "对错", code:
|
|
1283
|
-
{ name: "TF", code:
|
|
1282
|
+
{ name: "对错", code: I.decide_1 },
|
|
1283
|
+
{ name: "TF", code: I.decide_2 }
|
|
1284
1284
|
]
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
|
1287
1287
|
type: "radio",
|
|
1288
1288
|
label: "排列方向",
|
|
1289
1289
|
key: y.sheetCard.choice_b,
|
|
1290
|
-
target: [
|
|
1290
|
+
target: [q.problem],
|
|
1291
1291
|
show: (e) => !e.style[y.sheetCard.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
|
|
1292
1292
|
option: [
|
|
1293
|
-
{ name: "横向", code:
|
|
1294
|
-
{ name: "竖向", code:
|
|
1293
|
+
{ name: "横向", code: I.landscape },
|
|
1294
|
+
{ name: "竖向", code: I.portrait }
|
|
1295
1295
|
]
|
|
1296
1296
|
}
|
|
1297
1297
|
],
|
|
@@ -1302,8 +1302,13 @@ const Lt = {
|
|
|
1302
1302
|
label: "格子尺寸",
|
|
1303
1303
|
key: y.article.art_b,
|
|
1304
1304
|
detail: !0,
|
|
1305
|
+
target: [q.problem],
|
|
1305
1306
|
min: () => 27,
|
|
1306
|
-
max: () => 40
|
|
1307
|
+
max: () => 40,
|
|
1308
|
+
formatTip: (e, t) => {
|
|
1309
|
+
const o = document.querySelector(`*[data-viewid="${e.id}"]`);
|
|
1310
|
+
return o ? `单行${Math.floor(o.offsetWidth / t)}格` : t;
|
|
1311
|
+
}
|
|
1307
1312
|
},
|
|
1308
1313
|
{
|
|
1309
1314
|
type: "input",
|
|
@@ -1311,7 +1316,7 @@ const Lt = {
|
|
|
1311
1316
|
key: y.sheetCard.art_c,
|
|
1312
1317
|
detail: !0,
|
|
1313
1318
|
unit: "字",
|
|
1314
|
-
target: [
|
|
1319
|
+
target: [q.problem]
|
|
1315
1320
|
},
|
|
1316
1321
|
{
|
|
1317
1322
|
type: "slider",
|
|
@@ -1320,7 +1325,7 @@ const Lt = {
|
|
|
1320
1325
|
detail: !0,
|
|
1321
1326
|
min: () => 1,
|
|
1322
1327
|
max: (e) => Math.floor(e.style[y.sheetCard.art_c] / e.style[y.sheetCard.art_e]),
|
|
1323
|
-
target: [
|
|
1328
|
+
target: [q.problem]
|
|
1324
1329
|
},
|
|
1325
1330
|
{
|
|
1326
1331
|
type: "radio",
|
|
@@ -1331,7 +1336,7 @@ const Lt = {
|
|
|
1331
1336
|
{ name: "100", code: 100 }
|
|
1332
1337
|
],
|
|
1333
1338
|
detail: !0,
|
|
1334
|
-
target: [
|
|
1339
|
+
target: [q.problem]
|
|
1335
1340
|
}
|
|
1336
1341
|
],
|
|
1337
1342
|
// 综合题
|
|
@@ -1348,7 +1353,7 @@ const Lt = {
|
|
|
1348
1353
|
]
|
|
1349
1354
|
}
|
|
1350
1355
|
}, no = {
|
|
1351
|
-
[
|
|
1356
|
+
[Gt.__cdest]: [
|
|
1352
1357
|
{
|
|
1353
1358
|
type: "radio",
|
|
1354
1359
|
label: "边框显示控制",
|
|
@@ -1381,7 +1386,7 @@ const Lt = {
|
|
|
1381
1386
|
{ name: "小四", code: "16px", alias: "s4" },
|
|
1382
1387
|
{ name: "五号", code: "14px", alias: "5" },
|
|
1383
1388
|
{ name: "小五", code: "12px", alias: "s5" }
|
|
1384
|
-
],
|
|
1389
|
+
], Ie = {
|
|
1385
1390
|
stand: {
|
|
1386
1391
|
name: "标准",
|
|
1387
1392
|
code: "stand",
|
|
@@ -1449,47 +1454,47 @@ const Lt = {
|
|
|
1449
1454
|
sloveScoreHalfErr: "简易打分条含小数分值",
|
|
1450
1455
|
absImgOverErr: "浮层图片超出纸张",
|
|
1451
1456
|
absTxtOverErr: "浮层文本超出纸张"
|
|
1452
|
-
},
|
|
1457
|
+
}, ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1453
1458
|
__proto__: null,
|
|
1454
1459
|
ErrLayoutCode: uo,
|
|
1455
1460
|
MixNodeTag: co,
|
|
1456
1461
|
column: Yt,
|
|
1457
1462
|
columnMargin: Et,
|
|
1458
1463
|
defaultProblemLayout: ao,
|
|
1459
|
-
fillSize:
|
|
1464
|
+
fillSize: Ie,
|
|
1460
1465
|
fontFamily: so,
|
|
1461
1466
|
fontSize: ro,
|
|
1462
1467
|
fontWeight: io,
|
|
1463
1468
|
formatConfig: Kt,
|
|
1464
1469
|
halfScoreType: Ue,
|
|
1465
1470
|
halfScoreTypeOption: to,
|
|
1466
|
-
layoutMode:
|
|
1471
|
+
layoutMode: Vt,
|
|
1467
1472
|
otherLayout: no,
|
|
1468
1473
|
otherLayoutKey: Mt,
|
|
1469
1474
|
paddDiff: qt,
|
|
1470
1475
|
pageMargin: Ut,
|
|
1471
1476
|
pagePadding: rt,
|
|
1472
1477
|
pagePointPosition: He,
|
|
1473
|
-
pageSize:
|
|
1478
|
+
pageSize: g,
|
|
1474
1479
|
pageTitleBlockCol: jt,
|
|
1475
1480
|
paper: ze,
|
|
1476
1481
|
problemLayout: lo,
|
|
1477
1482
|
problemLayoutKey: y,
|
|
1478
|
-
problemLayoutVal:
|
|
1483
|
+
problemLayoutVal: I,
|
|
1479
1484
|
scoreLineSize: je,
|
|
1480
1485
|
scoreLineStyle: Ze,
|
|
1481
1486
|
scoreLineType: De,
|
|
1482
1487
|
scoreLineTypeOption: oo,
|
|
1483
|
-
seatType:
|
|
1484
|
-
seatTypeOption:
|
|
1485
|
-
sheetColumnPad:
|
|
1488
|
+
seatType: xe,
|
|
1489
|
+
seatTypeOption: Xt,
|
|
1490
|
+
sheetColumnPad: $e,
|
|
1486
1491
|
sheetItemColumnPad: Qt,
|
|
1487
1492
|
subIndentOption: eo,
|
|
1488
1493
|
subRange: lt,
|
|
1489
1494
|
subRangeOption: Jt,
|
|
1490
1495
|
subRule: Qe,
|
|
1491
1496
|
subRuleOption: Zt,
|
|
1492
|
-
toolGroup:
|
|
1497
|
+
toolGroup: q
|
|
1493
1498
|
}, Symbol.toStringTag, { value: "Module" })), ct = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
|
|
1494
1499
|
a4: "TYPE_A4",
|
|
1495
1500
|
a4x: "TYPE_A4",
|
|
@@ -1501,49 +1506,49 @@ const Lt = {
|
|
|
1501
1506
|
"8k": "TYPE_8K",
|
|
1502
1507
|
"16k": "TYPE_16K",
|
|
1503
1508
|
"32k": "TYPE_32K"
|
|
1504
|
-
},
|
|
1509
|
+
}, pe = window.btoa(Math.random().toString(32)).substring(0, 10), k = {
|
|
1505
1510
|
// 定位点 主定位点 lt rt lb rb 辅助定位点 t b
|
|
1506
|
-
point: `__${
|
|
1511
|
+
point: `__${pe}point`,
|
|
1507
1512
|
// 页码点
|
|
1508
|
-
page: `__${
|
|
1513
|
+
page: `__${pe}pagetotal`,
|
|
1509
1514
|
// 单个页码点
|
|
1510
|
-
page_item: `__${
|
|
1515
|
+
page_item: `__${pe}pageitem`,
|
|
1511
1516
|
// 缺考标记
|
|
1512
|
-
lack: `__${
|
|
1517
|
+
lack: `__${pe}lack`,
|
|
1513
1518
|
// 试卷二维码
|
|
1514
|
-
art_code: `__${
|
|
1519
|
+
art_code: `__${pe}artcode`,
|
|
1515
1520
|
// 条码区
|
|
1516
|
-
en_code: `__${
|
|
1521
|
+
en_code: `__${pe}encode`,
|
|
1517
1522
|
// 填涂区容器
|
|
1518
|
-
en_num_view: `__${
|
|
1523
|
+
en_num_view: `__${pe}ennumview`,
|
|
1519
1524
|
// 填涂区
|
|
1520
|
-
en_num: `__${
|
|
1525
|
+
en_num: `__${pe}ennum`,
|
|
1521
1526
|
// 填涂区分组
|
|
1522
|
-
en_num_group: `__${
|
|
1527
|
+
en_num_group: `__${pe}ennumg`,
|
|
1523
1528
|
// 填涂区单个
|
|
1524
|
-
en_num_item: `__${
|
|
1529
|
+
en_num_item: `__${pe}ennumi`,
|
|
1525
1530
|
// 选做题
|
|
1526
|
-
choice: `__${
|
|
1531
|
+
choice: `__${pe}choice`,
|
|
1527
1532
|
// 题目 + id
|
|
1528
|
-
item: `__${
|
|
1533
|
+
item: `__${pe}problem`,
|
|
1529
1534
|
// 填涂框 + 序号
|
|
1530
|
-
fill: `__${
|
|
1535
|
+
fill: `__${pe}fill`,
|
|
1531
1536
|
// 填空题下划线
|
|
1532
|
-
fill_line: `__${
|
|
1537
|
+
fill_line: `__${pe}fillline`,
|
|
1533
1538
|
// 打分框
|
|
1534
|
-
score: `__${
|
|
1539
|
+
score: `__${pe}score`,
|
|
1535
1540
|
// 十分位打分框
|
|
1536
|
-
score_tenbit: `__${
|
|
1541
|
+
score_tenbit: `__${pe}tenbit`,
|
|
1537
1542
|
// 个位打分框
|
|
1538
|
-
score_base: `__${
|
|
1543
|
+
score_base: `__${pe}base`,
|
|
1539
1544
|
// 单个打分框
|
|
1540
|
-
score_item: `__${
|
|
1545
|
+
score_item: `__${pe}scorei`,
|
|
1541
1546
|
// 0.5分打分框
|
|
1542
|
-
score_half: `__${
|
|
1547
|
+
score_half: `__${pe}scorehalf`,
|
|
1543
1548
|
// 书写分
|
|
1544
|
-
write_view: `__${
|
|
1549
|
+
write_view: `__${pe}write`,
|
|
1545
1550
|
// 密封线
|
|
1546
|
-
bind_line: `__${
|
|
1551
|
+
bind_line: `__${pe}bindline`
|
|
1547
1552
|
}, mo = {
|
|
1548
1553
|
[p.choice]: "TYPE_SINGLECHOICE",
|
|
1549
1554
|
// 单项选择
|
|
@@ -1564,11 +1569,11 @@ const Lt = {
|
|
|
1564
1569
|
// 作文
|
|
1565
1570
|
[p.synthesis]: "TYPE_MULTI",
|
|
1566
1571
|
// 综合题
|
|
1567
|
-
[
|
|
1572
|
+
[ve.one_choice]: "TYPE_SINGLECHOICE",
|
|
1568
1573
|
// 选做题
|
|
1569
|
-
[
|
|
1574
|
+
[ve.another_choice]: "TYPE_SINGLECHOICE"
|
|
1570
1575
|
// 附加选做题
|
|
1571
|
-
}, yo = ["data-xine"], _o = ["data-xine"], fo = ["data-xine"], go = ["data-xine"], bo = ["data-xine"], vo = /* @__PURE__ */
|
|
1576
|
+
}, yo = ["data-xine"], _o = ["data-xine"], fo = ["data-xine"], go = ["data-xine"], bo = ["data-xine"], vo = /* @__PURE__ */ J({
|
|
1572
1577
|
__name: "point",
|
|
1573
1578
|
props: {
|
|
1574
1579
|
layout: {},
|
|
@@ -1605,65 +1610,65 @@ const Lt = {
|
|
|
1605
1610
|
};
|
|
1606
1611
|
return { left: `${l * c + u}px`, ...m[i] };
|
|
1607
1612
|
}, r = (l) => {
|
|
1608
|
-
const i = (
|
|
1613
|
+
const i = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((O) => O === l);
|
|
1609
1614
|
return { top: `${i * m + t.padding.top - 10}px`, width: "11px", ...u };
|
|
1610
1615
|
};
|
|
1611
1616
|
return (l, i) => {
|
|
1612
1617
|
var c;
|
|
1613
|
-
return s(), d(
|
|
1614
|
-
(s(), d(
|
|
1618
|
+
return s(), d(E, null, [
|
|
1619
|
+
(s(), d(E, null, X(["lt", "rt", "lb", "rb"], (u) => f("span", {
|
|
1615
1620
|
key: u,
|
|
1616
1621
|
class: "absolute w-8 bg-black point_item",
|
|
1617
|
-
style:
|
|
1618
|
-
"data-xine": x(
|
|
1622
|
+
style: Y(o(u)),
|
|
1623
|
+
"data-xine": x(k).point + u
|
|
1619
1624
|
}, null, 12, yo)), 64)),
|
|
1620
|
-
(s(!0), d(
|
|
1621
|
-
(s(), d(
|
|
1625
|
+
(s(!0), d(E, null, X((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(E, { key: u }, [
|
|
1626
|
+
(s(), d(E, null, X(["t", "b"], (m) => f("span", {
|
|
1622
1627
|
key: m,
|
|
1623
1628
|
class: "absolute bg-black w-8 point_item",
|
|
1624
|
-
style:
|
|
1625
|
-
"data-xine": x(
|
|
1629
|
+
style: Y(n(u, m)),
|
|
1630
|
+
"data-xine": x(k).point + m
|
|
1626
1631
|
}, null, 12, _o)), 64))
|
|
1627
1632
|
], 64))), 128)),
|
|
1628
|
-
(s(), d(
|
|
1633
|
+
(s(), d(E, null, X(["l", "r"], (u) => f("span", {
|
|
1629
1634
|
key: u,
|
|
1630
1635
|
class: "absolute bg-black h-8",
|
|
1631
|
-
style:
|
|
1632
|
-
"data-xine": x(
|
|
1636
|
+
style: Y(r(u)),
|
|
1637
|
+
"data-xine": x(k).point + u
|
|
1633
1638
|
}, null, 12, fo)), 64)),
|
|
1634
|
-
|
|
1639
|
+
f("p", {
|
|
1635
1640
|
class: "absolute leading-none text-0",
|
|
1636
|
-
style:
|
|
1637
|
-
"data-xine": x(
|
|
1641
|
+
style: Y(a()),
|
|
1642
|
+
"data-xine": x(k).page
|
|
1638
1643
|
}, [
|
|
1639
|
-
(s(!0), d(
|
|
1644
|
+
(s(!0), d(E, null, X(l.currentPage + 1, (u, m) => (s(), d("span", {
|
|
1640
1645
|
key: u,
|
|
1641
1646
|
class: "inline-block bg-black mx-2 page_item",
|
|
1642
|
-
"data-xine": x(
|
|
1647
|
+
"data-xine": x(k).page_item + m
|
|
1643
1648
|
}, null, 8, bo))), 128))
|
|
1644
1649
|
], 12, go),
|
|
1645
|
-
l.currentPage % 2 ?
|
|
1650
|
+
l.currentPage % 2 ? D("", !0) : (s(), d("span", {
|
|
1646
1651
|
key: 0,
|
|
1647
1652
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1648
|
-
style:
|
|
1649
|
-
}, "提示:本卷" +
|
|
1650
|
-
|
|
1653
|
+
style: Y({ right: `${l.padding.right - 12}px` })
|
|
1654
|
+
}, "提示:本卷" + V((c = x(ze).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
|
|
1655
|
+
f("span", {
|
|
1651
1656
|
class: "absolute text-sm red_sheet",
|
|
1652
|
-
style:
|
|
1653
|
-
},
|
|
1657
|
+
style: Y({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
|
|
1658
|
+
}, V(l.currentPage + 1) + "/" + V(l.totalPage), 5)
|
|
1654
1659
|
], 64);
|
|
1655
1660
|
};
|
|
1656
1661
|
}
|
|
1657
1662
|
});
|
|
1658
|
-
const
|
|
1663
|
+
const de = (e, t) => {
|
|
1659
1664
|
const o = e.__vccOpts || e;
|
|
1660
1665
|
for (const [a, n] of t)
|
|
1661
1666
|
o[a] = n;
|
|
1662
1667
|
return o;
|
|
1663
|
-
}, wo = /* @__PURE__ */
|
|
1668
|
+
}, wo = /* @__PURE__ */ de(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1664
1669
|
key: 0,
|
|
1665
1670
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1666
|
-
}, et = /* @__PURE__ */
|
|
1671
|
+
}, et = /* @__PURE__ */ J({
|
|
1667
1672
|
__name: "index",
|
|
1668
1673
|
props: {
|
|
1669
1674
|
value: { default: "" },
|
|
@@ -1678,7 +1683,7 @@ const ce = (e, t) => {
|
|
|
1678
1683
|
},
|
|
1679
1684
|
emits: ["change", "input", "focus", "blur"],
|
|
1680
1685
|
setup(e, { emit: t }) {
|
|
1681
|
-
const o = e, a =
|
|
1686
|
+
const o = e, a = G(o.value), n = G(!1);
|
|
1682
1687
|
Ae(() => o.value, () => {
|
|
1683
1688
|
a.value = o.value;
|
|
1684
1689
|
});
|
|
@@ -1694,11 +1699,11 @@ const ce = (e, t) => {
|
|
|
1694
1699
|
t("blur", o.type === "number" ? parseFloat(`${a.value}`) : a.value), n.value = !1;
|
|
1695
1700
|
};
|
|
1696
1701
|
return (u, m) => (s(), d("div", {
|
|
1697
|
-
class:
|
|
1702
|
+
class: ae(["flex-1 flex items-center border rounded-lg", u.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
|
|
1698
1703
|
}, [
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
class:
|
|
1704
|
+
f("div", xo, [
|
|
1705
|
+
f("input", {
|
|
1706
|
+
class: ae(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
|
|
1702
1707
|
type: u.type,
|
|
1703
1708
|
placeholder: u.placeholder,
|
|
1704
1709
|
maxlength: u.maxLength,
|
|
@@ -1709,10 +1714,10 @@ const ce = (e, t) => {
|
|
|
1709
1714
|
onBlur: c
|
|
1710
1715
|
}, null, 42, ko)
|
|
1711
1716
|
]),
|
|
1712
|
-
u.unit ? (s(), d("span", Co,
|
|
1717
|
+
u.unit ? (s(), d("span", Co, V(u.unit), 1)) : D("", !0)
|
|
1713
1718
|
], 2));
|
|
1714
1719
|
}
|
|
1715
|
-
}), $o = /* @__PURE__ */
|
|
1720
|
+
}), $o = /* @__PURE__ */ J({
|
|
1716
1721
|
__name: "slogan",
|
|
1717
1722
|
props: {
|
|
1718
1723
|
info: {},
|
|
@@ -1724,7 +1729,7 @@ const ce = (e, t) => {
|
|
|
1724
1729
|
right: `${a.value.right + 97}px`,
|
|
1725
1730
|
bottom: `${a.value.bottom - 25}px`
|
|
1726
1731
|
}));
|
|
1727
|
-
return (r, l) => (s(),
|
|
1732
|
+
return (r, l) => (s(), U(et, {
|
|
1728
1733
|
class: "absolute w-72 text-sm",
|
|
1729
1734
|
value: r.info.slogan,
|
|
1730
1735
|
maxLength: 12,
|
|
@@ -1732,11 +1737,11 @@ const ce = (e, t) => {
|
|
|
1732
1737
|
size: "small",
|
|
1733
1738
|
autoLine: "",
|
|
1734
1739
|
dir: "right",
|
|
1735
|
-
style:
|
|
1740
|
+
style: Y(n.value),
|
|
1736
1741
|
onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
|
|
1737
1742
|
}, null, 8, ["value", "style"]));
|
|
1738
1743
|
}
|
|
1739
|
-
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */
|
|
1744
|
+
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ J({
|
|
1740
1745
|
__name: "index",
|
|
1741
1746
|
props: {
|
|
1742
1747
|
width: { default: 1.5 },
|
|
@@ -1754,15 +1759,15 @@ const ce = (e, t) => {
|
|
|
1754
1759
|
width: n.width + "rem",
|
|
1755
1760
|
height: (n.height || n.width) + "rem"
|
|
1756
1761
|
}, [
|
|
1757
|
-
|
|
1762
|
+
f("use", { "xlink:href": a.value }, null, 8, To)
|
|
1758
1763
|
], 8, So))
|
|
1759
1764
|
]));
|
|
1760
1765
|
}
|
|
1761
1766
|
});
|
|
1762
|
-
const
|
|
1767
|
+
const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
|
|
1763
1768
|
key: 0,
|
|
1764
1769
|
class: "flex items-center"
|
|
1765
|
-
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */
|
|
1770
|
+
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ J({
|
|
1766
1771
|
__name: "secrecy",
|
|
1767
1772
|
props: {
|
|
1768
1773
|
layout: {},
|
|
@@ -1772,17 +1777,17 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1772
1777
|
return (t, o) => (s(), d("div", Lo, [
|
|
1773
1778
|
t.layout.secrecyFlag ? (s(), d("p", Fo, [
|
|
1774
1779
|
Ke("绝密"),
|
|
1775
|
-
|
|
1780
|
+
K(ye, {
|
|
1776
1781
|
name: "fiveArrow",
|
|
1777
1782
|
width: 1.4,
|
|
1778
1783
|
class: "px-0 py-0"
|
|
1779
1784
|
}),
|
|
1780
1785
|
Ke("启用前")
|
|
1781
|
-
])) :
|
|
1782
|
-
|
|
1786
|
+
])) : D("", !0),
|
|
1787
|
+
f("p", Eo, "ID:" + V(t.code), 1)
|
|
1783
1788
|
]));
|
|
1784
1789
|
}
|
|
1785
|
-
}), Po = ["innerHTML"], Oe = /* @__PURE__ */
|
|
1790
|
+
}), Po = ["innerHTML"], Oe = /* @__PURE__ */ J({
|
|
1786
1791
|
__name: "index",
|
|
1787
1792
|
props: {
|
|
1788
1793
|
value: {},
|
|
@@ -1803,19 +1808,19 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1803
1808
|
}), Do = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
|
|
1804
1809
|
key: 0,
|
|
1805
1810
|
class: "flex mx-4 min-w-[70px]"
|
|
1806
|
-
}, zo = /* @__PURE__ */
|
|
1811
|
+
}, zo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
|
|
1807
1812
|
key: 1,
|
|
1808
1813
|
class: "flex items-center w-40 mx-4"
|
|
1809
|
-
}, Ro = /* @__PURE__ */
|
|
1814
|
+
}, Ro = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "时间:", -1), Wo = /* @__PURE__ */ f("span", null, "分钟", -1), Go = {
|
|
1810
1815
|
key: 2,
|
|
1811
1816
|
class: "flex mx-4 min-w-[80px]"
|
|
1812
|
-
}, Yo = /* @__PURE__ */
|
|
1817
|
+
}, Yo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
|
|
1813
1818
|
key: 3,
|
|
1814
1819
|
class: "flex mx-4 min-w-[80px]"
|
|
1815
|
-
}, Qo = /* @__PURE__ */
|
|
1820
|
+
}, Qo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
|
|
1816
1821
|
key: 4,
|
|
1817
1822
|
class: "flex items-center mx-4"
|
|
1818
|
-
}, Ko = /* @__PURE__ */
|
|
1823
|
+
}, Ko = /* @__PURE__ */ f("span", null, "总", -1), jo = { key: 1 }, Vo = { key: 3 }, Xo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ J({
|
|
1819
1824
|
__name: "title",
|
|
1820
1825
|
props: {
|
|
1821
1826
|
info: {},
|
|
@@ -1825,40 +1830,40 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1825
1830
|
},
|
|
1826
1831
|
emits: ["change"],
|
|
1827
1832
|
setup(e, { emit: t }) {
|
|
1828
|
-
const o = e, a = A(() => o.data.filter((l) => ![
|
|
1833
|
+
const o = e, a = A(() => o.data.filter((l) => ![ve.another, ve.another_choice, ve.one_choice].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), n = A(() => o.data.filter((l) => [ve.another].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), r = A(() => o.layout.scoreAddStars === Ze.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
1829
1834
|
return (l, i) => (s(), d("div", Do, [
|
|
1830
|
-
|
|
1835
|
+
f("img", {
|
|
1831
1836
|
src: l.info.qrCode,
|
|
1832
1837
|
alt: "QRCode",
|
|
1833
1838
|
class: "flex-shrink-0 w-28 h-28",
|
|
1834
|
-
"data-xine": x(
|
|
1839
|
+
"data-xine": x(k).art_code
|
|
1835
1840
|
}, null, 8, Ao),
|
|
1836
|
-
|
|
1837
|
-
|
|
1841
|
+
f("div", No, [
|
|
1842
|
+
K(Oe, {
|
|
1838
1843
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1839
1844
|
value: l.info.title,
|
|
1840
|
-
style:
|
|
1845
|
+
style: Y(l.fontConfig.titleStyle),
|
|
1841
1846
|
onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
|
|
1842
1847
|
}, null, 8, ["value", "style"]),
|
|
1843
|
-
l.layout.secTitleFlag ? (s(),
|
|
1848
|
+
l.layout.secTitleFlag ? (s(), U(Oe, {
|
|
1844
1849
|
key: 0,
|
|
1845
1850
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1846
1851
|
value: l.info.secTitle,
|
|
1847
|
-
style:
|
|
1852
|
+
style: Y(l.fontConfig.halfTitleStyle),
|
|
1848
1853
|
onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
|
|
1849
|
-
}, null, 8, ["value", "style"])) :
|
|
1850
|
-
|
|
1854
|
+
}, null, 8, ["value", "style"])) : D("", !0),
|
|
1855
|
+
f("div", Bo, [
|
|
1851
1856
|
l.layout.examExtentFlag ? (s(), d("p", Oo, [
|
|
1852
1857
|
zo,
|
|
1853
|
-
|
|
1858
|
+
K(Oe, {
|
|
1854
1859
|
class: "flex-1",
|
|
1855
1860
|
value: l.info.extent,
|
|
1856
1861
|
onChange: i[2] || (i[2] = (c) => t("change", { extent: c }))
|
|
1857
1862
|
}, null, 8, ["value"])
|
|
1858
|
-
])) :
|
|
1863
|
+
])) : D("", !0),
|
|
1859
1864
|
l.layout.examTimeFlag ? (s(), d("p", Ho, [
|
|
1860
1865
|
Ro,
|
|
1861
|
-
|
|
1866
|
+
K(et, {
|
|
1862
1867
|
value: l.info.time,
|
|
1863
1868
|
class: "text-center",
|
|
1864
1869
|
type: "number",
|
|
@@ -1867,66 +1872,66 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1867
1872
|
placeholder: "",
|
|
1868
1873
|
onChange: i[3] || (i[3] = (c) => t("change", { time: c }))
|
|
1869
1874
|
}, null, 8, ["value"]),
|
|
1870
|
-
|
|
1871
|
-
])) :
|
|
1872
|
-
l.layout.authorFlag ? (s(), d("p",
|
|
1875
|
+
Wo
|
|
1876
|
+
])) : D("", !0),
|
|
1877
|
+
l.layout.authorFlag ? (s(), d("p", Go, [
|
|
1873
1878
|
Yo,
|
|
1874
|
-
|
|
1879
|
+
K(Oe, {
|
|
1875
1880
|
class: "flex-1",
|
|
1876
1881
|
value: l.info.author,
|
|
1877
1882
|
onChange: i[4] || (i[4] = (c) => t("change", { author: c }))
|
|
1878
1883
|
}, null, 8, ["value"])
|
|
1879
|
-
])) :
|
|
1884
|
+
])) : D("", !0),
|
|
1880
1885
|
l.layout.reviewerFlag ? (s(), d("p", qo, [
|
|
1881
1886
|
Qo,
|
|
1882
|
-
|
|
1887
|
+
K(Oe, {
|
|
1883
1888
|
class: "flex-1",
|
|
1884
1889
|
value: l.info.reviewer,
|
|
1885
1890
|
onChange: i[5] || (i[5] = (c) => t("change", { reviewer: c }))
|
|
1886
1891
|
}, null, 8, ["value"])
|
|
1887
|
-
])) :
|
|
1892
|
+
])) : D("", !0),
|
|
1888
1893
|
l.layout.totalScoreFlag ? (s(), d("p", Uo, [
|
|
1889
1894
|
Ko,
|
|
1890
|
-
r.value ? (s(),
|
|
1895
|
+
r.value ? (s(), U(ye, {
|
|
1891
1896
|
key: 0,
|
|
1892
1897
|
name: r.value,
|
|
1893
1898
|
class: "p-0 -translate-y-[1px]"
|
|
1894
1899
|
}, null, 8, ["name"])) : (s(), d("span", jo, "分")),
|
|
1895
|
-
|
|
1896
|
-
r.value ? (s(),
|
|
1900
|
+
f("span", null, ":" + V(a.value + (l.layout.writeScoreFlag ? l.info.writeScore : 0)), 1),
|
|
1901
|
+
r.value ? (s(), U(ye, {
|
|
1897
1902
|
key: 2,
|
|
1898
1903
|
name: r.value,
|
|
1899
1904
|
class: "p-0 -translate-y-[1px]"
|
|
1900
|
-
}, null, 8, ["name"])) : (s(), d("span",
|
|
1901
|
-
l.layout.writeScoreFlag ? (s(), d(
|
|
1902
|
-
|
|
1903
|
-
r.value ? (s(),
|
|
1905
|
+
}, null, 8, ["name"])) : (s(), d("span", Vo, "分")),
|
|
1906
|
+
l.layout.writeScoreFlag ? (s(), d(E, { key: 4 }, [
|
|
1907
|
+
f("span", null, "(试题" + V(a.value), 1),
|
|
1908
|
+
r.value ? (s(), U(ye, {
|
|
1904
1909
|
key: 0,
|
|
1905
1910
|
name: r.value,
|
|
1906
1911
|
class: "p-0 -translate-y-[1px]"
|
|
1907
|
-
}, null, 8, ["name"])) : (s(), d("span",
|
|
1908
|
-
|
|
1909
|
-
r.value ? (s(),
|
|
1912
|
+
}, null, 8, ["name"])) : (s(), d("span", Xo, "分")),
|
|
1913
|
+
f("span", null, "+卷面" + V(l.info.writeScore || 0), 1),
|
|
1914
|
+
r.value ? (s(), U(ye, {
|
|
1910
1915
|
key: 2,
|
|
1911
1916
|
name: r.value,
|
|
1912
1917
|
class: "p-0 -translate-y-[1px]"
|
|
1913
1918
|
}, null, 8, ["name"])) : (s(), d("span", Jo, "分")),
|
|
1914
1919
|
Zo
|
|
1915
|
-
], 64)) :
|
|
1916
|
-
n.value ? (s(), d(
|
|
1917
|
-
|
|
1918
|
-
r.value ? (s(),
|
|
1920
|
+
], 64)) : D("", !0),
|
|
1921
|
+
n.value ? (s(), d(E, { key: 5 }, [
|
|
1922
|
+
f("span", null, ";附加题:" + V(n.value), 1),
|
|
1923
|
+
r.value ? (s(), U(ye, {
|
|
1919
1924
|
key: 0,
|
|
1920
1925
|
name: r.value,
|
|
1921
1926
|
class: "p-0 -translate-y-[1px]"
|
|
1922
1927
|
}, null, 8, ["name"])) : (s(), d("span", ea, "分"))
|
|
1923
|
-
], 64)) :
|
|
1924
|
-
])) :
|
|
1928
|
+
], 64)) : D("", !0)
|
|
1929
|
+
])) : D("", !0)
|
|
1925
1930
|
])
|
|
1926
1931
|
])
|
|
1927
1932
|
]));
|
|
1928
1933
|
}
|
|
1929
|
-
}), oa = { class: "flex-1 flex flex-col ml-2" }, gt = /* @__PURE__ */
|
|
1934
|
+
}), oa = { class: "flex-1 flex flex-col ml-2" }, gt = /* @__PURE__ */ J({
|
|
1930
1935
|
__name: "examInfoNone",
|
|
1931
1936
|
props: {
|
|
1932
1937
|
extent: {}
|
|
@@ -1935,11 +1940,11 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1935
1940
|
setup(e, { emit: t }) {
|
|
1936
1941
|
const o = ["examNumField", "examRoomField", "seatField"];
|
|
1937
1942
|
return (a, n) => (s(), d("ul", oa, [
|
|
1938
|
-
(s(), d(
|
|
1943
|
+
(s(), d(E, null, X(o, (r) => f("li", {
|
|
1939
1944
|
key: r,
|
|
1940
1945
|
class: "flex flex-1"
|
|
1941
1946
|
}, [
|
|
1942
|
-
|
|
1947
|
+
K(et, {
|
|
1943
1948
|
value: a.extent[r],
|
|
1944
1949
|
class: "px-0",
|
|
1945
1950
|
placeholder: "",
|
|
@@ -1949,73 +1954,73 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1949
1954
|
])), 64))
|
|
1950
1955
|
]));
|
|
1951
1956
|
}
|
|
1952
|
-
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */
|
|
1957
|
+
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */ J({
|
|
1953
1958
|
__name: "examInfoSeat",
|
|
1954
1959
|
setup(e) {
|
|
1955
1960
|
return (t, o) => (s(), d("div", {
|
|
1956
1961
|
class: "flex-shrink-0 border ml-4 flex flex-col",
|
|
1957
|
-
"data-xine": x(
|
|
1962
|
+
"data-xine": x(k).en_num_view
|
|
1958
1963
|
}, [
|
|
1959
|
-
|
|
1960
|
-
|
|
1964
|
+
f("p", la, [
|
|
1965
|
+
K(ye, {
|
|
1961
1966
|
class: "pt-1",
|
|
1962
1967
|
name: "fiveArrow"
|
|
1963
1968
|
}),
|
|
1964
1969
|
Ke("座位号")
|
|
1965
1970
|
]),
|
|
1966
|
-
|
|
1971
|
+
f("div", {
|
|
1967
1972
|
class: "flex-1 flex flex-col",
|
|
1968
|
-
"data-xine": x(
|
|
1973
|
+
"data-xine": x(k).en_num
|
|
1969
1974
|
}, [
|
|
1970
|
-
(s(), d(
|
|
1975
|
+
(s(), d(E, null, X(3, (a, n) => f("p", {
|
|
1971
1976
|
key: a,
|
|
1972
1977
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
1973
|
-
"data-xine": x(
|
|
1978
|
+
"data-xine": x(k).en_num_group
|
|
1974
1979
|
}, [
|
|
1975
|
-
(s(), d(
|
|
1980
|
+
(s(), d(E, null, X(10, (r) => f("span", {
|
|
1976
1981
|
key: r,
|
|
1977
1982
|
class: "flex items-center justify-between flex-nowrap item",
|
|
1978
|
-
"data-xine": x(
|
|
1979
|
-
},
|
|
1983
|
+
"data-xine": x(k).en_num_item
|
|
1984
|
+
}, V(r - 1), 9, ia)), 64))
|
|
1980
1985
|
], 8, sa)), 64))
|
|
1981
1986
|
], 8, na)
|
|
1982
1987
|
], 8, aa));
|
|
1983
1988
|
}
|
|
1984
1989
|
});
|
|
1985
|
-
const bt = /* @__PURE__ */
|
|
1990
|
+
const bt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ J({
|
|
1986
1991
|
__name: "examInfoShort",
|
|
1987
1992
|
setup(e) {
|
|
1988
1993
|
return (t, o) => (s(), d("div", {
|
|
1989
1994
|
class: "flex-shrink-0 border ml-4 flex",
|
|
1990
|
-
"data-xine": x(
|
|
1995
|
+
"data-xine": x(k).en_num_view
|
|
1991
1996
|
}, [
|
|
1992
|
-
|
|
1993
|
-
|
|
1997
|
+
f("p", da, [
|
|
1998
|
+
K(ye, {
|
|
1994
1999
|
class: "px-1 pt-1",
|
|
1995
2000
|
name: "fiveArrow"
|
|
1996
2001
|
}),
|
|
1997
2002
|
Ke("短学号")
|
|
1998
2003
|
]),
|
|
1999
|
-
|
|
2004
|
+
f("div", {
|
|
2000
2005
|
class: "flex-1 flex flex-col",
|
|
2001
|
-
"data-xine": x(
|
|
2006
|
+
"data-xine": x(k).en_num
|
|
2002
2007
|
}, [
|
|
2003
|
-
(s(), d(
|
|
2008
|
+
(s(), d(E, null, X(4, (a, n) => f("p", {
|
|
2004
2009
|
key: a,
|
|
2005
|
-
class:
|
|
2006
|
-
"data-xine": x(
|
|
2010
|
+
class: ae(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
|
|
2011
|
+
"data-xine": x(k).en_num_group
|
|
2007
2012
|
}, [
|
|
2008
|
-
(s(), d(
|
|
2013
|
+
(s(), d(E, null, X(10, (r) => f("span", {
|
|
2009
2014
|
key: r,
|
|
2010
2015
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2011
|
-
"data-xine": x(
|
|
2012
|
-
},
|
|
2016
|
+
"data-xine": x(k).en_num_item
|
|
2017
|
+
}, V(r - 1), 9, pa)), 64))
|
|
2013
2018
|
], 10, ha)), 64))
|
|
2014
2019
|
], 8, ua)
|
|
2015
2020
|
], 8, ca));
|
|
2016
2021
|
}
|
|
2017
2022
|
});
|
|
2018
|
-
const vt = /* @__PURE__ */
|
|
2023
|
+
const vt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ J({
|
|
2019
2024
|
__name: "examInfoBase",
|
|
2020
2025
|
props: {
|
|
2021
2026
|
extent: {}
|
|
@@ -2024,11 +2029,11 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2024
2029
|
setup(e, { emit: t }) {
|
|
2025
2030
|
const o = ["nameField", "classField", "scoreField"];
|
|
2026
2031
|
return (a, n) => (s(), d("ul", ya, [
|
|
2027
|
-
(s(), d(
|
|
2032
|
+
(s(), d(E, null, X(o, (r) => f("li", {
|
|
2028
2033
|
key: r,
|
|
2029
2034
|
class: "flex flex-1"
|
|
2030
2035
|
}, [
|
|
2031
|
-
|
|
2036
|
+
K(et, {
|
|
2032
2037
|
value: a.extent[r],
|
|
2033
2038
|
class: "px-0",
|
|
2034
2039
|
placeholder: "",
|
|
@@ -2038,12 +2043,12 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2038
2043
|
])), 64))
|
|
2039
2044
|
]));
|
|
2040
2045
|
}
|
|
2041
|
-
}), fa = (e) => (Re("data-v-44e44996"), e = e(),
|
|
2046
|
+
}), fa = (e) => (Re("data-v-44e44996"), e = e(), We(), e), ga = {
|
|
2042
2047
|
key: 0,
|
|
2043
2048
|
class: "flex"
|
|
2044
|
-
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */
|
|
2049
|
+
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ f("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
|
|
2045
2050
|
va
|
|
2046
|
-
], xa = /* @__PURE__ */
|
|
2051
|
+
], xa = /* @__PURE__ */ J({
|
|
2047
2052
|
__name: "examInfo",
|
|
2048
2053
|
props: {
|
|
2049
2054
|
layout: {},
|
|
@@ -2052,43 +2057,43 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2052
2057
|
},
|
|
2053
2058
|
emits: ["change"],
|
|
2054
2059
|
setup(e, { emit: t }) {
|
|
2055
|
-
const o = e, a = A(() => o.layout.column >= 3 && o.layout.seatType ===
|
|
2056
|
-
return (n, r) => n.isBindFlag ?
|
|
2057
|
-
a.value ? (s(), d(
|
|
2058
|
-
n.layout.seatType === x(
|
|
2060
|
+
const o = e, a = A(() => o.layout.column >= 3 && o.layout.seatType === xe.none);
|
|
2061
|
+
return (n, r) => n.isBindFlag ? D("", !0) : (s(), d("div", ga, [
|
|
2062
|
+
a.value ? (s(), d(E, { key: 0 }, [
|
|
2063
|
+
n.layout.seatType === x(xe).none ? (s(), U(gt, {
|
|
2059
2064
|
key: 0,
|
|
2060
2065
|
extent: n.info.extentInfo,
|
|
2061
2066
|
onChange: r[0] || (r[0] = (l) => t("change", l))
|
|
2062
|
-
}, null, 8, ["extent"])) : n.layout.seatType === x(
|
|
2063
|
-
], 64)) :
|
|
2064
|
-
|
|
2067
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(bt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(vt, { key: 2 })) : D("", !0)
|
|
2068
|
+
], 64)) : D("", !0),
|
|
2069
|
+
K(_a, {
|
|
2065
2070
|
extent: n.info.extentInfo,
|
|
2066
2071
|
onChange: r[1] || (r[1] = (l) => t("change", l))
|
|
2067
2072
|
}, null, 8, ["extent"]),
|
|
2068
|
-
a.value ?
|
|
2069
|
-
n.layout.seatType === x(
|
|
2073
|
+
a.value ? D("", !0) : (s(), d(E, { key: 1 }, [
|
|
2074
|
+
n.layout.seatType === x(xe).none ? (s(), U(gt, {
|
|
2070
2075
|
key: 0,
|
|
2071
2076
|
extent: n.info.extentInfo,
|
|
2072
2077
|
onChange: r[2] || (r[2] = (l) => t("change", l))
|
|
2073
|
-
}, null, 8, ["extent"])) : n.layout.seatType === x(
|
|
2078
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(bt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(vt, { key: 2 })) : D("", !0)
|
|
2074
2079
|
], 64)),
|
|
2075
|
-
|
|
2080
|
+
f("div", {
|
|
2076
2081
|
class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
|
|
2077
|
-
"data-xine": x(
|
|
2082
|
+
"data-xine": x(k).en_code
|
|
2078
2083
|
}, wa, 8, ba)
|
|
2079
2084
|
]));
|
|
2080
2085
|
}
|
|
2081
2086
|
});
|
|
2082
|
-
const ka = /* @__PURE__ */
|
|
2087
|
+
const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), We(), e), Ca = {
|
|
2083
2088
|
key: 0,
|
|
2084
2089
|
class: "flex border mt-2 red_sheet"
|
|
2085
|
-
}, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */
|
|
2090
|
+
}, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("span", null, "[", -1)), Ma = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Pa = [
|
|
2086
2091
|
Ea,
|
|
2087
2092
|
Ma
|
|
2088
|
-
], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */
|
|
2093
|
+
], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2094
|
+
/* @__PURE__ */ f("span", null, "正确填涂示例"),
|
|
2095
|
+
/* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2096
|
+
], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ J({
|
|
2092
2097
|
__name: "notice",
|
|
2093
2098
|
props: {
|
|
2094
2099
|
layout: {},
|
|
@@ -2097,9 +2102,9 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2097
2102
|
setup(e) {
|
|
2098
2103
|
const t = e, o = A(() => {
|
|
2099
2104
|
const a = {
|
|
2100
|
-
[
|
|
2101
|
-
[
|
|
2102
|
-
[
|
|
2105
|
+
[xe.none]: "",
|
|
2106
|
+
[xe.seat]: "座位号或",
|
|
2107
|
+
[xe.shortId]: "短学号或"
|
|
2103
2108
|
};
|
|
2104
2109
|
return [
|
|
2105
2110
|
`1.答题前,考生先将自己的基本信息填写清楚,并认真核对${t.isBindFlag ? "" : a[t.layout.seatType]}条形码上的信息;`,
|
|
@@ -2108,37 +2113,37 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2108
2113
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2109
2114
|
];
|
|
2110
2115
|
});
|
|
2111
|
-
return (a, n) => (s(), d(
|
|
2116
|
+
return (a, n) => (s(), d(E, null, [
|
|
2112
2117
|
a.layout.noteFlag ? (s(), d("div", Ca, [
|
|
2113
2118
|
$a,
|
|
2114
|
-
|
|
2115
|
-
(s(!0), d(
|
|
2119
|
+
f("div", Sa, [
|
|
2120
|
+
(s(!0), d(E, null, X(o.value, (r) => (s(), d("p", {
|
|
2116
2121
|
key: r,
|
|
2117
2122
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2118
|
-
},
|
|
2123
|
+
}, V(r), 1))), 128))
|
|
2119
2124
|
])
|
|
2120
|
-
])) :
|
|
2125
|
+
])) : D("", !0),
|
|
2121
2126
|
a.layout.lackFlag ? (s(), d("div", {
|
|
2122
2127
|
key: 1,
|
|
2123
|
-
class:
|
|
2128
|
+
class: ae(["flex border text-sm red_sheet", a.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2124
2129
|
}, [
|
|
2125
|
-
|
|
2130
|
+
f("p", Ta, [
|
|
2126
2131
|
Ia,
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2132
|
+
f("span", La, [
|
|
2133
|
+
K(ye, { name: "rightArrow" }),
|
|
2134
|
+
f("span", {
|
|
2130
2135
|
class: "flex items-center leading-4",
|
|
2131
|
-
"data-xine": x(
|
|
2136
|
+
"data-xine": x(k).lack
|
|
2132
2137
|
}, Pa, 8, Fa)
|
|
2133
2138
|
])
|
|
2134
2139
|
]),
|
|
2135
2140
|
Da
|
|
2136
|
-
], 2)) :
|
|
2141
|
+
], 2)) : D("", !0),
|
|
2137
2142
|
Aa
|
|
2138
2143
|
], 64));
|
|
2139
2144
|
}
|
|
2140
2145
|
});
|
|
2141
|
-
const Ba = /* @__PURE__ */
|
|
2146
|
+
const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), wt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, a = "children") => {
|
|
2142
2147
|
let n = [];
|
|
2143
2148
|
const r = (l) => {
|
|
2144
2149
|
(l[a] || []).length ? (o && n.push(t ? l[t] : l[a]), l[a].forEach((i) => r(i))) : n.push(t ? l[t] : l);
|
|
@@ -2160,13 +2165,13 @@ function xt(e) {
|
|
|
2160
2165
|
const za = {
|
|
2161
2166
|
key: 0,
|
|
2162
2167
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2163
|
-
}, Ha = /* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
], -1), Ra = { class: "flex-1" },
|
|
2167
|
-
/* @__PURE__ */
|
|
2168
|
-
/* @__PURE__ */
|
|
2169
|
-
], -1), Ya = /* @__PURE__ */
|
|
2168
|
+
}, Ha = /* @__PURE__ */ f("li", { class: "flex-1 flex flex-col" }, [
|
|
2169
|
+
/* @__PURE__ */ f("p", { class: "flex-1" }, "题号"),
|
|
2170
|
+
/* @__PURE__ */ f("p", { class: "flex-1 border-t" }, "得分")
|
|
2171
|
+
], -1), Ra = { class: "flex-1" }, Wa = /* @__PURE__ */ f("p", { class: "flex-1 border-t" }, null, -1), Ga = /* @__PURE__ */ f("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2172
|
+
/* @__PURE__ */ f("p", { class: "flex-1" }, "总分"),
|
|
2173
|
+
/* @__PURE__ */ f("p", { class: "flex-1 border-t" })
|
|
2174
|
+
], -1), Ya = /* @__PURE__ */ J({
|
|
2170
2175
|
__name: "scoreTable",
|
|
2171
2176
|
props: {
|
|
2172
2177
|
layout: {},
|
|
@@ -2176,17 +2181,17 @@ const za = {
|
|
|
2176
2181
|
const t = e, o = A(() => t.data.filter((a) => a.problemType));
|
|
2177
2182
|
return (a, n) => a.layout.scoreFlag ? (s(), d("ul", za, [
|
|
2178
2183
|
Ha,
|
|
2179
|
-
(s(!0), d(
|
|
2184
|
+
(s(!0), d(E, null, X(o.value, (r, l) => (s(), d("li", {
|
|
2180
2185
|
key: r.id,
|
|
2181
2186
|
class: "flex-1 flex flex-col border-l"
|
|
2182
2187
|
}, [
|
|
2183
|
-
|
|
2184
|
-
|
|
2188
|
+
f("p", Ra, V(x(Pt)(l)), 1),
|
|
2189
|
+
Wa
|
|
2185
2190
|
]))), 128)),
|
|
2186
|
-
|
|
2187
|
-
])) :
|
|
2191
|
+
Ga
|
|
2192
|
+
])) : D("", !0);
|
|
2188
2193
|
}
|
|
2189
|
-
}), qa = /* @__PURE__ */
|
|
2194
|
+
}), qa = /* @__PURE__ */ J({
|
|
2190
2195
|
__name: "columnDom",
|
|
2191
2196
|
props: {
|
|
2192
2197
|
column: {},
|
|
@@ -2195,44 +2200,44 @@ const za = {
|
|
|
2195
2200
|
styleInfo: {}
|
|
2196
2201
|
},
|
|
2197
2202
|
setup(e, { expose: t }) {
|
|
2198
|
-
const o = e, a =
|
|
2203
|
+
const o = e, a = G(), n = G();
|
|
2199
2204
|
t({ col: a, colView: n });
|
|
2200
2205
|
const r = A(() => {
|
|
2201
2206
|
const { top: c, width: u, height: m, left: O } = o.styleInfo;
|
|
2202
2207
|
return {
|
|
2203
|
-
top: `${parseFloat(c) - (o.currentColumn ?
|
|
2204
|
-
left: `${parseFloat(O) -
|
|
2205
|
-
width: `${parseFloat(u) +
|
|
2206
|
-
height: `${parseFloat(m) + (o.currentColumn ?
|
|
2208
|
+
top: `${parseFloat(c) - (o.currentColumn ? $e.top : 1)}px`,
|
|
2209
|
+
left: `${parseFloat(O) - $e.left}px`,
|
|
2210
|
+
width: `${parseFloat(u) + $e.left + $e.right}px`,
|
|
2211
|
+
height: `${parseFloat(m) + (o.currentColumn ? $e.top : 0) + $e.bottom}px`
|
|
2207
2212
|
};
|
|
2208
2213
|
}), l = A(() => ({
|
|
2209
|
-
left: `${
|
|
2210
|
-
top: `${
|
|
2211
|
-
bottom: `${
|
|
2212
|
-
right: `${
|
|
2214
|
+
left: `${$e.left - 1}px`,
|
|
2215
|
+
top: `${$e.top - 1}px`,
|
|
2216
|
+
bottom: `${$e.bottom - 1}px`,
|
|
2217
|
+
right: `${$e.right - 1}px`
|
|
2213
2218
|
})), i = A(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2214
|
-
return (c, u) => (s(), d(
|
|
2219
|
+
return (c, u) => (s(), d(E, null, [
|
|
2215
2220
|
c.showColBorder ? (s(), d("div", {
|
|
2216
2221
|
key: 0,
|
|
2217
|
-
class:
|
|
2218
|
-
style:
|
|
2222
|
+
class: ae(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
|
|
2223
|
+
style: Y(r.value)
|
|
2219
2224
|
}, [
|
|
2220
|
-
|
|
2225
|
+
f("span", {
|
|
2221
2226
|
class: "absolute border border-black",
|
|
2222
|
-
style:
|
|
2227
|
+
style: Y(l.value)
|
|
2223
2228
|
}, null, 4)
|
|
2224
|
-
], 6)) :
|
|
2225
|
-
|
|
2229
|
+
], 6)) : D("", !0),
|
|
2230
|
+
f("div", {
|
|
2226
2231
|
class: "absolute overflow-hidden",
|
|
2227
2232
|
ref_key: "colView",
|
|
2228
2233
|
ref: n,
|
|
2229
|
-
style:
|
|
2234
|
+
style: Y(c.styleInfo)
|
|
2230
2235
|
}, [
|
|
2231
|
-
|
|
2236
|
+
f("div", {
|
|
2232
2237
|
ref_key: "col",
|
|
2233
2238
|
ref: a,
|
|
2234
2239
|
class: "overflow-hidden __col__",
|
|
2235
|
-
style:
|
|
2240
|
+
style: Y({ height: c.styleInfo.contentHeight })
|
|
2236
2241
|
}, [
|
|
2237
2242
|
it(c.$slots, "default", {}, void 0, !0)
|
|
2238
2243
|
], 4)
|
|
@@ -2240,9 +2245,9 @@ const za = {
|
|
|
2240
2245
|
], 64));
|
|
2241
2246
|
}
|
|
2242
2247
|
});
|
|
2243
|
-
const Qa = /* @__PURE__ */
|
|
2248
|
+
const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), We(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
|
|
2244
2249
|
ja
|
|
2245
|
-
],
|
|
2250
|
+
], Xa = ["data-xine"], Ja = /* @__PURE__ */ J({
|
|
2246
2251
|
__name: "bind",
|
|
2247
2252
|
props: {
|
|
2248
2253
|
currentPage: {},
|
|
@@ -2251,42 +2256,42 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2251
2256
|
isBindFlag: { type: Boolean }
|
|
2252
2257
|
},
|
|
2253
2258
|
setup(e) {
|
|
2254
|
-
const t =
|
|
2259
|
+
const t = G(), o = ["学校", "班级", "准考证号", "姓名"];
|
|
2255
2260
|
return (a, n) => a.isBindFlag ? (s(), d("div", {
|
|
2256
2261
|
key: 0,
|
|
2257
|
-
style:
|
|
2258
|
-
class:
|
|
2262
|
+
style: Y({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
|
|
2263
|
+
class: ae([a.currentPage % 2 && "right_view"]),
|
|
2259
2264
|
ref_key: "view",
|
|
2260
2265
|
ref: t
|
|
2261
2266
|
}, [
|
|
2262
2267
|
a.currentPage % 2 ? (s(), d("div", {
|
|
2263
2268
|
key: 0,
|
|
2264
2269
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2265
|
-
style:
|
|
2270
|
+
style: Y({ width: `${a.height - 20}px`, height: `${a.width}px` })
|
|
2266
2271
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
|
|
2267
2272
|
key: 1,
|
|
2268
2273
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2269
|
-
style:
|
|
2274
|
+
style: Y({ width: `${a.height - 20}px` })
|
|
2270
2275
|
}, [
|
|
2271
|
-
(s(), d(
|
|
2276
|
+
(s(), d(E, null, X(o, (r) => f("p", {
|
|
2272
2277
|
key: r,
|
|
2273
2278
|
class: "flex items-end flex-1 mr-4"
|
|
2274
2279
|
}, [
|
|
2275
|
-
|
|
2280
|
+
f("span", null, V(r), 1),
|
|
2276
2281
|
Ua
|
|
2277
2282
|
])), 64)),
|
|
2278
|
-
|
|
2283
|
+
f("div", {
|
|
2279
2284
|
class: "flex items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2280
|
-
"data-xine": x(
|
|
2281
|
-
},
|
|
2282
|
-
|
|
2283
|
-
"data-xine": x(
|
|
2284
|
-
}, null, 8,
|
|
2285
|
+
"data-xine": x(k).en_code
|
|
2286
|
+
}, Va, 8, Ka),
|
|
2287
|
+
f("span", {
|
|
2288
|
+
"data-xine": x(k).bind_line
|
|
2289
|
+
}, null, 8, Xa)
|
|
2285
2290
|
], 4))
|
|
2286
|
-
], 6)) :
|
|
2291
|
+
], 6)) : D("", !0);
|
|
2287
2292
|
}
|
|
2288
2293
|
});
|
|
2289
|
-
const Za = /* @__PURE__ */
|
|
2294
|
+
const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", kt = "MC5sZGN2NzJ0ZXE0bw", dt = "MC5yYjk3NGY2OTcyOA", ut = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ J({
|
|
2290
2295
|
__name: "simple",
|
|
2291
2296
|
props: {
|
|
2292
2297
|
item: {},
|
|
@@ -2299,20 +2304,20 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2299
2304
|
});
|
|
2300
2305
|
return (n, r) => (s(), d("div", {
|
|
2301
2306
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2302
|
-
"data-block": x(
|
|
2303
|
-
"data-xine": x(
|
|
2307
|
+
"data-block": x(ke),
|
|
2308
|
+
"data-xine": x(k).score
|
|
2304
2309
|
}, [
|
|
2305
|
-
|
|
2310
|
+
f("ul", {
|
|
2306
2311
|
class: "flex h-full divide-x divide-solid",
|
|
2307
|
-
"data-xine": x(
|
|
2312
|
+
"data-xine": x(k).score_base
|
|
2308
2313
|
}, [
|
|
2309
|
-
(s(!0), d(
|
|
2314
|
+
(s(!0), d(E, null, X(a.value, (l, i) => (s(), d("li", {
|
|
2310
2315
|
class: "flex items-center justify-center relative score_line",
|
|
2311
|
-
style:
|
|
2312
|
-
"data-xine": x(
|
|
2316
|
+
style: Y({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
|
|
2317
|
+
"data-xine": x(k).score_item
|
|
2313
2318
|
}, [
|
|
2314
|
-
|
|
2315
|
-
|
|
2319
|
+
f("span", il, V(l), 1),
|
|
2320
|
+
K(ye, {
|
|
2316
2321
|
class: "p-0",
|
|
2317
2322
|
name: o[i]
|
|
2318
2323
|
}, null, 8, ["name"])
|
|
@@ -2320,7 +2325,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2320
2325
|
], 8, nl)
|
|
2321
2326
|
], 8, ll));
|
|
2322
2327
|
}
|
|
2323
|
-
}), cl = ["data-block", "data-xine"], dl = ["data-xine"], ul = ["data-xine"], tt = /* @__PURE__ */
|
|
2328
|
+
}), cl = ["data-block", "data-xine"], dl = ["data-xine"], ul = ["data-xine"], tt = /* @__PURE__ */ J({
|
|
2324
2329
|
__name: "index",
|
|
2325
2330
|
props: {
|
|
2326
2331
|
item: {},
|
|
@@ -2328,8 +2333,8 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2328
2333
|
static: { type: Boolean }
|
|
2329
2334
|
},
|
|
2330
2335
|
setup(e) {
|
|
2331
|
-
const t = e, o =
|
|
2332
|
-
Ae(() => [t.item.score], () => c()),
|
|
2336
|
+
const t = e, o = G(), a = G(!1), n = G(!1), r = G(!1), l = G([]), i = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2337
|
+
Ae(() => [t.item.score], () => c()), Xe(() => {
|
|
2333
2338
|
c();
|
|
2334
2339
|
});
|
|
2335
2340
|
const c = () => {
|
|
@@ -2341,13 +2346,13 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2341
2346
|
m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((O) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * O)).reverse());
|
|
2342
2347
|
else if (t.item.scoreLineType === De.none) {
|
|
2343
2348
|
const O = o.value.offsetWidth, h = je[t.layout.scoreLineSize].value + 1;
|
|
2344
|
-
a.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, a.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((
|
|
2349
|
+
a.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, a.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), m.push([...Array(10).keys()].reverse()), r.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2345
2350
|
}
|
|
2346
2351
|
t.item.hasHalfScore && m.push([0.5]), l.value = m, n.value = !!m.flat().find((O) => `${O}`.length > 3);
|
|
2347
2352
|
});
|
|
2348
|
-
}, u = (m) => t.item.hasHalfScore ? [
|
|
2349
|
-
return (m, O) => m.layout.handReadFlag ? (s(), d(
|
|
2350
|
-
m.layout.simpleScoreBarFlag && !m.static ? (s(),
|
|
2353
|
+
}, u = (m) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][l.value.length - m - 1] : [k.score_base, k.score_tenbit][l.value.length - m - 1];
|
|
2354
|
+
return (m, O) => m.layout.handReadFlag ? (s(), d(E, { key: 0 }, [
|
|
2355
|
+
m.layout.simpleScoreBarFlag && !m.static ? (s(), U(rl, {
|
|
2351
2356
|
key: 0,
|
|
2352
2357
|
item: m.item,
|
|
2353
2358
|
layout: m.layout
|
|
@@ -2356,33 +2361,33 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2356
2361
|
ref_key: "view",
|
|
2357
2362
|
ref: o,
|
|
2358
2363
|
class: "inline-flex max-w-full border border-l-2 border-r-2 divide-x divide-solid",
|
|
2359
|
-
"data-block": x(
|
|
2360
|
-
"data-xine": x(
|
|
2364
|
+
"data-block": x(ke),
|
|
2365
|
+
"data-xine": x(k).score
|
|
2361
2366
|
}, [
|
|
2362
|
-
(s(!0), d(
|
|
2367
|
+
(s(!0), d(E, null, X(l.value, (h, F) => (s(), d("ul", {
|
|
2363
2368
|
class: "flex divide-x divide-solid",
|
|
2364
|
-
"data-xine": u(
|
|
2369
|
+
"data-xine": u(F)
|
|
2365
2370
|
}, [
|
|
2366
|
-
(s(!0), d(
|
|
2371
|
+
(s(!0), d(E, null, X(h, (Z) => (s(), d("li", {
|
|
2367
2372
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2368
|
-
style:
|
|
2369
|
-
"data-xine":
|
|
2373
|
+
style: Y({ width: `${x(je)[m.layout.scoreLineSize].value}px` }),
|
|
2374
|
+
"data-xine": Z.toString() ? x(k).score_item : ""
|
|
2370
2375
|
}, [
|
|
2371
|
-
|
|
2372
|
-
class:
|
|
2373
|
-
},
|
|
2374
|
-
i.value &&
|
|
2376
|
+
f("span", {
|
|
2377
|
+
class: ae(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
|
|
2378
|
+
}, V(m.layout.minusFlag && Z.toString().length && !i.value ? "-" : "") + V(Z), 3),
|
|
2379
|
+
i.value && Z.toString().length ? (s(), U(ye, {
|
|
2375
2380
|
key: 0,
|
|
2376
2381
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2377
2382
|
name: m.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2378
2383
|
width: n.value ? 0.9 : 1.2
|
|
2379
|
-
}, null, 8, ["name", "width"])) :
|
|
2384
|
+
}, null, 8, ["name", "width"])) : D("", !0)
|
|
2380
2385
|
], 12, ul))), 256))
|
|
2381
2386
|
], 8, dl))), 256))
|
|
2382
2387
|
], 8, cl))
|
|
2383
|
-
], 64)) :
|
|
2388
|
+
], 64)) : D("", !0);
|
|
2384
2389
|
}
|
|
2385
|
-
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(),
|
|
2390
|
+
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), We(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ J({
|
|
2386
2391
|
__name: "writeScore",
|
|
2387
2392
|
props: {
|
|
2388
2393
|
info: {},
|
|
@@ -2391,11 +2396,11 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2391
2396
|
setup(e) {
|
|
2392
2397
|
return (t, o) => (s(), d("div", {
|
|
2393
2398
|
class: "flex items-center mb-2",
|
|
2394
|
-
"data-xine": x(
|
|
2399
|
+
"data-xine": x(k).write_view
|
|
2395
2400
|
}, [
|
|
2396
2401
|
pl,
|
|
2397
2402
|
ml,
|
|
2398
|
-
|
|
2403
|
+
K(tt, {
|
|
2399
2404
|
item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
|
|
2400
2405
|
layout: t.layout,
|
|
2401
2406
|
static: ""
|
|
@@ -2403,7 +2408,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2403
2408
|
], 8, hl));
|
|
2404
2409
|
}
|
|
2405
2410
|
});
|
|
2406
|
-
const _l = /* @__PURE__ */
|
|
2411
|
+
const _l = /* @__PURE__ */ de(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ J({
|
|
2407
2412
|
__name: "index",
|
|
2408
2413
|
props: {
|
|
2409
2414
|
data: {}
|
|
@@ -2416,7 +2421,7 @@ const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2416
2421
|
}, null, 8, fl));
|
|
2417
2422
|
}
|
|
2418
2423
|
});
|
|
2419
|
-
const Ne = /* @__PURE__ */
|
|
2424
|
+
const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ J({
|
|
2420
2425
|
__name: "notArea",
|
|
2421
2426
|
props: {
|
|
2422
2427
|
item: {}
|
|
@@ -2427,19 +2432,19 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2427
2432
|
"data-tag": t.item.__tag__,
|
|
2428
2433
|
"data-block": x(dt)
|
|
2429
2434
|
}, [
|
|
2430
|
-
|
|
2435
|
+
K(Ne, {
|
|
2431
2436
|
"data-content": t.item.id,
|
|
2432
2437
|
data: t.item.content
|
|
2433
2438
|
}, null, 8, ["data-content", "data"])
|
|
2434
2439
|
], 8, bl));
|
|
2435
2440
|
}
|
|
2436
|
-
}), wl = (e) => (Re("data-v-257ae24a"), e = e(),
|
|
2441
|
+
}), wl = (e) => (Re("data-v-257ae24a"), e = e(), We(), e), xl = ["data-tag", "data-block"], kl = {
|
|
2437
2442
|
key: 0,
|
|
2438
2443
|
class: "flex-shrink-0"
|
|
2439
2444
|
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
|
|
2440
2445
|
key: 1,
|
|
2441
2446
|
class: "indent-2"
|
|
2442
|
-
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */
|
|
2447
|
+
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), Ml = { class: "flex items-center" }, Pl = ["data-xine"], Dl = /* @__PURE__ */ J({
|
|
2443
2448
|
__name: "index",
|
|
2444
2449
|
props: {
|
|
2445
2450
|
item: {},
|
|
@@ -2450,54 +2455,54 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2450
2455
|
},
|
|
2451
2456
|
emits: ["click", "dbclick"],
|
|
2452
2457
|
setup(e, { emit: t }) {
|
|
2453
|
-
const o = e, a = A(() => [
|
|
2458
|
+
const o = e, a = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((i) => i.problemType) : null), n = A(() => [ve.another_choice].includes(o.item.problemType)), r = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.length : [...new Set(Oa(o.item.rawChildren.filter((i) => i.problemType), "sub").flat().map((i) => (i || "").split(".")[0]))].length), l = A(() => [...new Set(o.item.rawChildren.map((i) => [...new Set(i.sub.map((c) => c.split(".")[0]))]).map((i) => i.length > 1 ? `${i[0]}-${i[i.length - 1]}` : i[0]))]);
|
|
2454
2459
|
return (i, c) => i.item.problemType ? (s(), d("div", {
|
|
2455
2460
|
key: 1,
|
|
2456
|
-
class:
|
|
2461
|
+
class: ae(["flex items-baseline relative headline_item", i.showColBorder && "pl-2 mx-1 z-2", !i.isFirst && "headline_view"]),
|
|
2457
2462
|
onClick: c[2] || (c[2] = Le((u) => t("click", i.item), ["stop"])),
|
|
2458
2463
|
"data-tag": i.item.__tag__,
|
|
2459
|
-
"data-block": x(
|
|
2464
|
+
"data-block": x(ke),
|
|
2460
2465
|
onDblclick: c[3] || (c[3] = Le((u) => t("dbclick", i.item), ["stop"]))
|
|
2461
2466
|
}, [
|
|
2462
|
-
!i.layout.listIndexFlag && i.item.sub ? (s(), d("span", kl,
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
i.item.desc ? (s(), d("span", $l, "(" +
|
|
2467
|
-
i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" +
|
|
2467
|
+
!i.layout.listIndexFlag && i.item.sub ? (s(), d("span", kl, V(x(Pt)(i.item.sub - 1)) + "、", 1)) : D("", !0),
|
|
2468
|
+
f("div", null, [
|
|
2469
|
+
f("div", Cl, [
|
|
2470
|
+
f("span", null, V(i.item.name), 1),
|
|
2471
|
+
i.item.desc ? (s(), d("span", $l, "(" + V(i.item.desc) + ")", 1)) : D("", !0),
|
|
2472
|
+
i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" + V(r.value) + "题,共" + V(i.item.totalScore) + "分)", 1)) : D("", !0)
|
|
2468
2473
|
]),
|
|
2469
2474
|
a.value || n.value ? (s(), d("div", Tl, [
|
|
2470
|
-
a.value ? (s(), d("p", Il, "请在以下" +
|
|
2471
|
-
|
|
2475
|
+
a.value ? (s(), d("p", Il, "请在以下" + V(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2476
|
+
f("p", {
|
|
2472
2477
|
class: "flex flex-wrap",
|
|
2473
|
-
"data-block": x(
|
|
2474
|
-
"data-xine": x(
|
|
2478
|
+
"data-block": x(ke),
|
|
2479
|
+
"data-xine": x(k).choice + i.item.id
|
|
2475
2480
|
}, [
|
|
2476
2481
|
El,
|
|
2477
|
-
(s(!0), d(
|
|
2478
|
-
|
|
2479
|
-
|
|
2482
|
+
(s(!0), d(E, null, X(l.value, (u, m) => (s(), d("span", Ml, [
|
|
2483
|
+
f("span", null, V(u), 1),
|
|
2484
|
+
f("span", {
|
|
2480
2485
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2481
|
-
"data-xine": x(
|
|
2486
|
+
"data-xine": x(k).fill
|
|
2482
2487
|
}, null, 8, Pl)
|
|
2483
2488
|
]))), 256))
|
|
2484
2489
|
], 8, Fl)
|
|
2485
|
-
])) :
|
|
2490
|
+
])) : D("", !0)
|
|
2486
2491
|
])
|
|
2487
|
-
], 42, xl)) : (s(),
|
|
2492
|
+
], 42, xl)) : (s(), U(vl, {
|
|
2488
2493
|
key: 0,
|
|
2489
|
-
class:
|
|
2494
|
+
class: ae([i.isActive && "border-current", i.isFirst && "mt-9"]),
|
|
2490
2495
|
item: i.item,
|
|
2491
2496
|
onClick: c[0] || (c[0] = Le((u) => t("click", i.item), ["stop"])),
|
|
2492
2497
|
onDblclick: c[1] || (c[1] = Le((u) => t("dbclick", i.item), ["stop"]))
|
|
2493
2498
|
}, null, 8, ["class", "item"]));
|
|
2494
2499
|
}
|
|
2495
2500
|
});
|
|
2496
|
-
const Ct = /* @__PURE__ */
|
|
2501
|
+
const Ct = /* @__PURE__ */ de(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
|
|
2497
2502
|
function Nl(e, t) {
|
|
2498
2503
|
return null;
|
|
2499
2504
|
}
|
|
2500
|
-
const Bl = /* @__PURE__ */
|
|
2505
|
+
const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */ J({
|
|
2501
2506
|
__name: "sheet",
|
|
2502
2507
|
props: {
|
|
2503
2508
|
item: {},
|
|
@@ -2506,14 +2511,14 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2506
2511
|
setup(e) {
|
|
2507
2512
|
return (t, o) => (s(), d("div", {
|
|
2508
2513
|
class: "flex items-center red_sheet",
|
|
2509
|
-
"data-block": x(
|
|
2514
|
+
"data-block": x(ke)
|
|
2510
2515
|
}, [
|
|
2511
|
-
(s(!0), d(
|
|
2512
|
-
class:
|
|
2513
|
-
style:
|
|
2514
|
-
"data-xine": x(
|
|
2516
|
+
(s(!0), d(E, null, X(t.item.optList, (a, n) => (s(), d("span", {
|
|
2517
|
+
class: ae(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
|
|
2518
|
+
style: Y({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
|
|
2519
|
+
"data-xine": x(k).fill + n
|
|
2515
2520
|
}, [
|
|
2516
|
-
|
|
2521
|
+
K(ye, {
|
|
2517
2522
|
width: 1,
|
|
2518
2523
|
name: x(wt)[n]
|
|
2519
2524
|
}, null, 8, ["name"])
|
|
@@ -2521,14 +2526,14 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2521
2526
|
], 8, Ol));
|
|
2522
2527
|
}
|
|
2523
2528
|
}), Rl = {};
|
|
2524
|
-
function
|
|
2529
|
+
function Wl(e, t) {
|
|
2525
2530
|
return null;
|
|
2526
2531
|
}
|
|
2527
|
-
const
|
|
2532
|
+
const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), jl = [
|
|
2528
2533
|
Kl
|
|
2529
|
-
],
|
|
2530
|
-
|
|
2531
|
-
], Zl = /* @__PURE__ */
|
|
2534
|
+
], Vl = ["data-xine"], Xl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
|
|
2535
|
+
Xl
|
|
2536
|
+
], Zl = /* @__PURE__ */ J({
|
|
2532
2537
|
__name: "sheet",
|
|
2533
2538
|
props: {
|
|
2534
2539
|
item: {},
|
|
@@ -2536,45 +2541,45 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2536
2541
|
},
|
|
2537
2542
|
setup(e) {
|
|
2538
2543
|
const t = e, o = A(() => ({
|
|
2539
|
-
width: `${
|
|
2540
|
-
height: `${
|
|
2544
|
+
width: `${Ie[t.layout.fillSize].value + 1}px`,
|
|
2545
|
+
height: `${Ie[t.layout.fillSize].height + 1}px`
|
|
2541
2546
|
}));
|
|
2542
2547
|
return (a, n) => (s(), d("div", {
|
|
2543
2548
|
class: "flex red_sheet",
|
|
2544
|
-
"data-block": x(
|
|
2549
|
+
"data-block": x(ke)
|
|
2545
2550
|
}, [
|
|
2546
|
-
a.item.style[x(y)[a.layout.mode].decide_a] === x(
|
|
2547
|
-
|
|
2548
|
-
class:
|
|
2549
|
-
style:
|
|
2550
|
-
"data-xine": x(
|
|
2551
|
+
a.item.style[x(y)[a.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(E, { key: 0 }, [
|
|
2552
|
+
f("span", {
|
|
2553
|
+
class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2554
|
+
style: Y(o.value),
|
|
2555
|
+
"data-xine": x(k).fill + "0"
|
|
2551
2556
|
}, [
|
|
2552
|
-
|
|
2557
|
+
K(ye, {
|
|
2553
2558
|
name: "right",
|
|
2554
2559
|
width: 1
|
|
2555
2560
|
})
|
|
2556
2561
|
], 14, ql),
|
|
2557
|
-
|
|
2558
|
-
class:
|
|
2559
|
-
style:
|
|
2560
|
-
"data-xine": x(
|
|
2562
|
+
f("span", {
|
|
2563
|
+
class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2564
|
+
style: Y(o.value),
|
|
2565
|
+
"data-xine": x(k).fill + "1"
|
|
2561
2566
|
}, [
|
|
2562
|
-
|
|
2567
|
+
K(ye, {
|
|
2563
2568
|
name: "wrong",
|
|
2564
2569
|
width: 1
|
|
2565
2570
|
})
|
|
2566
2571
|
], 14, Ql)
|
|
2567
|
-
], 64)) : (s(), d(
|
|
2568
|
-
|
|
2569
|
-
class:
|
|
2570
|
-
style:
|
|
2571
|
-
"data-xine": x(
|
|
2572
|
+
], 64)) : (s(), d(E, { key: 1 }, [
|
|
2573
|
+
f("span", {
|
|
2574
|
+
class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
|
|
2575
|
+
style: Y(o.value),
|
|
2576
|
+
"data-xine": x(k).fill + "0"
|
|
2572
2577
|
}, jl, 14, Ul),
|
|
2573
|
-
|
|
2574
|
-
class:
|
|
2575
|
-
style:
|
|
2576
|
-
"data-xine": x(
|
|
2577
|
-
}, Jl, 14,
|
|
2578
|
+
f("span", {
|
|
2579
|
+
class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
|
|
2580
|
+
style: Y(o.value),
|
|
2581
|
+
"data-xine": x(k).fill + "1"
|
|
2582
|
+
}, Jl, 14, Vl)
|
|
2578
2583
|
], 64))
|
|
2579
2584
|
], 8, Yl));
|
|
2580
2585
|
}
|
|
@@ -2582,10 +2587,10 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
|
|
|
2582
2587
|
function tn(e, t) {
|
|
2583
2588
|
return null;
|
|
2584
2589
|
}
|
|
2585
|
-
const on = /* @__PURE__ */
|
|
2590
|
+
const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-xine"], ln = {
|
|
2586
2591
|
key: 0,
|
|
2587
2592
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2588
|
-
}, nn = { key: 1 }, sn = /* @__PURE__ */
|
|
2593
|
+
}, nn = { key: 1 }, sn = /* @__PURE__ */ J({
|
|
2589
2594
|
__name: "index",
|
|
2590
2595
|
props: {
|
|
2591
2596
|
item: {},
|
|
@@ -2597,21 +2602,21 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2597
2602
|
return (a, n) => a.layout.handReadFlag ? (s(), d("div", {
|
|
2598
2603
|
key: 0,
|
|
2599
2604
|
class: "score_fill flex items-center",
|
|
2600
|
-
"data-block": x(
|
|
2601
|
-
"data-xine": x(
|
|
2605
|
+
"data-block": x(ke),
|
|
2606
|
+
"data-xine": x(k).fill
|
|
2602
2607
|
}, [
|
|
2603
2608
|
a.showScoreCn ? (s(), d("span", ln, [
|
|
2604
|
-
|
|
2605
|
-
o.value ? (s(),
|
|
2609
|
+
f("span", null, V(a.layout.minusFlag && !o.value ? "-" : "") + V(a.item.score), 1),
|
|
2610
|
+
o.value ? (s(), U(ye, {
|
|
2606
2611
|
key: 0,
|
|
2607
2612
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2608
2613
|
name: a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2609
2614
|
width: 1.2
|
|
2610
2615
|
}, null, 8, ["name"])) : (s(), d("span", nn, "分"))
|
|
2611
|
-
])) :
|
|
2612
|
-
], 8, an)) :
|
|
2616
|
+
])) : D("", !0)
|
|
2617
|
+
], 8, an)) : D("", !0);
|
|
2613
2618
|
}
|
|
2614
|
-
}), rn = ["data-xine"], cn = /* @__PURE__ */
|
|
2619
|
+
}), rn = ["data-xine"], cn = /* @__PURE__ */ J({
|
|
2615
2620
|
__name: "sheet",
|
|
2616
2621
|
props: {
|
|
2617
2622
|
item: {},
|
|
@@ -2619,25 +2624,25 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2619
2624
|
},
|
|
2620
2625
|
setup(e) {
|
|
2621
2626
|
const t = e;
|
|
2622
|
-
return (o, a) => (s(), d(
|
|
2623
|
-
|
|
2627
|
+
return (o, a) => (s(), d(E, null, [
|
|
2628
|
+
f("div", {
|
|
2624
2629
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2625
|
-
style:
|
|
2626
|
-
"data-xine": x(
|
|
2630
|
+
style: Y({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
2631
|
+
"data-xine": x(k).fill_line
|
|
2627
2632
|
}, null, 12, rn),
|
|
2628
|
-
o.layout.handReadFlag ? (s(),
|
|
2633
|
+
o.layout.handReadFlag ? (s(), U(sn, {
|
|
2629
2634
|
key: 0,
|
|
2630
2635
|
item: o.item,
|
|
2631
2636
|
layout: o.layout,
|
|
2632
2637
|
showScoreCn: o.layout.fillScoreFlag
|
|
2633
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
2638
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
|
|
2634
2639
|
], 64));
|
|
2635
2640
|
}
|
|
2636
2641
|
}), dn = {};
|
|
2637
2642
|
function un(e, t) {
|
|
2638
2643
|
return null;
|
|
2639
2644
|
}
|
|
2640
|
-
const hn = /* @__PURE__ */
|
|
2645
|
+
const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */ J({
|
|
2641
2646
|
__name: "sheet",
|
|
2642
2647
|
props: {
|
|
2643
2648
|
item: {},
|
|
@@ -2646,22 +2651,22 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2646
2651
|
},
|
|
2647
2652
|
setup(e) {
|
|
2648
2653
|
return (t, o) => (s(), d("div", {
|
|
2649
|
-
class:
|
|
2654
|
+
class: ae(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
|
|
2650
2655
|
}, [
|
|
2651
|
-
t.item.chunk ?
|
|
2656
|
+
t.item.chunk ? D("", !0) : (s(), d("div", {
|
|
2652
2657
|
key: 0,
|
|
2653
2658
|
class: "flex items-center",
|
|
2654
|
-
"data-block": x(
|
|
2659
|
+
"data-block": x(ke)
|
|
2655
2660
|
}, [
|
|
2656
2661
|
it(t.$slots, "default"),
|
|
2657
|
-
|
|
2658
|
-
|
|
2662
|
+
f("div", mn, [
|
|
2663
|
+
K(tt, {
|
|
2659
2664
|
item: t.item,
|
|
2660
2665
|
layout: t.layout
|
|
2661
2666
|
}, null, 8, ["item", "layout"])
|
|
2662
2667
|
])
|
|
2663
2668
|
], 8, pn)),
|
|
2664
|
-
|
|
2669
|
+
K(Ne, {
|
|
2665
2670
|
"data-area": t.item.id,
|
|
2666
2671
|
data: t.item.answerArea
|
|
2667
2672
|
}, null, 8, ["data-area", "data"])
|
|
@@ -2671,16 +2676,16 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2671
2676
|
function fn(e, t) {
|
|
2672
2677
|
return null;
|
|
2673
2678
|
}
|
|
2674
|
-
const gn = /* @__PURE__ */
|
|
2679
|
+
const gn = /* @__PURE__ */ de(_n, [["render", fn]]), bn = /* @__PURE__ */ f("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ J({
|
|
2675
2680
|
__name: "sheet",
|
|
2676
2681
|
props: {
|
|
2677
2682
|
item: {},
|
|
2678
2683
|
layout: {}
|
|
2679
2684
|
},
|
|
2680
2685
|
setup(e) {
|
|
2681
|
-
return (t, o) => (s(), d(
|
|
2686
|
+
return (t, o) => (s(), d(E, null, [
|
|
2682
2687
|
bn,
|
|
2683
|
-
|
|
2688
|
+
K(tt, {
|
|
2684
2689
|
item: t.item,
|
|
2685
2690
|
layout: t.layout
|
|
2686
2691
|
}, null, 8, ["item", "layout"])
|
|
@@ -2690,30 +2695,30 @@ const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div
|
|
|
2690
2695
|
function xn(e, t) {
|
|
2691
2696
|
return null;
|
|
2692
2697
|
}
|
|
2693
|
-
const kn = /* @__PURE__ */
|
|
2698
|
+
const kn = /* @__PURE__ */ de(wn, [["render", xn]]), Cn = {};
|
|
2694
2699
|
function $n(e, t) {
|
|
2695
2700
|
return null;
|
|
2696
2701
|
}
|
|
2697
|
-
const Sn = /* @__PURE__ */
|
|
2702
|
+
const Sn = /* @__PURE__ */ de(Cn, [["render", $n]]), Tn = {};
|
|
2698
2703
|
function In(e, t) {
|
|
2699
2704
|
return null;
|
|
2700
2705
|
}
|
|
2701
|
-
const Ln = /* @__PURE__ */
|
|
2706
|
+
const Ln = /* @__PURE__ */ de(Tn, [["render", In]]), Fn = {};
|
|
2702
2707
|
function En(e, t) {
|
|
2703
2708
|
return null;
|
|
2704
2709
|
}
|
|
2705
|
-
const Mn = /* @__PURE__ */
|
|
2710
|
+
const Mn = /* @__PURE__ */ de(Fn, [["render", En]]), Pn = {};
|
|
2706
2711
|
function Dn(e, t) {
|
|
2707
2712
|
return null;
|
|
2708
2713
|
}
|
|
2709
|
-
const An = /* @__PURE__ */
|
|
2714
|
+
const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn = ["data-block"], On = { class: "flex-1 flex justify-end overflow-hidden" }, zn = ["data-block", "data-guide"], Hn = ["data-block", "data-size"], Rn = ["data-block"], Wn = /* @__PURE__ */ J({
|
|
2710
2715
|
__name: "sheet",
|
|
2711
2716
|
props: {
|
|
2712
2717
|
item: {},
|
|
2713
2718
|
layout: {}
|
|
2714
2719
|
},
|
|
2715
2720
|
setup(e) {
|
|
2716
|
-
const t = e, o =
|
|
2721
|
+
const t = e, o = G(0), a = G({}), n = G(), r = G(), l = G([]), i = A(() => {
|
|
2717
2722
|
const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, O.value.length, 0);
|
|
2718
2723
|
return h ? Math.ceil(h / (o.value || h)) : 0;
|
|
2719
2724
|
}), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), u = A(() => ({
|
|
@@ -2722,82 +2727,83 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2722
2727
|
})), m = A(() => ({
|
|
2723
2728
|
width: `${c.value}px`
|
|
2724
2729
|
})), O = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
2725
|
-
return
|
|
2730
|
+
return Xe(() => {
|
|
2726
2731
|
Je(() => {
|
|
2727
2732
|
o.value = Math.floor(n.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
2728
2733
|
if (!n.value)
|
|
2729
2734
|
return;
|
|
2730
|
-
const L = n.value.getBoundingClientRect(),
|
|
2735
|
+
const L = n.value.getBoundingClientRect(), W = r.value[0].getBoundingClientRect();
|
|
2731
2736
|
a.value = {
|
|
2732
|
-
left: `${
|
|
2733
|
-
top: `${
|
|
2737
|
+
left: `${W.left - L.left}px`,
|
|
2738
|
+
top: `${W.top - L.top}px`
|
|
2734
2739
|
};
|
|
2735
2740
|
}, 20);
|
|
2736
2741
|
});
|
|
2737
|
-
const h = parseInt(t.item.style[y[t.layout.mode].art_c]),
|
|
2738
|
-
l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1,
|
|
2739
|
-
}), (h,
|
|
2742
|
+
const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Z = Math.floor(h / F), te = Math.round(Z / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
|
|
2743
|
+
l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Z) - 1 || 0).keys()].map((L) => (L + 1) * te).concat(h / F < 2 ? F : h).filter((L) => L);
|
|
2744
|
+
}), (h, F) => (s(), d("div", {
|
|
2740
2745
|
class: "w-full relative min-h-[10rem]",
|
|
2741
2746
|
ref_key: "view",
|
|
2742
|
-
ref: n
|
|
2747
|
+
ref: n,
|
|
2748
|
+
"data-viewid": h.item.id
|
|
2743
2749
|
}, [
|
|
2744
|
-
h.item.chunk ?
|
|
2750
|
+
h.item.chunk ? D("", !0) : (s(), d("div", {
|
|
2745
2751
|
key: 0,
|
|
2746
2752
|
class: "flex items-center mt-1 mb-4",
|
|
2747
|
-
"data-block": x(
|
|
2753
|
+
"data-block": x(ke)
|
|
2748
2754
|
}, [
|
|
2749
2755
|
it(h.$slots, "default"),
|
|
2750
|
-
|
|
2751
|
-
|
|
2756
|
+
f("div", On, [
|
|
2757
|
+
K(tt, {
|
|
2752
2758
|
item: h.item,
|
|
2753
2759
|
layout: h.layout
|
|
2754
2760
|
}, null, 8, ["item", "layout"])
|
|
2755
2761
|
])
|
|
2756
|
-
], 8,
|
|
2757
|
-
h.item.beforeArt && !h.item.startAnswerLen ? (s(),
|
|
2762
|
+
], 8, Bn)),
|
|
2763
|
+
h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(Ne, {
|
|
2758
2764
|
key: 1,
|
|
2759
2765
|
data: h.item.beforeArt,
|
|
2760
2766
|
"data-bart": h.item.id,
|
|
2761
2767
|
class: "indent-[2em]"
|
|
2762
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
2768
|
+
}, null, 8, ["data", "data-bart"])) : D("", !0),
|
|
2763
2769
|
h.item.beforeGuide && !h.item.artBlock ? (s(), d("p", {
|
|
2764
2770
|
key: 2,
|
|
2765
2771
|
"data-block": x(Ee),
|
|
2766
2772
|
"data-guide": h.item.id,
|
|
2767
|
-
class:
|
|
2768
|
-
style:
|
|
2769
|
-
},
|
|
2770
|
-
(s(!0), d(
|
|
2773
|
+
class: ae(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
|
|
2774
|
+
style: Y({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
|
|
2775
|
+
}, V(h.item.beforeGuide), 15, zn)) : D("", !0),
|
|
2776
|
+
(s(!0), d(E, null, X(i.value, (Z, te) => (s(), d("p", {
|
|
2771
2777
|
ref_for: !0,
|
|
2772
2778
|
ref_key: "line",
|
|
2773
2779
|
ref: r,
|
|
2774
|
-
class:
|
|
2775
|
-
"data-block": x(
|
|
2776
|
-
"data-size": h.item.startAnswerLen + (
|
|
2777
|
-
style:
|
|
2780
|
+
class: ae(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
|
|
2781
|
+
"data-block": x(ke),
|
|
2782
|
+
"data-size": h.item.startAnswerLen + (te + 1) * o.value,
|
|
2783
|
+
style: Y(u.value)
|
|
2778
2784
|
}, [
|
|
2779
|
-
h.item.artBlock ? (s(!0), d(
|
|
2780
|
-
class:
|
|
2781
|
-
style:
|
|
2782
|
-
},
|
|
2783
|
-
(s(!0), d(
|
|
2784
|
-
h.item.startAnswerLen +
|
|
2785
|
+
h.item.artBlock ? (s(!0), d(E, { key: 0 }, X(o.value, (L, W) => (s(), d("span", {
|
|
2786
|
+
class: ae([O.value[te * o.value + W] && "flex items-center justify-center"]),
|
|
2787
|
+
style: Y(m.value)
|
|
2788
|
+
}, V(O.value[te * o.value + W]), 7))), 256)) : D("", !0),
|
|
2789
|
+
(s(!0), d(E, null, X(l.value, (L) => (s(), d(E, null, [
|
|
2790
|
+
h.item.startAnswerLen + te * o.value < L && h.item.startAnswerLen + (te + 1) * o.value >= L ? (s(), d("span", {
|
|
2785
2791
|
key: 0,
|
|
2786
2792
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2787
|
-
style:
|
|
2793
|
+
style: Y({ left: `${(L - h.item.startAnswerLen) % o.value * c.value}px` }),
|
|
2788
2794
|
"data-block": x(Ee)
|
|
2789
|
-
},
|
|
2795
|
+
}, V(L), 13, Rn)) : D("", !0)
|
|
2790
2796
|
], 64))), 256))
|
|
2791
|
-
], 14,
|
|
2792
|
-
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(),
|
|
2797
|
+
], 14, Hn))), 256)),
|
|
2798
|
+
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(Ne, {
|
|
2793
2799
|
key: 3,
|
|
2794
2800
|
data: h.item.afterArt,
|
|
2795
2801
|
"data-aart": h.item.id,
|
|
2796
2802
|
class: "mt-2 indent-[2em]"
|
|
2797
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
2798
|
-
],
|
|
2803
|
+
}, null, 8, ["data", "data-aart"])) : D("", !0)
|
|
2804
|
+
], 8, Nn));
|
|
2799
2805
|
}
|
|
2800
|
-
}), Gn = ["data-block"],
|
|
2806
|
+
}), Gn = ["data-block"], Yn = /* @__PURE__ */ J({
|
|
2801
2807
|
__name: "index",
|
|
2802
2808
|
props: {
|
|
2803
2809
|
item: {},
|
|
@@ -2809,16 +2815,16 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2809
2815
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
2810
2816
|
"data-block": x(dt)
|
|
2811
2817
|
}, [
|
|
2812
|
-
|
|
2818
|
+
K(Ne, {
|
|
2813
2819
|
"data-content": o.item.id,
|
|
2814
2820
|
data: o.item.content
|
|
2815
2821
|
}, null, 8, ["data-content", "data"])
|
|
2816
2822
|
], 8, Gn));
|
|
2817
2823
|
}
|
|
2818
|
-
}),
|
|
2824
|
+
}), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, Kn = { key: 2 }, jn = {
|
|
2819
2825
|
key: 3,
|
|
2820
2826
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
2821
|
-
},
|
|
2827
|
+
}, Vn = /* @__PURE__ */ J({
|
|
2822
2828
|
__name: "index",
|
|
2823
2829
|
props: {
|
|
2824
2830
|
sub: {},
|
|
@@ -2828,23 +2834,23 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2828
2834
|
setup(e) {
|
|
2829
2835
|
const t = e, o = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((l, i) => i === r.length - 1 ? l : ""))), a = A(() => t.width ? `${t.width}em` : "");
|
|
2830
2836
|
return (n, r) => (s(), d("span", {
|
|
2831
|
-
class:
|
|
2832
|
-
style:
|
|
2837
|
+
class: ae(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
|
|
2838
|
+
style: Y({ width: a.value }),
|
|
2833
2839
|
"data-block": x(Ee)
|
|
2834
2840
|
}, [
|
|
2835
|
-
(s(!0), d(
|
|
2836
|
-
i ? (s(), d("span",
|
|
2837
|
-
l[0] ? (s(), d("span",
|
|
2838
|
-
l[1] ? (s(), d("span",
|
|
2839
|
-
l[2] ? (s(), d("span",
|
|
2841
|
+
(s(!0), d(E, null, X(o.value, (l, i) => (s(), d(E, null, [
|
|
2842
|
+
i ? (s(), d("span", Qn, " - ")) : D("", !0),
|
|
2843
|
+
l[0] ? (s(), d("span", Un, V(l[0]), 1)) : D("", !0),
|
|
2844
|
+
l[1] ? (s(), d("span", Kn, "(" + V(l[1]) + ")", 1)) : D("", !0),
|
|
2845
|
+
l[2] ? (s(), d("span", jn, V(l[2]), 1)) : D("", !0)
|
|
2840
2846
|
], 64))), 256))
|
|
2841
|
-
], 14,
|
|
2847
|
+
], 14, qn));
|
|
2842
2848
|
}
|
|
2843
2849
|
}), Xn = {
|
|
2844
2850
|
components: {
|
|
2845
2851
|
choice: Bl,
|
|
2846
2852
|
choiceSheet: Hl,
|
|
2847
|
-
decide:
|
|
2853
|
+
decide: Gl,
|
|
2848
2854
|
decideSheet: Zl,
|
|
2849
2855
|
fill: on,
|
|
2850
2856
|
fillSheet: cn,
|
|
@@ -2857,9 +2863,9 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2857
2863
|
synthesis: Ln,
|
|
2858
2864
|
synthesisSheet: Mn,
|
|
2859
2865
|
art: An,
|
|
2860
|
-
artSheet:
|
|
2861
|
-
notArea:
|
|
2862
|
-
Sub:
|
|
2866
|
+
artSheet: Wn,
|
|
2867
|
+
notArea: Yn,
|
|
2868
|
+
Sub: Vn
|
|
2863
2869
|
},
|
|
2864
2870
|
props: {
|
|
2865
2871
|
data: {
|
|
@@ -2888,7 +2894,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2888
2894
|
dbclick: null
|
|
2889
2895
|
},
|
|
2890
2896
|
setup(e, { emit: t }) {
|
|
2891
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", a = Object.values(Ft), n =
|
|
2897
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", a = Object.values(Ft), n = G(""), r = A(() => {
|
|
2892
2898
|
const _ = o ? {
|
|
2893
2899
|
choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2894
2900
|
fillSheet: [p.fill, p.fill_english]
|
|
@@ -2896,57 +2902,57 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2896
2902
|
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2897
2903
|
fill: [p.fill, p.fill_english]
|
|
2898
2904
|
};
|
|
2899
|
-
return Object.keys(p).reduce((
|
|
2900
|
-
}), l = A(() => [
|
|
2905
|
+
return Object.keys(p).reduce((C, v) => ({ ...C, [p[v]]: Object.keys(_).find((z) => _[z].includes(p[v])) || `${v}${o}` }), {});
|
|
2906
|
+
}), l = A(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), i = A(() => {
|
|
2901
2907
|
let _ = [];
|
|
2902
|
-
return e.data.children.forEach((
|
|
2903
|
-
let
|
|
2904
|
-
(
|
|
2908
|
+
return e.data.children.forEach((C) => {
|
|
2909
|
+
let v = _[_.length - 1];
|
|
2910
|
+
(C.polymerId || a.includes(e.data.problemType)) && a.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !== I.choice_1 || C.style[y[e.layout.mode].choice_b] === I.portrait) ? (!v || v.type !== "polymer" || v.polymerId !== C.polymerId) && (_.push({
|
|
2905
2911
|
type: "polymer",
|
|
2906
|
-
problemType:
|
|
2907
|
-
polymerId:
|
|
2908
|
-
styleInfo:
|
|
2912
|
+
problemType: C.problemType,
|
|
2913
|
+
polymerId: C.polymerId,
|
|
2914
|
+
styleInfo: C.polymerId ? C.style : e.data.style,
|
|
2909
2915
|
children: [],
|
|
2910
2916
|
rawChildren: e.data.rawChildren || []
|
|
2911
|
-
}),
|
|
2917
|
+
}), v = _[_.length - 1]) : (!v || v.type !== "base") && (_.push({
|
|
2912
2918
|
type: "base",
|
|
2913
2919
|
children: []
|
|
2914
|
-
}),
|
|
2915
|
-
}), _ = _.map((
|
|
2916
|
-
var
|
|
2917
|
-
if (
|
|
2918
|
-
const
|
|
2919
|
-
if (
|
|
2920
|
-
const B =
|
|
2921
|
-
return [...Array(Math.ceil(
|
|
2922
|
-
...
|
|
2920
|
+
}), v = _[_.length - 1]), v.children.push(C);
|
|
2921
|
+
}), _ = _.map((C) => {
|
|
2922
|
+
var v;
|
|
2923
|
+
if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === I.choice_3) {
|
|
2924
|
+
const z = Math.floor(e.width / (Math.max(...C.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((v = C.children[0]) == null ? void 0 : v.polymerId) || ""]) * 14 + 20));
|
|
2925
|
+
if (C.children.length > z * 5) {
|
|
2926
|
+
const B = C.children.length % 4 > 4 ? 5 : 4;
|
|
2927
|
+
return [...Array(Math.ceil(C.children.length / (z * B))).keys()].map((me, he) => ({
|
|
2928
|
+
...C,
|
|
2923
2929
|
groupIndex: he,
|
|
2924
|
-
children:
|
|
2930
|
+
children: C.children.slice(he * z * B, (he + 1) * z * B)
|
|
2925
2931
|
}));
|
|
2926
2932
|
} else
|
|
2927
|
-
return
|
|
2933
|
+
return C;
|
|
2928
2934
|
} else
|
|
2929
|
-
return
|
|
2935
|
+
return C;
|
|
2930
2936
|
}).flat(), _;
|
|
2931
2937
|
}), c = A(() => {
|
|
2932
2938
|
let _ = {};
|
|
2933
|
-
return e.data.children.forEach((
|
|
2934
|
-
|
|
2939
|
+
return e.data.children.forEach((C) => {
|
|
2940
|
+
C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
|
|
2935
2941
|
}), _;
|
|
2936
2942
|
}), u = A(() => {
|
|
2937
2943
|
if (a.includes(e.data.problemType)) {
|
|
2938
|
-
const _ = (e.data.rawChildren || e.data.children).map((
|
|
2944
|
+
const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
|
|
2939
2945
|
return { [`h${e.data.id}`]: Math.max(..._) };
|
|
2940
2946
|
} else
|
|
2941
2947
|
return Object.keys(c.value).map((_) => {
|
|
2942
|
-
const
|
|
2948
|
+
const C = (e.data.rawChildren || e.data.children).filter((v) => v.polymerId === _).map((v) => v.subStr.length);
|
|
2943
2949
|
return {
|
|
2944
|
-
[_]: Math.max(...
|
|
2950
|
+
[_]: Math.max(...C)
|
|
2945
2951
|
};
|
|
2946
|
-
}).reduce((_,
|
|
2952
|
+
}).reduce((_, C) => ({ ..._, ...C }), {});
|
|
2947
2953
|
});
|
|
2948
2954
|
return {
|
|
2949
|
-
Gps_cls:
|
|
2955
|
+
Gps_cls: k,
|
|
2950
2956
|
hoverActive: n,
|
|
2951
2957
|
ModuleTag: o,
|
|
2952
2958
|
ChoiceType: l,
|
|
@@ -2955,78 +2961,78 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
2955
2961
|
SubWidthInfo: u,
|
|
2956
2962
|
ComputName: (_) => _.problemType ? r.value[_.problemType] : "notArea",
|
|
2957
2963
|
ComputAbs: (_) => o && [p.slove, p.art].includes(_.problemType),
|
|
2958
|
-
ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] ===
|
|
2964
|
+
ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === I.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
|
|
2959
2965
|
ComputPolymerStyle: (_) => {
|
|
2960
|
-
var he,
|
|
2961
|
-
let
|
|
2962
|
-
const
|
|
2966
|
+
var he, ie;
|
|
2967
|
+
let C = {};
|
|
2968
|
+
const v = Math.max(...(_.rawChildren || _.children).map((_e) => _e.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, z = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((_e) => _e.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), B = Math.min(z, e.data.style[y[e.layout.mode].choice_d] || 10), me = (e.width - v * B) / (B - 1) - 10;
|
|
2963
2969
|
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2964
|
-
case
|
|
2965
|
-
_.styleInfo[y[e.layout.mode].choice_b] ===
|
|
2970
|
+
case I.choice_1:
|
|
2971
|
+
_.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (C = {
|
|
2966
2972
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2967
2973
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2968
2974
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
|
|
2969
|
-
"column-gap": `${
|
|
2975
|
+
"column-gap": `${me}px`
|
|
2970
2976
|
});
|
|
2971
2977
|
break;
|
|
2972
|
-
case
|
|
2973
|
-
|
|
2978
|
+
case I.choice_3:
|
|
2979
|
+
C = {
|
|
2974
2980
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2975
2981
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
|
|
2976
|
-
}, _.styleInfo[y[e.layout.mode].choice_b] ===
|
|
2977
|
-
...
|
|
2982
|
+
}, _.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (C = {
|
|
2983
|
+
...C,
|
|
2978
2984
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2979
|
-
"column-gap": `${
|
|
2985
|
+
"column-gap": `${me}px`
|
|
2980
2986
|
});
|
|
2981
2987
|
break;
|
|
2982
2988
|
}
|
|
2983
|
-
return
|
|
2989
|
+
return C;
|
|
2984
2990
|
},
|
|
2985
|
-
ComputPolymerItemStyle: (_,
|
|
2986
|
-
var
|
|
2987
|
-
if (a.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] ===
|
|
2988
|
-
const
|
|
2989
|
-
if (!((
|
|
2991
|
+
ComputPolymerItemStyle: (_, C) => {
|
|
2992
|
+
var v;
|
|
2993
|
+
if (a.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === I.choice_2) {
|
|
2994
|
+
const z = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((v = _.children[0]) == null ? void 0 : v.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (z * _.style[y[e.layout.mode].choice_c] + 10)), me = (e.width - z * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
|
|
2995
|
+
if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
|
|
2990
2996
|
return {
|
|
2991
|
-
"margin-right": `${
|
|
2997
|
+
"margin-right": `${me}px`
|
|
2992
2998
|
};
|
|
2993
2999
|
}
|
|
2994
3000
|
return {};
|
|
2995
3001
|
},
|
|
2996
|
-
ComputStyle: (_,
|
|
2997
|
-
var
|
|
2998
|
-
let
|
|
3002
|
+
ComputStyle: (_, C) => {
|
|
3003
|
+
var z;
|
|
3004
|
+
let v = {};
|
|
2999
3005
|
if (!o)
|
|
3000
|
-
return
|
|
3006
|
+
return v;
|
|
3001
3007
|
if (a.includes(_.problemType)) {
|
|
3002
3008
|
let B = {};
|
|
3003
3009
|
if (Object.values(Lt).includes(e.data.problemType)) {
|
|
3004
|
-
const
|
|
3005
|
-
B =
|
|
3010
|
+
const me = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((z = e.data.children[0]) == null ? void 0 : z.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / me), e.data.style[y[e.layout.mode].choice_d] || 10);
|
|
3011
|
+
B = C % he ? { minWidth: `${me}px`, marginLeft: `${(e.width - me * he) / (he - 1) - 5}px` } : { minWidth: `${me}px` };
|
|
3006
3012
|
}
|
|
3007
|
-
|
|
3008
|
-
...
|
|
3013
|
+
v = {
|
|
3014
|
+
...v,
|
|
3009
3015
|
display: "inline-flex",
|
|
3010
3016
|
...B
|
|
3011
3017
|
};
|
|
3012
3018
|
} else
|
|
3013
|
-
[p.fill, p.fill_english].includes(_.problemType) && (
|
|
3014
|
-
display: _.style[y[e.layout.mode].fill_c] ===
|
|
3019
|
+
[p.fill, p.fill_english].includes(_.problemType) && (v = {
|
|
3020
|
+
display: _.style[y[e.layout.mode].fill_c] === I.fill_1 && typeof _.order != "number" ? "flex" : "inline-flex",
|
|
3015
3021
|
alignItems: "flex-end",
|
|
3016
3022
|
width: `calc(${100 / _.style[y[e.layout.mode].fill_d][_.order || 0]}% - 6px)`
|
|
3017
3023
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3018
3024
|
});
|
|
3019
|
-
return
|
|
3025
|
+
return v;
|
|
3020
3026
|
},
|
|
3021
3027
|
ComputBlock: (_) => {
|
|
3022
|
-
const
|
|
3023
|
-
if (o && (
|
|
3024
|
-
return
|
|
3028
|
+
const C = [...a, p.fill, p.fill_english];
|
|
3029
|
+
if (o && (C.includes(_.problemType) || typeof _.groupIndex == "number"))
|
|
3030
|
+
return ke;
|
|
3025
3031
|
},
|
|
3026
|
-
ComputPayload: (_,
|
|
3032
|
+
ComputPayload: (_, C) => {
|
|
3027
3033
|
switch (_.problemType) {
|
|
3028
3034
|
case p.slove:
|
|
3029
|
-
return { isFirst: !
|
|
3035
|
+
return { isFirst: !C };
|
|
3030
3036
|
default:
|
|
3031
3037
|
return {};
|
|
3032
3038
|
}
|
|
@@ -3037,51 +3043,51 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
|
|
|
3037
3043
|
handleHoverOut: (_) => {
|
|
3038
3044
|
n.value = "";
|
|
3039
3045
|
},
|
|
3040
|
-
handleClick: (_,
|
|
3041
|
-
e.data.isPolymer || (_.stopPropagation(), t("click",
|
|
3046
|
+
handleClick: (_, C) => {
|
|
3047
|
+
e.data.isPolymer || (_.stopPropagation(), t("click", C));
|
|
3042
3048
|
},
|
|
3043
|
-
handleDblClick: (_,
|
|
3044
|
-
e.data.isPolymer || (_.stopPropagation(), t("dbclick",
|
|
3049
|
+
handleDblClick: (_, C) => {
|
|
3050
|
+
e.data.isPolymer || (_.stopPropagation(), t("dbclick", C));
|
|
3045
3051
|
}
|
|
3046
3052
|
};
|
|
3047
3053
|
}
|
|
3048
|
-
},
|
|
3049
|
-
function
|
|
3054
|
+
}, Jn = ["data-block"], Zn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], es = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ts = { key: 0 };
|
|
3055
|
+
function os(e, t, o, a, n, r) {
|
|
3050
3056
|
const l = Ht("Sub");
|
|
3051
|
-
return s(!0), d(
|
|
3057
|
+
return s(!0), d(E, null, X(a.GroupData, (i) => (s(), d(E, null, [
|
|
3052
3058
|
i.type === "polymer" ? (s(), d("div", {
|
|
3053
3059
|
key: 0,
|
|
3054
3060
|
"data-block": a.ComputBlock(i),
|
|
3055
|
-
class:
|
|
3056
|
-
style:
|
|
3061
|
+
class: ae([...a.ComputPolymerCls(i)]),
|
|
3062
|
+
style: Y(a.ComputPolymerStyle(i))
|
|
3057
3063
|
}, [
|
|
3058
|
-
(s(!0), d(
|
|
3064
|
+
(s(!0), d(E, null, X(i.children, (c, u) => {
|
|
3059
3065
|
var m;
|
|
3060
3066
|
return s(), d("div", {
|
|
3061
|
-
class:
|
|
3062
|
-
style:
|
|
3067
|
+
class: ae(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3068
|
+
style: Y(a.ComputPolymerItemStyle(c, u)),
|
|
3063
3069
|
"data-tag": c.__tag__,
|
|
3064
3070
|
"data-block": a.ComputBlock(c),
|
|
3065
3071
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
3066
3072
|
onMouseenter: (O) => a.handleHoverIn(c),
|
|
3067
3073
|
onMouseleave: (O) => a.handleHoverOut(c)
|
|
3068
3074
|
}, [
|
|
3069
|
-
c.problemType ? (s(),
|
|
3075
|
+
c.problemType ? (s(), U(l, {
|
|
3070
3076
|
key: 0,
|
|
3071
3077
|
sub: c.sub,
|
|
3072
3078
|
isFull: !!a.ModuleTag,
|
|
3073
3079
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0,
|
|
3074
|
-
class:
|
|
3075
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3076
|
-
(s(),
|
|
3077
|
-
], 46,
|
|
3080
|
+
class: ae(["sub_item", a.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
|
|
3081
|
+
}, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
|
|
3082
|
+
(s(), U(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), null, 16))
|
|
3083
|
+
], 46, Zn);
|
|
3078
3084
|
}), 256))
|
|
3079
|
-
], 14,
|
|
3085
|
+
], 14, Jn)) : (s(!0), d(E, { key: 1 }, X(i.children, (c, u) => {
|
|
3080
3086
|
var m;
|
|
3081
|
-
return s(), d(
|
|
3082
|
-
|
|
3083
|
-
class:
|
|
3084
|
-
style:
|
|
3087
|
+
return s(), d(E, null, [
|
|
3088
|
+
f("div", {
|
|
3089
|
+
class: ae(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3090
|
+
style: Y(a.ComputStyle(c, u)),
|
|
3085
3091
|
"data-tag": c.__tag__,
|
|
3086
3092
|
"data-block": a.ComputBlock(c),
|
|
3087
3093
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
@@ -3090,15 +3096,15 @@ function ts(e, t, o, a, n, r) {
|
|
|
3090
3096
|
onMouseenter: (O) => a.handleHoverIn(c),
|
|
3091
3097
|
onMouseleave: (O) => a.handleHoverOut(c)
|
|
3092
3098
|
}, [
|
|
3093
|
-
c.problemType && !a.ComputAbs(c) ? (s(),
|
|
3099
|
+
c.problemType && !a.ComputAbs(c) ? (s(), U(l, {
|
|
3094
3100
|
key: 0,
|
|
3095
3101
|
sub: c.sub,
|
|
3096
3102
|
isFull: !!a.ModuleTag,
|
|
3097
3103
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
|
|
3098
|
-
}, null, 8, ["sub", "isFull", "width"])) :
|
|
3099
|
-
(s(),
|
|
3104
|
+
}, null, 8, ["sub", "isFull", "width"])) : D("", !0),
|
|
3105
|
+
(s(), U(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), {
|
|
3100
3106
|
default: It(() => [
|
|
3101
|
-
|
|
3107
|
+
K(l, {
|
|
3102
3108
|
sub: c.sub,
|
|
3103
3109
|
isFull: !!a.ModuleTag,
|
|
3104
3110
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
|
|
@@ -3106,16 +3112,16 @@ function ts(e, t, o, a, n, r) {
|
|
|
3106
3112
|
]),
|
|
3107
3113
|
_: 2
|
|
3108
3114
|
}, 1040))
|
|
3109
|
-
], 46,
|
|
3110
|
-
c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div",
|
|
3115
|
+
], 46, es),
|
|
3116
|
+
c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) : D("", !0)
|
|
3111
3117
|
], 64);
|
|
3112
3118
|
}), 256))
|
|
3113
3119
|
], 64))), 256);
|
|
3114
3120
|
}
|
|
3115
|
-
const Ye = /* @__PURE__ */
|
|
3116
|
-
const a = N(
|
|
3121
|
+
const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, o) => {
|
|
3122
|
+
const a = N(se(`${k.item}${e._sub}`, t));
|
|
3117
3123
|
return !(a.top >= o.top + o.height || a.top + a.height < o.top);
|
|
3118
|
-
},
|
|
3124
|
+
}, ce = (e, t, o = !1) => !e || !t ? null : {
|
|
3119
3125
|
x: e.x - t.x,
|
|
3120
3126
|
y: e.y - t.y + (o ? 1 : 0),
|
|
3121
3127
|
width: e.width,
|
|
@@ -3135,7 +3141,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3135
3141
|
width: r.width,
|
|
3136
3142
|
height: l - (a ? 2 : 0)
|
|
3137
3143
|
} : null;
|
|
3138
|
-
},
|
|
3144
|
+
}, ne = (e, t = !1) => {
|
|
3139
3145
|
if (!e)
|
|
3140
3146
|
return null;
|
|
3141
3147
|
const o = t ? Nt : 0, a = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -3145,80 +3151,80 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3145
3151
|
width: Math.round(a.width * Fe + o * 2),
|
|
3146
3152
|
height: Math.round(a.height * Fe + o * 2)
|
|
3147
3153
|
};
|
|
3148
|
-
}, Bt = (e, t =
|
|
3149
|
-
const o =
|
|
3154
|
+
}, Bt = (e, t = k.en_num) => {
|
|
3155
|
+
const o = se(t);
|
|
3150
3156
|
if (!o)
|
|
3151
3157
|
return null;
|
|
3152
3158
|
const a = {
|
|
3153
3159
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3154
|
-
area:
|
|
3155
|
-
list:
|
|
3160
|
+
area: ce(N(o), N(e.pageDom[0])),
|
|
3161
|
+
list: Te(k.en_num_group, o).map((n) => Te(k.en_num_item, n).map((r) => ce(N(r), N(e.pageDom[0]), !0)))
|
|
3156
3162
|
};
|
|
3157
3163
|
return {
|
|
3158
3164
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3159
3165
|
yRowOffset: Math.round((a.list[1][0].y - a.list[0][0].y - a.list[0][0].height) * Fe),
|
|
3160
|
-
firstChoicePosition:
|
|
3166
|
+
firstChoicePosition: ne(a.list[0][0]),
|
|
3161
3167
|
crosswised: !0,
|
|
3162
|
-
choiceQuestionPosition:
|
|
3168
|
+
choiceQuestionPosition: ne(a.area),
|
|
3163
3169
|
choiceQuestionCount: a.list.length,
|
|
3164
3170
|
xColOffset: Math.round((a.list[0][1].x - a.list[0][0].x - a.list[0][0].width) * Fe),
|
|
3165
3171
|
questionNOList: [...Array(a.list.length).keys()].map((n, r) => r + 1)
|
|
3166
3172
|
};
|
|
3167
|
-
},
|
|
3173
|
+
}, ns = (e) => ({
|
|
3168
3174
|
cardSizeType: po[e.layout.paper],
|
|
3169
3175
|
cardColumnCount: e.layout.column,
|
|
3170
3176
|
cardColumnCount2: e.layout.backColumn,
|
|
3171
3177
|
doubleCard: !0,
|
|
3172
|
-
paperWidth: Math.round(
|
|
3173
|
-
paperHeight: Math.round(
|
|
3174
|
-
}),
|
|
3178
|
+
paperWidth: Math.round(g[e.layout.paper].width * Fe),
|
|
3179
|
+
paperHeight: Math.round(g[e.layout.paper].height * Fe)
|
|
3180
|
+
}), ss = (e) => {
|
|
3175
3181
|
const t = N(e.pageDom[0]), o = N(e.pageDom[1]), a = (n) => {
|
|
3176
3182
|
var l;
|
|
3177
3183
|
const r = e.layout.backColumn > 2 ? {
|
|
3178
|
-
trdLeftTopPos:
|
|
3179
|
-
trdLeftBottomPos:
|
|
3184
|
+
trdLeftTopPos: ne(ce(N(Te(`${k.point}t`, e.pageDom[n])[1]), N(e.pageDom[n]))),
|
|
3185
|
+
trdLeftBottomPos: ne(ce(N(Te(`${k.point}b`, e.pageDom[n])[1]), N(e.pageDom[n])))
|
|
3180
3186
|
} : {};
|
|
3181
3187
|
return (l = ze.find((i) => i.code === e.layout.paper)) != null && l.isMultCol ? {
|
|
3182
|
-
secLeftTopPos:
|
|
3183
|
-
secLeftBottomPos:
|
|
3188
|
+
secLeftTopPos: ne(ce(N(Te(`${k.point}t`, e.pageDom[n])[0]), N(e.pageDom[n]))),
|
|
3189
|
+
secLeftBottomPos: ne(ce(N(Te(`${k.point}b`, e.pageDom[n])[0]), N(e.pageDom[n]))),
|
|
3184
3190
|
...r
|
|
3185
3191
|
} : null;
|
|
3186
3192
|
};
|
|
3187
3193
|
return {
|
|
3188
3194
|
// 取第一/二页定位点信息
|
|
3189
|
-
leftTopPos:
|
|
3190
|
-
rightTopPos:
|
|
3191
|
-
leftBottomPos:
|
|
3192
|
-
rightBottomPos:
|
|
3195
|
+
leftTopPos: ne(ce(N(se(`${k.point}lt`, e.pageDom[0])), t)),
|
|
3196
|
+
rightTopPos: ne(ce(N(se(`${k.point}rt`, e.pageDom[0])), t)),
|
|
3197
|
+
leftBottomPos: ne(ce(N(se(`${k.point}lb`, e.pageDom[0])), t)),
|
|
3198
|
+
rightBottomPos: ne(ce(N(se(`${k.point}rb`, e.pageDom[0])), t)),
|
|
3193
3199
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3194
3200
|
verticalAuxInfo: [
|
|
3195
|
-
|
|
3196
|
-
|
|
3201
|
+
ne(ce(N(se(`${k.point}l`, e.pageDom[0])), t)),
|
|
3202
|
+
ne(ce(N(se(`${k.point}r`, e.pageDom[0])), t))
|
|
3197
3203
|
],
|
|
3198
3204
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3199
|
-
|
|
3200
|
-
|
|
3205
|
+
ne(ce(N(se(`${k.point}l`, e.pageDom[1])), o)),
|
|
3206
|
+
ne(ce(N(se(`${k.point}r`, e.pageDom[1])), o))
|
|
3201
3207
|
] : null,
|
|
3202
3208
|
auxAnchorInfo: a(0),
|
|
3203
3209
|
auxAnchorInfo2: e.pageDom[1] ? a(1) : null
|
|
3204
3210
|
};
|
|
3205
|
-
},
|
|
3211
|
+
}, is = (e) => {
|
|
3206
3212
|
let t = 10;
|
|
3207
3213
|
if (e.pageDom[1]) {
|
|
3208
|
-
const a =
|
|
3209
|
-
t =
|
|
3214
|
+
const a = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3215
|
+
t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - a.left - a.width;
|
|
3210
3216
|
}
|
|
3211
|
-
let o =
|
|
3212
|
-
return o = { ...o, y: o.y % (
|
|
3217
|
+
let o = ce(N(se(k.page, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]));
|
|
3218
|
+
return o = { ...o, y: o.y % (g[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3213
3219
|
{
|
|
3214
3220
|
// 固定值
|
|
3215
3221
|
choiceQuestionCount: 1,
|
|
3216
3222
|
// 固定值
|
|
3217
3223
|
questionNOList: [1],
|
|
3218
3224
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3219
|
-
choiceQuestionPosition:
|
|
3225
|
+
choiceQuestionPosition: ne(o, !0),
|
|
3220
3226
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3221
|
-
firstChoicePosition:
|
|
3227
|
+
firstChoicePosition: ne(ce(N(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]))),
|
|
3222
3228
|
// 页码点最大值,展开为数组
|
|
3223
3229
|
choiceGridSequenceNOList: ct.filter((a, n) => n < e.pageTotal),
|
|
3224
3230
|
// 排列方向
|
|
@@ -3229,17 +3235,17 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3229
3235
|
xColOffset: Math.round(t * Fe)
|
|
3230
3236
|
}
|
|
3231
3237
|
];
|
|
3232
|
-
},
|
|
3233
|
-
const t =
|
|
3238
|
+
}, rs = (e) => {
|
|
3239
|
+
const t = se(k.lack, e.pageDom[0]);
|
|
3234
3240
|
return t ? {
|
|
3235
3241
|
// 固定值
|
|
3236
3242
|
choiceQuestionCount: 1,
|
|
3237
3243
|
// 固定值
|
|
3238
3244
|
questionNOList: [1],
|
|
3239
3245
|
// 方框业务坐标
|
|
3240
|
-
choiceQuestionPosition:
|
|
3246
|
+
choiceQuestionPosition: ne(ce(N(t), N(e.pageDom[0])), !0),
|
|
3241
3247
|
// 数据坐标
|
|
3242
|
-
firstChoicePosition:
|
|
3248
|
+
firstChoicePosition: ne(ce(N(t), N(e.pageDom[0]))),
|
|
3243
3249
|
// 固定值
|
|
3244
3250
|
choiceGridSequenceNOList: [
|
|
3245
3251
|
"true"
|
|
@@ -3249,28 +3255,28 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3249
3255
|
yRowOffset: 0,
|
|
3250
3256
|
xColOffset: 0
|
|
3251
3257
|
} : null;
|
|
3252
|
-
}, rs = (e) => {
|
|
3253
|
-
let t = re(N(le(C.en_code, e.pageDom[0])), N(e.pageDom[0]));
|
|
3254
|
-
return oe(t);
|
|
3255
3258
|
}, cs = (e) => {
|
|
3256
|
-
|
|
3259
|
+
let t = ce(N(se(k.en_code, e.pageDom[0])), N(e.pageDom[0]));
|
|
3260
|
+
return ne(t);
|
|
3261
|
+
}, ds = (e) => {
|
|
3262
|
+
const t = se(k.write_view, e.pageDom[0]);
|
|
3257
3263
|
if (!t)
|
|
3258
3264
|
return null;
|
|
3259
|
-
const o =
|
|
3265
|
+
const o = Te(k.score_item, t);
|
|
3260
3266
|
return {
|
|
3261
3267
|
id: "0",
|
|
3262
3268
|
problemType: p.slove,
|
|
3263
|
-
position:
|
|
3269
|
+
position: ce(N(t), N(e.pageDom[0])),
|
|
3264
3270
|
scoreList: o.map((a, n) => ({
|
|
3265
|
-
position:
|
|
3271
|
+
position: ce(N(o[n]), N(e.pageDom[0])),
|
|
3266
3272
|
itemPosition: {
|
|
3267
3273
|
width: o[n].offsetWidth
|
|
3268
3274
|
},
|
|
3269
3275
|
score: Math.abs(parseFloat(o[n].innerText))
|
|
3270
3276
|
}))
|
|
3271
3277
|
};
|
|
3272
|
-
},
|
|
3273
|
-
const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], a =
|
|
3278
|
+
}, us = (e, t) => {
|
|
3279
|
+
const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], a = as + Nt, n = (r) => parseFloat(r.toFixed(2));
|
|
3274
3280
|
return t.flat().filter((r) => o.includes(r.problemType) && r.colIndex < 2).map((r) => {
|
|
3275
3281
|
switch (r.problemType) {
|
|
3276
3282
|
case p.fill:
|
|
@@ -3318,83 +3324,83 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3318
3324
|
});
|
|
3319
3325
|
}
|
|
3320
3326
|
}).flat();
|
|
3321
|
-
},
|
|
3327
|
+
}, hs = (e, t) => {
|
|
3322
3328
|
let o = 0, a = {};
|
|
3323
3329
|
return [...Array(e.pageDom.length).keys()].map((n) => {
|
|
3324
3330
|
const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
|
|
3325
3331
|
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((l, i) => r + i < t.length).map((l, i) => {
|
|
3326
|
-
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i],
|
|
3327
|
-
const
|
|
3328
|
-
return
|
|
3332
|
+
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], F = N(h), Z = t[r + i].data.map((L) => L.children.filter((W) => W.problemType)).flat(), te = t[r + i].data.filter((L) => [ve.one_choice, ve.another_choice].includes(L.problemType) && L.children.length).map((L) => {
|
|
3333
|
+
const W = se(`${k.choice}${L.id}`, m);
|
|
3334
|
+
return W ? {
|
|
3329
3335
|
id: `${++o}`,
|
|
3330
3336
|
baseIndex: parseInt(L.children[0]._sub),
|
|
3331
|
-
position:
|
|
3337
|
+
position: ce(N(W), u),
|
|
3332
3338
|
problemType: L.problemType,
|
|
3333
3339
|
isOneChoice: !0,
|
|
3334
|
-
optList:
|
|
3335
|
-
id: `${o}.${
|
|
3336
|
-
position:
|
|
3337
|
-
})).filter((
|
|
3340
|
+
optList: Te(k.fill, W).map((w, M) => ({
|
|
3341
|
+
id: `${o}.${M + 1}`,
|
|
3342
|
+
position: ce(N(w), u)
|
|
3343
|
+
})).filter((w) => w.position)
|
|
3338
3344
|
} : {};
|
|
3339
3345
|
}).filter((L) => L.position);
|
|
3340
|
-
return
|
|
3341
|
-
let
|
|
3346
|
+
return Z.filter((L) => ls(L, m, O)).map((L, W, w) => {
|
|
3347
|
+
let M = {};
|
|
3342
3348
|
a[L._sub] ? a[L._sub] += 1 : a[L._sub] = 1;
|
|
3343
|
-
const
|
|
3349
|
+
const j = se(`${k.item}${L._sub}`, m);
|
|
3344
3350
|
switch (L.problemType) {
|
|
3345
3351
|
case p.choice:
|
|
3346
3352
|
case p.choice_english:
|
|
3347
3353
|
case p.choice_multiple:
|
|
3348
3354
|
case p.cloze:
|
|
3349
|
-
|
|
3355
|
+
M = {
|
|
3350
3356
|
score: L.score,
|
|
3351
|
-
isColumn: L.style[y[e.layout.mode].choice_a] !==
|
|
3352
|
-
optList: L.optList.map((
|
|
3353
|
-
id: `${L._sub}.${
|
|
3354
|
-
position: Pe(
|
|
3355
|
-
})).filter((
|
|
3357
|
+
isColumn: L.style[y[e.layout.mode].choice_a] !== I.choice_2,
|
|
3358
|
+
optList: L.optList.map((v, z) => ({
|
|
3359
|
+
id: `${L._sub}.${z + 1}`,
|
|
3360
|
+
position: Pe(se(`${k.fill}${z}`, j), F, u)
|
|
3361
|
+
})).filter((v) => v.position)
|
|
3356
3362
|
};
|
|
3357
3363
|
break;
|
|
3358
3364
|
case p.decide:
|
|
3359
|
-
|
|
3360
|
-
optList: [0, 1].map((
|
|
3361
|
-
id: `${L._sub}.${
|
|
3362
|
-
position: Pe(
|
|
3363
|
-
})).filter((
|
|
3365
|
+
M = {
|
|
3366
|
+
optList: [0, 1].map((v, z) => ({
|
|
3367
|
+
id: `${L._sub}.${z}`,
|
|
3368
|
+
position: Pe(se(`${k.fill}${z}`, j), F, u)
|
|
3369
|
+
})).filter((v) => v.position)
|
|
3364
3370
|
};
|
|
3365
3371
|
break;
|
|
3366
3372
|
case p.fill:
|
|
3367
3373
|
case p.fill_english:
|
|
3368
|
-
const H =
|
|
3369
|
-
|
|
3370
|
-
children: [L.score].flat().map((
|
|
3371
|
-
id: B.length > 1 ? `${L._sub}.${
|
|
3372
|
-
score:
|
|
3374
|
+
const H = Te(k.fill, j), _ = Te(k.fill_line, j);
|
|
3375
|
+
M = {
|
|
3376
|
+
children: [L.score].flat().map((v, z, B) => ({
|
|
3377
|
+
id: B.length > 1 ? `${L._sub}.${z + 1}` : L._sub,
|
|
3378
|
+
score: v,
|
|
3373
3379
|
problemType: L.problemType,
|
|
3374
3380
|
isHiddenContent: !L.style[y[e.layout.mode].fill_b],
|
|
3375
|
-
position: Pe(
|
|
3376
|
-
scorePosition: Pe(H[
|
|
3377
|
-
answerPosition: Pe(_[
|
|
3378
|
-
})).filter((
|
|
3381
|
+
position: Pe(j, F, u),
|
|
3382
|
+
scorePosition: Pe(H[z], F, u),
|
|
3383
|
+
answerPosition: Pe(_[z], F, u)
|
|
3384
|
+
})).filter((v) => v.position)
|
|
3379
3385
|
};
|
|
3380
3386
|
break;
|
|
3381
3387
|
case p.slove:
|
|
3382
3388
|
case p.easy_slove:
|
|
3383
3389
|
case p.art:
|
|
3384
|
-
const
|
|
3385
|
-
|
|
3386
|
-
scoreList:
|
|
3387
|
-
if (!
|
|
3390
|
+
const C = se(k.score, j);
|
|
3391
|
+
M = {
|
|
3392
|
+
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((v, z) => {
|
|
3393
|
+
if (!v)
|
|
3388
3394
|
return {};
|
|
3389
|
-
const B =
|
|
3395
|
+
const B = Te(k.score_item, v);
|
|
3390
3396
|
return {
|
|
3391
|
-
position: Pe(
|
|
3397
|
+
position: Pe(v, F, u, !0),
|
|
3392
3398
|
itemPosition: {
|
|
3393
3399
|
width: B[0].offsetWidth
|
|
3394
3400
|
},
|
|
3395
|
-
score: B.map((
|
|
3401
|
+
score: B.map((me) => Math.abs(parseFloat(me.innerText)) * (z ? 1 : 10))
|
|
3396
3402
|
};
|
|
3397
|
-
}).filter((
|
|
3403
|
+
}).filter((v) => v.position) : null
|
|
3398
3404
|
};
|
|
3399
3405
|
}
|
|
3400
3406
|
return {
|
|
@@ -3402,16 +3408,16 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3402
3408
|
elId: L.id,
|
|
3403
3409
|
colIndex: a[L._sub],
|
|
3404
3410
|
problemType: L.problemType,
|
|
3405
|
-
position: Pe(
|
|
3406
|
-
...
|
|
3411
|
+
position: Pe(j, F, u, !1, W === w.length - 1 && [p.slove].includes(L.problemType)),
|
|
3412
|
+
...M
|
|
3407
3413
|
};
|
|
3408
|
-
}).concat(
|
|
3414
|
+
}).concat(te).filter((L) => L.position);
|
|
3409
3415
|
});
|
|
3410
3416
|
}).map((n) => n.flat());
|
|
3411
|
-
},
|
|
3417
|
+
}, ps = (e) => {
|
|
3412
3418
|
const t = (a = e, n = !1) => ({
|
|
3413
3419
|
// 块位置
|
|
3414
|
-
sectionPosition:
|
|
3420
|
+
sectionPosition: ne(a.position, !0),
|
|
3415
3421
|
// 块ID,前端生成,同一道题同一个ID
|
|
3416
3422
|
sectionID: a.id,
|
|
3417
3423
|
// 块内序号ID,按切块自增
|
|
@@ -3438,7 +3444,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3438
3444
|
// 单个选项的信息数组
|
|
3439
3445
|
choiceUnitSectionList: e.optList.map((a, n) => ({
|
|
3440
3446
|
...t(a, !0),
|
|
3441
|
-
choicePosition:
|
|
3447
|
+
choicePosition: ne(a.position),
|
|
3442
3448
|
choiceResult: [p.decide].includes(e.problemType) ? ho[n] : ct[n]
|
|
3443
3449
|
}))
|
|
3444
3450
|
}]
|
|
@@ -3454,10 +3460,10 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3454
3460
|
// 每个小题的切图块
|
|
3455
3461
|
singleBlankSectionList: (e.children || [e]).map((a) => ({
|
|
3456
3462
|
...t(a, !0),
|
|
3457
|
-
answerPosition:
|
|
3463
|
+
answerPosition: ne(a.answerPosition, !0),
|
|
3458
3464
|
correctFrame: a.scorePosition ? [{
|
|
3459
|
-
correctSectionPosition:
|
|
3460
|
-
firstBlockPostion:
|
|
3465
|
+
correctSectionPosition: ne(a.scorePosition, !0),
|
|
3466
|
+
firstBlockPostion: ne(a.scorePosition),
|
|
3461
3467
|
gridScoresList: [a.score].flat(),
|
|
3462
3468
|
lineMeanGetScore: !1,
|
|
3463
3469
|
weight: 1
|
|
@@ -3479,8 +3485,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3479
3485
|
...t(e, !0),
|
|
3480
3486
|
answerPosition: null,
|
|
3481
3487
|
correctFrame: (e.scoreList || []).map((a) => ({
|
|
3482
|
-
correctSectionPosition:
|
|
3483
|
-
firstBlockPostion:
|
|
3488
|
+
correctSectionPosition: ne(a.position, !0),
|
|
3489
|
+
firstBlockPostion: ne({ ...a.position, ...a.itemPosition }),
|
|
3484
3490
|
gridScoresList: [a.score].flat(),
|
|
3485
3491
|
lineMeanGetScore: !0,
|
|
3486
3492
|
weight: 1
|
|
@@ -3492,8 +3498,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3492
3498
|
case p.synthesis:
|
|
3493
3499
|
case p.mix:
|
|
3494
3500
|
break;
|
|
3495
|
-
case
|
|
3496
|
-
case
|
|
3501
|
+
case ve.one_choice:
|
|
3502
|
+
case ve.another_choice:
|
|
3497
3503
|
o = {
|
|
3498
3504
|
choiceQuestionPartialSectionList: [{
|
|
3499
3505
|
...t(e),
|
|
@@ -3506,7 +3512,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3506
3512
|
// 单个选项的信息数组
|
|
3507
3513
|
choiceUnitSectionList: e.optList.map((a, n) => ({
|
|
3508
3514
|
...t(a),
|
|
3509
|
-
choicePosition:
|
|
3515
|
+
choicePosition: ne(a.position),
|
|
3510
3516
|
choiceResult: (e.baseIndex + n).toString()
|
|
3511
3517
|
}))
|
|
3512
3518
|
}]
|
|
@@ -3517,7 +3523,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3517
3523
|
...t(e, !e.isOneChoice),
|
|
3518
3524
|
...o
|
|
3519
3525
|
};
|
|
3520
|
-
},
|
|
3526
|
+
}, ms = (e, t) => [...Array(e.pageTotal).keys()].map((o) => ({
|
|
3521
3527
|
// 当前页数
|
|
3522
3528
|
pageIndexID: o + 1,
|
|
3523
3529
|
// 保留字段
|
|
@@ -3534,8 +3540,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3534
3540
|
noAnswerTag: !1
|
|
3535
3541
|
}],
|
|
3536
3542
|
// 按题切块信息
|
|
3537
|
-
cardCuttingSectionList: t[o].map((a) =>
|
|
3538
|
-
})),
|
|
3543
|
+
cardCuttingSectionList: t[o].map((a) => ps(a)).flat()
|
|
3544
|
+
})), ys = (e, t) => {
|
|
3539
3545
|
var a;
|
|
3540
3546
|
const o = N(e.pageDom[0]);
|
|
3541
3547
|
return {
|
|
@@ -3554,8 +3560,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3554
3560
|
// 试卷二维码
|
|
3555
3561
|
cardSerialNumber: {
|
|
3556
3562
|
// 条形码虚线框位置, x, y, width, height
|
|
3557
|
-
encodePictureArea:
|
|
3558
|
-
qrCodePosition:
|
|
3563
|
+
encodePictureArea: ne(ce(N(se(k.art_code, e.pageDom[0])), o), !0),
|
|
3564
|
+
qrCodePosition: ne(ce(N(se(k.art_code, e.pageDom[0])), o)),
|
|
3559
3565
|
// 条形码或二维码,不确定,固定此值
|
|
3560
3566
|
pictureType: "TYPE_QRCODE"
|
|
3561
3567
|
},
|
|
@@ -3563,7 +3569,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3563
3569
|
studentID: {
|
|
3564
3570
|
// 条形码虚线框位置, x, y, width, height
|
|
3565
3571
|
// encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
3566
|
-
encodePictureArea:
|
|
3572
|
+
encodePictureArea: cs(e),
|
|
3567
3573
|
// ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
3568
3574
|
// 固定值
|
|
3569
3575
|
qrCodePosition: null,
|
|
@@ -3577,38 +3583,38 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3577
3583
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
3578
3584
|
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
|
|
3579
3585
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
3580
|
-
absenceInfoIndexList:
|
|
3586
|
+
absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2) : null,
|
|
3581
3587
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
3582
3588
|
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
|
|
3583
3589
|
// 哪些面有选做老师布置题的信息,固定值
|
|
3584
3590
|
onlyAssignInfoList: [],
|
|
3585
3591
|
// 页面布局信息
|
|
3586
|
-
layerType:
|
|
3592
|
+
layerType: ns(e),
|
|
3587
3593
|
// 定位点信息
|
|
3588
|
-
...
|
|
3589
|
-
pottedLineXPos: e.bindWidth ? (a =
|
|
3594
|
+
...ss(e),
|
|
3595
|
+
pottedLineXPos: e.bindWidth ? (a = ne(ce(N(se(k.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
|
|
3590
3596
|
// 页码点信息
|
|
3591
|
-
pageSideAnchorsList:
|
|
3597
|
+
pageSideAnchorsList: is(e),
|
|
3592
3598
|
// 缺考标记
|
|
3593
|
-
absenceMark:
|
|
3599
|
+
absenceMark: rs(e),
|
|
3594
3600
|
// 业务数据
|
|
3595
3601
|
oneFullPageCardList: t
|
|
3596
3602
|
};
|
|
3597
|
-
},
|
|
3598
|
-
const { config: t, data: o } = e, a =
|
|
3603
|
+
}, _s = (e) => {
|
|
3604
|
+
const { config: t, data: o } = e, a = ds(t), n = hs(t, o);
|
|
3599
3605
|
a && n[0].unshift(a);
|
|
3600
|
-
const r =
|
|
3606
|
+
const r = us(t, n), l = ms(t, n), i = ys(t, l), c = Bt(t, k.en_num_view) || {};
|
|
3601
3607
|
return {
|
|
3602
3608
|
engineData: i,
|
|
3603
3609
|
pageTotal: t.pageTotal,
|
|
3604
|
-
format:
|
|
3610
|
+
format: g[t.layout.paper],
|
|
3605
3611
|
localData: r,
|
|
3606
3612
|
extendInfo: { shortCoordinate: c }
|
|
3607
3613
|
};
|
|
3608
|
-
},
|
|
3614
|
+
}, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
|
|
3609
3615
|
key: 0,
|
|
3610
3616
|
class: "layt-moni_err_view"
|
|
3611
|
-
},
|
|
3617
|
+
}, xs = { class: "layt-moni_err_item_msg" }, ks = ["onClick"], Cs = /* @__PURE__ */ J({
|
|
3612
3618
|
__name: "index",
|
|
3613
3619
|
props: {
|
|
3614
3620
|
ColList: {},
|
|
@@ -3618,19 +3624,19 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3618
3624
|
},
|
|
3619
3625
|
emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
|
|
3620
3626
|
setup(e, { emit: t }) {
|
|
3621
|
-
const o = e, a =
|
|
3627
|
+
const o = e, a = G([]);
|
|
3622
3628
|
Ae(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
3623
3629
|
a.value = [], setTimeout(() => {
|
|
3624
3630
|
var u;
|
|
3625
3631
|
o.ColList.forEach((m, O) => {
|
|
3626
3632
|
m.data.map((h) => h.children).flat().filter((h) => [p.slove, p.art].includes(h.problemType) && !h.chunk).forEach((h) => {
|
|
3627
3633
|
var L;
|
|
3628
|
-
const
|
|
3629
|
-
if (!
|
|
3634
|
+
const F = (L = o.ColDom[O].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : L.querySelector(`*[data-xine="${k.score}"]`);
|
|
3635
|
+
if (!F)
|
|
3630
3636
|
return;
|
|
3631
|
-
|
|
3632
|
-
const
|
|
3633
|
-
|
|
3637
|
+
F.classList.remove("err_lack");
|
|
3638
|
+
const Z = window.getComputedStyle(F), te = [...Array.from(F.children)].map((W) => W.offsetWidth).reduce((W, w) => W + w, 0);
|
|
3639
|
+
F.offsetWidth - parseFloat(Z.borderLeft) - parseFloat(Z.borderRight) < te && (a.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
|
|
3634
3640
|
});
|
|
3635
3641
|
});
|
|
3636
3642
|
const l = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
|
|
@@ -3651,55 +3657,55 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
|
|
|
3651
3657
|
var i;
|
|
3652
3658
|
(((i = a.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
|
|
3653
3659
|
};
|
|
3654
|
-
return (l, i) => (s(), d("div",
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
class:
|
|
3660
|
+
return (l, i) => (s(), d("div", fs, [
|
|
3661
|
+
f("div", gs, [
|
|
3662
|
+
f("div", {
|
|
3663
|
+
class: ae(["layt-moni_status", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3658
3664
|
}, null, 2),
|
|
3659
|
-
|
|
3660
|
-
class:
|
|
3665
|
+
f("div", {
|
|
3666
|
+
class: ae(["layt-moni_info", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3661
3667
|
}, [
|
|
3662
|
-
|
|
3663
|
-
|
|
3668
|
+
f("span", bs, [
|
|
3669
|
+
K(ye, {
|
|
3664
3670
|
width: 1.6,
|
|
3665
3671
|
name: a.value.length ? "wrong" : "right"
|
|
3666
3672
|
}, null, 8, ["name"])
|
|
3667
3673
|
]),
|
|
3668
|
-
|
|
3674
|
+
f("span", vs, "排版" + V(a.value.length ? "异常" : "良好"), 1)
|
|
3669
3675
|
], 2),
|
|
3670
|
-
a.value.length ? (s(), d("ul",
|
|
3671
|
-
(s(!0), d(
|
|
3676
|
+
a.value.length ? (s(), d("ul", ws, [
|
|
3677
|
+
(s(!0), d(E, null, X(a.value, (c, u) => (s(), d("li", {
|
|
3672
3678
|
key: u,
|
|
3673
3679
|
class: "layt-moni_err_item"
|
|
3674
3680
|
}, [
|
|
3675
|
-
|
|
3681
|
+
f("span", xs, V(c.msg), 1),
|
|
3676
3682
|
c.fn ? (s(), d("span", {
|
|
3677
3683
|
key: 0,
|
|
3678
3684
|
class: "layt-moni_err_item_fn",
|
|
3679
3685
|
onClick: c.fn
|
|
3680
|
-
},
|
|
3686
|
+
}, V(c.btnTxt || "删除"), 9, ks)) : D("", !0)
|
|
3681
3687
|
]))), 128))
|
|
3682
|
-
])) :
|
|
3688
|
+
])) : D("", !0)
|
|
3683
3689
|
])
|
|
3684
3690
|
]));
|
|
3685
3691
|
}
|
|
3686
3692
|
});
|
|
3687
|
-
const
|
|
3693
|
+
const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
|
|
3688
3694
|
const t = e.parentElement, o = document.createElement("span");
|
|
3689
3695
|
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ut, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
3690
|
-
},
|
|
3696
|
+
}, Ts = (e, t, o, a) => {
|
|
3691
3697
|
let n = null;
|
|
3692
3698
|
if (e.dataset.block === dt && !e.dataset.used) {
|
|
3693
3699
|
const r = window.getComputedStyle(e);
|
|
3694
3700
|
t - parseFloat(r.paddingTop) - parseFloat(r.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
|
|
3695
3701
|
} else
|
|
3696
|
-
e.dataset.block === kt ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block ===
|
|
3702
|
+
e.dataset.block === kt ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${kt}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && a || al.includes(e.tagName.toLowerCase())) && (n = e);
|
|
3697
3703
|
return n;
|
|
3698
3704
|
}, St = (e, t, o) => {
|
|
3699
3705
|
const a = e.textContent || "", n = a.split("").map((c) => `<span>${c}</span>`).join("");
|
|
3700
3706
|
e.innerHTML = n;
|
|
3701
|
-
const r = [...Array.from(e.children)].findIndex((c) =>
|
|
3702
|
-
if (
|
|
3707
|
+
const r = [...Array.from(e.children)].findIndex((c) => ue(c).top - t + c.offsetHeight > o);
|
|
3708
|
+
if (r < 1)
|
|
3703
3709
|
return e.innerHTML = a, e;
|
|
3704
3710
|
const l = document.createElement("span");
|
|
3705
3711
|
l.textContent = a.slice(0, r);
|
|
@@ -3707,65 +3713,65 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3707
3713
|
return i.textContent = a.slice(r), e.innerHTML = "", e.append(l, i), l;
|
|
3708
3714
|
}, st = (e, t, o) => {
|
|
3709
3715
|
const a = nt("", e.parentElement), n = a.findIndex((l) => l === e);
|
|
3710
|
-
let r = a.filter((l, i) =>
|
|
3711
|
-
return r || (r =
|
|
3716
|
+
let r = a.filter((l, i) => ue(l).top + l.offsetHeight - 1 < ue(e).top || i < n && ue(l).top < ue(e).top).reverse()[0];
|
|
3717
|
+
return r || (r = Ve(e), ue(r).top + r.offsetHeight - t > o && (r = st(r, t, o))), r;
|
|
3712
3718
|
}, Tt = (e, t, o, a) => {
|
|
3713
3719
|
const n = (l, i = o) => {
|
|
3714
|
-
var
|
|
3715
|
-
const c = l.map((
|
|
3716
|
-
const
|
|
3720
|
+
var te, L, W;
|
|
3721
|
+
const c = l.map((w) => {
|
|
3722
|
+
const M = ue(w);
|
|
3717
3723
|
return {
|
|
3718
|
-
el:
|
|
3719
|
-
top:
|
|
3720
|
-
left:
|
|
3724
|
+
el: w,
|
|
3725
|
+
top: M.top - t,
|
|
3726
|
+
left: M.left
|
|
3721
3727
|
};
|
|
3722
|
-
}), u = c.filter((
|
|
3728
|
+
}), u = c.filter((w) => w.el.offsetHeight + w.top > i).sort((w, M) => w.top - M.top), m = (te = u.shift()) == null ? void 0 : te.el;
|
|
3723
3729
|
if (!m) {
|
|
3724
|
-
const
|
|
3725
|
-
return (L = l[0].parentElement) == null || L.appendChild(
|
|
3730
|
+
const w = document.createElement("div");
|
|
3731
|
+
return (L = l[0].parentElement) == null || L.appendChild(w), w.style.height = i - (ue(w).top - t) + "px", w;
|
|
3726
3732
|
}
|
|
3727
|
-
const O =
|
|
3728
|
-
if (u.filter((
|
|
3729
|
-
const
|
|
3730
|
-
if (
|
|
3731
|
-
const
|
|
3732
|
-
return n(
|
|
3733
|
+
const O = ue(m), h = O.top - t, F = O.left;
|
|
3734
|
+
if (u.filter((w) => w.top < h + m.offsetHeight && w.top + w.el.offsetHeight - 1 > h && (w.left + w.el.offsetWidth - 1 < F || w.left + 1 > F + m.offsetWidth)).length) {
|
|
3735
|
+
const w = (W = c.filter((M) => M.top < h).pop()) == null ? void 0 : W.el;
|
|
3736
|
+
if (w != null && w.children.length) {
|
|
3737
|
+
const M = nt(w);
|
|
3738
|
+
return n(M, h) || w;
|
|
3733
3739
|
} else
|
|
3734
|
-
return
|
|
3740
|
+
return w ? ue(w).top - t + w.offsetHeight > h ? St(w, t, h) : w : st(m.parentElement, t, h);
|
|
3735
3741
|
} else {
|
|
3736
|
-
const
|
|
3737
|
-
if (h + (parseFloat(
|
|
3742
|
+
const w = getComputedStyle(m);
|
|
3743
|
+
if (h + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > i)
|
|
3738
3744
|
return st(m, t, h);
|
|
3739
|
-
const
|
|
3740
|
-
if (
|
|
3741
|
-
return
|
|
3745
|
+
const M = Ts(m, i - h, i, a);
|
|
3746
|
+
if (M)
|
|
3747
|
+
return Ve(M);
|
|
3742
3748
|
if (m.children.length) {
|
|
3743
|
-
const
|
|
3744
|
-
return n(
|
|
3749
|
+
const j = nt(m);
|
|
3750
|
+
return n(j, i);
|
|
3745
3751
|
} else
|
|
3746
3752
|
return St(m, t, i);
|
|
3747
3753
|
}
|
|
3748
3754
|
}, r = n([e]);
|
|
3749
|
-
return { cut:
|
|
3750
|
-
},
|
|
3755
|
+
return { cut: Ss(r), targetEl: r };
|
|
3756
|
+
}, Is = (e) => {
|
|
3751
3757
|
const { el: t, data: o, column: a, backColumn: n, getColSize: r, change: l } = e;
|
|
3752
3758
|
if (!t || !o.length) {
|
|
3753
3759
|
l([], !0);
|
|
3754
3760
|
return;
|
|
3755
3761
|
}
|
|
3756
3762
|
console.time("layout");
|
|
3757
|
-
const i =
|
|
3763
|
+
const i = ue(t).top;
|
|
3758
3764
|
let c = {}, u = 0, m = 0;
|
|
3759
|
-
const O = (
|
|
3760
|
-
const
|
|
3765
|
+
const O = (w) => {
|
|
3766
|
+
const M = w % (a + n), j = Math.floor(w / (a + n)) * 2 + (M >= a ? 1 : 0), H = r(w, j);
|
|
3761
3767
|
c = {
|
|
3762
3768
|
top: i,
|
|
3763
3769
|
width: parseFloat(H.width),
|
|
3764
3770
|
height: parseFloat(H.height)
|
|
3765
3771
|
};
|
|
3766
3772
|
};
|
|
3767
|
-
let h = [],
|
|
3768
|
-
const
|
|
3773
|
+
let h = [], F = 0;
|
|
3774
|
+
const Z = () => {
|
|
3769
3775
|
O(h.length), t.style.width = `${c.width}px`, h.push({
|
|
3770
3776
|
top: 0,
|
|
3771
3777
|
data: [],
|
|
@@ -3773,111 +3779,111 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3773
3779
|
height: c.height
|
|
3774
3780
|
}), l([...h]);
|
|
3775
3781
|
};
|
|
3776
|
-
|
|
3777
|
-
const
|
|
3778
|
-
const
|
|
3779
|
-
return
|
|
3780
|
-
}, L = (
|
|
3781
|
-
const
|
|
3782
|
-
return
|
|
3783
|
-
},
|
|
3784
|
-
if (
|
|
3782
|
+
Z();
|
|
3783
|
+
const te = (w) => {
|
|
3784
|
+
const M = getComputedStyle(w);
|
|
3785
|
+
return ue(w).top - c.top + parseFloat(M.borderTop) + parseFloat(M.paddingTop) + parseFloat(M.lineHeight) > h[h.length - 1].height;
|
|
3786
|
+
}, L = (w) => {
|
|
3787
|
+
const M = getComputedStyle(w);
|
|
3788
|
+
return ue(w).top + w.offsetHeight - c.top - (w.dataset.block === ke ? 0 : parseFloat(M.paddingBottom) - parseFloat(M.borderBottom)) <= h[h.length - 1].height;
|
|
3789
|
+
}, W = (w = JSON.parse(JSON.stringify(o[F] || {}))) => {
|
|
3790
|
+
if (F >= o.length || !Object.keys(w).length) {
|
|
3785
3791
|
l([...h], !0), console.timeEnd("layout"), h = [], u = 0;
|
|
3786
3792
|
return;
|
|
3787
3793
|
}
|
|
3788
|
-
h[h.length - 1].data.push({ ...
|
|
3789
|
-
const
|
|
3794
|
+
h[h.length - 1].data.push({ ...w }), l([...h]), window.requestAnimationFrame(() => {
|
|
3795
|
+
const M = $t(w.__tag__, t), j = !w.isHidden && ue(M);
|
|
3790
3796
|
let H = null;
|
|
3791
3797
|
if (m) {
|
|
3792
|
-
const _ =
|
|
3793
|
-
h[h.length - 1].top = c.top -
|
|
3798
|
+
const _ = M.querySelector(`*[data-hutkey="${m}"]`), C = ue(_);
|
|
3799
|
+
h[h.length - 1].top = c.top - C.top, h[h.length - 1].height = c.height - h[h.length - 1].top, m = 0;
|
|
3794
3800
|
}
|
|
3795
|
-
if (
|
|
3796
|
-
if (
|
|
3797
|
-
h[h.length - 1].data.pop(),
|
|
3798
|
-
else if (L(
|
|
3799
|
-
|
|
3800
|
-
else if (
|
|
3801
|
-
h[h.length - 1].data.pop(),
|
|
3801
|
+
if (j && j.height + j.top - c.top > h[h.length - 1].height)
|
|
3802
|
+
if (w.problemType)
|
|
3803
|
+
h[h.length - 1].data.pop(), Z(), W({ ...w });
|
|
3804
|
+
else if (L(M))
|
|
3805
|
+
Z(), F++, W();
|
|
3806
|
+
else if (te(M))
|
|
3807
|
+
h[h.length - 1].data.pop(), Z(), W({ ...w });
|
|
3802
3808
|
else {
|
|
3803
|
-
H = Tt(
|
|
3804
|
-
const _ =
|
|
3805
|
-
h[h.length - 1].height =
|
|
3809
|
+
H = Tt(M, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3810
|
+
const _ = M.querySelector(`*[data-content="${w.id}"]`);
|
|
3811
|
+
h[h.length - 1].height = ue(H.cut).top - c.top, Z(), _ != null && _.contains(H.cut) ? (m = Date.now(), H.cut.dataset.hutkey = m, W({ ...w, content: _.innerHTML })) : (h[h.length - 1].data.pop(), W({ ...w }));
|
|
3806
3812
|
}
|
|
3807
3813
|
else {
|
|
3808
|
-
let _ = [],
|
|
3809
|
-
|
|
3810
|
-
const B = $t(
|
|
3814
|
+
let _ = [], C = [];
|
|
3815
|
+
w.children.some((v, z) => {
|
|
3816
|
+
const B = $t(v.__tag__, t), me = ue(B);
|
|
3811
3817
|
if (u) {
|
|
3812
|
-
const he = B.querySelector(`*[data-cutkey="${u}"]`),
|
|
3813
|
-
h[h.length - 1].top = c.top -
|
|
3818
|
+
const he = B.querySelector(`*[data-cutkey="${u}"]`), ie = ue(he);
|
|
3819
|
+
h[h.length - 1].top = c.top - ie.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
|
|
3814
3820
|
}
|
|
3815
|
-
if (
|
|
3821
|
+
if (me.height + me.top - c.top > h[h.length - 1].height) {
|
|
3816
3822
|
if (L(B))
|
|
3817
|
-
_.push(
|
|
3818
|
-
else if (
|
|
3819
|
-
|
|
3823
|
+
_.push(v), C = z < w.children.length - 1 ? w.children.slice(z + 1) : [];
|
|
3824
|
+
else if (te(B))
|
|
3825
|
+
C = w.children.slice(z);
|
|
3820
3826
|
else {
|
|
3821
3827
|
H = Tt(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3822
|
-
const he = B.querySelector(`*[data-content="${
|
|
3828
|
+
const he = B.querySelector(`*[data-content="${v.id}"]`);
|
|
3823
3829
|
if (B === H.targetEl)
|
|
3824
|
-
_.push(
|
|
3830
|
+
_.push(v), C = z < w.children.length - 1 ? w.children.slice(z + 1) : [];
|
|
3825
3831
|
else if (he && he.contains(H.cut))
|
|
3826
|
-
u = Date.now(), H.cut.dataset.cutkey = u,
|
|
3832
|
+
u = Date.now(), H.cut.dataset.cutkey = u, v.content = he.innerHTML, _.push(v), C = [{ ...v, content: he.innerHTML }, ...z < w.children.length - 1 ? w.children.slice(z + 1) : []], h[h.length - 1].height = ue(H.cut).top - c.top;
|
|
3827
3833
|
else {
|
|
3828
|
-
if (!
|
|
3829
|
-
let
|
|
3830
|
-
switch (
|
|
3834
|
+
if (!C.length) {
|
|
3835
|
+
let ie = { ...v };
|
|
3836
|
+
switch (v.problemType) {
|
|
3831
3837
|
case at.slove:
|
|
3832
|
-
const
|
|
3833
|
-
|
|
3838
|
+
const _e = B.querySelector(`*[data-area="${v.id}"]`);
|
|
3839
|
+
_e != null && _e.contains(H.cut) && (u = Date.now(), H.cut.dataset.cutkey = u, v.answerArea = _e.innerHTML), v.chunk += 1;
|
|
3834
3840
|
break;
|
|
3835
3841
|
case at.art:
|
|
3836
|
-
const
|
|
3837
|
-
if (
|
|
3838
|
-
u = Date.now(), H.cut.dataset.cutkey = u,
|
|
3839
|
-
else if (
|
|
3840
|
-
const
|
|
3841
|
-
if (!
|
|
3842
|
-
if (
|
|
3843
|
-
const
|
|
3844
|
-
if (
|
|
3845
|
-
|
|
3846
|
-
const
|
|
3847
|
-
|
|
3842
|
+
const fe = B.querySelector(`*[data-bart="${v.id}"]`), P = H.targetEl.dataset.block === ke && H.targetEl.dataset.size ? H.targetEl : null, $ = B.querySelector(`*[data-aart="${v.id}"]`);
|
|
3843
|
+
if (fe != null && fe.contains(H.cut))
|
|
3844
|
+
u = Date.now(), H.cut.dataset.cutkey = u, v.beforeArt = fe == null ? void 0 : fe.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
|
|
3845
|
+
else if (P) {
|
|
3846
|
+
const S = parseInt(P.dataset.size);
|
|
3847
|
+
if (!v.artBlock)
|
|
3848
|
+
if (v.beforeGuide && v.beforeGuide.length + (v.startAnswerLen ? 0 : 2) - v.startAnswerLen > S) {
|
|
3849
|
+
const Q = B.querySelector(`*[data-guide="${v.id}"]`), we = ue(Q);
|
|
3850
|
+
if (we.height + we.top - c.top > c.height) {
|
|
3851
|
+
Q.innerHTML = v.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
|
|
3852
|
+
const oe = ue(P).top + P.offsetHeight, re = [...Array.from(Q.children)].findIndex((be) => ue(be).top > oe);
|
|
3853
|
+
ie.beforeGuide = v.beforeGuide.substring(0, re), v.beforeGuide = v.beforeGuide.substring(re);
|
|
3848
3854
|
} else
|
|
3849
|
-
|
|
3855
|
+
v.beforeGuide = "";
|
|
3850
3856
|
} else
|
|
3851
|
-
|
|
3852
|
-
|
|
3857
|
+
v.beforeGuide = "";
|
|
3858
|
+
ie.endAnswerLen = S, v.startAnswerLen = S;
|
|
3853
3859
|
} else
|
|
3854
|
-
|
|
3855
|
-
|
|
3860
|
+
$ != null && $.contains(H.cut) ? (u = Date.now(), H.cut.dataset.cutkey = u, v.beforeArt = "", v.beforeGuide = "", v.startAnswerLen = 1, v.endAnswerLen = -1, v.afterArt = $.innerHTML) : H.targetEl === fe ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", v.beforeArt = "") : (fe == null ? void 0 : fe.previousElementSibling) === H.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
|
|
3861
|
+
v.chunk += 1;
|
|
3856
3862
|
break;
|
|
3857
3863
|
}
|
|
3858
|
-
B.contains(H.targetEl) && _.push(
|
|
3864
|
+
B.contains(H.targetEl) && _.push(ie), u && (h[h.length - 1].height = ue(H.cut).top - c.top);
|
|
3859
3865
|
}
|
|
3860
|
-
|
|
3866
|
+
C = [v, ...z < w.children.length - 1 ? w.children.slice(z + 1) : []];
|
|
3861
3867
|
}
|
|
3862
3868
|
}
|
|
3863
3869
|
return !0;
|
|
3864
3870
|
} else
|
|
3865
|
-
_.push(
|
|
3866
|
-
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _,
|
|
3871
|
+
_.push(v);
|
|
3872
|
+
}), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Z(), W({ ...w, isHidden: !0, children: C })) : (l([...h]), F++, W());
|
|
3867
3873
|
}
|
|
3868
3874
|
});
|
|
3869
3875
|
};
|
|
3870
|
-
|
|
3876
|
+
W();
|
|
3871
3877
|
}, Ot = window.CKEDITOR;
|
|
3872
3878
|
Ot.disableAutoInline = !0;
|
|
3873
3879
|
const ht = `dx${Math.random().toString(32).substring(2)}`;
|
|
3874
|
-
function
|
|
3880
|
+
function Ls(e, t) {
|
|
3875
3881
|
return Ot[e](ht, {
|
|
3876
3882
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
3877
3883
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
3878
3884
|
});
|
|
3879
3885
|
}
|
|
3880
|
-
const
|
|
3886
|
+
const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Es = ["disabled", "contentEditable", "id"], Ms = /* @__PURE__ */ J({
|
|
3881
3887
|
__name: "index",
|
|
3882
3888
|
props: {
|
|
3883
3889
|
value: {},
|
|
@@ -3886,8 +3892,8 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3886
3892
|
},
|
|
3887
3893
|
emits: ["change", "focus", "blur"],
|
|
3888
3894
|
setup(e, { emit: t }) {
|
|
3889
|
-
const o = e, a = Rt("ckeditorOrigin", ""), n =
|
|
3890
|
-
Ae(() => o.readonly, () => r()),
|
|
3895
|
+
const o = e, a = Rt("ckeditorOrigin", ""), n = G();
|
|
3896
|
+
Ae(() => o.readonly, () => r()), Xe(() => r());
|
|
3891
3897
|
const r = () => {
|
|
3892
3898
|
if (window.CKEDITOR) {
|
|
3893
3899
|
if (o.readonly) {
|
|
@@ -3895,7 +3901,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3895
3901
|
return;
|
|
3896
3902
|
}
|
|
3897
3903
|
Je(() => {
|
|
3898
|
-
n.value =
|
|
3904
|
+
n.value = Ls("inline", a), n.value && n.value.on("instanceReady", (u) => {
|
|
3899
3905
|
n.value.setData(o.value);
|
|
3900
3906
|
});
|
|
3901
3907
|
});
|
|
@@ -3914,24 +3920,24 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3914
3920
|
}, c = (u) => {
|
|
3915
3921
|
const m = document.createElement("div");
|
|
3916
3922
|
m.innerHTML = u, [...Array.from(m.querySelectorAll("*"))].forEach((h) => {
|
|
3917
|
-
const
|
|
3918
|
-
(
|
|
3923
|
+
const F = window.getComputedStyle(h);
|
|
3924
|
+
(F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && h.remove();
|
|
3919
3925
|
});
|
|
3920
3926
|
const O = (h = m) => {
|
|
3921
|
-
[...Array.from(h.childNodes)].forEach((
|
|
3922
|
-
var
|
|
3923
|
-
if (
|
|
3924
|
-
O(
|
|
3925
|
-
else if (
|
|
3926
|
-
const
|
|
3927
|
-
|
|
3927
|
+
[...Array.from(h.childNodes)].forEach((F) => {
|
|
3928
|
+
var Z;
|
|
3929
|
+
if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
|
|
3930
|
+
O(F);
|
|
3931
|
+
else if (F.nodeType === Node.TEXT_NODE) {
|
|
3932
|
+
const te = document.createElement("span");
|
|
3933
|
+
te.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (te.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (W) => W.length > 5 ? `<span style="word-break: break-all">${W}</span>` : W)), (Z = F.parentElement) == null || Z.replaceChild(te, F);
|
|
3928
3934
|
}
|
|
3929
3935
|
});
|
|
3930
3936
|
};
|
|
3931
3937
|
return O(), m.innerHTML;
|
|
3932
3938
|
};
|
|
3933
|
-
return (u, m) => (s(), d("div",
|
|
3934
|
-
o.readonly ? (s(),
|
|
3939
|
+
return (u, m) => (s(), d("div", Fs, [
|
|
3940
|
+
o.readonly ? (s(), U(Ne, {
|
|
3935
3941
|
key: 1,
|
|
3936
3942
|
data: o.value,
|
|
3937
3943
|
class: "raw_view"
|
|
@@ -3943,14 +3949,14 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3943
3949
|
id: x(ht),
|
|
3944
3950
|
onFocus: i,
|
|
3945
3951
|
onBlur: l
|
|
3946
|
-
}, null, 40,
|
|
3952
|
+
}, null, 40, Es))
|
|
3947
3953
|
]));
|
|
3948
3954
|
}
|
|
3949
3955
|
});
|
|
3950
|
-
const
|
|
3956
|
+
const Ps = /* @__PURE__ */ de(Ms, [["__scopeId", "data-v-1398ac85"]]);
|
|
3951
3957
|
let qe = (e) => {
|
|
3952
3958
|
};
|
|
3953
|
-
const
|
|
3959
|
+
const Ds = {
|
|
3954
3960
|
updated: function(e, t) {
|
|
3955
3961
|
document.body.removeEventListener("click", qe), qe = (o) => {
|
|
3956
3962
|
!e.contains(o.target) && t.value && t.value(o);
|
|
@@ -3961,7 +3967,7 @@ const Ps = {
|
|
|
3961
3967
|
}
|
|
3962
3968
|
};
|
|
3963
3969
|
let ot = null;
|
|
3964
|
-
const
|
|
3970
|
+
const As = {
|
|
3965
3971
|
mounted: (e, t) => {
|
|
3966
3972
|
let o = {}, a = !1, n = !1, r = e.offsetParent, l = {}, i = {};
|
|
3967
3973
|
const c = e.querySelector(".move-target") || e;
|
|
@@ -3982,7 +3988,7 @@ const Ds = {
|
|
|
3982
3988
|
unmounted: () => {
|
|
3983
3989
|
document.removeEventListener("mousemove", ot);
|
|
3984
3990
|
}
|
|
3985
|
-
},
|
|
3991
|
+
}, Ns = ["onMousedown", "data-block"], Bs = ["src"], Os = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, zs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Hs = ["onMousedown"], Rs = ["onMousedown"], Ws = ["disabled", "onMousedown", "data-block"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ys = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, qs = ["onMousedown"], Qs = /* @__PURE__ */ J({
|
|
3986
3992
|
__name: "absItem",
|
|
3987
3993
|
props: {
|
|
3988
3994
|
imgData: {},
|
|
@@ -3992,7 +3998,7 @@ const Ds = {
|
|
|
3992
3998
|
},
|
|
3993
3999
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
3994
4000
|
setup(e, { emit: t }) {
|
|
3995
|
-
const o = e, a =
|
|
4001
|
+
const o = e, a = Ds, n = As, r = [
|
|
3996
4002
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
3997
4003
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
3998
4004
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4001,304 +4007,310 @@ const Ds = {
|
|
|
4001
4007
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4002
4008
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4003
4009
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4004
|
-
], l =
|
|
4005
|
-
...
|
|
4006
|
-
top:
|
|
4007
|
-
}))),
|
|
4008
|
-
...
|
|
4009
|
-
top:
|
|
4010
|
-
}))),
|
|
4011
|
-
|
|
4010
|
+
], l = G({}), i = G(), c = G(0), u = G(0), m = G(), O = G(), h = G({}), F = G(!1), Z = G(), te = G(), L = G(), W = A(() => o.imgData.map((P) => ({
|
|
4011
|
+
...P,
|
|
4012
|
+
top: P.top - Math.floor(P.top / (g[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4013
|
+
}))), w = A(() => o.txtData.map((P) => ({
|
|
4014
|
+
...P,
|
|
4015
|
+
top: P.top - Math.floor(P.top / (g[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4016
|
+
}))), M = A(() => Z.value ? Z.value.split("-")[0] === "img" ? W.value.find(($) => $.key === Z.value) : w.value.find(($) => $.key === Z.value) : null), j = A(() => M.value ? { [M.value.key]: { ...i.value } } : {});
|
|
4017
|
+
Xe(() => {
|
|
4012
4018
|
m.value = document.body.querySelector(".__layout__");
|
|
4013
4019
|
});
|
|
4014
|
-
const
|
|
4015
|
-
i.value = { ...
|
|
4020
|
+
const H = (P) => {
|
|
4021
|
+
i.value = { ...M.value, left: Math.max(P.x, 0), top: Math.max(P.y, 0) }, clearTimeout(O.value), O.value = setTimeout(() => {
|
|
4016
4022
|
var $;
|
|
4017
|
-
(($ =
|
|
4023
|
+
(($ = M.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4018
4024
|
}, 400);
|
|
4019
|
-
},
|
|
4020
|
-
|
|
4021
|
-
},
|
|
4022
|
-
const
|
|
4023
|
-
h.value = { x: $ +
|
|
4024
|
-
},
|
|
4025
|
-
|
|
4026
|
-
const $ =
|
|
4027
|
-
i.value = { ...
|
|
4028
|
-
},
|
|
4029
|
-
|
|
4030
|
-
},
|
|
4031
|
-
var
|
|
4032
|
-
|
|
4033
|
-
},
|
|
4034
|
-
const $ = { x:
|
|
4025
|
+
}, _ = (P) => {
|
|
4026
|
+
F.value = P;
|
|
4027
|
+
}, C = () => {
|
|
4028
|
+
const P = M.value, $ = P.left + P.width / 2, S = P.top + P.height / 2, Q = m.value.getBoundingClientRect() || {};
|
|
4029
|
+
h.value = { x: $ + Q.left, y: S + Q.top }, m.value.addEventListener("mousemove", v), m.value.addEventListener("mouseleave", z), m.value.addEventListener("mouseup", z);
|
|
4030
|
+
}, v = (P) => {
|
|
4031
|
+
P.stopPropagation(), P.preventDefault();
|
|
4032
|
+
const $ = P.clientX - h.value.x, S = h.value.y - P.clientY, Q = Math.atan2(S, $) / (Math.PI / 180);
|
|
4033
|
+
i.value = { ...M.value, rotate: -parseInt(Q.toString()) };
|
|
4034
|
+
}, z = (P) => {
|
|
4035
|
+
P.stopPropagation(), P.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove", v), m.value.removeEventListener("mouseleave", z), m.value.removeEventListener("mouseup", z);
|
|
4036
|
+
}, B = (P, $) => {
|
|
4037
|
+
var S;
|
|
4038
|
+
P.stopPropagation(), c.value = $, l.value = { x: P.clientX, y: P.clientY, ...M.value }, ((S = M.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? m.value.addEventListener("mousemove", me) : m.value.addEventListener("mousemove", he), m.value.addEventListener("mouseleave", ie), m.value.addEventListener("mouseup", ie);
|
|
4039
|
+
}, me = (P) => {
|
|
4040
|
+
const $ = { x: P.clientX - l.value.x, y: P.clientY - l.value.y }, S = { ...M.value }, Q = $.x > $.y ? "width" : "height";
|
|
4035
4041
|
[
|
|
4036
4042
|
// 0
|
|
4037
4043
|
() => {
|
|
4038
|
-
const
|
|
4044
|
+
const oe = {
|
|
4039
4045
|
width: l.value.width - $.x,
|
|
4040
4046
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4041
|
-
}[
|
|
4047
|
+
}[Q], re = {
|
|
4042
4048
|
width: l.value.height * (1 - $.x / l.value.width),
|
|
4043
4049
|
height: l.value.height - $.y
|
|
4044
|
-
}[
|
|
4050
|
+
}[Q];
|
|
4045
4051
|
i.value = {
|
|
4046
|
-
...
|
|
4047
|
-
width:
|
|
4048
|
-
height:
|
|
4049
|
-
left: l.value.left - (
|
|
4050
|
-
top: l.value.top - (
|
|
4052
|
+
...S,
|
|
4053
|
+
width: oe,
|
|
4054
|
+
height: re,
|
|
4055
|
+
left: l.value.left - (oe - l.value.width),
|
|
4056
|
+
top: l.value.top - (re - l.value.height)
|
|
4051
4057
|
};
|
|
4052
4058
|
},
|
|
4053
4059
|
// 1
|
|
4054
4060
|
() => {
|
|
4055
|
-
const
|
|
4061
|
+
const oe = l.value.width * (1 - $.y / l.value.height), re = l.value.height - $.y;
|
|
4056
4062
|
i.value = {
|
|
4057
|
-
...
|
|
4058
|
-
width:
|
|
4059
|
-
height:
|
|
4060
|
-
left: l.value.left - (
|
|
4061
|
-
top: l.value.top - (
|
|
4063
|
+
...S,
|
|
4064
|
+
width: oe,
|
|
4065
|
+
height: re,
|
|
4066
|
+
left: l.value.left - (oe - l.value.width) / 2,
|
|
4067
|
+
top: l.value.top - (re - l.value.height)
|
|
4062
4068
|
};
|
|
4063
4069
|
},
|
|
4064
4070
|
// 2
|
|
4065
4071
|
() => {
|
|
4066
|
-
const
|
|
4072
|
+
const oe = {
|
|
4067
4073
|
width: l.value.height * (1 + $.x / l.value.width),
|
|
4068
4074
|
height: l.value.height - $.y
|
|
4069
|
-
}[
|
|
4075
|
+
}[Q];
|
|
4070
4076
|
i.value = {
|
|
4071
|
-
...
|
|
4077
|
+
...S,
|
|
4072
4078
|
width: {
|
|
4073
4079
|
width: l.value.width + $.x,
|
|
4074
4080
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4075
|
-
}[
|
|
4076
|
-
height:
|
|
4077
|
-
top: l.value.top - (
|
|
4081
|
+
}[Q],
|
|
4082
|
+
height: oe,
|
|
4083
|
+
top: l.value.top - (oe - l.value.height)
|
|
4078
4084
|
};
|
|
4079
4085
|
},
|
|
4080
4086
|
// 3
|
|
4081
4087
|
() => {
|
|
4082
|
-
const
|
|
4088
|
+
const oe = l.value.width - $.x, re = l.value.height * (1 - $.x / l.value.width);
|
|
4083
4089
|
i.value = {
|
|
4084
|
-
...
|
|
4085
|
-
width:
|
|
4086
|
-
height:
|
|
4087
|
-
left: l.value.left - (
|
|
4088
|
-
top: l.value.top - (
|
|
4090
|
+
...S,
|
|
4091
|
+
width: oe,
|
|
4092
|
+
height: re,
|
|
4093
|
+
left: l.value.left - (oe - l.value.width),
|
|
4094
|
+
top: l.value.top - (re - l.value.height) / 2
|
|
4089
4095
|
};
|
|
4090
4096
|
},
|
|
4091
4097
|
// 4
|
|
4092
4098
|
() => {
|
|
4093
|
-
const
|
|
4099
|
+
const oe = l.value.width + $.x, re = l.value.height * (1 + $.x / l.value.width);
|
|
4094
4100
|
i.value = {
|
|
4095
|
-
...
|
|
4096
|
-
width:
|
|
4097
|
-
height:
|
|
4098
|
-
top: l.value.top - (
|
|
4101
|
+
...S,
|
|
4102
|
+
width: oe,
|
|
4103
|
+
height: re,
|
|
4104
|
+
top: l.value.top - (re - l.value.height) / 2
|
|
4099
4105
|
};
|
|
4100
4106
|
},
|
|
4101
4107
|
// 5
|
|
4102
4108
|
() => {
|
|
4103
|
-
const
|
|
4109
|
+
const oe = {
|
|
4104
4110
|
width: l.value.width - $.x,
|
|
4105
4111
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4106
|
-
}[
|
|
4112
|
+
}[Q], re = {
|
|
4107
4113
|
width: l.value.height * (1 - $.x / l.value.width),
|
|
4108
4114
|
height: l.value.height + $.y
|
|
4109
|
-
}[
|
|
4115
|
+
}[Q];
|
|
4110
4116
|
i.value = {
|
|
4111
|
-
...
|
|
4112
|
-
width:
|
|
4113
|
-
height:
|
|
4114
|
-
left: l.value.left - (
|
|
4117
|
+
...S,
|
|
4118
|
+
width: oe,
|
|
4119
|
+
height: re,
|
|
4120
|
+
left: l.value.left - (oe - l.value.width)
|
|
4115
4121
|
};
|
|
4116
4122
|
},
|
|
4117
4123
|
// 6
|
|
4118
4124
|
() => {
|
|
4119
|
-
const
|
|
4125
|
+
const oe = l.value.width * (1 + $.y / l.value.height), re = l.value.height + $.y;
|
|
4120
4126
|
i.value = {
|
|
4121
|
-
...
|
|
4122
|
-
width:
|
|
4123
|
-
height:
|
|
4124
|
-
left: l.value.left - (
|
|
4127
|
+
...S,
|
|
4128
|
+
width: oe,
|
|
4129
|
+
height: re,
|
|
4130
|
+
left: l.value.left - (oe - l.value.width) / 2
|
|
4125
4131
|
};
|
|
4126
4132
|
},
|
|
4127
4133
|
// 7
|
|
4128
4134
|
() => {
|
|
4129
|
-
const
|
|
4135
|
+
const oe = {
|
|
4130
4136
|
width: l.value.width + $.x,
|
|
4131
4137
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4132
|
-
}[
|
|
4138
|
+
}[Q], re = {
|
|
4133
4139
|
width: l.value.height * (1 + $.x / l.value.width),
|
|
4134
4140
|
height: l.value.height + $.y
|
|
4135
|
-
}[
|
|
4141
|
+
}[Q];
|
|
4136
4142
|
i.value = {
|
|
4137
|
-
...
|
|
4138
|
-
width:
|
|
4139
|
-
height:
|
|
4143
|
+
...S,
|
|
4144
|
+
width: oe,
|
|
4145
|
+
height: re
|
|
4140
4146
|
};
|
|
4141
4147
|
}
|
|
4142
4148
|
][c.value]();
|
|
4143
|
-
},
|
|
4144
|
-
const $ = { x:
|
|
4149
|
+
}, he = (P) => {
|
|
4150
|
+
const $ = { x: P.clientX - l.value.x, y: P.clientY - l.value.y }, S = { ...M.value }, Q = [
|
|
4145
4151
|
{
|
|
4146
|
-
...
|
|
4152
|
+
...S,
|
|
4147
4153
|
width: l.value.width - $.x,
|
|
4148
4154
|
height: l.value.height - $.y,
|
|
4149
4155
|
left: l.value.left + $.x,
|
|
4150
4156
|
top: l.value.top + $.y
|
|
4151
4157
|
},
|
|
4152
4158
|
{
|
|
4153
|
-
...
|
|
4159
|
+
...S,
|
|
4154
4160
|
height: l.value.height - $.y,
|
|
4155
4161
|
top: l.value.top + $.y
|
|
4156
4162
|
},
|
|
4157
4163
|
{
|
|
4158
|
-
...
|
|
4164
|
+
...S,
|
|
4159
4165
|
width: l.value.width + $.x,
|
|
4160
4166
|
height: l.value.height - $.y,
|
|
4161
4167
|
top: l.value.top + $.y
|
|
4162
4168
|
},
|
|
4163
4169
|
{
|
|
4164
|
-
...
|
|
4170
|
+
...S,
|
|
4165
4171
|
width: l.value.width - $.x,
|
|
4166
4172
|
left: l.value.left + $.x
|
|
4167
4173
|
},
|
|
4168
4174
|
{
|
|
4169
|
-
...
|
|
4175
|
+
...S,
|
|
4170
4176
|
width: l.value.width + $.x
|
|
4171
4177
|
},
|
|
4172
4178
|
{
|
|
4173
|
-
...
|
|
4179
|
+
...S,
|
|
4174
4180
|
width: l.value.width - $.x,
|
|
4175
4181
|
height: l.value.height + $.y,
|
|
4176
4182
|
left: l.value.left + $.x
|
|
4177
4183
|
},
|
|
4178
4184
|
{
|
|
4179
|
-
...
|
|
4185
|
+
...S,
|
|
4180
4186
|
height: l.value.height + $.y
|
|
4181
4187
|
},
|
|
4182
4188
|
{
|
|
4183
|
-
...
|
|
4189
|
+
...S,
|
|
4184
4190
|
width: l.value.width + $.x,
|
|
4185
4191
|
height: l.value.height + $.y
|
|
4186
4192
|
}
|
|
4187
4193
|
];
|
|
4188
|
-
i.value =
|
|
4189
|
-
},
|
|
4190
|
-
var
|
|
4191
|
-
m.value.removeEventListener("mousemove",
|
|
4192
|
-
},
|
|
4193
|
-
if (!
|
|
4194
|
+
i.value = Q[c.value];
|
|
4195
|
+
}, ie = () => {
|
|
4196
|
+
var P;
|
|
4197
|
+
m.value.removeEventListener("mousemove", me), m.value.removeEventListener("mousemove", he), m.value.removeEventListener("mouseleave", ie), m.value.removeEventListener("mouseup", ie), ((P = M.value) == null ? void 0 : P.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4198
|
+
}, _e = (P) => {
|
|
4199
|
+
if (!P || P === M.value.content) {
|
|
4194
4200
|
u.value++;
|
|
4195
4201
|
return;
|
|
4196
4202
|
}
|
|
4197
|
-
t("changeAbsTxtItem", { ...
|
|
4198
|
-
},
|
|
4199
|
-
var
|
|
4200
|
-
const
|
|
4201
|
-
!
|
|
4203
|
+
t("changeAbsTxtItem", { ...M.value, content: P });
|
|
4204
|
+
}, fe = (P, $) => {
|
|
4205
|
+
var Q;
|
|
4206
|
+
const S = document.body.querySelector(`.cke_editor_${ht}`);
|
|
4207
|
+
!P && ((Q = ($ == null ? void 0 : $.target).dataset) != null && Q.safe || [...te.value, ...L.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (Z.value = P == null ? void 0 : P.key, i.value = P ? { ...P } : null);
|
|
4202
4208
|
};
|
|
4203
|
-
return (
|
|
4204
|
-
(s(!0), d(
|
|
4205
|
-
var
|
|
4209
|
+
return (P, $) => (s(), d(E, null, [
|
|
4210
|
+
(s(!0), d(E, null, X(W.value, (S) => {
|
|
4211
|
+
var Q, we, oe, re, be, b, T;
|
|
4206
4212
|
return ft((s(), d("div", {
|
|
4207
|
-
key:
|
|
4213
|
+
key: S.id,
|
|
4214
|
+
ref_for: !0,
|
|
4215
|
+
ref_key: "imgViewList",
|
|
4216
|
+
ref: te,
|
|
4208
4217
|
"data-safe": "true",
|
|
4209
|
-
class:
|
|
4210
|
-
style:
|
|
4211
|
-
onMousedown: Le((
|
|
4218
|
+
class: ae(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8" : "z-7"]),
|
|
4219
|
+
style: Y({ left: Math.max(((we = j.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((oe = j.value[S.key]) == null ? void 0 : oe.top) || S.top, 0) + "px", width: (((re = j.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = j.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = j.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
|
|
4220
|
+
onMousedown: Le((le) => fe(S), ["stop"]),
|
|
4212
4221
|
"data-block": x(Ee)
|
|
4213
4222
|
}, [
|
|
4214
|
-
|
|
4215
|
-
src:
|
|
4216
|
-
}, null, 8,
|
|
4217
|
-
((
|
|
4218
|
-
|
|
4219
|
-
|
|
4223
|
+
f("img", {
|
|
4224
|
+
src: S.url
|
|
4225
|
+
}, null, 8, Bs),
|
|
4226
|
+
((T = M.value) == null ? void 0 : T.key) === S.key ? (s(), d(E, { key: 0 }, [
|
|
4227
|
+
f("span", Os, [
|
|
4228
|
+
K(ye, {
|
|
4220
4229
|
name: "close",
|
|
4221
4230
|
width: 2,
|
|
4222
4231
|
class: "cursor-pointer",
|
|
4223
|
-
onClick: (
|
|
4232
|
+
onClick: (le) => t("delAbsImgItem", S)
|
|
4224
4233
|
}, null, 8, ["onClick"])
|
|
4225
4234
|
]),
|
|
4226
|
-
|
|
4227
|
-
(s(), d(
|
|
4228
|
-
key:
|
|
4235
|
+
f("div", zs, [
|
|
4236
|
+
(s(), d(E, null, X(8, (le, R) => f("div", {
|
|
4237
|
+
key: le,
|
|
4229
4238
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4230
|
-
style:
|
|
4231
|
-
onMousedown: Le((
|
|
4232
|
-
}, null, 44,
|
|
4239
|
+
style: Y({ ...r[R], transform: "translate(-50%, -50%)" }),
|
|
4240
|
+
onMousedown: Le((ee) => B(ee, R), ["stop"])
|
|
4241
|
+
}, null, 44, Hs)), 64))
|
|
4233
4242
|
]),
|
|
4234
|
-
|
|
4243
|
+
f("span", {
|
|
4235
4244
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4236
|
-
onMousedown: Le(
|
|
4245
|
+
onMousedown: Le(C, ["stop"])
|
|
4237
4246
|
}, [
|
|
4238
|
-
|
|
4247
|
+
K(ye, {
|
|
4239
4248
|
name: "reset",
|
|
4240
4249
|
width: 2
|
|
4241
4250
|
})
|
|
4242
|
-
], 40,
|
|
4243
|
-
], 64)) :
|
|
4244
|
-
], 46,
|
|
4245
|
-
[x(n),
|
|
4246
|
-
[x(a), (
|
|
4251
|
+
], 40, Rs)
|
|
4252
|
+
], 64)) : D("", !0)
|
|
4253
|
+
], 46, Ns)), [
|
|
4254
|
+
[x(n), H],
|
|
4255
|
+
[x(a), (le) => fe(null, le)]
|
|
4247
4256
|
]);
|
|
4248
4257
|
}), 128)),
|
|
4249
|
-
(s(!0), d(
|
|
4250
|
-
var
|
|
4258
|
+
(s(!0), d(E, null, X(w.value, (S) => {
|
|
4259
|
+
var Q, we, oe, re, be, b, T;
|
|
4251
4260
|
return ft((s(), d("div", {
|
|
4252
|
-
key:
|
|
4253
|
-
|
|
4261
|
+
key: S.id,
|
|
4262
|
+
ref_for: !0,
|
|
4263
|
+
ref_key: "txtViewList",
|
|
4264
|
+
ref: L,
|
|
4265
|
+
disabled: F.value,
|
|
4254
4266
|
"data-safe": "true",
|
|
4255
|
-
class:
|
|
4256
|
-
style:
|
|
4257
|
-
onMousedown: Le((
|
|
4267
|
+
class: ae(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8 bg-white" : "z-7"]),
|
|
4268
|
+
style: Y({ left: Math.max(((we = j.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((oe = j.value[S.key]) == null ? void 0 : oe.top) || S.top, 0) + "px", width: (((re = j.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = j.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
|
|
4269
|
+
onMousedown: Le((le) => fe(S), ["stop"]),
|
|
4258
4270
|
"data-block": x(Ee)
|
|
4259
4271
|
}, [
|
|
4260
|
-
(s(),
|
|
4272
|
+
(s(), U(Ps, {
|
|
4261
4273
|
key: u.value,
|
|
4262
4274
|
class: "border-0 relative z-4",
|
|
4263
|
-
readonly: ((
|
|
4264
|
-
value:
|
|
4265
|
-
name:
|
|
4266
|
-
onChange:
|
|
4267
|
-
onFocus: $[0] || ($[0] = (
|
|
4268
|
-
onBlur: $[1] || ($[1] = (
|
|
4275
|
+
readonly: ((b = M.value) == null ? void 0 : b.key) !== S.key,
|
|
4276
|
+
value: S.content,
|
|
4277
|
+
name: S.id.toString(),
|
|
4278
|
+
onChange: _e,
|
|
4279
|
+
onFocus: $[0] || ($[0] = (le) => _(!0)),
|
|
4280
|
+
onBlur: $[1] || ($[1] = (le) => _(!1))
|
|
4269
4281
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4270
|
-
((
|
|
4271
|
-
|
|
4272
|
-
|
|
4282
|
+
((T = M.value) == null ? void 0 : T.key) === S.key ? (s(), d(E, { key: 0 }, [
|
|
4283
|
+
f("span", Gs, [
|
|
4284
|
+
K(ye, {
|
|
4273
4285
|
name: "close",
|
|
4274
4286
|
width: 2,
|
|
4275
4287
|
class: "cursor-pointer",
|
|
4276
|
-
onClick: (
|
|
4288
|
+
onClick: (le) => t("delAbsTxtItem", S)
|
|
4277
4289
|
}, null, 8, ["onClick"])
|
|
4278
4290
|
]),
|
|
4279
|
-
|
|
4280
|
-
(s(), d(
|
|
4281
|
-
key:
|
|
4291
|
+
f("div", Ys, [
|
|
4292
|
+
(s(), d(E, null, X(8, (le, R) => f("div", {
|
|
4293
|
+
key: le,
|
|
4282
4294
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4283
|
-
style:
|
|
4284
|
-
onMousedown: (
|
|
4285
|
-
}, null, 44,
|
|
4295
|
+
style: Y({ ...r[R], transform: "translate(-50%, -50%)" }),
|
|
4296
|
+
onMousedown: (ee) => B(ee, R)
|
|
4297
|
+
}, null, 44, qs)), 64))
|
|
4286
4298
|
])
|
|
4287
|
-
], 64)) :
|
|
4288
|
-
], 46,
|
|
4289
|
-
[x(n),
|
|
4290
|
-
[x(a), (
|
|
4299
|
+
], 64)) : D("", !0)
|
|
4300
|
+
], 46, Ws)), [
|
|
4301
|
+
[x(n), H],
|
|
4302
|
+
[x(a), (le) => fe(null, le)]
|
|
4291
4303
|
]);
|
|
4292
4304
|
}), 128))
|
|
4293
4305
|
], 64));
|
|
4294
4306
|
}
|
|
4295
4307
|
});
|
|
4296
|
-
const
|
|
4308
|
+
const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["viewBox"], js = {
|
|
4297
4309
|
x: "0",
|
|
4298
4310
|
y: "0",
|
|
4299
4311
|
width: "100%",
|
|
4300
4312
|
height: "100%"
|
|
4301
|
-
},
|
|
4313
|
+
}, Vs = ["onClick", "onDblclick"], Xs = ["data-block"], Js = /* @__PURE__ */ J({
|
|
4302
4314
|
__name: "index",
|
|
4303
4315
|
props: {
|
|
4304
4316
|
layout: {},
|
|
@@ -4315,158 +4327,158 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4315
4327
|
emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
|
|
4316
4328
|
setup(e, { emit: t }) {
|
|
4317
4329
|
const o = e;
|
|
4318
|
-
|
|
4319
|
-
const a =
|
|
4320
|
-
...
|
|
4330
|
+
Wt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4331
|
+
const a = G([]), n = G([]), r = G(2), l = G(0), i = G(0), c = G(), u = G([]), m = G([]), O = G([]), h = G([]), F = A(() => o.data.map((b) => ({
|
|
4332
|
+
...b,
|
|
4321
4333
|
__tag__: xt(),
|
|
4322
|
-
rawChildren:
|
|
4323
|
-
children:
|
|
4324
|
-
}))),
|
|
4325
|
-
const
|
|
4326
|
-
return
|
|
4327
|
-
}),
|
|
4328
|
-
var
|
|
4329
|
-
return o.layout.bindFlag && !!((
|
|
4330
|
-
}), L = A(() => o.isFinal ? 0 : 10),
|
|
4331
|
-
width: `${
|
|
4332
|
-
height: `${(
|
|
4333
|
-
})),
|
|
4334
|
-
width: `${
|
|
4335
|
-
height: `${
|
|
4334
|
+
rawChildren: b.children,
|
|
4335
|
+
children: b.children.map((T) => ({ ...T, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: xt() }))
|
|
4336
|
+
}))), Z = A(() => {
|
|
4337
|
+
const b = F.value[F.value.length - 1], T = b.rawChildren[b.rawChildren.length - 1];
|
|
4338
|
+
return j.value && [p.slove].includes(T == null ? void 0 : T.problemType) && T.id;
|
|
4339
|
+
}), te = A(() => {
|
|
4340
|
+
var b;
|
|
4341
|
+
return o.layout.bindFlag && !!((b = ze.find((T) => T.code === o.layout.paper)) != null && b.isMultCol);
|
|
4342
|
+
}), L = A(() => o.isFinal ? 0 : 10), W = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), M = A(() => Math.ceil(w.value / 2) * 2), j = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => j.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), C = A(() => g[o.layout.paper].width - _.value.left - _.value.right), v = A(() => g[o.layout.paper].height - _.value.top - _.value.bottom), z = A(() => (C.value - (i.value ? i.value + S(0) : 0) + S(0)) / o.layout.column - S(0)), B = A(() => ({
|
|
4343
|
+
width: `${g[o.layout.paper].width}px`,
|
|
4344
|
+
height: `${(g[o.layout.paper].height + L.value) * M.value - L.value}px`
|
|
4345
|
+
})), me = A(() => ({
|
|
4346
|
+
width: `${g[o.layout.paper].width}px`,
|
|
4347
|
+
height: `${g[o.layout.paper].height}px`,
|
|
4336
4348
|
padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
|
|
4337
4349
|
marginBottom: `${L.value}px`
|
|
4338
4350
|
})), he = A(() => {
|
|
4339
|
-
var
|
|
4340
|
-
const
|
|
4351
|
+
var T;
|
|
4352
|
+
const b = (T = ze.find((le) => le.code === o.layout.paper)) == null ? void 0 : T.isMultCol;
|
|
4341
4353
|
return {
|
|
4342
|
-
left: `${_.value.left + (i.value ? i.value +
|
|
4354
|
+
left: `${_.value.left + (i.value ? i.value + S(0) : 0)}px`,
|
|
4343
4355
|
top: `${_.value.top}px`,
|
|
4344
|
-
width:
|
|
4356
|
+
width: b ? `${z.value}px` : `${C.value}px`
|
|
4345
4357
|
};
|
|
4346
4358
|
});
|
|
4347
4359
|
Ae(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4348
4360
|
setTimeout(() => {
|
|
4349
|
-
|
|
4361
|
+
re();
|
|
4350
4362
|
}, 100);
|
|
4351
|
-
}, { immediate: !0 }), Ae(() =>
|
|
4352
|
-
i.value =
|
|
4363
|
+
}, { immediate: !0 }), Ae(() => te.value, () => {
|
|
4364
|
+
i.value = te.value ? 100 : 0;
|
|
4353
4365
|
}, { immediate: !0 });
|
|
4354
|
-
const
|
|
4355
|
-
const
|
|
4356
|
-
return
|
|
4357
|
-
},
|
|
4358
|
-
|
|
4359
|
-
},
|
|
4360
|
-
|
|
4361
|
-
},
|
|
4362
|
-
var
|
|
4363
|
-
const
|
|
4366
|
+
const ie = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _e = (b, T) => Math.floor(T / 2) * (o.layout.column + o.layout.backColumn) + T % 2 * o.layout.column + b, fe = (b) => {
|
|
4367
|
+
const T = b % (o.layout.column + o.layout.backColumn);
|
|
4368
|
+
return T >= o.layout.column ? T - o.layout.column : T;
|
|
4369
|
+
}, P = (b, T) => {
|
|
4370
|
+
b ? u.value[T] = b : u.value.splice(T, 1);
|
|
4371
|
+
}, $ = (b, T) => {
|
|
4372
|
+
b ? m.value[T] = b : m.value.splice(T, 1);
|
|
4373
|
+
}, S = (b) => Et[o.layout.mode][o.layout.paper][ie(b)] || 0, Q = (b, T = !1) => (C.value - (i.value ? i.value + S(b) : 0) + S(b)) / ie(b) - S(b) - H.value.left - H.value.right + (T ? H.value.left + H.value.right : 0), we = (b, T) => {
|
|
4374
|
+
var R, ee;
|
|
4375
|
+
const le = b % (o.layout.column + o.layout.backColumn) ? 0 : ((R = O.value[Math.min(T, 1)]) == null ? void 0 : R.offsetHeight) || 0;
|
|
4364
4376
|
return {
|
|
4365
|
-
left: `${_.value.left + (
|
|
4366
|
-
top: `${
|
|
4367
|
-
width: `${
|
|
4368
|
-
height: `${
|
|
4369
|
-
contentHeight: `${(
|
|
4377
|
+
left: `${_.value.left + (T % 2 ? 0 : i.value ? i.value + S(b) : 0) + H.value.left + fe(b) * (Q(b) + S(b) + H.value.left + H.value.right)}px`,
|
|
4378
|
+
top: `${le + _.value.top + (!T && !b ? 0 : H.value.top)}px`,
|
|
4379
|
+
width: `${Q(b)}px`,
|
|
4380
|
+
height: `${v.value - le - (!T && !b ? 0 : H.value.top) - H.value.bottom}px`,
|
|
4381
|
+
contentHeight: `${(ee = a.value[b]) == null ? void 0 : ee.height}px`
|
|
4370
4382
|
};
|
|
4371
|
-
},
|
|
4372
|
-
n.value =
|
|
4373
|
-
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((
|
|
4374
|
-
var
|
|
4375
|
-
!
|
|
4383
|
+
}, oe = (b, T = !1) => {
|
|
4384
|
+
n.value = b.map((le) => ({ ...le })), T && (a.value = [...b], l.value += 1, Je(() => {
|
|
4385
|
+
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((le, R) => {
|
|
4386
|
+
var ee, Se;
|
|
4387
|
+
!le || !le.col || ((ee = a.value[R]) != null && ee.top ? le.col.style.marginTop = `${(Se = a.value[R]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
|
|
4376
4388
|
}), o.isFinal && setTimeout(() => {
|
|
4377
|
-
const
|
|
4389
|
+
const le = _s({
|
|
4378
4390
|
config: {
|
|
4379
4391
|
...o.info,
|
|
4380
4392
|
layout: o.layout,
|
|
4381
|
-
pageTotal:
|
|
4393
|
+
pageTotal: w.value,
|
|
4382
4394
|
bindWidth: i.value,
|
|
4383
4395
|
pageMargin: L.value,
|
|
4384
|
-
pageDom: u.value.slice(0,
|
|
4385
|
-
colDom: m.value.map((
|
|
4386
|
-
colViewDom: m.value.map((
|
|
4396
|
+
pageDom: u.value.slice(0, w.value),
|
|
4397
|
+
colDom: m.value.map((R) => R.col),
|
|
4398
|
+
colViewDom: m.value.map((R) => R.colView)
|
|
4387
4399
|
},
|
|
4388
4400
|
data: a.value
|
|
4389
4401
|
});
|
|
4390
|
-
t("getFinalData",
|
|
4402
|
+
t("getFinalData", le);
|
|
4391
4403
|
}, 500);
|
|
4392
4404
|
}));
|
|
4393
|
-
},
|
|
4394
|
-
|
|
4405
|
+
}, re = () => {
|
|
4406
|
+
Is({
|
|
4395
4407
|
el: c.value,
|
|
4396
|
-
data:
|
|
4408
|
+
data: F.value,
|
|
4397
4409
|
column: o.layout.column,
|
|
4398
4410
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4399
|
-
getColSize:
|
|
4400
|
-
change:
|
|
4411
|
+
getColSize: we,
|
|
4412
|
+
change: oe
|
|
4401
4413
|
});
|
|
4402
|
-
},
|
|
4403
|
-
t("toggleActive",
|
|
4414
|
+
}, be = (b = { type: q.page, value: {} }) => {
|
|
4415
|
+
t("toggleActive", b);
|
|
4404
4416
|
};
|
|
4405
|
-
return (
|
|
4406
|
-
var
|
|
4407
|
-
return s(), d(
|
|
4408
|
-
|
|
4417
|
+
return (b, T) => {
|
|
4418
|
+
var le;
|
|
4419
|
+
return s(), d(E, null, [
|
|
4420
|
+
b.readonly ? D("", !0) : (s(), U($s, {
|
|
4409
4421
|
key: 0,
|
|
4410
4422
|
ColList: a.value,
|
|
4411
|
-
ColDom: m.value.map((
|
|
4412
|
-
ImgData:
|
|
4413
|
-
TxtData:
|
|
4414
|
-
onDelAbsImgItem:
|
|
4415
|
-
onDelAbsTxtItem:
|
|
4416
|
-
onChangeLayoutStatus:
|
|
4423
|
+
ColDom: m.value.map((R) => R.col),
|
|
4424
|
+
ImgData: b.imgData,
|
|
4425
|
+
TxtData: b.txtData,
|
|
4426
|
+
onDelAbsImgItem: T[0] || (T[0] = (R) => t("delAbsImgItem", R)),
|
|
4427
|
+
onDelAbsTxtItem: T[1] || (T[1] = (R) => t("delAbsTxtItem", R)),
|
|
4428
|
+
onChangeLayoutStatus: T[2] || (T[2] = (R) => t("changeLayoutStatus", R))
|
|
4417
4429
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4418
|
-
|
|
4430
|
+
f("div", {
|
|
4419
4431
|
class: "flex-1 overflow-auto relative z-1",
|
|
4420
4432
|
id: "alit-layout",
|
|
4421
|
-
onClick:
|
|
4433
|
+
onClick: T[14] || (T[14] = (R) => be())
|
|
4422
4434
|
}, [
|
|
4423
|
-
|
|
4435
|
+
f("div", {
|
|
4424
4436
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4425
4437
|
ref_key: "rawDom",
|
|
4426
4438
|
ref: c
|
|
4427
4439
|
}, [
|
|
4428
|
-
n.value.length ? (s(!0), d(
|
|
4429
|
-
|
|
4440
|
+
n.value.length ? (s(!0), d(E, { key: 0 }, X((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (R, ee) => (s(), d(E, null, [
|
|
4441
|
+
R.isHidden ? D("", !0) : (s(), U(Ct, {
|
|
4430
4442
|
key: 0,
|
|
4431
|
-
item:
|
|
4432
|
-
showColBorder:
|
|
4433
|
-
isFirst: !
|
|
4434
|
-
layout:
|
|
4443
|
+
item: R,
|
|
4444
|
+
showColBorder: j.value,
|
|
4445
|
+
isFirst: !ee && n.value.length === 1,
|
|
4446
|
+
layout: b.layout
|
|
4435
4447
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4436
|
-
|
|
4448
|
+
j.value ? (s(), d("div", {
|
|
4437
4449
|
key: 1,
|
|
4438
|
-
class:
|
|
4450
|
+
class: ae([!R.children.length && R.problemType && "p-1 min-h-[2rem]"])
|
|
4439
4451
|
}, [
|
|
4440
|
-
(s(),
|
|
4441
|
-
data:
|
|
4452
|
+
(s(), U(Ye, {
|
|
4453
|
+
data: R,
|
|
4442
4454
|
key: n.value.length,
|
|
4443
|
-
layout:
|
|
4444
|
-
target:
|
|
4455
|
+
layout: b.layout,
|
|
4456
|
+
target: b.target,
|
|
4445
4457
|
noPortrait: "",
|
|
4446
|
-
width:
|
|
4458
|
+
width: Q(n.value.length - 1) - 10
|
|
4447
4459
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4448
|
-
], 2)) : (s(),
|
|
4449
|
-
data:
|
|
4460
|
+
], 2)) : (s(), U(Ye, {
|
|
4461
|
+
data: R,
|
|
4450
4462
|
key: n.value.length,
|
|
4451
|
-
layout:
|
|
4452
|
-
target:
|
|
4453
|
-
width:
|
|
4463
|
+
layout: b.layout,
|
|
4464
|
+
target: b.target,
|
|
4465
|
+
width: Q(n.value.length - 1)
|
|
4454
4466
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4455
|
-
], 64))), 256)) :
|
|
4467
|
+
], 64))), 256)) : D("", !0)
|
|
4456
4468
|
], 512),
|
|
4457
|
-
|
|
4458
|
-
class:
|
|
4459
|
-
style:
|
|
4469
|
+
f("div", {
|
|
4470
|
+
class: ae(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
|
|
4471
|
+
style: Y(B.value)
|
|
4460
4472
|
}, [
|
|
4461
|
-
|
|
4462
|
-
imgData:
|
|
4463
|
-
txtData:
|
|
4464
|
-
layout:
|
|
4465
|
-
pageMargin:
|
|
4466
|
-
onChangeAbsImgItem:
|
|
4467
|
-
onDelAbsImgItem:
|
|
4468
|
-
onChangeAbsTxtItem:
|
|
4469
|
-
onDelAbsTxtItem:
|
|
4473
|
+
K(Us, {
|
|
4474
|
+
imgData: b.imgData,
|
|
4475
|
+
txtData: b.txtData,
|
|
4476
|
+
layout: b.layout,
|
|
4477
|
+
pageMargin: W.value,
|
|
4478
|
+
onChangeAbsImgItem: T[3] || (T[3] = (R) => t("changeAbsImgItem", R)),
|
|
4479
|
+
onDelAbsImgItem: T[4] || (T[4] = (R) => t("delAbsImgItem", R)),
|
|
4480
|
+
onChangeAbsTxtItem: T[5] || (T[5] = (R) => t("changeAbsTxtItem", R)),
|
|
4481
|
+
onDelAbsTxtItem: T[6] || (T[6] = (R) => t("delAbsTxtItem", R))
|
|
4470
4482
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4471
4483
|
(s(), d("svg", {
|
|
4472
4484
|
viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
|
|
@@ -4474,130 +4486,130 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4474
4486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4475
4487
|
key: l.value
|
|
4476
4488
|
}, [
|
|
4477
|
-
(s(), d("foreignObject",
|
|
4478
|
-
(s(!0), d(
|
|
4479
|
-
key:
|
|
4489
|
+
(s(), d("foreignObject", js, [
|
|
4490
|
+
(s(!0), d(E, null, X(M.value, (R, ee) => (s(), d("div", {
|
|
4491
|
+
key: R,
|
|
4480
4492
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4481
4493
|
ref_for: !0,
|
|
4482
|
-
ref: (
|
|
4483
|
-
style:
|
|
4494
|
+
ref: (Se) => P(Se, ee),
|
|
4495
|
+
style: Y(me.value)
|
|
4484
4496
|
}, [
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
layout:
|
|
4488
|
-
currentPage:
|
|
4489
|
-
totalPage:
|
|
4490
|
-
columnContentWidth:
|
|
4491
|
-
columnMargin:
|
|
4497
|
+
ee < w.value ? (s(), d(E, { key: 0 }, [
|
|
4498
|
+
K(wo, {
|
|
4499
|
+
layout: b.layout,
|
|
4500
|
+
currentPage: ee,
|
|
4501
|
+
totalPage: w.value,
|
|
4502
|
+
columnContentWidth: Q(ee % 2 ? b.layout.column : 0, !0),
|
|
4503
|
+
columnMargin: S(ee % 2 ? b.layout.column : 0),
|
|
4492
4504
|
bindWidth: i.value,
|
|
4493
4505
|
padding: _.value
|
|
4494
4506
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4495
|
-
|
|
4507
|
+
b.layout.sloganFlag ? (s(), U($o, {
|
|
4496
4508
|
key: 0,
|
|
4497
|
-
info:
|
|
4498
|
-
layout:
|
|
4499
|
-
onChange:
|
|
4500
|
-
}, null, 8, ["info", "layout"])) :
|
|
4501
|
-
|
|
4509
|
+
info: b.info,
|
|
4510
|
+
layout: b.layout,
|
|
4511
|
+
onChange: T[7] || (T[7] = (Se) => t("changeInfo", Se))
|
|
4512
|
+
}, null, 8, ["info", "layout"])) : D("", !0),
|
|
4513
|
+
K(Za, {
|
|
4502
4514
|
ref_for: !0,
|
|
4503
4515
|
ref_key: "bindDom",
|
|
4504
4516
|
ref: h,
|
|
4505
|
-
currentPage:
|
|
4517
|
+
currentPage: ee,
|
|
4506
4518
|
width: i.value,
|
|
4507
|
-
height:
|
|
4508
|
-
isBindFlag:
|
|
4519
|
+
height: v.value,
|
|
4520
|
+
isBindFlag: te.value
|
|
4509
4521
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
|
|
4510
|
-
!(
|
|
4522
|
+
!(ee % 2) || ee === 1 && w.value < 3 ? (s(), d("div", {
|
|
4511
4523
|
key: 1,
|
|
4512
4524
|
ref_for: !0,
|
|
4513
4525
|
ref_key: "titleDom",
|
|
4514
4526
|
ref: O,
|
|
4515
|
-
class:
|
|
4516
|
-
style:
|
|
4527
|
+
class: ae(["absolute text-black", ee === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4528
|
+
style: Y(he.value)
|
|
4517
4529
|
}, [
|
|
4518
|
-
|
|
4519
|
-
layout:
|
|
4520
|
-
code:
|
|
4530
|
+
K(Mo, {
|
|
4531
|
+
layout: b.layout,
|
|
4532
|
+
code: b.info.textCode
|
|
4521
4533
|
}, null, 8, ["layout", "code"]),
|
|
4522
|
-
|
|
4523
|
-
info:
|
|
4524
|
-
layout:
|
|
4525
|
-
fontConfig:
|
|
4526
|
-
data:
|
|
4527
|
-
onChange:
|
|
4534
|
+
K(ta, {
|
|
4535
|
+
info: b.info,
|
|
4536
|
+
layout: b.layout,
|
|
4537
|
+
fontConfig: b.fontConfig,
|
|
4538
|
+
data: b.data,
|
|
4539
|
+
onChange: T[8] || (T[8] = (Se) => t("changeInfo", Se))
|
|
4528
4540
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
4529
|
-
|
|
4530
|
-
layout:
|
|
4531
|
-
info:
|
|
4532
|
-
isBindFlag:
|
|
4533
|
-
onChange:
|
|
4541
|
+
K(ka, {
|
|
4542
|
+
layout: b.layout,
|
|
4543
|
+
info: b.info,
|
|
4544
|
+
isBindFlag: te.value,
|
|
4545
|
+
onChange: T[9] || (T[9] = (Se) => t("changeExtentInfo", Se))
|
|
4534
4546
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4535
|
-
|
|
4536
|
-
layout:
|
|
4537
|
-
isBindFlag:
|
|
4547
|
+
K(Ba, {
|
|
4548
|
+
layout: b.layout,
|
|
4549
|
+
isBindFlag: te.value
|
|
4538
4550
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4539
|
-
|
|
4551
|
+
ee ? D("", !0) : (s(), U(Ya, {
|
|
4540
4552
|
key: 0,
|
|
4541
|
-
layout:
|
|
4542
|
-
data:
|
|
4553
|
+
layout: b.layout,
|
|
4554
|
+
data: b.data
|
|
4543
4555
|
}, null, 8, ["layout", "data"])),
|
|
4544
|
-
|
|
4556
|
+
b.layout.writeScoreFlag && !ee ? (s(), U(_l, {
|
|
4545
4557
|
key: 1,
|
|
4546
|
-
info:
|
|
4547
|
-
layout:
|
|
4548
|
-
}, null, 8, ["info", "layout"])) :
|
|
4549
|
-
], 6)) :
|
|
4550
|
-
(s(!0), d(
|
|
4558
|
+
info: b.info,
|
|
4559
|
+
layout: b.layout
|
|
4560
|
+
}, null, 8, ["info", "layout"])) : D("", !0)
|
|
4561
|
+
], 6)) : D("", !0),
|
|
4562
|
+
(s(!0), d(E, null, X(ee % 2 ? b.layout.backColumn : b.layout.column, (Se, Me) => (s(), U(Qa, {
|
|
4551
4563
|
ref_for: !0,
|
|
4552
|
-
ref: (
|
|
4553
|
-
styleInfo:
|
|
4554
|
-
column:
|
|
4555
|
-
currentColumn:
|
|
4556
|
-
showColBorder:
|
|
4564
|
+
ref: (Ge) => $(Ge, _e(Me, ee)),
|
|
4565
|
+
styleInfo: we(_e(Me, ee), ee),
|
|
4566
|
+
column: b.layout.column,
|
|
4567
|
+
currentColumn: _e(Me, ee),
|
|
4568
|
+
showColBorder: j.value
|
|
4557
4569
|
}, {
|
|
4558
4570
|
default: It(() => {
|
|
4559
|
-
var
|
|
4571
|
+
var Ge;
|
|
4560
4572
|
return [
|
|
4561
|
-
(s(!0), d(
|
|
4573
|
+
(s(!0), d(E, null, X(((Ge = a.value[_e(Me, ee)]) == null ? void 0 : Ge.data) || [], (ge, zt) => {
|
|
4562
4574
|
var pt;
|
|
4563
|
-
return s(), d(
|
|
4564
|
-
|
|
4575
|
+
return s(), d(E, null, [
|
|
4576
|
+
ge.isHidden ? D("", !0) : (s(), U(Ct, {
|
|
4565
4577
|
key: 0,
|
|
4566
|
-
item:
|
|
4567
|
-
showColBorder:
|
|
4568
|
-
isFirst: !
|
|
4569
|
-
layout:
|
|
4570
|
-
isActive: ((pt =
|
|
4571
|
-
onClick: (
|
|
4572
|
-
onDbclick: (
|
|
4578
|
+
item: ge,
|
|
4579
|
+
showColBorder: j.value,
|
|
4580
|
+
isFirst: !ee && !Me && !zt,
|
|
4581
|
+
layout: b.layout,
|
|
4582
|
+
isActive: ((pt = b.target.value) == null ? void 0 : pt.id) === ge.id,
|
|
4583
|
+
onClick: (Ce) => be({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }),
|
|
4584
|
+
onDbclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4573
4585
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
4574
|
-
|
|
4586
|
+
j.value ? (s(), d("div", {
|
|
4575
4587
|
key: 1,
|
|
4576
|
-
class:
|
|
4577
|
-
onClick: Le((
|
|
4578
|
-
onDblclick: (
|
|
4588
|
+
class: ae([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(q).headline && b.target.value.id === ge.id && "active_headline"]),
|
|
4589
|
+
onClick: Le((Ce) => be({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }), ["stop"]),
|
|
4590
|
+
onDblclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4579
4591
|
}, [
|
|
4580
|
-
|
|
4581
|
-
data:
|
|
4582
|
-
layout:
|
|
4583
|
-
target:
|
|
4584
|
-
width:
|
|
4585
|
-
onClick:
|
|
4586
|
-
onDbclick:
|
|
4592
|
+
K(Ye, {
|
|
4593
|
+
data: ge,
|
|
4594
|
+
layout: b.layout,
|
|
4595
|
+
target: b.target,
|
|
4596
|
+
width: Q(_e(Me, ee)) - 10,
|
|
4597
|
+
onClick: T[10] || (T[10] = (Ce) => be({ type: Ce.problemType ? x(q).problem : x(q).problemNotarea, value: Ce })),
|
|
4598
|
+
onDbclick: T[11] || (T[11] = (Ce) => t("dbProblemClick", Ce))
|
|
4587
4599
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4588
|
-
|
|
4600
|
+
ge.children.length && ge.children[ge.children.length - 1].id === Z.value ? (s(), d("div", {
|
|
4589
4601
|
key: 0,
|
|
4590
4602
|
class: "border-t",
|
|
4591
4603
|
"data-block": x(Ee)
|
|
4592
|
-
}, null, 8, Xs)) :
|
|
4593
|
-
], 42,
|
|
4604
|
+
}, null, 8, Xs)) : D("", !0)
|
|
4605
|
+
], 42, Vs)) : (s(), U(Ye, {
|
|
4594
4606
|
key: 2,
|
|
4595
|
-
data:
|
|
4596
|
-
layout:
|
|
4597
|
-
target:
|
|
4598
|
-
width:
|
|
4599
|
-
onClick:
|
|
4600
|
-
onDbclick:
|
|
4607
|
+
data: ge,
|
|
4608
|
+
layout: b.layout,
|
|
4609
|
+
target: b.target,
|
|
4610
|
+
width: Q(_e(Me, ee)),
|
|
4611
|
+
onClick: T[12] || (T[12] = (Ce) => be({ type: Ce.problemType ? x(q).problem : x(q).problemNotarea, value: Ce })),
|
|
4612
|
+
onDbclick: T[13] || (T[13] = (Ce) => t("dbProblemClick", Ce))
|
|
4601
4613
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4602
4614
|
], 64);
|
|
4603
4615
|
}), 256))
|
|
@@ -4605,18 +4617,18 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
|
|
|
4605
4617
|
}),
|
|
4606
4618
|
_: 2
|
|
4607
4619
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
4608
|
-
], 64)) :
|
|
4620
|
+
], 64)) : D("", !0)
|
|
4609
4621
|
], 4))), 128))
|
|
4610
4622
|
]))
|
|
4611
|
-
], 8,
|
|
4623
|
+
], 8, Ks))
|
|
4612
4624
|
], 6)
|
|
4613
4625
|
])
|
|
4614
4626
|
], 64);
|
|
4615
4627
|
};
|
|
4616
4628
|
}
|
|
4617
4629
|
});
|
|
4618
|
-
const
|
|
4630
|
+
const ti = /* @__PURE__ */ de(Js, [["__scopeId", "data-v-823af0fa"]]);
|
|
4619
4631
|
export {
|
|
4620
|
-
|
|
4621
|
-
|
|
4632
|
+
ei as Config,
|
|
4633
|
+
ti as default
|
|
4622
4634
|
};
|