alit-layout 1.0.16 → 1.0.18
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 +1272 -1266
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
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 je, createVNode as j, pushScopeId as Re, popScopeId as We, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Lt, inject as Rt, withDirectives as gt, provide as Wt } from "vue";
|
|
2
|
+
const rt = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
5
5
|
// 多选题
|
|
@@ -9,7 +9,7 @@ const Lt = {
|
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
11
|
}, Ft = {
|
|
12
|
-
...
|
|
12
|
+
...rt,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
15
15
|
}, at = {
|
|
@@ -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
|
// 复合题
|
|
@@ -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
|
|
@@ -166,137 +166,137 @@ const Lt = {
|
|
|
166
166
|
{ name: "两栏", code: 2 }
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, ct = {
|
|
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,
|
|
@@ -420,7 +420,7 @@ const Lt = {
|
|
|
420
420
|
2: 20
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
}, Ut = 10,
|
|
423
|
+
}, Ut = 10, jt = {
|
|
424
424
|
base: {
|
|
425
425
|
secTitleFlag: "副标题",
|
|
426
426
|
authorFlag: "命题人",
|
|
@@ -501,7 +501,7 @@ const Lt = {
|
|
|
501
501
|
simpleScoreBarFlag: "简易打分条",
|
|
502
502
|
scoreTipFlag: "计分提示"
|
|
503
503
|
}
|
|
504
|
-
},
|
|
504
|
+
}, Kt = {
|
|
505
505
|
a3: {
|
|
506
506
|
2: 1,
|
|
507
507
|
3: 1
|
|
@@ -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) => Object.values(rt).includes(e.problemType) && 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,7 +1302,7 @@ const Lt = {
|
|
|
1302
1302
|
label: "格子尺寸",
|
|
1303
1303
|
key: y.article.art_b,
|
|
1304
1304
|
detail: !0,
|
|
1305
|
-
target: [
|
|
1305
|
+
target: [q.problem],
|
|
1306
1306
|
min: () => 27,
|
|
1307
1307
|
max: () => 40,
|
|
1308
1308
|
formatTip: (e, t) => {
|
|
@@ -1316,7 +1316,7 @@ const Lt = {
|
|
|
1316
1316
|
key: y.sheetCard.art_c,
|
|
1317
1317
|
detail: !0,
|
|
1318
1318
|
unit: "字",
|
|
1319
|
-
target: [
|
|
1319
|
+
target: [q.problem]
|
|
1320
1320
|
},
|
|
1321
1321
|
{
|
|
1322
1322
|
type: "slider",
|
|
@@ -1325,7 +1325,7 @@ const Lt = {
|
|
|
1325
1325
|
detail: !0,
|
|
1326
1326
|
min: () => 1,
|
|
1327
1327
|
max: (e) => Math.floor(e.style[y.sheetCard.art_c] / e.style[y.sheetCard.art_e]),
|
|
1328
|
-
target: [
|
|
1328
|
+
target: [q.problem]
|
|
1329
1329
|
},
|
|
1330
1330
|
{
|
|
1331
1331
|
type: "radio",
|
|
@@ -1336,7 +1336,7 @@ const Lt = {
|
|
|
1336
1336
|
{ name: "100", code: 100 }
|
|
1337
1337
|
],
|
|
1338
1338
|
detail: !0,
|
|
1339
|
-
target: [
|
|
1339
|
+
target: [q.problem]
|
|
1340
1340
|
}
|
|
1341
1341
|
],
|
|
1342
1342
|
// 综合题
|
|
@@ -1386,7 +1386,7 @@ const Lt = {
|
|
|
1386
1386
|
{ name: "小四", code: "16px", alias: "s4" },
|
|
1387
1387
|
{ name: "五号", code: "14px", alias: "5" },
|
|
1388
1388
|
{ name: "小五", code: "12px", alias: "s5" }
|
|
1389
|
-
],
|
|
1389
|
+
], Ie = {
|
|
1390
1390
|
stand: {
|
|
1391
1391
|
name: "标准",
|
|
1392
1392
|
code: "stand",
|
|
@@ -1405,7 +1405,7 @@ const Lt = {
|
|
|
1405
1405
|
value: 24,
|
|
1406
1406
|
height: 16
|
|
1407
1407
|
}
|
|
1408
|
-
},
|
|
1408
|
+
}, Ke = {
|
|
1409
1409
|
stand: {
|
|
1410
1410
|
name: "标准",
|
|
1411
1411
|
code: "stand",
|
|
@@ -1461,41 +1461,41 @@ const Lt = {
|
|
|
1461
1461
|
column: Yt,
|
|
1462
1462
|
columnMargin: Et,
|
|
1463
1463
|
defaultProblemLayout: ao,
|
|
1464
|
-
fillSize:
|
|
1464
|
+
fillSize: Ie,
|
|
1465
1465
|
fontFamily: so,
|
|
1466
1466
|
fontSize: ro,
|
|
1467
1467
|
fontWeight: io,
|
|
1468
|
-
formatConfig:
|
|
1468
|
+
formatConfig: jt,
|
|
1469
1469
|
halfScoreType: Ue,
|
|
1470
1470
|
halfScoreTypeOption: to,
|
|
1471
|
-
layoutMode:
|
|
1471
|
+
layoutMode: Vt,
|
|
1472
1472
|
otherLayout: no,
|
|
1473
1473
|
otherLayoutKey: Mt,
|
|
1474
1474
|
paddDiff: qt,
|
|
1475
1475
|
pageMargin: Ut,
|
|
1476
|
-
pagePadding:
|
|
1476
|
+
pagePadding: ct,
|
|
1477
1477
|
pagePointPosition: He,
|
|
1478
|
-
pageSize:
|
|
1479
|
-
pageTitleBlockCol:
|
|
1478
|
+
pageSize: g,
|
|
1479
|
+
pageTitleBlockCol: Kt,
|
|
1480
1480
|
paper: ze,
|
|
1481
1481
|
problemLayout: lo,
|
|
1482
1482
|
problemLayoutKey: y,
|
|
1483
|
-
problemLayoutVal:
|
|
1484
|
-
scoreLineSize:
|
|
1483
|
+
problemLayoutVal: I,
|
|
1484
|
+
scoreLineSize: Ke,
|
|
1485
1485
|
scoreLineStyle: Ze,
|
|
1486
1486
|
scoreLineType: De,
|
|
1487
1487
|
scoreLineTypeOption: oo,
|
|
1488
|
-
seatType:
|
|
1489
|
-
seatTypeOption:
|
|
1490
|
-
sheetColumnPad:
|
|
1488
|
+
seatType: xe,
|
|
1489
|
+
seatTypeOption: Xt,
|
|
1490
|
+
sheetColumnPad: $e,
|
|
1491
1491
|
sheetItemColumnPad: Qt,
|
|
1492
1492
|
subIndentOption: eo,
|
|
1493
1493
|
subRange: lt,
|
|
1494
1494
|
subRangeOption: Jt,
|
|
1495
1495
|
subRule: Qe,
|
|
1496
1496
|
subRuleOption: Zt,
|
|
1497
|
-
toolGroup:
|
|
1498
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1497
|
+
toolGroup: q
|
|
1498
|
+
}, Symbol.toStringTag, { value: "Module" })), dt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
|
|
1499
1499
|
a4: "TYPE_A4",
|
|
1500
1500
|
a4x: "TYPE_A4",
|
|
1501
1501
|
a3: "TYPE_A3",
|
|
@@ -1506,49 +1506,49 @@ const Lt = {
|
|
|
1506
1506
|
"8k": "TYPE_8K",
|
|
1507
1507
|
"16k": "TYPE_16K",
|
|
1508
1508
|
"32k": "TYPE_32K"
|
|
1509
|
-
},
|
|
1509
|
+
}, pe = window.btoa(Math.random().toString(32)).substring(0, 10), k = {
|
|
1510
1510
|
// 定位点 主定位点 lt rt lb rb 辅助定位点 t b
|
|
1511
|
-
point: `__${
|
|
1511
|
+
point: `__${pe}point`,
|
|
1512
1512
|
// 页码点
|
|
1513
|
-
page: `__${
|
|
1513
|
+
page: `__${pe}pagetotal`,
|
|
1514
1514
|
// 单个页码点
|
|
1515
|
-
page_item: `__${
|
|
1515
|
+
page_item: `__${pe}pageitem`,
|
|
1516
1516
|
// 缺考标记
|
|
1517
|
-
lack: `__${
|
|
1517
|
+
lack: `__${pe}lack`,
|
|
1518
1518
|
// 试卷二维码
|
|
1519
|
-
art_code: `__${
|
|
1519
|
+
art_code: `__${pe}artcode`,
|
|
1520
1520
|
// 条码区
|
|
1521
|
-
en_code: `__${
|
|
1521
|
+
en_code: `__${pe}encode`,
|
|
1522
1522
|
// 填涂区容器
|
|
1523
|
-
en_num_view: `__${
|
|
1523
|
+
en_num_view: `__${pe}ennumview`,
|
|
1524
1524
|
// 填涂区
|
|
1525
|
-
en_num: `__${
|
|
1525
|
+
en_num: `__${pe}ennum`,
|
|
1526
1526
|
// 填涂区分组
|
|
1527
|
-
en_num_group: `__${
|
|
1527
|
+
en_num_group: `__${pe}ennumg`,
|
|
1528
1528
|
// 填涂区单个
|
|
1529
|
-
en_num_item: `__${
|
|
1529
|
+
en_num_item: `__${pe}ennumi`,
|
|
1530
1530
|
// 选做题
|
|
1531
|
-
choice: `__${
|
|
1531
|
+
choice: `__${pe}choice`,
|
|
1532
1532
|
// 题目 + id
|
|
1533
|
-
item: `__${
|
|
1533
|
+
item: `__${pe}problem`,
|
|
1534
1534
|
// 填涂框 + 序号
|
|
1535
|
-
fill: `__${
|
|
1535
|
+
fill: `__${pe}fill`,
|
|
1536
1536
|
// 填空题下划线
|
|
1537
|
-
fill_line: `__${
|
|
1537
|
+
fill_line: `__${pe}fillline`,
|
|
1538
1538
|
// 打分框
|
|
1539
|
-
score: `__${
|
|
1539
|
+
score: `__${pe}score`,
|
|
1540
1540
|
// 十分位打分框
|
|
1541
|
-
score_tenbit: `__${
|
|
1541
|
+
score_tenbit: `__${pe}tenbit`,
|
|
1542
1542
|
// 个位打分框
|
|
1543
|
-
score_base: `__${
|
|
1543
|
+
score_base: `__${pe}base`,
|
|
1544
1544
|
// 单个打分框
|
|
1545
|
-
score_item: `__${
|
|
1545
|
+
score_item: `__${pe}scorei`,
|
|
1546
1546
|
// 0.5分打分框
|
|
1547
|
-
score_half: `__${
|
|
1547
|
+
score_half: `__${pe}scorehalf`,
|
|
1548
1548
|
// 书写分
|
|
1549
|
-
write_view: `__${
|
|
1549
|
+
write_view: `__${pe}write`,
|
|
1550
1550
|
// 密封线
|
|
1551
|
-
bind_line: `__${
|
|
1551
|
+
bind_line: `__${pe}bindline`
|
|
1552
1552
|
}, mo = {
|
|
1553
1553
|
[p.choice]: "TYPE_SINGLECHOICE",
|
|
1554
1554
|
// 单项选择
|
|
@@ -1569,11 +1569,11 @@ const Lt = {
|
|
|
1569
1569
|
// 作文
|
|
1570
1570
|
[p.synthesis]: "TYPE_MULTI",
|
|
1571
1571
|
// 综合题
|
|
1572
|
-
[
|
|
1572
|
+
[ve.one_choice]: "TYPE_SINGLECHOICE",
|
|
1573
1573
|
// 选做题
|
|
1574
|
-
[
|
|
1574
|
+
[ve.another_choice]: "TYPE_SINGLECHOICE"
|
|
1575
1575
|
// 附加选做题
|
|
1576
|
-
}, 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({
|
|
1577
1577
|
__name: "point",
|
|
1578
1578
|
props: {
|
|
1579
1579
|
layout: {},
|
|
@@ -1610,65 +1610,65 @@ const Lt = {
|
|
|
1610
1610
|
};
|
|
1611
1611
|
return { left: `${l * c + u}px`, ...m[i] };
|
|
1612
1612
|
}, r = (l) => {
|
|
1613
|
-
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);
|
|
1614
1614
|
return { top: `${i * m + t.padding.top - 10}px`, width: "11px", ...u };
|
|
1615
1615
|
};
|
|
1616
1616
|
return (l, i) => {
|
|
1617
1617
|
var c;
|
|
1618
|
-
return s(), d(
|
|
1619
|
-
(s(), d(
|
|
1618
|
+
return s(), d(E, null, [
|
|
1619
|
+
(s(), d(E, null, X(["lt", "rt", "lb", "rb"], (u) => f("span", {
|
|
1620
1620
|
key: u,
|
|
1621
1621
|
class: "absolute w-8 bg-black point_item",
|
|
1622
|
-
style:
|
|
1623
|
-
"data-xine": x(
|
|
1622
|
+
style: Y(o(u)),
|
|
1623
|
+
"data-xine": x(k).point + u
|
|
1624
1624
|
}, null, 12, yo)), 64)),
|
|
1625
|
-
(s(!0), d(
|
|
1626
|
-
(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", {
|
|
1627
1627
|
key: m,
|
|
1628
1628
|
class: "absolute bg-black w-8 point_item",
|
|
1629
|
-
style:
|
|
1630
|
-
"data-xine": x(
|
|
1629
|
+
style: Y(n(u, m)),
|
|
1630
|
+
"data-xine": x(k).point + m
|
|
1631
1631
|
}, null, 12, _o)), 64))
|
|
1632
1632
|
], 64))), 128)),
|
|
1633
|
-
(s(), d(
|
|
1633
|
+
(s(), d(E, null, X(["l", "r"], (u) => f("span", {
|
|
1634
1634
|
key: u,
|
|
1635
1635
|
class: "absolute bg-black h-8",
|
|
1636
|
-
style:
|
|
1637
|
-
"data-xine": x(
|
|
1636
|
+
style: Y(r(u)),
|
|
1637
|
+
"data-xine": x(k).point + u
|
|
1638
1638
|
}, null, 12, fo)), 64)),
|
|
1639
|
-
|
|
1639
|
+
f("p", {
|
|
1640
1640
|
class: "absolute leading-none text-0",
|
|
1641
|
-
style:
|
|
1642
|
-
"data-xine": x(
|
|
1641
|
+
style: Y(a()),
|
|
1642
|
+
"data-xine": x(k).page
|
|
1643
1643
|
}, [
|
|
1644
|
-
(s(!0), d(
|
|
1644
|
+
(s(!0), d(E, null, X(l.currentPage + 1, (u, m) => (s(), d("span", {
|
|
1645
1645
|
key: u,
|
|
1646
1646
|
class: "inline-block bg-black mx-2 page_item",
|
|
1647
|
-
"data-xine": x(
|
|
1647
|
+
"data-xine": x(k).page_item + m
|
|
1648
1648
|
}, null, 8, bo))), 128))
|
|
1649
1649
|
], 12, go),
|
|
1650
|
-
l.currentPage % 2 ?
|
|
1650
|
+
l.currentPage % 2 ? D("", !0) : (s(), d("span", {
|
|
1651
1651
|
key: 0,
|
|
1652
1652
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1653
|
-
style:
|
|
1654
|
-
}, "提示:本卷" +
|
|
1655
|
-
|
|
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", {
|
|
1656
1656
|
class: "absolute text-sm red_sheet",
|
|
1657
|
-
style:
|
|
1658
|
-
},
|
|
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)
|
|
1659
1659
|
], 64);
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
|
-
const
|
|
1663
|
+
const de = (e, t) => {
|
|
1664
1664
|
const o = e.__vccOpts || e;
|
|
1665
1665
|
for (const [a, n] of t)
|
|
1666
1666
|
o[a] = n;
|
|
1667
1667
|
return o;
|
|
1668
|
-
}, wo = /* @__PURE__ */
|
|
1668
|
+
}, wo = /* @__PURE__ */ de(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1669
1669
|
key: 0,
|
|
1670
1670
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1671
|
-
}, et = /* @__PURE__ */
|
|
1671
|
+
}, et = /* @__PURE__ */ J({
|
|
1672
1672
|
__name: "index",
|
|
1673
1673
|
props: {
|
|
1674
1674
|
value: { default: "" },
|
|
@@ -1683,7 +1683,7 @@ const ce = (e, t) => {
|
|
|
1683
1683
|
},
|
|
1684
1684
|
emits: ["change", "input", "focus", "blur"],
|
|
1685
1685
|
setup(e, { emit: t }) {
|
|
1686
|
-
const o = e, a =
|
|
1686
|
+
const o = e, a = G(o.value), n = G(!1);
|
|
1687
1687
|
Ae(() => o.value, () => {
|
|
1688
1688
|
a.value = o.value;
|
|
1689
1689
|
});
|
|
@@ -1699,11 +1699,11 @@ const ce = (e, t) => {
|
|
|
1699
1699
|
t("blur", o.type === "number" ? parseFloat(`${a.value}`) : a.value), n.value = !1;
|
|
1700
1700
|
};
|
|
1701
1701
|
return (u, m) => (s(), d("div", {
|
|
1702
|
-
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"])
|
|
1703
1703
|
}, [
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
class:
|
|
1704
|
+
f("div", xo, [
|
|
1705
|
+
f("input", {
|
|
1706
|
+
class: ae(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
|
|
1707
1707
|
type: u.type,
|
|
1708
1708
|
placeholder: u.placeholder,
|
|
1709
1709
|
maxlength: u.maxLength,
|
|
@@ -1714,10 +1714,10 @@ const ce = (e, t) => {
|
|
|
1714
1714
|
onBlur: c
|
|
1715
1715
|
}, null, 42, ko)
|
|
1716
1716
|
]),
|
|
1717
|
-
u.unit ? (s(), d("span", Co,
|
|
1717
|
+
u.unit ? (s(), d("span", Co, V(u.unit), 1)) : D("", !0)
|
|
1718
1718
|
], 2));
|
|
1719
1719
|
}
|
|
1720
|
-
}), $o = /* @__PURE__ */
|
|
1720
|
+
}), $o = /* @__PURE__ */ J({
|
|
1721
1721
|
__name: "slogan",
|
|
1722
1722
|
props: {
|
|
1723
1723
|
info: {},
|
|
@@ -1725,11 +1725,11 @@ const ce = (e, t) => {
|
|
|
1725
1725
|
},
|
|
1726
1726
|
emits: ["change"],
|
|
1727
1727
|
setup(e, { emit: t }) {
|
|
1728
|
-
const o = e, a = A(() =>
|
|
1728
|
+
const o = e, a = A(() => ct[o.layout.mode][o.layout.paper]), n = A(() => ({
|
|
1729
1729
|
right: `${a.value.right + 97}px`,
|
|
1730
1730
|
bottom: `${a.value.bottom - 25}px`
|
|
1731
1731
|
}));
|
|
1732
|
-
return (r, l) => (s(),
|
|
1732
|
+
return (r, l) => (s(), U(et, {
|
|
1733
1733
|
class: "absolute w-72 text-sm",
|
|
1734
1734
|
value: r.info.slogan,
|
|
1735
1735
|
maxLength: 12,
|
|
@@ -1737,11 +1737,11 @@ const ce = (e, t) => {
|
|
|
1737
1737
|
size: "small",
|
|
1738
1738
|
autoLine: "",
|
|
1739
1739
|
dir: "right",
|
|
1740
|
-
style:
|
|
1740
|
+
style: Y(n.value),
|
|
1741
1741
|
onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
|
|
1742
1742
|
}, null, 8, ["value", "style"]));
|
|
1743
1743
|
}
|
|
1744
|
-
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */
|
|
1744
|
+
}), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ J({
|
|
1745
1745
|
__name: "index",
|
|
1746
1746
|
props: {
|
|
1747
1747
|
width: { default: 1.5 },
|
|
@@ -1759,15 +1759,15 @@ const ce = (e, t) => {
|
|
|
1759
1759
|
width: n.width + "rem",
|
|
1760
1760
|
height: (n.height || n.width) + "rem"
|
|
1761
1761
|
}, [
|
|
1762
|
-
|
|
1762
|
+
f("use", { "xlink:href": a.value }, null, 8, To)
|
|
1763
1763
|
], 8, So))
|
|
1764
1764
|
]));
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
1767
|
-
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 = {
|
|
1768
1768
|
key: 0,
|
|
1769
1769
|
class: "flex items-center"
|
|
1770
|
-
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */
|
|
1770
|
+
}, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ J({
|
|
1771
1771
|
__name: "secrecy",
|
|
1772
1772
|
props: {
|
|
1773
1773
|
layout: {},
|
|
@@ -1776,18 +1776,18 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1776
1776
|
setup(e) {
|
|
1777
1777
|
return (t, o) => (s(), d("div", Lo, [
|
|
1778
1778
|
t.layout.secrecyFlag ? (s(), d("p", Fo, [
|
|
1779
|
-
|
|
1780
|
-
|
|
1779
|
+
je("绝密"),
|
|
1780
|
+
j(ye, {
|
|
1781
1781
|
name: "fiveArrow",
|
|
1782
1782
|
width: 1.4,
|
|
1783
1783
|
class: "px-0 py-0"
|
|
1784
1784
|
}),
|
|
1785
|
-
|
|
1786
|
-
])) :
|
|
1787
|
-
|
|
1785
|
+
je("启用前")
|
|
1786
|
+
])) : D("", !0),
|
|
1787
|
+
f("p", Eo, "ID:" + V(t.code), 1)
|
|
1788
1788
|
]));
|
|
1789
1789
|
}
|
|
1790
|
-
}), Po = ["innerHTML"], Oe = /* @__PURE__ */
|
|
1790
|
+
}), Po = ["innerHTML"], Oe = /* @__PURE__ */ J({
|
|
1791
1791
|
__name: "index",
|
|
1792
1792
|
props: {
|
|
1793
1793
|
value: {},
|
|
@@ -1808,19 +1808,19 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1808
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 = {
|
|
1809
1809
|
key: 0,
|
|
1810
1810
|
class: "flex mx-4 min-w-[70px]"
|
|
1811
|
-
}, zo = /* @__PURE__ */
|
|
1811
|
+
}, zo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
|
|
1812
1812
|
key: 1,
|
|
1813
1813
|
class: "flex items-center w-40 mx-4"
|
|
1814
|
-
}, Ro = /* @__PURE__ */
|
|
1814
|
+
}, Ro = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "时间:", -1), Wo = /* @__PURE__ */ f("span", null, "分钟", -1), Go = {
|
|
1815
1815
|
key: 2,
|
|
1816
1816
|
class: "flex mx-4 min-w-[80px]"
|
|
1817
|
-
}, Yo = /* @__PURE__ */
|
|
1817
|
+
}, Yo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
|
|
1818
1818
|
key: 3,
|
|
1819
1819
|
class: "flex mx-4 min-w-[80px]"
|
|
1820
|
-
}, Qo = /* @__PURE__ */
|
|
1820
|
+
}, Qo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
|
|
1821
1821
|
key: 4,
|
|
1822
1822
|
class: "flex items-center mx-4"
|
|
1823
|
-
},
|
|
1823
|
+
}, jo = /* @__PURE__ */ f("span", null, "总", -1), Ko = { key: 1 }, Vo = { key: 3 }, Xo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ J({
|
|
1824
1824
|
__name: "title",
|
|
1825
1825
|
props: {
|
|
1826
1826
|
info: {},
|
|
@@ -1830,40 +1830,40 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1830
1830
|
},
|
|
1831
1831
|
emits: ["change"],
|
|
1832
1832
|
setup(e, { emit: t }) {
|
|
1833
|
-
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" : "");
|
|
1834
1834
|
return (l, i) => (s(), d("div", Do, [
|
|
1835
|
-
|
|
1835
|
+
f("img", {
|
|
1836
1836
|
src: l.info.qrCode,
|
|
1837
1837
|
alt: "QRCode",
|
|
1838
1838
|
class: "flex-shrink-0 w-28 h-28",
|
|
1839
|
-
"data-xine": x(
|
|
1839
|
+
"data-xine": x(k).art_code
|
|
1840
1840
|
}, null, 8, Ao),
|
|
1841
|
-
|
|
1842
|
-
|
|
1841
|
+
f("div", No, [
|
|
1842
|
+
j(Oe, {
|
|
1843
1843
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1844
1844
|
value: l.info.title,
|
|
1845
|
-
style:
|
|
1845
|
+
style: Y(l.fontConfig.titleStyle),
|
|
1846
1846
|
onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
|
|
1847
1847
|
}, null, 8, ["value", "style"]),
|
|
1848
|
-
l.layout.secTitleFlag ? (s(),
|
|
1848
|
+
l.layout.secTitleFlag ? (s(), U(Oe, {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1851
1851
|
value: l.info.secTitle,
|
|
1852
|
-
style:
|
|
1852
|
+
style: Y(l.fontConfig.halfTitleStyle),
|
|
1853
1853
|
onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
|
|
1854
|
-
}, null, 8, ["value", "style"])) :
|
|
1855
|
-
|
|
1854
|
+
}, null, 8, ["value", "style"])) : D("", !0),
|
|
1855
|
+
f("div", Bo, [
|
|
1856
1856
|
l.layout.examExtentFlag ? (s(), d("p", Oo, [
|
|
1857
1857
|
zo,
|
|
1858
|
-
|
|
1858
|
+
j(Oe, {
|
|
1859
1859
|
class: "flex-1",
|
|
1860
1860
|
value: l.info.extent,
|
|
1861
1861
|
onChange: i[2] || (i[2] = (c) => t("change", { extent: c }))
|
|
1862
1862
|
}, null, 8, ["value"])
|
|
1863
|
-
])) :
|
|
1863
|
+
])) : D("", !0),
|
|
1864
1864
|
l.layout.examTimeFlag ? (s(), d("p", Ho, [
|
|
1865
1865
|
Ro,
|
|
1866
|
-
|
|
1866
|
+
j(et, {
|
|
1867
1867
|
value: l.info.time,
|
|
1868
1868
|
class: "text-center",
|
|
1869
1869
|
type: "number",
|
|
@@ -1873,65 +1873,65 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1873
1873
|
onChange: i[3] || (i[3] = (c) => t("change", { time: c }))
|
|
1874
1874
|
}, null, 8, ["value"]),
|
|
1875
1875
|
Wo
|
|
1876
|
-
])) :
|
|
1876
|
+
])) : D("", !0),
|
|
1877
1877
|
l.layout.authorFlag ? (s(), d("p", Go, [
|
|
1878
1878
|
Yo,
|
|
1879
|
-
|
|
1879
|
+
j(Oe, {
|
|
1880
1880
|
class: "flex-1",
|
|
1881
1881
|
value: l.info.author,
|
|
1882
1882
|
onChange: i[4] || (i[4] = (c) => t("change", { author: c }))
|
|
1883
1883
|
}, null, 8, ["value"])
|
|
1884
|
-
])) :
|
|
1884
|
+
])) : D("", !0),
|
|
1885
1885
|
l.layout.reviewerFlag ? (s(), d("p", qo, [
|
|
1886
1886
|
Qo,
|
|
1887
|
-
|
|
1887
|
+
j(Oe, {
|
|
1888
1888
|
class: "flex-1",
|
|
1889
1889
|
value: l.info.reviewer,
|
|
1890
1890
|
onChange: i[5] || (i[5] = (c) => t("change", { reviewer: c }))
|
|
1891
1891
|
}, null, 8, ["value"])
|
|
1892
|
-
])) :
|
|
1892
|
+
])) : D("", !0),
|
|
1893
1893
|
l.layout.totalScoreFlag ? (s(), d("p", Uo, [
|
|
1894
|
-
|
|
1895
|
-
r.value ? (s(),
|
|
1894
|
+
jo,
|
|
1895
|
+
r.value ? (s(), U(ye, {
|
|
1896
1896
|
key: 0,
|
|
1897
1897
|
name: r.value,
|
|
1898
1898
|
class: "p-0 -translate-y-[1px]"
|
|
1899
|
-
}, null, 8, ["name"])) : (s(), d("span",
|
|
1900
|
-
|
|
1901
|
-
r.value ? (s(),
|
|
1899
|
+
}, null, 8, ["name"])) : (s(), d("span", Ko, "分")),
|
|
1900
|
+
f("span", null, ":" + V(a.value + (l.layout.writeScoreFlag ? l.info.writeScore : 0)), 1),
|
|
1901
|
+
r.value ? (s(), U(ye, {
|
|
1902
1902
|
key: 2,
|
|
1903
1903
|
name: r.value,
|
|
1904
1904
|
class: "p-0 -translate-y-[1px]"
|
|
1905
|
-
}, null, 8, ["name"])) : (s(), d("span",
|
|
1906
|
-
l.layout.writeScoreFlag ? (s(), d(
|
|
1907
|
-
|
|
1908
|
-
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, {
|
|
1909
1909
|
key: 0,
|
|
1910
1910
|
name: r.value,
|
|
1911
1911
|
class: "p-0 -translate-y-[1px]"
|
|
1912
|
-
}, null, 8, ["name"])) : (s(), d("span",
|
|
1913
|
-
|
|
1914
|
-
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, {
|
|
1915
1915
|
key: 2,
|
|
1916
1916
|
name: r.value,
|
|
1917
1917
|
class: "p-0 -translate-y-[1px]"
|
|
1918
1918
|
}, null, 8, ["name"])) : (s(), d("span", Jo, "分")),
|
|
1919
1919
|
Zo
|
|
1920
|
-
], 64)) :
|
|
1921
|
-
n.value ? (s(), d(
|
|
1922
|
-
|
|
1923
|
-
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, {
|
|
1924
1924
|
key: 0,
|
|
1925
1925
|
name: r.value,
|
|
1926
1926
|
class: "p-0 -translate-y-[1px]"
|
|
1927
1927
|
}, null, 8, ["name"])) : (s(), d("span", ea, "分"))
|
|
1928
|
-
], 64)) :
|
|
1929
|
-
])) :
|
|
1928
|
+
], 64)) : D("", !0)
|
|
1929
|
+
])) : D("", !0)
|
|
1930
1930
|
])
|
|
1931
1931
|
])
|
|
1932
1932
|
]));
|
|
1933
1933
|
}
|
|
1934
|
-
}), oa = { class: "flex-1 flex flex-col ml-2" },
|
|
1934
|
+
}), oa = { class: "flex-1 flex flex-col ml-2" }, bt = /* @__PURE__ */ J({
|
|
1935
1935
|
__name: "examInfoNone",
|
|
1936
1936
|
props: {
|
|
1937
1937
|
extent: {}
|
|
@@ -1940,11 +1940,11 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1940
1940
|
setup(e, { emit: t }) {
|
|
1941
1941
|
const o = ["examNumField", "examRoomField", "seatField"];
|
|
1942
1942
|
return (a, n) => (s(), d("ul", oa, [
|
|
1943
|
-
(s(), d(
|
|
1943
|
+
(s(), d(E, null, X(o, (r) => f("li", {
|
|
1944
1944
|
key: r,
|
|
1945
1945
|
class: "flex flex-1"
|
|
1946
1946
|
}, [
|
|
1947
|
-
|
|
1947
|
+
j(et, {
|
|
1948
1948
|
value: a.extent[r],
|
|
1949
1949
|
class: "px-0",
|
|
1950
1950
|
placeholder: "",
|
|
@@ -1954,73 +1954,73 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1954
1954
|
])), 64))
|
|
1955
1955
|
]));
|
|
1956
1956
|
}
|
|
1957
|
-
}), 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({
|
|
1958
1958
|
__name: "examInfoSeat",
|
|
1959
1959
|
setup(e) {
|
|
1960
1960
|
return (t, o) => (s(), d("div", {
|
|
1961
1961
|
class: "flex-shrink-0 border ml-4 flex flex-col",
|
|
1962
|
-
"data-xine": x(
|
|
1962
|
+
"data-xine": x(k).en_num_view
|
|
1963
1963
|
}, [
|
|
1964
|
-
|
|
1965
|
-
|
|
1964
|
+
f("p", la, [
|
|
1965
|
+
j(ye, {
|
|
1966
1966
|
class: "pt-1",
|
|
1967
1967
|
name: "fiveArrow"
|
|
1968
1968
|
}),
|
|
1969
|
-
|
|
1969
|
+
je("座位号")
|
|
1970
1970
|
]),
|
|
1971
|
-
|
|
1971
|
+
f("div", {
|
|
1972
1972
|
class: "flex-1 flex flex-col",
|
|
1973
|
-
"data-xine": x(
|
|
1973
|
+
"data-xine": x(k).en_num
|
|
1974
1974
|
}, [
|
|
1975
|
-
(s(), d(
|
|
1975
|
+
(s(), d(E, null, X(3, (a, n) => f("p", {
|
|
1976
1976
|
key: a,
|
|
1977
1977
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
1978
|
-
"data-xine": x(
|
|
1978
|
+
"data-xine": x(k).en_num_group
|
|
1979
1979
|
}, [
|
|
1980
|
-
(s(), d(
|
|
1980
|
+
(s(), d(E, null, X(10, (r) => f("span", {
|
|
1981
1981
|
key: r,
|
|
1982
1982
|
class: "flex items-center justify-between flex-nowrap item",
|
|
1983
|
-
"data-xine": x(
|
|
1984
|
-
},
|
|
1983
|
+
"data-xine": x(k).en_num_item
|
|
1984
|
+
}, V(r - 1), 9, ia)), 64))
|
|
1985
1985
|
], 8, sa)), 64))
|
|
1986
1986
|
], 8, na)
|
|
1987
1987
|
], 8, aa));
|
|
1988
1988
|
}
|
|
1989
1989
|
});
|
|
1990
|
-
const
|
|
1990
|
+
const vt = /* @__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({
|
|
1991
1991
|
__name: "examInfoShort",
|
|
1992
1992
|
setup(e) {
|
|
1993
1993
|
return (t, o) => (s(), d("div", {
|
|
1994
1994
|
class: "flex-shrink-0 border ml-4 flex",
|
|
1995
|
-
"data-xine": x(
|
|
1995
|
+
"data-xine": x(k).en_num_view
|
|
1996
1996
|
}, [
|
|
1997
|
-
|
|
1998
|
-
|
|
1997
|
+
f("p", da, [
|
|
1998
|
+
j(ye, {
|
|
1999
1999
|
class: "px-1 pt-1",
|
|
2000
2000
|
name: "fiveArrow"
|
|
2001
2001
|
}),
|
|
2002
|
-
|
|
2002
|
+
je("短学号")
|
|
2003
2003
|
]),
|
|
2004
|
-
|
|
2004
|
+
f("div", {
|
|
2005
2005
|
class: "flex-1 flex flex-col",
|
|
2006
|
-
"data-xine": x(
|
|
2006
|
+
"data-xine": x(k).en_num
|
|
2007
2007
|
}, [
|
|
2008
|
-
(s(), d(
|
|
2008
|
+
(s(), d(E, null, X(4, (a, n) => f("p", {
|
|
2009
2009
|
key: a,
|
|
2010
|
-
class:
|
|
2011
|
-
"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
|
|
2012
2012
|
}, [
|
|
2013
|
-
(s(), d(
|
|
2013
|
+
(s(), d(E, null, X(10, (r) => f("span", {
|
|
2014
2014
|
key: r,
|
|
2015
2015
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2016
|
-
"data-xine": x(
|
|
2017
|
-
},
|
|
2016
|
+
"data-xine": x(k).en_num_item
|
|
2017
|
+
}, V(r - 1), 9, pa)), 64))
|
|
2018
2018
|
], 10, ha)), 64))
|
|
2019
2019
|
], 8, ua)
|
|
2020
2020
|
], 8, ca));
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
|
-
const
|
|
2023
|
+
const wt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ J({
|
|
2024
2024
|
__name: "examInfoBase",
|
|
2025
2025
|
props: {
|
|
2026
2026
|
extent: {}
|
|
@@ -2029,11 +2029,11 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2029
2029
|
setup(e, { emit: t }) {
|
|
2030
2030
|
const o = ["nameField", "classField", "scoreField"];
|
|
2031
2031
|
return (a, n) => (s(), d("ul", ya, [
|
|
2032
|
-
(s(), d(
|
|
2032
|
+
(s(), d(E, null, X(o, (r) => f("li", {
|
|
2033
2033
|
key: r,
|
|
2034
2034
|
class: "flex flex-1"
|
|
2035
2035
|
}, [
|
|
2036
|
-
|
|
2036
|
+
j(et, {
|
|
2037
2037
|
value: a.extent[r],
|
|
2038
2038
|
class: "px-0",
|
|
2039
2039
|
placeholder: "",
|
|
@@ -2046,9 +2046,9 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2046
2046
|
}), fa = (e) => (Re("data-v-44e44996"), e = e(), We(), e), ga = {
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
class: "flex"
|
|
2049
|
-
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */
|
|
2049
|
+
}, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ f("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
|
|
2050
2050
|
va
|
|
2051
|
-
], xa = /* @__PURE__ */
|
|
2051
|
+
], xa = /* @__PURE__ */ J({
|
|
2052
2052
|
__name: "examInfo",
|
|
2053
2053
|
props: {
|
|
2054
2054
|
layout: {},
|
|
@@ -2057,43 +2057,43 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2057
2057
|
},
|
|
2058
2058
|
emits: ["change"],
|
|
2059
2059
|
setup(e, { emit: t }) {
|
|
2060
|
-
const o = e, a = A(() => o.layout.column >= 3 && o.layout.seatType ===
|
|
2061
|
-
return (n, r) => n.isBindFlag ?
|
|
2062
|
-
a.value ? (s(), d(
|
|
2063
|
-
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(bt, {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
extent: n.info.extentInfo,
|
|
2066
2066
|
onChange: r[0] || (r[0] = (l) => t("change", l))
|
|
2067
|
-
}, null, 8, ["extent"])) : n.layout.seatType === x(
|
|
2068
|
-
], 64)) :
|
|
2069
|
-
|
|
2067
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(vt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(wt, { key: 2 })) : D("", !0)
|
|
2068
|
+
], 64)) : D("", !0),
|
|
2069
|
+
j(_a, {
|
|
2070
2070
|
extent: n.info.extentInfo,
|
|
2071
2071
|
onChange: r[1] || (r[1] = (l) => t("change", l))
|
|
2072
2072
|
}, null, 8, ["extent"]),
|
|
2073
|
-
a.value ?
|
|
2074
|
-
n.layout.seatType === x(
|
|
2073
|
+
a.value ? D("", !0) : (s(), d(E, { key: 1 }, [
|
|
2074
|
+
n.layout.seatType === x(xe).none ? (s(), U(bt, {
|
|
2075
2075
|
key: 0,
|
|
2076
2076
|
extent: n.info.extentInfo,
|
|
2077
2077
|
onChange: r[2] || (r[2] = (l) => t("change", l))
|
|
2078
|
-
}, null, 8, ["extent"])) : n.layout.seatType === x(
|
|
2078
|
+
}, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(vt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(wt, { key: 2 })) : D("", !0)
|
|
2079
2079
|
], 64)),
|
|
2080
|
-
|
|
2080
|
+
f("div", {
|
|
2081
2081
|
class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
|
|
2082
|
-
"data-xine": x(
|
|
2082
|
+
"data-xine": x(k).en_code
|
|
2083
2083
|
}, wa, 8, ba)
|
|
2084
2084
|
]));
|
|
2085
2085
|
}
|
|
2086
2086
|
});
|
|
2087
|
-
const ka = /* @__PURE__ */
|
|
2087
|
+
const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), We(), e), Ca = {
|
|
2088
2088
|
key: 0,
|
|
2089
2089
|
class: "flex border mt-2 red_sheet"
|
|
2090
|
-
}, $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 = [
|
|
2091
2091
|
Ea,
|
|
2092
2092
|
Ma
|
|
2093
|
-
], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */
|
|
2094
|
-
/* @__PURE__ */
|
|
2095
|
-
/* @__PURE__ */
|
|
2096
|
-
], -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({
|
|
2097
2097
|
__name: "notice",
|
|
2098
2098
|
props: {
|
|
2099
2099
|
layout: {},
|
|
@@ -2102,9 +2102,9 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2102
2102
|
setup(e) {
|
|
2103
2103
|
const t = e, o = A(() => {
|
|
2104
2104
|
const a = {
|
|
2105
|
-
[
|
|
2106
|
-
[
|
|
2107
|
-
[
|
|
2105
|
+
[xe.none]: "",
|
|
2106
|
+
[xe.seat]: "座位号或",
|
|
2107
|
+
[xe.shortId]: "短学号或"
|
|
2108
2108
|
};
|
|
2109
2109
|
return [
|
|
2110
2110
|
`1.答题前,考生先将自己的基本信息填写清楚,并认真核对${t.isBindFlag ? "" : a[t.layout.seatType]}条形码上的信息;`,
|
|
@@ -2113,37 +2113,37 @@ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
|
|
|
2113
2113
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2114
2114
|
];
|
|
2115
2115
|
});
|
|
2116
|
-
return (a, n) => (s(), d(
|
|
2116
|
+
return (a, n) => (s(), d(E, null, [
|
|
2117
2117
|
a.layout.noteFlag ? (s(), d("div", Ca, [
|
|
2118
2118
|
$a,
|
|
2119
|
-
|
|
2120
|
-
(s(!0), d(
|
|
2119
|
+
f("div", Sa, [
|
|
2120
|
+
(s(!0), d(E, null, X(o.value, (r) => (s(), d("p", {
|
|
2121
2121
|
key: r,
|
|
2122
2122
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2123
|
-
},
|
|
2123
|
+
}, V(r), 1))), 128))
|
|
2124
2124
|
])
|
|
2125
|
-
])) :
|
|
2125
|
+
])) : D("", !0),
|
|
2126
2126
|
a.layout.lackFlag ? (s(), d("div", {
|
|
2127
2127
|
key: 1,
|
|
2128
|
-
class:
|
|
2128
|
+
class: ae(["flex border text-sm red_sheet", a.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2129
2129
|
}, [
|
|
2130
|
-
|
|
2130
|
+
f("p", Ta, [
|
|
2131
2131
|
Ia,
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2132
|
+
f("span", La, [
|
|
2133
|
+
j(ye, { name: "rightArrow" }),
|
|
2134
|
+
f("span", {
|
|
2135
2135
|
class: "flex items-center leading-4",
|
|
2136
|
-
"data-xine": x(
|
|
2136
|
+
"data-xine": x(k).lack
|
|
2137
2137
|
}, Pa, 8, Fa)
|
|
2138
2138
|
])
|
|
2139
2139
|
]),
|
|
2140
2140
|
Da
|
|
2141
|
-
], 2)) :
|
|
2141
|
+
], 2)) : D("", !0),
|
|
2142
2142
|
Aa
|
|
2143
2143
|
], 64));
|
|
2144
2144
|
}
|
|
2145
2145
|
});
|
|
2146
|
-
const Ba = /* @__PURE__ */
|
|
2146
|
+
const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), xt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, a = "children") => {
|
|
2147
2147
|
let n = [];
|
|
2148
2148
|
const r = (l) => {
|
|
2149
2149
|
(l[a] || []).length ? (o && n.push(t ? l[t] : l[a]), l[a].forEach((i) => r(i))) : n.push(t ? l[t] : l);
|
|
@@ -2159,19 +2159,19 @@ function Pt(e) {
|
|
|
2159
2159
|
return r ? `${r > 1 ? t[r] : ""}十${l ? t[l] : ""}` : t[l];
|
|
2160
2160
|
})[e + 1];
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function kt(e) {
|
|
2163
2163
|
return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
|
|
2164
2164
|
}
|
|
2165
2165
|
const za = {
|
|
2166
2166
|
key: 0,
|
|
2167
2167
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2168
|
-
}, Ha = /* @__PURE__ */
|
|
2169
|
-
/* @__PURE__ */
|
|
2170
|
-
/* @__PURE__ */
|
|
2171
|
-
], -1), Ra = { class: "flex-1" }, Wa = /* @__PURE__ */
|
|
2172
|
-
/* @__PURE__ */
|
|
2173
|
-
/* @__PURE__ */
|
|
2174
|
-
], -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({
|
|
2175
2175
|
__name: "scoreTable",
|
|
2176
2176
|
props: {
|
|
2177
2177
|
layout: {},
|
|
@@ -2181,17 +2181,17 @@ const za = {
|
|
|
2181
2181
|
const t = e, o = A(() => t.data.filter((a) => a.problemType));
|
|
2182
2182
|
return (a, n) => a.layout.scoreFlag ? (s(), d("ul", za, [
|
|
2183
2183
|
Ha,
|
|
2184
|
-
(s(!0), d(
|
|
2184
|
+
(s(!0), d(E, null, X(o.value, (r, l) => (s(), d("li", {
|
|
2185
2185
|
key: r.id,
|
|
2186
2186
|
class: "flex-1 flex flex-col border-l"
|
|
2187
2187
|
}, [
|
|
2188
|
-
|
|
2188
|
+
f("p", Ra, V(x(Pt)(l)), 1),
|
|
2189
2189
|
Wa
|
|
2190
2190
|
]))), 128)),
|
|
2191
2191
|
Ga
|
|
2192
|
-
])) :
|
|
2192
|
+
])) : D("", !0);
|
|
2193
2193
|
}
|
|
2194
|
-
}), qa = /* @__PURE__ */
|
|
2194
|
+
}), qa = /* @__PURE__ */ J({
|
|
2195
2195
|
__name: "columnDom",
|
|
2196
2196
|
props: {
|
|
2197
2197
|
column: {},
|
|
@@ -2200,44 +2200,44 @@ const za = {
|
|
|
2200
2200
|
styleInfo: {}
|
|
2201
2201
|
},
|
|
2202
2202
|
setup(e, { expose: t }) {
|
|
2203
|
-
const o = e, a =
|
|
2203
|
+
const o = e, a = G(), n = G();
|
|
2204
2204
|
t({ col: a, colView: n });
|
|
2205
2205
|
const r = A(() => {
|
|
2206
2206
|
const { top: c, width: u, height: m, left: O } = o.styleInfo;
|
|
2207
2207
|
return {
|
|
2208
|
-
top: `${parseFloat(c) - (o.currentColumn ?
|
|
2209
|
-
left: `${parseFloat(O) -
|
|
2210
|
-
width: `${parseFloat(u) +
|
|
2211
|
-
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`
|
|
2212
2212
|
};
|
|
2213
2213
|
}), l = A(() => ({
|
|
2214
|
-
left: `${
|
|
2215
|
-
top: `${
|
|
2216
|
-
bottom: `${
|
|
2217
|
-
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`
|
|
2218
2218
|
})), i = A(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2219
|
-
return (c, u) => (s(), d(
|
|
2219
|
+
return (c, u) => (s(), d(E, null, [
|
|
2220
2220
|
c.showColBorder ? (s(), d("div", {
|
|
2221
2221
|
key: 0,
|
|
2222
|
-
class:
|
|
2223
|
-
style:
|
|
2222
|
+
class: ae(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
|
|
2223
|
+
style: Y(r.value)
|
|
2224
2224
|
}, [
|
|
2225
|
-
|
|
2225
|
+
f("span", {
|
|
2226
2226
|
class: "absolute border border-black",
|
|
2227
|
-
style:
|
|
2227
|
+
style: Y(l.value)
|
|
2228
2228
|
}, null, 4)
|
|
2229
|
-
], 6)) :
|
|
2230
|
-
|
|
2229
|
+
], 6)) : D("", !0),
|
|
2230
|
+
f("div", {
|
|
2231
2231
|
class: "absolute overflow-hidden",
|
|
2232
2232
|
ref_key: "colView",
|
|
2233
2233
|
ref: n,
|
|
2234
|
-
style:
|
|
2234
|
+
style: Y(c.styleInfo)
|
|
2235
2235
|
}, [
|
|
2236
|
-
|
|
2236
|
+
f("div", {
|
|
2237
2237
|
ref_key: "col",
|
|
2238
2238
|
ref: a,
|
|
2239
2239
|
class: "overflow-hidden __col__",
|
|
2240
|
-
style:
|
|
2240
|
+
style: Y({ height: c.styleInfo.contentHeight })
|
|
2241
2241
|
}, [
|
|
2242
2242
|
it(c.$slots, "default", {}, void 0, !0)
|
|
2243
2243
|
], 4)
|
|
@@ -2245,9 +2245,9 @@ const za = {
|
|
|
2245
2245
|
], 64));
|
|
2246
2246
|
}
|
|
2247
2247
|
});
|
|
2248
|
-
const Qa = /* @__PURE__ */
|
|
2249
|
-
|
|
2250
|
-
],
|
|
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)), ja = ["data-xine"], Ka = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
|
|
2249
|
+
Ka
|
|
2250
|
+
], Xa = ["data-xine"], Ja = /* @__PURE__ */ J({
|
|
2251
2251
|
__name: "bind",
|
|
2252
2252
|
props: {
|
|
2253
2253
|
currentPage: {},
|
|
@@ -2256,42 +2256,42 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
|
|
|
2256
2256
|
isBindFlag: { type: Boolean }
|
|
2257
2257
|
},
|
|
2258
2258
|
setup(e) {
|
|
2259
|
-
const t =
|
|
2259
|
+
const t = G(), o = ["学校", "班级", "准考证号", "姓名"];
|
|
2260
2260
|
return (a, n) => a.isBindFlag ? (s(), d("div", {
|
|
2261
2261
|
key: 0,
|
|
2262
|
-
style:
|
|
2263
|
-
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"]),
|
|
2264
2264
|
ref_key: "view",
|
|
2265
2265
|
ref: t
|
|
2266
2266
|
}, [
|
|
2267
2267
|
a.currentPage % 2 ? (s(), d("div", {
|
|
2268
2268
|
key: 0,
|
|
2269
2269
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2270
|
-
style:
|
|
2270
|
+
style: Y({ width: `${a.height - 20}px`, height: `${a.width}px` })
|
|
2271
2271
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
|
|
2272
2272
|
key: 1,
|
|
2273
2273
|
class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2274
|
-
style:
|
|
2274
|
+
style: Y({ width: `${a.height - 20}px` })
|
|
2275
2275
|
}, [
|
|
2276
|
-
(s(), d(
|
|
2276
|
+
(s(), d(E, null, X(o, (r) => f("p", {
|
|
2277
2277
|
key: r,
|
|
2278
2278
|
class: "flex items-end flex-1 mr-4"
|
|
2279
2279
|
}, [
|
|
2280
|
-
|
|
2280
|
+
f("span", null, V(r), 1),
|
|
2281
2281
|
Ua
|
|
2282
2282
|
])), 64)),
|
|
2283
|
-
|
|
2283
|
+
f("div", {
|
|
2284
2284
|
class: "flex items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2285
|
-
"data-xine": x(
|
|
2286
|
-
},
|
|
2287
|
-
|
|
2288
|
-
"data-xine": x(
|
|
2289
|
-
}, null, 8,
|
|
2285
|
+
"data-xine": x(k).en_code
|
|
2286
|
+
}, Va, 8, ja),
|
|
2287
|
+
f("span", {
|
|
2288
|
+
"data-xine": x(k).bind_line
|
|
2289
|
+
}, null, 8, Xa)
|
|
2290
2290
|
], 4))
|
|
2291
|
-
], 6)) :
|
|
2291
|
+
], 6)) : D("", !0);
|
|
2292
2292
|
}
|
|
2293
2293
|
});
|
|
2294
|
-
const Za = /* @__PURE__ */
|
|
2294
|
+
const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", Ct = "MC5sZGN2NzJ0ZXE0bw", ut = "MC5yYjk3NGY2OTcyOA", ht = "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({
|
|
2295
2295
|
__name: "simple",
|
|
2296
2296
|
props: {
|
|
2297
2297
|
item: {},
|
|
@@ -2304,20 +2304,20 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2304
2304
|
});
|
|
2305
2305
|
return (n, r) => (s(), d("div", {
|
|
2306
2306
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2307
|
-
"data-block": x(
|
|
2308
|
-
"data-xine": x(
|
|
2307
|
+
"data-block": x(ke),
|
|
2308
|
+
"data-xine": x(k).score
|
|
2309
2309
|
}, [
|
|
2310
|
-
|
|
2310
|
+
f("ul", {
|
|
2311
2311
|
class: "flex h-full divide-x divide-solid",
|
|
2312
|
-
"data-xine": x(
|
|
2312
|
+
"data-xine": x(k).score_base
|
|
2313
2313
|
}, [
|
|
2314
|
-
(s(!0), d(
|
|
2314
|
+
(s(!0), d(E, null, X(a.value, (l, i) => (s(), d("li", {
|
|
2315
2315
|
class: "flex items-center justify-center relative score_line",
|
|
2316
|
-
style:
|
|
2317
|
-
"data-xine": x(
|
|
2316
|
+
style: Y({ width: `${x(Ke)[n.layout.scoreLineSize].value}px` }),
|
|
2317
|
+
"data-xine": x(k).score_item
|
|
2318
2318
|
}, [
|
|
2319
|
-
|
|
2320
|
-
|
|
2319
|
+
f("span", il, V(l), 1),
|
|
2320
|
+
j(ye, {
|
|
2321
2321
|
class: "p-0",
|
|
2322
2322
|
name: o[i]
|
|
2323
2323
|
}, null, 8, ["name"])
|
|
@@ -2325,7 +2325,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2325
2325
|
], 8, nl)
|
|
2326
2326
|
], 8, ll));
|
|
2327
2327
|
}
|
|
2328
|
-
}), 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({
|
|
2329
2329
|
__name: "index",
|
|
2330
2330
|
props: {
|
|
2331
2331
|
item: {},
|
|
@@ -2333,8 +2333,8 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2333
2333
|
static: { type: Boolean }
|
|
2334
2334
|
},
|
|
2335
2335
|
setup(e) {
|
|
2336
|
-
const t = e, o =
|
|
2337
|
-
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(() => {
|
|
2338
2338
|
c();
|
|
2339
2339
|
});
|
|
2340
2340
|
const c = () => {
|
|
@@ -2345,14 +2345,14 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2345
2345
|
else if (t.item.scoreLineType === De.step)
|
|
2346
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());
|
|
2347
2347
|
else if (t.item.scoreLineType === De.none) {
|
|
2348
|
-
const O = o.value.offsetWidth, h =
|
|
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((
|
|
2348
|
+
const O = o.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
|
|
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());
|
|
2350
2350
|
}
|
|
2351
2351
|
t.item.hasHalfScore && m.push([0.5]), l.value = m, n.value = !!m.flat().find((O) => `${O}`.length > 3);
|
|
2352
2352
|
});
|
|
2353
|
-
}, u = (m) => t.item.hasHalfScore ? [
|
|
2354
|
-
return (m, O) => m.layout.handReadFlag ? (s(), d(
|
|
2355
|
-
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, {
|
|
2356
2356
|
key: 0,
|
|
2357
2357
|
item: m.item,
|
|
2358
2358
|
layout: m.layout
|
|
@@ -2361,33 +2361,33 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2361
2361
|
ref_key: "view",
|
|
2362
2362
|
ref: o,
|
|
2363
2363
|
class: "inline-flex max-w-full border border-l-2 border-r-2 divide-x divide-solid",
|
|
2364
|
-
"data-block": x(
|
|
2365
|
-
"data-xine": x(
|
|
2364
|
+
"data-block": x(ke),
|
|
2365
|
+
"data-xine": x(k).score
|
|
2366
2366
|
}, [
|
|
2367
|
-
(s(!0), d(
|
|
2367
|
+
(s(!0), d(E, null, X(l.value, (h, F) => (s(), d("ul", {
|
|
2368
2368
|
class: "flex divide-x divide-solid",
|
|
2369
|
-
"data-xine": u(
|
|
2369
|
+
"data-xine": u(F)
|
|
2370
2370
|
}, [
|
|
2371
|
-
(s(!0), d(
|
|
2371
|
+
(s(!0), d(E, null, X(h, (Z) => (s(), d("li", {
|
|
2372
2372
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2373
|
-
style:
|
|
2374
|
-
"data-xine":
|
|
2373
|
+
style: Y({ width: `${x(Ke)[m.layout.scoreLineSize].value}px` }),
|
|
2374
|
+
"data-xine": Z.toString() ? x(k).score_item : ""
|
|
2375
2375
|
}, [
|
|
2376
|
-
|
|
2377
|
-
class:
|
|
2378
|
-
},
|
|
2379
|
-
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, {
|
|
2380
2380
|
key: 0,
|
|
2381
2381
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2382
2382
|
name: m.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2383
2383
|
width: n.value ? 0.9 : 1.2
|
|
2384
|
-
}, null, 8, ["name", "width"])) :
|
|
2384
|
+
}, null, 8, ["name", "width"])) : D("", !0)
|
|
2385
2385
|
], 12, ul))), 256))
|
|
2386
2386
|
], 8, dl))), 256))
|
|
2387
2387
|
], 8, cl))
|
|
2388
|
-
], 64)) :
|
|
2388
|
+
], 64)) : D("", !0);
|
|
2389
2389
|
}
|
|
2390
|
-
}), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), We(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */
|
|
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({
|
|
2391
2391
|
__name: "writeScore",
|
|
2392
2392
|
props: {
|
|
2393
2393
|
info: {},
|
|
@@ -2396,11 +2396,11 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2396
2396
|
setup(e) {
|
|
2397
2397
|
return (t, o) => (s(), d("div", {
|
|
2398
2398
|
class: "flex items-center mb-2",
|
|
2399
|
-
"data-xine": x(
|
|
2399
|
+
"data-xine": x(k).write_view
|
|
2400
2400
|
}, [
|
|
2401
2401
|
pl,
|
|
2402
2402
|
ml,
|
|
2403
|
-
|
|
2403
|
+
j(tt, {
|
|
2404
2404
|
item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
|
|
2405
2405
|
layout: t.layout,
|
|
2406
2406
|
static: ""
|
|
@@ -2408,7 +2408,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
|
|
|
2408
2408
|
], 8, hl));
|
|
2409
2409
|
}
|
|
2410
2410
|
});
|
|
2411
|
-
const _l = /* @__PURE__ */
|
|
2411
|
+
const _l = /* @__PURE__ */ de(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ J({
|
|
2412
2412
|
__name: "index",
|
|
2413
2413
|
props: {
|
|
2414
2414
|
data: {}
|
|
@@ -2421,7 +2421,7 @@ const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2421
2421
|
}, null, 8, fl));
|
|
2422
2422
|
}
|
|
2423
2423
|
});
|
|
2424
|
-
const Ne = /* @__PURE__ */
|
|
2424
|
+
const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ J({
|
|
2425
2425
|
__name: "notArea",
|
|
2426
2426
|
props: {
|
|
2427
2427
|
item: {}
|
|
@@ -2430,9 +2430,9 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2430
2430
|
return (t, o) => (s(), d("div", {
|
|
2431
2431
|
class: "py-2 border border-dashed rounded-lg mx-1 my-2",
|
|
2432
2432
|
"data-tag": t.item.__tag__,
|
|
2433
|
-
"data-block": x(
|
|
2433
|
+
"data-block": x(ut)
|
|
2434
2434
|
}, [
|
|
2435
|
-
|
|
2435
|
+
j(Ne, {
|
|
2436
2436
|
"data-content": t.item.id,
|
|
2437
2437
|
data: t.item.content
|
|
2438
2438
|
}, null, 8, ["data-content", "data"])
|
|
@@ -2444,7 +2444,7 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2444
2444
|
}, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
|
|
2445
2445
|
key: 1,
|
|
2446
2446
|
class: "indent-2"
|
|
2447
|
-
}, 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({
|
|
2448
2448
|
__name: "index",
|
|
2449
2449
|
props: {
|
|
2450
2450
|
item: {},
|
|
@@ -2455,54 +2455,54 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2455
2455
|
},
|
|
2456
2456
|
emits: ["click", "dbclick"],
|
|
2457
2457
|
setup(e, { emit: t }) {
|
|
2458
|
-
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]))]);
|
|
2459
2459
|
return (i, c) => i.item.problemType ? (s(), d("div", {
|
|
2460
2460
|
key: 1,
|
|
2461
|
-
class:
|
|
2461
|
+
class: ae(["flex items-baseline relative headline_item", i.showColBorder && "pl-2 mx-1 z-2", !i.isFirst && "headline_view"]),
|
|
2462
2462
|
onClick: c[2] || (c[2] = Le((u) => t("click", i.item), ["stop"])),
|
|
2463
2463
|
"data-tag": i.item.__tag__,
|
|
2464
|
-
"data-block": x(
|
|
2464
|
+
"data-block": x(ke),
|
|
2465
2465
|
onDblclick: c[3] || (c[3] = Le((u) => t("dbclick", i.item), ["stop"]))
|
|
2466
2466
|
}, [
|
|
2467
|
-
!i.layout.listIndexFlag && i.item.sub ? (s(), d("span", kl,
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
i.item.desc ? (s(), d("span", $l, "(" +
|
|
2472
|
-
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)
|
|
2473
2473
|
]),
|
|
2474
2474
|
a.value || n.value ? (s(), d("div", Tl, [
|
|
2475
|
-
a.value ? (s(), d("p", Il, "请在以下" +
|
|
2476
|
-
|
|
2475
|
+
a.value ? (s(), d("p", Il, "请在以下" + V(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2476
|
+
f("p", {
|
|
2477
2477
|
class: "flex flex-wrap",
|
|
2478
|
-
"data-block": x(
|
|
2479
|
-
"data-xine": x(
|
|
2478
|
+
"data-block": x(ke),
|
|
2479
|
+
"data-xine": x(k).choice + i.item.id
|
|
2480
2480
|
}, [
|
|
2481
2481
|
El,
|
|
2482
|
-
(s(!0), d(
|
|
2483
|
-
|
|
2484
|
-
|
|
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", {
|
|
2485
2485
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2486
|
-
"data-xine": x(
|
|
2486
|
+
"data-xine": x(k).fill
|
|
2487
2487
|
}, null, 8, Pl)
|
|
2488
2488
|
]))), 256))
|
|
2489
2489
|
], 8, Fl)
|
|
2490
|
-
])) :
|
|
2490
|
+
])) : D("", !0)
|
|
2491
2491
|
])
|
|
2492
|
-
], 42, xl)) : (s(),
|
|
2492
|
+
], 42, xl)) : (s(), U(vl, {
|
|
2493
2493
|
key: 0,
|
|
2494
|
-
class:
|
|
2494
|
+
class: ae([i.isActive && "border-current", i.isFirst && "mt-9"]),
|
|
2495
2495
|
item: i.item,
|
|
2496
2496
|
onClick: c[0] || (c[0] = Le((u) => t("click", i.item), ["stop"])),
|
|
2497
2497
|
onDblclick: c[1] || (c[1] = Le((u) => t("dbclick", i.item), ["stop"]))
|
|
2498
2498
|
}, null, 8, ["class", "item"]));
|
|
2499
2499
|
}
|
|
2500
2500
|
});
|
|
2501
|
-
const
|
|
2501
|
+
const $t = /* @__PURE__ */ de(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
|
|
2502
2502
|
function Nl(e, t) {
|
|
2503
2503
|
return null;
|
|
2504
2504
|
}
|
|
2505
|
-
const Bl = /* @__PURE__ */
|
|
2505
|
+
const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */ J({
|
|
2506
2506
|
__name: "sheet",
|
|
2507
2507
|
props: {
|
|
2508
2508
|
item: {},
|
|
@@ -2511,16 +2511,16 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2511
2511
|
setup(e) {
|
|
2512
2512
|
return (t, o) => (s(), d("div", {
|
|
2513
2513
|
class: "flex items-center red_sheet",
|
|
2514
|
-
"data-block": x(
|
|
2514
|
+
"data-block": x(ke)
|
|
2515
2515
|
}, [
|
|
2516
|
-
(s(!0), d(
|
|
2517
|
-
class:
|
|
2518
|
-
style:
|
|
2519
|
-
"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(xt)[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
|
|
2520
2520
|
}, [
|
|
2521
|
-
|
|
2521
|
+
j(ye, {
|
|
2522
2522
|
width: 1,
|
|
2523
|
-
name: x(
|
|
2523
|
+
name: x(xt)[n]
|
|
2524
2524
|
}, null, 8, ["name"])
|
|
2525
2525
|
], 14, zl))), 256))
|
|
2526
2526
|
], 8, Ol));
|
|
@@ -2529,11 +2529,11 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2529
2529
|
function Wl(e, t) {
|
|
2530
2530
|
return null;
|
|
2531
2531
|
}
|
|
2532
|
-
const Gl = /* @__PURE__ */
|
|
2533
|
-
|
|
2534
|
-
],
|
|
2535
|
-
|
|
2536
|
-
], Zl = /* @__PURE__ */
|
|
2532
|
+
const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], jl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), Kl = [
|
|
2533
|
+
jl
|
|
2534
|
+
], Vl = ["data-xine"], Xl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
|
|
2535
|
+
Xl
|
|
2536
|
+
], Zl = /* @__PURE__ */ J({
|
|
2537
2537
|
__name: "sheet",
|
|
2538
2538
|
props: {
|
|
2539
2539
|
item: {},
|
|
@@ -2541,45 +2541,45 @@ const Gl = /* @__PURE__ */ ce(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2541
2541
|
},
|
|
2542
2542
|
setup(e) {
|
|
2543
2543
|
const t = e, o = A(() => ({
|
|
2544
|
-
width: `${
|
|
2545
|
-
height: `${
|
|
2544
|
+
width: `${Ie[t.layout.fillSize].value + 1}px`,
|
|
2545
|
+
height: `${Ie[t.layout.fillSize].height + 1}px`
|
|
2546
2546
|
}));
|
|
2547
2547
|
return (a, n) => (s(), d("div", {
|
|
2548
2548
|
class: "flex red_sheet",
|
|
2549
|
-
"data-block": x(
|
|
2549
|
+
"data-block": x(ke)
|
|
2550
2550
|
}, [
|
|
2551
|
-
a.item.style[x(y)[a.layout.mode].decide_a] === x(
|
|
2552
|
-
|
|
2553
|
-
class:
|
|
2554
|
-
style:
|
|
2555
|
-
"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"
|
|
2556
2556
|
}, [
|
|
2557
|
-
|
|
2557
|
+
j(ye, {
|
|
2558
2558
|
name: "right",
|
|
2559
2559
|
width: 1
|
|
2560
2560
|
})
|
|
2561
2561
|
], 14, ql),
|
|
2562
|
-
|
|
2563
|
-
class:
|
|
2564
|
-
style:
|
|
2565
|
-
"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"
|
|
2566
2566
|
}, [
|
|
2567
|
-
|
|
2567
|
+
j(ye, {
|
|
2568
2568
|
name: "wrong",
|
|
2569
2569
|
width: 1
|
|
2570
2570
|
})
|
|
2571
2571
|
], 14, Ql)
|
|
2572
|
-
], 64)) : (s(), d(
|
|
2573
|
-
|
|
2574
|
-
class:
|
|
2575
|
-
style:
|
|
2576
|
-
"data-xine": x(
|
|
2577
|
-
},
|
|
2578
|
-
|
|
2579
|
-
class:
|
|
2580
|
-
style:
|
|
2581
|
-
"data-xine": x(
|
|
2582
|
-
}, Jl, 14,
|
|
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"
|
|
2577
|
+
}, Kl, 14, Ul),
|
|
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)
|
|
2583
2583
|
], 64))
|
|
2584
2584
|
], 8, Yl));
|
|
2585
2585
|
}
|
|
@@ -2587,10 +2587,10 @@ const Gl = /* @__PURE__ */ ce(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2587
2587
|
function tn(e, t) {
|
|
2588
2588
|
return null;
|
|
2589
2589
|
}
|
|
2590
|
-
const on = /* @__PURE__ */
|
|
2590
|
+
const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-xine"], ln = {
|
|
2591
2591
|
key: 0,
|
|
2592
2592
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2593
|
-
}, nn = { key: 1 }, sn = /* @__PURE__ */
|
|
2593
|
+
}, nn = { key: 1 }, sn = /* @__PURE__ */ J({
|
|
2594
2594
|
__name: "index",
|
|
2595
2595
|
props: {
|
|
2596
2596
|
item: {},
|
|
@@ -2602,21 +2602,21 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2602
2602
|
return (a, n) => a.layout.handReadFlag ? (s(), d("div", {
|
|
2603
2603
|
key: 0,
|
|
2604
2604
|
class: "score_fill flex items-center",
|
|
2605
|
-
"data-block": x(
|
|
2606
|
-
"data-xine": x(
|
|
2605
|
+
"data-block": x(ke),
|
|
2606
|
+
"data-xine": x(k).fill
|
|
2607
2607
|
}, [
|
|
2608
2608
|
a.showScoreCn ? (s(), d("span", ln, [
|
|
2609
|
-
|
|
2610
|
-
o.value ? (s(),
|
|
2609
|
+
f("span", null, V(a.layout.minusFlag && !o.value ? "-" : "") + V(a.item.score), 1),
|
|
2610
|
+
o.value ? (s(), U(ye, {
|
|
2611
2611
|
key: 0,
|
|
2612
2612
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2613
2613
|
name: a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2614
2614
|
width: 1.2
|
|
2615
2615
|
}, null, 8, ["name"])) : (s(), d("span", nn, "分"))
|
|
2616
|
-
])) :
|
|
2617
|
-
], 8, an)) :
|
|
2616
|
+
])) : D("", !0)
|
|
2617
|
+
], 8, an)) : D("", !0);
|
|
2618
2618
|
}
|
|
2619
|
-
}), rn = ["data-xine"], cn = /* @__PURE__ */
|
|
2619
|
+
}), rn = ["data-xine"], cn = /* @__PURE__ */ J({
|
|
2620
2620
|
__name: "sheet",
|
|
2621
2621
|
props: {
|
|
2622
2622
|
item: {},
|
|
@@ -2624,25 +2624,25 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2624
2624
|
},
|
|
2625
2625
|
setup(e) {
|
|
2626
2626
|
const t = e;
|
|
2627
|
-
return (o, a) => (s(), d(
|
|
2628
|
-
|
|
2627
|
+
return (o, a) => (s(), d(E, null, [
|
|
2628
|
+
f("div", {
|
|
2629
2629
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2630
|
-
style:
|
|
2631
|
-
"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
|
|
2632
2632
|
}, null, 12, rn),
|
|
2633
|
-
o.layout.handReadFlag ? (s(),
|
|
2633
|
+
o.layout.handReadFlag ? (s(), U(sn, {
|
|
2634
2634
|
key: 0,
|
|
2635
2635
|
item: o.item,
|
|
2636
2636
|
layout: o.layout,
|
|
2637
2637
|
showScoreCn: o.layout.fillScoreFlag
|
|
2638
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
2638
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
|
|
2639
2639
|
], 64));
|
|
2640
2640
|
}
|
|
2641
2641
|
}), dn = {};
|
|
2642
2642
|
function un(e, t) {
|
|
2643
2643
|
return null;
|
|
2644
2644
|
}
|
|
2645
|
-
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({
|
|
2646
2646
|
__name: "sheet",
|
|
2647
2647
|
props: {
|
|
2648
2648
|
item: {},
|
|
@@ -2651,22 +2651,22 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2651
2651
|
},
|
|
2652
2652
|
setup(e) {
|
|
2653
2653
|
return (t, o) => (s(), d("div", {
|
|
2654
|
-
class:
|
|
2654
|
+
class: ae(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
|
|
2655
2655
|
}, [
|
|
2656
|
-
t.item.chunk ?
|
|
2656
|
+
t.item.chunk ? D("", !0) : (s(), d("div", {
|
|
2657
2657
|
key: 0,
|
|
2658
2658
|
class: "flex items-center",
|
|
2659
|
-
"data-block": x(
|
|
2659
|
+
"data-block": x(ke)
|
|
2660
2660
|
}, [
|
|
2661
2661
|
it(t.$slots, "default"),
|
|
2662
|
-
|
|
2663
|
-
|
|
2662
|
+
f("div", mn, [
|
|
2663
|
+
j(tt, {
|
|
2664
2664
|
item: t.item,
|
|
2665
2665
|
layout: t.layout
|
|
2666
2666
|
}, null, 8, ["item", "layout"])
|
|
2667
2667
|
])
|
|
2668
2668
|
], 8, pn)),
|
|
2669
|
-
|
|
2669
|
+
j(Ne, {
|
|
2670
2670
|
"data-area": t.item.id,
|
|
2671
2671
|
data: t.item.answerArea
|
|
2672
2672
|
}, null, 8, ["data-area", "data"])
|
|
@@ -2676,16 +2676,16 @@ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2676
2676
|
function fn(e, t) {
|
|
2677
2677
|
return null;
|
|
2678
2678
|
}
|
|
2679
|
-
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({
|
|
2680
2680
|
__name: "sheet",
|
|
2681
2681
|
props: {
|
|
2682
2682
|
item: {},
|
|
2683
2683
|
layout: {}
|
|
2684
2684
|
},
|
|
2685
2685
|
setup(e) {
|
|
2686
|
-
return (t, o) => (s(), d(
|
|
2686
|
+
return (t, o) => (s(), d(E, null, [
|
|
2687
2687
|
bn,
|
|
2688
|
-
|
|
2688
|
+
j(tt, {
|
|
2689
2689
|
item: t.item,
|
|
2690
2690
|
layout: t.layout
|
|
2691
2691
|
}, null, 8, ["item", "layout"])
|
|
@@ -2695,30 +2695,30 @@ const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div
|
|
|
2695
2695
|
function xn(e, t) {
|
|
2696
2696
|
return null;
|
|
2697
2697
|
}
|
|
2698
|
-
const kn = /* @__PURE__ */
|
|
2698
|
+
const kn = /* @__PURE__ */ de(wn, [["render", xn]]), Cn = {};
|
|
2699
2699
|
function $n(e, t) {
|
|
2700
2700
|
return null;
|
|
2701
2701
|
}
|
|
2702
|
-
const Sn = /* @__PURE__ */
|
|
2702
|
+
const Sn = /* @__PURE__ */ de(Cn, [["render", $n]]), Tn = {};
|
|
2703
2703
|
function In(e, t) {
|
|
2704
2704
|
return null;
|
|
2705
2705
|
}
|
|
2706
|
-
const Ln = /* @__PURE__ */
|
|
2706
|
+
const Ln = /* @__PURE__ */ de(Tn, [["render", In]]), Fn = {};
|
|
2707
2707
|
function En(e, t) {
|
|
2708
2708
|
return null;
|
|
2709
2709
|
}
|
|
2710
|
-
const Mn = /* @__PURE__ */
|
|
2710
|
+
const Mn = /* @__PURE__ */ de(Fn, [["render", En]]), Pn = {};
|
|
2711
2711
|
function Dn(e, t) {
|
|
2712
2712
|
return null;
|
|
2713
2713
|
}
|
|
2714
|
-
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({
|
|
2715
2715
|
__name: "sheet",
|
|
2716
2716
|
props: {
|
|
2717
2717
|
item: {},
|
|
2718
2718
|
layout: {}
|
|
2719
2719
|
},
|
|
2720
2720
|
setup(e) {
|
|
2721
|
-
const t = e, o =
|
|
2721
|
+
const t = e, o = G(0), a = G({}), n = G(), r = G(), l = G([]), i = A(() => {
|
|
2722
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);
|
|
2723
2723
|
return h ? Math.ceil(h / (o.value || h)) : 0;
|
|
2724
2724
|
}), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), u = A(() => ({
|
|
@@ -2727,83 +2727,83 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2727
2727
|
})), m = A(() => ({
|
|
2728
2728
|
width: `${c.value}px`
|
|
2729
2729
|
})), O = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
2730
|
-
return
|
|
2730
|
+
return Xe(() => {
|
|
2731
2731
|
Je(() => {
|
|
2732
2732
|
o.value = Math.floor(n.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
2733
2733
|
if (!n.value)
|
|
2734
2734
|
return;
|
|
2735
|
-
const L = n.value.getBoundingClientRect(),
|
|
2735
|
+
const L = n.value.getBoundingClientRect(), W = r.value[0].getBoundingClientRect();
|
|
2736
2736
|
a.value = {
|
|
2737
|
-
left: `${
|
|
2738
|
-
top: `${
|
|
2737
|
+
left: `${W.left - L.left}px`,
|
|
2738
|
+
top: `${W.top - L.top}px`
|
|
2739
2739
|
};
|
|
2740
2740
|
}, 20);
|
|
2741
2741
|
});
|
|
2742
|
-
const h = parseInt(t.item.style[y[t.layout.mode].art_c]),
|
|
2743
|
-
l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1,
|
|
2744
|
-
}), (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", {
|
|
2745
2745
|
class: "w-full relative min-h-[10rem]",
|
|
2746
2746
|
ref_key: "view",
|
|
2747
2747
|
ref: n,
|
|
2748
2748
|
"data-viewid": h.item.id
|
|
2749
2749
|
}, [
|
|
2750
|
-
h.item.chunk ?
|
|
2750
|
+
h.item.chunk ? D("", !0) : (s(), d("div", {
|
|
2751
2751
|
key: 0,
|
|
2752
2752
|
class: "flex items-center mt-1 mb-4",
|
|
2753
|
-
"data-block": x(
|
|
2753
|
+
"data-block": x(ke)
|
|
2754
2754
|
}, [
|
|
2755
2755
|
it(h.$slots, "default"),
|
|
2756
|
-
|
|
2757
|
-
|
|
2756
|
+
f("div", On, [
|
|
2757
|
+
j(tt, {
|
|
2758
2758
|
item: h.item,
|
|
2759
2759
|
layout: h.layout
|
|
2760
2760
|
}, null, 8, ["item", "layout"])
|
|
2761
2761
|
])
|
|
2762
2762
|
], 8, Bn)),
|
|
2763
|
-
h.item.beforeArt && !h.item.startAnswerLen ? (s(),
|
|
2763
|
+
h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(Ne, {
|
|
2764
2764
|
key: 1,
|
|
2765
2765
|
data: h.item.beforeArt,
|
|
2766
2766
|
"data-bart": h.item.id,
|
|
2767
2767
|
class: "indent-[2em]"
|
|
2768
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
2768
|
+
}, null, 8, ["data", "data-bart"])) : D("", !0),
|
|
2769
2769
|
h.item.beforeGuide && !h.item.artBlock ? (s(), d("p", {
|
|
2770
2770
|
key: 2,
|
|
2771
2771
|
"data-block": x(Ee),
|
|
2772
2772
|
"data-guide": h.item.id,
|
|
2773
|
-
class:
|
|
2774
|
-
style:
|
|
2775
|
-
},
|
|
2776
|
-
(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", {
|
|
2777
2777
|
ref_for: !0,
|
|
2778
2778
|
ref_key: "line",
|
|
2779
2779
|
ref: r,
|
|
2780
|
-
class:
|
|
2781
|
-
"data-block": x(
|
|
2782
|
-
"data-size": h.item.startAnswerLen + (
|
|
2783
|
-
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)
|
|
2784
2784
|
}, [
|
|
2785
|
-
h.item.artBlock ? (s(!0), d(
|
|
2786
|
-
class:
|
|
2787
|
-
style:
|
|
2788
|
-
},
|
|
2789
|
-
(s(!0), d(
|
|
2790
|
-
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", {
|
|
2791
2791
|
key: 0,
|
|
2792
2792
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2793
|
-
style:
|
|
2793
|
+
style: Y({ left: `${(L - h.item.startAnswerLen) % o.value * c.value}px` }),
|
|
2794
2794
|
"data-block": x(Ee)
|
|
2795
|
-
},
|
|
2795
|
+
}, V(L), 13, Rn)) : D("", !0)
|
|
2796
2796
|
], 64))), 256))
|
|
2797
2797
|
], 14, Hn))), 256)),
|
|
2798
|
-
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(),
|
|
2798
|
+
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(Ne, {
|
|
2799
2799
|
key: 3,
|
|
2800
2800
|
data: h.item.afterArt,
|
|
2801
2801
|
"data-aart": h.item.id,
|
|
2802
2802
|
class: "mt-2 indent-[2em]"
|
|
2803
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
2803
|
+
}, null, 8, ["data", "data-aart"])) : D("", !0)
|
|
2804
2804
|
], 8, Nn));
|
|
2805
2805
|
}
|
|
2806
|
-
}), Gn = ["data-block"], Yn = /* @__PURE__ */
|
|
2806
|
+
}), Gn = ["data-block"], Yn = /* @__PURE__ */ J({
|
|
2807
2807
|
__name: "index",
|
|
2808
2808
|
props: {
|
|
2809
2809
|
item: {},
|
|
@@ -2813,18 +2813,18 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2813
2813
|
setup(e, { emit: t }) {
|
|
2814
2814
|
return (o, a) => (s(), d("div", {
|
|
2815
2815
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
2816
|
-
"data-block": x(
|
|
2816
|
+
"data-block": x(ut)
|
|
2817
2817
|
}, [
|
|
2818
|
-
|
|
2818
|
+
j(Ne, {
|
|
2819
2819
|
"data-content": o.item.id,
|
|
2820
2820
|
data: o.item.content
|
|
2821
2821
|
}, null, 8, ["data-content", "data"])
|
|
2822
2822
|
], 8, Gn));
|
|
2823
2823
|
}
|
|
2824
|
-
}), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 },
|
|
2824
|
+
}), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, jn = { key: 2 }, Kn = {
|
|
2825
2825
|
key: 3,
|
|
2826
2826
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
2827
|
-
},
|
|
2827
|
+
}, Vn = /* @__PURE__ */ J({
|
|
2828
2828
|
__name: "index",
|
|
2829
2829
|
props: {
|
|
2830
2830
|
sub: {},
|
|
@@ -2834,19 +2834,19 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2834
2834
|
setup(e) {
|
|
2835
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` : "");
|
|
2836
2836
|
return (n, r) => (s(), d("span", {
|
|
2837
|
-
class:
|
|
2838
|
-
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 }),
|
|
2839
2839
|
"data-block": x(Ee)
|
|
2840
2840
|
}, [
|
|
2841
|
-
(s(!0), d(
|
|
2842
|
-
i ? (s(), d("span", Qn, " - ")) :
|
|
2843
|
-
l[0] ? (s(), d("span", Un,
|
|
2844
|
-
l[1] ? (s(), d("span",
|
|
2845
|
-
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", jn, "(" + V(l[1]) + ")", 1)) : D("", !0),
|
|
2845
|
+
l[2] ? (s(), d("span", Kn, V(l[2]), 1)) : D("", !0)
|
|
2846
2846
|
], 64))), 256))
|
|
2847
2847
|
], 14, qn));
|
|
2848
2848
|
}
|
|
2849
|
-
}),
|
|
2849
|
+
}), Xn = {
|
|
2850
2850
|
components: {
|
|
2851
2851
|
choice: Bl,
|
|
2852
2852
|
choiceSheet: Hl,
|
|
@@ -2865,7 +2865,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2865
2865
|
art: An,
|
|
2866
2866
|
artSheet: Wn,
|
|
2867
2867
|
notArea: Yn,
|
|
2868
|
-
Sub:
|
|
2868
|
+
Sub: Vn
|
|
2869
2869
|
},
|
|
2870
2870
|
props: {
|
|
2871
2871
|
data: {
|
|
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2894
2894
|
dbclick: null
|
|
2895
2895
|
},
|
|
2896
2896
|
setup(e, { emit: t }) {
|
|
2897
|
-
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(() => {
|
|
2898
2898
|
const _ = o ? {
|
|
2899
2899
|
choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2900
2900
|
fillSheet: [p.fill, p.fill_english]
|
|
@@ -2902,57 +2902,57 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2902
2902
|
choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
|
|
2903
2903
|
fill: [p.fill, p.fill_english]
|
|
2904
2904
|
};
|
|
2905
|
-
return Object.keys(p).reduce((
|
|
2906
|
-
}), 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(() => {
|
|
2907
2907
|
let _ = [];
|
|
2908
|
-
return e.data.children.forEach((
|
|
2909
|
-
let
|
|
2910
|
-
(
|
|
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({
|
|
2911
2911
|
type: "polymer",
|
|
2912
|
-
problemType:
|
|
2913
|
-
polymerId:
|
|
2914
|
-
styleInfo:
|
|
2912
|
+
problemType: C.problemType,
|
|
2913
|
+
polymerId: C.polymerId,
|
|
2914
|
+
styleInfo: C.polymerId ? C.style : e.data.style,
|
|
2915
2915
|
children: [],
|
|
2916
2916
|
rawChildren: e.data.rawChildren || []
|
|
2917
|
-
}),
|
|
2917
|
+
}), v = _[_.length - 1]) : (!v || v.type !== "base") && (_.push({
|
|
2918
2918
|
type: "base",
|
|
2919
2919
|
children: []
|
|
2920
|
-
}),
|
|
2921
|
-
}), _ = _.map((
|
|
2922
|
-
var
|
|
2923
|
-
if (
|
|
2924
|
-
const
|
|
2925
|
-
if (
|
|
2926
|
-
const B =
|
|
2927
|
-
return [...Array(Math.ceil(
|
|
2928
|
-
...
|
|
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,
|
|
2929
2929
|
groupIndex: he,
|
|
2930
|
-
children:
|
|
2930
|
+
children: C.children.slice(he * z * B, (he + 1) * z * B)
|
|
2931
2931
|
}));
|
|
2932
2932
|
} else
|
|
2933
|
-
return
|
|
2933
|
+
return C;
|
|
2934
2934
|
} else
|
|
2935
|
-
return
|
|
2935
|
+
return C;
|
|
2936
2936
|
}).flat(), _;
|
|
2937
2937
|
}), c = A(() => {
|
|
2938
2938
|
let _ = {};
|
|
2939
|
-
return e.data.children.forEach((
|
|
2940
|
-
|
|
2939
|
+
return e.data.children.forEach((C) => {
|
|
2940
|
+
C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
|
|
2941
2941
|
}), _;
|
|
2942
2942
|
}), u = A(() => {
|
|
2943
2943
|
if (a.includes(e.data.problemType)) {
|
|
2944
|
-
const _ = (e.data.rawChildren || e.data.children).map((
|
|
2944
|
+
const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
|
|
2945
2945
|
return { [`h${e.data.id}`]: Math.max(..._) };
|
|
2946
2946
|
} else
|
|
2947
2947
|
return Object.keys(c.value).map((_) => {
|
|
2948
|
-
const
|
|
2948
|
+
const C = (e.data.rawChildren || e.data.children).filter((v) => v.polymerId === _).map((v) => v.subStr.length);
|
|
2949
2949
|
return {
|
|
2950
|
-
[_]: Math.max(...
|
|
2950
|
+
[_]: Math.max(...C)
|
|
2951
2951
|
};
|
|
2952
|
-
}).reduce((_,
|
|
2952
|
+
}).reduce((_, C) => ({ ..._, ...C }), {});
|
|
2953
2953
|
});
|
|
2954
2954
|
return {
|
|
2955
|
-
Gps_cls:
|
|
2955
|
+
Gps_cls: k,
|
|
2956
2956
|
hoverActive: n,
|
|
2957
2957
|
ModuleTag: o,
|
|
2958
2958
|
ChoiceType: l,
|
|
@@ -2961,78 +2961,78 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2961
2961
|
SubWidthInfo: u,
|
|
2962
2962
|
ComputName: (_) => _.problemType ? r.value[_.problemType] : "notArea",
|
|
2963
2963
|
ComputAbs: (_) => o && [p.slove, p.art].includes(_.problemType),
|
|
2964
|
-
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"],
|
|
2965
2965
|
ComputPolymerStyle: (_) => {
|
|
2966
|
-
var he,
|
|
2967
|
-
let
|
|
2968
|
-
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;
|
|
2969
2969
|
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2970
|
-
case
|
|
2971
|
-
_.styleInfo[y[e.layout.mode].choice_b] ===
|
|
2970
|
+
case I.choice_1:
|
|
2971
|
+
_.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (C = {
|
|
2972
2972
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2973
2973
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2974
2974
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
|
|
2975
|
-
"column-gap": `${
|
|
2975
|
+
"column-gap": `${me}px`
|
|
2976
2976
|
});
|
|
2977
2977
|
break;
|
|
2978
|
-
case
|
|
2979
|
-
|
|
2978
|
+
case I.choice_3:
|
|
2979
|
+
C = {
|
|
2980
2980
|
"grid-template-columns": `repeat(${B}, 1fr)`,
|
|
2981
2981
|
"grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
|
|
2982
|
-
}, _.styleInfo[y[e.layout.mode].choice_b] ===
|
|
2983
|
-
...
|
|
2982
|
+
}, _.styleInfo[y[e.layout.mode].choice_b] === I.portrait && (C = {
|
|
2983
|
+
...C,
|
|
2984
2984
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2985
|
-
"column-gap": `${
|
|
2985
|
+
"column-gap": `${me}px`
|
|
2986
2986
|
});
|
|
2987
2987
|
break;
|
|
2988
2988
|
}
|
|
2989
|
-
return
|
|
2989
|
+
return C;
|
|
2990
2990
|
},
|
|
2991
|
-
ComputPolymerItemStyle: (_,
|
|
2992
|
-
var
|
|
2993
|
-
if (a.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] ===
|
|
2994
|
-
const
|
|
2995
|
-
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))
|
|
2996
2996
|
return {
|
|
2997
|
-
"margin-right": `${
|
|
2997
|
+
"margin-right": `${me}px`
|
|
2998
2998
|
};
|
|
2999
2999
|
}
|
|
3000
3000
|
return {};
|
|
3001
3001
|
},
|
|
3002
|
-
ComputStyle: (_,
|
|
3003
|
-
var
|
|
3004
|
-
let
|
|
3002
|
+
ComputStyle: (_, C) => {
|
|
3003
|
+
var z;
|
|
3004
|
+
let v = {};
|
|
3005
3005
|
if (!o)
|
|
3006
|
-
return
|
|
3006
|
+
return v;
|
|
3007
3007
|
if (a.includes(_.problemType)) {
|
|
3008
3008
|
let B = {};
|
|
3009
|
-
if (Object.values(
|
|
3010
|
-
const
|
|
3011
|
-
B =
|
|
3009
|
+
if (Object.values(rt).includes(e.data.problemType)) {
|
|
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` };
|
|
3012
3012
|
}
|
|
3013
|
-
|
|
3014
|
-
...
|
|
3013
|
+
v = {
|
|
3014
|
+
...v,
|
|
3015
3015
|
display: "inline-flex",
|
|
3016
3016
|
...B
|
|
3017
3017
|
};
|
|
3018
3018
|
} else
|
|
3019
|
-
[p.fill, p.fill_english].includes(_.problemType) && (
|
|
3020
|
-
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",
|
|
3021
3021
|
alignItems: "flex-end",
|
|
3022
3022
|
width: `calc(${100 / _.style[y[e.layout.mode].fill_d][_.order || 0]}% - 6px)`
|
|
3023
3023
|
// paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
|
|
3024
3024
|
});
|
|
3025
|
-
return
|
|
3025
|
+
return v;
|
|
3026
3026
|
},
|
|
3027
3027
|
ComputBlock: (_) => {
|
|
3028
|
-
const
|
|
3029
|
-
if (o && (
|
|
3030
|
-
return
|
|
3028
|
+
const C = [...a, p.fill, p.fill_english];
|
|
3029
|
+
if (o && (C.includes(_.problemType) || typeof _.groupIndex == "number"))
|
|
3030
|
+
return ke;
|
|
3031
3031
|
},
|
|
3032
|
-
ComputPayload: (_,
|
|
3032
|
+
ComputPayload: (_, C) => {
|
|
3033
3033
|
switch (_.problemType) {
|
|
3034
3034
|
case p.slove:
|
|
3035
|
-
return { isFirst: !
|
|
3035
|
+
return { isFirst: !C };
|
|
3036
3036
|
default:
|
|
3037
3037
|
return {};
|
|
3038
3038
|
}
|
|
@@ -3043,51 +3043,51 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
3043
3043
|
handleHoverOut: (_) => {
|
|
3044
3044
|
n.value = "";
|
|
3045
3045
|
},
|
|
3046
|
-
handleClick: (_,
|
|
3047
|
-
e.data.isPolymer || (_.stopPropagation(), t("click",
|
|
3046
|
+
handleClick: (_, C) => {
|
|
3047
|
+
e.data.isPolymer || (_.stopPropagation(), t("click", C));
|
|
3048
3048
|
},
|
|
3049
|
-
handleDblClick: (_,
|
|
3050
|
-
e.data.isPolymer || (_.stopPropagation(), t("dbclick",
|
|
3049
|
+
handleDblClick: (_, C) => {
|
|
3050
|
+
e.data.isPolymer || (_.stopPropagation(), t("dbclick", C));
|
|
3051
3051
|
}
|
|
3052
3052
|
};
|
|
3053
3053
|
}
|
|
3054
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
3055
|
function os(e, t, o, a, n, r) {
|
|
3056
3056
|
const l = Ht("Sub");
|
|
3057
|
-
return s(!0), d(
|
|
3057
|
+
return s(!0), d(E, null, X(a.GroupData, (i) => (s(), d(E, null, [
|
|
3058
3058
|
i.type === "polymer" ? (s(), d("div", {
|
|
3059
3059
|
key: 0,
|
|
3060
3060
|
"data-block": a.ComputBlock(i),
|
|
3061
|
-
class:
|
|
3062
|
-
style:
|
|
3061
|
+
class: ae([...a.ComputPolymerCls(i)]),
|
|
3062
|
+
style: Y(a.ComputPolymerStyle(i))
|
|
3063
3063
|
}, [
|
|
3064
|
-
(s(!0), d(
|
|
3064
|
+
(s(!0), d(E, null, X(i.children, (c, u) => {
|
|
3065
3065
|
var m;
|
|
3066
3066
|
return s(), d("div", {
|
|
3067
|
-
class:
|
|
3068
|
-
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)),
|
|
3069
3069
|
"data-tag": c.__tag__,
|
|
3070
3070
|
"data-block": a.ComputBlock(c),
|
|
3071
3071
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
3072
3072
|
onMouseenter: (O) => a.handleHoverIn(c),
|
|
3073
3073
|
onMouseleave: (O) => a.handleHoverOut(c)
|
|
3074
3074
|
}, [
|
|
3075
|
-
c.problemType ? (s(),
|
|
3075
|
+
c.problemType ? (s(), U(l, {
|
|
3076
3076
|
key: 0,
|
|
3077
3077
|
sub: c.sub,
|
|
3078
3078
|
isFull: !!a.ModuleTag,
|
|
3079
3079
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0,
|
|
3080
|
-
class:
|
|
3081
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3082
|
-
(s(),
|
|
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(yt(a.ComputName(c)), _t(ft({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), null, 16))
|
|
3083
3083
|
], 46, Zn);
|
|
3084
3084
|
}), 256))
|
|
3085
|
-
], 14, Jn)) : (s(!0), d(
|
|
3085
|
+
], 14, Jn)) : (s(!0), d(E, { key: 1 }, X(i.children, (c, u) => {
|
|
3086
3086
|
var m;
|
|
3087
|
-
return s(), d(
|
|
3088
|
-
|
|
3089
|
-
class:
|
|
3090
|
-
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)),
|
|
3091
3091
|
"data-tag": c.__tag__,
|
|
3092
3092
|
"data-block": a.ComputBlock(c),
|
|
3093
3093
|
"data-xine": a.Gps_cls.item + c._sub,
|
|
@@ -3096,15 +3096,15 @@ function os(e, t, o, a, n, r) {
|
|
|
3096
3096
|
onMouseenter: (O) => a.handleHoverIn(c),
|
|
3097
3097
|
onMouseleave: (O) => a.handleHoverOut(c)
|
|
3098
3098
|
}, [
|
|
3099
|
-
c.problemType && !a.ComputAbs(c) ? (s(),
|
|
3099
|
+
c.problemType && !a.ComputAbs(c) ? (s(), U(l, {
|
|
3100
3100
|
key: 0,
|
|
3101
3101
|
sub: c.sub,
|
|
3102
3102
|
isFull: !!a.ModuleTag,
|
|
3103
3103
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
|
|
3104
|
-
}, null, 8, ["sub", "isFull", "width"])) :
|
|
3105
|
-
(s(),
|
|
3106
|
-
default:
|
|
3107
|
-
|
|
3104
|
+
}, null, 8, ["sub", "isFull", "width"])) : D("", !0),
|
|
3105
|
+
(s(), U(yt(a.ComputName(c)), _t(ft({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), {
|
|
3106
|
+
default: Lt(() => [
|
|
3107
|
+
j(l, {
|
|
3108
3108
|
sub: c.sub,
|
|
3109
3109
|
isFull: !!a.ModuleTag,
|
|
3110
3110
|
width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
|
|
@@ -3113,15 +3113,15 @@ function os(e, t, o, a, n, r) {
|
|
|
3113
3113
|
_: 2
|
|
3114
3114
|
}, 1040))
|
|
3115
3115
|
], 46, es),
|
|
3116
|
-
c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) :
|
|
3116
|
+
c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) : D("", !0)
|
|
3117
3117
|
], 64);
|
|
3118
3118
|
}), 256))
|
|
3119
3119
|
], 64))), 256);
|
|
3120
3120
|
}
|
|
3121
|
-
const Ye = /* @__PURE__ */
|
|
3122
|
-
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));
|
|
3123
3123
|
return !(a.top >= o.top + o.height || a.top + a.height < o.top);
|
|
3124
|
-
},
|
|
3124
|
+
}, ce = (e, t, o = !1) => !e || !t ? null : {
|
|
3125
3125
|
x: e.x - t.x,
|
|
3126
3126
|
y: e.y - t.y + (o ? 1 : 0),
|
|
3127
3127
|
width: e.width,
|
|
@@ -3141,7 +3141,7 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3141
3141
|
width: r.width,
|
|
3142
3142
|
height: l - (a ? 2 : 0)
|
|
3143
3143
|
} : null;
|
|
3144
|
-
},
|
|
3144
|
+
}, ne = (e, t = !1) => {
|
|
3145
3145
|
if (!e)
|
|
3146
3146
|
return null;
|
|
3147
3147
|
const o = t ? Nt : 0, a = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -3151,21 +3151,21 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3151
3151
|
width: Math.round(a.width * Fe + o * 2),
|
|
3152
3152
|
height: Math.round(a.height * Fe + o * 2)
|
|
3153
3153
|
};
|
|
3154
|
-
}, Bt = (e, t =
|
|
3155
|
-
const o =
|
|
3154
|
+
}, Bt = (e, t = k.en_num) => {
|
|
3155
|
+
const o = se(t);
|
|
3156
3156
|
if (!o)
|
|
3157
3157
|
return null;
|
|
3158
3158
|
const a = {
|
|
3159
3159
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3160
|
-
area:
|
|
3161
|
-
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)))
|
|
3162
3162
|
};
|
|
3163
3163
|
return {
|
|
3164
3164
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3165
3165
|
yRowOffset: Math.round((a.list[1][0].y - a.list[0][0].y - a.list[0][0].height) * Fe),
|
|
3166
|
-
firstChoicePosition:
|
|
3166
|
+
firstChoicePosition: ne(a.list[0][0]),
|
|
3167
3167
|
crosswised: !0,
|
|
3168
|
-
choiceQuestionPosition:
|
|
3168
|
+
choiceQuestionPosition: ne(a.area),
|
|
3169
3169
|
choiceQuestionCount: a.list.length,
|
|
3170
3170
|
xColOffset: Math.round((a.list[0][1].x - a.list[0][0].x - a.list[0][0].width) * Fe),
|
|
3171
3171
|
questionNOList: [...Array(a.list.length).keys()].map((n, r) => r + 1)
|
|
@@ -3175,35 +3175,35 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3175
3175
|
cardColumnCount: e.layout.column,
|
|
3176
3176
|
cardColumnCount2: e.layout.backColumn,
|
|
3177
3177
|
doubleCard: !0,
|
|
3178
|
-
paperWidth: Math.round(
|
|
3179
|
-
paperHeight: Math.round(
|
|
3178
|
+
paperWidth: Math.round(g[e.layout.paper].width * Fe),
|
|
3179
|
+
paperHeight: Math.round(g[e.layout.paper].height * Fe)
|
|
3180
3180
|
}), ss = (e) => {
|
|
3181
3181
|
const t = N(e.pageDom[0]), o = N(e.pageDom[1]), a = (n) => {
|
|
3182
3182
|
var l;
|
|
3183
3183
|
const r = e.layout.backColumn > 2 ? {
|
|
3184
|
-
trdLeftTopPos:
|
|
3185
|
-
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])))
|
|
3186
3186
|
} : {};
|
|
3187
3187
|
return (l = ze.find((i) => i.code === e.layout.paper)) != null && l.isMultCol ? {
|
|
3188
|
-
secLeftTopPos:
|
|
3189
|
-
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]))),
|
|
3190
3190
|
...r
|
|
3191
3191
|
} : null;
|
|
3192
3192
|
};
|
|
3193
3193
|
return {
|
|
3194
3194
|
// 取第一/二页定位点信息
|
|
3195
|
-
leftTopPos:
|
|
3196
|
-
rightTopPos:
|
|
3197
|
-
leftBottomPos:
|
|
3198
|
-
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)),
|
|
3199
3199
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3200
3200
|
verticalAuxInfo: [
|
|
3201
|
-
|
|
3202
|
-
|
|
3201
|
+
ne(ce(N(se(`${k.point}l`, e.pageDom[0])), t)),
|
|
3202
|
+
ne(ce(N(se(`${k.point}r`, e.pageDom[0])), t))
|
|
3203
3203
|
],
|
|
3204
3204
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3205
|
-
|
|
3206
|
-
|
|
3205
|
+
ne(ce(N(se(`${k.point}l`, e.pageDom[1])), o)),
|
|
3206
|
+
ne(ce(N(se(`${k.point}r`, e.pageDom[1])), o))
|
|
3207
3207
|
] : null,
|
|
3208
3208
|
auxAnchorInfo: a(0),
|
|
3209
3209
|
auxAnchorInfo2: e.pageDom[1] ? a(1) : null
|
|
@@ -3211,22 +3211,22 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3211
3211
|
}, is = (e) => {
|
|
3212
3212
|
let t = 10;
|
|
3213
3213
|
if (e.pageDom[1]) {
|
|
3214
|
-
const a =
|
|
3215
|
-
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;
|
|
3216
3216
|
}
|
|
3217
|
-
let o =
|
|
3218
|
-
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)) }, [
|
|
3219
3219
|
{
|
|
3220
3220
|
// 固定值
|
|
3221
3221
|
choiceQuestionCount: 1,
|
|
3222
3222
|
// 固定值
|
|
3223
3223
|
questionNOList: [1],
|
|
3224
3224
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3225
|
-
choiceQuestionPosition:
|
|
3225
|
+
choiceQuestionPosition: ne(o, !0),
|
|
3226
3226
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3227
|
-
firstChoicePosition:
|
|
3227
|
+
firstChoicePosition: ne(ce(N(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]))),
|
|
3228
3228
|
// 页码点最大值,展开为数组
|
|
3229
|
-
choiceGridSequenceNOList:
|
|
3229
|
+
choiceGridSequenceNOList: dt.filter((a, n) => n < e.pageTotal),
|
|
3230
3230
|
// 排列方向
|
|
3231
3231
|
crosswised: !0,
|
|
3232
3232
|
// 两个页码点之间的间距,纵排此项赋值
|
|
@@ -3236,16 +3236,16 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3236
3236
|
}
|
|
3237
3237
|
];
|
|
3238
3238
|
}, rs = (e) => {
|
|
3239
|
-
const t =
|
|
3239
|
+
const t = se(k.lack, e.pageDom[0]);
|
|
3240
3240
|
return t ? {
|
|
3241
3241
|
// 固定值
|
|
3242
3242
|
choiceQuestionCount: 1,
|
|
3243
3243
|
// 固定值
|
|
3244
3244
|
questionNOList: [1],
|
|
3245
3245
|
// 方框业务坐标
|
|
3246
|
-
choiceQuestionPosition:
|
|
3246
|
+
choiceQuestionPosition: ne(ce(N(t), N(e.pageDom[0])), !0),
|
|
3247
3247
|
// 数据坐标
|
|
3248
|
-
firstChoicePosition:
|
|
3248
|
+
firstChoicePosition: ne(ce(N(t), N(e.pageDom[0]))),
|
|
3249
3249
|
// 固定值
|
|
3250
3250
|
choiceGridSequenceNOList: [
|
|
3251
3251
|
"true"
|
|
@@ -3256,19 +3256,19 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3256
3256
|
xColOffset: 0
|
|
3257
3257
|
} : null;
|
|
3258
3258
|
}, cs = (e) => {
|
|
3259
|
-
let t =
|
|
3260
|
-
return
|
|
3259
|
+
let t = ce(N(se(k.en_code, e.pageDom[0])), N(e.pageDom[0]));
|
|
3260
|
+
return ne(t);
|
|
3261
3261
|
}, ds = (e) => {
|
|
3262
|
-
const t =
|
|
3262
|
+
const t = se(k.write_view, e.pageDom[0]);
|
|
3263
3263
|
if (!t)
|
|
3264
3264
|
return null;
|
|
3265
|
-
const o =
|
|
3265
|
+
const o = Te(k.score_item, t);
|
|
3266
3266
|
return {
|
|
3267
3267
|
id: "0",
|
|
3268
3268
|
problemType: p.slove,
|
|
3269
|
-
position:
|
|
3269
|
+
position: ce(N(t), N(e.pageDom[0])),
|
|
3270
3270
|
scoreList: o.map((a, n) => ({
|
|
3271
|
-
position:
|
|
3271
|
+
position: ce(N(o[n]), N(e.pageDom[0])),
|
|
3272
3272
|
itemPosition: {
|
|
3273
3273
|
width: o[n].offsetWidth
|
|
3274
3274
|
},
|
|
@@ -3329,78 +3329,78 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3329
3329
|
return [...Array(e.pageDom.length).keys()].map((n) => {
|
|
3330
3330
|
const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
|
|
3331
3331
|
return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((l, i) => r + i < t.length).map((l, i) => {
|
|
3332
|
-
const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i],
|
|
3333
|
-
const
|
|
3334
|
-
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 ? {
|
|
3335
3335
|
id: `${++o}`,
|
|
3336
3336
|
baseIndex: parseInt(L.children[0]._sub),
|
|
3337
|
-
position:
|
|
3337
|
+
position: ce(N(W), u),
|
|
3338
3338
|
problemType: L.problemType,
|
|
3339
3339
|
isOneChoice: !0,
|
|
3340
|
-
optList:
|
|
3341
|
-
id: `${o}.${
|
|
3342
|
-
position:
|
|
3343
|
-
})).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)
|
|
3344
3344
|
} : {};
|
|
3345
3345
|
}).filter((L) => L.position);
|
|
3346
|
-
return
|
|
3347
|
-
let
|
|
3346
|
+
return Z.filter((L) => ls(L, m, O)).map((L, W, w) => {
|
|
3347
|
+
let M = {};
|
|
3348
3348
|
a[L._sub] ? a[L._sub] += 1 : a[L._sub] = 1;
|
|
3349
|
-
const
|
|
3349
|
+
const K = se(`${k.item}${L._sub}`, m);
|
|
3350
3350
|
switch (L.problemType) {
|
|
3351
3351
|
case p.choice:
|
|
3352
3352
|
case p.choice_english:
|
|
3353
3353
|
case p.choice_multiple:
|
|
3354
3354
|
case p.cloze:
|
|
3355
|
-
|
|
3355
|
+
M = {
|
|
3356
3356
|
score: L.score,
|
|
3357
|
-
isColumn: L.style[y[e.layout.mode].choice_a] !==
|
|
3358
|
-
optList: L.optList.map((
|
|
3359
|
-
id: `${L._sub}.${
|
|
3360
|
-
position: Pe(
|
|
3361
|
-
})).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}`, K), F, u)
|
|
3361
|
+
})).filter((v) => v.position)
|
|
3362
3362
|
};
|
|
3363
3363
|
break;
|
|
3364
3364
|
case p.decide:
|
|
3365
|
-
|
|
3366
|
-
optList: [0, 1].map((
|
|
3367
|
-
id: `${L._sub}.${
|
|
3368
|
-
position: Pe(
|
|
3369
|
-
})).filter((
|
|
3365
|
+
M = {
|
|
3366
|
+
optList: [0, 1].map((v, z) => ({
|
|
3367
|
+
id: `${L._sub}.${z}`,
|
|
3368
|
+
position: Pe(se(`${k.fill}${z}`, K), F, u)
|
|
3369
|
+
})).filter((v) => v.position)
|
|
3370
3370
|
};
|
|
3371
3371
|
break;
|
|
3372
3372
|
case p.fill:
|
|
3373
3373
|
case p.fill_english:
|
|
3374
|
-
const H =
|
|
3375
|
-
|
|
3376
|
-
children: [L.score].flat().map((
|
|
3377
|
-
id: B.length > 1 ? `${L._sub}.${
|
|
3378
|
-
score:
|
|
3374
|
+
const H = Te(k.fill, K), _ = Te(k.fill_line, K);
|
|
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,
|
|
3379
3379
|
problemType: L.problemType,
|
|
3380
3380
|
isHiddenContent: !L.style[y[e.layout.mode].fill_b],
|
|
3381
|
-
position: Pe(
|
|
3382
|
-
scorePosition: Pe(H[
|
|
3383
|
-
answerPosition: Pe(_[
|
|
3384
|
-
})).filter((
|
|
3381
|
+
position: Pe(K, F, u),
|
|
3382
|
+
scorePosition: Pe(H[z], F, u),
|
|
3383
|
+
answerPosition: Pe(_[z], F, u)
|
|
3384
|
+
})).filter((v) => v.position)
|
|
3385
3385
|
};
|
|
3386
3386
|
break;
|
|
3387
3387
|
case p.slove:
|
|
3388
3388
|
case p.easy_slove:
|
|
3389
3389
|
case p.art:
|
|
3390
|
-
const
|
|
3391
|
-
|
|
3392
|
-
scoreList:
|
|
3393
|
-
if (!
|
|
3390
|
+
const C = se(k.score, K);
|
|
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)
|
|
3394
3394
|
return {};
|
|
3395
|
-
const B =
|
|
3395
|
+
const B = Te(k.score_item, v);
|
|
3396
3396
|
return {
|
|
3397
|
-
position: Pe(
|
|
3397
|
+
position: Pe(v, F, u, !0),
|
|
3398
3398
|
itemPosition: {
|
|
3399
3399
|
width: B[0].offsetWidth
|
|
3400
3400
|
},
|
|
3401
|
-
score: B.map((
|
|
3401
|
+
score: B.map((me) => Math.abs(parseFloat(me.innerText)) * (z ? 1 : 10))
|
|
3402
3402
|
};
|
|
3403
|
-
}).filter((
|
|
3403
|
+
}).filter((v) => v.position) : null
|
|
3404
3404
|
};
|
|
3405
3405
|
}
|
|
3406
3406
|
return {
|
|
@@ -3408,16 +3408,16 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3408
3408
|
elId: L.id,
|
|
3409
3409
|
colIndex: a[L._sub],
|
|
3410
3410
|
problemType: L.problemType,
|
|
3411
|
-
position: Pe(
|
|
3412
|
-
...
|
|
3411
|
+
position: Pe(K, F, u, !1, W === w.length - 1 && [p.slove].includes(L.problemType)),
|
|
3412
|
+
...M
|
|
3413
3413
|
};
|
|
3414
|
-
}).concat(
|
|
3414
|
+
}).concat(te).filter((L) => L.position);
|
|
3415
3415
|
});
|
|
3416
3416
|
}).map((n) => n.flat());
|
|
3417
3417
|
}, ps = (e) => {
|
|
3418
3418
|
const t = (a = e, n = !1) => ({
|
|
3419
3419
|
// 块位置
|
|
3420
|
-
sectionPosition:
|
|
3420
|
+
sectionPosition: ne(a.position, !0),
|
|
3421
3421
|
// 块ID,前端生成,同一道题同一个ID
|
|
3422
3422
|
sectionID: a.id,
|
|
3423
3423
|
// 块内序号ID,按切块自增
|
|
@@ -3444,8 +3444,8 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3444
3444
|
// 单个选项的信息数组
|
|
3445
3445
|
choiceUnitSectionList: e.optList.map((a, n) => ({
|
|
3446
3446
|
...t(a, !0),
|
|
3447
|
-
choicePosition:
|
|
3448
|
-
choiceResult: [p.decide].includes(e.problemType) ? ho[n] :
|
|
3447
|
+
choicePosition: ne(a.position),
|
|
3448
|
+
choiceResult: [p.decide].includes(e.problemType) ? ho[n] : dt[n]
|
|
3449
3449
|
}))
|
|
3450
3450
|
}]
|
|
3451
3451
|
};
|
|
@@ -3460,10 +3460,10 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3460
3460
|
// 每个小题的切图块
|
|
3461
3461
|
singleBlankSectionList: (e.children || [e]).map((a) => ({
|
|
3462
3462
|
...t(a, !0),
|
|
3463
|
-
answerPosition:
|
|
3463
|
+
answerPosition: ne(a.answerPosition, !0),
|
|
3464
3464
|
correctFrame: a.scorePosition ? [{
|
|
3465
|
-
correctSectionPosition:
|
|
3466
|
-
firstBlockPostion:
|
|
3465
|
+
correctSectionPosition: ne(a.scorePosition, !0),
|
|
3466
|
+
firstBlockPostion: ne(a.scorePosition),
|
|
3467
3467
|
gridScoresList: [a.score].flat(),
|
|
3468
3468
|
lineMeanGetScore: !1,
|
|
3469
3469
|
weight: 1
|
|
@@ -3485,8 +3485,8 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3485
3485
|
...t(e, !0),
|
|
3486
3486
|
answerPosition: null,
|
|
3487
3487
|
correctFrame: (e.scoreList || []).map((a) => ({
|
|
3488
|
-
correctSectionPosition:
|
|
3489
|
-
firstBlockPostion:
|
|
3488
|
+
correctSectionPosition: ne(a.position, !0),
|
|
3489
|
+
firstBlockPostion: ne({ ...a.position, ...a.itemPosition }),
|
|
3490
3490
|
gridScoresList: [a.score].flat(),
|
|
3491
3491
|
lineMeanGetScore: !0,
|
|
3492
3492
|
weight: 1
|
|
@@ -3498,8 +3498,8 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3498
3498
|
case p.synthesis:
|
|
3499
3499
|
case p.mix:
|
|
3500
3500
|
break;
|
|
3501
|
-
case
|
|
3502
|
-
case
|
|
3501
|
+
case ve.one_choice:
|
|
3502
|
+
case ve.another_choice:
|
|
3503
3503
|
o = {
|
|
3504
3504
|
choiceQuestionPartialSectionList: [{
|
|
3505
3505
|
...t(e),
|
|
@@ -3512,7 +3512,7 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3512
3512
|
// 单个选项的信息数组
|
|
3513
3513
|
choiceUnitSectionList: e.optList.map((a, n) => ({
|
|
3514
3514
|
...t(a),
|
|
3515
|
-
choicePosition:
|
|
3515
|
+
choicePosition: ne(a.position),
|
|
3516
3516
|
choiceResult: (e.baseIndex + n).toString()
|
|
3517
3517
|
}))
|
|
3518
3518
|
}]
|
|
@@ -3535,7 +3535,7 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3535
3535
|
// 固定值
|
|
3536
3536
|
splitFileList: [],
|
|
3537
3537
|
// 依据当前页码设置答案
|
|
3538
|
-
answerResultList:
|
|
3538
|
+
answerResultList: dt.slice(e.layout.pagePoint === He.right_up ? e.pageTotal - o - 1 : 0, e.layout.pagePoint === He.right_up ? e.pageTotal : o + 1),
|
|
3539
3539
|
// 固定值
|
|
3540
3540
|
noAnswerTag: !1
|
|
3541
3541
|
}],
|
|
@@ -3560,8 +3560,8 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3560
3560
|
// 试卷二维码
|
|
3561
3561
|
cardSerialNumber: {
|
|
3562
3562
|
// 条形码虚线框位置, x, y, width, height
|
|
3563
|
-
encodePictureArea:
|
|
3564
|
-
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)),
|
|
3565
3565
|
// 条形码或二维码,不确定,固定此值
|
|
3566
3566
|
pictureType: "TYPE_QRCODE"
|
|
3567
3567
|
},
|
|
@@ -3583,7 +3583,7 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3583
3583
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
3584
3584
|
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
|
|
3585
3585
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
3586
|
-
absenceInfoIndexList:
|
|
3586
|
+
absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2) : null,
|
|
3587
3587
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
3588
3588
|
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
|
|
3589
3589
|
// 哪些面有选做老师布置题的信息,固定值
|
|
@@ -3592,7 +3592,7 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3592
3592
|
layerType: ns(e),
|
|
3593
3593
|
// 定位点信息
|
|
3594
3594
|
...ss(e),
|
|
3595
|
-
pottedLineXPos: e.bindWidth ? (a =
|
|
3595
|
+
pottedLineXPos: e.bindWidth ? (a = ne(ce(N(se(k.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
|
|
3596
3596
|
// 页码点信息
|
|
3597
3597
|
pageSideAnchorsList: is(e),
|
|
3598
3598
|
// 缺考标记
|
|
@@ -3603,18 +3603,18 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3603
3603
|
}, _s = (e) => {
|
|
3604
3604
|
const { config: t, data: o } = e, a = ds(t), n = hs(t, o);
|
|
3605
3605
|
a && n[0].unshift(a);
|
|
3606
|
-
const r = us(t, n), l = ms(t, n), i = ys(t, l), c = Bt(t,
|
|
3606
|
+
const r = us(t, n), l = ms(t, n), i = ys(t, l), c = Bt(t, k.en_num_view) || {};
|
|
3607
3607
|
return {
|
|
3608
3608
|
engineData: i,
|
|
3609
3609
|
pageTotal: t.pageTotal,
|
|
3610
|
-
format:
|
|
3610
|
+
format: g[t.layout.paper],
|
|
3611
3611
|
localData: r,
|
|
3612
3612
|
extendInfo: { shortCoordinate: c }
|
|
3613
3613
|
};
|
|
3614
3614
|
}, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
|
|
3615
3615
|
key: 0,
|
|
3616
3616
|
class: "layt-moni_err_view"
|
|
3617
|
-
}, xs = { class: "layt-moni_err_item_msg" }, ks = ["onClick"], Cs = /* @__PURE__ */
|
|
3617
|
+
}, xs = { class: "layt-moni_err_item_msg" }, ks = ["onClick"], Cs = /* @__PURE__ */ J({
|
|
3618
3618
|
__name: "index",
|
|
3619
3619
|
props: {
|
|
3620
3620
|
ColList: {},
|
|
@@ -3624,19 +3624,19 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3624
3624
|
},
|
|
3625
3625
|
emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
|
|
3626
3626
|
setup(e, { emit: t }) {
|
|
3627
|
-
const o = e, a =
|
|
3627
|
+
const o = e, a = G([]);
|
|
3628
3628
|
Ae(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
3629
3629
|
a.value = [], setTimeout(() => {
|
|
3630
3630
|
var u;
|
|
3631
3631
|
o.ColList.forEach((m, O) => {
|
|
3632
3632
|
m.data.map((h) => h.children).flat().filter((h) => [p.slove, p.art].includes(h.problemType) && !h.chunk).forEach((h) => {
|
|
3633
3633
|
var L;
|
|
3634
|
-
const
|
|
3635
|
-
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)
|
|
3636
3636
|
return;
|
|
3637
|
-
|
|
3638
|
-
const
|
|
3639
|
-
|
|
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 = "打分条超长,请调整排版或使用自编打分条");
|
|
3640
3640
|
});
|
|
3641
3641
|
});
|
|
3642
3642
|
const l = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
|
|
@@ -3658,53 +3658,53 @@ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
|
|
|
3658
3658
|
(((i = a.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
|
|
3659
3659
|
};
|
|
3660
3660
|
return (l, i) => (s(), d("div", fs, [
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
class:
|
|
3661
|
+
f("div", gs, [
|
|
3662
|
+
f("div", {
|
|
3663
|
+
class: ae(["layt-moni_status", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3664
3664
|
}, null, 2),
|
|
3665
|
-
|
|
3666
|
-
class:
|
|
3665
|
+
f("div", {
|
|
3666
|
+
class: ae(["layt-moni_info", a.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
3667
3667
|
}, [
|
|
3668
|
-
|
|
3669
|
-
|
|
3668
|
+
f("span", bs, [
|
|
3669
|
+
j(ye, {
|
|
3670
3670
|
width: 1.6,
|
|
3671
3671
|
name: a.value.length ? "wrong" : "right"
|
|
3672
3672
|
}, null, 8, ["name"])
|
|
3673
3673
|
]),
|
|
3674
|
-
|
|
3674
|
+
f("span", vs, "排版" + V(a.value.length ? "异常" : "良好"), 1)
|
|
3675
3675
|
], 2),
|
|
3676
3676
|
a.value.length ? (s(), d("ul", ws, [
|
|
3677
|
-
(s(!0), d(
|
|
3677
|
+
(s(!0), d(E, null, X(a.value, (c, u) => (s(), d("li", {
|
|
3678
3678
|
key: u,
|
|
3679
3679
|
class: "layt-moni_err_item"
|
|
3680
3680
|
}, [
|
|
3681
|
-
|
|
3681
|
+
f("span", xs, V(c.msg), 1),
|
|
3682
3682
|
c.fn ? (s(), d("span", {
|
|
3683
3683
|
key: 0,
|
|
3684
3684
|
class: "layt-moni_err_item_fn",
|
|
3685
3685
|
onClick: c.fn
|
|
3686
|
-
},
|
|
3686
|
+
}, V(c.btnTxt || "删除"), 9, ks)) : D("", !0)
|
|
3687
3687
|
]))), 128))
|
|
3688
|
-
])) :
|
|
3688
|
+
])) : D("", !0)
|
|
3689
3689
|
])
|
|
3690
3690
|
]));
|
|
3691
3691
|
}
|
|
3692
3692
|
});
|
|
3693
|
-
const $s = /* @__PURE__ */
|
|
3693
|
+
const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e) => e == null ? void 0 : e.getBoundingClientRect(), St = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ht].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, ht].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
|
|
3694
3694
|
const t = e.parentElement, o = document.createElement("span");
|
|
3695
|
-
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block =
|
|
3695
|
+
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ht, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
3696
3696
|
}, Ts = (e, t, o, a) => {
|
|
3697
3697
|
let n = null;
|
|
3698
|
-
if (e.dataset.block ===
|
|
3698
|
+
if (e.dataset.block === ut && !e.dataset.used) {
|
|
3699
3699
|
const r = window.getComputedStyle(e);
|
|
3700
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";
|
|
3701
3701
|
} else
|
|
3702
|
-
e.dataset.block ===
|
|
3702
|
+
e.dataset.block === Ct ? 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=${Ct}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && a || al.includes(e.tagName.toLowerCase())) && (n = e);
|
|
3703
3703
|
return n;
|
|
3704
|
-
},
|
|
3704
|
+
}, Tt = (e, t, o) => {
|
|
3705
3705
|
const a = e.textContent || "", n = a.split("").map((c) => `<span>${c}</span>`).join("");
|
|
3706
3706
|
e.innerHTML = n;
|
|
3707
|
-
const r = [...Array.from(e.children)].findIndex((c) =>
|
|
3707
|
+
const r = [...Array.from(e.children)].findIndex((c) => ue(c).top - t + c.offsetHeight > o);
|
|
3708
3708
|
if (r < 1)
|
|
3709
3709
|
return e.innerHTML = a, e;
|
|
3710
3710
|
const l = document.createElement("span");
|
|
@@ -3713,43 +3713,43 @@ const $s = /* @__PURE__ */ ce(Cs, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3713
3713
|
return i.textContent = a.slice(r), e.innerHTML = "", e.append(l, i), l;
|
|
3714
3714
|
}, st = (e, t, o) => {
|
|
3715
3715
|
const a = nt("", e.parentElement), n = a.findIndex((l) => l === e);
|
|
3716
|
-
let r = a.filter((l, i) =>
|
|
3717
|
-
return r || (r =
|
|
3718
|
-
},
|
|
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;
|
|
3718
|
+
}, It = (e, t, o, a) => {
|
|
3719
3719
|
const n = (l, i = o) => {
|
|
3720
|
-
var
|
|
3721
|
-
const c = l.map((
|
|
3722
|
-
const
|
|
3720
|
+
var te, L, W;
|
|
3721
|
+
const c = l.map((w) => {
|
|
3722
|
+
const M = ue(w);
|
|
3723
3723
|
return {
|
|
3724
|
-
el:
|
|
3725
|
-
top:
|
|
3726
|
-
left:
|
|
3724
|
+
el: w,
|
|
3725
|
+
top: M.top - t,
|
|
3726
|
+
left: M.left
|
|
3727
3727
|
};
|
|
3728
|
-
}), 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;
|
|
3729
3729
|
if (!m) {
|
|
3730
|
-
const
|
|
3731
|
-
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;
|
|
3732
3732
|
}
|
|
3733
|
-
const O =
|
|
3734
|
-
if (u.filter((
|
|
3735
|
-
const
|
|
3736
|
-
if (
|
|
3737
|
-
const
|
|
3738
|
-
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;
|
|
3739
3739
|
} else
|
|
3740
|
-
return
|
|
3740
|
+
return w ? ue(w).top - t + w.offsetHeight > h ? Tt(w, t, h) : w : st(m.parentElement, t, h);
|
|
3741
3741
|
} else {
|
|
3742
|
-
const
|
|
3743
|
-
if (h + (parseFloat(
|
|
3742
|
+
const w = getComputedStyle(m);
|
|
3743
|
+
if (h + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > i)
|
|
3744
3744
|
return st(m, t, h);
|
|
3745
|
-
const
|
|
3746
|
-
if (
|
|
3747
|
-
return
|
|
3745
|
+
const M = Ts(m, i - h, i, a);
|
|
3746
|
+
if (M)
|
|
3747
|
+
return Ve(M);
|
|
3748
3748
|
if (m.children.length) {
|
|
3749
|
-
const
|
|
3750
|
-
return n(
|
|
3749
|
+
const K = nt(m);
|
|
3750
|
+
return n(K, i);
|
|
3751
3751
|
} else
|
|
3752
|
-
return
|
|
3752
|
+
return Tt(m, t, i);
|
|
3753
3753
|
}
|
|
3754
3754
|
}, r = n([e]);
|
|
3755
3755
|
return { cut: Ss(r), targetEl: r };
|
|
@@ -3760,18 +3760,18 @@ const $s = /* @__PURE__ */ ce(Cs, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3760
3760
|
return;
|
|
3761
3761
|
}
|
|
3762
3762
|
console.time("layout");
|
|
3763
|
-
const i =
|
|
3763
|
+
const i = ue(t).top;
|
|
3764
3764
|
let c = {}, u = 0, m = 0;
|
|
3765
|
-
const O = (
|
|
3766
|
-
const
|
|
3765
|
+
const O = (w) => {
|
|
3766
|
+
const M = w % (a + n), K = Math.floor(w / (a + n)) * 2 + (M >= a ? 1 : 0), H = r(w, K);
|
|
3767
3767
|
c = {
|
|
3768
3768
|
top: i,
|
|
3769
3769
|
width: parseFloat(H.width),
|
|
3770
3770
|
height: parseFloat(H.height)
|
|
3771
3771
|
};
|
|
3772
3772
|
};
|
|
3773
|
-
let h = [],
|
|
3774
|
-
const
|
|
3773
|
+
let h = [], F = 0;
|
|
3774
|
+
const Z = () => {
|
|
3775
3775
|
O(h.length), t.style.width = `${c.width}px`, h.push({
|
|
3776
3776
|
top: 0,
|
|
3777
3777
|
data: [],
|
|
@@ -3779,111 +3779,111 @@ const $s = /* @__PURE__ */ ce(Cs, [["__scopeId", "data-v-90e967d8"]]), de = (e)
|
|
|
3779
3779
|
height: c.height
|
|
3780
3780
|
}), l([...h]);
|
|
3781
3781
|
};
|
|
3782
|
-
|
|
3783
|
-
const
|
|
3784
|
-
const
|
|
3785
|
-
return
|
|
3786
|
-
}, L = (
|
|
3787
|
-
const
|
|
3788
|
-
return
|
|
3789
|
-
},
|
|
3790
|
-
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) {
|
|
3791
3791
|
l([...h], !0), console.timeEnd("layout"), h = [], u = 0;
|
|
3792
3792
|
return;
|
|
3793
3793
|
}
|
|
3794
|
-
h[h.length - 1].data.push({ ...
|
|
3795
|
-
const
|
|
3794
|
+
h[h.length - 1].data.push({ ...w }), l([...h]), window.requestAnimationFrame(() => {
|
|
3795
|
+
const M = St(w.__tag__, t), K = !w.isHidden && ue(M);
|
|
3796
3796
|
let H = null;
|
|
3797
3797
|
if (m) {
|
|
3798
|
-
const _ =
|
|
3799
|
-
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;
|
|
3800
3800
|
}
|
|
3801
|
-
if (
|
|
3802
|
-
if (
|
|
3803
|
-
h[h.length - 1].data.pop(),
|
|
3804
|
-
else if (L(
|
|
3805
|
-
|
|
3806
|
-
else if (
|
|
3807
|
-
h[h.length - 1].data.pop(),
|
|
3801
|
+
if (K && K.height + K.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 });
|
|
3808
3808
|
else {
|
|
3809
|
-
H =
|
|
3810
|
-
const _ =
|
|
3811
|
-
h[h.length - 1].height =
|
|
3809
|
+
H = It(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 }));
|
|
3812
3812
|
}
|
|
3813
3813
|
else {
|
|
3814
|
-
let _ = [],
|
|
3815
|
-
|
|
3816
|
-
const B =
|
|
3814
|
+
let _ = [], C = [];
|
|
3815
|
+
w.children.some((v, z) => {
|
|
3816
|
+
const B = St(v.__tag__, t), me = ue(B);
|
|
3817
3817
|
if (u) {
|
|
3818
|
-
const he = B.querySelector(`*[data-cutkey="${u}"]`),
|
|
3819
|
-
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;
|
|
3820
3820
|
}
|
|
3821
|
-
if (
|
|
3821
|
+
if (me.height + me.top - c.top > h[h.length - 1].height) {
|
|
3822
3822
|
if (L(B))
|
|
3823
|
-
_.push(
|
|
3824
|
-
else if (
|
|
3825
|
-
|
|
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);
|
|
3826
3826
|
else {
|
|
3827
|
-
H =
|
|
3828
|
-
const he = B.querySelector(`*[data-content="${
|
|
3827
|
+
H = It(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
|
|
3828
|
+
const he = B.querySelector(`*[data-content="${v.id}"]`);
|
|
3829
3829
|
if (B === H.targetEl)
|
|
3830
|
-
_.push(
|
|
3830
|
+
_.push(v), C = z < w.children.length - 1 ? w.children.slice(z + 1) : [];
|
|
3831
3831
|
else if (he && he.contains(H.cut))
|
|
3832
|
-
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;
|
|
3833
3833
|
else {
|
|
3834
|
-
if (!
|
|
3835
|
-
let
|
|
3836
|
-
switch (
|
|
3834
|
+
if (!C.length) {
|
|
3835
|
+
let ie = { ...v };
|
|
3836
|
+
switch (v.problemType) {
|
|
3837
3837
|
case at.slove:
|
|
3838
|
-
const
|
|
3839
|
-
|
|
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;
|
|
3840
3840
|
break;
|
|
3841
3841
|
case at.art:
|
|
3842
|
-
const
|
|
3843
|
-
if (
|
|
3844
|
-
u = Date.now(), H.cut.dataset.cutkey = u,
|
|
3845
|
-
else if (
|
|
3846
|
-
const
|
|
3847
|
-
if (!
|
|
3848
|
-
if (
|
|
3849
|
-
const
|
|
3850
|
-
if (
|
|
3851
|
-
|
|
3852
|
-
const
|
|
3853
|
-
|
|
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);
|
|
3854
3854
|
} else
|
|
3855
|
-
|
|
3855
|
+
v.beforeGuide = "";
|
|
3856
3856
|
} else
|
|
3857
|
-
|
|
3858
|
-
|
|
3857
|
+
v.beforeGuide = "";
|
|
3858
|
+
ie.endAnswerLen = S, v.startAnswerLen = S;
|
|
3859
3859
|
} else
|
|
3860
|
-
|
|
3861
|
-
|
|
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;
|
|
3862
3862
|
break;
|
|
3863
3863
|
}
|
|
3864
|
-
B.contains(H.targetEl) && _.push(
|
|
3864
|
+
B.contains(H.targetEl) && _.push(ie), u && (h[h.length - 1].height = ue(H.cut).top - c.top);
|
|
3865
3865
|
}
|
|
3866
|
-
|
|
3866
|
+
C = [v, ...z < w.children.length - 1 ? w.children.slice(z + 1) : []];
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
return !0;
|
|
3870
3870
|
} else
|
|
3871
|
-
_.push(
|
|
3872
|
-
}), 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());
|
|
3873
3873
|
}
|
|
3874
3874
|
});
|
|
3875
3875
|
};
|
|
3876
|
-
|
|
3876
|
+
W();
|
|
3877
3877
|
}, Ot = window.CKEDITOR;
|
|
3878
3878
|
Ot.disableAutoInline = !0;
|
|
3879
|
-
const
|
|
3879
|
+
const pt = `dx${Math.random().toString(32).substring(2)}`;
|
|
3880
3880
|
function Ls(e, t) {
|
|
3881
|
-
return Ot[e](
|
|
3881
|
+
return Ot[e](pt, {
|
|
3882
3882
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
3883
3883
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
3884
3884
|
});
|
|
3885
3885
|
}
|
|
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__ */
|
|
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({
|
|
3887
3887
|
__name: "index",
|
|
3888
3888
|
props: {
|
|
3889
3889
|
value: {},
|
|
@@ -3892,8 +3892,8 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3892
3892
|
},
|
|
3893
3893
|
emits: ["change", "focus", "blur"],
|
|
3894
3894
|
setup(e, { emit: t }) {
|
|
3895
|
-
const o = e, a = Rt("ckeditorOrigin", ""), n =
|
|
3896
|
-
Ae(() => o.readonly, () => r()),
|
|
3895
|
+
const o = e, a = Rt("ckeditorOrigin", ""), n = G();
|
|
3896
|
+
Ae(() => o.readonly, () => r()), Xe(() => r());
|
|
3897
3897
|
const r = () => {
|
|
3898
3898
|
if (window.CKEDITOR) {
|
|
3899
3899
|
if (o.readonly) {
|
|
@@ -3920,24 +3920,24 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3920
3920
|
}, c = (u) => {
|
|
3921
3921
|
const m = document.createElement("div");
|
|
3922
3922
|
m.innerHTML = u, [...Array.from(m.querySelectorAll("*"))].forEach((h) => {
|
|
3923
|
-
const
|
|
3924
|
-
(
|
|
3923
|
+
const F = window.getComputedStyle(h);
|
|
3924
|
+
(F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && h.remove();
|
|
3925
3925
|
});
|
|
3926
3926
|
const O = (h = m) => {
|
|
3927
|
-
[...Array.from(h.childNodes)].forEach((
|
|
3928
|
-
var
|
|
3929
|
-
if (
|
|
3930
|
-
O(
|
|
3931
|
-
else if (
|
|
3932
|
-
const
|
|
3933
|
-
|
|
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);
|
|
3934
3934
|
}
|
|
3935
3935
|
});
|
|
3936
3936
|
};
|
|
3937
3937
|
return O(), m.innerHTML;
|
|
3938
3938
|
};
|
|
3939
3939
|
return (u, m) => (s(), d("div", Fs, [
|
|
3940
|
-
o.readonly ? (s(),
|
|
3940
|
+
o.readonly ? (s(), U(Ne, {
|
|
3941
3941
|
key: 1,
|
|
3942
3942
|
data: o.value,
|
|
3943
3943
|
class: "raw_view"
|
|
@@ -3946,14 +3946,14 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3946
3946
|
class: "overflow-auto outline-none whitespace-normal editor_view",
|
|
3947
3947
|
disabled: o.readonly,
|
|
3948
3948
|
contentEditable: !o.readonly,
|
|
3949
|
-
id: x(
|
|
3949
|
+
id: x(pt),
|
|
3950
3950
|
onFocus: i,
|
|
3951
3951
|
onBlur: l
|
|
3952
3952
|
}, null, 40, Es))
|
|
3953
3953
|
]));
|
|
3954
3954
|
}
|
|
3955
3955
|
});
|
|
3956
|
-
const Ps = /* @__PURE__ */
|
|
3956
|
+
const Ps = /* @__PURE__ */ de(Ms, [["__scopeId", "data-v-1398ac85"]]);
|
|
3957
3957
|
let qe = (e) => {
|
|
3958
3958
|
};
|
|
3959
3959
|
const Ds = {
|
|
@@ -3988,7 +3988,7 @@ const As = {
|
|
|
3988
3988
|
unmounted: () => {
|
|
3989
3989
|
document.removeEventListener("mousemove", ot);
|
|
3990
3990
|
}
|
|
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__ */
|
|
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({
|
|
3992
3992
|
__name: "absItem",
|
|
3993
3993
|
props: {
|
|
3994
3994
|
imgData: {},
|
|
@@ -4007,304 +4007,310 @@ const As = {
|
|
|
4007
4007
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4008
4008
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4009
4009
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4010
|
-
], l =
|
|
4011
|
-
...
|
|
4012
|
-
top:
|
|
4013
|
-
}))),
|
|
4014
|
-
...
|
|
4015
|
-
top:
|
|
4016
|
-
}))),
|
|
4017
|
-
|
|
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), K = A(() => M.value ? { [M.value.key]: { ...i.value } } : {});
|
|
4017
|
+
Xe(() => {
|
|
4018
4018
|
m.value = document.body.querySelector(".__layout__");
|
|
4019
4019
|
});
|
|
4020
|
-
const
|
|
4021
|
-
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(() => {
|
|
4022
4022
|
var $;
|
|
4023
|
-
(($ =
|
|
4023
|
+
(($ = M.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
|
|
4024
4024
|
}, 400);
|
|
4025
|
-
},
|
|
4026
|
-
|
|
4027
|
-
},
|
|
4028
|
-
const
|
|
4029
|
-
h.value = { x: $ +
|
|
4030
|
-
},
|
|
4031
|
-
|
|
4032
|
-
const $ =
|
|
4033
|
-
i.value = { ...
|
|
4034
|
-
},
|
|
4035
|
-
|
|
4036
|
-
},
|
|
4037
|
-
var
|
|
4038
|
-
|
|
4039
|
-
},
|
|
4040
|
-
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";
|
|
4041
4041
|
[
|
|
4042
4042
|
// 0
|
|
4043
4043
|
() => {
|
|
4044
|
-
const
|
|
4044
|
+
const oe = {
|
|
4045
4045
|
width: l.value.width - $.x,
|
|
4046
4046
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4047
|
-
}[
|
|
4047
|
+
}[Q], re = {
|
|
4048
4048
|
width: l.value.height * (1 - $.x / l.value.width),
|
|
4049
4049
|
height: l.value.height - $.y
|
|
4050
|
-
}[
|
|
4050
|
+
}[Q];
|
|
4051
4051
|
i.value = {
|
|
4052
|
-
...
|
|
4053
|
-
width:
|
|
4054
|
-
height:
|
|
4055
|
-
left: l.value.left - (
|
|
4056
|
-
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)
|
|
4057
4057
|
};
|
|
4058
4058
|
},
|
|
4059
4059
|
// 1
|
|
4060
4060
|
() => {
|
|
4061
|
-
const
|
|
4061
|
+
const oe = l.value.width * (1 - $.y / l.value.height), re = l.value.height - $.y;
|
|
4062
4062
|
i.value = {
|
|
4063
|
-
...
|
|
4064
|
-
width:
|
|
4065
|
-
height:
|
|
4066
|
-
left: l.value.left - (
|
|
4067
|
-
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)
|
|
4068
4068
|
};
|
|
4069
4069
|
},
|
|
4070
4070
|
// 2
|
|
4071
4071
|
() => {
|
|
4072
|
-
const
|
|
4072
|
+
const oe = {
|
|
4073
4073
|
width: l.value.height * (1 + $.x / l.value.width),
|
|
4074
4074
|
height: l.value.height - $.y
|
|
4075
|
-
}[
|
|
4075
|
+
}[Q];
|
|
4076
4076
|
i.value = {
|
|
4077
|
-
...
|
|
4077
|
+
...S,
|
|
4078
4078
|
width: {
|
|
4079
4079
|
width: l.value.width + $.x,
|
|
4080
4080
|
height: l.value.width * (1 - $.y / l.value.height)
|
|
4081
|
-
}[
|
|
4082
|
-
height:
|
|
4083
|
-
top: l.value.top - (
|
|
4081
|
+
}[Q],
|
|
4082
|
+
height: oe,
|
|
4083
|
+
top: l.value.top - (oe - l.value.height)
|
|
4084
4084
|
};
|
|
4085
4085
|
},
|
|
4086
4086
|
// 3
|
|
4087
4087
|
() => {
|
|
4088
|
-
const
|
|
4088
|
+
const oe = l.value.width - $.x, re = l.value.height * (1 - $.x / l.value.width);
|
|
4089
4089
|
i.value = {
|
|
4090
|
-
...
|
|
4091
|
-
width:
|
|
4092
|
-
height:
|
|
4093
|
-
left: l.value.left - (
|
|
4094
|
-
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
|
|
4095
4095
|
};
|
|
4096
4096
|
},
|
|
4097
4097
|
// 4
|
|
4098
4098
|
() => {
|
|
4099
|
-
const
|
|
4099
|
+
const oe = l.value.width + $.x, re = l.value.height * (1 + $.x / l.value.width);
|
|
4100
4100
|
i.value = {
|
|
4101
|
-
...
|
|
4102
|
-
width:
|
|
4103
|
-
height:
|
|
4104
|
-
top: l.value.top - (
|
|
4101
|
+
...S,
|
|
4102
|
+
width: oe,
|
|
4103
|
+
height: re,
|
|
4104
|
+
top: l.value.top - (re - l.value.height) / 2
|
|
4105
4105
|
};
|
|
4106
4106
|
},
|
|
4107
4107
|
// 5
|
|
4108
4108
|
() => {
|
|
4109
|
-
const
|
|
4109
|
+
const oe = {
|
|
4110
4110
|
width: l.value.width - $.x,
|
|
4111
4111
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4112
|
-
}[
|
|
4112
|
+
}[Q], re = {
|
|
4113
4113
|
width: l.value.height * (1 - $.x / l.value.width),
|
|
4114
4114
|
height: l.value.height + $.y
|
|
4115
|
-
}[
|
|
4115
|
+
}[Q];
|
|
4116
4116
|
i.value = {
|
|
4117
|
-
...
|
|
4118
|
-
width:
|
|
4119
|
-
height:
|
|
4120
|
-
left: l.value.left - (
|
|
4117
|
+
...S,
|
|
4118
|
+
width: oe,
|
|
4119
|
+
height: re,
|
|
4120
|
+
left: l.value.left - (oe - l.value.width)
|
|
4121
4121
|
};
|
|
4122
4122
|
},
|
|
4123
4123
|
// 6
|
|
4124
4124
|
() => {
|
|
4125
|
-
const
|
|
4125
|
+
const oe = l.value.width * (1 + $.y / l.value.height), re = l.value.height + $.y;
|
|
4126
4126
|
i.value = {
|
|
4127
|
-
...
|
|
4128
|
-
width:
|
|
4129
|
-
height:
|
|
4130
|
-
left: l.value.left - (
|
|
4127
|
+
...S,
|
|
4128
|
+
width: oe,
|
|
4129
|
+
height: re,
|
|
4130
|
+
left: l.value.left - (oe - l.value.width) / 2
|
|
4131
4131
|
};
|
|
4132
4132
|
},
|
|
4133
4133
|
// 7
|
|
4134
4134
|
() => {
|
|
4135
|
-
const
|
|
4135
|
+
const oe = {
|
|
4136
4136
|
width: l.value.width + $.x,
|
|
4137
4137
|
height: l.value.width * (1 + $.y / l.value.height)
|
|
4138
|
-
}[
|
|
4138
|
+
}[Q], re = {
|
|
4139
4139
|
width: l.value.height * (1 + $.x / l.value.width),
|
|
4140
4140
|
height: l.value.height + $.y
|
|
4141
|
-
}[
|
|
4141
|
+
}[Q];
|
|
4142
4142
|
i.value = {
|
|
4143
|
-
...
|
|
4144
|
-
width:
|
|
4145
|
-
height:
|
|
4143
|
+
...S,
|
|
4144
|
+
width: oe,
|
|
4145
|
+
height: re
|
|
4146
4146
|
};
|
|
4147
4147
|
}
|
|
4148
4148
|
][c.value]();
|
|
4149
|
-
},
|
|
4150
|
-
const $ = { x:
|
|
4149
|
+
}, he = (P) => {
|
|
4150
|
+
const $ = { x: P.clientX - l.value.x, y: P.clientY - l.value.y }, S = { ...M.value }, Q = [
|
|
4151
4151
|
{
|
|
4152
|
-
...
|
|
4152
|
+
...S,
|
|
4153
4153
|
width: l.value.width - $.x,
|
|
4154
4154
|
height: l.value.height - $.y,
|
|
4155
4155
|
left: l.value.left + $.x,
|
|
4156
4156
|
top: l.value.top + $.y
|
|
4157
4157
|
},
|
|
4158
4158
|
{
|
|
4159
|
-
...
|
|
4159
|
+
...S,
|
|
4160
4160
|
height: l.value.height - $.y,
|
|
4161
4161
|
top: l.value.top + $.y
|
|
4162
4162
|
},
|
|
4163
4163
|
{
|
|
4164
|
-
...
|
|
4164
|
+
...S,
|
|
4165
4165
|
width: l.value.width + $.x,
|
|
4166
4166
|
height: l.value.height - $.y,
|
|
4167
4167
|
top: l.value.top + $.y
|
|
4168
4168
|
},
|
|
4169
4169
|
{
|
|
4170
|
-
...
|
|
4170
|
+
...S,
|
|
4171
4171
|
width: l.value.width - $.x,
|
|
4172
4172
|
left: l.value.left + $.x
|
|
4173
4173
|
},
|
|
4174
4174
|
{
|
|
4175
|
-
...
|
|
4175
|
+
...S,
|
|
4176
4176
|
width: l.value.width + $.x
|
|
4177
4177
|
},
|
|
4178
4178
|
{
|
|
4179
|
-
...
|
|
4179
|
+
...S,
|
|
4180
4180
|
width: l.value.width - $.x,
|
|
4181
4181
|
height: l.value.height + $.y,
|
|
4182
4182
|
left: l.value.left + $.x
|
|
4183
4183
|
},
|
|
4184
4184
|
{
|
|
4185
|
-
...
|
|
4185
|
+
...S,
|
|
4186
4186
|
height: l.value.height + $.y
|
|
4187
4187
|
},
|
|
4188
4188
|
{
|
|
4189
|
-
...
|
|
4189
|
+
...S,
|
|
4190
4190
|
width: l.value.width + $.x,
|
|
4191
4191
|
height: l.value.height + $.y
|
|
4192
4192
|
}
|
|
4193
4193
|
];
|
|
4194
|
-
i.value =
|
|
4195
|
-
},
|
|
4196
|
-
var
|
|
4197
|
-
m.value.removeEventListener("mousemove",
|
|
4198
|
-
},
|
|
4199
|
-
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) {
|
|
4200
4200
|
u.value++;
|
|
4201
4201
|
return;
|
|
4202
4202
|
}
|
|
4203
|
-
t("changeAbsTxtItem", { ...
|
|
4204
|
-
},
|
|
4205
|
-
var
|
|
4206
|
-
const
|
|
4207
|
-
!
|
|
4203
|
+
t("changeAbsTxtItem", { ...M.value, content: P });
|
|
4204
|
+
}, fe = (P, $) => {
|
|
4205
|
+
var Q;
|
|
4206
|
+
const S = document.body.querySelector(`.cke_editor_${pt}`);
|
|
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);
|
|
4208
4208
|
};
|
|
4209
|
-
return (
|
|
4210
|
-
(s(!0), d(
|
|
4211
|
-
var
|
|
4212
|
-
return
|
|
4213
|
-
key:
|
|
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;
|
|
4212
|
+
return gt((s(), d("div", {
|
|
4213
|
+
key: S.id,
|
|
4214
|
+
ref_for: !0,
|
|
4215
|
+
ref_key: "imgViewList",
|
|
4216
|
+
ref: te,
|
|
4214
4217
|
"data-safe": "true",
|
|
4215
|
-
class:
|
|
4216
|
-
style:
|
|
4217
|
-
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 = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((oe = K.value[S.key]) == null ? void 0 : oe.top) || S.top, 0) + "px", width: (((re = K.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = K.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = K.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
|
|
4220
|
+
onMousedown: Le((le) => fe(S), ["stop"]),
|
|
4218
4221
|
"data-block": x(Ee)
|
|
4219
4222
|
}, [
|
|
4220
|
-
|
|
4221
|
-
src:
|
|
4223
|
+
f("img", {
|
|
4224
|
+
src: S.url
|
|
4222
4225
|
}, null, 8, Bs),
|
|
4223
|
-
((
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
+
((T = M.value) == null ? void 0 : T.key) === S.key ? (s(), d(E, { key: 0 }, [
|
|
4227
|
+
f("span", Os, [
|
|
4228
|
+
j(ye, {
|
|
4226
4229
|
name: "close",
|
|
4227
4230
|
width: 2,
|
|
4228
4231
|
class: "cursor-pointer",
|
|
4229
|
-
onClick: (
|
|
4232
|
+
onClick: (le) => t("delAbsImgItem", S)
|
|
4230
4233
|
}, null, 8, ["onClick"])
|
|
4231
4234
|
]),
|
|
4232
|
-
|
|
4233
|
-
(s(), d(
|
|
4234
|
-
key:
|
|
4235
|
+
f("div", zs, [
|
|
4236
|
+
(s(), d(E, null, X(8, (le, R) => f("div", {
|
|
4237
|
+
key: le,
|
|
4235
4238
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4236
|
-
style:
|
|
4237
|
-
onMousedown: Le((
|
|
4239
|
+
style: Y({ ...r[R], transform: "translate(-50%, -50%)" }),
|
|
4240
|
+
onMousedown: Le((ee) => B(ee, R), ["stop"])
|
|
4238
4241
|
}, null, 44, Hs)), 64))
|
|
4239
4242
|
]),
|
|
4240
|
-
|
|
4243
|
+
f("span", {
|
|
4241
4244
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4242
|
-
onMousedown: Le(
|
|
4245
|
+
onMousedown: Le(C, ["stop"])
|
|
4243
4246
|
}, [
|
|
4244
|
-
|
|
4247
|
+
j(ye, {
|
|
4245
4248
|
name: "reset",
|
|
4246
4249
|
width: 2
|
|
4247
4250
|
})
|
|
4248
4251
|
], 40, Rs)
|
|
4249
|
-
], 64)) :
|
|
4252
|
+
], 64)) : D("", !0)
|
|
4250
4253
|
], 46, Ns)), [
|
|
4251
|
-
[x(n),
|
|
4252
|
-
[x(a), (
|
|
4254
|
+
[x(n), H],
|
|
4255
|
+
[x(a), (le) => fe(null, le)]
|
|
4253
4256
|
]);
|
|
4254
4257
|
}), 128)),
|
|
4255
|
-
(s(!0), d(
|
|
4256
|
-
var
|
|
4257
|
-
return
|
|
4258
|
-
key:
|
|
4259
|
-
|
|
4258
|
+
(s(!0), d(E, null, X(w.value, (S) => {
|
|
4259
|
+
var Q, we, oe, re, be, b, T;
|
|
4260
|
+
return gt((s(), d("div", {
|
|
4261
|
+
key: S.id,
|
|
4262
|
+
ref_for: !0,
|
|
4263
|
+
ref_key: "txtViewList",
|
|
4264
|
+
ref: L,
|
|
4265
|
+
disabled: F.value,
|
|
4260
4266
|
"data-safe": "true",
|
|
4261
|
-
class:
|
|
4262
|
-
style:
|
|
4263
|
-
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 = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((oe = K.value[S.key]) == null ? void 0 : oe.top) || S.top, 0) + "px", width: (((re = K.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = K.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
|
|
4269
|
+
onMousedown: Le((le) => fe(S), ["stop"]),
|
|
4264
4270
|
"data-block": x(Ee)
|
|
4265
4271
|
}, [
|
|
4266
|
-
(s(),
|
|
4272
|
+
(s(), U(Ps, {
|
|
4267
4273
|
key: u.value,
|
|
4268
4274
|
class: "border-0 relative z-4",
|
|
4269
|
-
readonly: ((
|
|
4270
|
-
value:
|
|
4271
|
-
name:
|
|
4272
|
-
onChange:
|
|
4273
|
-
onFocus: $[0] || ($[0] = (
|
|
4274
|
-
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))
|
|
4275
4281
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4276
|
-
((
|
|
4277
|
-
|
|
4278
|
-
|
|
4282
|
+
((T = M.value) == null ? void 0 : T.key) === S.key ? (s(), d(E, { key: 0 }, [
|
|
4283
|
+
f("span", Gs, [
|
|
4284
|
+
j(ye, {
|
|
4279
4285
|
name: "close",
|
|
4280
4286
|
width: 2,
|
|
4281
4287
|
class: "cursor-pointer",
|
|
4282
|
-
onClick: (
|
|
4288
|
+
onClick: (le) => t("delAbsTxtItem", S)
|
|
4283
4289
|
}, null, 8, ["onClick"])
|
|
4284
4290
|
]),
|
|
4285
|
-
|
|
4286
|
-
(s(), d(
|
|
4287
|
-
key:
|
|
4291
|
+
f("div", Ys, [
|
|
4292
|
+
(s(), d(E, null, X(8, (le, R) => f("div", {
|
|
4293
|
+
key: le,
|
|
4288
4294
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4289
|
-
style:
|
|
4290
|
-
onMousedown: (
|
|
4295
|
+
style: Y({ ...r[R], transform: "translate(-50%, -50%)" }),
|
|
4296
|
+
onMousedown: (ee) => B(ee, R)
|
|
4291
4297
|
}, null, 44, qs)), 64))
|
|
4292
4298
|
])
|
|
4293
|
-
], 64)) :
|
|
4299
|
+
], 64)) : D("", !0)
|
|
4294
4300
|
], 46, Ws)), [
|
|
4295
|
-
[x(n),
|
|
4296
|
-
[x(a), (
|
|
4301
|
+
[x(n), H],
|
|
4302
|
+
[x(a), (le) => fe(null, le)]
|
|
4297
4303
|
]);
|
|
4298
4304
|
}), 128))
|
|
4299
4305
|
], 64));
|
|
4300
4306
|
}
|
|
4301
4307
|
});
|
|
4302
|
-
const Us = /* @__PURE__ */
|
|
4308
|
+
const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["viewBox"], Ks = {
|
|
4303
4309
|
x: "0",
|
|
4304
4310
|
y: "0",
|
|
4305
4311
|
width: "100%",
|
|
4306
4312
|
height: "100%"
|
|
4307
|
-
},
|
|
4313
|
+
}, Vs = ["onClick", "onDblclick"], Xs = ["data-block"], Js = /* @__PURE__ */ J({
|
|
4308
4314
|
__name: "index",
|
|
4309
4315
|
props: {
|
|
4310
4316
|
layout: {},
|
|
@@ -4322,157 +4328,157 @@ const Us = /* @__PURE__ */ ce(Qs, [["__scopeId", "data-v-09e89b79"]]), Ks = ["vi
|
|
|
4322
4328
|
setup(e, { emit: t }) {
|
|
4323
4329
|
const o = e;
|
|
4324
4330
|
Wt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4325
|
-
const a =
|
|
4326
|
-
...
|
|
4327
|
-
__tag__:
|
|
4328
|
-
rawChildren:
|
|
4329
|
-
children:
|
|
4330
|
-
}))),
|
|
4331
|
-
const
|
|
4332
|
-
return
|
|
4333
|
-
}),
|
|
4334
|
-
var
|
|
4335
|
-
return o.layout.bindFlag && !!((
|
|
4336
|
-
}), L = A(() => o.isFinal ? 0 : 10),
|
|
4337
|
-
width: `${
|
|
4338
|
-
height: `${(
|
|
4339
|
-
})),
|
|
4340
|
-
width: `${
|
|
4341
|
-
height: `${
|
|
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,
|
|
4333
|
+
__tag__: kt(),
|
|
4334
|
+
rawChildren: b.children,
|
|
4335
|
+
children: b.children.map((T) => ({ ...T, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: kt() }))
|
|
4336
|
+
}))), Z = A(() => {
|
|
4337
|
+
const b = F.value[F.value.length - 1], T = b.rawChildren[b.rawChildren.length - 1];
|
|
4338
|
+
return K.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), K = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => K.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 || ct[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`,
|
|
4342
4348
|
padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
|
|
4343
4349
|
marginBottom: `${L.value}px`
|
|
4344
4350
|
})), he = A(() => {
|
|
4345
|
-
var
|
|
4346
|
-
const
|
|
4351
|
+
var T;
|
|
4352
|
+
const b = (T = ze.find((le) => le.code === o.layout.paper)) == null ? void 0 : T.isMultCol;
|
|
4347
4353
|
return {
|
|
4348
|
-
left: `${_.value.left + (i.value ? i.value +
|
|
4354
|
+
left: `${_.value.left + (i.value ? i.value + S(0) : 0)}px`,
|
|
4349
4355
|
top: `${_.value.top}px`,
|
|
4350
|
-
width:
|
|
4356
|
+
width: b ? `${z.value}px` : `${C.value}px`
|
|
4351
4357
|
};
|
|
4352
4358
|
});
|
|
4353
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(""), () => {
|
|
4354
4360
|
setTimeout(() => {
|
|
4355
|
-
|
|
4361
|
+
re();
|
|
4356
4362
|
}, 100);
|
|
4357
|
-
}, { immediate: !0 }), Ae(() =>
|
|
4358
|
-
i.value =
|
|
4363
|
+
}, { immediate: !0 }), Ae(() => te.value, () => {
|
|
4364
|
+
i.value = te.value ? 100 : 0;
|
|
4359
4365
|
}, { immediate: !0 });
|
|
4360
|
-
const
|
|
4361
|
-
const
|
|
4362
|
-
return
|
|
4363
|
-
},
|
|
4364
|
-
|
|
4365
|
-
},
|
|
4366
|
-
|
|
4367
|
-
},
|
|
4368
|
-
var
|
|
4369
|
-
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;
|
|
4370
4376
|
return {
|
|
4371
|
-
left: `${_.value.left + (
|
|
4372
|
-
top: `${
|
|
4373
|
-
width: `${
|
|
4374
|
-
height: `${
|
|
4375
|
-
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`
|
|
4376
4382
|
};
|
|
4377
|
-
},
|
|
4378
|
-
n.value =
|
|
4379
|
-
r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((
|
|
4380
|
-
var
|
|
4381
|
-
!
|
|
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 = "");
|
|
4382
4388
|
}), o.isFinal && setTimeout(() => {
|
|
4383
|
-
const
|
|
4389
|
+
const le = _s({
|
|
4384
4390
|
config: {
|
|
4385
4391
|
...o.info,
|
|
4386
4392
|
layout: o.layout,
|
|
4387
|
-
pageTotal:
|
|
4393
|
+
pageTotal: w.value,
|
|
4388
4394
|
bindWidth: i.value,
|
|
4389
4395
|
pageMargin: L.value,
|
|
4390
|
-
pageDom: u.value.slice(0,
|
|
4391
|
-
colDom: m.value.map((
|
|
4392
|
-
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)
|
|
4393
4399
|
},
|
|
4394
4400
|
data: a.value
|
|
4395
4401
|
});
|
|
4396
|
-
t("getFinalData",
|
|
4402
|
+
t("getFinalData", le);
|
|
4397
4403
|
}, 500);
|
|
4398
4404
|
}));
|
|
4399
|
-
},
|
|
4405
|
+
}, re = () => {
|
|
4400
4406
|
Is({
|
|
4401
4407
|
el: c.value,
|
|
4402
|
-
data:
|
|
4408
|
+
data: F.value,
|
|
4403
4409
|
column: o.layout.column,
|
|
4404
4410
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4405
|
-
getColSize:
|
|
4406
|
-
change:
|
|
4411
|
+
getColSize: we,
|
|
4412
|
+
change: oe
|
|
4407
4413
|
});
|
|
4408
|
-
},
|
|
4409
|
-
t("toggleActive",
|
|
4414
|
+
}, be = (b = { type: q.page, value: {} }) => {
|
|
4415
|
+
t("toggleActive", b);
|
|
4410
4416
|
};
|
|
4411
|
-
return (
|
|
4412
|
-
var
|
|
4413
|
-
return s(), d(
|
|
4414
|
-
|
|
4417
|
+
return (b, T) => {
|
|
4418
|
+
var le;
|
|
4419
|
+
return s(), d(E, null, [
|
|
4420
|
+
b.readonly ? D("", !0) : (s(), U($s, {
|
|
4415
4421
|
key: 0,
|
|
4416
4422
|
ColList: a.value,
|
|
4417
|
-
ColDom: m.value.map((
|
|
4418
|
-
ImgData:
|
|
4419
|
-
TxtData:
|
|
4420
|
-
onDelAbsImgItem:
|
|
4421
|
-
onDelAbsTxtItem:
|
|
4422
|
-
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))
|
|
4423
4429
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4424
|
-
|
|
4430
|
+
f("div", {
|
|
4425
4431
|
class: "flex-1 overflow-auto relative z-1",
|
|
4426
4432
|
id: "alit-layout",
|
|
4427
|
-
onClick:
|
|
4433
|
+
onClick: T[14] || (T[14] = (R) => be())
|
|
4428
4434
|
}, [
|
|
4429
|
-
|
|
4435
|
+
f("div", {
|
|
4430
4436
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4431
4437
|
ref_key: "rawDom",
|
|
4432
4438
|
ref: c
|
|
4433
4439
|
}, [
|
|
4434
|
-
n.value.length ? (s(!0), d(
|
|
4435
|
-
|
|
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($t, {
|
|
4436
4442
|
key: 0,
|
|
4437
|
-
item:
|
|
4438
|
-
showColBorder:
|
|
4439
|
-
isFirst: !
|
|
4440
|
-
layout:
|
|
4443
|
+
item: R,
|
|
4444
|
+
showColBorder: K.value,
|
|
4445
|
+
isFirst: !ee && n.value.length === 1,
|
|
4446
|
+
layout: b.layout
|
|
4441
4447
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4442
|
-
|
|
4448
|
+
K.value ? (s(), d("div", {
|
|
4443
4449
|
key: 1,
|
|
4444
|
-
class:
|
|
4450
|
+
class: ae([!R.children.length && R.problemType && "p-1 min-h-[2rem]"])
|
|
4445
4451
|
}, [
|
|
4446
|
-
(s(),
|
|
4447
|
-
data:
|
|
4452
|
+
(s(), U(Ye, {
|
|
4453
|
+
data: R,
|
|
4448
4454
|
key: n.value.length,
|
|
4449
|
-
layout:
|
|
4450
|
-
target:
|
|
4455
|
+
layout: b.layout,
|
|
4456
|
+
target: b.target,
|
|
4451
4457
|
noPortrait: "",
|
|
4452
|
-
width:
|
|
4458
|
+
width: Q(n.value.length - 1) - 10
|
|
4453
4459
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4454
|
-
], 2)) : (s(),
|
|
4455
|
-
data:
|
|
4460
|
+
], 2)) : (s(), U(Ye, {
|
|
4461
|
+
data: R,
|
|
4456
4462
|
key: n.value.length,
|
|
4457
|
-
layout:
|
|
4458
|
-
target:
|
|
4459
|
-
width:
|
|
4463
|
+
layout: b.layout,
|
|
4464
|
+
target: b.target,
|
|
4465
|
+
width: Q(n.value.length - 1)
|
|
4460
4466
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4461
|
-
], 64))), 256)) :
|
|
4467
|
+
], 64))), 256)) : D("", !0)
|
|
4462
4468
|
], 512),
|
|
4463
|
-
|
|
4464
|
-
class:
|
|
4465
|
-
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)
|
|
4466
4472
|
}, [
|
|
4467
|
-
|
|
4468
|
-
imgData:
|
|
4469
|
-
txtData:
|
|
4470
|
-
layout:
|
|
4471
|
-
pageMargin:
|
|
4472
|
-
onChangeAbsImgItem:
|
|
4473
|
-
onDelAbsImgItem:
|
|
4474
|
-
onChangeAbsTxtItem:
|
|
4475
|
-
onDelAbsTxtItem:
|
|
4473
|
+
j(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))
|
|
4476
4482
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4477
4483
|
(s(), d("svg", {
|
|
4478
4484
|
viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
|
|
@@ -4480,130 +4486,130 @@ const Us = /* @__PURE__ */ ce(Qs, [["__scopeId", "data-v-09e89b79"]]), Ks = ["vi
|
|
|
4480
4486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4481
4487
|
key: l.value
|
|
4482
4488
|
}, [
|
|
4483
|
-
(s(), d("foreignObject",
|
|
4484
|
-
(s(!0), d(
|
|
4485
|
-
key:
|
|
4489
|
+
(s(), d("foreignObject", Ks, [
|
|
4490
|
+
(s(!0), d(E, null, X(M.value, (R, ee) => (s(), d("div", {
|
|
4491
|
+
key: R,
|
|
4486
4492
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4487
4493
|
ref_for: !0,
|
|
4488
|
-
ref: (
|
|
4489
|
-
style:
|
|
4494
|
+
ref: (Se) => P(Se, ee),
|
|
4495
|
+
style: Y(me.value)
|
|
4490
4496
|
}, [
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
layout:
|
|
4494
|
-
currentPage:
|
|
4495
|
-
totalPage:
|
|
4496
|
-
columnContentWidth:
|
|
4497
|
-
columnMargin:
|
|
4497
|
+
ee < w.value ? (s(), d(E, { key: 0 }, [
|
|
4498
|
+
j(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),
|
|
4498
4504
|
bindWidth: i.value,
|
|
4499
4505
|
padding: _.value
|
|
4500
4506
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4501
|
-
|
|
4507
|
+
b.layout.sloganFlag ? (s(), U($o, {
|
|
4502
4508
|
key: 0,
|
|
4503
|
-
info:
|
|
4504
|
-
layout:
|
|
4505
|
-
onChange:
|
|
4506
|
-
}, null, 8, ["info", "layout"])) :
|
|
4507
|
-
|
|
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
|
+
j(Za, {
|
|
4508
4514
|
ref_for: !0,
|
|
4509
4515
|
ref_key: "bindDom",
|
|
4510
4516
|
ref: h,
|
|
4511
|
-
currentPage:
|
|
4517
|
+
currentPage: ee,
|
|
4512
4518
|
width: i.value,
|
|
4513
|
-
height:
|
|
4514
|
-
isBindFlag:
|
|
4519
|
+
height: v.value,
|
|
4520
|
+
isBindFlag: te.value
|
|
4515
4521
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
|
|
4516
|
-
!(
|
|
4522
|
+
!(ee % 2) || ee === 1 && w.value < 3 ? (s(), d("div", {
|
|
4517
4523
|
key: 1,
|
|
4518
4524
|
ref_for: !0,
|
|
4519
4525
|
ref_key: "titleDom",
|
|
4520
4526
|
ref: O,
|
|
4521
|
-
class:
|
|
4522
|
-
style:
|
|
4527
|
+
class: ae(["absolute text-black", ee === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4528
|
+
style: Y(he.value)
|
|
4523
4529
|
}, [
|
|
4524
|
-
|
|
4525
|
-
layout:
|
|
4526
|
-
code:
|
|
4530
|
+
j(Mo, {
|
|
4531
|
+
layout: b.layout,
|
|
4532
|
+
code: b.info.textCode
|
|
4527
4533
|
}, null, 8, ["layout", "code"]),
|
|
4528
|
-
|
|
4529
|
-
info:
|
|
4530
|
-
layout:
|
|
4531
|
-
fontConfig:
|
|
4532
|
-
data:
|
|
4533
|
-
onChange:
|
|
4534
|
+
j(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))
|
|
4534
4540
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
4535
|
-
|
|
4536
|
-
layout:
|
|
4537
|
-
info:
|
|
4538
|
-
isBindFlag:
|
|
4539
|
-
onChange:
|
|
4541
|
+
j(ka, {
|
|
4542
|
+
layout: b.layout,
|
|
4543
|
+
info: b.info,
|
|
4544
|
+
isBindFlag: te.value,
|
|
4545
|
+
onChange: T[9] || (T[9] = (Se) => t("changeExtentInfo", Se))
|
|
4540
4546
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4541
|
-
|
|
4542
|
-
layout:
|
|
4543
|
-
isBindFlag:
|
|
4547
|
+
j(Ba, {
|
|
4548
|
+
layout: b.layout,
|
|
4549
|
+
isBindFlag: te.value
|
|
4544
4550
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4545
|
-
|
|
4551
|
+
ee ? D("", !0) : (s(), U(Ya, {
|
|
4546
4552
|
key: 0,
|
|
4547
|
-
layout:
|
|
4548
|
-
data:
|
|
4553
|
+
layout: b.layout,
|
|
4554
|
+
data: b.data
|
|
4549
4555
|
}, null, 8, ["layout", "data"])),
|
|
4550
|
-
|
|
4556
|
+
b.layout.writeScoreFlag && !ee ? (s(), U(_l, {
|
|
4551
4557
|
key: 1,
|
|
4552
|
-
info:
|
|
4553
|
-
layout:
|
|
4554
|
-
}, null, 8, ["info", "layout"])) :
|
|
4555
|
-
], 6)) :
|
|
4556
|
-
(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, {
|
|
4557
4563
|
ref_for: !0,
|
|
4558
|
-
ref: (Ge) =>
|
|
4559
|
-
styleInfo:
|
|
4560
|
-
column:
|
|
4561
|
-
currentColumn:
|
|
4562
|
-
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: K.value
|
|
4563
4569
|
}, {
|
|
4564
|
-
default:
|
|
4570
|
+
default: Lt(() => {
|
|
4565
4571
|
var Ge;
|
|
4566
4572
|
return [
|
|
4567
|
-
(s(!0), d(
|
|
4568
|
-
var
|
|
4569
|
-
return s(), d(
|
|
4570
|
-
|
|
4573
|
+
(s(!0), d(E, null, X(((Ge = a.value[_e(Me, ee)]) == null ? void 0 : Ge.data) || [], (ge, zt) => {
|
|
4574
|
+
var mt;
|
|
4575
|
+
return s(), d(E, null, [
|
|
4576
|
+
ge.isHidden ? D("", !0) : (s(), U($t, {
|
|
4571
4577
|
key: 0,
|
|
4572
|
-
item:
|
|
4573
|
-
showColBorder:
|
|
4574
|
-
isFirst: !
|
|
4575
|
-
layout:
|
|
4576
|
-
isActive: ((
|
|
4577
|
-
onClick: (
|
|
4578
|
-
onDbclick: (
|
|
4578
|
+
item: ge,
|
|
4579
|
+
showColBorder: K.value,
|
|
4580
|
+
isFirst: !ee && !Me && !zt,
|
|
4581
|
+
layout: b.layout,
|
|
4582
|
+
isActive: ((mt = b.target.value) == null ? void 0 : mt.id) === ge.id,
|
|
4583
|
+
onClick: (Ce) => be({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }),
|
|
4584
|
+
onDbclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4579
4585
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
4580
|
-
|
|
4586
|
+
K.value ? (s(), d("div", {
|
|
4581
4587
|
key: 1,
|
|
4582
|
-
class:
|
|
4583
|
-
onClick: Le((
|
|
4584
|
-
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)
|
|
4585
4591
|
}, [
|
|
4586
|
-
|
|
4587
|
-
data:
|
|
4588
|
-
layout:
|
|
4589
|
-
target:
|
|
4590
|
-
width:
|
|
4591
|
-
onClick:
|
|
4592
|
-
onDbclick:
|
|
4592
|
+
j(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))
|
|
4593
4599
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4594
|
-
|
|
4600
|
+
ge.children.length && ge.children[ge.children.length - 1].id === Z.value ? (s(), d("div", {
|
|
4595
4601
|
key: 0,
|
|
4596
4602
|
class: "border-t",
|
|
4597
4603
|
"data-block": x(Ee)
|
|
4598
|
-
}, null, 8,
|
|
4599
|
-
], 42,
|
|
4604
|
+
}, null, 8, Xs)) : D("", !0)
|
|
4605
|
+
], 42, Vs)) : (s(), U(Ye, {
|
|
4600
4606
|
key: 2,
|
|
4601
|
-
data:
|
|
4602
|
-
layout:
|
|
4603
|
-
target:
|
|
4604
|
-
width:
|
|
4605
|
-
onClick:
|
|
4606
|
-
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))
|
|
4607
4613
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4608
4614
|
], 64);
|
|
4609
4615
|
}), 256))
|
|
@@ -4611,17 +4617,17 @@ const Us = /* @__PURE__ */ ce(Qs, [["__scopeId", "data-v-09e89b79"]]), Ks = ["vi
|
|
|
4611
4617
|
}),
|
|
4612
4618
|
_: 2
|
|
4613
4619
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
4614
|
-
], 64)) :
|
|
4620
|
+
], 64)) : D("", !0)
|
|
4615
4621
|
], 4))), 128))
|
|
4616
4622
|
]))
|
|
4617
|
-
], 8,
|
|
4623
|
+
], 8, js))
|
|
4618
4624
|
], 6)
|
|
4619
4625
|
])
|
|
4620
4626
|
], 64);
|
|
4621
4627
|
};
|
|
4622
4628
|
}
|
|
4623
4629
|
});
|
|
4624
|
-
const ti = /* @__PURE__ */
|
|
4630
|
+
const ti = /* @__PURE__ */ de(Js, [["__scopeId", "data-v-823af0fa"]]);
|
|
4625
4631
|
export {
|
|
4626
4632
|
ei as Config,
|
|
4627
4633
|
ti as default
|