alit-layout 1.0.28 → 1.0.30
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 +1164 -1154
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ee, openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as ee, openBlock as r, createElementBlock as u, Fragment as P, renderList as Z, createElementVNode as f, normalizeStyle as Q, unref as x, toDisplayString as J, createCommentVNode as M, ref as q, watch as Me, normalizeClass as oe, computed as A, createBlock as V, createTextVNode as Ue, createVNode as X, pushScopeId as He, popScopeId as Re, renderSlot as rt, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as _t, normalizeProps as ft, guardReactiveProps as gt, withCtx as Ft, inject as Wt, withDirectives as bt, provide as Gt } from "vue";
|
|
2
|
+
const ct = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
5
5
|
// 多选题
|
|
@@ -9,10 +9,10 @@ const rt = {
|
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
11
|
}, Et = {
|
|
12
|
-
...
|
|
12
|
+
...ct,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
15
|
-
},
|
|
15
|
+
}, lt = {
|
|
16
16
|
// 填空题
|
|
17
17
|
fill: "FILL_BLANKS",
|
|
18
18
|
// 听后填空
|
|
@@ -47,7 +47,7 @@ const rt = {
|
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
48
|
}, m = {
|
|
49
49
|
...Et,
|
|
50
|
-
...
|
|
50
|
+
...lt
|
|
51
51
|
}, Oe = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
53
53
|
{ name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0 },
|
|
@@ -56,7 +56,7 @@ const rt = {
|
|
|
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" }
|
|
59
|
-
],
|
|
59
|
+
], g = {
|
|
60
60
|
a3: {
|
|
61
61
|
width: 1588,
|
|
62
62
|
height: 1124
|
|
@@ -166,137 +166,137 @@ const rt = {
|
|
|
166
166
|
{ name: "两栏", code: 2 }
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, dt = {
|
|
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 = {
|
|
@@ -549,12 +549,12 @@ const rt = {
|
|
|
549
549
|
{ name: "无", code: xe.none },
|
|
550
550
|
{ name: "座位号", code: xe.seat, value: 3 },
|
|
551
551
|
{ name: "短学号", code: xe.shortId, value: 4 }
|
|
552
|
-
],
|
|
552
|
+
], nt = {
|
|
553
553
|
wide: "text",
|
|
554
554
|
local: "topic"
|
|
555
555
|
}, Zt = [
|
|
556
|
-
{ name: "整卷", code:
|
|
557
|
-
{ name: "大题", code:
|
|
556
|
+
{ name: "整卷", code: nt.wide },
|
|
557
|
+
{ name: "大题", code: nt.local }
|
|
558
558
|
], qe = {
|
|
559
559
|
system: "system",
|
|
560
560
|
second: "level_2",
|
|
@@ -727,7 +727,7 @@ const rt = {
|
|
|
727
727
|
// 综合题
|
|
728
728
|
synthesis_a: "polymerFlag"
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, Dt = {
|
|
731
731
|
article: {
|
|
732
732
|
// 文案边框控制
|
|
733
733
|
isShowBorder: "isShowBorder"
|
|
@@ -1167,7 +1167,7 @@ const rt = {
|
|
|
1167
1167
|
label: "列数",
|
|
1168
1168
|
target: [U.headline],
|
|
1169
1169
|
key: y.sheetCard.choice_d,
|
|
1170
|
-
show: (e) => Object.values(
|
|
1170
|
+
show: (e) => Object.values(ct).includes(e.problemType) && e.style[y.sheetCard.choice_a] !== L.choice_2,
|
|
1171
1171
|
min: () => 2,
|
|
1172
1172
|
max: () => 10
|
|
1173
1173
|
}
|
|
@@ -1357,7 +1357,7 @@ const rt = {
|
|
|
1357
1357
|
{
|
|
1358
1358
|
type: "radio",
|
|
1359
1359
|
label: "边框显示控制",
|
|
1360
|
-
key:
|
|
1360
|
+
key: Dt.article.isShowBorder,
|
|
1361
1361
|
option: [
|
|
1362
1362
|
{ name: "显示边框", code: !0 },
|
|
1363
1363
|
{ name: "隐藏边框", code: !1 }
|
|
@@ -1470,12 +1470,12 @@ const rt = {
|
|
|
1470
1470
|
halfScoreTypeOption: oo,
|
|
1471
1471
|
layoutMode: Xt,
|
|
1472
1472
|
otherLayout: so,
|
|
1473
|
-
otherLayoutKey:
|
|
1473
|
+
otherLayoutKey: Dt,
|
|
1474
1474
|
paddDiff: Qt,
|
|
1475
1475
|
pageMargin: jt,
|
|
1476
|
-
pagePadding:
|
|
1476
|
+
pagePadding: dt,
|
|
1477
1477
|
pagePointPosition: ze,
|
|
1478
|
-
pageSize:
|
|
1478
|
+
pageSize: g,
|
|
1479
1479
|
pageTitleBlockCol: Vt,
|
|
1480
1480
|
paper: Oe,
|
|
1481
1481
|
problemLayout: no,
|
|
@@ -1490,12 +1490,12 @@ const rt = {
|
|
|
1490
1490
|
sheetColumnPad: $e,
|
|
1491
1491
|
sheetItemColumnPad: Ut,
|
|
1492
1492
|
subIndentOption: to,
|
|
1493
|
-
subRange:
|
|
1493
|
+
subRange: nt,
|
|
1494
1494
|
subRangeOption: Zt,
|
|
1495
1495
|
subRule: qe,
|
|
1496
1496
|
subRuleOption: eo,
|
|
1497
1497
|
toolGroup: U
|
|
1498
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1498
|
+
}, Symbol.toStringTag, { value: "Module" })), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), po = "TF".split(""), mo = {
|
|
1499
1499
|
a4: "TYPE_A4",
|
|
1500
1500
|
a4x: "TYPE_A4",
|
|
1501
1501
|
a3: "TYPE_A3",
|
|
@@ -1549,7 +1549,7 @@ const rt = {
|
|
|
1549
1549
|
write_view: `__${me}write`,
|
|
1550
1550
|
// 密封线
|
|
1551
1551
|
bind_line: `__${me}bindline`
|
|
1552
|
-
},
|
|
1552
|
+
}, ot = {
|
|
1553
1553
|
[m.choice]: "TYPE_SINGLECHOICE",
|
|
1554
1554
|
// 单项选择
|
|
1555
1555
|
[m.choice_english]: "TYPE_SINGLECHOICE",
|
|
@@ -1599,8 +1599,8 @@ const rt = {
|
|
|
1599
1599
|
right: `${t.padding.right - 20 + 100}px`,
|
|
1600
1600
|
top: `${t.padding.top - 20}px`
|
|
1601
1601
|
}
|
|
1602
|
-
})[t.layout.pagePoint],
|
|
1603
|
-
const
|
|
1602
|
+
})[t.layout.pagePoint], i = (o, s) => {
|
|
1603
|
+
const c = t.columnContentWidth + t.columnMargin, d = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, h = {
|
|
1604
1604
|
t: {
|
|
1605
1605
|
top: `${t.padding.top - 20}px`
|
|
1606
1606
|
},
|
|
@@ -1608,53 +1608,53 @@ const rt = {
|
|
|
1608
1608
|
bottom: `${t.padding.bottom - 20}px`
|
|
1609
1609
|
}
|
|
1610
1610
|
};
|
|
1611
|
-
return { left: `${o *
|
|
1612
|
-
},
|
|
1613
|
-
const s = (
|
|
1614
|
-
return { top: `${s *
|
|
1611
|
+
return { left: `${o * c + d}px`, ...h[s] };
|
|
1612
|
+
}, n = (o) => {
|
|
1613
|
+
const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, h = ["", "l", "r"].findIndex((B) => B === o);
|
|
1614
|
+
return { top: `${s * h + t.padding.top - 10}px`, width: "11px", ...d };
|
|
1615
1615
|
};
|
|
1616
1616
|
return (o, s) => {
|
|
1617
|
-
var
|
|
1618
|
-
return
|
|
1619
|
-
(
|
|
1617
|
+
var c;
|
|
1618
|
+
return r(), u(P, null, [
|
|
1619
|
+
(r(), u(P, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
|
|
1620
1620
|
key: d,
|
|
1621
1621
|
class: "absolute w-8 bg-black point_item",
|
|
1622
|
-
style:
|
|
1622
|
+
style: Q(a(d)),
|
|
1623
1623
|
"data-xine": x(k).point + d
|
|
1624
1624
|
}, null, 12, yo)), 64)),
|
|
1625
|
-
(
|
|
1626
|
-
(
|
|
1627
|
-
key:
|
|
1625
|
+
(r(!0), u(P, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (d) => (r(), u(P, { key: d }, [
|
|
1626
|
+
(r(), u(P, null, Z(["t", "b"], (h) => f("span", {
|
|
1627
|
+
key: h,
|
|
1628
1628
|
class: "absolute bg-black w-8 point_item",
|
|
1629
|
-
style:
|
|
1630
|
-
"data-xine": x(k).point +
|
|
1629
|
+
style: Q(i(d, h)),
|
|
1630
|
+
"data-xine": x(k).point + h
|
|
1631
1631
|
}, null, 12, _o)), 64))
|
|
1632
1632
|
], 64))), 128)),
|
|
1633
|
-
(
|
|
1633
|
+
(r(), u(P, null, Z(["l", "r"], (d) => f("span", {
|
|
1634
1634
|
key: d,
|
|
1635
1635
|
class: "absolute bg-black h-8",
|
|
1636
|
-
style:
|
|
1636
|
+
style: Q(n(d)),
|
|
1637
1637
|
"data-xine": x(k).point + d
|
|
1638
1638
|
}, null, 12, fo)), 64)),
|
|
1639
1639
|
f("p", {
|
|
1640
1640
|
class: "absolute leading-none text-0",
|
|
1641
|
-
style:
|
|
1641
|
+
style: Q(l()),
|
|
1642
1642
|
"data-xine": x(k).page
|
|
1643
1643
|
}, [
|
|
1644
|
-
(
|
|
1644
|
+
(r(!0), u(P, null, Z(o.currentPage + 1, (d, h) => (r(), u("span", {
|
|
1645
1645
|
key: d,
|
|
1646
1646
|
class: "inline-block bg-black mx-2 page_item",
|
|
1647
|
-
"data-xine": x(k).page_item +
|
|
1647
|
+
"data-xine": x(k).page_item + h
|
|
1648
1648
|
}, null, 8, bo))), 128))
|
|
1649
1649
|
], 12, go),
|
|
1650
|
-
o.currentPage % 2 ?
|
|
1650
|
+
o.currentPage % 2 ? M("", !0) : (r(), u("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
|
-
}, "提示:本卷" + J((
|
|
1653
|
+
style: Q({ right: `${o.padding.right - 12}px` })
|
|
1654
|
+
}, "提示:本卷" + J((c = x(Oe).find((d) => d.code === o.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
|
|
1655
1655
|
f("span", {
|
|
1656
1656
|
class: "absolute text-sm red_sheet",
|
|
1657
|
-
style:
|
|
1657
|
+
style: Q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
|
|
1658
1658
|
}, J(o.currentPage + 1) + "/" + J(o.totalPage), 5)
|
|
1659
1659
|
], 64);
|
|
1660
1660
|
};
|
|
@@ -1662,8 +1662,8 @@ const rt = {
|
|
|
1662
1662
|
});
|
|
1663
1663
|
const de = (e, t) => {
|
|
1664
1664
|
const a = e.__vccOpts || e;
|
|
1665
|
-
for (const [l,
|
|
1666
|
-
a[l] =
|
|
1665
|
+
for (const [l, i] of t)
|
|
1666
|
+
a[l] = i;
|
|
1667
1667
|
return a;
|
|
1668
1668
|
}, wo = /* @__PURE__ */ de(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
|
|
1669
1669
|
key: 0,
|
|
@@ -1683,23 +1683,23 @@ const de = (e, t) => {
|
|
|
1683
1683
|
},
|
|
1684
1684
|
emits: ["change", "input", "focus", "blur"],
|
|
1685
1685
|
setup(e, { emit: t }) {
|
|
1686
|
-
const a = e, l =
|
|
1687
|
-
|
|
1686
|
+
const a = e, l = q(a.value), i = q(!1);
|
|
1687
|
+
Me(() => a.value, () => {
|
|
1688
1688
|
l.value = a.value;
|
|
1689
1689
|
});
|
|
1690
|
-
const
|
|
1690
|
+
const n = (d) => {
|
|
1691
1691
|
l.value = d.target.value, t("input", a.type === "number" ? parseFloat(l.value) : l.value);
|
|
1692
1692
|
}, o = (d) => {
|
|
1693
1693
|
l.value = d.target.value, t("change", a.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
|
|
1694
1694
|
l.value = a.value;
|
|
1695
1695
|
}, 400);
|
|
1696
1696
|
}, s = (d) => {
|
|
1697
|
-
l.value = d.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value),
|
|
1698
|
-
},
|
|
1699
|
-
t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value),
|
|
1697
|
+
l.value = d.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value), i.value = !0;
|
|
1698
|
+
}, c = () => {
|
|
1699
|
+
t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
|
|
1700
1700
|
};
|
|
1701
|
-
return (d,
|
|
1702
|
-
class: oe(["flex-1 flex items-center border rounded-lg", d.autoLine ?
|
|
1701
|
+
return (d, h) => (r(), u("div", {
|
|
1702
|
+
class: oe(["flex-1 flex items-center border rounded-lg", d.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", d.size === "small" && "p-1", d.size === "stand" && "p-2", d.size === "large" && "p-2"])
|
|
1703
1703
|
}, [
|
|
1704
1704
|
f("div", xo, [
|
|
1705
1705
|
f("input", {
|
|
@@ -1708,13 +1708,13 @@ const de = (e, t) => {
|
|
|
1708
1708
|
placeholder: d.placeholder,
|
|
1709
1709
|
maxlength: d.maxLength,
|
|
1710
1710
|
value: l.value,
|
|
1711
|
-
onInput:
|
|
1711
|
+
onInput: n,
|
|
1712
1712
|
onChange: o,
|
|
1713
1713
|
onFocus: s,
|
|
1714
|
-
onBlur:
|
|
1714
|
+
onBlur: c
|
|
1715
1715
|
}, null, 42, ko)
|
|
1716
1716
|
]),
|
|
1717
|
-
d.unit ? (
|
|
1717
|
+
d.unit ? (r(), u("span", Co, J(d.unit), 1)) : M("", !0)
|
|
1718
1718
|
], 2));
|
|
1719
1719
|
}
|
|
1720
1720
|
}), $o = /* @__PURE__ */ ee({
|
|
@@ -1725,19 +1725,19 @@ const de = (e, t) => {
|
|
|
1725
1725
|
},
|
|
1726
1726
|
emits: ["change"],
|
|
1727
1727
|
setup(e, { emit: t }) {
|
|
1728
|
-
const a = e, l = A(() =>
|
|
1728
|
+
const a = e, l = A(() => dt[a.layout.mode][a.layout.paper]), i = A(() => ({
|
|
1729
1729
|
right: `${l.value.right + 97}px`,
|
|
1730
1730
|
bottom: `${l.value.bottom - 25}px`
|
|
1731
1731
|
}));
|
|
1732
|
-
return (
|
|
1732
|
+
return (n, o) => (r(), V(et, {
|
|
1733
1733
|
class: "absolute w-72 text-sm",
|
|
1734
|
-
value:
|
|
1734
|
+
value: n.info.slogan,
|
|
1735
1735
|
maxLength: 12,
|
|
1736
1736
|
placeholder: "",
|
|
1737
1737
|
size: "small",
|
|
1738
1738
|
autoLine: "",
|
|
1739
1739
|
dir: "right",
|
|
1740
|
-
style:
|
|
1740
|
+
style: Q(i.value),
|
|
1741
1741
|
onChange: o[0] || (o[0] = (s) => t("change", { slogin: s }))
|
|
1742
1742
|
}, null, 8, ["value", "style"]));
|
|
1743
1743
|
}
|
|
@@ -1751,13 +1751,13 @@ const de = (e, t) => {
|
|
|
1751
1751
|
emits: ["click"],
|
|
1752
1752
|
setup(e, { emit: t }) {
|
|
1753
1753
|
const a = e, l = A(() => `#icon-${a.name}`);
|
|
1754
|
-
return (
|
|
1754
|
+
return (i, n) => (r(), u("span", {
|
|
1755
1755
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
1756
|
-
onClick:
|
|
1756
|
+
onClick: n[0] || (n[0] = (o) => t("click"))
|
|
1757
1757
|
}, [
|
|
1758
|
-
(
|
|
1759
|
-
width:
|
|
1760
|
-
height: (
|
|
1758
|
+
(r(), u("svg", {
|
|
1759
|
+
width: i.width + "rem",
|
|
1760
|
+
height: (i.height || i.width) + "rem"
|
|
1761
1761
|
}, [
|
|
1762
1762
|
f("use", { "xlink:href": l.value }, null, 8, To)
|
|
1763
1763
|
], 8, So))
|
|
@@ -1774,8 +1774,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1774
1774
|
code: {}
|
|
1775
1775
|
},
|
|
1776
1776
|
setup(e) {
|
|
1777
|
-
return (t, a) => (
|
|
1778
|
-
t.layout.secrecyFlag ? (
|
|
1777
|
+
return (t, a) => (r(), u("div", Lo, [
|
|
1778
|
+
t.layout.secrecyFlag ? (r(), u("p", Fo, [
|
|
1779
1779
|
Ue("绝密"),
|
|
1780
1780
|
X(_e, {
|
|
1781
1781
|
name: "fiveArrow",
|
|
@@ -1783,11 +1783,11 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1783
1783
|
class: "px-0 py-0"
|
|
1784
1784
|
}),
|
|
1785
1785
|
Ue("启用前")
|
|
1786
|
-
])) :
|
|
1786
|
+
])) : M("", !0),
|
|
1787
1787
|
f("p", Eo, "ID:" + J(t.code), 1)
|
|
1788
1788
|
]));
|
|
1789
1789
|
}
|
|
1790
|
-
}),
|
|
1790
|
+
}), Do = ["innerHTML"], Be = /* @__PURE__ */ ee({
|
|
1791
1791
|
__name: "index",
|
|
1792
1792
|
props: {
|
|
1793
1793
|
value: {},
|
|
@@ -1796,16 +1796,16 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1796
1796
|
},
|
|
1797
1797
|
emits: ["change"],
|
|
1798
1798
|
setup(e, { emit: t }) {
|
|
1799
|
-
const a = e, l = (
|
|
1800
|
-
t("change",
|
|
1799
|
+
const a = e, l = (i) => {
|
|
1800
|
+
t("change", i.target.innerHTML, a.name);
|
|
1801
1801
|
};
|
|
1802
|
-
return (
|
|
1803
|
-
innerHTML:
|
|
1802
|
+
return (i, n) => (r(), u("div", {
|
|
1803
|
+
innerHTML: i.value,
|
|
1804
1804
|
contenteditable: "",
|
|
1805
1805
|
onBlur: l
|
|
1806
|
-
}, null, 40,
|
|
1806
|
+
}, null, 40, Do));
|
|
1807
1807
|
}
|
|
1808
|
-
}),
|
|
1808
|
+
}), Mo = { 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
1811
|
}, zo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
|
|
@@ -1830,8 +1830,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1830
1830
|
},
|
|
1831
1831
|
emits: ["change"],
|
|
1832
1832
|
setup(e, { emit: t }) {
|
|
1833
|
-
const a = e, l = A(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)),
|
|
1834
|
-
return (o, s) => (
|
|
1833
|
+
const a = e, l = A(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), i = A(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = A(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
1834
|
+
return (o, s) => (r(), u("div", Mo, [
|
|
1835
1835
|
f("img", {
|
|
1836
1836
|
src: o.info.qrCode,
|
|
1837
1837
|
alt: "QRCode",
|
|
@@ -1842,26 +1842,26 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1842
1842
|
X(Be, {
|
|
1843
1843
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1844
1844
|
value: o.info.title,
|
|
1845
|
-
style:
|
|
1846
|
-
onChange: s[0] || (s[0] = (
|
|
1845
|
+
style: Q(o.fontConfig.titleStyle),
|
|
1846
|
+
onChange: s[0] || (s[0] = (c) => t("change", { title: c }))
|
|
1847
1847
|
}, null, 8, ["value", "style"]),
|
|
1848
|
-
o.layout.secTitleFlag ? (
|
|
1848
|
+
o.layout.secTitleFlag ? (r(), V(Be, {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
1851
1851
|
value: o.info.secTitle,
|
|
1852
|
-
style:
|
|
1853
|
-
onChange: s[1] || (s[1] = (
|
|
1854
|
-
}, null, 8, ["value", "style"])) :
|
|
1852
|
+
style: Q(o.fontConfig.halfTitleStyle),
|
|
1853
|
+
onChange: s[1] || (s[1] = (c) => t("change", { secTitle: c }))
|
|
1854
|
+
}, null, 8, ["value", "style"])) : M("", !0),
|
|
1855
1855
|
f("div", Bo, [
|
|
1856
|
-
o.layout.examExtentFlag ? (
|
|
1856
|
+
o.layout.examExtentFlag ? (r(), u("p", Oo, [
|
|
1857
1857
|
zo,
|
|
1858
1858
|
X(Be, {
|
|
1859
1859
|
class: "flex-1",
|
|
1860
1860
|
value: o.info.extent,
|
|
1861
|
-
onChange: s[2] || (s[2] = (
|
|
1861
|
+
onChange: s[2] || (s[2] = (c) => t("change", { extent: c }))
|
|
1862
1862
|
}, null, 8, ["value"])
|
|
1863
|
-
])) :
|
|
1864
|
-
o.layout.examTimeFlag ? (
|
|
1863
|
+
])) : M("", !0),
|
|
1864
|
+
o.layout.examTimeFlag ? (r(), u("p", Ho, [
|
|
1865
1865
|
Ro,
|
|
1866
1866
|
X(et, {
|
|
1867
1867
|
value: o.info.time,
|
|
@@ -1870,63 +1870,63 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1870
1870
|
autoLine: "",
|
|
1871
1871
|
size: "small",
|
|
1872
1872
|
placeholder: "",
|
|
1873
|
-
onChange: s[3] || (s[3] = (
|
|
1873
|
+
onChange: s[3] || (s[3] = (c) => t("change", { time: c }))
|
|
1874
1874
|
}, null, 8, ["value"]),
|
|
1875
1875
|
Wo
|
|
1876
|
-
])) :
|
|
1877
|
-
o.layout.authorFlag ? (
|
|
1876
|
+
])) : M("", !0),
|
|
1877
|
+
o.layout.authorFlag ? (r(), u("p", Go, [
|
|
1878
1878
|
Yo,
|
|
1879
1879
|
X(Be, {
|
|
1880
1880
|
class: "flex-1",
|
|
1881
1881
|
value: o.info.author,
|
|
1882
|
-
onChange: s[4] || (s[4] = (
|
|
1882
|
+
onChange: s[4] || (s[4] = (c) => t("change", { author: c }))
|
|
1883
1883
|
}, null, 8, ["value"])
|
|
1884
|
-
])) :
|
|
1885
|
-
o.layout.reviewerFlag ? (
|
|
1884
|
+
])) : M("", !0),
|
|
1885
|
+
o.layout.reviewerFlag ? (r(), u("p", qo, [
|
|
1886
1886
|
Qo,
|
|
1887
1887
|
X(Be, {
|
|
1888
1888
|
class: "flex-1",
|
|
1889
1889
|
value: o.info.reviewer,
|
|
1890
|
-
onChange: s[5] || (s[5] = (
|
|
1890
|
+
onChange: s[5] || (s[5] = (c) => t("change", { reviewer: c }))
|
|
1891
1891
|
}, null, 8, ["value"])
|
|
1892
|
-
])) :
|
|
1893
|
-
o.layout.totalScoreFlag ? (
|
|
1892
|
+
])) : M("", !0),
|
|
1893
|
+
o.layout.totalScoreFlag ? (r(), u("p", Uo, [
|
|
1894
1894
|
jo,
|
|
1895
|
-
|
|
1895
|
+
n.value ? (r(), V(_e, {
|
|
1896
1896
|
key: 0,
|
|
1897
|
-
name:
|
|
1897
|
+
name: n.value,
|
|
1898
1898
|
class: "p-0 -translate-y-[1px]"
|
|
1899
|
-
}, null, 8, ["name"])) : (
|
|
1899
|
+
}, null, 8, ["name"])) : (r(), u("span", Ko, "分")),
|
|
1900
1900
|
f("span", null, ":" + J(l.value + (o.layout.writeScoreFlag ? o.info.writeScore : 0)), 1),
|
|
1901
|
-
|
|
1901
|
+
n.value ? (r(), V(_e, {
|
|
1902
1902
|
key: 2,
|
|
1903
|
-
name:
|
|
1903
|
+
name: n.value,
|
|
1904
1904
|
class: "p-0 -translate-y-[1px]"
|
|
1905
|
-
}, null, 8, ["name"])) : (
|
|
1906
|
-
o.layout.writeScoreFlag ? (
|
|
1905
|
+
}, null, 8, ["name"])) : (r(), u("span", Vo, "分")),
|
|
1906
|
+
o.layout.writeScoreFlag ? (r(), u(P, { key: 4 }, [
|
|
1907
1907
|
f("span", null, "(试题" + J(l.value), 1),
|
|
1908
|
-
|
|
1908
|
+
n.value ? (r(), V(_e, {
|
|
1909
1909
|
key: 0,
|
|
1910
|
-
name:
|
|
1910
|
+
name: n.value,
|
|
1911
1911
|
class: "p-0 -translate-y-[1px]"
|
|
1912
|
-
}, null, 8, ["name"])) : (
|
|
1912
|
+
}, null, 8, ["name"])) : (r(), u("span", Xo, "分")),
|
|
1913
1913
|
f("span", null, "+卷面" + J(o.info.writeScore || 0), 1),
|
|
1914
|
-
|
|
1914
|
+
n.value ? (r(), V(_e, {
|
|
1915
1915
|
key: 2,
|
|
1916
|
-
name:
|
|
1916
|
+
name: n.value,
|
|
1917
1917
|
class: "p-0 -translate-y-[1px]"
|
|
1918
|
-
}, null, 8, ["name"])) : (
|
|
1918
|
+
}, null, 8, ["name"])) : (r(), u("span", Jo, "分")),
|
|
1919
1919
|
Zo
|
|
1920
|
-
], 64)) :
|
|
1921
|
-
|
|
1922
|
-
f("span", null, ";附加题:" + J(
|
|
1923
|
-
|
|
1920
|
+
], 64)) : M("", !0),
|
|
1921
|
+
i.value ? (r(), u(P, { key: 5 }, [
|
|
1922
|
+
f("span", null, ";附加题:" + J(i.value), 1),
|
|
1923
|
+
n.value ? (r(), V(_e, {
|
|
1924
1924
|
key: 0,
|
|
1925
|
-
name:
|
|
1925
|
+
name: n.value,
|
|
1926
1926
|
class: "p-0 -translate-y-[1px]"
|
|
1927
|
-
}, null, 8, ["name"])) : (
|
|
1928
|
-
], 64)) :
|
|
1929
|
-
])) :
|
|
1927
|
+
}, null, 8, ["name"])) : (r(), u("span", ea, "分"))
|
|
1928
|
+
], 64)) : M("", !0)
|
|
1929
|
+
])) : M("", !0)
|
|
1930
1930
|
])
|
|
1931
1931
|
])
|
|
1932
1932
|
]));
|
|
@@ -1939,17 +1939,17 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1939
1939
|
emits: ["change"],
|
|
1940
1940
|
setup(e, { emit: t }) {
|
|
1941
1941
|
const a = ["examNumField", "examRoomField", "seatField"];
|
|
1942
|
-
return (l,
|
|
1943
|
-
(
|
|
1944
|
-
key:
|
|
1942
|
+
return (l, i) => (r(), u("ul", oa, [
|
|
1943
|
+
(r(), u(P, null, Z(a, (n) => f("li", {
|
|
1944
|
+
key: n,
|
|
1945
1945
|
class: "flex flex-1"
|
|
1946
1946
|
}, [
|
|
1947
1947
|
X(et, {
|
|
1948
|
-
value: l.extent[
|
|
1948
|
+
value: l.extent[n],
|
|
1949
1949
|
class: "px-0",
|
|
1950
1950
|
placeholder: "",
|
|
1951
1951
|
autoLine: "",
|
|
1952
|
-
onChange: (o) => t("change", { [
|
|
1952
|
+
onChange: (o) => t("change", { [n]: o })
|
|
1953
1953
|
}, null, 8, ["value", "onChange"])
|
|
1954
1954
|
])), 64))
|
|
1955
1955
|
]));
|
|
@@ -1957,7 +1957,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1957
1957
|
}), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */ ee({
|
|
1958
1958
|
__name: "examInfoSeat",
|
|
1959
1959
|
setup(e) {
|
|
1960
|
-
return (t, a) => (
|
|
1960
|
+
return (t, a) => (r(), u("div", {
|
|
1961
1961
|
class: "flex-shrink-0 border ml-4 flex flex-col",
|
|
1962
1962
|
"data-xine": x(k).en_num_view
|
|
1963
1963
|
}, [
|
|
@@ -1972,16 +1972,16 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1972
1972
|
class: "flex-1 flex flex-col",
|
|
1973
1973
|
"data-xine": x(k).en_num
|
|
1974
1974
|
}, [
|
|
1975
|
-
(
|
|
1975
|
+
(r(), u(P, null, Z(3, (l, i) => f("p", {
|
|
1976
1976
|
key: l,
|
|
1977
1977
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
1978
1978
|
"data-xine": x(k).en_num_group
|
|
1979
1979
|
}, [
|
|
1980
|
-
(
|
|
1981
|
-
key:
|
|
1980
|
+
(r(), u(P, null, Z(10, (n) => f("span", {
|
|
1981
|
+
key: n,
|
|
1982
1982
|
class: "flex items-center justify-between flex-nowrap item",
|
|
1983
1983
|
"data-xine": x(k).en_num_item
|
|
1984
|
-
}, J(
|
|
1984
|
+
}, J(n - 1), 9, ia)), 64))
|
|
1985
1985
|
], 8, sa)), 64))
|
|
1986
1986
|
], 8, na)
|
|
1987
1987
|
], 8, aa));
|
|
@@ -1990,7 +1990,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
|
|
|
1990
1990
|
const wt = /* @__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__ */ ee({
|
|
1991
1991
|
__name: "examInfoShort",
|
|
1992
1992
|
setup(e) {
|
|
1993
|
-
return (t, a) => (
|
|
1993
|
+
return (t, a) => (r(), u("div", {
|
|
1994
1994
|
class: "flex-shrink-0 border ml-4 flex",
|
|
1995
1995
|
"data-xine": x(k).en_num_view
|
|
1996
1996
|
}, [
|
|
@@ -2005,16 +2005,16 @@ const wt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
|
|
|
2005
2005
|
class: "flex-1 flex flex-col",
|
|
2006
2006
|
"data-xine": x(k).en_num
|
|
2007
2007
|
}, [
|
|
2008
|
-
(
|
|
2008
|
+
(r(), u(P, null, Z(4, (l, i) => f("p", {
|
|
2009
2009
|
key: l,
|
|
2010
|
-
class: oe(["flex-1 flex items-center text-0 px-1",
|
|
2010
|
+
class: oe(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
|
|
2011
2011
|
"data-xine": x(k).en_num_group
|
|
2012
2012
|
}, [
|
|
2013
|
-
(
|
|
2014
|
-
key:
|
|
2013
|
+
(r(), u(P, null, Z(10, (n) => f("span", {
|
|
2014
|
+
key: n,
|
|
2015
2015
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2016
2016
|
"data-xine": x(k).en_num_item
|
|
2017
|
-
}, J(
|
|
2017
|
+
}, J(n - 1), 9, pa)), 64))
|
|
2018
2018
|
], 10, ha)), 64))
|
|
2019
2019
|
], 8, ua)
|
|
2020
2020
|
], 8, ca));
|
|
@@ -2028,17 +2028,17 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2028
2028
|
emits: ["change"],
|
|
2029
2029
|
setup(e, { emit: t }) {
|
|
2030
2030
|
const a = ["nameField", "classField", "scoreField"];
|
|
2031
|
-
return (l,
|
|
2032
|
-
(
|
|
2033
|
-
key:
|
|
2031
|
+
return (l, i) => (r(), u("ul", ya, [
|
|
2032
|
+
(r(), u(P, null, Z(a, (n) => f("li", {
|
|
2033
|
+
key: n,
|
|
2034
2034
|
class: "flex flex-1"
|
|
2035
2035
|
}, [
|
|
2036
2036
|
X(et, {
|
|
2037
|
-
value: l.extent[
|
|
2037
|
+
value: l.extent[n],
|
|
2038
2038
|
class: "px-0",
|
|
2039
2039
|
placeholder: "",
|
|
2040
2040
|
autoLine: "",
|
|
2041
|
-
onChange: (o) => t("change", { [
|
|
2041
|
+
onChange: (o) => t("change", { [n]: o })
|
|
2042
2042
|
}, null, 8, ["value", "onChange"])
|
|
2043
2043
|
])), 64))
|
|
2044
2044
|
]));
|
|
@@ -2058,24 +2058,24 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2058
2058
|
emits: ["change"],
|
|
2059
2059
|
setup(e, { emit: t }) {
|
|
2060
2060
|
const a = e, l = A(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
|
|
2061
|
-
return (
|
|
2062
|
-
l.value ? (
|
|
2063
|
-
|
|
2061
|
+
return (i, n) => i.isBindFlag ? M("", !0) : (r(), u("div", ga, [
|
|
2062
|
+
l.value ? (r(), u(P, { key: 0 }, [
|
|
2063
|
+
i.layout.seatType === x(xe).none ? (r(), V(vt, {
|
|
2064
2064
|
key: 0,
|
|
2065
|
-
extent:
|
|
2066
|
-
onChange:
|
|
2067
|
-
}, null, 8, ["extent"])) :
|
|
2068
|
-
], 64)) :
|
|
2065
|
+
extent: i.info.extentInfo,
|
|
2066
|
+
onChange: n[0] || (n[0] = (o) => t("change", o))
|
|
2067
|
+
}, null, 8, ["extent"])) : i.layout.seatType === x(xe).seat ? (r(), V(wt, { key: 1 })) : i.layout.seatType === x(xe).shortId ? (r(), V(xt, { key: 2 })) : M("", !0)
|
|
2068
|
+
], 64)) : M("", !0),
|
|
2069
2069
|
X(_a, {
|
|
2070
|
-
extent:
|
|
2071
|
-
onChange:
|
|
2070
|
+
extent: i.info.extentInfo,
|
|
2071
|
+
onChange: n[1] || (n[1] = (o) => t("change", o))
|
|
2072
2072
|
}, null, 8, ["extent"]),
|
|
2073
|
-
l.value ?
|
|
2074
|
-
|
|
2073
|
+
l.value ? M("", !0) : (r(), u(P, { key: 1 }, [
|
|
2074
|
+
i.layout.seatType === x(xe).none ? (r(), V(vt, {
|
|
2075
2075
|
key: 0,
|
|
2076
|
-
extent:
|
|
2077
|
-
onChange:
|
|
2078
|
-
}, null, 8, ["extent"])) :
|
|
2076
|
+
extent: i.info.extentInfo,
|
|
2077
|
+
onChange: n[2] || (n[2] = (o) => t("change", o))
|
|
2078
|
+
}, null, 8, ["extent"])) : i.layout.seatType === x(xe).seat ? (r(), V(wt, { key: 1 })) : i.layout.seatType === x(xe).shortId ? (r(), V(xt, { key: 2 })) : M("", !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",
|
|
@@ -2087,10 +2087,10 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
|
|
|
2087
2087
|
const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
|
|
2088
2088
|
key: 0,
|
|
2089
2089
|
class: "flex border mt-2 red_sheet"
|
|
2090
|
-
}, $a = /* @__PURE__ */ Ne(() => /* @__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__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Pa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)),
|
|
2090
|
+
}, $a = /* @__PURE__ */ Ne(() => /* @__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__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Pa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Da = [
|
|
2091
2091
|
Ea,
|
|
2092
2092
|
Pa
|
|
2093
|
-
],
|
|
2093
|
+
], Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2094
2094
|
/* @__PURE__ */ f("span", null, "正确填涂示例"),
|
|
2095
2095
|
/* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2096
2096
|
], -1)), Aa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ ee({
|
|
@@ -2113,17 +2113,17 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2113
2113
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2114
2114
|
];
|
|
2115
2115
|
});
|
|
2116
|
-
return (l,
|
|
2117
|
-
l.layout.noteFlag ? (
|
|
2116
|
+
return (l, i) => (r(), u(P, null, [
|
|
2117
|
+
l.layout.noteFlag ? (r(), u("div", Ca, [
|
|
2118
2118
|
$a,
|
|
2119
2119
|
f("div", Sa, [
|
|
2120
|
-
(
|
|
2121
|
-
key:
|
|
2120
|
+
(r(!0), u(P, null, Z(a.value, (n) => (r(), u("p", {
|
|
2121
|
+
key: n,
|
|
2122
2122
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2123
|
-
}, J(
|
|
2123
|
+
}, J(n), 1))), 128))
|
|
2124
2124
|
])
|
|
2125
|
-
])) :
|
|
2126
|
-
l.layout.lackFlag ? (
|
|
2125
|
+
])) : M("", !0),
|
|
2126
|
+
l.layout.lackFlag ? (r(), u("div", {
|
|
2127
2127
|
key: 1,
|
|
2128
2128
|
class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2129
2129
|
}, [
|
|
@@ -2134,29 +2134,29 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
|
|
|
2134
2134
|
f("span", {
|
|
2135
2135
|
class: "flex items-center leading-4",
|
|
2136
2136
|
"data-xine": x(k).lack
|
|
2137
|
-
},
|
|
2137
|
+
}, Da, 8, Fa)
|
|
2138
2138
|
])
|
|
2139
2139
|
]),
|
|
2140
|
-
|
|
2141
|
-
], 2)) :
|
|
2140
|
+
Ma
|
|
2141
|
+
], 2)) : M("", !0),
|
|
2142
2142
|
Aa
|
|
2143
2143
|
], 64));
|
|
2144
2144
|
}
|
|
2145
2145
|
});
|
|
2146
2146
|
const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", a = !0, l = "children") => {
|
|
2147
|
-
let
|
|
2148
|
-
const
|
|
2149
|
-
(o[l] || []).length ? (a &&
|
|
2147
|
+
let i = [];
|
|
2148
|
+
const n = (o) => {
|
|
2149
|
+
(o[l] || []).length ? (a && i.push(t ? o[t] : o[l]), o[l].forEach((s) => n(s))) : i.push(t ? o[t] : o);
|
|
2150
2150
|
};
|
|
2151
|
-
return e.forEach((o) =>
|
|
2151
|
+
return e.forEach((o) => n(o)), i.flat(5);
|
|
2152
2152
|
};
|
|
2153
|
-
function
|
|
2153
|
+
function Mt(e) {
|
|
2154
2154
|
if (e < 0 || e > 99)
|
|
2155
2155
|
throw Error("下标超限");
|
|
2156
2156
|
const t = "零一二三四五六七八九".split("");
|
|
2157
|
-
return [...Array(100)].map((l,
|
|
2158
|
-
const
|
|
2159
|
-
return
|
|
2157
|
+
return [...Array(100)].map((l, i) => {
|
|
2158
|
+
const n = Math.floor(i / t.length), o = i % t.length;
|
|
2159
|
+
return n ? `${n > 1 ? t[n] : ""}十${o ? t[o] : ""}` : t[o];
|
|
2160
2160
|
})[e + 1];
|
|
2161
2161
|
}
|
|
2162
2162
|
function Ct(e) {
|
|
@@ -2179,17 +2179,17 @@ const za = {
|
|
|
2179
2179
|
},
|
|
2180
2180
|
setup(e) {
|
|
2181
2181
|
const t = e, a = A(() => t.data.filter((l) => l.problemType));
|
|
2182
|
-
return (l,
|
|
2182
|
+
return (l, i) => l.layout.scoreFlag ? (r(), u("ul", za, [
|
|
2183
2183
|
Ha,
|
|
2184
|
-
(
|
|
2185
|
-
key:
|
|
2184
|
+
(r(!0), u(P, null, Z(a.value, (n, o) => (r(), u("li", {
|
|
2185
|
+
key: n.id,
|
|
2186
2186
|
class: "flex-1 flex flex-col border-l"
|
|
2187
2187
|
}, [
|
|
2188
|
-
f("p", Ra, J(x(
|
|
2188
|
+
f("p", Ra, J(x(Mt)(o)), 1),
|
|
2189
2189
|
Wa
|
|
2190
2190
|
]))), 128)),
|
|
2191
2191
|
Ga
|
|
2192
|
-
])) :
|
|
2192
|
+
])) : M("", !0);
|
|
2193
2193
|
}
|
|
2194
2194
|
}), qa = /* @__PURE__ */ ee({
|
|
2195
2195
|
__name: "columnDom",
|
|
@@ -2200,15 +2200,15 @@ const za = {
|
|
|
2200
2200
|
styleInfo: {}
|
|
2201
2201
|
},
|
|
2202
2202
|
setup(e, { expose: t }) {
|
|
2203
|
-
const a = e, l =
|
|
2204
|
-
t({ col: l, colView:
|
|
2205
|
-
const
|
|
2206
|
-
const { top:
|
|
2203
|
+
const a = e, l = q(), i = q();
|
|
2204
|
+
t({ col: l, colView: i });
|
|
2205
|
+
const n = A(() => {
|
|
2206
|
+
const { top: c, width: d, height: h, left: B } = a.styleInfo;
|
|
2207
2207
|
return {
|
|
2208
|
-
top: `${parseFloat(
|
|
2209
|
-
left: `${parseFloat(
|
|
2208
|
+
top: `${parseFloat(c) - (a.currentColumn ? $e.top : 1)}px`,
|
|
2209
|
+
left: `${parseFloat(B) - $e.left}px`,
|
|
2210
2210
|
width: `${parseFloat(d) + $e.left + $e.right}px`,
|
|
2211
|
-
height: `${parseFloat(
|
|
2211
|
+
height: `${parseFloat(h) + (a.currentColumn ? $e.top : 0) + $e.bottom}px`
|
|
2212
2212
|
};
|
|
2213
2213
|
}), o = A(() => ({
|
|
2214
2214
|
left: `${$e.left - 1}px`,
|
|
@@ -2216,30 +2216,30 @@ const za = {
|
|
|
2216
2216
|
bottom: `${$e.bottom - 1}px`,
|
|
2217
2217
|
right: `${$e.right - 1}px`
|
|
2218
2218
|
})), s = A(() => a.column < 3 || a.currentColumn % 3 === 1);
|
|
2219
|
-
return (
|
|
2220
|
-
|
|
2219
|
+
return (c, d) => (r(), u(P, null, [
|
|
2220
|
+
c.showColBorder ? (r(), u("div", {
|
|
2221
2221
|
key: 0,
|
|
2222
2222
|
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
|
|
2223
|
-
style:
|
|
2223
|
+
style: Q(n.value)
|
|
2224
2224
|
}, [
|
|
2225
2225
|
f("span", {
|
|
2226
2226
|
class: "absolute border border-black",
|
|
2227
|
-
style:
|
|
2227
|
+
style: Q(o.value)
|
|
2228
2228
|
}, null, 4)
|
|
2229
|
-
], 6)) :
|
|
2229
|
+
], 6)) : M("", !0),
|
|
2230
2230
|
f("div", {
|
|
2231
2231
|
class: "absolute overflow-hidden",
|
|
2232
2232
|
ref_key: "colView",
|
|
2233
|
-
ref:
|
|
2234
|
-
style:
|
|
2233
|
+
ref: i,
|
|
2234
|
+
style: Q(c.styleInfo)
|
|
2235
2235
|
}, [
|
|
2236
2236
|
f("div", {
|
|
2237
2237
|
ref_key: "col",
|
|
2238
2238
|
ref: l,
|
|
2239
2239
|
class: "overflow-hidden __col__",
|
|
2240
|
-
style:
|
|
2240
|
+
style: Q({ height: c.styleInfo.contentHeight })
|
|
2241
2241
|
}, [
|
|
2242
|
-
|
|
2242
|
+
rt(c.$slots, "default", {}, void 0, !0)
|
|
2243
2243
|
], 4)
|
|
2244
2244
|
], 4)
|
|
2245
2245
|
], 64));
|
|
@@ -2256,28 +2256,28 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
|
|
|
2256
2256
|
isBindFlag: { type: Boolean }
|
|
2257
2257
|
},
|
|
2258
2258
|
setup(e) {
|
|
2259
|
-
const t =
|
|
2260
|
-
return (l,
|
|
2259
|
+
const t = q(), a = ["学校", "班级", "准考证号", "姓名"];
|
|
2260
|
+
return (l, i) => l.isBindFlag ? (r(), u("div", {
|
|
2261
2261
|
key: 0,
|
|
2262
|
-
style:
|
|
2262
|
+
style: Q({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
|
|
2263
2263
|
class: oe([l.currentPage % 2 && "right_view"]),
|
|
2264
2264
|
ref_key: "view",
|
|
2265
2265
|
ref: t
|
|
2266
2266
|
}, [
|
|
2267
|
-
l.currentPage % 2 ? (
|
|
2267
|
+
l.currentPage % 2 ? (r(), u("div", {
|
|
2268
2268
|
key: 0,
|
|
2269
2269
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2270
|
-
style:
|
|
2271
|
-
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (
|
|
2270
|
+
style: Q({ width: `${l.height - 20}px`, height: `${l.width}px` })
|
|
2271
|
+
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), u("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: Q({ width: `${l.height - 20}px` })
|
|
2275
2275
|
}, [
|
|
2276
|
-
(
|
|
2277
|
-
key:
|
|
2276
|
+
(r(), u(P, null, Z(a, (n) => f("p", {
|
|
2277
|
+
key: n,
|
|
2278
2278
|
class: "flex items-end flex-1 mr-4"
|
|
2279
2279
|
}, [
|
|
2280
|
-
f("span", null, J(
|
|
2280
|
+
f("span", null, J(n), 1),
|
|
2281
2281
|
Ua
|
|
2282
2282
|
])), 64)),
|
|
2283
2283
|
f("div", {
|
|
@@ -2288,10 +2288,10 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
|
|
|
2288
2288
|
"data-xine": x(k).bind_line
|
|
2289
2289
|
}, null, 8, Xa)
|
|
2290
2290
|
], 4))
|
|
2291
|
-
], 6)) :
|
|
2291
|
+
], 6)) : M("", !0);
|
|
2292
2292
|
}
|
|
2293
2293
|
});
|
|
2294
|
-
const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw",
|
|
2294
|
+
const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ht = "MC5yYjk3NGY2OTcyOA", pt = "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__ */ ee({
|
|
2295
2295
|
__name: "simple",
|
|
2296
2296
|
props: {
|
|
2297
2297
|
item: {},
|
|
@@ -2299,10 +2299,10 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2299
2299
|
},
|
|
2300
2300
|
setup(e) {
|
|
2301
2301
|
const t = e, a = ["right", "half_right", "wrong"], l = A(() => {
|
|
2302
|
-
const
|
|
2303
|
-
return [
|
|
2302
|
+
const i = t.item.score;
|
|
2303
|
+
return [i, Math.round(i / 2 * 100) / 100, 0];
|
|
2304
2304
|
});
|
|
2305
|
-
return (
|
|
2305
|
+
return (i, n) => (r(), u("div", {
|
|
2306
2306
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2307
2307
|
"data-block": x(ke),
|
|
2308
2308
|
"data-xine": x(k).score
|
|
@@ -2311,9 +2311,9 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2311
2311
|
class: "flex h-full divide-x divide-solid",
|
|
2312
2312
|
"data-xine": x(k).score_base
|
|
2313
2313
|
}, [
|
|
2314
|
-
(
|
|
2314
|
+
(r(!0), u(P, null, Z(l.value, (o, s) => (r(), u("li", {
|
|
2315
2315
|
class: "flex items-center justify-center relative score_line",
|
|
2316
|
-
style:
|
|
2316
|
+
style: Q({ width: `${x(Ke)[i.layout.scoreLineSize].value}px` }),
|
|
2317
2317
|
"data-xine": x(k).score_item
|
|
2318
2318
|
}, [
|
|
2319
2319
|
f("span", il, J(o), 1),
|
|
@@ -2333,30 +2333,30 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2333
2333
|
static: { type: Boolean }
|
|
2334
2334
|
},
|
|
2335
2335
|
setup(e) {
|
|
2336
|
-
const t = e, a =
|
|
2337
|
-
|
|
2338
|
-
|
|
2336
|
+
const t = e, a = q(), l = q(!1), i = q(!1), n = q(!1), o = q([]), s = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2337
|
+
Me(() => [t.item.score], () => c()), Xe(() => {
|
|
2338
|
+
c();
|
|
2339
2339
|
});
|
|
2340
|
-
const
|
|
2340
|
+
const c = () => {
|
|
2341
2341
|
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
|
|
2342
|
-
let
|
|
2342
|
+
let h = [];
|
|
2343
2343
|
if (t.item.scoreLineType === je.custom)
|
|
2344
|
-
|
|
2344
|
+
h = [[...t.item.customScore, 0]];
|
|
2345
2345
|
else if (t.item.scoreStep)
|
|
2346
|
-
|
|
2346
|
+
h.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((B) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * B)).reverse());
|
|
2347
2347
|
else {
|
|
2348
|
-
const
|
|
2349
|
-
l.value =
|
|
2348
|
+
const B = a.value.offsetWidth, p = Ke[t.layout.scoreLineSize].value + 1;
|
|
2349
|
+
l.value = B - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (h.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), h.push([...Array(10).keys()].reverse()), n.value = !0) : h.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2350
2350
|
}
|
|
2351
|
-
t.item.hasHalfScore &&
|
|
2351
|
+
t.item.hasHalfScore && h.push([0.5]), o.value = h, i.value = !!h.flat().find((B) => `${B}`.length > 3);
|
|
2352
2352
|
});
|
|
2353
|
-
}, d = (
|
|
2354
|
-
return (
|
|
2355
|
-
|
|
2353
|
+
}, d = (h) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - h - 1] : [k.score_base, k.score_tenbit][o.value.length - h - 1];
|
|
2354
|
+
return (h, B) => h.layout.handReadFlag ? (r(), u(P, { key: 0 }, [
|
|
2355
|
+
h.layout.simpleScoreBarFlag && !h.static ? (r(), V(rl, {
|
|
2356
2356
|
key: 0,
|
|
2357
|
-
item:
|
|
2358
|
-
layout:
|
|
2359
|
-
}, null, 8, ["item", "layout"])) : (
|
|
2357
|
+
item: h.item,
|
|
2358
|
+
layout: h.layout
|
|
2359
|
+
}, null, 8, ["item", "layout"])) : (r(), u("div", {
|
|
2360
2360
|
key: 1,
|
|
2361
2361
|
ref_key: "view",
|
|
2362
2362
|
ref: a,
|
|
@@ -2364,28 +2364,28 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2364
2364
|
"data-block": x(ke),
|
|
2365
2365
|
"data-xine": x(k).score
|
|
2366
2366
|
}, [
|
|
2367
|
-
(
|
|
2367
|
+
(r(!0), u(P, null, Z(o.value, (p, F) => (r(), u("ul", {
|
|
2368
2368
|
class: "flex divide-x divide-solid",
|
|
2369
2369
|
"data-xine": d(F)
|
|
2370
2370
|
}, [
|
|
2371
|
-
(
|
|
2371
|
+
(r(!0), u(P, null, Z(p, (O) => (r(), u("li", {
|
|
2372
2372
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2373
|
-
style:
|
|
2374
|
-
"data-xine":
|
|
2373
|
+
style: Q({ width: `${x(Ke)[h.layout.scoreLineSize].value}px` }),
|
|
2374
|
+
"data-xine": O.toString() ? x(k).score_item : ""
|
|
2375
2375
|
}, [
|
|
2376
2376
|
f("span", {
|
|
2377
|
-
class: oe(["whitespace-nowrap", s.value && "origin-right",
|
|
2378
|
-
}, J(
|
|
2379
|
-
s.value &&
|
|
2377
|
+
class: oe(["whitespace-nowrap", s.value && "origin-right", i.value && "scale-75"])
|
|
2378
|
+
}, J(h.layout.minusFlag && O.toString().length && !s.value ? "-" : "") + J(O), 3),
|
|
2379
|
+
s.value && O.toString().length ? (r(), V(_e, {
|
|
2380
2380
|
key: 0,
|
|
2381
2381
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2382
|
-
name:
|
|
2383
|
-
width:
|
|
2384
|
-
}, null, 8, ["name", "width"])) :
|
|
2382
|
+
name: h.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2383
|
+
width: i.value ? 0.9 : 1.2
|
|
2384
|
+
}, null, 8, ["name", "width"])) : M("", !0)
|
|
2385
2385
|
], 12, ul))), 256))
|
|
2386
2386
|
], 8, dl))), 256))
|
|
2387
2387
|
], 10, cl))
|
|
2388
|
-
], 64)) :
|
|
2388
|
+
], 64)) : M("", !0);
|
|
2389
2389
|
}
|
|
2390
2390
|
}), Nt = (e) => (He("data-v-a8dbd3b0"), e = e(), Re(), e), hl = ["data-xine"], pl = /* @__PURE__ */ Nt(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ Nt(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ ee({
|
|
2391
2391
|
__name: "writeScore",
|
|
@@ -2394,7 +2394,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
|
|
|
2394
2394
|
layout: {}
|
|
2395
2395
|
},
|
|
2396
2396
|
setup(e) {
|
|
2397
|
-
return (t, a) => (
|
|
2397
|
+
return (t, a) => (r(), u("div", {
|
|
2398
2398
|
class: "flex items-center mb-2",
|
|
2399
2399
|
"data-xine": x(k).write_view
|
|
2400
2400
|
}, [
|
|
@@ -2415,7 +2415,7 @@ const _l = /* @__PURE__ */ de(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
|
|
|
2415
2415
|
},
|
|
2416
2416
|
setup(e) {
|
|
2417
2417
|
const t = e;
|
|
2418
|
-
return (a, l) => (
|
|
2418
|
+
return (a, l) => (r(), u("div", {
|
|
2419
2419
|
innerHTML: t.data,
|
|
2420
2420
|
class: "base-problem-font problem-base"
|
|
2421
2421
|
}, null, 8, fl));
|
|
@@ -2427,10 +2427,10 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2427
2427
|
item: {}
|
|
2428
2428
|
},
|
|
2429
2429
|
setup(e) {
|
|
2430
|
-
return (t, a) => (
|
|
2430
|
+
return (t, a) => (r(), u("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(ht)
|
|
2434
2434
|
}, [
|
|
2435
2435
|
X(Ae, {
|
|
2436
2436
|
"data-content": t.item.id,
|
|
@@ -2444,7 +2444,7 @@ const Ae = /* @__PURE__ */ de(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__ */ f("span", null, "我选答的题目是:", -1)), Pl = { class: "flex items-center" },
|
|
2447
|
+
}, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), Pl = { class: "flex items-center" }, Dl = ["data-xine"], Ml = /* @__PURE__ */ ee({
|
|
2448
2448
|
__name: "index",
|
|
2449
2449
|
props: {
|
|
2450
2450
|
item: {},
|
|
@@ -2455,50 +2455,50 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
|
|
|
2455
2455
|
},
|
|
2456
2456
|
emits: ["click", "dbclick"],
|
|
2457
2457
|
setup(e, { emit: t }) {
|
|
2458
|
-
const a = e, l = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null),
|
|
2459
|
-
return (s,
|
|
2458
|
+
const a = e, l = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), i = A(() => [ve.another_choice].includes(a.item.problemType)), n = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = A(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((c) => c.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
|
|
2459
|
+
return (s, c) => s.item.problemType ? (r(), u("div", {
|
|
2460
2460
|
key: 1,
|
|
2461
2461
|
class: oe(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view"]),
|
|
2462
|
-
onClick:
|
|
2462
|
+
onClick: c[2] || (c[2] = Le((d) => t("click", s.item), ["stop"])),
|
|
2463
2463
|
"data-tag": s.item.__tag__,
|
|
2464
2464
|
"data-block": x(ke),
|
|
2465
|
-
onDblclick:
|
|
2465
|
+
onDblclick: c[3] || (c[3] = Le((d) => t("dbclick", s.item), ["stop"]))
|
|
2466
2466
|
}, [
|
|
2467
|
-
!s.layout.listIndexFlag && s.item.sub ? (
|
|
2467
|
+
!s.layout.listIndexFlag && s.item.sub ? (r(), u("span", kl, J(x(Mt)(s.item.sub - 1)) + "、", 1)) : M("", !0),
|
|
2468
2468
|
f("div", null, [
|
|
2469
2469
|
f("div", Cl, [
|
|
2470
2470
|
f("span", null, J(s.item.name), 1),
|
|
2471
|
-
s.item.desc ? (
|
|
2472
|
-
s.layout.scoreTipFlag ? (
|
|
2471
|
+
s.item.desc ? (r(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : M("", !0),
|
|
2472
|
+
s.layout.scoreTipFlag ? (r(), u("span", Sl, "(共" + J(n.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : M("", !0)
|
|
2473
2473
|
]),
|
|
2474
|
-
l.value ||
|
|
2475
|
-
l.value ? (
|
|
2474
|
+
l.value || i.value ? (r(), u("div", Tl, [
|
|
2475
|
+
l.value ? (r(), u("p", Il, "请在以下" + J(s.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), u("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2476
2476
|
f("p", {
|
|
2477
2477
|
class: "flex flex-wrap",
|
|
2478
2478
|
"data-block": x(ke),
|
|
2479
2479
|
"data-xine": x(k).choice + s.item.id
|
|
2480
2480
|
}, [
|
|
2481
2481
|
El,
|
|
2482
|
-
(
|
|
2482
|
+
(r(!0), u(P, null, Z(o.value, (d, h) => (r(), u("span", Pl, [
|
|
2483
2483
|
f("span", null, J(d), 1),
|
|
2484
2484
|
f("span", {
|
|
2485
2485
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2486
2486
|
"data-xine": x(k).fill
|
|
2487
|
-
}, null, 8,
|
|
2487
|
+
}, null, 8, Dl)
|
|
2488
2488
|
]))), 256))
|
|
2489
2489
|
], 8, Fl)
|
|
2490
|
-
])) :
|
|
2490
|
+
])) : M("", !0)
|
|
2491
2491
|
])
|
|
2492
|
-
], 42, xl)) : (
|
|
2492
|
+
], 42, xl)) : (r(), V(vl, {
|
|
2493
2493
|
key: 0,
|
|
2494
2494
|
class: oe([s.isActive && "border-current", s.isFirst && "mt-9"]),
|
|
2495
2495
|
item: s.item,
|
|
2496
|
-
onClick:
|
|
2497
|
-
onDblclick:
|
|
2496
|
+
onClick: c[0] || (c[0] = Le((d) => t("click", s.item), ["stop"])),
|
|
2497
|
+
onDblclick: c[1] || (c[1] = Le((d) => t("dbclick", s.item), ["stop"]))
|
|
2498
2498
|
}, null, 8, ["class", "item"]));
|
|
2499
2499
|
}
|
|
2500
2500
|
});
|
|
2501
|
-
const St = /* @__PURE__ */ de(
|
|
2501
|
+
const St = /* @__PURE__ */ de(Ml, [["__scopeId", "data-v-257ae24a"]]), Al = {};
|
|
2502
2502
|
function Nl(e, t) {
|
|
2503
2503
|
return null;
|
|
2504
2504
|
}
|
|
@@ -2509,18 +2509,18 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
|
|
|
2509
2509
|
layout: {}
|
|
2510
2510
|
},
|
|
2511
2511
|
setup(e) {
|
|
2512
|
-
return (t, a) => (
|
|
2512
|
+
return (t, a) => (r(), u("div", {
|
|
2513
2513
|
class: "flex items-center red_sheet",
|
|
2514
2514
|
"data-block": x(ke)
|
|
2515
2515
|
}, [
|
|
2516
|
-
(
|
|
2517
|
-
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[
|
|
2518
|
-
style:
|
|
2519
|
-
"data-xine": x(k).fill +
|
|
2516
|
+
(r(!0), u(P, null, Z(t.item.optList, (l, i) => (r(), u("span", {
|
|
2517
|
+
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[i]) && "bg-success border-success"]),
|
|
2518
|
+
style: Q({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
|
|
2519
|
+
"data-xine": x(k).fill + i
|
|
2520
2520
|
}, [
|
|
2521
2521
|
X(_e, {
|
|
2522
2522
|
width: 1,
|
|
2523
|
-
name: x(kt)[
|
|
2523
|
+
name: x(kt)[i]
|
|
2524
2524
|
}, null, 8, ["name"])
|
|
2525
2525
|
], 14, zl))), 256))
|
|
2526
2526
|
], 8, Ol));
|
|
@@ -2544,14 +2544,14 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2544
2544
|
width: `${Ie[t.layout.fillSize].value + 1}px`,
|
|
2545
2545
|
height: `${Ie[t.layout.fillSize].height + 1}px`
|
|
2546
2546
|
}));
|
|
2547
|
-
return (l,
|
|
2547
|
+
return (l, i) => (r(), u("div", {
|
|
2548
2548
|
class: "flex red_sheet",
|
|
2549
2549
|
"data-block": x(ke)
|
|
2550
2550
|
}, [
|
|
2551
|
-
l.item.style[x(y)[l.layout.mode].decide_a] === x(L).decide_1 ? (
|
|
2551
|
+
l.item.style[x(y)[l.layout.mode].decide_a] === x(L).decide_1 ? (r(), u(P, { key: 0 }, [
|
|
2552
2552
|
f("span", {
|
|
2553
2553
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2554
|
-
style:
|
|
2554
|
+
style: Q(a.value),
|
|
2555
2555
|
"data-xine": x(k).fill + "0"
|
|
2556
2556
|
}, [
|
|
2557
2557
|
X(_e, {
|
|
@@ -2561,7 +2561,7 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2561
2561
|
], 14, ql),
|
|
2562
2562
|
f("span", {
|
|
2563
2563
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2564
|
-
style:
|
|
2564
|
+
style: Q(a.value),
|
|
2565
2565
|
"data-xine": x(k).fill + "1"
|
|
2566
2566
|
}, [
|
|
2567
2567
|
X(_e, {
|
|
@@ -2569,15 +2569,15 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
|
|
|
2569
2569
|
width: 1
|
|
2570
2570
|
})
|
|
2571
2571
|
], 14, Ql)
|
|
2572
|
-
], 64)) : (
|
|
2572
|
+
], 64)) : (r(), u(P, { key: 1 }, [
|
|
2573
2573
|
f("span", {
|
|
2574
2574
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2575
|
-
style:
|
|
2575
|
+
style: Q(a.value),
|
|
2576
2576
|
"data-xine": x(k).fill + "0"
|
|
2577
2577
|
}, Kl, 14, Ul),
|
|
2578
2578
|
f("span", {
|
|
2579
2579
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2580
|
-
style:
|
|
2580
|
+
style: Q(a.value),
|
|
2581
2581
|
"data-xine": x(k).fill + "1"
|
|
2582
2582
|
}, Jl, 14, Vl)
|
|
2583
2583
|
], 64))
|
|
@@ -2599,22 +2599,22 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2599
2599
|
},
|
|
2600
2600
|
setup(e) {
|
|
2601
2601
|
const t = e, a = A(() => t.layout.scoreAddStars === Ze.star.code);
|
|
2602
|
-
return (l,
|
|
2602
|
+
return (l, i) => l.layout.handReadFlag ? (r(), u("div", {
|
|
2603
2603
|
key: 0,
|
|
2604
2604
|
class: "score_fill flex items-center",
|
|
2605
2605
|
"data-block": x(ke),
|
|
2606
2606
|
"data-xine": x(k).fill
|
|
2607
2607
|
}, [
|
|
2608
|
-
l.showScoreCn ? (
|
|
2608
|
+
l.showScoreCn ? (r(), u("span", ln, [
|
|
2609
2609
|
f("span", null, J(l.layout.minusFlag && !a.value ? "-" : "") + J(l.item.score), 1),
|
|
2610
|
-
a.value ? (
|
|
2610
|
+
a.value ? (r(), V(_e, {
|
|
2611
2611
|
key: 0,
|
|
2612
2612
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2613
2613
|
name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2614
2614
|
width: 1.2
|
|
2615
|
-
}, null, 8, ["name"])) : (
|
|
2616
|
-
])) :
|
|
2617
|
-
], 8, an)) :
|
|
2615
|
+
}, null, 8, ["name"])) : (r(), u("span", nn, "分"))
|
|
2616
|
+
])) : M("", !0)
|
|
2617
|
+
], 8, an)) : M("", !0);
|
|
2618
2618
|
}
|
|
2619
2619
|
}), rn = ["data-xine"], cn = /* @__PURE__ */ ee({
|
|
2620
2620
|
__name: "sheet",
|
|
@@ -2624,18 +2624,18 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
|
|
|
2624
2624
|
},
|
|
2625
2625
|
setup(e) {
|
|
2626
2626
|
const t = e;
|
|
2627
|
-
return (a, l) => (
|
|
2627
|
+
return (a, l) => (r(), u(P, null, [
|
|
2628
2628
|
f("div", {
|
|
2629
2629
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2630
|
-
style:
|
|
2630
|
+
style: Q({ height: `${20 + a.item.style[x(y)[t.layout.mode].fill_e]}px` }),
|
|
2631
2631
|
"data-xine": x(k).fill_line
|
|
2632
2632
|
}, null, 12, rn),
|
|
2633
|
-
a.layout.handReadFlag ? (
|
|
2633
|
+
a.layout.handReadFlag ? (r(), V(sn, {
|
|
2634
2634
|
key: 0,
|
|
2635
2635
|
item: a.item,
|
|
2636
2636
|
layout: a.layout,
|
|
2637
2637
|
showScoreCn: a.layout.fillScoreFlag
|
|
2638
|
-
}, null, 8, ["item", "layout", "showScoreCn"])) :
|
|
2638
|
+
}, null, 8, ["item", "layout", "showScoreCn"])) : M("", !0)
|
|
2639
2639
|
], 64));
|
|
2640
2640
|
}
|
|
2641
2641
|
}), dn = {};
|
|
@@ -2650,15 +2650,15 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
|
|
|
2650
2650
|
isFirst: { type: Boolean }
|
|
2651
2651
|
},
|
|
2652
2652
|
setup(e) {
|
|
2653
|
-
return (t, a) => (
|
|
2653
|
+
return (t, a) => (r(), u("div", {
|
|
2654
2654
|
class: oe(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
|
|
2655
2655
|
}, [
|
|
2656
|
-
t.item.chunk ?
|
|
2656
|
+
t.item.chunk ? M("", !0) : (r(), u("div", {
|
|
2657
2657
|
key: 0,
|
|
2658
2658
|
class: "flex items-center",
|
|
2659
2659
|
"data-block": x(ke)
|
|
2660
2660
|
}, [
|
|
2661
|
-
|
|
2661
|
+
rt(t.$slots, "default"),
|
|
2662
2662
|
f("div", mn, [
|
|
2663
2663
|
X(tt, {
|
|
2664
2664
|
item: t.item,
|
|
@@ -2683,7 +2683,7 @@ const gn = /* @__PURE__ */ de(_n, [["render", fn]]), bn = /* @__PURE__ */ f("div
|
|
|
2683
2683
|
layout: {}
|
|
2684
2684
|
},
|
|
2685
2685
|
setup(e) {
|
|
2686
|
-
return (t, a) => (
|
|
2686
|
+
return (t, a) => (r(), u(P, null, [
|
|
2687
2687
|
bn,
|
|
2688
2688
|
X(tt, {
|
|
2689
2689
|
item: t.item,
|
|
@@ -2707,100 +2707,100 @@ const Ln = /* @__PURE__ */ de(Tn, [["render", In]]), Fn = {};
|
|
|
2707
2707
|
function En(e, t) {
|
|
2708
2708
|
return null;
|
|
2709
2709
|
}
|
|
2710
|
-
const Pn = /* @__PURE__ */ de(Fn, [["render", En]]),
|
|
2711
|
-
function
|
|
2710
|
+
const Pn = /* @__PURE__ */ de(Fn, [["render", En]]), Dn = {};
|
|
2711
|
+
function Mn(e, t) {
|
|
2712
2712
|
return null;
|
|
2713
2713
|
}
|
|
2714
|
-
const An = /* @__PURE__ */ de(
|
|
2714
|
+
const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), 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__ */ ee({
|
|
2715
2715
|
__name: "sheet",
|
|
2716
2716
|
props: {
|
|
2717
2717
|
item: {},
|
|
2718
2718
|
layout: {}
|
|
2719
2719
|
},
|
|
2720
2720
|
setup(e) {
|
|
2721
|
-
const t = e, a =
|
|
2722
|
-
const
|
|
2723
|
-
return
|
|
2724
|
-
}),
|
|
2725
|
-
width: `${a.value *
|
|
2726
|
-
height: `${
|
|
2727
|
-
})),
|
|
2728
|
-
width: `${
|
|
2729
|
-
})),
|
|
2721
|
+
const t = e, a = q(0), l = q({}), i = q(), n = q(), o = q([]), s = A(() => {
|
|
2722
|
+
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, B.value.length, 0);
|
|
2723
|
+
return p ? Math.ceil(p / (a.value || p)) : 0;
|
|
2724
|
+
}), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = A(() => ({
|
|
2725
|
+
width: `${a.value * c.value}px`,
|
|
2726
|
+
height: `${c.value}px`
|
|
2727
|
+
})), h = A(() => ({
|
|
2728
|
+
width: `${c.value}px`
|
|
2729
|
+
})), B = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
2730
2730
|
return Xe(() => {
|
|
2731
2731
|
Je(() => {
|
|
2732
|
-
a.value = Math.floor(
|
|
2733
|
-
if (!
|
|
2732
|
+
a.value = Math.floor(i.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
2733
|
+
if (!i.value)
|
|
2734
2734
|
return;
|
|
2735
|
-
const
|
|
2735
|
+
const T = i.value.getBoundingClientRect(), z = n.value[0].getBoundingClientRect();
|
|
2736
2736
|
l.value = {
|
|
2737
|
-
left: `${z.left -
|
|
2738
|
-
top: `${z.top -
|
|
2737
|
+
left: `${z.left - T.left}px`,
|
|
2738
|
+
top: `${z.top - T.top}px`
|
|
2739
2739
|
};
|
|
2740
2740
|
}, 20);
|
|
2741
2741
|
});
|
|
2742
|
-
const
|
|
2743
|
-
o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1,
|
|
2744
|
-
}), (
|
|
2742
|
+
const p = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], O = Math.floor(p / F), j = Math.round(O / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
|
|
2743
|
+
o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, O) - 1 || 0).keys()].map((T) => (T + 1) * j).concat(p / F < 2 ? F : p).filter((T) => T);
|
|
2744
|
+
}), (p, F) => (r(), u("div", {
|
|
2745
2745
|
class: "w-full relative min-h-[10rem]",
|
|
2746
2746
|
ref_key: "view",
|
|
2747
|
-
ref:
|
|
2748
|
-
"data-viewid":
|
|
2747
|
+
ref: i,
|
|
2748
|
+
"data-viewid": p.item.id
|
|
2749
2749
|
}, [
|
|
2750
|
-
|
|
2750
|
+
p.item.chunk ? M("", !0) : (r(), u("div", {
|
|
2751
2751
|
key: 0,
|
|
2752
2752
|
class: "flex items-center mt-1 mb-4",
|
|
2753
2753
|
"data-block": x(ke)
|
|
2754
2754
|
}, [
|
|
2755
|
-
|
|
2755
|
+
rt(p.$slots, "default"),
|
|
2756
2756
|
f("div", On, [
|
|
2757
2757
|
X(tt, {
|
|
2758
|
-
item:
|
|
2759
|
-
layout:
|
|
2758
|
+
item: p.item,
|
|
2759
|
+
layout: p.layout
|
|
2760
2760
|
}, null, 8, ["item", "layout"])
|
|
2761
2761
|
])
|
|
2762
2762
|
], 8, Bn)),
|
|
2763
|
-
|
|
2763
|
+
p.item.beforeArt && !p.item.startAnswerLen ? (r(), V(Ae, {
|
|
2764
2764
|
key: 1,
|
|
2765
|
-
data:
|
|
2766
|
-
"data-bart":
|
|
2765
|
+
data: p.item.beforeArt,
|
|
2766
|
+
"data-bart": p.item.id,
|
|
2767
2767
|
class: "indent-[2em]"
|
|
2768
|
-
}, null, 8, ["data", "data-bart"])) :
|
|
2769
|
-
|
|
2768
|
+
}, null, 8, ["data", "data-bart"])) : M("", !0),
|
|
2769
|
+
p.item.beforeGuide && !p.item.artBlock ? (r(), u("p", {
|
|
2770
2770
|
key: 2,
|
|
2771
2771
|
"data-block": x(Ee),
|
|
2772
|
-
"data-guide":
|
|
2773
|
-
class: oe(["absolute", !
|
|
2774
|
-
style:
|
|
2775
|
-
}, J(
|
|
2776
|
-
(
|
|
2772
|
+
"data-guide": p.item.id,
|
|
2773
|
+
class: oe(["absolute", !p.item.startAnswerLen && "indent-[2em]"]),
|
|
2774
|
+
style: Q({ ...l.value, width: d.value.width, lineHeight: `${c.value + 7}px` })
|
|
2775
|
+
}, J(p.item.beforeGuide), 15, zn)) : M("", !0),
|
|
2776
|
+
(r(!0), u(P, null, Z(s.value, (O, j) => (r(), u("p", {
|
|
2777
2777
|
ref_for: !0,
|
|
2778
2778
|
ref_key: "line",
|
|
2779
|
-
ref:
|
|
2780
|
-
class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet",
|
|
2779
|
+
ref: n,
|
|
2780
|
+
class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet", p.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
|
|
2781
2781
|
"data-block": x(ke),
|
|
2782
|
-
"data-size":
|
|
2783
|
-
style:
|
|
2782
|
+
"data-size": p.item.startAnswerLen + (j + 1) * a.value,
|
|
2783
|
+
style: Q(d.value)
|
|
2784
2784
|
}, [
|
|
2785
|
-
|
|
2786
|
-
class: oe([
|
|
2787
|
-
style:
|
|
2788
|
-
}, J(
|
|
2789
|
-
(
|
|
2790
|
-
|
|
2785
|
+
p.item.artBlock ? (r(!0), u(P, { key: 0 }, Z(a.value, (T, z) => (r(), u("span", {
|
|
2786
|
+
class: oe([B.value[j * a.value + z] && "flex items-center justify-center"]),
|
|
2787
|
+
style: Q(h.value)
|
|
2788
|
+
}, J(B.value[j * a.value + z]), 7))), 256)) : M("", !0),
|
|
2789
|
+
(r(!0), u(P, null, Z(o.value, (T) => (r(), u(P, null, [
|
|
2790
|
+
p.item.startAnswerLen + j * a.value < T && p.item.startAnswerLen + (j + 1) * a.value >= T ? (r(), u("span", {
|
|
2791
2791
|
key: 0,
|
|
2792
2792
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
2793
|
-
style:
|
|
2793
|
+
style: Q({ left: `${(T - p.item.startAnswerLen) % a.value * c.value}px` }),
|
|
2794
2794
|
"data-block": x(Ee)
|
|
2795
|
-
}, J(
|
|
2795
|
+
}, J(T), 13, Rn)) : M("", !0)
|
|
2796
2796
|
], 64))), 256))
|
|
2797
2797
|
], 14, Hn))), 256)),
|
|
2798
|
-
|
|
2798
|
+
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), V(Ae, {
|
|
2799
2799
|
key: 3,
|
|
2800
|
-
data:
|
|
2801
|
-
"data-aart":
|
|
2800
|
+
data: p.item.afterArt,
|
|
2801
|
+
"data-aart": p.item.id,
|
|
2802
2802
|
class: "mt-2 indent-[2em]"
|
|
2803
|
-
}, null, 8, ["data", "data-aart"])) :
|
|
2803
|
+
}, null, 8, ["data", "data-aart"])) : M("", !0)
|
|
2804
2804
|
], 8, Nn));
|
|
2805
2805
|
}
|
|
2806
2806
|
}), Gn = ["data-block"], Yn = /* @__PURE__ */ ee({
|
|
@@ -2811,9 +2811,9 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2811
2811
|
},
|
|
2812
2812
|
emits: ["change"],
|
|
2813
2813
|
setup(e, { emit: t }) {
|
|
2814
|
-
return (a, l) => (
|
|
2814
|
+
return (a, l) => (r(), u("div", {
|
|
2815
2815
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
2816
|
-
"data-block": x(
|
|
2816
|
+
"data-block": x(ht)
|
|
2817
2817
|
}, [
|
|
2818
2818
|
X(Ae, {
|
|
2819
2819
|
"data-content": a.item.id,
|
|
@@ -2832,17 +2832,17 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2832
2832
|
width: {}
|
|
2833
2833
|
},
|
|
2834
2834
|
setup(e) {
|
|
2835
|
-
const t = e, a = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((
|
|
2836
|
-
return (
|
|
2837
|
-
class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]",
|
|
2838
|
-
style:
|
|
2835
|
+
const t = e, a = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((n) => n.split(".")).map((n) => t.isFull ? n : n.map((o, s) => s === n.length - 1 ? o : ""))), l = A(() => t.width ? `${t.width}em` : "");
|
|
2836
|
+
return (i, n) => (r(), u("span", {
|
|
2837
|
+
class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", i.isFull && "justify-end"]),
|
|
2838
|
+
style: Q({ width: l.value }),
|
|
2839
2839
|
"data-block": x(Ee)
|
|
2840
2840
|
}, [
|
|
2841
|
-
(
|
|
2842
|
-
s ? (
|
|
2843
|
-
o[0] ? (
|
|
2844
|
-
o[1] ? (
|
|
2845
|
-
o[2] ? (
|
|
2841
|
+
(r(!0), u(P, null, Z(a.value, (o, s) => (r(), u(P, null, [
|
|
2842
|
+
s ? (r(), u("span", Qn, " - ")) : M("", !0),
|
|
2843
|
+
o[0] ? (r(), u("span", Un, J(o[0]), 1)) : M("", !0),
|
|
2844
|
+
o[1] ? (r(), u("span", jn, "(" + J(o[1]) + ")", 1)) : M("", !0),
|
|
2845
|
+
o[2] ? (r(), u("span", Kn, J(o[2]), 1)) : M("", !0)
|
|
2846
2846
|
], 64))), 256))
|
|
2847
2847
|
], 14, qn));
|
|
2848
2848
|
}
|
|
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2894
2894
|
dbclick: null
|
|
2895
2895
|
},
|
|
2896
2896
|
setup(e, { emit: t }) {
|
|
2897
|
-
const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et),
|
|
2897
|
+
const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), i = q(""), n = A(() => {
|
|
2898
2898
|
const _ = a ? {
|
|
2899
2899
|
choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
2900
2900
|
fillSheet: [m.fill, m.fill_english]
|
|
@@ -2902,7 +2902,7 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2902
2902
|
choice: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
2903
2903
|
fill: [m.fill, m.fill_english]
|
|
2904
2904
|
};
|
|
2905
|
-
return Object.keys(m).reduce((C, w) => ({ ...C, [m[w]]: Object.keys(_).find((
|
|
2905
|
+
return Object.keys(m).reduce((C, w) => ({ ...C, [m[w]]: Object.keys(_).find((G) => _[G].includes(m[w])) || `${w}${a}` }), {});
|
|
2906
2906
|
}), o = A(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), s = A(() => {
|
|
2907
2907
|
let _ = [];
|
|
2908
2908
|
return e.data.children.forEach((C) => {
|
|
@@ -2921,20 +2921,20 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2921
2921
|
}), _ = _.map((C) => {
|
|
2922
2922
|
var w;
|
|
2923
2923
|
if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === L.choice_3) {
|
|
2924
|
-
const
|
|
2925
|
-
if (C.children.length >
|
|
2926
|
-
const
|
|
2927
|
-
return [...Array(Math.ceil(C.children.length / (
|
|
2924
|
+
const G = Math.floor(e.width / (Math.max(...C.children.map((H) => H.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
|
|
2925
|
+
if (C.children.length > G * 5) {
|
|
2926
|
+
const H = C.children.length % 4 > 4 ? 5 : 4;
|
|
2927
|
+
return [...Array(Math.ceil(C.children.length / (G * H))).keys()].map((ye, pe) => ({
|
|
2928
2928
|
...C,
|
|
2929
2929
|
groupIndex: pe,
|
|
2930
|
-
children: C.children.slice(pe *
|
|
2930
|
+
children: C.children.slice(pe * G * H, (pe + 1) * G * H)
|
|
2931
2931
|
}));
|
|
2932
2932
|
} else
|
|
2933
2933
|
return C;
|
|
2934
2934
|
} else
|
|
2935
2935
|
return C;
|
|
2936
2936
|
}).flat(), _;
|
|
2937
|
-
}),
|
|
2937
|
+
}), c = A(() => {
|
|
2938
2938
|
let _ = {};
|
|
2939
2939
|
return e.data.children.forEach((C) => {
|
|
2940
2940
|
C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
|
|
@@ -2944,7 +2944,7 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2944
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
|
-
return Object.keys(
|
|
2947
|
+
return Object.keys(c.value).map((_) => {
|
|
2948
2948
|
const C = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId === _).map((w) => w.subStr.length);
|
|
2949
2949
|
return {
|
|
2950
2950
|
[_]: Math.max(...C)
|
|
@@ -2953,13 +2953,13 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2953
2953
|
});
|
|
2954
2954
|
return {
|
|
2955
2955
|
Gps_cls: k,
|
|
2956
|
-
hoverActive:
|
|
2956
|
+
hoverActive: i,
|
|
2957
2957
|
ModuleTag: a,
|
|
2958
2958
|
ChoiceType: o,
|
|
2959
2959
|
GroupData: s,
|
|
2960
|
-
PolymerData:
|
|
2960
|
+
PolymerData: c,
|
|
2961
2961
|
SubWidthInfo: d,
|
|
2962
|
-
ComputName: (_) => _.problemType ?
|
|
2962
|
+
ComputName: (_) => _.problemType ? n.value[_.problemType] : "notArea",
|
|
2963
2963
|
ComputAbs: (_) => a && [m.slove, m.art].includes(_.problemType),
|
|
2964
2964
|
ComputPolymerCls: (_) => [m.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === L.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
|
|
2965
2965
|
ComputPolymerStyle: (_) => {
|
|
@@ -2968,23 +2968,23 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2968
2968
|
const w = Math.max(...(_.rawChildren || _.children).map((fe) => {
|
|
2969
2969
|
var ue;
|
|
2970
2970
|
return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
|
|
2971
|
-
})) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20,
|
|
2971
|
+
})) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20, G = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((fe) => {
|
|
2972
2972
|
var ue;
|
|
2973
2973
|
return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
|
|
2974
|
-
})) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)),
|
|
2974
|
+
})) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), H = Math.min(G, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * H) / (H - 1) - 10;
|
|
2975
2975
|
switch (_.styleInfo[y[e.layout.mode].choice_a]) {
|
|
2976
2976
|
case L.choice_1:
|
|
2977
2977
|
_.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
|
|
2978
2978
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
2979
|
-
"grid-template-columns": `repeat(${
|
|
2980
|
-
"grid-template-rows": `repeat(${Math.ceil(_.children.length /
|
|
2979
|
+
"grid-template-columns": `repeat(${H}, 1fr)`,
|
|
2980
|
+
"grid-template-rows": `repeat(${Math.ceil(_.children.length / H)}, 1fr)`,
|
|
2981
2981
|
"column-gap": `${ye}px`
|
|
2982
2982
|
});
|
|
2983
2983
|
break;
|
|
2984
2984
|
case L.choice_3:
|
|
2985
2985
|
C = {
|
|
2986
|
-
"grid-template-columns": `repeat(${
|
|
2987
|
-
"grid-template-rows": `repeat(${Math.ceil(_.children.length /
|
|
2986
|
+
"grid-template-columns": `repeat(${H}, 1fr)`,
|
|
2987
|
+
"grid-template-rows": `repeat(${Math.ceil(_.children.length / H)}, 1fr)`
|
|
2988
2988
|
}, _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
|
|
2989
2989
|
...C,
|
|
2990
2990
|
"grid-auto-flow": e.noPortrait ? "row" : "column",
|
|
@@ -2997,8 +2997,8 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
2997
2997
|
ComputPolymerItemStyle: (_, C) => {
|
|
2998
2998
|
var w;
|
|
2999
2999
|
if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === L.choice_2) {
|
|
3000
|
-
const
|
|
3001
|
-
if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] *
|
|
3000
|
+
const G = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), H = Math.floor(e.width / (G * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - G * H * _.style[y[e.layout.mode].choice_c]) / (H - 1 || 1);
|
|
3001
|
+
if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * H) || H < 2))
|
|
3002
3002
|
return {
|
|
3003
3003
|
"margin-right": `${ye}px`
|
|
3004
3004
|
};
|
|
@@ -3006,20 +3006,20 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
3006
3006
|
return {};
|
|
3007
3007
|
},
|
|
3008
3008
|
ComputStyle: (_, C) => {
|
|
3009
|
-
var
|
|
3009
|
+
var G;
|
|
3010
3010
|
let w = {};
|
|
3011
3011
|
if (!a)
|
|
3012
3012
|
return w;
|
|
3013
3013
|
if (l.includes(_.problemType)) {
|
|
3014
|
-
let
|
|
3015
|
-
if (Object.values(
|
|
3016
|
-
const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((
|
|
3017
|
-
|
|
3014
|
+
let H = {};
|
|
3015
|
+
if (Object.values(ct).includes(e.data.problemType)) {
|
|
3016
|
+
const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((G = e.data.children[0]) == null ? void 0 : G.polymerId) || ""]) * 14 + 20, pe = Math.min(Math.floor(e.width / ye), e.data.style[y[e.layout.mode].choice_d] || 10);
|
|
3017
|
+
H = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
|
|
3018
3018
|
}
|
|
3019
3019
|
w = {
|
|
3020
3020
|
...w,
|
|
3021
3021
|
display: "inline-flex",
|
|
3022
|
-
...
|
|
3022
|
+
...H
|
|
3023
3023
|
};
|
|
3024
3024
|
} else
|
|
3025
3025
|
[m.fill, m.fill_english].includes(_.problemType) && (w = {
|
|
@@ -3044,10 +3044,10 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
3044
3044
|
}
|
|
3045
3045
|
},
|
|
3046
3046
|
handleHoverIn: (_) => {
|
|
3047
|
-
|
|
3047
|
+
i.value = _.rootProblemId;
|
|
3048
3048
|
},
|
|
3049
3049
|
handleHoverOut: (_) => {
|
|
3050
|
-
|
|
3050
|
+
i.value = "";
|
|
3051
3051
|
},
|
|
3052
3052
|
handleClick: (_, C) => {
|
|
3053
3053
|
e.data.isPolymer || (_.stopPropagation(), t("click", C));
|
|
@@ -3058,81 +3058,81 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
|
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
3060
|
}, 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 };
|
|
3061
|
-
function os(e, t, a, l,
|
|
3061
|
+
function os(e, t, a, l, i, n) {
|
|
3062
3062
|
const o = Rt("Sub");
|
|
3063
|
-
return
|
|
3064
|
-
s.type === "polymer" ? (
|
|
3063
|
+
return r(!0), u(P, null, Z(l.GroupData, (s) => (r(), u(P, null, [
|
|
3064
|
+
s.type === "polymer" ? (r(), u("div", {
|
|
3065
3065
|
key: 0,
|
|
3066
3066
|
"data-block": l.ComputBlock(s),
|
|
3067
3067
|
class: oe([...l.ComputPolymerCls(s)]),
|
|
3068
|
-
style:
|
|
3068
|
+
style: Q(l.ComputPolymerStyle(s))
|
|
3069
3069
|
}, [
|
|
3070
|
-
(
|
|
3071
|
-
var
|
|
3072
|
-
return
|
|
3073
|
-
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive ===
|
|
3074
|
-
style:
|
|
3075
|
-
"data-tag":
|
|
3076
|
-
"data-block": l.ComputBlock(
|
|
3077
|
-
"data-xine": l.Gps_cls.item +
|
|
3078
|
-
onMouseenter: (
|
|
3079
|
-
onMouseleave: (
|
|
3070
|
+
(r(!0), u(P, null, Z(s.children, (c, d) => {
|
|
3071
|
+
var h;
|
|
3072
|
+
return r(), u("div", {
|
|
3073
|
+
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((h = a.target.value) == null ? void 0 : h.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3074
|
+
style: Q(l.ComputPolymerItemStyle(c, d)),
|
|
3075
|
+
"data-tag": c.__tag__,
|
|
3076
|
+
"data-block": l.ComputBlock(c),
|
|
3077
|
+
"data-xine": l.Gps_cls.item + c._sub,
|
|
3078
|
+
onMouseenter: (B) => l.handleHoverIn(c),
|
|
3079
|
+
onMouseleave: (B) => l.handleHoverOut(c)
|
|
3080
3080
|
}, [
|
|
3081
|
-
|
|
3081
|
+
c.problemType ? (r(), V(o, {
|
|
3082
3082
|
key: 0,
|
|
3083
|
-
sub:
|
|
3083
|
+
sub: c.sub,
|
|
3084
3084
|
isFull: !!l.ModuleTag,
|
|
3085
|
-
width: l.SubWidthInfo[`h${
|
|
3086
|
-
class: oe(["sub_item", l.ComputAbs(
|
|
3087
|
-
}, null, 8, ["sub", "isFull", "width", "class"])) :
|
|
3088
|
-
(
|
|
3085
|
+
width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0,
|
|
3086
|
+
class: oe(["sub_item", l.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
|
|
3087
|
+
}, null, 8, ["sub", "isFull", "width", "class"])) : M("", !0),
|
|
3088
|
+
(r(), V(_t(l.ComputName(c)), ft(gt({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), null, 16))
|
|
3089
3089
|
], 46, Zn);
|
|
3090
3090
|
}), 256))
|
|
3091
|
-
], 14, Jn)) : (
|
|
3092
|
-
var
|
|
3093
|
-
return
|
|
3091
|
+
], 14, Jn)) : (r(!0), u(P, { key: 1 }, Z(s.children, (c, d) => {
|
|
3092
|
+
var h;
|
|
3093
|
+
return r(), u(P, null, [
|
|
3094
3094
|
f("div", {
|
|
3095
|
-
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive ===
|
|
3096
|
-
style:
|
|
3097
|
-
"data-tag":
|
|
3098
|
-
"data-block": l.ComputBlock(
|
|
3099
|
-
"data-xine": l.Gps_cls.item +
|
|
3100
|
-
onClick: (
|
|
3101
|
-
onDblclick: (
|
|
3102
|
-
onMouseenter: (
|
|
3103
|
-
onMouseleave: (
|
|
3095
|
+
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((h = a.target.value) == null ? void 0 : h.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3096
|
+
style: Q(l.ComputStyle(c, d)),
|
|
3097
|
+
"data-tag": c.__tag__,
|
|
3098
|
+
"data-block": l.ComputBlock(c),
|
|
3099
|
+
"data-xine": l.Gps_cls.item + c._sub,
|
|
3100
|
+
onClick: (B) => l.handleClick(B, c),
|
|
3101
|
+
onDblclick: (B) => l.handleDblClick(B, c),
|
|
3102
|
+
onMouseenter: (B) => l.handleHoverIn(c),
|
|
3103
|
+
onMouseleave: (B) => l.handleHoverOut(c)
|
|
3104
3104
|
}, [
|
|
3105
|
-
|
|
3105
|
+
c.problemType && !l.ComputAbs(c) ? (r(), V(o, {
|
|
3106
3106
|
key: 0,
|
|
3107
|
-
sub:
|
|
3107
|
+
sub: c.sub,
|
|
3108
3108
|
isFull: !!l.ModuleTag,
|
|
3109
|
-
width: l.SubWidthInfo[`h${
|
|
3110
|
-
}, null, 8, ["sub", "isFull", "width"])) :
|
|
3111
|
-
(
|
|
3109
|
+
width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
|
|
3110
|
+
}, null, 8, ["sub", "isFull", "width"])) : M("", !0),
|
|
3111
|
+
(r(), V(_t(l.ComputName(c)), ft(gt({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), {
|
|
3112
3112
|
default: Ft(() => [
|
|
3113
3113
|
X(o, {
|
|
3114
|
-
sub:
|
|
3114
|
+
sub: c.sub,
|
|
3115
3115
|
isFull: !!l.ModuleTag,
|
|
3116
|
-
width: l.SubWidthInfo[`h${
|
|
3116
|
+
width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
|
|
3117
3117
|
}, null, 8, ["sub", "isFull", "width"])
|
|
3118
3118
|
]),
|
|
3119
3119
|
_: 2
|
|
3120
3120
|
}, 1040))
|
|
3121
3121
|
], 46, es),
|
|
3122
|
-
|
|
3122
|
+
c.polymerId && l.PolymerData[c.polymerId][l.PolymerData[c.polymerId].length - 1] === c.id ? (r(), u("div", ts)) : M("", !0)
|
|
3123
3123
|
], 64);
|
|
3124
3124
|
}), 256))
|
|
3125
3125
|
], 64))), 256);
|
|
3126
3126
|
}
|
|
3127
|
-
const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10,
|
|
3128
|
-
const l =
|
|
3127
|
+
const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10, R = (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, a) => {
|
|
3128
|
+
const l = R(se(`${k.item}${e._sub}`, t));
|
|
3129
3129
|
return !(l.top >= a.top + a.height || l.top + l.height < a.top);
|
|
3130
3130
|
}, ce = (e, t, a = !1) => !e || !t ? null : {
|
|
3131
3131
|
x: e.x - t.x,
|
|
3132
3132
|
y: e.y - t.y + (a ? 1 : 0),
|
|
3133
3133
|
width: e.width,
|
|
3134
3134
|
height: e.height - (a ? 2 : 0)
|
|
3135
|
-
},
|
|
3135
|
+
}, De = (e, t, a, l = !1, i = !1) => {
|
|
3136
3136
|
if (!e)
|
|
3137
3137
|
return {
|
|
3138
3138
|
x: 0,
|
|
@@ -3140,11 +3140,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3140
3140
|
width: 0,
|
|
3141
3141
|
height: 0
|
|
3142
3142
|
};
|
|
3143
|
-
const
|
|
3143
|
+
const n = R(e), o = Math.min(t.height, n.y < t.y ? n.y + n.height - t.y : n.y + n.height > t.y + t.height || i ? t.y + t.height - n.y : n.height);
|
|
3144
3144
|
return o > 5 ? {
|
|
3145
|
-
x:
|
|
3146
|
-
y: Math.max(
|
|
3147
|
-
width:
|
|
3145
|
+
x: n.x - a.x,
|
|
3146
|
+
y: Math.max(n.y, t.y) + (l ? 1 : 0) - a.y,
|
|
3147
|
+
width: n.width,
|
|
3148
3148
|
height: o - (l ? 2 : 0)
|
|
3149
3149
|
} : null;
|
|
3150
3150
|
}, ne = (e, t = !1) => {
|
|
@@ -3163,8 +3163,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3163
3163
|
return null;
|
|
3164
3164
|
const l = {
|
|
3165
3165
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3166
|
-
area: ce(
|
|
3167
|
-
list: Te(k.en_num_group, a).map((
|
|
3166
|
+
area: ce(R(a), R(e.pageDom[0])),
|
|
3167
|
+
list: Te(k.en_num_group, a).map((i) => Te(k.en_num_item, i).map((n) => ce(R(n), R(e.pageDom[0]), !0)))
|
|
3168
3168
|
};
|
|
3169
3169
|
return {
|
|
3170
3170
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
@@ -3174,42 +3174,42 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3174
3174
|
choiceQuestionPosition: ne(l.area),
|
|
3175
3175
|
choiceQuestionCount: l.list.length,
|
|
3176
3176
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3177
|
-
questionNOList: [...Array(l.list.length).keys()].map((
|
|
3177
|
+
questionNOList: [...Array(l.list.length).keys()].map((i, n) => n + 1)
|
|
3178
3178
|
};
|
|
3179
3179
|
}, ns = (e) => ({
|
|
3180
3180
|
cardSizeType: mo[e.layout.paper],
|
|
3181
3181
|
cardColumnCount: e.layout.column,
|
|
3182
3182
|
cardColumnCount2: e.layout.backColumn,
|
|
3183
3183
|
doubleCard: !0,
|
|
3184
|
-
paperWidth: Math.round(
|
|
3185
|
-
paperHeight: Math.round(
|
|
3184
|
+
paperWidth: Math.round(g[e.layout.paper].width * Fe),
|
|
3185
|
+
paperHeight: Math.round(g[e.layout.paper].height * Fe)
|
|
3186
3186
|
}), ss = (e) => {
|
|
3187
|
-
const t =
|
|
3187
|
+
const t = R(e.pageDom[0]), a = R(e.pageDom[1]), l = (i) => {
|
|
3188
3188
|
var o;
|
|
3189
|
-
const
|
|
3190
|
-
trdLeftTopPos: ne(ce(
|
|
3191
|
-
trdLeftBottomPos: ne(ce(
|
|
3189
|
+
const n = e.layout.backColumn > 2 ? {
|
|
3190
|
+
trdLeftTopPos: ne(ce(R(Te(`${k.point}t`, e.pageDom[i])[1]), R(e.pageDom[i]))),
|
|
3191
|
+
trdLeftBottomPos: ne(ce(R(Te(`${k.point}b`, e.pageDom[i])[1]), R(e.pageDom[i])))
|
|
3192
3192
|
} : {};
|
|
3193
3193
|
return (o = Oe.find((s) => s.code === e.layout.paper)) != null && o.isMultCol ? {
|
|
3194
|
-
secLeftTopPos: ne(ce(
|
|
3195
|
-
secLeftBottomPos: ne(ce(
|
|
3196
|
-
...
|
|
3194
|
+
secLeftTopPos: ne(ce(R(Te(`${k.point}t`, e.pageDom[i])[0]), R(e.pageDom[i]))),
|
|
3195
|
+
secLeftBottomPos: ne(ce(R(Te(`${k.point}b`, e.pageDom[i])[0]), R(e.pageDom[i]))),
|
|
3196
|
+
...n
|
|
3197
3197
|
} : null;
|
|
3198
3198
|
};
|
|
3199
3199
|
return {
|
|
3200
3200
|
// 取第一/二页定位点信息
|
|
3201
|
-
leftTopPos: ne(ce(
|
|
3202
|
-
rightTopPos: ne(ce(
|
|
3203
|
-
leftBottomPos: ne(ce(
|
|
3204
|
-
rightBottomPos: ne(ce(
|
|
3201
|
+
leftTopPos: ne(ce(R(se(`${k.point}lt`, e.pageDom[0])), t)),
|
|
3202
|
+
rightTopPos: ne(ce(R(se(`${k.point}rt`, e.pageDom[0])), t)),
|
|
3203
|
+
leftBottomPos: ne(ce(R(se(`${k.point}lb`, e.pageDom[0])), t)),
|
|
3204
|
+
rightBottomPos: ne(ce(R(se(`${k.point}rb`, e.pageDom[0])), t)),
|
|
3205
3205
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3206
3206
|
verticalAuxInfo: [
|
|
3207
|
-
ne(ce(
|
|
3208
|
-
ne(ce(
|
|
3207
|
+
ne(ce(R(se(`${k.point}l`, e.pageDom[0])), t)),
|
|
3208
|
+
ne(ce(R(se(`${k.point}r`, e.pageDom[0])), t))
|
|
3209
3209
|
],
|
|
3210
3210
|
verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
|
|
3211
|
-
ne(ce(
|
|
3212
|
-
ne(ce(
|
|
3211
|
+
ne(ce(R(se(`${k.point}l`, e.pageDom[1])), a)),
|
|
3212
|
+
ne(ce(R(se(`${k.point}r`, e.pageDom[1])), a))
|
|
3213
3213
|
] : null,
|
|
3214
3214
|
auxAnchorInfo: l(0),
|
|
3215
3215
|
auxAnchorInfo2: e.pageDom[1] ? l(1) : null
|
|
@@ -3220,8 +3220,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3220
3220
|
const l = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3221
3221
|
t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
|
|
3222
3222
|
}
|
|
3223
|
-
let a = ce(
|
|
3224
|
-
return a = { ...a, y: a.y % (
|
|
3223
|
+
let a = ce(R(se(k.page, e.pageDom[e.pageTotal - 1])), R(e.pageDom[e.pageTotal - 1]));
|
|
3224
|
+
return a = { ...a, y: a.y % (g[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3225
3225
|
{
|
|
3226
3226
|
// 固定值
|
|
3227
3227
|
choiceQuestionCount: 1,
|
|
@@ -3230,9 +3230,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3230
3230
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3231
3231
|
choiceQuestionPosition: ne(a, !0),
|
|
3232
3232
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3233
|
-
firstChoicePosition: ne(ce(
|
|
3233
|
+
firstChoicePosition: ne(ce(R(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), R(e.pageDom[e.pageTotal - 1]))),
|
|
3234
3234
|
// 页码点最大值,展开为数组
|
|
3235
|
-
choiceGridSequenceNOList:
|
|
3235
|
+
choiceGridSequenceNOList: ut.filter((l, i) => i < e.pageTotal),
|
|
3236
3236
|
// 排列方向
|
|
3237
3237
|
crosswised: !0,
|
|
3238
3238
|
// 两个页码点之间的间距,纵排此项赋值
|
|
@@ -3249,9 +3249,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3249
3249
|
// 固定值
|
|
3250
3250
|
questionNOList: [1],
|
|
3251
3251
|
// 方框业务坐标
|
|
3252
|
-
choiceQuestionPosition: ne(ce(
|
|
3252
|
+
choiceQuestionPosition: ne(ce(R(t), R(e.pageDom[0])), !0),
|
|
3253
3253
|
// 数据坐标
|
|
3254
|
-
firstChoicePosition: ne(ce(
|
|
3254
|
+
firstChoicePosition: ne(ce(R(t), R(e.pageDom[0]))),
|
|
3255
3255
|
// 固定值
|
|
3256
3256
|
choiceGridSequenceNOList: [
|
|
3257
3257
|
"true"
|
|
@@ -3262,7 +3262,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3262
3262
|
xColOffset: 0
|
|
3263
3263
|
} : null;
|
|
3264
3264
|
}, cs = (e) => {
|
|
3265
|
-
let t = ce(
|
|
3265
|
+
let t = ce(R(se(k.en_code, e.pageDom[0])), R(e.pageDom[0]));
|
|
3266
3266
|
return ne(t);
|
|
3267
3267
|
}, ds = (e) => {
|
|
3268
3268
|
const t = se(k.write_view, e.pageDom[0]);
|
|
@@ -3272,28 +3272,28 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3272
3272
|
return {
|
|
3273
3273
|
id: "0",
|
|
3274
3274
|
problemType: m.slove,
|
|
3275
|
-
position: ce(
|
|
3276
|
-
scoreList: a.map((l,
|
|
3277
|
-
position: ce(
|
|
3275
|
+
position: ce(R(t), R(e.pageDom[0])),
|
|
3276
|
+
scoreList: a.map((l, i) => ({
|
|
3277
|
+
position: ce(R(a[i]), R(e.pageDom[0])),
|
|
3278
3278
|
itemPosition: {
|
|
3279
|
-
width: a[
|
|
3279
|
+
width: a[i].offsetWidth
|
|
3280
3280
|
},
|
|
3281
|
-
score: Math.abs(parseFloat(a[
|
|
3281
|
+
score: Math.abs(parseFloat(a[i].innerText))
|
|
3282
3282
|
}))
|
|
3283
3283
|
};
|
|
3284
3284
|
}, us = (e, t) => {
|
|
3285
|
-
const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt,
|
|
3286
|
-
return t.flat().filter((
|
|
3287
|
-
switch (
|
|
3285
|
+
const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt, i = (n) => parseFloat(n.toFixed(2));
|
|
3286
|
+
return t.flat().filter((n) => a.includes(n.problemType) && n.colIndex < 2).map((n) => {
|
|
3287
|
+
switch (n.problemType) {
|
|
3288
3288
|
case m.fill:
|
|
3289
3289
|
case m.fill_english:
|
|
3290
|
-
return e.layout.notHandReadFlag &&
|
|
3290
|
+
return e.layout.notHandReadFlag && n.isHiddenContent ? [] : n.children.map((o) => {
|
|
3291
3291
|
const s = o.scorePosition;
|
|
3292
3292
|
return {
|
|
3293
3293
|
sub: o.id,
|
|
3294
3294
|
position: {
|
|
3295
|
-
x:
|
|
3296
|
-
y:
|
|
3295
|
+
x: i(s.x - o.position.x),
|
|
3296
|
+
y: i(s.y - o.position.y) + l * (n.colIndex - 1),
|
|
3297
3297
|
width: s.width,
|
|
3298
3298
|
height: s.height
|
|
3299
3299
|
}
|
|
@@ -3302,28 +3302,28 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3302
3302
|
case m.slove:
|
|
3303
3303
|
case m.art:
|
|
3304
3304
|
return e.notHandReadFlag ? [] : [{
|
|
3305
|
-
sub:
|
|
3305
|
+
sub: n.id,
|
|
3306
3306
|
position: {
|
|
3307
|
-
x: n
|
|
3308
|
-
y: n
|
|
3309
|
-
width:
|
|
3310
|
-
height:
|
|
3307
|
+
x: i(n.scoreList[0].position.x - n.position.x),
|
|
3308
|
+
y: i(n.scoreList[0].position.y - n.position.y) + l * (n.colIndex - 1),
|
|
3309
|
+
width: n.scoreList.map((o) => o.position.width).reduce((o, s) => o + s, 0),
|
|
3310
|
+
height: n.scoreList[0].position.height
|
|
3311
3311
|
}
|
|
3312
3312
|
}];
|
|
3313
3313
|
case m.mix:
|
|
3314
|
-
return e.notHandReadFlag &&
|
|
3314
|
+
return e.notHandReadFlag && n.isHiddenContent ? [] : (n.children || []).filter((o) => [m.fill, m.fill_english, m.easy_slove].includes(o.problemType)).map((o) => [m.easy_slove].includes(o.problemType) ? {
|
|
3315
3315
|
sub: o.id,
|
|
3316
3316
|
position: {
|
|
3317
|
-
x:
|
|
3318
|
-
y:
|
|
3319
|
-
width: o.scoreList.map((s) => s.position.width).reduce((s,
|
|
3317
|
+
x: i(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : n.position.x)),
|
|
3318
|
+
y: i(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : n.position.y)) + l * (n.colIndex - 1),
|
|
3319
|
+
width: o.scoreList.map((s) => s.position.width).reduce((s, c) => s + c, 0),
|
|
3320
3320
|
height: o.position.height
|
|
3321
3321
|
}
|
|
3322
3322
|
} : {
|
|
3323
3323
|
sub: o.id,
|
|
3324
3324
|
position: {
|
|
3325
|
-
x:
|
|
3326
|
-
y:
|
|
3325
|
+
x: i(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : n.position.x)),
|
|
3326
|
+
y: i(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : n.position.y)) + l * (n.colIndex - 1),
|
|
3327
3327
|
width: o.scorePosition.width,
|
|
3328
3328
|
height: o.scorePosition.height
|
|
3329
3329
|
}
|
|
@@ -3332,61 +3332,61 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3332
3332
|
}).flat();
|
|
3333
3333
|
}, hs = (e, t) => {
|
|
3334
3334
|
let a = 0, l = {};
|
|
3335
|
-
return [...Array(e.pageDom.length).keys()].map((
|
|
3336
|
-
const
|
|
3337
|
-
return [...Array(
|
|
3338
|
-
const
|
|
3339
|
-
const z = se(`${k.choice}${
|
|
3335
|
+
return [...Array(e.pageDom.length).keys()].map((i) => {
|
|
3336
|
+
const n = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0);
|
|
3337
|
+
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => n + s < t.length).map((o, s) => {
|
|
3338
|
+
const c = e.pageDom[i], d = R(c), h = e.colDom[n + s], B = R(h), p = e.colViewDom[n + s], F = R(p), O = t[n + s].data.map((T) => T.children.filter((z) => z.problemType)).flat(), j = t[n + s].data.filter((T) => [ve.one_choice, ve.another_choice].includes(T.problemType) && T.children.length).map((T) => {
|
|
3339
|
+
const z = se(`${k.choice}${T.id}`, h);
|
|
3340
3340
|
return z ? {
|
|
3341
3341
|
id: `${++a}`,
|
|
3342
|
-
baseIndex: parseInt(
|
|
3343
|
-
position: ce(
|
|
3344
|
-
problemType:
|
|
3342
|
+
baseIndex: parseInt(T.children[0]._sub),
|
|
3343
|
+
position: ce(R(z), d),
|
|
3344
|
+
problemType: T.problemType,
|
|
3345
3345
|
isOneChoice: !0,
|
|
3346
|
-
optList: Te(k.fill, z).map((
|
|
3346
|
+
optList: Te(k.fill, z).map((v, E) => ({
|
|
3347
3347
|
id: `${a}.${E + 1}`,
|
|
3348
|
-
position: ce(
|
|
3349
|
-
})).filter((
|
|
3348
|
+
position: ce(R(v), d)
|
|
3349
|
+
})).filter((v) => v.position)
|
|
3350
3350
|
} : {};
|
|
3351
|
-
}).filter((
|
|
3352
|
-
return
|
|
3351
|
+
}).filter((T) => T.position);
|
|
3352
|
+
return O.filter((T) => ls(T, h, B)).map((T, z, v) => {
|
|
3353
3353
|
let E = {};
|
|
3354
|
-
l[
|
|
3355
|
-
const W = se(`${k.item}${
|
|
3356
|
-
switch (
|
|
3354
|
+
l[T._sub] ? l[T._sub] += 1 : l[T._sub] = 1;
|
|
3355
|
+
const W = se(`${k.item}${T._sub}`, h);
|
|
3356
|
+
switch (T.problemType) {
|
|
3357
3357
|
case m.choice:
|
|
3358
3358
|
case m.choice_english:
|
|
3359
3359
|
case m.choice_multiple:
|
|
3360
3360
|
case m.cloze:
|
|
3361
3361
|
E = {
|
|
3362
|
-
score:
|
|
3363
|
-
isColumn:
|
|
3364
|
-
optList:
|
|
3365
|
-
id: `${
|
|
3366
|
-
position:
|
|
3362
|
+
score: T.score,
|
|
3363
|
+
isColumn: T.style[y[e.layout.mode].choice_a] !== L.choice_2,
|
|
3364
|
+
optList: T.optList.map((w, G) => ({
|
|
3365
|
+
id: `${T._sub}.${G + 1}`,
|
|
3366
|
+
position: De(se(`${k.fill}${G}`, W), F, d)
|
|
3367
3367
|
})).filter((w) => w.position)
|
|
3368
3368
|
};
|
|
3369
3369
|
break;
|
|
3370
3370
|
case m.decide:
|
|
3371
3371
|
E = {
|
|
3372
|
-
optList: [0, 1].map((w,
|
|
3373
|
-
id: `${
|
|
3374
|
-
position:
|
|
3372
|
+
optList: [0, 1].map((w, G) => ({
|
|
3373
|
+
id: `${T._sub}.${G + 1}`,
|
|
3374
|
+
position: De(se(`${k.fill}${G}`, W), F, d)
|
|
3375
3375
|
})).filter((w) => w.position)
|
|
3376
3376
|
};
|
|
3377
3377
|
break;
|
|
3378
3378
|
case m.fill:
|
|
3379
3379
|
case m.fill_english:
|
|
3380
|
-
const
|
|
3380
|
+
const N = Te(k.fill, W), _ = Te(k.fill_line, W);
|
|
3381
3381
|
E = {
|
|
3382
|
-
children: [
|
|
3383
|
-
id:
|
|
3382
|
+
children: [T.score].flat().map((w, G, H) => ({
|
|
3383
|
+
id: H.length > 1 ? `${T._sub}.${G + 1}` : T._sub,
|
|
3384
3384
|
score: w,
|
|
3385
|
-
problemType:
|
|
3386
|
-
isHiddenContent:
|
|
3387
|
-
position:
|
|
3388
|
-
scorePosition:
|
|
3389
|
-
answerPosition:
|
|
3385
|
+
problemType: T.problemType,
|
|
3386
|
+
isHiddenContent: !T.style[y[e.layout.mode].fill_b],
|
|
3387
|
+
position: De(W, F, d),
|
|
3388
|
+
scorePosition: De(N[G], F, d),
|
|
3389
|
+
answerPosition: De(_[G], F, d)
|
|
3390
3390
|
})).filter((w) => w.position)
|
|
3391
3391
|
};
|
|
3392
3392
|
break;
|
|
@@ -3395,83 +3395,88 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3395
3395
|
case m.art:
|
|
3396
3396
|
const C = se(k.score, W);
|
|
3397
3397
|
E = {
|
|
3398
|
-
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w,
|
|
3398
|
+
scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, G) => {
|
|
3399
3399
|
if (!w)
|
|
3400
3400
|
return {};
|
|
3401
|
-
const
|
|
3401
|
+
const H = Te(k.score_item, w);
|
|
3402
3402
|
return {
|
|
3403
|
-
position:
|
|
3403
|
+
position: De(w, F, d, !0),
|
|
3404
3404
|
itemPosition: {
|
|
3405
|
-
width:
|
|
3405
|
+
width: H[0].offsetWidth
|
|
3406
3406
|
},
|
|
3407
|
-
score:
|
|
3407
|
+
score: H.map((ye) => Math.abs(parseFloat(ye.innerText)) * (G ? 1 : 10))
|
|
3408
3408
|
};
|
|
3409
3409
|
}).filter((w) => w.position) : null
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
3412
|
return {
|
|
3413
|
-
id:
|
|
3414
|
-
elId:
|
|
3415
|
-
colIndex: l[
|
|
3416
|
-
problemType:
|
|
3417
|
-
|
|
3418
|
-
|
|
3413
|
+
id: T._sub,
|
|
3414
|
+
elId: T.id,
|
|
3415
|
+
colIndex: l[T._sub],
|
|
3416
|
+
problemType: T.problemType,
|
|
3417
|
+
_rootProblemType: T._rootProblemType,
|
|
3418
|
+
_parentProblemType: T._parentProblemType,
|
|
3419
|
+
position: De(W, F, d, !1, z === v.length - 1 && [m.slove].includes(T.problemType)),
|
|
3419
3420
|
...E
|
|
3420
3421
|
};
|
|
3421
|
-
}).concat(j).filter((
|
|
3422
|
+
}).concat(j).filter((T) => T.position);
|
|
3422
3423
|
});
|
|
3423
|
-
}).map((
|
|
3424
|
+
}).map((i) => i.flat());
|
|
3424
3425
|
}, ps = (e) => {
|
|
3425
|
-
|
|
3426
|
+
let t = {};
|
|
3427
|
+
const a = (n = e, o = !1) => (t[n.id] = {
|
|
3428
|
+
_rootProblemType: ot[e._rootProblemType],
|
|
3429
|
+
_parentProblemType: ot[e._parentProblemType]
|
|
3430
|
+
}, {
|
|
3426
3431
|
// 块位置
|
|
3427
|
-
sectionPosition: ne(
|
|
3432
|
+
sectionPosition: ne(n.position, !0),
|
|
3428
3433
|
// 块ID,前端生成,同一道题同一个ID
|
|
3429
|
-
sectionID:
|
|
3434
|
+
sectionID: n.id,
|
|
3430
3435
|
// 块内序号ID,按切块自增
|
|
3431
|
-
secitonSeqID:
|
|
3436
|
+
secitonSeqID: n.colIndex || 1,
|
|
3432
3437
|
// 需要保存文件,固定值
|
|
3433
|
-
needSavedFile: !!
|
|
3438
|
+
needSavedFile: !!o || [m.mix].includes(e.problemType),
|
|
3434
3439
|
// 题型
|
|
3435
|
-
cuttingSectionQuestionType:
|
|
3440
|
+
cuttingSectionQuestionType: ot[n.problemType || e.problemType]
|
|
3436
3441
|
});
|
|
3437
|
-
let
|
|
3442
|
+
let l = {};
|
|
3438
3443
|
switch (e.problemType) {
|
|
3439
3444
|
case m.choice:
|
|
3440
3445
|
case m.choice_english:
|
|
3441
3446
|
case m.choice_multiple:
|
|
3442
3447
|
case m.cloze:
|
|
3443
3448
|
case m.decide:
|
|
3444
|
-
|
|
3449
|
+
l = {
|
|
3445
3450
|
choiceQuestionPartialSectionList: [{
|
|
3446
|
-
...
|
|
3451
|
+
...a(e, !0),
|
|
3447
3452
|
// 选项数量
|
|
3448
3453
|
unitCount: e.optList.length,
|
|
3449
3454
|
// 选项是否为横排
|
|
3450
3455
|
crosswised: e.isColumn,
|
|
3451
3456
|
// 单个选项的信息数组
|
|
3452
|
-
choiceUnitSectionList: e.optList.map((
|
|
3453
|
-
...
|
|
3454
|
-
choicePosition: ne(
|
|
3455
|
-
choiceResult: [m.decide].includes(e.problemType) ? po[
|
|
3457
|
+
choiceUnitSectionList: e.optList.map((n, o) => ({
|
|
3458
|
+
...a(n, !0),
|
|
3459
|
+
choicePosition: ne(n.position),
|
|
3460
|
+
choiceResult: [m.decide].includes(e.problemType) ? po[o] : ut[o]
|
|
3456
3461
|
}))
|
|
3457
3462
|
}]
|
|
3458
3463
|
};
|
|
3459
3464
|
break;
|
|
3460
3465
|
case m.fill:
|
|
3461
3466
|
case m.fill_english:
|
|
3462
|
-
|
|
3467
|
+
l = {
|
|
3463
3468
|
subjectiveQuestionSectionList: [{
|
|
3464
|
-
...
|
|
3469
|
+
...a(e, !0),
|
|
3465
3470
|
// 子题数 最小1 填空题取空数
|
|
3466
3471
|
unitCount: (e.children || [e]).length,
|
|
3467
3472
|
// 每个小题的切图块
|
|
3468
|
-
singleBlankSectionList: (e.children || [e]).map((
|
|
3469
|
-
...
|
|
3470
|
-
answerPosition: ne(
|
|
3471
|
-
correctFrame:
|
|
3472
|
-
correctSectionPosition: ne(
|
|
3473
|
-
firstBlockPostion: ne(
|
|
3474
|
-
gridScoresList: [
|
|
3473
|
+
singleBlankSectionList: (e.children || [e]).map((n) => ({
|
|
3474
|
+
...a(n, !0),
|
|
3475
|
+
answerPosition: ne(n.answerPosition, !0),
|
|
3476
|
+
correctFrame: n.scorePosition ? [{
|
|
3477
|
+
correctSectionPosition: ne(n.scorePosition, !0),
|
|
3478
|
+
firstBlockPostion: ne(n.scorePosition),
|
|
3479
|
+
gridScoresList: [n.score].flat(),
|
|
3475
3480
|
lineMeanGetScore: !1,
|
|
3476
3481
|
weight: 1
|
|
3477
3482
|
}] : []
|
|
@@ -3482,19 +3487,19 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3482
3487
|
case m.slove:
|
|
3483
3488
|
case m.easy_slove:
|
|
3484
3489
|
case m.art:
|
|
3485
|
-
|
|
3490
|
+
l = {
|
|
3486
3491
|
subjectiveQuestionSectionList: [{
|
|
3487
|
-
...
|
|
3492
|
+
...a(e, !0),
|
|
3488
3493
|
// 子题数 最小1 填空题取空数
|
|
3489
3494
|
unitCount: 1,
|
|
3490
3495
|
// 每个小题的切图块
|
|
3491
3496
|
singleBlankSectionList: [{
|
|
3492
|
-
...
|
|
3497
|
+
...a(e, !0),
|
|
3493
3498
|
answerPosition: null,
|
|
3494
|
-
correctFrame: (e.scoreList || []).map((
|
|
3495
|
-
correctSectionPosition: ne(
|
|
3496
|
-
firstBlockPostion: ne({ ...
|
|
3497
|
-
gridScoresList: [
|
|
3499
|
+
correctFrame: (e.scoreList || []).map((n) => ({
|
|
3500
|
+
correctSectionPosition: ne(n.position, !0),
|
|
3501
|
+
firstBlockPostion: ne({ ...n.position, ...n.itemPosition }),
|
|
3502
|
+
gridScoresList: [n.score].flat(),
|
|
3498
3503
|
lineMeanGetScore: !0,
|
|
3499
3504
|
weight: 1
|
|
3500
3505
|
}))
|
|
@@ -3507,9 +3512,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3507
3512
|
break;
|
|
3508
3513
|
case ve.one_choice:
|
|
3509
3514
|
case ve.another_choice:
|
|
3510
|
-
|
|
3515
|
+
l = {
|
|
3511
3516
|
choiceQuestionPartialSectionList: [{
|
|
3512
|
-
...
|
|
3517
|
+
...a(e),
|
|
3513
3518
|
// 选项数量
|
|
3514
3519
|
unitCount: e.optList.length,
|
|
3515
3520
|
// 选做题标记
|
|
@@ -3517,24 +3522,24 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3517
3522
|
// 选项横排
|
|
3518
3523
|
crosswised: !0,
|
|
3519
3524
|
// 单个选项的信息数组
|
|
3520
|
-
choiceUnitSectionList: e.optList.map((
|
|
3521
|
-
...
|
|
3522
|
-
choicePosition: ne(
|
|
3523
|
-
choiceResult: (e.baseIndex +
|
|
3525
|
+
choiceUnitSectionList: e.optList.map((n, o) => ({
|
|
3526
|
+
...a(n),
|
|
3527
|
+
choicePosition: ne(n.position),
|
|
3528
|
+
choiceResult: (e.baseIndex + o).toString()
|
|
3524
3529
|
}))
|
|
3525
3530
|
}]
|
|
3526
3531
|
};
|
|
3527
3532
|
break;
|
|
3528
3533
|
}
|
|
3529
|
-
return {
|
|
3530
|
-
|
|
3531
|
-
...
|
|
3532
|
-
|
|
3533
|
-
};
|
|
3534
|
+
return { data: {
|
|
3535
|
+
...a(e, !e.isOneChoice),
|
|
3536
|
+
...l
|
|
3537
|
+
}, typeData: t };
|
|
3534
3538
|
}, ms = (e, t) => {
|
|
3535
|
-
|
|
3539
|
+
let a = {};
|
|
3540
|
+
const l = [...Array(e.pageTotal).keys()].map((o) => ({
|
|
3536
3541
|
// 当前页数
|
|
3537
|
-
pageIndexID:
|
|
3542
|
+
pageIndexID: o + 1,
|
|
3538
3543
|
// 保留字段
|
|
3539
3544
|
hasCardSerialNumber: !0,
|
|
3540
3545
|
// 页码点信息
|
|
@@ -3544,71 +3549,76 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3544
3549
|
// 固定值
|
|
3545
3550
|
splitFileList: [],
|
|
3546
3551
|
// 依据当前页码设置答案
|
|
3547
|
-
answerResultList:
|
|
3552
|
+
answerResultList: ut.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - o - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : o + 1),
|
|
3548
3553
|
// 固定值
|
|
3549
3554
|
noAnswerTag: !1
|
|
3550
3555
|
}],
|
|
3551
3556
|
// 按题切块信息
|
|
3552
|
-
cardCuttingSectionList: t[
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3557
|
+
cardCuttingSectionList: t[o].map((s) => {
|
|
3558
|
+
const c = ps(s);
|
|
3559
|
+
return a = { ...a, ...c.typeData }, c.data;
|
|
3560
|
+
}).flat()
|
|
3561
|
+
})), i = (o, s) => (o.sectionID || "").split(".").filter((c, d) => d < s).join("."), n = l.map((o) => {
|
|
3562
|
+
let s = [], c = [], d = [];
|
|
3563
|
+
return o.cardCuttingSectionList.forEach((h, B, p) => {
|
|
3564
|
+
const F = i(h, 1);
|
|
3565
|
+
let O = !1, j = !1;
|
|
3566
|
+
if (d.find((z) => i(z, 1) === F && z.secitonSeqID === h.secitonSeqID) && !(h.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (d.push(h), O = B < p.length - 1, j = !0), O)
|
|
3559
3567
|
return;
|
|
3560
|
-
let
|
|
3561
|
-
if ((
|
|
3562
|
-
if (
|
|
3563
|
-
|
|
3568
|
+
let T = !1;
|
|
3569
|
+
if ((h.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (c.push(h), T = !0), d.length) {
|
|
3570
|
+
if (d.length === 1)
|
|
3571
|
+
s.push(d[0]);
|
|
3564
3572
|
else {
|
|
3565
|
-
const
|
|
3566
|
-
|
|
3567
|
-
...
|
|
3568
|
-
cuttingSectionQuestionType:
|
|
3569
|
-
...
|
|
3570
|
-
...
|
|
3573
|
+
const z = d.map((N) => N.subjectiveQuestionSectionList || []).flat(), v = d.map((N) => N.choiceQuestionPartialSectionList || []).flat(), E = v.length ? { choiceQuestionPartialSectionList: v } : {}, W = z.length ? { subjectiveQuestionSectionList: z } : {};
|
|
3574
|
+
s.push({
|
|
3575
|
+
...d[0],
|
|
3576
|
+
cuttingSectionQuestionType: a[d[0].sectionID]._rootProblemType || d[0].cuttingSectionQuestionType,
|
|
3577
|
+
...E,
|
|
3578
|
+
...W
|
|
3571
3579
|
});
|
|
3572
3580
|
}
|
|
3573
|
-
|
|
3581
|
+
d = [];
|
|
3574
3582
|
}
|
|
3575
|
-
|
|
3576
|
-
}),
|
|
3577
|
-
}).map((
|
|
3578
|
-
const
|
|
3579
|
-
var
|
|
3580
|
-
let
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3583
|
+
T || j || d.push(h);
|
|
3584
|
+
}), s = [...s, ...d].map((h) => ({ ...h, sectionID: i(h, 1) })), { ...o, cardCuttingSectionList: [...s, ...c] };
|
|
3585
|
+
}).map((o) => {
|
|
3586
|
+
const s = o.cardCuttingSectionList.map((c) => {
|
|
3587
|
+
var F;
|
|
3588
|
+
let d = [], h = [];
|
|
3589
|
+
const B = Math.max(...(c.subjectiveQuestionSectionList || []).map((O) => O.sectionID.split(".").length - 1), 1);
|
|
3590
|
+
(F = c.subjectiveQuestionSectionList) == null || F.forEach((O, j, T) => {
|
|
3591
|
+
const z = i(O, B);
|
|
3592
|
+
let v = !1, E = !1;
|
|
3593
|
+
if (h.find((W) => i(W, B) === z && W.secitonSeqID === O.secitonSeqID) && (h.push(O), v = j < T.length - 1, E = !0), !v) {
|
|
3594
|
+
if (h.length) {
|
|
3595
|
+
if (h.length === 1)
|
|
3596
|
+
d.push(h[0]);
|
|
3588
3597
|
else {
|
|
3589
|
-
const
|
|
3590
|
-
|
|
3591
|
-
...
|
|
3592
|
-
|
|
3598
|
+
const W = h.map((_) => _.singleBlankSectionList || []).flat(), N = W.length ? { singleBlankSectionList: W, unitCount: W.length } : {};
|
|
3599
|
+
d.push({
|
|
3600
|
+
...h[0],
|
|
3601
|
+
cuttingSectionQuestionType: a[h[0].sectionID]._parentProblemType || h[0].cuttingSectionQuestionType,
|
|
3602
|
+
...N
|
|
3593
3603
|
});
|
|
3594
3604
|
}
|
|
3595
|
-
|
|
3605
|
+
h = [];
|
|
3596
3606
|
}
|
|
3597
|
-
|
|
3607
|
+
E || h.push(O);
|
|
3598
3608
|
}
|
|
3599
3609
|
});
|
|
3600
|
-
const p = Math.max(...
|
|
3601
|
-
return
|
|
3602
|
-
...
|
|
3603
|
-
subjectiveQuestionSectionList:
|
|
3604
|
-
} :
|
|
3610
|
+
const p = Math.max(...[...d, ...h].map((O) => O.sectionID.split(".").length));
|
|
3611
|
+
return d = [...d, ...h].map((O) => ({ ...O, sectionID: i(O, Math.max(p - 1, 1)) })), d.length ? {
|
|
3612
|
+
...c,
|
|
3613
|
+
subjectiveQuestionSectionList: d
|
|
3614
|
+
} : c;
|
|
3605
3615
|
});
|
|
3606
|
-
return { ...
|
|
3616
|
+
return { ...o, cardCuttingSectionList: s };
|
|
3607
3617
|
});
|
|
3608
|
-
return console.log(n), console.log(
|
|
3618
|
+
return console.log(n), console.log(l), a = {}, n;
|
|
3609
3619
|
}, ys = (e, t) => {
|
|
3610
3620
|
var l;
|
|
3611
|
-
const a =
|
|
3621
|
+
const a = R(e.pageDom[0]);
|
|
3612
3622
|
return {
|
|
3613
3623
|
// 正文code
|
|
3614
3624
|
cardID: e.textCode,
|
|
@@ -3625,8 +3635,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3625
3635
|
// 试卷二维码
|
|
3626
3636
|
cardSerialNumber: {
|
|
3627
3637
|
// 条形码虚线框位置, x, y, width, height
|
|
3628
|
-
encodePictureArea: ne(ce(
|
|
3629
|
-
qrCodePosition: ne(ce(
|
|
3638
|
+
encodePictureArea: ne(ce(R(se(k.art_code, e.pageDom[0])), a), !0),
|
|
3639
|
+
qrCodePosition: ne(ce(R(se(k.art_code, e.pageDom[0])), a)),
|
|
3630
3640
|
// 条形码或二维码,不确定,固定此值
|
|
3631
3641
|
pictureType: "TYPE_QRCODE"
|
|
3632
3642
|
},
|
|
@@ -3646,18 +3656,18 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3646
3656
|
// 用来表示老师布置题的标识,固定值
|
|
3647
3657
|
onlyAssignQuestions: null,
|
|
3648
3658
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
3649
|
-
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
3659
|
+
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
|
|
3650
3660
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
3651
|
-
absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
3661
|
+
absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2) : null,
|
|
3652
3662
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
3653
|
-
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
3663
|
+
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
|
|
3654
3664
|
// 哪些面有选做老师布置题的信息,固定值
|
|
3655
3665
|
onlyAssignInfoList: [],
|
|
3656
3666
|
// 页面布局信息
|
|
3657
3667
|
layerType: ns(e),
|
|
3658
3668
|
// 定位点信息
|
|
3659
3669
|
...ss(e),
|
|
3660
|
-
pottedLineXPos: e.bindWidth ? (l = ne(ce(
|
|
3670
|
+
pottedLineXPos: e.bindWidth ? (l = ne(ce(R(se(k.bind_line, e.pageDom[0])), a))) == null ? void 0 : l.x : 0,
|
|
3661
3671
|
// 页码点信息
|
|
3662
3672
|
pageSideAnchorsList: is(e),
|
|
3663
3673
|
// 缺考标记
|
|
@@ -3666,15 +3676,15 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3666
3676
|
oneFullPageCardList: t
|
|
3667
3677
|
};
|
|
3668
3678
|
}, _s = (e) => {
|
|
3669
|
-
const { config: t, data: a } = e, l = ds(t),
|
|
3670
|
-
l &&
|
|
3671
|
-
const
|
|
3679
|
+
const { config: t, data: a } = e, l = ds(t), i = hs(t, a);
|
|
3680
|
+
l && i[0].unshift(l);
|
|
3681
|
+
const n = us(t, i), o = ms(t, i), s = ys(t, o), c = Ot(t, k.en_num_view) || {};
|
|
3672
3682
|
return {
|
|
3673
3683
|
engineData: s,
|
|
3674
3684
|
pageTotal: t.pageTotal,
|
|
3675
|
-
format:
|
|
3676
|
-
localData:
|
|
3677
|
-
extendInfo: { shortCoordinate:
|
|
3685
|
+
format: g[t.layout.paper],
|
|
3686
|
+
localData: n,
|
|
3687
|
+
extendInfo: { shortCoordinate: c }
|
|
3678
3688
|
};
|
|
3679
3689
|
}, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
|
|
3680
3690
|
key: 0,
|
|
@@ -3689,40 +3699,40 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3689
3699
|
},
|
|
3690
3700
|
emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
|
|
3691
3701
|
setup(e, { emit: t }) {
|
|
3692
|
-
const a = e, l =
|
|
3693
|
-
|
|
3702
|
+
const a = e, l = q([]);
|
|
3703
|
+
Me(() => [a.ColList, a.ImgData, a.TxtData], () => {
|
|
3694
3704
|
l.value = [], setTimeout(() => {
|
|
3695
3705
|
var d;
|
|
3696
|
-
a.ColList.forEach((
|
|
3697
|
-
|
|
3698
|
-
var
|
|
3699
|
-
const F = (
|
|
3706
|
+
a.ColList.forEach((h, B) => {
|
|
3707
|
+
h.data.map((p) => p.children).flat().filter((p) => [m.slove, m.art].includes(p.problemType) && !p.chunk).forEach((p) => {
|
|
3708
|
+
var T;
|
|
3709
|
+
const F = (T = a.ColDom[B].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : T.querySelector(`*[data-xine="${k.score}"]`);
|
|
3700
3710
|
if (!F)
|
|
3701
3711
|
return;
|
|
3702
3712
|
F.classList.remove("err_lack");
|
|
3703
|
-
const
|
|
3704
|
-
F.offsetWidth - parseFloat(
|
|
3713
|
+
const O = window.getComputedStyle(F), j = [...Array.from(F.children)].map((z) => z.offsetWidth).reduce((z, v) => z + v, 0);
|
|
3714
|
+
F.offsetWidth - parseFloat(O.borderLeft) - parseFloat(O.borderRight) < j && (l.value.push({ msg: `${p.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
|
|
3705
3715
|
});
|
|
3706
3716
|
});
|
|
3707
3717
|
const o = (d = document.querySelector(".__layout__")) == null ? void 0 : d.getBoundingClientRect();
|
|
3708
3718
|
if (!o)
|
|
3709
3719
|
return;
|
|
3710
|
-
let s = [],
|
|
3711
|
-
a.ImgData.forEach((
|
|
3712
|
-
(
|
|
3713
|
-
}), a.TxtData.forEach((
|
|
3714
|
-
(
|
|
3715
|
-
}), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn:
|
|
3720
|
+
let s = [], c = [];
|
|
3721
|
+
a.ImgData.forEach((h) => {
|
|
3722
|
+
(h.left + h.width > o.width || h.top + h.height > o.height) && s.push(h);
|
|
3723
|
+
}), a.TxtData.forEach((h) => {
|
|
3724
|
+
(h.left + h.width > o.width || h.top + h.height > o.height) && c.push(h);
|
|
3725
|
+
}), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: i }), c.length && l.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: n }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
|
|
3716
3726
|
}, 500);
|
|
3717
3727
|
});
|
|
3718
|
-
const
|
|
3728
|
+
const i = () => {
|
|
3719
3729
|
var s;
|
|
3720
|
-
(((s = l.value.find((
|
|
3721
|
-
},
|
|
3730
|
+
(((s = l.value.find((c) => c.type === "absImg")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsImgItem", c));
|
|
3731
|
+
}, n = () => {
|
|
3722
3732
|
var s;
|
|
3723
|
-
(((s = l.value.find((
|
|
3733
|
+
(((s = l.value.find((c) => c.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsTxtItem", c));
|
|
3724
3734
|
};
|
|
3725
|
-
return (o, s) => (
|
|
3735
|
+
return (o, s) => (r(), u("div", fs, [
|
|
3726
3736
|
f("div", gs, [
|
|
3727
3737
|
f("div", {
|
|
3728
3738
|
class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
@@ -3738,212 +3748,212 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
|
|
|
3738
3748
|
]),
|
|
3739
3749
|
f("span", vs, "排版" + J(l.value.length ? "异常" : "良好"), 1)
|
|
3740
3750
|
], 2),
|
|
3741
|
-
l.value.length ? (
|
|
3742
|
-
(
|
|
3751
|
+
l.value.length ? (r(), u("ul", ws, [
|
|
3752
|
+
(r(!0), u(P, null, Z(l.value, (c, d) => (r(), u("li", {
|
|
3743
3753
|
key: d,
|
|
3744
3754
|
class: "layt-moni_err_item"
|
|
3745
3755
|
}, [
|
|
3746
|
-
f("span", xs, J(
|
|
3747
|
-
|
|
3756
|
+
f("span", xs, J(c.msg), 1),
|
|
3757
|
+
c.fn ? (r(), u("span", {
|
|
3748
3758
|
key: 0,
|
|
3749
3759
|
class: "layt-moni_err_item_fn",
|
|
3750
|
-
onClick:
|
|
3751
|
-
}, J(
|
|
3760
|
+
onClick: c.fn
|
|
3761
|
+
}, J(c.btnTxt || "删除"), 9, ks)) : M("", !0)
|
|
3752
3762
|
]))), 128))
|
|
3753
|
-
])) :
|
|
3763
|
+
])) : M("", !0)
|
|
3754
3764
|
])
|
|
3755
3765
|
]));
|
|
3756
3766
|
}
|
|
3757
3767
|
});
|
|
3758
|
-
const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e) => e == null ? void 0 : e.getBoundingClientRect(), Tt = (e, t) => t.querySelector(`*[data-tag="${e}"]`),
|
|
3768
|
+
const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e) => e == null ? void 0 : e.getBoundingClientRect(), Tt = (e, t) => t.querySelector(`*[data-tag="${e}"]`), st = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, pt].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, pt].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
|
|
3759
3769
|
const t = e.parentElement, a = document.createElement("span");
|
|
3760
|
-
return a.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", a.dataset.block =
|
|
3770
|
+
return a.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", a.dataset.block = pt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(a, e.nextElementSibling) : t.appendChild(a), a;
|
|
3761
3771
|
}, Ts = (e, t, a, l) => {
|
|
3762
|
-
let
|
|
3763
|
-
if (e.dataset.block ===
|
|
3764
|
-
const
|
|
3765
|
-
t - parseFloat(
|
|
3772
|
+
let i = null;
|
|
3773
|
+
if (e.dataset.block === ht && !e.dataset.used) {
|
|
3774
|
+
const n = window.getComputedStyle(e);
|
|
3775
|
+
t - parseFloat(n.paddingTop) - parseFloat(n.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
|
|
3766
3776
|
} else
|
|
3767
|
-
e.dataset.block === $t ?
|
|
3768
|
-
return
|
|
3777
|
+
e.dataset.block === $t ? i = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < a - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > a || t > a / 3 && e.offsetHeight + (e.offsetHeight > a / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (i = e);
|
|
3778
|
+
return i;
|
|
3769
3779
|
}, It = (e, t, a) => {
|
|
3770
|
-
const l = e.textContent || "",
|
|
3771
|
-
e.innerHTML =
|
|
3772
|
-
const
|
|
3773
|
-
if (
|
|
3780
|
+
const l = e.textContent || "", i = l.split("").map((c) => `<span>${c}</span>`).join("");
|
|
3781
|
+
e.innerHTML = i;
|
|
3782
|
+
const n = [...Array.from(e.children)].findIndex((c) => he(c).top - t + c.offsetHeight > a);
|
|
3783
|
+
if (n < 1)
|
|
3774
3784
|
return e.innerHTML = l, e;
|
|
3775
3785
|
const o = document.createElement("span");
|
|
3776
|
-
o.textContent = l.slice(0,
|
|
3786
|
+
o.textContent = l.slice(0, n);
|
|
3777
3787
|
const s = document.createElement("span");
|
|
3778
|
-
return s.textContent = l.slice(
|
|
3779
|
-
},
|
|
3780
|
-
const l =
|
|
3781
|
-
let
|
|
3782
|
-
return
|
|
3788
|
+
return s.textContent = l.slice(n), e.innerHTML = "", e.append(o, s), o;
|
|
3789
|
+
}, it = (e, t, a) => {
|
|
3790
|
+
const l = st("", e.parentElement), i = l.findIndex((o) => o === e);
|
|
3791
|
+
let n = l.filter((o, s) => he(o).top + o.offsetHeight - 1 < he(e).top || s < i && he(o).top < he(e).top).reverse()[0];
|
|
3792
|
+
return n || (n = Ve(e), he(n).top + n.offsetHeight - t > a && (n = it(n, t, a))), n;
|
|
3783
3793
|
}, Lt = (e, t, a, l) => {
|
|
3784
|
-
const
|
|
3785
|
-
var j,
|
|
3786
|
-
const
|
|
3787
|
-
const E = he(
|
|
3794
|
+
const i = (o, s = a) => {
|
|
3795
|
+
var j, T, z;
|
|
3796
|
+
const c = o.map((v) => {
|
|
3797
|
+
const E = he(v);
|
|
3788
3798
|
return {
|
|
3789
|
-
el:
|
|
3799
|
+
el: v,
|
|
3790
3800
|
top: E.top - t,
|
|
3791
3801
|
left: E.left
|
|
3792
3802
|
};
|
|
3793
|
-
}), d =
|
|
3794
|
-
if (!
|
|
3795
|
-
const
|
|
3796
|
-
return (
|
|
3803
|
+
}), d = c.filter((v) => v.el.offsetHeight + v.top > s).sort((v, E) => v.top - E.top), h = (j = d.shift()) == null ? void 0 : j.el;
|
|
3804
|
+
if (!h) {
|
|
3805
|
+
const v = document.createElement("div");
|
|
3806
|
+
return (T = o[0].parentElement) == null || T.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
|
|
3797
3807
|
}
|
|
3798
|
-
const
|
|
3799
|
-
if (d.filter((
|
|
3800
|
-
const
|
|
3801
|
-
if (
|
|
3802
|
-
const E =
|
|
3803
|
-
return
|
|
3808
|
+
const B = he(h), p = B.top - t, F = B.left;
|
|
3809
|
+
if (d.filter((v) => v.top < p + h.offsetHeight && v.top + v.el.offsetHeight - 1 > p && (v.left + v.el.offsetWidth - 1 < F || v.left + 1 > F + h.offsetWidth)).length) {
|
|
3810
|
+
const v = (z = c.filter((E) => E.top < p).pop()) == null ? void 0 : z.el;
|
|
3811
|
+
if (v != null && v.children.length) {
|
|
3812
|
+
const E = st(v);
|
|
3813
|
+
return i(E, p) || v;
|
|
3804
3814
|
} else
|
|
3805
|
-
return
|
|
3815
|
+
return v ? he(v).top - t + v.offsetHeight > p ? It(v, t, p) : v : it(h.parentElement, t, p);
|
|
3806
3816
|
} else {
|
|
3807
|
-
const
|
|
3808
|
-
if (
|
|
3809
|
-
return
|
|
3810
|
-
const E = Ts(
|
|
3817
|
+
const v = getComputedStyle(h);
|
|
3818
|
+
if (p + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > s)
|
|
3819
|
+
return it(h, t, p);
|
|
3820
|
+
const E = Ts(h, s - p, s, l);
|
|
3811
3821
|
if (E)
|
|
3812
3822
|
return Ve(E);
|
|
3813
|
-
if (
|
|
3814
|
-
const W =
|
|
3815
|
-
return
|
|
3823
|
+
if (h.children.length) {
|
|
3824
|
+
const W = st(h);
|
|
3825
|
+
return i(W, s);
|
|
3816
3826
|
} else
|
|
3817
|
-
return It(
|
|
3827
|
+
return It(h, t, s);
|
|
3818
3828
|
}
|
|
3819
|
-
},
|
|
3820
|
-
return { cut: Ss(
|
|
3829
|
+
}, n = i([e]);
|
|
3830
|
+
return { cut: Ss(n), targetEl: n };
|
|
3821
3831
|
}, Is = (e) => {
|
|
3822
|
-
const { el: t, data: a, column: l, backColumn:
|
|
3832
|
+
const { el: t, data: a, column: l, backColumn: i, getColSize: n, change: o } = e;
|
|
3823
3833
|
if (!t || !a.length) {
|
|
3824
3834
|
o([], !0);
|
|
3825
3835
|
return;
|
|
3826
3836
|
}
|
|
3827
3837
|
console.time("layout");
|
|
3828
3838
|
const s = he(t).top;
|
|
3829
|
-
let
|
|
3830
|
-
const
|
|
3831
|
-
const E =
|
|
3832
|
-
|
|
3839
|
+
let c = {}, d = 0, h = 0;
|
|
3840
|
+
const B = (v) => {
|
|
3841
|
+
const E = v % (l + i), W = Math.floor(v / (l + i)) * 2 + (E >= l ? 1 : 0), N = n(v, W);
|
|
3842
|
+
c = {
|
|
3833
3843
|
top: s,
|
|
3834
|
-
width: parseFloat(
|
|
3835
|
-
height: parseFloat(
|
|
3844
|
+
width: parseFloat(N.width),
|
|
3845
|
+
height: parseFloat(N.height)
|
|
3836
3846
|
};
|
|
3837
3847
|
};
|
|
3838
|
-
let
|
|
3839
|
-
const
|
|
3840
|
-
|
|
3848
|
+
let p = [], F = 0;
|
|
3849
|
+
const O = () => {
|
|
3850
|
+
B(p.length), t.style.width = `${c.width}px`, p.push({
|
|
3841
3851
|
top: 0,
|
|
3842
3852
|
data: [],
|
|
3843
|
-
width:
|
|
3844
|
-
height:
|
|
3845
|
-
}), o([...
|
|
3853
|
+
width: c.width,
|
|
3854
|
+
height: c.height
|
|
3855
|
+
}), o([...p]);
|
|
3846
3856
|
};
|
|
3847
|
-
|
|
3848
|
-
const j = (
|
|
3849
|
-
const E = getComputedStyle(
|
|
3850
|
-
return he(
|
|
3851
|
-
},
|
|
3852
|
-
const E = getComputedStyle(
|
|
3853
|
-
return he(
|
|
3854
|
-
}, z = (
|
|
3855
|
-
if (F >= a.length || !Object.keys(
|
|
3856
|
-
o([...
|
|
3857
|
+
O();
|
|
3858
|
+
const j = (v) => {
|
|
3859
|
+
const E = getComputedStyle(v);
|
|
3860
|
+
return he(v).top - c.top + parseFloat(E.borderTop) + parseFloat(E.paddingTop) + parseFloat(E.lineHeight) > p[p.length - 1].height;
|
|
3861
|
+
}, T = (v) => {
|
|
3862
|
+
const E = getComputedStyle(v);
|
|
3863
|
+
return he(v).top + v.offsetHeight - c.top - (v.dataset.block === ke ? 0 : parseFloat(E.paddingBottom) - parseFloat(E.borderBottom)) <= p[p.length - 1].height;
|
|
3864
|
+
}, z = (v = JSON.parse(JSON.stringify(a[F] || {}))) => {
|
|
3865
|
+
if (F >= a.length || !Object.keys(v).length) {
|
|
3866
|
+
o([...p], !0), console.timeEnd("layout"), p = [], d = 0;
|
|
3857
3867
|
return;
|
|
3858
3868
|
}
|
|
3859
|
-
|
|
3860
|
-
const E = Tt(
|
|
3861
|
-
let
|
|
3862
|
-
if (
|
|
3863
|
-
const _ = E.querySelector(`*[data-hutkey="${
|
|
3864
|
-
|
|
3869
|
+
p[p.length - 1].data.push({ ...v }), o([...p]), window.requestAnimationFrame(() => {
|
|
3870
|
+
const E = Tt(v.__tag__, t), W = !v.isHidden && he(E);
|
|
3871
|
+
let N = null;
|
|
3872
|
+
if (h) {
|
|
3873
|
+
const _ = E.querySelector(`*[data-hutkey="${h}"]`), C = he(_);
|
|
3874
|
+
p[p.length - 1].top = c.top - C.top, p[p.length - 1].height = c.height - p[p.length - 1].top, h = 0;
|
|
3865
3875
|
}
|
|
3866
|
-
if (W && W.height + W.top -
|
|
3867
|
-
if (
|
|
3868
|
-
|
|
3869
|
-
else if (
|
|
3870
|
-
|
|
3876
|
+
if (W && W.height + W.top - c.top > p[p.length - 1].height)
|
|
3877
|
+
if (v.problemType)
|
|
3878
|
+
p[p.length - 1].data.pop(), O(), z({ ...v });
|
|
3879
|
+
else if (T(E))
|
|
3880
|
+
O(), F++, z();
|
|
3871
3881
|
else if (j(E))
|
|
3872
|
-
|
|
3882
|
+
p[p.length - 1].data.pop(), O(), z({ ...v });
|
|
3873
3883
|
else {
|
|
3874
|
-
|
|
3875
|
-
const _ = E.querySelector(`*[data-content="${
|
|
3876
|
-
|
|
3884
|
+
N = Lt(E, c.top, p[p.length - 1].height, p.length % (l + i) >= l);
|
|
3885
|
+
const _ = E.querySelector(`*[data-content="${v.id}"]`);
|
|
3886
|
+
p[p.length - 1].height = he(N.cut).top - c.top, O(), _ != null && _.contains(N.cut) ? (h = Date.now(), N.cut.dataset.hutkey = h, z({ ...v, content: _.innerHTML })) : (p[p.length - 1].data.pop(), z({ ...v }));
|
|
3877
3887
|
}
|
|
3878
3888
|
else {
|
|
3879
3889
|
let _ = [], C = [];
|
|
3880
|
-
|
|
3881
|
-
const
|
|
3890
|
+
v.children.some((w, G) => {
|
|
3891
|
+
const H = Tt(w.__tag__, t), ye = he(H);
|
|
3882
3892
|
if (d) {
|
|
3883
|
-
const pe =
|
|
3884
|
-
|
|
3893
|
+
const pe = H.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
|
|
3894
|
+
p[p.length - 1].top = c.top - ie.top, p[p.length - 1].height = c.height - p[p.length - 1].top, d = 0;
|
|
3885
3895
|
}
|
|
3886
|
-
if (ye.height + ye.top -
|
|
3887
|
-
if (
|
|
3888
|
-
_.push(w), C =
|
|
3889
|
-
else if (j(
|
|
3890
|
-
C =
|
|
3896
|
+
if (ye.height + ye.top - c.top > p[p.length - 1].height) {
|
|
3897
|
+
if (T(H))
|
|
3898
|
+
_.push(w), C = G < v.children.length - 1 ? v.children.slice(G + 1) : [];
|
|
3899
|
+
else if (j(H))
|
|
3900
|
+
C = v.children.slice(G);
|
|
3891
3901
|
else {
|
|
3892
|
-
|
|
3893
|
-
const pe =
|
|
3894
|
-
if (
|
|
3895
|
-
_.push(w), C =
|
|
3896
|
-
else if (pe && pe.contains(
|
|
3897
|
-
d = Date.now(),
|
|
3902
|
+
N = Lt(H, c.top, p[p.length - 1].height, p.length % (l + i) >= l);
|
|
3903
|
+
const pe = H.querySelector(`*[data-content="${w.id}"]`);
|
|
3904
|
+
if (H === N.targetEl)
|
|
3905
|
+
_.push(w), C = G < v.children.length - 1 ? v.children.slice(G + 1) : [];
|
|
3906
|
+
else if (pe && pe.contains(N.cut))
|
|
3907
|
+
d = Date.now(), N.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...G < v.children.length - 1 ? v.children.slice(G + 1) : []], p[p.length - 1].height = he(N.cut).top - c.top;
|
|
3898
3908
|
else {
|
|
3899
3909
|
if (!C.length) {
|
|
3900
3910
|
let ie = { ...w };
|
|
3901
3911
|
switch (w.problemType) {
|
|
3902
|
-
case
|
|
3903
|
-
const fe =
|
|
3904
|
-
fe != null && fe.contains(
|
|
3912
|
+
case lt.slove:
|
|
3913
|
+
const fe = H.querySelector(`*[data-area="${w.id}"]`);
|
|
3914
|
+
fe != null && fe.contains(N.cut) && (d = Date.now(), N.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), H.contains(N.targetEl) && (w.chunk += 1);
|
|
3905
3915
|
break;
|
|
3906
|
-
case
|
|
3907
|
-
const ue =
|
|
3908
|
-
if (ue != null && ue.contains(
|
|
3909
|
-
d = Date.now(),
|
|
3910
|
-
else if (
|
|
3911
|
-
const
|
|
3916
|
+
case lt.art:
|
|
3917
|
+
const ue = H.querySelector(`*[data-bart="${w.id}"]`), D = N.targetEl.dataset.block === ke && N.targetEl.dataset.size ? N.targetEl : null, $ = H.querySelector(`*[data-aart="${w.id}"]`);
|
|
3918
|
+
if (ue != null && ue.contains(N.cut))
|
|
3919
|
+
d = Date.now(), N.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
|
|
3920
|
+
else if (D) {
|
|
3921
|
+
const S = parseInt(D.dataset.size);
|
|
3912
3922
|
if (!w.artBlock)
|
|
3913
|
-
if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen >
|
|
3914
|
-
const K =
|
|
3915
|
-
if (we.height + we.top -
|
|
3923
|
+
if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > S) {
|
|
3924
|
+
const K = H.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
|
|
3925
|
+
if (we.height + we.top - c.top > c.height) {
|
|
3916
3926
|
K.innerHTML = w.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
|
|
3917
|
-
const ae = he(
|
|
3927
|
+
const ae = he(D).top + D.offsetHeight, re = [...Array.from(K.children)].findIndex((be) => he(be).top > ae);
|
|
3918
3928
|
ie.beforeGuide = w.beforeGuide.substring(0, re), w.beforeGuide = w.beforeGuide.substring(re);
|
|
3919
3929
|
} else
|
|
3920
3930
|
w.beforeGuide = "";
|
|
3921
3931
|
} else
|
|
3922
3932
|
w.beforeGuide = "";
|
|
3923
|
-
ie.endAnswerLen =
|
|
3933
|
+
ie.endAnswerLen = S, w.startAnswerLen = S;
|
|
3924
3934
|
} else
|
|
3925
|
-
|
|
3926
|
-
|
|
3935
|
+
$ != null && $.contains(N.cut) ? (d = Date.now(), N.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = $.innerHTML) : N.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === N.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
|
|
3936
|
+
H.contains(N.targetEl) && (w.chunk += 1);
|
|
3927
3937
|
break;
|
|
3928
3938
|
}
|
|
3929
|
-
|
|
3939
|
+
H.contains(N.targetEl) && _.push(ie), d && (p[p.length - 1].height = he(N.cut).top - c.top);
|
|
3930
3940
|
}
|
|
3931
|
-
C = [w, ...
|
|
3941
|
+
C = [w, ...G < v.children.length - 1 ? v.children.slice(G + 1) : []];
|
|
3932
3942
|
}
|
|
3933
3943
|
}
|
|
3934
3944
|
return !0;
|
|
3935
3945
|
} else
|
|
3936
3946
|
_.push(w);
|
|
3937
|
-
}),
|
|
3947
|
+
}), p[p.length - 1].data[p[p.length - 1].data.length - 1].children = _, C.length ? (O(), z({ ...v, isHidden: !0, children: C })) : (o([...p]), F++, z());
|
|
3938
3948
|
}
|
|
3939
3949
|
});
|
|
3940
3950
|
};
|
|
3941
3951
|
z();
|
|
3942
3952
|
}, zt = window.CKEDITOR;
|
|
3943
3953
|
zt.disableAutoInline = !0;
|
|
3944
|
-
const
|
|
3954
|
+
const mt = `dx${Math.random().toString(32).substring(2)}`;
|
|
3945
3955
|
function Ls(e, t) {
|
|
3946
|
-
return zt[e](
|
|
3956
|
+
return zt[e](mt, {
|
|
3947
3957
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
3948
3958
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
3949
3959
|
});
|
|
@@ -3957,71 +3967,71 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
3957
3967
|
},
|
|
3958
3968
|
emits: ["change", "focus", "blur"],
|
|
3959
3969
|
setup(e, { emit: t }) {
|
|
3960
|
-
const a = e, l = Wt("ckeditorOrigin", ""),
|
|
3961
|
-
|
|
3962
|
-
const
|
|
3970
|
+
const a = e, l = Wt("ckeditorOrigin", ""), i = q();
|
|
3971
|
+
Me(() => a.readonly, () => n()), Xe(() => n());
|
|
3972
|
+
const n = () => {
|
|
3963
3973
|
if (window.CKEDITOR) {
|
|
3964
3974
|
if (a.readonly) {
|
|
3965
|
-
|
|
3975
|
+
i.value && (i.value.destroy(), i.value = null);
|
|
3966
3976
|
return;
|
|
3967
3977
|
}
|
|
3968
3978
|
Je(() => {
|
|
3969
|
-
|
|
3970
|
-
|
|
3979
|
+
i.value = Ls("inline", l), i.value && i.value.on("instanceReady", (d) => {
|
|
3980
|
+
i.value.setData(a.value);
|
|
3971
3981
|
});
|
|
3972
3982
|
});
|
|
3973
3983
|
} else {
|
|
3974
3984
|
const d = document.createElement("script");
|
|
3975
3985
|
d.type = "text/javascript", document.body.appendChild(d), d.onload = () => {
|
|
3976
|
-
|
|
3986
|
+
n();
|
|
3977
3987
|
}, d.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
|
|
3978
3988
|
}
|
|
3979
3989
|
}, o = () => {
|
|
3980
3990
|
t("blur");
|
|
3981
|
-
const d =
|
|
3991
|
+
const d = c(i.value.getData());
|
|
3982
3992
|
d !== a.value && t("change", d, a.name);
|
|
3983
3993
|
}, s = () => {
|
|
3984
3994
|
t("focus");
|
|
3985
|
-
},
|
|
3986
|
-
const
|
|
3987
|
-
|
|
3988
|
-
const F = window.getComputedStyle(
|
|
3989
|
-
(F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") &&
|
|
3995
|
+
}, c = (d) => {
|
|
3996
|
+
const h = document.createElement("div");
|
|
3997
|
+
h.innerHTML = d, [...Array.from(h.querySelectorAll("*"))].forEach((p) => {
|
|
3998
|
+
const F = window.getComputedStyle(p);
|
|
3999
|
+
(F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && p.remove();
|
|
3990
4000
|
});
|
|
3991
|
-
const
|
|
3992
|
-
[...Array.from(
|
|
3993
|
-
var
|
|
4001
|
+
const B = (p = h) => {
|
|
4002
|
+
[...Array.from(p.childNodes)].forEach((F) => {
|
|
4003
|
+
var O;
|
|
3994
4004
|
if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
|
|
3995
|
-
|
|
4005
|
+
B(F);
|
|
3996
4006
|
else if (F.nodeType === Node.TEXT_NODE) {
|
|
3997
4007
|
const j = document.createElement("span");
|
|
3998
|
-
j.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 && (j.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (z) => z.length > 5 ? `<span style="word-break: break-all">${z}</span>` : z)), (
|
|
4008
|
+
j.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 && (j.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (z) => z.length > 5 ? `<span style="word-break: break-all">${z}</span>` : z)), (O = F.parentElement) == null || O.replaceChild(j, F);
|
|
3999
4009
|
}
|
|
4000
4010
|
});
|
|
4001
4011
|
};
|
|
4002
|
-
return
|
|
4012
|
+
return B(), h.innerHTML;
|
|
4003
4013
|
};
|
|
4004
|
-
return (d,
|
|
4005
|
-
a.readonly ? (
|
|
4014
|
+
return (d, h) => (r(), u("div", Fs, [
|
|
4015
|
+
a.readonly ? (r(), V(Ae, {
|
|
4006
4016
|
key: 1,
|
|
4007
4017
|
data: a.value,
|
|
4008
4018
|
class: "raw_view"
|
|
4009
|
-
}, null, 8, ["data"])) : (
|
|
4019
|
+
}, null, 8, ["data"])) : (r(), u("div", {
|
|
4010
4020
|
key: 0,
|
|
4011
4021
|
class: "overflow-auto outline-none whitespace-normal editor_view",
|
|
4012
4022
|
disabled: a.readonly,
|
|
4013
4023
|
contentEditable: !a.readonly,
|
|
4014
|
-
id: x(
|
|
4024
|
+
id: x(mt),
|
|
4015
4025
|
onFocus: s,
|
|
4016
4026
|
onBlur: o
|
|
4017
4027
|
}, null, 40, Es))
|
|
4018
4028
|
]));
|
|
4019
4029
|
}
|
|
4020
4030
|
});
|
|
4021
|
-
const
|
|
4031
|
+
const Ds = /* @__PURE__ */ de(Ps, [["__scopeId", "data-v-1398ac85"]]);
|
|
4022
4032
|
let Ye = (e) => {
|
|
4023
4033
|
};
|
|
4024
|
-
const
|
|
4034
|
+
const Ms = {
|
|
4025
4035
|
updated: function(e, t) {
|
|
4026
4036
|
document.body.removeEventListener("click", Ye), Ye = (a) => {
|
|
4027
4037
|
!e.contains(a.target) && t.value && t.value(a);
|
|
@@ -4031,27 +4041,27 @@ const Ds = {
|
|
|
4031
4041
|
document.body.removeEventListener("click", Ye);
|
|
4032
4042
|
}
|
|
4033
4043
|
};
|
|
4034
|
-
let
|
|
4044
|
+
let at = null;
|
|
4035
4045
|
const As = {
|
|
4036
4046
|
mounted: (e, t) => {
|
|
4037
|
-
let a = {}, l = !1,
|
|
4038
|
-
const
|
|
4039
|
-
|
|
4040
|
-
l = !0,
|
|
4041
|
-
const
|
|
4042
|
-
a = { x: d.clientX, y: d.clientY }, o = { x: parseInt(
|
|
4047
|
+
let a = {}, l = !1, i = !1, n = e.offsetParent, o = {}, s = {};
|
|
4048
|
+
const c = e.querySelector(".move-target") || e;
|
|
4049
|
+
c.style.cursor = "move", c.addEventListener("mousedown", (d) => {
|
|
4050
|
+
l = !0, i = !!e.dataset.safe, n = e.offsetParent;
|
|
4051
|
+
const h = window.getComputedStyle(e);
|
|
4052
|
+
a = { x: d.clientX, y: d.clientY }, o = { x: parseInt(h.left), y: parseInt(h.top) };
|
|
4043
4053
|
}), document.addEventListener("mouseup", (d) => {
|
|
4044
4054
|
l = !1;
|
|
4045
|
-
}),
|
|
4055
|
+
}), at = (d) => {
|
|
4046
4056
|
if (!l || e.getAttribute("disabled") === "true")
|
|
4047
4057
|
return;
|
|
4048
4058
|
d.stopPropagation(), d.preventDefault(), s = { x: d.clientX, y: d.clientY };
|
|
4049
|
-
const
|
|
4050
|
-
e.style.left = `${
|
|
4051
|
-
}, document.addEventListener("mousemove",
|
|
4059
|
+
const h = i ? Math.min(Math.max(s.x - a.x + o.x, 0), n.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, B = i ? Math.min(Math.max(s.y - a.y + o.y, 0), n.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
|
|
4060
|
+
e.style.left = `${h}px`, e.style.top = `${B}px`, t.value && typeof t.value == "function" && t.value({ x: h, y: B });
|
|
4061
|
+
}, document.addEventListener("mousemove", at);
|
|
4052
4062
|
},
|
|
4053
4063
|
unmounted: () => {
|
|
4054
|
-
document.removeEventListener("mousemove",
|
|
4064
|
+
document.removeEventListener("mousemove", at);
|
|
4055
4065
|
}
|
|
4056
4066
|
}, 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__ */ ee({
|
|
4057
4067
|
__name: "absItem",
|
|
@@ -4063,7 +4073,7 @@ const As = {
|
|
|
4063
4073
|
},
|
|
4064
4074
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4065
4075
|
setup(e, { emit: t }) {
|
|
4066
|
-
const a = e, l =
|
|
4076
|
+
const a = e, l = Ms, i = As, n = [
|
|
4067
4077
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4068
4078
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4069
4079
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4072,49 +4082,49 @@ const As = {
|
|
|
4072
4082
|
{ left: "0", top: "100%", cursor: "nesw-resize" },
|
|
4073
4083
|
{ left: "50%", top: "100%", cursor: "ns-resize" },
|
|
4074
4084
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4075
|
-
], o =
|
|
4076
|
-
...
|
|
4077
|
-
top:
|
|
4078
|
-
}))),
|
|
4079
|
-
...
|
|
4080
|
-
top:
|
|
4081
|
-
}))), E = A(() =>
|
|
4085
|
+
], o = q({}), s = q(), c = q(0), d = q(0), h = q(), B = q(), p = q({}), F = q(!1), O = q(), j = q(), T = q(), z = A(() => a.imgData.map((D) => ({
|
|
4086
|
+
...D,
|
|
4087
|
+
top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
|
|
4088
|
+
}))), v = A(() => a.txtData.map((D) => ({
|
|
4089
|
+
...D,
|
|
4090
|
+
top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
|
|
4091
|
+
}))), E = A(() => O.value ? O.value.split("-")[0] === "img" ? z.value.find(($) => $.key === O.value) : v.value.find(($) => $.key === O.value) : null), W = A(() => E.value ? { [E.value.key]: { ...s.value } } : {});
|
|
4082
4092
|
Xe(() => {
|
|
4083
|
-
|
|
4093
|
+
h.value = document.body.querySelector(".__layout__");
|
|
4084
4094
|
});
|
|
4085
|
-
const
|
|
4086
|
-
s.value = { ...E.value, left: Math.max(
|
|
4087
|
-
var
|
|
4088
|
-
((
|
|
4095
|
+
const N = (D) => {
|
|
4096
|
+
s.value = { ...E.value, left: Math.max(D.x, 0), top: Math.max(D.y, 0) }, clearTimeout(B.value), B.value = setTimeout(() => {
|
|
4097
|
+
var $;
|
|
4098
|
+
(($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4089
4099
|
}, 400);
|
|
4090
|
-
}, _ = (
|
|
4091
|
-
F.value =
|
|
4100
|
+
}, _ = (D) => {
|
|
4101
|
+
F.value = D;
|
|
4092
4102
|
}, C = () => {
|
|
4093
|
-
const
|
|
4094
|
-
|
|
4095
|
-
}, w = (
|
|
4096
|
-
|
|
4097
|
-
const
|
|
4103
|
+
const D = E.value, $ = D.left + D.width / 2, S = D.top + D.height / 2, K = h.value.getBoundingClientRect() || {};
|
|
4104
|
+
p.value = { x: $ + K.left, y: S + K.top }, h.value.addEventListener("mousemove", w), h.value.addEventListener("mouseleave", G), h.value.addEventListener("mouseup", G);
|
|
4105
|
+
}, w = (D) => {
|
|
4106
|
+
D.stopPropagation(), D.preventDefault();
|
|
4107
|
+
const $ = D.clientX - p.value.x, S = p.value.y - D.clientY, K = Math.atan2(S, $) / (Math.PI / 180);
|
|
4098
4108
|
s.value = { ...E.value, rotate: -parseInt(K.toString()) };
|
|
4099
|
-
},
|
|
4100
|
-
|
|
4101
|
-
},
|
|
4102
|
-
var
|
|
4103
|
-
|
|
4104
|
-
}, ye = (
|
|
4105
|
-
const
|
|
4109
|
+
}, G = (D) => {
|
|
4110
|
+
D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", s.value), h.value.removeEventListener("mousemove", w), h.value.removeEventListener("mouseleave", G), h.value.removeEventListener("mouseup", G);
|
|
4111
|
+
}, H = (D, $) => {
|
|
4112
|
+
var S;
|
|
4113
|
+
D.stopPropagation(), c.value = $, o.value = { x: D.clientX, y: D.clientY, ...E.value }, ((S = E.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? h.value.addEventListener("mousemove", ye) : h.value.addEventListener("mousemove", pe), h.value.addEventListener("mouseleave", ie), h.value.addEventListener("mouseup", ie);
|
|
4114
|
+
}, ye = (D) => {
|
|
4115
|
+
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...E.value }, K = $.x > $.y ? "width" : "height";
|
|
4106
4116
|
[
|
|
4107
4117
|
// 0
|
|
4108
4118
|
() => {
|
|
4109
4119
|
const ae = {
|
|
4110
|
-
width: o.value.width -
|
|
4111
|
-
height: o.value.width * (1 -
|
|
4120
|
+
width: o.value.width - $.x,
|
|
4121
|
+
height: o.value.width * (1 - $.y / o.value.height)
|
|
4112
4122
|
}[K], re = {
|
|
4113
|
-
width: o.value.height * (1 -
|
|
4114
|
-
height: o.value.height -
|
|
4123
|
+
width: o.value.height * (1 - $.x / o.value.width),
|
|
4124
|
+
height: o.value.height - $.y
|
|
4115
4125
|
}[K];
|
|
4116
4126
|
s.value = {
|
|
4117
|
-
...
|
|
4127
|
+
...S,
|
|
4118
4128
|
width: ae,
|
|
4119
4129
|
height: re,
|
|
4120
4130
|
left: o.value.left - (ae - o.value.width),
|
|
@@ -4123,9 +4133,9 @@ const As = {
|
|
|
4123
4133
|
},
|
|
4124
4134
|
// 1
|
|
4125
4135
|
() => {
|
|
4126
|
-
const ae = o.value.width * (1 -
|
|
4136
|
+
const ae = o.value.width * (1 - $.y / o.value.height), re = o.value.height - $.y;
|
|
4127
4137
|
s.value = {
|
|
4128
|
-
...
|
|
4138
|
+
...S,
|
|
4129
4139
|
width: ae,
|
|
4130
4140
|
height: re,
|
|
4131
4141
|
left: o.value.left - (ae - o.value.width) / 2,
|
|
@@ -4135,14 +4145,14 @@ const As = {
|
|
|
4135
4145
|
// 2
|
|
4136
4146
|
() => {
|
|
4137
4147
|
const ae = {
|
|
4138
|
-
width: o.value.height * (1 +
|
|
4139
|
-
height: o.value.height -
|
|
4148
|
+
width: o.value.height * (1 + $.x / o.value.width),
|
|
4149
|
+
height: o.value.height - $.y
|
|
4140
4150
|
}[K];
|
|
4141
4151
|
s.value = {
|
|
4142
|
-
...
|
|
4152
|
+
...S,
|
|
4143
4153
|
width: {
|
|
4144
|
-
width: o.value.width +
|
|
4145
|
-
height: o.value.width * (1 -
|
|
4154
|
+
width: o.value.width + $.x,
|
|
4155
|
+
height: o.value.width * (1 - $.y / o.value.height)
|
|
4146
4156
|
}[K],
|
|
4147
4157
|
height: ae,
|
|
4148
4158
|
top: o.value.top - (ae - o.value.height)
|
|
@@ -4150,9 +4160,9 @@ const As = {
|
|
|
4150
4160
|
},
|
|
4151
4161
|
// 3
|
|
4152
4162
|
() => {
|
|
4153
|
-
const ae = o.value.width -
|
|
4163
|
+
const ae = o.value.width - $.x, re = o.value.height * (1 - $.x / o.value.width);
|
|
4154
4164
|
s.value = {
|
|
4155
|
-
...
|
|
4165
|
+
...S,
|
|
4156
4166
|
width: ae,
|
|
4157
4167
|
height: re,
|
|
4158
4168
|
left: o.value.left - (ae - o.value.width),
|
|
@@ -4161,9 +4171,9 @@ const As = {
|
|
|
4161
4171
|
},
|
|
4162
4172
|
// 4
|
|
4163
4173
|
() => {
|
|
4164
|
-
const ae = o.value.width +
|
|
4174
|
+
const ae = o.value.width + $.x, re = o.value.height * (1 + $.x / o.value.width);
|
|
4165
4175
|
s.value = {
|
|
4166
|
-
...
|
|
4176
|
+
...S,
|
|
4167
4177
|
width: ae,
|
|
4168
4178
|
height: re,
|
|
4169
4179
|
top: o.value.top - (re - o.value.height) / 2
|
|
@@ -4172,14 +4182,14 @@ const As = {
|
|
|
4172
4182
|
// 5
|
|
4173
4183
|
() => {
|
|
4174
4184
|
const ae = {
|
|
4175
|
-
width: o.value.width -
|
|
4176
|
-
height: o.value.width * (1 +
|
|
4185
|
+
width: o.value.width - $.x,
|
|
4186
|
+
height: o.value.width * (1 + $.y / o.value.height)
|
|
4177
4187
|
}[K], re = {
|
|
4178
|
-
width: o.value.height * (1 -
|
|
4179
|
-
height: o.value.height +
|
|
4188
|
+
width: o.value.height * (1 - $.x / o.value.width),
|
|
4189
|
+
height: o.value.height + $.y
|
|
4180
4190
|
}[K];
|
|
4181
4191
|
s.value = {
|
|
4182
|
-
...
|
|
4192
|
+
...S,
|
|
4183
4193
|
width: ae,
|
|
4184
4194
|
height: re,
|
|
4185
4195
|
left: o.value.left - (ae - o.value.width)
|
|
@@ -4187,9 +4197,9 @@ const As = {
|
|
|
4187
4197
|
},
|
|
4188
4198
|
// 6
|
|
4189
4199
|
() => {
|
|
4190
|
-
const ae = o.value.width * (1 +
|
|
4200
|
+
const ae = o.value.width * (1 + $.y / o.value.height), re = o.value.height + $.y;
|
|
4191
4201
|
s.value = {
|
|
4192
|
-
...
|
|
4202
|
+
...S,
|
|
4193
4203
|
width: ae,
|
|
4194
4204
|
height: re,
|
|
4195
4205
|
left: o.value.left - (ae - o.value.width) / 2
|
|
@@ -4198,111 +4208,111 @@ const As = {
|
|
|
4198
4208
|
// 7
|
|
4199
4209
|
() => {
|
|
4200
4210
|
const ae = {
|
|
4201
|
-
width: o.value.width +
|
|
4202
|
-
height: o.value.width * (1 +
|
|
4211
|
+
width: o.value.width + $.x,
|
|
4212
|
+
height: o.value.width * (1 + $.y / o.value.height)
|
|
4203
4213
|
}[K], re = {
|
|
4204
|
-
width: o.value.height * (1 +
|
|
4205
|
-
height: o.value.height +
|
|
4214
|
+
width: o.value.height * (1 + $.x / o.value.width),
|
|
4215
|
+
height: o.value.height + $.y
|
|
4206
4216
|
}[K];
|
|
4207
4217
|
s.value = {
|
|
4208
|
-
...
|
|
4218
|
+
...S,
|
|
4209
4219
|
width: ae,
|
|
4210
4220
|
height: re
|
|
4211
4221
|
};
|
|
4212
4222
|
}
|
|
4213
|
-
][
|
|
4214
|
-
}, pe = (
|
|
4215
|
-
const
|
|
4223
|
+
][c.value]();
|
|
4224
|
+
}, pe = (D) => {
|
|
4225
|
+
const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...E.value }, K = [
|
|
4216
4226
|
{
|
|
4217
|
-
...
|
|
4218
|
-
width: o.value.width -
|
|
4219
|
-
height: o.value.height -
|
|
4220
|
-
left: o.value.left +
|
|
4221
|
-
top: o.value.top +
|
|
4227
|
+
...S,
|
|
4228
|
+
width: o.value.width - $.x,
|
|
4229
|
+
height: o.value.height - $.y,
|
|
4230
|
+
left: o.value.left + $.x,
|
|
4231
|
+
top: o.value.top + $.y
|
|
4222
4232
|
},
|
|
4223
4233
|
{
|
|
4224
|
-
...
|
|
4225
|
-
height: o.value.height -
|
|
4226
|
-
top: o.value.top +
|
|
4234
|
+
...S,
|
|
4235
|
+
height: o.value.height - $.y,
|
|
4236
|
+
top: o.value.top + $.y
|
|
4227
4237
|
},
|
|
4228
4238
|
{
|
|
4229
|
-
...
|
|
4230
|
-
width: o.value.width +
|
|
4231
|
-
height: o.value.height -
|
|
4232
|
-
top: o.value.top +
|
|
4239
|
+
...S,
|
|
4240
|
+
width: o.value.width + $.x,
|
|
4241
|
+
height: o.value.height - $.y,
|
|
4242
|
+
top: o.value.top + $.y
|
|
4233
4243
|
},
|
|
4234
4244
|
{
|
|
4235
|
-
...
|
|
4236
|
-
width: o.value.width -
|
|
4237
|
-
left: o.value.left +
|
|
4245
|
+
...S,
|
|
4246
|
+
width: o.value.width - $.x,
|
|
4247
|
+
left: o.value.left + $.x
|
|
4238
4248
|
},
|
|
4239
4249
|
{
|
|
4240
|
-
...
|
|
4241
|
-
width: o.value.width +
|
|
4250
|
+
...S,
|
|
4251
|
+
width: o.value.width + $.x
|
|
4242
4252
|
},
|
|
4243
4253
|
{
|
|
4244
|
-
...
|
|
4245
|
-
width: o.value.width -
|
|
4246
|
-
height: o.value.height +
|
|
4247
|
-
left: o.value.left +
|
|
4254
|
+
...S,
|
|
4255
|
+
width: o.value.width - $.x,
|
|
4256
|
+
height: o.value.height + $.y,
|
|
4257
|
+
left: o.value.left + $.x
|
|
4248
4258
|
},
|
|
4249
4259
|
{
|
|
4250
|
-
...
|
|
4251
|
-
height: o.value.height +
|
|
4260
|
+
...S,
|
|
4261
|
+
height: o.value.height + $.y
|
|
4252
4262
|
},
|
|
4253
4263
|
{
|
|
4254
|
-
...
|
|
4255
|
-
width: o.value.width +
|
|
4256
|
-
height: o.value.height +
|
|
4264
|
+
...S,
|
|
4265
|
+
width: o.value.width + $.x,
|
|
4266
|
+
height: o.value.height + $.y
|
|
4257
4267
|
}
|
|
4258
4268
|
];
|
|
4259
|
-
s.value = K[
|
|
4269
|
+
s.value = K[c.value];
|
|
4260
4270
|
}, ie = () => {
|
|
4261
|
-
var
|
|
4262
|
-
|
|
4263
|
-
}, fe = (
|
|
4264
|
-
if (!
|
|
4271
|
+
var D;
|
|
4272
|
+
h.value.removeEventListener("mousemove", ye), h.value.removeEventListener("mousemove", pe), h.value.removeEventListener("mouseleave", ie), h.value.removeEventListener("mouseup", ie), ((D = E.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
|
|
4273
|
+
}, fe = (D) => {
|
|
4274
|
+
if (!D || D === E.value.content) {
|
|
4265
4275
|
d.value++;
|
|
4266
4276
|
return;
|
|
4267
4277
|
}
|
|
4268
|
-
t("changeAbsTxtItem", { ...E.value, content:
|
|
4269
|
-
}, ue = (
|
|
4278
|
+
t("changeAbsTxtItem", { ...E.value, content: D });
|
|
4279
|
+
}, ue = (D, $) => {
|
|
4270
4280
|
var K;
|
|
4271
|
-
const
|
|
4272
|
-
!
|
|
4281
|
+
const S = document.body.querySelector(`.cke_editor_${mt}`);
|
|
4282
|
+
!D && ((K = ($ == null ? void 0 : $.target).dataset) != null && K.safe || [...j.value, ...T.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (O.value = D == null ? void 0 : D.key, s.value = D ? { ...D } : null);
|
|
4273
4283
|
};
|
|
4274
|
-
return (
|
|
4275
|
-
(
|
|
4276
|
-
var K, we, ae, re, be,
|
|
4277
|
-
return
|
|
4278
|
-
key:
|
|
4284
|
+
return (D, $) => (r(), u(P, null, [
|
|
4285
|
+
(r(!0), u(P, null, Z(z.value, (S) => {
|
|
4286
|
+
var K, we, ae, re, be, b, I;
|
|
4287
|
+
return bt((r(), u("div", {
|
|
4288
|
+
key: S.id,
|
|
4279
4289
|
ref_for: !0,
|
|
4280
4290
|
ref_key: "imgViewList",
|
|
4281
4291
|
ref: j,
|
|
4282
4292
|
"data-safe": "true",
|
|
4283
|
-
class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) ===
|
|
4284
|
-
style:
|
|
4285
|
-
onMousedown: Le((le) => ue(
|
|
4293
|
+
class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === S.key ? "z-8" : "z-7"]),
|
|
4294
|
+
style: Q({ left: Math.max(((we = W.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = W.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = W.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = W.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = W.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
|
|
4295
|
+
onMousedown: Le((le) => ue(S), ["stop"]),
|
|
4286
4296
|
"data-block": x(Ee)
|
|
4287
4297
|
}, [
|
|
4288
4298
|
f("img", {
|
|
4289
|
-
src:
|
|
4299
|
+
src: S.url
|
|
4290
4300
|
}, null, 8, Bs),
|
|
4291
|
-
((I = E.value) == null ? void 0 : I.key) ===
|
|
4301
|
+
((I = E.value) == null ? void 0 : I.key) === S.key ? (r(), u(P, { key: 0 }, [
|
|
4292
4302
|
f("span", Os, [
|
|
4293
4303
|
X(_e, {
|
|
4294
4304
|
name: "close",
|
|
4295
4305
|
width: 2,
|
|
4296
4306
|
class: "cursor-pointer",
|
|
4297
|
-
onClick: (le) => t("delAbsImgItem",
|
|
4307
|
+
onClick: (le) => t("delAbsImgItem", S)
|
|
4298
4308
|
}, null, 8, ["onClick"])
|
|
4299
4309
|
]),
|
|
4300
4310
|
f("div", zs, [
|
|
4301
|
-
(
|
|
4311
|
+
(r(), u(P, null, Z(8, (le, Y) => f("div", {
|
|
4302
4312
|
key: le,
|
|
4303
4313
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4304
|
-
style:
|
|
4305
|
-
onMousedown: Le((te) =>
|
|
4314
|
+
style: Q({ ...n[Y], transform: "translate(-50%, -50%)" }),
|
|
4315
|
+
onMousedown: Le((te) => H(te, Y), ["stop"])
|
|
4306
4316
|
}, null, 44, Hs)), 64))
|
|
4307
4317
|
]),
|
|
4308
4318
|
f("span", {
|
|
@@ -4314,56 +4324,56 @@ const As = {
|
|
|
4314
4324
|
width: 2
|
|
4315
4325
|
})
|
|
4316
4326
|
], 40, Rs)
|
|
4317
|
-
], 64)) :
|
|
4327
|
+
], 64)) : M("", !0)
|
|
4318
4328
|
], 46, Ns)), [
|
|
4319
|
-
[x(
|
|
4329
|
+
[x(i), N],
|
|
4320
4330
|
[x(l), (le) => ue(null, le)]
|
|
4321
4331
|
]);
|
|
4322
4332
|
}), 128)),
|
|
4323
|
-
(
|
|
4324
|
-
var K, we, ae, re, be,
|
|
4325
|
-
return
|
|
4326
|
-
key:
|
|
4333
|
+
(r(!0), u(P, null, Z(v.value, (S) => {
|
|
4334
|
+
var K, we, ae, re, be, b, I;
|
|
4335
|
+
return bt((r(), u("div", {
|
|
4336
|
+
key: S.id,
|
|
4327
4337
|
ref_for: !0,
|
|
4328
4338
|
ref_key: "txtViewList",
|
|
4329
|
-
ref:
|
|
4339
|
+
ref: T,
|
|
4330
4340
|
disabled: F.value,
|
|
4331
4341
|
"data-safe": "true",
|
|
4332
|
-
class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) ===
|
|
4333
|
-
style:
|
|
4334
|
-
onMousedown: Le((le) => ue(
|
|
4342
|
+
class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === S.key ? "z-8 bg-white" : "z-7"]),
|
|
4343
|
+
style: Q({ left: Math.max(((we = W.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = W.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = W.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = W.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
|
|
4344
|
+
onMousedown: Le((le) => ue(S), ["stop"]),
|
|
4335
4345
|
"data-block": x(Ee)
|
|
4336
4346
|
}, [
|
|
4337
|
-
(
|
|
4347
|
+
(r(), V(Ds, {
|
|
4338
4348
|
key: d.value,
|
|
4339
4349
|
class: "border-0 relative z-4",
|
|
4340
|
-
readonly: ((
|
|
4341
|
-
value:
|
|
4342
|
-
name:
|
|
4350
|
+
readonly: ((b = E.value) == null ? void 0 : b.key) !== S.key,
|
|
4351
|
+
value: S.content,
|
|
4352
|
+
name: S.id.toString(),
|
|
4343
4353
|
onChange: fe,
|
|
4344
|
-
onFocus:
|
|
4345
|
-
onBlur:
|
|
4354
|
+
onFocus: $[0] || ($[0] = (le) => _(!0)),
|
|
4355
|
+
onBlur: $[1] || ($[1] = (le) => _(!1))
|
|
4346
4356
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4347
|
-
((I = E.value) == null ? void 0 : I.key) ===
|
|
4357
|
+
((I = E.value) == null ? void 0 : I.key) === S.key ? (r(), u(P, { key: 0 }, [
|
|
4348
4358
|
f("span", Gs, [
|
|
4349
4359
|
X(_e, {
|
|
4350
4360
|
name: "close",
|
|
4351
4361
|
width: 2,
|
|
4352
4362
|
class: "cursor-pointer",
|
|
4353
|
-
onClick: (le) => t("delAbsTxtItem",
|
|
4363
|
+
onClick: (le) => t("delAbsTxtItem", S)
|
|
4354
4364
|
}, null, 8, ["onClick"])
|
|
4355
4365
|
]),
|
|
4356
4366
|
f("div", Ys, [
|
|
4357
|
-
(
|
|
4367
|
+
(r(), u(P, null, Z(8, (le, Y) => f("div", {
|
|
4358
4368
|
key: le,
|
|
4359
4369
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4360
|
-
style:
|
|
4361
|
-
onMousedown: (te) =>
|
|
4370
|
+
style: Q({ ...n[Y], transform: "translate(-50%, -50%)" }),
|
|
4371
|
+
onMousedown: (te) => H(te, Y)
|
|
4362
4372
|
}, null, 44, qs)), 64))
|
|
4363
4373
|
])
|
|
4364
|
-
], 64)) :
|
|
4374
|
+
], 64)) : M("", !0)
|
|
4365
4375
|
], 46, Ws)), [
|
|
4366
|
-
[x(
|
|
4376
|
+
[x(i), N],
|
|
4367
4377
|
[x(l), (le) => ue(null, le)]
|
|
4368
4378
|
]);
|
|
4369
4379
|
}), 128))
|
|
@@ -4393,74 +4403,74 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4393
4403
|
setup(e, { emit: t }) {
|
|
4394
4404
|
const a = e;
|
|
4395
4405
|
Gt("ckeditorOrigin", a.ckeditorOrigin);
|
|
4396
|
-
const l =
|
|
4397
|
-
...
|
|
4406
|
+
const l = q([]), i = q([]), n = q(2), o = q(0), s = q(0), c = q(), d = q([]), h = q([]), B = q([]), p = q([]), F = A(() => a.data.map((b) => ({
|
|
4407
|
+
...b,
|
|
4398
4408
|
__tag__: Ct(),
|
|
4399
|
-
rawChildren:
|
|
4400
|
-
children:
|
|
4401
|
-
}))),
|
|
4402
|
-
const
|
|
4409
|
+
rawChildren: b.children,
|
|
4410
|
+
children: b.children.map((I) => ({ ...I, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
|
|
4411
|
+
}))), O = A(() => {
|
|
4412
|
+
const b = F.value[F.value.length - 1], I = b.rawChildren[b.rawChildren.length - 1];
|
|
4403
4413
|
return W.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
|
|
4404
4414
|
}), j = A(() => {
|
|
4405
|
-
var
|
|
4406
|
-
return a.layout.bindFlag && !!((
|
|
4407
|
-
}),
|
|
4408
|
-
width: `${
|
|
4409
|
-
height: `${(
|
|
4415
|
+
var b;
|
|
4416
|
+
return a.layout.bindFlag && !!((b = Oe.find((I) => I.code === a.layout.paper)) != null && b.isMultCol);
|
|
4417
|
+
}), T = A(() => a.isFinal ? 0 : 10), z = A(() => a.isFinal ? 10 : 0), v = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || n.value || 1), E = A(() => Math.ceil(v.value / 2) * 2), W = A(() => ["sheet", "sheetCard"].includes(a.layout.mode)), N = A(() => W.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || dt[a.layout.mode][a.layout.paper]), C = A(() => g[a.layout.paper].width - _.value.left - _.value.right), w = A(() => g[a.layout.paper].height - _.value.top - _.value.bottom), G = A(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), H = A(() => ({
|
|
4418
|
+
width: `${g[a.layout.paper].width}px`,
|
|
4419
|
+
height: `${(g[a.layout.paper].height + T.value) * E.value - T.value}px`
|
|
4410
4420
|
})), ye = A(() => ({
|
|
4411
|
-
width: `${
|
|
4412
|
-
height: `${
|
|
4421
|
+
width: `${g[a.layout.paper].width}px`,
|
|
4422
|
+
height: `${g[a.layout.paper].height}px`,
|
|
4413
4423
|
padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
|
|
4414
|
-
marginBottom: `${
|
|
4424
|
+
marginBottom: `${T.value}px`
|
|
4415
4425
|
})), pe = A(() => {
|
|
4416
4426
|
var I;
|
|
4417
|
-
const
|
|
4427
|
+
const b = (I = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : I.isMultCol;
|
|
4418
4428
|
return {
|
|
4419
|
-
left: `${_.value.left + (s.value ? s.value +
|
|
4429
|
+
left: `${_.value.left + (s.value ? s.value + S(0) : 0)}px`,
|
|
4420
4430
|
top: `${_.value.top}px`,
|
|
4421
|
-
width:
|
|
4431
|
+
width: b ? `${G.value}px` : `${C.value}px`
|
|
4422
4432
|
};
|
|
4423
4433
|
});
|
|
4424
|
-
|
|
4434
|
+
Me(() => [JSON.stringify({ ...a.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(a.fontConfig), JSON.stringify(a.info), JSON.stringify(a.data)].join(""), () => {
|
|
4425
4435
|
setTimeout(() => {
|
|
4426
4436
|
re();
|
|
4427
4437
|
}, 100);
|
|
4428
|
-
}, { immediate: !0 }),
|
|
4438
|
+
}, { immediate: !0 }), Me(() => j.value, () => {
|
|
4429
4439
|
s.value = j.value ? 100 : 0;
|
|
4430
4440
|
}, { immediate: !0 });
|
|
4431
|
-
const ie = (
|
|
4432
|
-
const I =
|
|
4441
|
+
const ie = (b) => b % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (b, I) => Math.floor(I / 2) * (a.layout.column + a.layout.backColumn) + I % 2 * a.layout.column + b, ue = (b) => {
|
|
4442
|
+
const I = b % (a.layout.column + a.layout.backColumn);
|
|
4433
4443
|
return I >= a.layout.column ? I - a.layout.column : I;
|
|
4434
|
-
},
|
|
4435
|
-
|
|
4436
|
-
},
|
|
4437
|
-
|
|
4438
|
-
},
|
|
4439
|
-
var
|
|
4440
|
-
const le =
|
|
4444
|
+
}, D = (b, I) => {
|
|
4445
|
+
b ? d.value[I] = b : d.value.splice(I, 1);
|
|
4446
|
+
}, $ = (b, I) => {
|
|
4447
|
+
b ? h.value[I] = b : h.value.splice(I, 1);
|
|
4448
|
+
}, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, K = (b, I = !1) => (C.value - (s.value ? s.value + S(b) : 0) + S(b)) / ie(b) - S(b) - N.value.left - N.value.right + (I ? N.value.left + N.value.right : 0), we = (b, I) => {
|
|
4449
|
+
var Y, te;
|
|
4450
|
+
const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((Y = B.value[Math.min(I, 1)]) == null ? void 0 : Y.offsetHeight) || 0;
|
|
4441
4451
|
return {
|
|
4442
|
-
left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value +
|
|
4443
|
-
top: `${le + _.value.top + (!I && !
|
|
4444
|
-
width: `${K(
|
|
4445
|
-
height: `${w.value - le - (!I && !
|
|
4446
|
-
contentHeight: `${(te = l.value[
|
|
4452
|
+
left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value + S(b) : 0) + N.value.left + ue(b) * (K(b) + S(b) + N.value.left + N.value.right)}px`,
|
|
4453
|
+
top: `${le + _.value.top + (!I && !b ? 0 : N.value.top)}px`,
|
|
4454
|
+
width: `${K(b)}px`,
|
|
4455
|
+
height: `${w.value - le - (!I && !b ? 0 : N.value.top) - N.value.bottom}px`,
|
|
4456
|
+
contentHeight: `${(te = l.value[b]) == null ? void 0 : te.height}px`
|
|
4447
4457
|
};
|
|
4448
|
-
}, ae = (
|
|
4449
|
-
|
|
4450
|
-
|
|
4458
|
+
}, ae = (b, I = !1) => {
|
|
4459
|
+
i.value = b.map((le) => ({ ...le })), I && (l.value = [...b], o.value += 1, Je(() => {
|
|
4460
|
+
n.value = Math.ceil(l.value.length / a.layout.column), i.value = [], h.value.forEach((le, Y) => {
|
|
4451
4461
|
var te, Se;
|
|
4452
|
-
!le || !le.col || ((te = l.value[
|
|
4462
|
+
!le || !le.col || ((te = l.value[Y]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[Y]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
|
|
4453
4463
|
}), setTimeout(() => {
|
|
4454
4464
|
const le = _s({
|
|
4455
4465
|
config: {
|
|
4456
4466
|
...a.info,
|
|
4457
4467
|
layout: a.layout,
|
|
4458
|
-
pageTotal:
|
|
4468
|
+
pageTotal: v.value,
|
|
4459
4469
|
bindWidth: s.value,
|
|
4460
|
-
pageMargin:
|
|
4461
|
-
pageDom: d.value.slice(0,
|
|
4462
|
-
colDom:
|
|
4463
|
-
colViewDom:
|
|
4470
|
+
pageMargin: T.value,
|
|
4471
|
+
pageDom: d.value.slice(0, v.value),
|
|
4472
|
+
colDom: h.value.map((Y) => Y.col),
|
|
4473
|
+
colViewDom: h.value.map((Y) => Y.colView)
|
|
4464
4474
|
},
|
|
4465
4475
|
data: l.value
|
|
4466
4476
|
});
|
|
@@ -4469,209 +4479,209 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4469
4479
|
}));
|
|
4470
4480
|
}, re = () => {
|
|
4471
4481
|
Is({
|
|
4472
|
-
el:
|
|
4482
|
+
el: c.value,
|
|
4473
4483
|
data: F.value,
|
|
4474
4484
|
column: a.layout.column,
|
|
4475
4485
|
backColumn: a.layout.backColumn || a.layout.column,
|
|
4476
4486
|
getColSize: we,
|
|
4477
4487
|
change: ae
|
|
4478
4488
|
});
|
|
4479
|
-
}, be = (
|
|
4480
|
-
t("toggleActive",
|
|
4489
|
+
}, be = (b = { type: U.page, value: {} }) => {
|
|
4490
|
+
t("toggleActive", b);
|
|
4481
4491
|
};
|
|
4482
|
-
return (
|
|
4492
|
+
return (b, I) => {
|
|
4483
4493
|
var le;
|
|
4484
|
-
return
|
|
4485
|
-
|
|
4494
|
+
return r(), u(P, null, [
|
|
4495
|
+
b.readonly ? M("", !0) : (r(), V($s, {
|
|
4486
4496
|
key: 0,
|
|
4487
4497
|
ColList: l.value,
|
|
4488
|
-
ColDom:
|
|
4489
|
-
ImgData:
|
|
4490
|
-
TxtData:
|
|
4491
|
-
onDelAbsImgItem: I[0] || (I[0] = (
|
|
4492
|
-
onDelAbsTxtItem: I[1] || (I[1] = (
|
|
4493
|
-
onChangeLayoutStatus: I[2] || (I[2] = (
|
|
4498
|
+
ColDom: h.value.map((Y) => Y.col),
|
|
4499
|
+
ImgData: b.imgData,
|
|
4500
|
+
TxtData: b.txtData,
|
|
4501
|
+
onDelAbsImgItem: I[0] || (I[0] = (Y) => t("delAbsImgItem", Y)),
|
|
4502
|
+
onDelAbsTxtItem: I[1] || (I[1] = (Y) => t("delAbsTxtItem", Y)),
|
|
4503
|
+
onChangeLayoutStatus: I[2] || (I[2] = (Y) => t("changeLayoutStatus", Y))
|
|
4494
4504
|
}, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
|
|
4495
4505
|
f("div", {
|
|
4496
4506
|
class: "flex-1 overflow-auto relative z-1",
|
|
4497
4507
|
id: "alit-layout",
|
|
4498
|
-
onClick: I[14] || (I[14] = (
|
|
4508
|
+
onClick: I[14] || (I[14] = (Y) => be())
|
|
4499
4509
|
}, [
|
|
4500
4510
|
f("div", {
|
|
4501
4511
|
class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
|
|
4502
4512
|
ref_key: "rawDom",
|
|
4503
|
-
ref:
|
|
4513
|
+
ref: c
|
|
4504
4514
|
}, [
|
|
4505
|
-
|
|
4506
|
-
|
|
4515
|
+
i.value.length ? (r(!0), u(P, { key: 0 }, Z((le = i.value[i.value.length - 1]) == null ? void 0 : le.data, (Y, te) => (r(), u(P, null, [
|
|
4516
|
+
Y.isHidden ? M("", !0) : (r(), V(St, {
|
|
4507
4517
|
key: 0,
|
|
4508
|
-
item:
|
|
4518
|
+
item: Y,
|
|
4509
4519
|
showColBorder: W.value,
|
|
4510
|
-
isFirst: !te &&
|
|
4511
|
-
layout:
|
|
4520
|
+
isFirst: !te && i.value.length === 1,
|
|
4521
|
+
layout: b.layout
|
|
4512
4522
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4513
|
-
W.value ? (
|
|
4523
|
+
W.value ? (r(), u("div", {
|
|
4514
4524
|
key: 1,
|
|
4515
|
-
class: oe([!
|
|
4525
|
+
class: oe([!Y.children.length && Y.problemType && "p-1 min-h-[2rem]"])
|
|
4516
4526
|
}, [
|
|
4517
|
-
(
|
|
4518
|
-
data:
|
|
4519
|
-
key:
|
|
4520
|
-
layout:
|
|
4521
|
-
target:
|
|
4527
|
+
(r(), V(Ge, {
|
|
4528
|
+
data: Y,
|
|
4529
|
+
key: i.value.length,
|
|
4530
|
+
layout: b.layout,
|
|
4531
|
+
target: b.target,
|
|
4522
4532
|
noPortrait: "",
|
|
4523
|
-
width: K(
|
|
4533
|
+
width: K(i.value.length - 1) - 10
|
|
4524
4534
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4525
|
-
], 2)) : (
|
|
4526
|
-
data:
|
|
4527
|
-
key:
|
|
4528
|
-
layout:
|
|
4529
|
-
target:
|
|
4530
|
-
width: K(
|
|
4535
|
+
], 2)) : (r(), V(Ge, {
|
|
4536
|
+
data: Y,
|
|
4537
|
+
key: i.value.length,
|
|
4538
|
+
layout: b.layout,
|
|
4539
|
+
target: b.target,
|
|
4540
|
+
width: K(i.value.length - 1)
|
|
4531
4541
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4532
|
-
], 64))), 256)) :
|
|
4542
|
+
], 64))), 256)) : M("", !0)
|
|
4533
4543
|
], 512),
|
|
4534
4544
|
f("div", {
|
|
4535
|
-
class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__",
|
|
4536
|
-
style:
|
|
4545
|
+
class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
|
|
4546
|
+
style: Q(H.value)
|
|
4537
4547
|
}, [
|
|
4538
4548
|
X(Us, {
|
|
4539
|
-
imgData:
|
|
4540
|
-
txtData:
|
|
4541
|
-
layout:
|
|
4549
|
+
imgData: b.imgData,
|
|
4550
|
+
txtData: b.txtData,
|
|
4551
|
+
layout: b.layout,
|
|
4542
4552
|
pageMargin: z.value,
|
|
4543
|
-
onChangeAbsImgItem: I[3] || (I[3] = (
|
|
4544
|
-
onDelAbsImgItem: I[4] || (I[4] = (
|
|
4545
|
-
onChangeAbsTxtItem: I[5] || (I[5] = (
|
|
4546
|
-
onDelAbsTxtItem: I[6] || (I[6] = (
|
|
4553
|
+
onChangeAbsImgItem: I[3] || (I[3] = (Y) => t("changeAbsImgItem", Y)),
|
|
4554
|
+
onDelAbsImgItem: I[4] || (I[4] = (Y) => t("delAbsImgItem", Y)),
|
|
4555
|
+
onChangeAbsTxtItem: I[5] || (I[5] = (Y) => t("changeAbsTxtItem", Y)),
|
|
4556
|
+
onDelAbsTxtItem: I[6] || (I[6] = (Y) => t("delAbsTxtItem", Y))
|
|
4547
4557
|
}, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
|
|
4548
|
-
(
|
|
4549
|
-
viewBox: `0 0 ${parseFloat(
|
|
4558
|
+
(r(), u("svg", {
|
|
4559
|
+
viewBox: `0 0 ${parseFloat(H.value.width)} ${parseFloat(H.value.height)}`,
|
|
4550
4560
|
version: "1.1",
|
|
4551
4561
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4552
4562
|
key: o.value
|
|
4553
4563
|
}, [
|
|
4554
|
-
(
|
|
4555
|
-
(
|
|
4556
|
-
key:
|
|
4564
|
+
(r(), u("foreignObject", Ks, [
|
|
4565
|
+
(r(!0), u(P, null, Z(E.value, (Y, te) => (r(), u("div", {
|
|
4566
|
+
key: Y,
|
|
4557
4567
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
4558
4568
|
ref_for: !0,
|
|
4559
|
-
ref: (Se) =>
|
|
4560
|
-
style:
|
|
4569
|
+
ref: (Se) => D(Se, te),
|
|
4570
|
+
style: Q(ye.value)
|
|
4561
4571
|
}, [
|
|
4562
|
-
te <
|
|
4572
|
+
te < v.value ? (r(), u(P, { key: 0 }, [
|
|
4563
4573
|
X(wo, {
|
|
4564
|
-
layout:
|
|
4574
|
+
layout: b.layout,
|
|
4565
4575
|
currentPage: te,
|
|
4566
|
-
totalPage:
|
|
4567
|
-
columnContentWidth: K(te % 2 ?
|
|
4568
|
-
columnMargin:
|
|
4576
|
+
totalPage: v.value,
|
|
4577
|
+
columnContentWidth: K(te % 2 ? b.layout.column : 0, !0),
|
|
4578
|
+
columnMargin: S(te % 2 ? b.layout.column : 0),
|
|
4569
4579
|
bindWidth: s.value,
|
|
4570
4580
|
padding: _.value
|
|
4571
4581
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
4572
|
-
|
|
4582
|
+
b.layout.sloganFlag ? (r(), V($o, {
|
|
4573
4583
|
key: 0,
|
|
4574
|
-
info:
|
|
4575
|
-
layout:
|
|
4584
|
+
info: b.info,
|
|
4585
|
+
layout: b.layout,
|
|
4576
4586
|
onChange: I[7] || (I[7] = (Se) => t("changeInfo", Se))
|
|
4577
|
-
}, null, 8, ["info", "layout"])) :
|
|
4587
|
+
}, null, 8, ["info", "layout"])) : M("", !0),
|
|
4578
4588
|
X(Za, {
|
|
4579
4589
|
ref_for: !0,
|
|
4580
4590
|
ref_key: "bindDom",
|
|
4581
|
-
ref:
|
|
4591
|
+
ref: p,
|
|
4582
4592
|
currentPage: te,
|
|
4583
4593
|
width: s.value,
|
|
4584
4594
|
height: w.value,
|
|
4585
4595
|
isBindFlag: j.value
|
|
4586
4596
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
|
|
4587
|
-
!(te % 2) || te === 1 &&
|
|
4597
|
+
!(te % 2) || te === 1 && v.value < 3 ? (r(), u("div", {
|
|
4588
4598
|
key: 1,
|
|
4589
4599
|
ref_for: !0,
|
|
4590
4600
|
ref_key: "titleDom",
|
|
4591
|
-
ref:
|
|
4592
|
-
class: oe(["absolute text-black", te === 1 &&
|
|
4593
|
-
style:
|
|
4601
|
+
ref: B,
|
|
4602
|
+
class: oe(["absolute text-black", te === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
|
|
4603
|
+
style: Q(pe.value)
|
|
4594
4604
|
}, [
|
|
4595
4605
|
X(Po, {
|
|
4596
|
-
layout:
|
|
4597
|
-
code:
|
|
4606
|
+
layout: b.layout,
|
|
4607
|
+
code: b.info.textCode
|
|
4598
4608
|
}, null, 8, ["layout", "code"]),
|
|
4599
4609
|
X(ta, {
|
|
4600
|
-
info:
|
|
4601
|
-
layout:
|
|
4602
|
-
fontConfig:
|
|
4603
|
-
data:
|
|
4610
|
+
info: b.info,
|
|
4611
|
+
layout: b.layout,
|
|
4612
|
+
fontConfig: b.fontConfig,
|
|
4613
|
+
data: b.data,
|
|
4604
4614
|
onChange: I[8] || (I[8] = (Se) => t("changeInfo", Se))
|
|
4605
4615
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
4606
4616
|
X(ka, {
|
|
4607
|
-
layout:
|
|
4608
|
-
info:
|
|
4617
|
+
layout: b.layout,
|
|
4618
|
+
info: b.info,
|
|
4609
4619
|
isBindFlag: j.value,
|
|
4610
4620
|
onChange: I[9] || (I[9] = (Se) => t("changeExtentInfo", Se))
|
|
4611
4621
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
4612
4622
|
X(Ba, {
|
|
4613
|
-
layout:
|
|
4623
|
+
layout: b.layout,
|
|
4614
4624
|
isBindFlag: j.value
|
|
4615
4625
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
4616
|
-
te ?
|
|
4626
|
+
te ? M("", !0) : (r(), V(Ya, {
|
|
4617
4627
|
key: 0,
|
|
4618
|
-
layout:
|
|
4619
|
-
data:
|
|
4628
|
+
layout: b.layout,
|
|
4629
|
+
data: b.data
|
|
4620
4630
|
}, null, 8, ["layout", "data"])),
|
|
4621
|
-
|
|
4631
|
+
b.layout.writeScoreFlag && !te ? (r(), V(_l, {
|
|
4622
4632
|
key: 1,
|
|
4623
|
-
info:
|
|
4624
|
-
layout:
|
|
4625
|
-
}, null, 8, ["info", "layout"])) :
|
|
4626
|
-
], 6)) :
|
|
4627
|
-
(
|
|
4633
|
+
info: b.info,
|
|
4634
|
+
layout: b.layout
|
|
4635
|
+
}, null, 8, ["info", "layout"])) : M("", !0)
|
|
4636
|
+
], 6)) : M("", !0),
|
|
4637
|
+
(r(!0), u(P, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Pe) => (r(), V(Qa, {
|
|
4628
4638
|
ref_for: !0,
|
|
4629
|
-
ref: (We) =>
|
|
4639
|
+
ref: (We) => $(We, fe(Pe, te)),
|
|
4630
4640
|
styleInfo: we(fe(Pe, te), te),
|
|
4631
|
-
column:
|
|
4641
|
+
column: b.layout.column,
|
|
4632
4642
|
currentColumn: fe(Pe, te),
|
|
4633
4643
|
showColBorder: W.value
|
|
4634
4644
|
}, {
|
|
4635
4645
|
default: Ft(() => {
|
|
4636
4646
|
var We;
|
|
4637
4647
|
return [
|
|
4638
|
-
(
|
|
4639
|
-
var
|
|
4640
|
-
return
|
|
4641
|
-
ge.isHidden ?
|
|
4648
|
+
(r(!0), u(P, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
|
|
4649
|
+
var yt;
|
|
4650
|
+
return r(), u(P, null, [
|
|
4651
|
+
ge.isHidden ? M("", !0) : (r(), V(St, {
|
|
4642
4652
|
key: 0,
|
|
4643
4653
|
item: ge,
|
|
4644
4654
|
showColBorder: W.value,
|
|
4645
4655
|
isFirst: !te && !Pe && !Ht,
|
|
4646
|
-
layout:
|
|
4647
|
-
isActive: ((
|
|
4656
|
+
layout: b.layout,
|
|
4657
|
+
isActive: ((yt = b.target.value) == null ? void 0 : yt.id) === ge.id,
|
|
4648
4658
|
onClick: (Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }),
|
|
4649
4659
|
onDbclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4650
4660
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
4651
|
-
W.value ? (
|
|
4661
|
+
W.value ? (r(), u("div", {
|
|
4652
4662
|
key: 1,
|
|
4653
|
-
class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]",
|
|
4663
|
+
class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(U).headline && b.target.value.id === ge.id && "active_headline"]),
|
|
4654
4664
|
onClick: Le((Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }), ["stop"]),
|
|
4655
4665
|
onDblclick: (Ce) => t("dbHeadLineClick", ge)
|
|
4656
4666
|
}, [
|
|
4657
4667
|
X(Ge, {
|
|
4658
4668
|
data: ge,
|
|
4659
|
-
layout:
|
|
4660
|
-
target:
|
|
4669
|
+
layout: b.layout,
|
|
4670
|
+
target: b.target,
|
|
4661
4671
|
width: K(fe(Pe, te)) - 10,
|
|
4662
4672
|
onClick: I[10] || (I[10] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
|
|
4663
4673
|
onDbclick: I[11] || (I[11] = (Ce) => t("dbProblemClick", Ce))
|
|
4664
4674
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
4665
|
-
ge.children.length && ge.children[ge.children.length - 1].id ===
|
|
4675
|
+
ge.children.length && ge.children[ge.children.length - 1].id === O.value ? (r(), u("div", {
|
|
4666
4676
|
key: 0,
|
|
4667
4677
|
class: "border-t",
|
|
4668
4678
|
"data-block": x(Ee)
|
|
4669
|
-
}, null, 8, Xs)) :
|
|
4670
|
-
], 42, Vs)) : (
|
|
4679
|
+
}, null, 8, Xs)) : M("", !0)
|
|
4680
|
+
], 42, Vs)) : (r(), V(Ge, {
|
|
4671
4681
|
key: 2,
|
|
4672
4682
|
data: ge,
|
|
4673
|
-
layout:
|
|
4674
|
-
target:
|
|
4683
|
+
layout: b.layout,
|
|
4684
|
+
target: b.target,
|
|
4675
4685
|
width: K(fe(Pe, te)),
|
|
4676
4686
|
onClick: I[12] || (I[12] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
|
|
4677
4687
|
onDbclick: I[13] || (I[13] = (Ce) => t("dbProblemClick", Ce))
|
|
@@ -4682,7 +4692,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
|
|
|
4682
4692
|
}),
|
|
4683
4693
|
_: 2
|
|
4684
4694
|
}, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
|
|
4685
|
-
], 64)) :
|
|
4695
|
+
], 64)) : M("", !0)
|
|
4686
4696
|
], 4))), 128))
|
|
4687
4697
|
]))
|
|
4688
4698
|
], 8, js))
|