alit-layout 1.1.31 → 1.1.32
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 +650 -650
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ne, computed as W, openBlock as i, createElementBlock as u, Fragment as N, renderList as le, createElementVNode as k, normalizeStyle as Z, unref as L, toDisplayString as te, createCommentVNode as D, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as ne, computed as W, openBlock as i, createElementBlock as u, Fragment as N, renderList as le, createElementVNode as k, normalizeStyle as Z, unref as L, toDisplayString as te, createCommentVNode as D, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as tt, createVNode as ae, pushScopeId as Ye, popScopeId as Ke, renderSlot as _t, onMounted as Ue, nextTick as st, withModifiers as Ee, resolveComponent as Yt, resolveDynamicComponent as xt, normalizeProps as Ct, guardReactiveProps as St, withCtx as Mt, inject as Kt, withDirectives as $t, provide as Ut } from "vue";
|
|
2
|
+
const We = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
5
5
|
// 多选题
|
|
@@ -8,11 +8,11 @@ const He = {
|
|
|
8
8
|
choice_english: "LISTEN_AFTER_SELECTION",
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
|
-
},
|
|
12
|
-
...
|
|
11
|
+
}, At = {
|
|
12
|
+
...We,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
15
|
-
},
|
|
15
|
+
}, Ge = {
|
|
16
16
|
// 填空题
|
|
17
17
|
fill: "FILL_BLANKS",
|
|
18
18
|
// 听后填空
|
|
@@ -36,7 +36,7 @@ const He = {
|
|
|
36
36
|
another: "ADDITIONAL_QUESTION",
|
|
37
37
|
// 附加选做题
|
|
38
38
|
another_choice: "ADDITIONAL_CHOOSE_QUESTION"
|
|
39
|
-
},
|
|
39
|
+
}, Vt = {
|
|
40
40
|
// 文本
|
|
41
41
|
__text: "TXT",
|
|
42
42
|
// 文案
|
|
@@ -46,9 +46,9 @@ const He = {
|
|
|
46
46
|
// 非作答区(试题)
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
48
|
}, m = {
|
|
49
|
-
...
|
|
50
|
-
...
|
|
51
|
-
},
|
|
49
|
+
...At,
|
|
50
|
+
...Ge
|
|
51
|
+
}, Qe = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
53
53
|
{ name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0, disabled: !0 },
|
|
54
54
|
{ name: "A4", code: "a4", size: "210*297mm", isFullTitle: !0 },
|
|
@@ -85,7 +85,7 @@ const He = {
|
|
|
85
85
|
width: 1332,
|
|
86
86
|
height: 944
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, jt = {
|
|
89
89
|
article: {
|
|
90
90
|
a3: [
|
|
91
91
|
{ name: "两栏", code: 2 },
|
|
@@ -166,7 +166,7 @@ const He = {
|
|
|
166
166
|
{ name: "两栏", code: 2 }
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, ot = ["a3", "a3+", "8k", "b4"], ft = {
|
|
170
170
|
article: {
|
|
171
171
|
a3: {
|
|
172
172
|
top: x.a3.width / 420 * 20.5,
|
|
@@ -299,7 +299,7 @@ const He = {
|
|
|
299
299
|
left: x.b4.width / 353 * 19
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
},
|
|
302
|
+
}, Xt = {
|
|
303
303
|
article: {
|
|
304
304
|
a3: 5,
|
|
305
305
|
"a3+": 5,
|
|
@@ -332,10 +332,10 @@ const He = {
|
|
|
332
332
|
right: 6,
|
|
333
333
|
bottom: 21,
|
|
334
334
|
left: 6
|
|
335
|
-
},
|
|
335
|
+
}, Jt = {
|
|
336
336
|
left: 5,
|
|
337
337
|
right: 5
|
|
338
|
-
},
|
|
338
|
+
}, Dt = {
|
|
339
339
|
article: {
|
|
340
340
|
a3: {
|
|
341
341
|
2: 30,
|
|
@@ -420,7 +420,7 @@ const He = {
|
|
|
420
420
|
2: 20
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
},
|
|
423
|
+
}, Zt = 10, eo = {
|
|
424
424
|
base: {
|
|
425
425
|
secTitleFlag: "副标题",
|
|
426
426
|
authorFlag: "命题人",
|
|
@@ -502,7 +502,7 @@ const He = {
|
|
|
502
502
|
simpleScoreBarFlag: "简易打分条",
|
|
503
503
|
scoreTipFlag: "计分提示"
|
|
504
504
|
}
|
|
505
|
-
},
|
|
505
|
+
}, to = {
|
|
506
506
|
a3: {
|
|
507
507
|
2: 1,
|
|
508
508
|
3: 1
|
|
@@ -539,71 +539,71 @@ const He = {
|
|
|
539
539
|
cdest: "cdest",
|
|
540
540
|
headlineNotarea: "headlineNotarea",
|
|
541
541
|
problemNotarea: "problemNotarea"
|
|
542
|
-
},
|
|
542
|
+
}, oo = [
|
|
543
543
|
{ name: "正常", code: "stand" },
|
|
544
544
|
{ name: "横向", code: "column" }
|
|
545
545
|
], Se = {
|
|
546
546
|
none: "none",
|
|
547
547
|
seat: "seat",
|
|
548
548
|
shortId: "short"
|
|
549
|
-
},
|
|
549
|
+
}, ao = [
|
|
550
550
|
{ name: "无", code: Se.none },
|
|
551
551
|
{ name: "座位号", code: Se.seat, value: 3 },
|
|
552
552
|
{ name: "短学号", code: Se.shortId, value: 4 }
|
|
553
|
-
],
|
|
553
|
+
], lo = [
|
|
554
554
|
{ name: "无", code: !1 },
|
|
555
555
|
{ name: "有", code: !0 }
|
|
556
|
-
],
|
|
556
|
+
], no = [
|
|
557
557
|
{ name: "条码", code: Se.none },
|
|
558
558
|
{ name: "短学号", code: Se.shortId }
|
|
559
|
-
],
|
|
559
|
+
], ht = {
|
|
560
560
|
wide: "text",
|
|
561
561
|
local: "topic"
|
|
562
|
-
},
|
|
563
|
-
{ name: "整卷", code:
|
|
564
|
-
{ name: "大题", code:
|
|
565
|
-
],
|
|
562
|
+
}, so = [
|
|
563
|
+
{ name: "整卷", code: ht.wide },
|
|
564
|
+
{ name: "大题", code: ht.local }
|
|
565
|
+
], Je = {
|
|
566
566
|
system: "system",
|
|
567
567
|
second: "level_2",
|
|
568
568
|
three: "level_3"
|
|
569
|
-
},
|
|
570
|
-
{ name: "自增", code:
|
|
571
|
-
{ name: "二级", code:
|
|
572
|
-
{ name: "三级", code:
|
|
573
|
-
],
|
|
569
|
+
}, io = [
|
|
570
|
+
{ name: "自增", code: Je.system },
|
|
571
|
+
{ name: "二级", code: Je.second },
|
|
572
|
+
{ name: "三级", code: Je.three }
|
|
573
|
+
], ro = [
|
|
574
574
|
{ name: "缩进", code: !0 },
|
|
575
575
|
{ name: "不缩进", code: !1 }
|
|
576
|
-
],
|
|
576
|
+
], Bt = [
|
|
577
577
|
{ name: "考号", code: "examNumFieldFlag", key: "examNumField" },
|
|
578
578
|
{ name: "姓名", code: "nameFieldFlag", key: "nameField" },
|
|
579
579
|
{ name: "班级", code: "classFieldFlag", key: "classField" },
|
|
580
580
|
{ name: "考场", code: "examRoomFieldFlag", key: "examRoomField" },
|
|
581
581
|
{ name: "座号", code: "seatFieldFlag", key: "seatField" }
|
|
582
|
-
],
|
|
582
|
+
], Ze = {
|
|
583
583
|
auto: "auto",
|
|
584
584
|
on: "on",
|
|
585
585
|
off: "off"
|
|
586
|
-
},
|
|
587
|
-
{ name: "自动", code:
|
|
588
|
-
{ name: "开", code:
|
|
589
|
-
{ name: "关", code:
|
|
590
|
-
],
|
|
586
|
+
}, co = [
|
|
587
|
+
{ name: "自动", code: Ze.auto },
|
|
588
|
+
{ name: "开", code: Ze.on },
|
|
589
|
+
{ name: "关", code: Ze.off }
|
|
590
|
+
], at = {
|
|
591
591
|
step: "step",
|
|
592
592
|
custom: "custom"
|
|
593
|
-
},
|
|
594
|
-
{ name: "分段", code:
|
|
595
|
-
{ name: "自编", code:
|
|
596
|
-
],
|
|
593
|
+
}, uo = [
|
|
594
|
+
{ name: "分段", code: at.step },
|
|
595
|
+
{ name: "自编", code: at.custom }
|
|
596
|
+
], ho = [
|
|
597
597
|
{ name: "显示", code: !0 },
|
|
598
598
|
{ name: "隐藏", code: !1 }
|
|
599
|
-
],
|
|
599
|
+
], et = {
|
|
600
600
|
custom: "less",
|
|
601
601
|
average: "ans",
|
|
602
602
|
averagefill: "opt"
|
|
603
|
-
},
|
|
604
|
-
{ name: "按答案个数均分", code:
|
|
605
|
-
{ name: "手动设置", code:
|
|
606
|
-
{ name: "按答案个数均分(错选不扣分)", code:
|
|
603
|
+
}, po = [
|
|
604
|
+
{ name: "按答案个数均分", code: et.average },
|
|
605
|
+
{ name: "手动设置", code: et.custom },
|
|
606
|
+
{ name: "按答案个数均分(错选不扣分)", code: et.averagefill }
|
|
607
607
|
], f = {
|
|
608
608
|
choice_1: "choice-1",
|
|
609
609
|
choice_2: "choice-2",
|
|
@@ -789,12 +789,12 @@ const He = {
|
|
|
789
789
|
synthesis_a: "polymerFlag",
|
|
790
790
|
synthesis_b: "scoreShowType"
|
|
791
791
|
}
|
|
792
|
-
},
|
|
792
|
+
}, Nt = {
|
|
793
793
|
article: {
|
|
794
794
|
// 文案边框控制
|
|
795
795
|
isShowBorder: "isShowBorder"
|
|
796
796
|
}
|
|
797
|
-
},
|
|
797
|
+
}, mo = {
|
|
798
798
|
base: [
|
|
799
799
|
{
|
|
800
800
|
type: "radio",
|
|
@@ -821,7 +821,7 @@ const He = {
|
|
|
821
821
|
]
|
|
822
822
|
}
|
|
823
823
|
]
|
|
824
|
-
},
|
|
824
|
+
}, yo = {
|
|
825
825
|
base: {
|
|
826
826
|
// 解答题
|
|
827
827
|
[m.slove]: [
|
|
@@ -1647,28 +1647,28 @@ const He = {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
]
|
|
1649
1649
|
}
|
|
1650
|
-
},
|
|
1651
|
-
[
|
|
1650
|
+
}, _o = {
|
|
1651
|
+
[Vt.__cdest]: [
|
|
1652
1652
|
{
|
|
1653
1653
|
type: "radio",
|
|
1654
1654
|
label: "边框显示控制",
|
|
1655
|
-
key:
|
|
1655
|
+
key: Nt.article.isShowBorder,
|
|
1656
1656
|
option: [
|
|
1657
1657
|
{ name: "显示边框", code: !0 },
|
|
1658
1658
|
{ name: "隐藏边框", code: !1 }
|
|
1659
1659
|
]
|
|
1660
1660
|
}
|
|
1661
1661
|
]
|
|
1662
|
-
},
|
|
1662
|
+
}, fo = [
|
|
1663
1663
|
{ name: "宋体", code: "宋体" },
|
|
1664
1664
|
{ name: "黑体", code: "黑体" },
|
|
1665
1665
|
{ name: "Times New Roman", code: "Times New Roman" },
|
|
1666
1666
|
{ name: "仿宋", code: "仿宋" },
|
|
1667
1667
|
{ name: "MS Mincho", code: "MS Mincho" }
|
|
1668
|
-
],
|
|
1668
|
+
], go = [
|
|
1669
1669
|
{ name: "正常", code: "normal" },
|
|
1670
1670
|
{ name: "粗体", code: "bold" }
|
|
1671
|
-
],
|
|
1671
|
+
], bo = [
|
|
1672
1672
|
{ name: "初号", code: "56px", alias: "l" },
|
|
1673
1673
|
{ name: "小初", code: "48px", alias: "sl" },
|
|
1674
1674
|
{ name: "一号", code: "34px", alias: "1" },
|
|
@@ -1700,7 +1700,7 @@ const He = {
|
|
|
1700
1700
|
value: 24,
|
|
1701
1701
|
height: 16
|
|
1702
1702
|
}
|
|
1703
|
-
},
|
|
1703
|
+
}, lt = {
|
|
1704
1704
|
stand: {
|
|
1705
1705
|
name: "标准",
|
|
1706
1706
|
code: "stand",
|
|
@@ -1711,7 +1711,7 @@ const He = {
|
|
|
1711
1711
|
code: "large",
|
|
1712
1712
|
value: 33
|
|
1713
1713
|
}
|
|
1714
|
-
},
|
|
1714
|
+
}, it = {
|
|
1715
1715
|
none: {
|
|
1716
1716
|
name: "无",
|
|
1717
1717
|
code: "none",
|
|
@@ -1722,7 +1722,7 @@ const He = {
|
|
|
1722
1722
|
code: "star",
|
|
1723
1723
|
value: "star"
|
|
1724
1724
|
}
|
|
1725
|
-
},
|
|
1725
|
+
}, qe = {
|
|
1726
1726
|
left_down: {
|
|
1727
1727
|
name: "左下",
|
|
1728
1728
|
code: "left_down",
|
|
@@ -1733,13 +1733,13 @@ const He = {
|
|
|
1733
1733
|
code: "right_up",
|
|
1734
1734
|
value: "right_up"
|
|
1735
1735
|
}
|
|
1736
|
-
},
|
|
1736
|
+
}, Ot = {
|
|
1737
1737
|
choice: 'span.__MC41aTVhZDc3NDdnMzM2__[data-t="MC4wNHY2eGVwODFmMXg"]',
|
|
1738
1738
|
decide: 'span.__MC5jY2ZpMWU5NzYyamo__[data-t="MC5hMDFjMGM5NGNmZmFl"]',
|
|
1739
1739
|
fill: 'span.__MC50aXB0OGc2Y2tqbw__[data-t="MC5mM2VtbTVkcDJm"]',
|
|
1740
1740
|
scoreline: 'span.__MC5sOG52dGVycnI5Zw__[data-t="MC42NG83Z2Y1Y2w3bw"]',
|
|
1741
1741
|
sub: 'span.__MC5yM3ZnaGNudHNzbw__[data-t="MC4zaWV2dDAwMnY2bw"]'
|
|
1742
|
-
},
|
|
1742
|
+
}, vo = {
|
|
1743
1743
|
scoreWidthErr: "打分条超长",
|
|
1744
1744
|
pageMaxErr: "纸张数量超限,最多10页",
|
|
1745
1745
|
problemEmptyErr: "请添加常规题目",
|
|
@@ -1749,55 +1749,55 @@ const He = {
|
|
|
1749
1749
|
sloveScoreHalfErr: "简易打分条含小数分值",
|
|
1750
1750
|
absImgOverErr: "浮层图片超出纸张",
|
|
1751
1751
|
absTxtOverErr: "浮层文本超出纸张"
|
|
1752
|
-
},
|
|
1752
|
+
}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1753
1753
|
__proto__: null,
|
|
1754
|
-
ErrLayoutCode:
|
|
1755
|
-
MixNodeTag:
|
|
1756
|
-
bindInfoOption:
|
|
1757
|
-
column:
|
|
1758
|
-
columnMargin:
|
|
1759
|
-
defaultProblemLayout:
|
|
1754
|
+
ErrLayoutCode: vo,
|
|
1755
|
+
MixNodeTag: Ot,
|
|
1756
|
+
bindInfoOption: Bt,
|
|
1757
|
+
column: jt,
|
|
1758
|
+
columnMargin: Dt,
|
|
1759
|
+
defaultProblemLayout: mo,
|
|
1760
1760
|
fillSize: Fe,
|
|
1761
|
-
fontFamily:
|
|
1762
|
-
fontSize:
|
|
1763
|
-
fontWeight:
|
|
1764
|
-
formatConfig:
|
|
1765
|
-
halfScoreType:
|
|
1766
|
-
halfScoreTypeOption:
|
|
1767
|
-
inlineNotAreaOption:
|
|
1768
|
-
layoutMode:
|
|
1769
|
-
lessScoreRule:
|
|
1770
|
-
lessScoreRuleOption:
|
|
1771
|
-
otherLayout:
|
|
1772
|
-
otherLayoutKey:
|
|
1773
|
-
paddDiff:
|
|
1774
|
-
pageMargin:
|
|
1775
|
-
pagePadding:
|
|
1776
|
-
pagePointPosition:
|
|
1761
|
+
fontFamily: fo,
|
|
1762
|
+
fontSize: bo,
|
|
1763
|
+
fontWeight: go,
|
|
1764
|
+
formatConfig: eo,
|
|
1765
|
+
halfScoreType: Ze,
|
|
1766
|
+
halfScoreTypeOption: co,
|
|
1767
|
+
inlineNotAreaOption: ho,
|
|
1768
|
+
layoutMode: oo,
|
|
1769
|
+
lessScoreRule: et,
|
|
1770
|
+
lessScoreRuleOption: po,
|
|
1771
|
+
otherLayout: _o,
|
|
1772
|
+
otherLayoutKey: Nt,
|
|
1773
|
+
paddDiff: Xt,
|
|
1774
|
+
pageMargin: Zt,
|
|
1775
|
+
pagePadding: ft,
|
|
1776
|
+
pagePointPosition: qe,
|
|
1777
1777
|
pageSize: x,
|
|
1778
|
-
pageTitleBlockCol:
|
|
1779
|
-
paper:
|
|
1780
|
-
problemLayout:
|
|
1778
|
+
pageTitleBlockCol: to,
|
|
1779
|
+
paper: Qe,
|
|
1780
|
+
problemLayout: yo,
|
|
1781
1781
|
problemLayoutKey: d,
|
|
1782
1782
|
problemLayoutVal: f,
|
|
1783
|
-
scoreLineSize:
|
|
1784
|
-
scoreLineStyle:
|
|
1785
|
-
scoreLineType:
|
|
1786
|
-
scoreLineTypeOption:
|
|
1787
|
-
seatBarOption:
|
|
1783
|
+
scoreLineSize: lt,
|
|
1784
|
+
scoreLineStyle: it,
|
|
1785
|
+
scoreLineType: at,
|
|
1786
|
+
scoreLineTypeOption: uo,
|
|
1787
|
+
seatBarOption: lo,
|
|
1788
1788
|
seatType: Se,
|
|
1789
|
-
seatTypeBindOption:
|
|
1790
|
-
seatTypeOption:
|
|
1789
|
+
seatTypeBindOption: no,
|
|
1790
|
+
seatTypeOption: ao,
|
|
1791
1791
|
sheetColumnPad: Le,
|
|
1792
|
-
sheetItemColumnPad:
|
|
1793
|
-
specialPaper:
|
|
1794
|
-
subIndentOption:
|
|
1795
|
-
subRange:
|
|
1796
|
-
subRangeOption:
|
|
1797
|
-
subRule:
|
|
1798
|
-
subRuleOption:
|
|
1792
|
+
sheetItemColumnPad: Jt,
|
|
1793
|
+
specialPaper: ot,
|
|
1794
|
+
subIndentOption: ro,
|
|
1795
|
+
subRange: ht,
|
|
1796
|
+
subRangeOption: so,
|
|
1797
|
+
subRule: Je,
|
|
1798
|
+
subRuleOption: io,
|
|
1799
1799
|
toolGroup: O
|
|
1800
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1800
|
+
}, Symbol.toStringTag, { value: "Module" })), gt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), wo = "TF".split(""), ko = {
|
|
1801
1801
|
a4: "TYPE_A4",
|
|
1802
1802
|
a4x: "TYPE_A4",
|
|
1803
1803
|
a3: "TYPE_A3",
|
|
@@ -1851,7 +1851,7 @@ const He = {
|
|
|
1851
1851
|
write_view: `__${fe}write`,
|
|
1852
1852
|
// 密封线
|
|
1853
1853
|
bind_line: `__${fe}bindline`
|
|
1854
|
-
},
|
|
1854
|
+
}, dt = {
|
|
1855
1855
|
[m.choice]: "TYPE_SINGLECHOICE",
|
|
1856
1856
|
// 单项选择
|
|
1857
1857
|
[m.choice_english]: "TYPE_SINGLECHOICE",
|
|
@@ -1875,7 +1875,7 @@ const He = {
|
|
|
1875
1875
|
// 选做题
|
|
1876
1876
|
[Ce.another_choice]: "TYPE_SINGLECHOICE"
|
|
1877
1877
|
// 附加选做题
|
|
1878
|
-
},
|
|
1878
|
+
}, xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"], $o = ["data-xine"], To = ["data-xine"], xe = 20, Io = /* @__PURE__ */ ne({
|
|
1879
1879
|
__name: "point",
|
|
1880
1880
|
props: {
|
|
1881
1881
|
layout: {},
|
|
@@ -1887,17 +1887,17 @@ const He = {
|
|
|
1887
1887
|
padding: {}
|
|
1888
1888
|
},
|
|
1889
1889
|
setup(e) {
|
|
1890
|
-
const t = e, o = W(() =>
|
|
1890
|
+
const t = e, o = W(() => ot.includes(t.layout.paper) ? 2 : (t.currentPage % 2 ? t.layout.backColumn : t.layout.column) - 1), l = (c) => ({
|
|
1891
1891
|
lt: { left: `${t.padding.left - xe}px`, top: `${t.padding.top - xe}px` },
|
|
1892
1892
|
rt: { right: `${t.padding.right - xe}px`, top: `${t.padding.top - xe}px` },
|
|
1893
1893
|
lb: { left: `${t.padding.left - xe}px`, bottom: `${t.padding.bottom - xe}px` },
|
|
1894
1894
|
rb: { right: `${t.padding.right - xe}px`, bottom: `${t.padding.bottom - xe}px` }
|
|
1895
1895
|
})[c], r = () => ({
|
|
1896
|
-
[
|
|
1896
|
+
[qe.left_down.code]: {
|
|
1897
1897
|
left: `${t.padding.left - xe + 100}px`,
|
|
1898
1898
|
bottom: `${t.padding.bottom - xe}px`
|
|
1899
1899
|
},
|
|
1900
|
-
[
|
|
1900
|
+
[qe.right_up.code]: {
|
|
1901
1901
|
right: `${t.padding.right - xe + 100}px`,
|
|
1902
1902
|
top: `${t.padding.top - xe}px`
|
|
1903
1903
|
}
|
|
@@ -1909,10 +1909,10 @@ const He = {
|
|
|
1909
1909
|
b: {
|
|
1910
1910
|
bottom: `${t.padding.bottom - xe}px`
|
|
1911
1911
|
}
|
|
1912
|
-
}, h = (x[t.layout.paper].width - t.padding.left - t.padding.right + xe) / (
|
|
1912
|
+
}, h = (x[t.layout.paper].width - t.padding.left - t.padding.right + xe) / (ot.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
1913
1913
|
return { left: `${c * h + t.padding.left - xe}px`, width: `${xe}px`, ...n[y] };
|
|
1914
1914
|
}, s = (c) => {
|
|
1915
|
-
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, h = ["", "l", "r"].findIndex((
|
|
1915
|
+
const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, h = ["", "l", "r"].findIndex((P) => P === c);
|
|
1916
1916
|
return { top: `${y * h + t.padding.top - 10}px`, width: "11px", ...n };
|
|
1917
1917
|
};
|
|
1918
1918
|
return (c, y) => {
|
|
@@ -1923,37 +1923,37 @@ const He = {
|
|
|
1923
1923
|
class: "absolute w-8 bg-black point_item",
|
|
1924
1924
|
style: Z(l(h)),
|
|
1925
1925
|
"data-xine": L(I).point + h
|
|
1926
|
-
}, null, 12,
|
|
1926
|
+
}, null, 12, xo)), 64)),
|
|
1927
1927
|
(i(!0), u(N, null, le(o.value, (h) => (i(), u(N, { key: h }, [
|
|
1928
|
-
(i(), u(N, null, le(["t", "b"], (
|
|
1929
|
-
key:
|
|
1928
|
+
(i(), u(N, null, le(["t", "b"], (P) => k("span", {
|
|
1929
|
+
key: P,
|
|
1930
1930
|
class: "absolute bg-black w-8 point_item",
|
|
1931
|
-
style: Z(a(h,
|
|
1932
|
-
"data-xine": L(I).point +
|
|
1933
|
-
}, null, 12,
|
|
1931
|
+
style: Z(a(h, P)),
|
|
1932
|
+
"data-xine": L(I).point + P
|
|
1933
|
+
}, null, 12, Co)), 64))
|
|
1934
1934
|
], 64))), 128)),
|
|
1935
1935
|
(i(), u(N, null, le(["l", "r"], (h) => k("span", {
|
|
1936
1936
|
key: h,
|
|
1937
1937
|
class: "absolute bg-black h-8",
|
|
1938
1938
|
style: Z(s(h)),
|
|
1939
1939
|
"data-xine": L(I).point + h
|
|
1940
|
-
}, null, 12,
|
|
1940
|
+
}, null, 12, So)), 64)),
|
|
1941
1941
|
k("p", {
|
|
1942
1942
|
class: "absolute leading-none text-0",
|
|
1943
1943
|
style: Z(r()),
|
|
1944
1944
|
"data-xine": L(I).page
|
|
1945
1945
|
}, [
|
|
1946
|
-
(i(!0), u(N, null, le(c.currentPage + 1, (h,
|
|
1946
|
+
(i(!0), u(N, null, le(c.currentPage + 1, (h, P) => (i(), u("span", {
|
|
1947
1947
|
key: h,
|
|
1948
1948
|
class: "inline-block bg-black mx-2 page_item",
|
|
1949
|
-
"data-xine": L(I).page_item +
|
|
1950
|
-
}, null, 8,
|
|
1951
|
-
], 12,
|
|
1949
|
+
"data-xine": L(I).page_item + P
|
|
1950
|
+
}, null, 8, To))), 128))
|
|
1951
|
+
], 12, $o),
|
|
1952
1952
|
c.currentPage % 2 ? D("", !0) : (i(), u("span", {
|
|
1953
1953
|
key: 0,
|
|
1954
1954
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
1955
1955
|
style: Z({ right: `${c.padding.right - 12}px` })
|
|
1956
|
-
}, "提示:本卷" + te((n = L(
|
|
1956
|
+
}, "提示:本卷" + te((n = L(Qe).find((h) => h.code === c.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
|
|
1957
1957
|
k("span", {
|
|
1958
1958
|
class: "absolute text-sm red_sheet",
|
|
1959
1959
|
style: Z({ right: `${c.padding.bottom - 20 + 75}px`, bottom: `${c.padding.bottom - 20 - 3}px` })
|
|
@@ -1967,10 +1967,10 @@ const me = (e, t) => {
|
|
|
1967
1967
|
for (const [l, r] of t)
|
|
1968
1968
|
o[l] = r;
|
|
1969
1969
|
return o;
|
|
1970
|
-
},
|
|
1970
|
+
}, Lo = /* @__PURE__ */ me(Io, [["__scopeId", "data-v-2c1c50bb"]]), Fo = { class: "flex-1" }, Eo = ["type", "placeholder", "maxlength", "value"], Po = {
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1973
|
-
},
|
|
1973
|
+
}, rt = /* @__PURE__ */ ne({
|
|
1974
1974
|
__name: "index",
|
|
1975
1975
|
props: {
|
|
1976
1976
|
value: { default: "" },
|
|
@@ -2003,7 +2003,7 @@ const me = (e, t) => {
|
|
|
2003
2003
|
return (n, h) => (i(), u("div", {
|
|
2004
2004
|
class: oe(["flex-1 flex items-center border rounded-lg", n.autoLine ? r.value ? "border-gray4" : "border-transparent" : "border-gray4", n.size === "small" && "p-1", n.size === "stand" && "p-2", n.size === "large" && "p-2"])
|
|
2005
2005
|
}, [
|
|
2006
|
-
k("div",
|
|
2006
|
+
k("div", Fo, [
|
|
2007
2007
|
k("input", {
|
|
2008
2008
|
class: oe(["w-full", n.dir === "center" && "text-center", n.dir === "right" && "text-right"]),
|
|
2009
2009
|
type: n.type,
|
|
@@ -2014,12 +2014,12 @@ const me = (e, t) => {
|
|
|
2014
2014
|
onChange: s,
|
|
2015
2015
|
onFocus: c,
|
|
2016
2016
|
onBlur: y
|
|
2017
|
-
}, null, 42,
|
|
2017
|
+
}, null, 42, Eo)
|
|
2018
2018
|
]),
|
|
2019
2019
|
n.unit ? (i(), u("span", Po, te(n.unit), 1)) : D("", !0)
|
|
2020
2020
|
], 2));
|
|
2021
2021
|
}
|
|
2022
|
-
}),
|
|
2022
|
+
}), Mo = /* @__PURE__ */ ne({
|
|
2023
2023
|
__name: "slogan",
|
|
2024
2024
|
props: {
|
|
2025
2025
|
info: {},
|
|
@@ -2027,11 +2027,11 @@ const me = (e, t) => {
|
|
|
2027
2027
|
},
|
|
2028
2028
|
emits: ["change"],
|
|
2029
2029
|
setup(e, { emit: t }) {
|
|
2030
|
-
const o = e, l = W(() =>
|
|
2030
|
+
const o = e, l = W(() => ft[o.layout.mode][o.layout.paper]), r = W(() => ({
|
|
2031
2031
|
right: `${l.value.right + 97}px`,
|
|
2032
2032
|
bottom: `${l.value.bottom - 25}px`
|
|
2033
2033
|
}));
|
|
2034
|
-
return (a, s) => (i(), ee(
|
|
2034
|
+
return (a, s) => (i(), ee(rt, {
|
|
2035
2035
|
class: "absolute w-72 text-sm",
|
|
2036
2036
|
value: a.info.slogan,
|
|
2037
2037
|
maxLength: 12,
|
|
@@ -2043,7 +2043,7 @@ const me = (e, t) => {
|
|
|
2043
2043
|
onChange: s[0] || (s[0] = (c) => t("change", { slogin: c }))
|
|
2044
2044
|
}, null, 8, ["value", "style"]));
|
|
2045
2045
|
}
|
|
2046
|
-
}),
|
|
2046
|
+
}), Ao = ["width", "height"], Do = ["xlink:href"], Bo = /* @__PURE__ */ ne({
|
|
2047
2047
|
__name: "index",
|
|
2048
2048
|
props: {
|
|
2049
2049
|
width: { default: 1.5 },
|
|
@@ -2061,35 +2061,35 @@ const me = (e, t) => {
|
|
|
2061
2061
|
width: r.width + "rem",
|
|
2062
2062
|
height: (r.height || r.width) + "rem"
|
|
2063
2063
|
}, [
|
|
2064
|
-
k("use", { "xlink:href": l.value }, null, 8,
|
|
2065
|
-
], 8,
|
|
2064
|
+
k("use", { "xlink:href": l.value }, null, 8, Do)
|
|
2065
|
+
], 8, Ao))
|
|
2066
2066
|
]));
|
|
2067
2067
|
}
|
|
2068
2068
|
});
|
|
2069
|
-
const ve = /* @__PURE__ */ me(
|
|
2069
|
+
const ve = /* @__PURE__ */ me(Bo, [["__scopeId", "data-v-ed2907dd"]]), No = { class: "flex items-center text-black text-sm h-6 mb-2" }, Oo = {
|
|
2070
2070
|
key: 0,
|
|
2071
2071
|
class: "flex items-center"
|
|
2072
|
-
},
|
|
2072
|
+
}, zo = { class: "px-2 ml-2 border leading-none" }, Ro = /* @__PURE__ */ ne({
|
|
2073
2073
|
__name: "secrecy",
|
|
2074
2074
|
props: {
|
|
2075
2075
|
layout: {},
|
|
2076
2076
|
code: {}
|
|
2077
2077
|
},
|
|
2078
2078
|
setup(e) {
|
|
2079
|
-
return (t, o) => (i(), u("div",
|
|
2080
|
-
t.layout.secrecyFlag ? (i(), u("p",
|
|
2081
|
-
|
|
2079
|
+
return (t, o) => (i(), u("div", No, [
|
|
2080
|
+
t.layout.secrecyFlag ? (i(), u("p", Oo, [
|
|
2081
|
+
tt("绝密"),
|
|
2082
2082
|
ae(ve, {
|
|
2083
2083
|
name: "fiveArrow",
|
|
2084
2084
|
width: 1.4,
|
|
2085
2085
|
class: "px-0 py-0"
|
|
2086
2086
|
}),
|
|
2087
|
-
|
|
2087
|
+
tt("启用前")
|
|
2088
2088
|
])) : D("", !0),
|
|
2089
|
-
k("p",
|
|
2089
|
+
k("p", zo, "ID:" + te(t.code), 1)
|
|
2090
2090
|
]));
|
|
2091
2091
|
}
|
|
2092
|
-
}),
|
|
2092
|
+
}), Ho = ["innerHTML"], He = /* @__PURE__ */ ne({
|
|
2093
2093
|
__name: "index",
|
|
2094
2094
|
props: {
|
|
2095
2095
|
value: {},
|
|
@@ -2105,24 +2105,24 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2105
2105
|
innerHTML: r.value,
|
|
2106
2106
|
contenteditable: "",
|
|
2107
2107
|
onBlur: l
|
|
2108
|
-
}, null, 40,
|
|
2108
|
+
}, null, 40, Ho));
|
|
2109
2109
|
}
|
|
2110
|
-
}),
|
|
2110
|
+
}), Wo = { class: "flex w-full" }, Go = ["src", "data-xine"], Qo = { class: "flex-1 mx-4" }, qo = { class: "flex items-center justify-center flex-wrap" }, Yo = {
|
|
2111
2111
|
key: 0,
|
|
2112
2112
|
class: "flex mx-4 min-w-[70px]"
|
|
2113
|
-
},
|
|
2113
|
+
}, Ko = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Uo = {
|
|
2114
2114
|
key: 1,
|
|
2115
2115
|
class: "flex items-center w-40 mx-4"
|
|
2116
|
-
},
|
|
2116
|
+
}, Vo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "时间:", -1), jo = /* @__PURE__ */ k("span", null, "分钟", -1), Xo = {
|
|
2117
2117
|
key: 2,
|
|
2118
2118
|
class: "flex mx-4 min-w-[80px]"
|
|
2119
|
-
},
|
|
2119
|
+
}, Jo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "命题人:", -1), Zo = {
|
|
2120
2120
|
key: 3,
|
|
2121
2121
|
class: "flex mx-4 min-w-[80px]"
|
|
2122
|
-
},
|
|
2122
|
+
}, ea = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "审核人:", -1), ta = {
|
|
2123
2123
|
key: 4,
|
|
2124
2124
|
class: "flex items-center mx-4"
|
|
2125
|
-
},
|
|
2125
|
+
}, oa = /* @__PURE__ */ k("span", null, "总", -1), aa = { key: 1 }, la = { key: 3 }, na = { key: 1 }, sa = { key: 3 }, ia = /* @__PURE__ */ k("span", null, ")", -1), ra = { key: 1 }, ca = /* @__PURE__ */ ne({
|
|
2126
2126
|
__name: "title",
|
|
2127
2127
|
props: {
|
|
2128
2128
|
info: {},
|
|
@@ -2132,40 +2132,40 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2132
2132
|
},
|
|
2133
2133
|
emits: ["change"],
|
|
2134
2134
|
setup(e, { emit: t }) {
|
|
2135
|
-
const o = e, l = W(() => o.data.filter((s) => ![Ce.another, Ce.another_choice, Ce.one_choice].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), r = W(() => o.data.filter((s) => [Ce.another].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), a = W(() => o.layout.scoreAddStars ===
|
|
2136
|
-
return (s, c) => (i(), u("div",
|
|
2135
|
+
const o = e, l = W(() => o.data.filter((s) => ![Ce.another, Ce.another_choice, Ce.one_choice].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), r = W(() => o.data.filter((s) => [Ce.another].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), a = W(() => o.layout.scoreAddStars === it.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2136
|
+
return (s, c) => (i(), u("div", Wo, [
|
|
2137
2137
|
k("img", {
|
|
2138
2138
|
src: s.info.qrCode,
|
|
2139
2139
|
alt: "QRCode",
|
|
2140
2140
|
class: "flex-shrink-0 w-28 h-28",
|
|
2141
2141
|
"data-xine": L(I).art_code
|
|
2142
|
-
}, null, 8,
|
|
2143
|
-
k("div",
|
|
2144
|
-
ae(
|
|
2142
|
+
}, null, 8, Go),
|
|
2143
|
+
k("div", Qo, [
|
|
2144
|
+
ae(He, {
|
|
2145
2145
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2146
2146
|
value: s.info.title,
|
|
2147
2147
|
style: Z(s.fontConfig.titleStyle),
|
|
2148
2148
|
onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
|
|
2149
2149
|
}, null, 8, ["value", "style"]),
|
|
2150
|
-
s.layout.secTitleFlag ? (i(), ee(
|
|
2150
|
+
s.layout.secTitleFlag ? (i(), ee(He, {
|
|
2151
2151
|
key: 0,
|
|
2152
2152
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2153
2153
|
value: s.info.secTitle,
|
|
2154
2154
|
style: Z(s.fontConfig.halfTitleStyle),
|
|
2155
2155
|
onChange: c[1] || (c[1] = (y) => t("change", { secTitle: y }))
|
|
2156
2156
|
}, null, 8, ["value", "style"])) : D("", !0),
|
|
2157
|
-
k("div",
|
|
2158
|
-
s.layout.examExtentFlag ? (i(), u("p",
|
|
2159
|
-
|
|
2160
|
-
ae(
|
|
2157
|
+
k("div", qo, [
|
|
2158
|
+
s.layout.examExtentFlag ? (i(), u("p", Yo, [
|
|
2159
|
+
Ko,
|
|
2160
|
+
ae(He, {
|
|
2161
2161
|
class: "flex-1",
|
|
2162
2162
|
value: s.info.extent,
|
|
2163
2163
|
onChange: c[2] || (c[2] = (y) => t("change", { extent: y }))
|
|
2164
2164
|
}, null, 8, ["value"])
|
|
2165
2165
|
])) : D("", !0),
|
|
2166
|
-
s.layout.examTimeFlag ? (i(), u("p",
|
|
2167
|
-
|
|
2168
|
-
ae(
|
|
2166
|
+
s.layout.examTimeFlag ? (i(), u("p", Uo, [
|
|
2167
|
+
Vo,
|
|
2168
|
+
ae(rt, {
|
|
2169
2169
|
value: s.info.time,
|
|
2170
2170
|
class: "text-center",
|
|
2171
2171
|
type: "number",
|
|
@@ -2174,51 +2174,51 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2174
2174
|
placeholder: "",
|
|
2175
2175
|
onChange: c[3] || (c[3] = (y) => t("change", { time: y }))
|
|
2176
2176
|
}, null, 8, ["value"]),
|
|
2177
|
-
|
|
2177
|
+
jo
|
|
2178
2178
|
])) : D("", !0),
|
|
2179
|
-
s.layout.authorFlag ? (i(), u("p",
|
|
2180
|
-
|
|
2181
|
-
ae(
|
|
2179
|
+
s.layout.authorFlag ? (i(), u("p", Xo, [
|
|
2180
|
+
Jo,
|
|
2181
|
+
ae(He, {
|
|
2182
2182
|
class: "flex-1",
|
|
2183
2183
|
value: s.info.author,
|
|
2184
2184
|
onChange: c[4] || (c[4] = (y) => t("change", { author: y }))
|
|
2185
2185
|
}, null, 8, ["value"])
|
|
2186
2186
|
])) : D("", !0),
|
|
2187
|
-
s.layout.reviewerFlag ? (i(), u("p",
|
|
2188
|
-
|
|
2189
|
-
ae(
|
|
2187
|
+
s.layout.reviewerFlag ? (i(), u("p", Zo, [
|
|
2188
|
+
ea,
|
|
2189
|
+
ae(He, {
|
|
2190
2190
|
class: "flex-1",
|
|
2191
2191
|
value: s.info.reviewer,
|
|
2192
2192
|
onChange: c[5] || (c[5] = (y) => t("change", { reviewer: y }))
|
|
2193
2193
|
}, null, 8, ["value"])
|
|
2194
2194
|
])) : D("", !0),
|
|
2195
|
-
s.layout.totalScoreFlag ? (i(), u("p",
|
|
2196
|
-
|
|
2195
|
+
s.layout.totalScoreFlag ? (i(), u("p", ta, [
|
|
2196
|
+
oa,
|
|
2197
2197
|
a.value ? (i(), ee(ve, {
|
|
2198
2198
|
key: 0,
|
|
2199
2199
|
name: a.value,
|
|
2200
2200
|
class: "p-0 -translate-y-[1px]"
|
|
2201
|
-
}, null, 8, ["name"])) : (i(), u("span",
|
|
2201
|
+
}, null, 8, ["name"])) : (i(), u("span", aa, "分")),
|
|
2202
2202
|
k("span", null, ":" + te(l.value + (s.layout.writeScoreFlag ? s.info.writeScore : 0)), 1),
|
|
2203
2203
|
a.value ? (i(), ee(ve, {
|
|
2204
2204
|
key: 2,
|
|
2205
2205
|
name: a.value,
|
|
2206
2206
|
class: "p-0 -translate-y-[1px]"
|
|
2207
|
-
}, null, 8, ["name"])) : (i(), u("span",
|
|
2207
|
+
}, null, 8, ["name"])) : (i(), u("span", la, "分")),
|
|
2208
2208
|
s.layout.writeScoreFlag ? (i(), u(N, { key: 4 }, [
|
|
2209
2209
|
k("span", null, "(试题" + te(l.value), 1),
|
|
2210
2210
|
a.value ? (i(), ee(ve, {
|
|
2211
2211
|
key: 0,
|
|
2212
2212
|
name: a.value,
|
|
2213
2213
|
class: "p-0 -translate-y-[1px]"
|
|
2214
|
-
}, null, 8, ["name"])) : (i(), u("span",
|
|
2214
|
+
}, null, 8, ["name"])) : (i(), u("span", na, "分")),
|
|
2215
2215
|
k("span", null, "+卷面" + te(s.info.writeScore || 0), 1),
|
|
2216
2216
|
a.value ? (i(), ee(ve, {
|
|
2217
2217
|
key: 2,
|
|
2218
2218
|
name: a.value,
|
|
2219
2219
|
class: "p-0 -translate-y-[1px]"
|
|
2220
|
-
}, null, 8, ["name"])) : (i(), u("span",
|
|
2221
|
-
|
|
2220
|
+
}, null, 8, ["name"])) : (i(), u("span", sa, "分")),
|
|
2221
|
+
ia
|
|
2222
2222
|
], 64)) : D("", !0),
|
|
2223
2223
|
r.value ? (i(), u(N, { key: 5 }, [
|
|
2224
2224
|
k("span", null, ";附加题:" + te(r.value), 1),
|
|
@@ -2226,14 +2226,14 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2226
2226
|
key: 0,
|
|
2227
2227
|
name: a.value,
|
|
2228
2228
|
class: "p-0 -translate-y-[1px]"
|
|
2229
|
-
}, null, 8, ["name"])) : (i(), u("span",
|
|
2229
|
+
}, null, 8, ["name"])) : (i(), u("span", ra, "分"))
|
|
2230
2230
|
], 64)) : D("", !0)
|
|
2231
2231
|
])) : D("", !0)
|
|
2232
2232
|
])
|
|
2233
2233
|
])
|
|
2234
2234
|
]));
|
|
2235
2235
|
}
|
|
2236
|
-
}),
|
|
2236
|
+
}), Tt = /* @__PURE__ */ ne({
|
|
2237
2237
|
__name: "examInfoNone",
|
|
2238
2238
|
props: {
|
|
2239
2239
|
extent: {},
|
|
@@ -2249,7 +2249,7 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2249
2249
|
key: a,
|
|
2250
2250
|
class: oe(["flex flex-1 min-w-[12rem]", l.isRow && s && "ml-2"])
|
|
2251
2251
|
}, [
|
|
2252
|
-
ae(
|
|
2252
|
+
ae(rt, {
|
|
2253
2253
|
value: l.extent[a],
|
|
2254
2254
|
class: "px-0",
|
|
2255
2255
|
placeholder: "",
|
|
@@ -2260,19 +2260,19 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2260
2260
|
], 2)), 64))
|
|
2261
2261
|
], 2));
|
|
2262
2262
|
}
|
|
2263
|
-
}),
|
|
2263
|
+
}), da = ["data-xine"], ua = { class: "flex items-center" }, ha = ["data-xine"], pa = ["data-xine"], ma = ["data-xine"], ya = /* @__PURE__ */ ne({
|
|
2264
2264
|
__name: "examInfoSeat",
|
|
2265
2265
|
setup(e) {
|
|
2266
2266
|
return (t, o) => (i(), u("div", {
|
|
2267
2267
|
class: "flex-shrink-0 border flex flex-col",
|
|
2268
2268
|
"data-xine": L(I).en_num_view
|
|
2269
2269
|
}, [
|
|
2270
|
-
k("p",
|
|
2270
|
+
k("p", ua, [
|
|
2271
2271
|
ae(ve, {
|
|
2272
2272
|
class: "pt-1",
|
|
2273
2273
|
name: "fiveArrow"
|
|
2274
2274
|
}),
|
|
2275
|
-
|
|
2275
|
+
tt("座位号")
|
|
2276
2276
|
]),
|
|
2277
2277
|
k("div", {
|
|
2278
2278
|
class: "flex-1 flex flex-col",
|
|
@@ -2287,25 +2287,25 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2287
2287
|
key: a,
|
|
2288
2288
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2289
2289
|
"data-xine": L(I).en_num_item
|
|
2290
|
-
}, te(a - 1), 9,
|
|
2291
|
-
], 8,
|
|
2292
|
-
], 8,
|
|
2293
|
-
], 8,
|
|
2290
|
+
}, te(a - 1), 9, ma)), 64))
|
|
2291
|
+
], 8, pa)), 64))
|
|
2292
|
+
], 8, ha)
|
|
2293
|
+
], 8, da));
|
|
2294
2294
|
}
|
|
2295
2295
|
});
|
|
2296
|
-
const
|
|
2296
|
+
const _a = /* @__PURE__ */ me(ya, [["__scopeId", "data-v-91b25fab"]]), fa = ["data-xine"], ga = { class: "flex items-center border-r tracking-[5px] text_dir" }, ba = ["data-xine"], va = ["data-xine"], wa = ["data-xine"], ka = /* @__PURE__ */ ne({
|
|
2297
2297
|
__name: "examInfoShort",
|
|
2298
2298
|
setup(e) {
|
|
2299
2299
|
return (t, o) => (i(), u("div", {
|
|
2300
2300
|
class: "flex-shrink-0 border ml-4 flex min-h-[9.5rem]",
|
|
2301
2301
|
"data-xine": L(I).en_num_view
|
|
2302
2302
|
}, [
|
|
2303
|
-
k("p",
|
|
2303
|
+
k("p", ga, [
|
|
2304
2304
|
ae(ve, {
|
|
2305
2305
|
class: "px-1 pt-1",
|
|
2306
2306
|
name: "fiveArrow"
|
|
2307
2307
|
}),
|
|
2308
|
-
|
|
2308
|
+
tt("短学号")
|
|
2309
2309
|
]),
|
|
2310
2310
|
k("div", {
|
|
2311
2311
|
class: "flex-1 flex flex-col",
|
|
@@ -2320,13 +2320,13 @@ const ya = /* @__PURE__ */ me(ma, [["__scopeId", "data-v-91b25fab"]]), _a = ["da
|
|
|
2320
2320
|
key: a,
|
|
2321
2321
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2322
2322
|
"data-xine": L(I).en_num_item
|
|
2323
|
-
}, te(a - 1), 9,
|
|
2324
|
-
], 10,
|
|
2325
|
-
], 8,
|
|
2326
|
-
], 8,
|
|
2323
|
+
}, te(a - 1), 9, wa)), 64))
|
|
2324
|
+
], 10, va)), 64))
|
|
2325
|
+
], 8, ba)
|
|
2326
|
+
], 8, fa));
|
|
2327
2327
|
}
|
|
2328
2328
|
});
|
|
2329
|
-
const
|
|
2329
|
+
const zt = /* @__PURE__ */ me(ka, [["__scopeId", "data-v-96e8d41d"]]), xa = /* @__PURE__ */ ne({
|
|
2330
2330
|
__name: "examInfoBase",
|
|
2331
2331
|
props: {
|
|
2332
2332
|
extent: {},
|
|
@@ -2342,7 +2342,7 @@ const Ot = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2342
2342
|
key: a,
|
|
2343
2343
|
class: oe(["flex flex-1", l.isRow && s && "ml-2"])
|
|
2344
2344
|
}, [
|
|
2345
|
-
ae(
|
|
2345
|
+
ae(rt, {
|
|
2346
2346
|
value: l.extent[a],
|
|
2347
2347
|
class: "px-0",
|
|
2348
2348
|
placeholder: "",
|
|
@@ -2353,9 +2353,9 @@ const Ot = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2353
2353
|
], 2)), 64))
|
|
2354
2354
|
], 2));
|
|
2355
2355
|
}
|
|
2356
|
-
}),
|
|
2357
|
-
|
|
2358
|
-
],
|
|
2356
|
+
}), Ca = (e) => (Ye("data-v-4d37cd56"), e = e(), Ke(), e), Sa = ["data-xine"], $a = /* @__PURE__ */ Ca(() => /* @__PURE__ */ k("span", { class: "font-bold tips" }, "贴条码区域", -1)), Ta = [
|
|
2357
|
+
$a
|
|
2358
|
+
], Ia = /* @__PURE__ */ ne({
|
|
2359
2359
|
__name: "examInfo",
|
|
2360
2360
|
props: {
|
|
2361
2361
|
layout: {},
|
|
@@ -2369,41 +2369,41 @@ const Ot = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2369
2369
|
key: 0,
|
|
2370
2370
|
class: oe(["flex justify-between", (a.value || r.value) && "flex-wrap"])
|
|
2371
2371
|
}, [
|
|
2372
|
-
r.value ? (i(), ee(
|
|
2372
|
+
r.value ? (i(), ee(Tt, {
|
|
2373
2373
|
key: 0,
|
|
2374
2374
|
isRow: "",
|
|
2375
2375
|
extent: s.info.extentInfo,
|
|
2376
2376
|
onChange: c[0] || (c[0] = (y) => t("change", y))
|
|
2377
2377
|
}, null, 8, ["extent"])) : D("", !0),
|
|
2378
|
-
ae(
|
|
2378
|
+
ae(xa, {
|
|
2379
2379
|
isRow: a.value,
|
|
2380
2380
|
extent: s.info.extentInfo,
|
|
2381
2381
|
onChange: c[1] || (c[1] = (y) => t("change", y))
|
|
2382
2382
|
}, null, 8, ["isRow", "extent"]),
|
|
2383
|
-
!r.value && l.value ? (i(), ee(
|
|
2383
|
+
!r.value && l.value ? (i(), ee(Tt, {
|
|
2384
2384
|
key: 1,
|
|
2385
2385
|
extent: s.info.extentInfo,
|
|
2386
2386
|
onChange: c[2] || (c[2] = (y) => t("change", y))
|
|
2387
2387
|
}, null, 8, ["extent"])) : D("", !0),
|
|
2388
|
-
s.layout.seatType === L(Se).seat ? (i(), ee(
|
|
2388
|
+
s.layout.seatType === L(Se).seat ? (i(), ee(_a, { key: 2 })) : s.layout.seatType === L(Se).shortId ? (i(), ee(zt, { key: 3 })) : D("", !0),
|
|
2389
2389
|
s.layout.seatBar ? (i(), u("div", {
|
|
2390
2390
|
key: 4,
|
|
2391
2391
|
class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
|
|
2392
2392
|
"data-xine": L(I).en_code
|
|
2393
|
-
},
|
|
2393
|
+
}, Ta, 8, Sa)) : D("", !0)
|
|
2394
2394
|
], 2));
|
|
2395
2395
|
}
|
|
2396
2396
|
});
|
|
2397
|
-
const
|
|
2397
|
+
const La = /* @__PURE__ */ me(Ia, [["__scopeId", "data-v-4d37cd56"]]), Re = (e) => (Ye("data-v-936c144e"), e = e(), Ke(), e), Fa = {
|
|
2398
2398
|
key: 0,
|
|
2399
2399
|
class: "flex border mt-2 red_sheet"
|
|
2400
|
-
},
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
],
|
|
2400
|
+
}, Ea = /* @__PURE__ */ Re(() => /* @__PURE__ */ k("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Pa = { class: "flex-1 overflow-hidden" }, Ma = { class: "flex items-center flex-1 pl-2" }, Aa = /* @__PURE__ */ Re(() => /* @__PURE__ */ k("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), Da = { class: "flex items-center justify-center text-black" }, Ba = ["data-xine"], Na = /* @__PURE__ */ Re(() => /* @__PURE__ */ k("span", null, "[", -1)), Oa = /* @__PURE__ */ Re(() => /* @__PURE__ */ k("span", { class: "ml-4" }, "]", -1)), za = [
|
|
2401
|
+
Na,
|
|
2402
|
+
Oa
|
|
2403
|
+
], Ra = /* @__PURE__ */ Re(() => /* @__PURE__ */ k("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2404
2404
|
/* @__PURE__ */ k("span", null, "正确填涂示例"),
|
|
2405
2405
|
/* @__PURE__ */ k("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2406
|
-
], -1)),
|
|
2406
|
+
], -1)), Ha = /* @__PURE__ */ Re(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Wa = /* @__PURE__ */ ne({
|
|
2407
2407
|
__name: "notice",
|
|
2408
2408
|
props: {
|
|
2409
2409
|
layout: {},
|
|
@@ -2424,8 +2424,8 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2424
2424
|
];
|
|
2425
2425
|
});
|
|
2426
2426
|
return (l, r) => (i(), u(N, null, [
|
|
2427
|
-
l.layout.noteFlag ? (i(), u("div",
|
|
2428
|
-
|
|
2427
|
+
l.layout.noteFlag ? (i(), u("div", Fa, [
|
|
2428
|
+
Ea,
|
|
2429
2429
|
k("div", Pa, [
|
|
2430
2430
|
(i(!0), u(N, null, le(o.value, (a) => (i(), u("p", {
|
|
2431
2431
|
key: a,
|
|
@@ -2437,30 +2437,30 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2437
2437
|
key: 1,
|
|
2438
2438
|
class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2439
2439
|
}, [
|
|
2440
|
-
k("p",
|
|
2441
|
-
|
|
2442
|
-
k("span",
|
|
2440
|
+
k("p", Ma, [
|
|
2441
|
+
Aa,
|
|
2442
|
+
k("span", Da, [
|
|
2443
2443
|
ae(ve, { name: "rightArrow" }),
|
|
2444
2444
|
k("span", {
|
|
2445
2445
|
class: "flex items-center leading-4",
|
|
2446
2446
|
"data-xine": L(I).lack
|
|
2447
|
-
},
|
|
2447
|
+
}, za, 8, Ba)
|
|
2448
2448
|
])
|
|
2449
2449
|
]),
|
|
2450
|
-
|
|
2450
|
+
Ra
|
|
2451
2451
|
], 2)) : D("", !0),
|
|
2452
|
-
|
|
2452
|
+
Ha
|
|
2453
2453
|
], 64));
|
|
2454
2454
|
}
|
|
2455
2455
|
});
|
|
2456
|
-
const
|
|
2456
|
+
const Ga = /* @__PURE__ */ me(Wa, [["__scopeId", "data-v-936c144e"]]), pt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Qa = (e, t = "", o = !0, l = "children") => {
|
|
2457
2457
|
let r = [];
|
|
2458
2458
|
const a = (s) => {
|
|
2459
2459
|
(s[l] || []).length ? (o && r.push(t ? s[t] : s[l]), s[l].forEach((c) => a(c))) : r.push(t ? s[t] : s);
|
|
2460
2460
|
};
|
|
2461
2461
|
return e.forEach((s) => a(s)), r.flat(5);
|
|
2462
2462
|
};
|
|
2463
|
-
function
|
|
2463
|
+
function Rt(e) {
|
|
2464
2464
|
if (e < 0 || e > 99)
|
|
2465
2465
|
throw Error("下标超限");
|
|
2466
2466
|
const t = "零一二三四五六七八九".split("");
|
|
@@ -2469,19 +2469,19 @@ function zt(e) {
|
|
|
2469
2469
|
return a ? `${a > 1 ? t[a] : ""}十${s ? t[s] : ""}` : t[s];
|
|
2470
2470
|
})[e + 1];
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function It(e) {
|
|
2473
2473
|
return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
|
|
2474
2474
|
}
|
|
2475
|
-
const
|
|
2475
|
+
const qa = {
|
|
2476
2476
|
key: 0,
|
|
2477
2477
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2478
|
-
},
|
|
2478
|
+
}, Ya = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col" }, [
|
|
2479
2479
|
/* @__PURE__ */ k("p", { class: "flex-1" }, "题号"),
|
|
2480
2480
|
/* @__PURE__ */ k("p", { class: "flex-1 border-t" }, "得分")
|
|
2481
|
-
], -1),
|
|
2481
|
+
], -1), Ka = { class: "flex-1" }, Ua = /* @__PURE__ */ k("p", { class: "flex-1 border-t" }, null, -1), Va = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2482
2482
|
/* @__PURE__ */ k("p", { class: "flex-1" }, "总分"),
|
|
2483
2483
|
/* @__PURE__ */ k("p", { class: "flex-1 border-t" })
|
|
2484
|
-
], -1),
|
|
2484
|
+
], -1), ja = /* @__PURE__ */ ne({
|
|
2485
2485
|
__name: "scoreTable",
|
|
2486
2486
|
props: {
|
|
2487
2487
|
layout: {},
|
|
@@ -2489,19 +2489,19 @@ const Qa = {
|
|
|
2489
2489
|
},
|
|
2490
2490
|
setup(e) {
|
|
2491
2491
|
const t = e, o = W(() => t.data.filter((l) => l.problemType));
|
|
2492
|
-
return (l, r) => l.layout.scoreFlag ? (i(), u("ul",
|
|
2493
|
-
|
|
2492
|
+
return (l, r) => l.layout.scoreFlag ? (i(), u("ul", qa, [
|
|
2493
|
+
Ya,
|
|
2494
2494
|
(i(!0), u(N, null, le(o.value, (a, s) => (i(), u("li", {
|
|
2495
2495
|
key: a.id,
|
|
2496
2496
|
class: "flex-1 flex flex-col border-l"
|
|
2497
2497
|
}, [
|
|
2498
|
-
k("p",
|
|
2499
|
-
|
|
2498
|
+
k("p", Ka, te(L(Rt)(s)), 1),
|
|
2499
|
+
Ua
|
|
2500
2500
|
]))), 128)),
|
|
2501
|
-
|
|
2501
|
+
Va
|
|
2502
2502
|
])) : D("", !0);
|
|
2503
2503
|
}
|
|
2504
|
-
}),
|
|
2504
|
+
}), Xa = /* @__PURE__ */ ne({
|
|
2505
2505
|
__name: "columnDom",
|
|
2506
2506
|
props: {
|
|
2507
2507
|
column: {},
|
|
@@ -2513,10 +2513,10 @@ const Qa = {
|
|
|
2513
2513
|
const o = e, l = V(), r = V();
|
|
2514
2514
|
t({ col: l, colView: r });
|
|
2515
2515
|
const a = W(() => {
|
|
2516
|
-
const { top: y, width: n, height: h, left:
|
|
2516
|
+
const { top: y, width: n, height: h, left: P } = o.styleInfo;
|
|
2517
2517
|
return {
|
|
2518
2518
|
top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
|
|
2519
|
-
left: `${parseFloat(
|
|
2519
|
+
left: `${parseFloat(P) - Le.left}px`,
|
|
2520
2520
|
width: `${parseFloat(n) + Le.left + Le.right}px`,
|
|
2521
2521
|
height: `${parseFloat(h) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
|
|
2522
2522
|
};
|
|
@@ -2549,18 +2549,18 @@ const Qa = {
|
|
|
2549
2549
|
class: "overflow-hidden __col__",
|
|
2550
2550
|
style: Z({ height: y.styleInfo.contentHeight })
|
|
2551
2551
|
}, [
|
|
2552
|
-
|
|
2552
|
+
_t(y.$slots, "default", {}, void 0, !0)
|
|
2553
2553
|
], 4)
|
|
2554
2554
|
], 4)
|
|
2555
2555
|
], 64));
|
|
2556
2556
|
}
|
|
2557
2557
|
});
|
|
2558
|
-
const
|
|
2558
|
+
const Ja = /* @__PURE__ */ me(Xa, [["__scopeId", "data-v-e102e805"]]), Za = (e) => (Ye("data-v-01785ba3"), e = e(), Ke(), e), el = { class: "flex-1 flex items-center flex-wrap relative" }, tl = {
|
|
2559
2559
|
key: 0,
|
|
2560
2560
|
class: "flex-1 mr-4 mb-4 min-w-[30%] max-w-[35%]"
|
|
2561
|
-
},
|
|
2562
|
-
|
|
2563
|
-
],
|
|
2561
|
+
}, ol = ["data-xine"], al = /* @__PURE__ */ Za(() => /* @__PURE__ */ k("span", null, "贴条码区域", -1)), ll = [
|
|
2562
|
+
al
|
|
2563
|
+
], nl = ["data-xine"], sl = /* @__PURE__ */ ne({
|
|
2564
2564
|
__name: "bind",
|
|
2565
2565
|
props: {
|
|
2566
2566
|
currentPage: {},
|
|
@@ -2588,9 +2588,9 @@ const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e)
|
|
|
2588
2588
|
class: "relative flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2589
2589
|
style: Z({ width: `${o.height - 20}px` })
|
|
2590
2590
|
}, [
|
|
2591
|
-
k("div",
|
|
2591
|
+
k("div", el, [
|
|
2592
2592
|
(i(!0), u(N, null, le(o.bindInfo, (r, a) => (i(), u(N, { key: r }, [
|
|
2593
|
-
a === 2 && o.bindInfo.length === 5 ? (i(), u("span",
|
|
2593
|
+
a === 2 && o.bindInfo.length === 5 ? (i(), u("span", tl)) : D("", !0),
|
|
2594
2594
|
k("span", {
|
|
2595
2595
|
class: oe(["flex-1 whitespace-nowrap w-20 mr-4 mt-8 overflow-hidden", o.bindInfo.length === 4 && "min-w-[40%] max-w-[50%]", o.bindInfo.length === 5 && "min-w-[30%] max-w-[35%]"])
|
|
2596
2596
|
}, te(r), 3)
|
|
@@ -2600,19 +2600,19 @@ const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e)
|
|
|
2600
2600
|
key: 0,
|
|
2601
2601
|
class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2602
2602
|
"data-xine": L(I).en_code
|
|
2603
|
-
},
|
|
2603
|
+
}, ll, 8, ol)) : o.bindSeatType === L(Se).shortId ? (i(), ee(zt, {
|
|
2604
2604
|
key: 1,
|
|
2605
2605
|
class: "h-40"
|
|
2606
2606
|
})) : D("", !0),
|
|
2607
2607
|
k("span", {
|
|
2608
2608
|
class: "absolute right-0 bottom-0",
|
|
2609
2609
|
"data-xine": L(I).bind_line
|
|
2610
|
-
}, null, 8,
|
|
2610
|
+
}, null, 8, nl)
|
|
2611
2611
|
], 4))
|
|
2612
2612
|
], 6)) : D("", !0);
|
|
2613
2613
|
}
|
|
2614
2614
|
});
|
|
2615
|
-
const
|
|
2615
|
+
const il = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5jdmxyN28zYWRl", rl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", Lt = "MC5sZGN2NzJ0ZXE0bw", bt = "MC5yYjk3NGY2OTcyOA", vt = "MC42cWRzbGM0c21jbw", cl = "MC45amVuM25vajRk", dl = "MC44YjJkb212djRu", ul = ["img", "table", "svg"], hl = ["data-block", "data-xine"], pl = ["data-xine"], ml = ["data-xine"], yl = { class: "absolute opacity-0 pointer-events-none" }, _l = /* @__PURE__ */ ne({
|
|
2616
2616
|
__name: "simple",
|
|
2617
2617
|
props: {
|
|
2618
2618
|
item: {},
|
|
@@ -2634,19 +2634,19 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2634
2634
|
}, [
|
|
2635
2635
|
(i(!0), u(N, null, le(l.value, (s, c) => (i(), u("li", {
|
|
2636
2636
|
class: "flex items-center justify-center relative score_line",
|
|
2637
|
-
style: Z({ width: `${L(
|
|
2637
|
+
style: Z({ width: `${L(lt)[r.layout.scoreLineSize].value}px` }),
|
|
2638
2638
|
"data-xine": L(I).score_item
|
|
2639
2639
|
}, [
|
|
2640
|
-
k("span",
|
|
2640
|
+
k("span", yl, te(s), 1),
|
|
2641
2641
|
ae(ve, {
|
|
2642
2642
|
class: "p-0",
|
|
2643
2643
|
name: o[c]
|
|
2644
2644
|
}, null, 8, ["name"])
|
|
2645
|
-
], 12,
|
|
2646
|
-
], 8,
|
|
2647
|
-
], 8,
|
|
2645
|
+
], 12, ml))), 256))
|
|
2646
|
+
], 8, pl)
|
|
2647
|
+
], 8, hl));
|
|
2648
2648
|
}
|
|
2649
|
-
}),
|
|
2649
|
+
}), fl = ["data-block", "data-xine"], gl = ["data-xine"], bl = ["data-xine"], ct = /* @__PURE__ */ ne({
|
|
2650
2650
|
__name: "index",
|
|
2651
2651
|
props: {
|
|
2652
2652
|
item: {},
|
|
@@ -2654,26 +2654,26 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2654
2654
|
static: { type: Boolean }
|
|
2655
2655
|
},
|
|
2656
2656
|
setup(e) {
|
|
2657
|
-
const t = e, o = V(), l = V(!1), r = V(!1), a = V(!1), s = V([]), c = W(() => t.layout.scoreAddStars ===
|
|
2658
|
-
De(() => [t.item.score], () => y()),
|
|
2657
|
+
const t = e, o = V(), l = V(!1), r = V(!1), a = V(!1), s = V([]), c = W(() => t.layout.scoreAddStars === it.star.code);
|
|
2658
|
+
De(() => [t.item.score], () => y()), Ue(() => {
|
|
2659
2659
|
y();
|
|
2660
2660
|
});
|
|
2661
2661
|
const y = () => {
|
|
2662
|
-
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static ||
|
|
2662
|
+
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || st(() => {
|
|
2663
2663
|
let h = [];
|
|
2664
|
-
if (t.item.scoreLineType ===
|
|
2664
|
+
if (t.item.scoreLineType === at.custom)
|
|
2665
2665
|
h = [[...t.item.customScore, 0]];
|
|
2666
2666
|
else if (t.item.scoreStep)
|
|
2667
|
-
h.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((
|
|
2667
|
+
h.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((P) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * P)).reverse());
|
|
2668
2668
|
else {
|
|
2669
|
-
const
|
|
2670
|
-
l.value =
|
|
2669
|
+
const P = o.value.offsetWidth, p = lt[t.layout.scoreLineSize].value + 1;
|
|
2670
|
+
l.value = P - 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((M) => M && M * 10).reverse()), h.push([...Array(10).keys()].reverse()), a.value = !0) : h.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2671
2671
|
}
|
|
2672
|
-
t.item.hasHalfScore && h.push([0.5]), s.value = h, r.value = !!h.flat().find((
|
|
2672
|
+
t.item.hasHalfScore && h.push([0.5]), s.value = h, r.value = !!h.flat().find((P) => `${P}`.length > 3);
|
|
2673
2673
|
});
|
|
2674
2674
|
}, n = (h) => t.item.hasHalfScore ? [I.score_half, I.score_base, I.score_tenbit][s.value.length - h - 1] : [I.score_base, I.score_tenbit][s.value.length - h - 1];
|
|
2675
|
-
return (h,
|
|
2676
|
-
h.layout.simpleScoreBarFlag && !h.static ? (i(), ee(
|
|
2675
|
+
return (h, P) => h.layout.handReadFlag ? (i(), u(N, { key: 0 }, [
|
|
2676
|
+
h.layout.simpleScoreBarFlag && !h.static ? (i(), ee(_l, {
|
|
2677
2677
|
key: 0,
|
|
2678
2678
|
item: h.item,
|
|
2679
2679
|
layout: h.layout
|
|
@@ -2691,7 +2691,7 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2691
2691
|
}, [
|
|
2692
2692
|
(i(!0), u(N, null, le(p, (z) => (i(), u("li", {
|
|
2693
2693
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2694
|
-
style: Z({ width: `${L(
|
|
2694
|
+
style: Z({ width: `${L(lt)[h.layout.scoreLineSize].value}px` }),
|
|
2695
2695
|
"data-xine": z.toString() ? L(I).score_item : ""
|
|
2696
2696
|
}, [
|
|
2697
2697
|
k("span", {
|
|
@@ -2703,12 +2703,12 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2703
2703
|
name: h.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2704
2704
|
width: r.value ? 0.9 : 1.2
|
|
2705
2705
|
}, null, 8, ["name", "width"])) : D("", !0)
|
|
2706
|
-
], 12,
|
|
2707
|
-
], 8,
|
|
2708
|
-
], 10,
|
|
2706
|
+
], 12, bl))), 256))
|
|
2707
|
+
], 8, gl))), 256))
|
|
2708
|
+
], 10, fl))
|
|
2709
2709
|
], 64)) : D("", !0);
|
|
2710
2710
|
}
|
|
2711
|
-
}),
|
|
2711
|
+
}), Ht = (e) => (Ye("data-v-a8dbd3b0"), e = e(), Ke(), e), vl = ["data-xine"], wl = /* @__PURE__ */ Ht(() => /* @__PURE__ */ k("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), kl = /* @__PURE__ */ Ht(() => /* @__PURE__ */ k("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), xl = /* @__PURE__ */ ne({
|
|
2712
2712
|
__name: "writeScore",
|
|
2713
2713
|
props: {
|
|
2714
2714
|
info: {},
|
|
@@ -2719,17 +2719,17 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2719
2719
|
class: "flex items-center mb-2",
|
|
2720
2720
|
"data-xine": L(I).write_view
|
|
2721
2721
|
}, [
|
|
2722
|
-
vl,
|
|
2723
2722
|
wl,
|
|
2724
|
-
|
|
2723
|
+
kl,
|
|
2724
|
+
ae(ct, {
|
|
2725
2725
|
item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
|
|
2726
2726
|
layout: t.layout,
|
|
2727
2727
|
static: ""
|
|
2728
2728
|
}, null, 8, ["item", "layout"])
|
|
2729
|
-
], 8,
|
|
2729
|
+
], 8, vl));
|
|
2730
2730
|
}
|
|
2731
2731
|
});
|
|
2732
|
-
const
|
|
2732
|
+
const Cl = /* @__PURE__ */ me(xl, [["__scopeId", "data-v-a8dbd3b0"]]), Sl = ["innerHTML"], $l = /* @__PURE__ */ ne({
|
|
2733
2733
|
__name: "index",
|
|
2734
2734
|
props: {
|
|
2735
2735
|
data: {}
|
|
@@ -2739,10 +2739,10 @@ const xl = /* @__PURE__ */ me(kl, [["__scopeId", "data-v-a8dbd3b0"]]), Cl = ["in
|
|
|
2739
2739
|
return (o, l) => (i(), u("div", {
|
|
2740
2740
|
innerHTML: t.data,
|
|
2741
2741
|
class: "base-problem-font problem-base"
|
|
2742
|
-
}, null, 8,
|
|
2742
|
+
}, null, 8, Sl));
|
|
2743
2743
|
}
|
|
2744
2744
|
});
|
|
2745
|
-
const
|
|
2745
|
+
const ze = /* @__PURE__ */ me($l, [["__scopeId", "data-v-e6258dec"]]), Tl = ["data-tag", "data-block"], Il = /* @__PURE__ */ ne({
|
|
2746
2746
|
__name: "notArea",
|
|
2747
2747
|
props: {
|
|
2748
2748
|
item: {}
|
|
@@ -2751,21 +2751,21 @@ const Oe = /* @__PURE__ */ me(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2751
2751
|
return (t, o) => (i(), u("div", {
|
|
2752
2752
|
class: "py-2 border border-dashed rounded-lg mx-1 my-2",
|
|
2753
2753
|
"data-tag": t.item.__tag__,
|
|
2754
|
-
"data-block": L(
|
|
2754
|
+
"data-block": L(bt)
|
|
2755
2755
|
}, [
|
|
2756
|
-
ae(
|
|
2756
|
+
ae(ze, {
|
|
2757
2757
|
"data-content": t.item.id,
|
|
2758
2758
|
data: t.item.content
|
|
2759
2759
|
}, null, 8, ["data-content", "data"])
|
|
2760
|
-
], 8,
|
|
2760
|
+
], 8, Tl));
|
|
2761
2761
|
}
|
|
2762
|
-
}),
|
|
2762
|
+
}), Ll = (e) => (Ye("data-v-8b8ee819"), e = e(), Ke(), e), Fl = ["data-tag", "data-block"], El = {
|
|
2763
2763
|
key: 0,
|
|
2764
2764
|
class: "flex-shrink-0"
|
|
2765
|
-
}, Pl = { key: 0 },
|
|
2765
|
+
}, Pl = { key: 0 }, Ml = {
|
|
2766
2766
|
key: 1,
|
|
2767
2767
|
class: "indent-2"
|
|
2768
|
-
},
|
|
2768
|
+
}, Al = { key: 0 }, Dl = { key: 0 }, Bl = { key: 1 }, Nl = ["data-block", "data-xine"], Ol = /* @__PURE__ */ Ll(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), zl = { class: "flex items-center" }, Rl = ["data-xine"], Hl = /* @__PURE__ */ ne({
|
|
2769
2769
|
__name: "index",
|
|
2770
2770
|
props: {
|
|
2771
2771
|
item: {},
|
|
@@ -2776,58 +2776,58 @@ const Oe = /* @__PURE__ */ me(Sl, [["__scopeId", "data-v-e6258dec"]]), $l = ["da
|
|
|
2776
2776
|
},
|
|
2777
2777
|
emits: ["click", "dbclick"],
|
|
2778
2778
|
setup(e, { emit: t }) {
|
|
2779
|
-
const o = e, l = V(!1), r = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), s = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(
|
|
2780
|
-
return
|
|
2779
|
+
const o = e, l = V(!1), r = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), s = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Qa(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = W(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((h) => h.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
|
|
2780
|
+
return Ue(() => {
|
|
2781
2781
|
o.isFirst && o.item.problemType && (r.value.offsetHeight / parseFloat(window.getComputedStyle(r.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
2782
2782
|
}), (n, h) => n.item.problemType ? (i(), u("div", {
|
|
2783
2783
|
key: 1,
|
|
2784
2784
|
class: oe(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
2785
|
-
onClick: h[2] || (h[2] =
|
|
2785
|
+
onClick: h[2] || (h[2] = Ee((P) => t("click", n.item), ["stop"])),
|
|
2786
2786
|
ref_key: "view",
|
|
2787
2787
|
ref: r,
|
|
2788
2788
|
"data-tag": n.item.__tag__,
|
|
2789
2789
|
"data-block": L(Te),
|
|
2790
|
-
onDblclick: h[3] || (h[3] =
|
|
2790
|
+
onDblclick: h[3] || (h[3] = Ee((P) => t("dbclick", n.item), ["stop"]))
|
|
2791
2791
|
}, [
|
|
2792
|
-
!n.layout.listIndexFlag && n.item.sub ? (i(), u("span",
|
|
2792
|
+
!n.layout.listIndexFlag && n.item.sub ? (i(), u("span", El, te(L(Rt)(n.item.sub - 1)) + "、", 1)) : D("", !0),
|
|
2793
2793
|
k("div", null, [
|
|
2794
2794
|
k("div", null, [
|
|
2795
2795
|
k("span", null, te(n.item.name), 1),
|
|
2796
2796
|
n.item.desc ? (i(), u("span", Pl, "(" + te(n.item.desc) + ")", 1)) : D("", !0),
|
|
2797
|
-
n.layout.scoreTipFlag ? (i(), u("span",
|
|
2797
|
+
n.layout.scoreTipFlag ? (i(), u("span", Ml, "(共" + te(c.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : D("", !0)
|
|
2798
2798
|
]),
|
|
2799
|
-
a.value || s.value ? (i(), u("div",
|
|
2800
|
-
a.value ? (i(), u("p",
|
|
2799
|
+
a.value || s.value ? (i(), u("div", Al, [
|
|
2800
|
+
a.value ? (i(), u("p", Dl, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (i(), u("p", Bl, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
2801
2801
|
k("p", {
|
|
2802
2802
|
class: "flex flex-wrap",
|
|
2803
2803
|
"data-block": L(Te),
|
|
2804
2804
|
"data-xine": L(I).choice + n.item.id
|
|
2805
2805
|
}, [
|
|
2806
|
-
|
|
2807
|
-
(i(!0), u(N, null, le(y.value, (
|
|
2808
|
-
k("span", null, te(
|
|
2806
|
+
Ol,
|
|
2807
|
+
(i(!0), u(N, null, le(y.value, (P, p) => (i(), u("span", zl, [
|
|
2808
|
+
k("span", null, te(P), 1),
|
|
2809
2809
|
k("span", {
|
|
2810
2810
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
2811
2811
|
"data-xine": L(I).fill
|
|
2812
|
-
}, null, 8,
|
|
2812
|
+
}, null, 8, Rl)
|
|
2813
2813
|
]))), 256))
|
|
2814
|
-
], 8,
|
|
2814
|
+
], 8, Nl)
|
|
2815
2815
|
])) : D("", !0)
|
|
2816
2816
|
])
|
|
2817
|
-
], 42,
|
|
2817
|
+
], 42, Fl)) : (i(), ee(Il, {
|
|
2818
2818
|
key: 0,
|
|
2819
2819
|
class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
|
|
2820
2820
|
item: n.item,
|
|
2821
|
-
onClick: h[0] || (h[0] =
|
|
2822
|
-
onDblclick: h[1] || (h[1] =
|
|
2821
|
+
onClick: h[0] || (h[0] = Ee((P) => t("click", n.item), ["stop"])),
|
|
2822
|
+
onDblclick: h[1] || (h[1] = Ee((P) => t("dbclick", n.item), ["stop"]))
|
|
2823
2823
|
}, null, 8, ["class", "item"]));
|
|
2824
2824
|
}
|
|
2825
2825
|
});
|
|
2826
|
-
const
|
|
2827
|
-
function
|
|
2826
|
+
const Ft = /* @__PURE__ */ me(Hl, [["__scopeId", "data-v-8b8ee819"]]), Wl = {};
|
|
2827
|
+
function Gl(e, t) {
|
|
2828
2828
|
return null;
|
|
2829
2829
|
}
|
|
2830
|
-
const
|
|
2830
|
+
const Ql = /* @__PURE__ */ me(Wl, [["render", Gl]]), ql = ["data-block"], Yl = ["data-xine"], Kl = /* @__PURE__ */ ne({
|
|
2831
2831
|
__name: "sheet",
|
|
2832
2832
|
props: {
|
|
2833
2833
|
item: {},
|
|
@@ -2839,26 +2839,26 @@ const Gl = /* @__PURE__ */ me(Hl, [["render", Wl]]), Ql = ["data-block"], ql = [
|
|
|
2839
2839
|
"data-block": L(Te)
|
|
2840
2840
|
}, [
|
|
2841
2841
|
(i(!0), u(N, null, le(t.item.optList, (l, r) => (i(), u("span", {
|
|
2842
|
-
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(
|
|
2842
|
+
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(pt)[r]) && "bg-success border-success"]),
|
|
2843
2843
|
style: Z({ width: `${L(Fe)[t.layout.fillSize].value + 1}px`, height: `${L(Fe)[t.layout.fillSize].height + 1}px` }),
|
|
2844
2844
|
"data-xine": L(I).fill + r
|
|
2845
2845
|
}, [
|
|
2846
2846
|
ae(ve, {
|
|
2847
2847
|
width: 1,
|
|
2848
|
-
name: L(
|
|
2848
|
+
name: L(pt)[r]
|
|
2849
2849
|
}, null, 8, ["name"])
|
|
2850
|
-
], 14,
|
|
2851
|
-
], 8,
|
|
2850
|
+
], 14, Yl))), 256))
|
|
2851
|
+
], 8, ql));
|
|
2852
2852
|
}
|
|
2853
|
-
}),
|
|
2854
|
-
function
|
|
2853
|
+
}), Ul = {};
|
|
2854
|
+
function Vl(e, t) {
|
|
2855
2855
|
return null;
|
|
2856
2856
|
}
|
|
2857
|
-
const
|
|
2858
|
-
|
|
2859
|
-
],
|
|
2860
|
-
|
|
2861
|
-
],
|
|
2857
|
+
const jl = /* @__PURE__ */ me(Ul, [["render", Vl]]), Xl = ["data-block"], Jl = ["data-xine"], Zl = ["data-xine"], en = ["data-xine"], tn = /* @__PURE__ */ k("span", { class: "text-sm scale-75" }, "T", -1), on = [
|
|
2858
|
+
tn
|
|
2859
|
+
], an = ["data-xine"], ln = /* @__PURE__ */ k("span", { class: "text-sm scale-75" }, "F", -1), nn = [
|
|
2860
|
+
ln
|
|
2861
|
+
], sn = /* @__PURE__ */ ne({
|
|
2862
2862
|
__name: "sheet",
|
|
2863
2863
|
props: {
|
|
2864
2864
|
item: {},
|
|
@@ -2883,7 +2883,7 @@ const Vl = /* @__PURE__ */ me(Kl, [["render", Ul]]), jl = ["data-block"], Xl = [
|
|
|
2883
2883
|
name: "right",
|
|
2884
2884
|
width: 1
|
|
2885
2885
|
})
|
|
2886
|
-
], 14,
|
|
2886
|
+
], 14, Jl),
|
|
2887
2887
|
k("span", {
|
|
2888
2888
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2889
2889
|
style: Z(o.value),
|
|
@@ -2893,29 +2893,29 @@ const Vl = /* @__PURE__ */ me(Kl, [["render", Ul]]), jl = ["data-block"], Xl = [
|
|
|
2893
2893
|
name: "wrong",
|
|
2894
2894
|
width: 1
|
|
2895
2895
|
})
|
|
2896
|
-
], 14,
|
|
2896
|
+
], 14, Zl)
|
|
2897
2897
|
], 64)) : (i(), u(N, { key: 1 }, [
|
|
2898
2898
|
k("span", {
|
|
2899
2899
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2900
2900
|
style: Z(o.value),
|
|
2901
2901
|
"data-xine": L(I).fill + "0"
|
|
2902
|
-
},
|
|
2902
|
+
}, on, 14, en),
|
|
2903
2903
|
k("span", {
|
|
2904
2904
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
2905
2905
|
style: Z(o.value),
|
|
2906
2906
|
"data-xine": L(I).fill + "1"
|
|
2907
|
-
},
|
|
2907
|
+
}, nn, 14, an)
|
|
2908
2908
|
], 64))
|
|
2909
|
-
], 8,
|
|
2909
|
+
], 8, Xl));
|
|
2910
2910
|
}
|
|
2911
|
-
}),
|
|
2912
|
-
function
|
|
2911
|
+
}), rn = {};
|
|
2912
|
+
function cn(e, t) {
|
|
2913
2913
|
return null;
|
|
2914
2914
|
}
|
|
2915
|
-
const
|
|
2915
|
+
const dn = /* @__PURE__ */ me(rn, [["render", cn]]), un = ["data-block", "data-xine"], hn = {
|
|
2916
2916
|
key: 0,
|
|
2917
2917
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2918
|
-
},
|
|
2918
|
+
}, pn = { key: 1 }, mn = /* @__PURE__ */ ne({
|
|
2919
2919
|
__name: "index",
|
|
2920
2920
|
props: {
|
|
2921
2921
|
item: {},
|
|
@@ -2923,25 +2923,25 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2923
2923
|
showScoreCn: { type: Boolean }
|
|
2924
2924
|
},
|
|
2925
2925
|
setup(e) {
|
|
2926
|
-
const t = e, o = W(() => t.layout.scoreAddStars ===
|
|
2926
|
+
const t = e, o = W(() => t.layout.scoreAddStars === it.star.code);
|
|
2927
2927
|
return (l, r) => l.layout.handReadFlag ? (i(), u("div", {
|
|
2928
2928
|
key: 0,
|
|
2929
2929
|
class: "score_fill flex items-center",
|
|
2930
2930
|
"data-block": L(Te),
|
|
2931
2931
|
"data-xine": L(I).fill
|
|
2932
2932
|
}, [
|
|
2933
|
-
l.showScoreCn ? (i(), u("span",
|
|
2933
|
+
l.showScoreCn ? (i(), u("span", hn, [
|
|
2934
2934
|
k("span", null, te(o.value ? "" : "-") + te(l.item.score), 1),
|
|
2935
2935
|
o.value ? (i(), ee(ve, {
|
|
2936
2936
|
key: 0,
|
|
2937
2937
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2938
2938
|
name: "fiveArrowLine",
|
|
2939
2939
|
width: 1.2
|
|
2940
|
-
})) : (i(), u("span",
|
|
2940
|
+
})) : (i(), u("span", pn, "分"))
|
|
2941
2941
|
])) : D("", !0)
|
|
2942
|
-
], 8,
|
|
2942
|
+
], 8, un)) : D("", !0);
|
|
2943
2943
|
}
|
|
2944
|
-
}),
|
|
2944
|
+
}), yn = ["data-xine"], _n = /* @__PURE__ */ ne({
|
|
2945
2945
|
__name: "sheet",
|
|
2946
2946
|
props: {
|
|
2947
2947
|
item: {},
|
|
@@ -2954,8 +2954,8 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2954
2954
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
2955
2955
|
style: Z({ height: `${20 + o.item.style[L(d)[t.layout.mode].fill_e]}px` }),
|
|
2956
2956
|
"data-xine": L(I).fill_line
|
|
2957
|
-
}, null, 12,
|
|
2958
|
-
o.layout.handReadFlag ? (i(), ee(
|
|
2957
|
+
}, null, 12, yn),
|
|
2958
|
+
o.layout.handReadFlag ? (i(), ee(mn, {
|
|
2959
2959
|
key: 0,
|
|
2960
2960
|
item: o.item,
|
|
2961
2961
|
layout: o.layout,
|
|
@@ -2963,11 +2963,11 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2963
2963
|
}, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
|
|
2964
2964
|
], 64));
|
|
2965
2965
|
}
|
|
2966
|
-
}),
|
|
2967
|
-
function
|
|
2966
|
+
}), fn = {};
|
|
2967
|
+
function gn(e, t) {
|
|
2968
2968
|
return null;
|
|
2969
2969
|
}
|
|
2970
|
-
const
|
|
2970
|
+
const bn = /* @__PURE__ */ me(fn, [["render", gn]]), vn = ["data-block"], wn = { class: "flex-1 flex justify-end overflow-hidden" }, kn = /* @__PURE__ */ ne({
|
|
2971
2971
|
__name: "sheet",
|
|
2972
2972
|
props: {
|
|
2973
2973
|
item: {},
|
|
@@ -2983,25 +2983,25 @@ const gn = /* @__PURE__ */ me(_n, [["render", fn]]), bn = ["data-block"], vn = {
|
|
|
2983
2983
|
class: "absolute left-0 top-2 w-full flex items-center",
|
|
2984
2984
|
"data-block": L(Te)
|
|
2985
2985
|
}, [
|
|
2986
|
-
|
|
2987
|
-
k("div",
|
|
2988
|
-
ae(
|
|
2986
|
+
_t(t.$slots, "default"),
|
|
2987
|
+
k("div", wn, [
|
|
2988
|
+
ae(ct, {
|
|
2989
2989
|
item: t.item,
|
|
2990
2990
|
layout: t.layout
|
|
2991
2991
|
}, null, 8, ["item", "layout"])
|
|
2992
2992
|
])
|
|
2993
|
-
], 8,
|
|
2994
|
-
ae(
|
|
2993
|
+
], 8, vn)),
|
|
2994
|
+
ae(ze, {
|
|
2995
2995
|
"data-area": t.item.id,
|
|
2996
2996
|
data: t.item.answerArea
|
|
2997
2997
|
}, null, 8, ["data-area", "data"])
|
|
2998
2998
|
], 2));
|
|
2999
2999
|
}
|
|
3000
|
-
}),
|
|
3001
|
-
function
|
|
3000
|
+
}), xn = {};
|
|
3001
|
+
function Cn(e, t) {
|
|
3002
3002
|
return null;
|
|
3003
3003
|
}
|
|
3004
|
-
const
|
|
3004
|
+
const Sn = /* @__PURE__ */ me(xn, [["render", Cn]]), $n = /* @__PURE__ */ k("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), Tn = /* @__PURE__ */ ne({
|
|
3005
3005
|
__name: "sheet",
|
|
3006
3006
|
props: {
|
|
3007
3007
|
item: {},
|
|
@@ -3009,34 +3009,34 @@ const Cn = /* @__PURE__ */ me(kn, [["render", xn]]), Sn = /* @__PURE__ */ k("div
|
|
|
3009
3009
|
},
|
|
3010
3010
|
setup(e) {
|
|
3011
3011
|
return (t, o) => (i(), u(N, null, [
|
|
3012
|
-
|
|
3013
|
-
ae(
|
|
3012
|
+
$n,
|
|
3013
|
+
ae(ct, {
|
|
3014
3014
|
item: t.item,
|
|
3015
3015
|
layout: t.layout
|
|
3016
3016
|
}, null, 8, ["item", "layout"])
|
|
3017
3017
|
], 64));
|
|
3018
3018
|
}
|
|
3019
|
-
}),
|
|
3020
|
-
function
|
|
3019
|
+
}), In = {};
|
|
3020
|
+
function Ln(e, t) {
|
|
3021
3021
|
return null;
|
|
3022
3022
|
}
|
|
3023
|
-
const
|
|
3023
|
+
const Fn = /* @__PURE__ */ me(In, [["render", Ln]]), En = {};
|
|
3024
3024
|
function Pn(e, t) {
|
|
3025
3025
|
return null;
|
|
3026
3026
|
}
|
|
3027
|
-
const
|
|
3028
|
-
function
|
|
3027
|
+
const Mn = /* @__PURE__ */ me(En, [["render", Pn]]), An = {};
|
|
3028
|
+
function Dn(e, t) {
|
|
3029
3029
|
return null;
|
|
3030
3030
|
}
|
|
3031
|
-
const
|
|
3032
|
-
function
|
|
3031
|
+
const Bn = /* @__PURE__ */ me(An, [["render", Dn]]), Nn = {};
|
|
3032
|
+
function On(e, t) {
|
|
3033
3033
|
return null;
|
|
3034
3034
|
}
|
|
3035
|
-
const
|
|
3036
|
-
function
|
|
3035
|
+
const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = {};
|
|
3036
|
+
function Hn(e, t) {
|
|
3037
3037
|
return null;
|
|
3038
3038
|
}
|
|
3039
|
-
const
|
|
3039
|
+
const Wn = /* @__PURE__ */ me(Rn, [["render", Hn]]), Gn = ["data-viewid"], Qn = ["data-block"], qn = { class: "flex-1 flex justify-end overflow-hidden" }, Yn = ["data-block", "data-size"], Kn = ["data-block"], Un = /* @__PURE__ */ ne({
|
|
3040
3040
|
__name: "sheet",
|
|
3041
3041
|
props: {
|
|
3042
3042
|
item: {},
|
|
@@ -3044,18 +3044,18 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3044
3044
|
},
|
|
3045
3045
|
setup(e) {
|
|
3046
3046
|
const t = e, o = V(0), l = V({}), r = V(), a = V(), s = V([]), c = W(() => {
|
|
3047
|
-
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen,
|
|
3047
|
+
const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, P.value.length, 0);
|
|
3048
3048
|
return p ? Math.ceil(p / (o.value || p)) : 0;
|
|
3049
3049
|
}), y = W(() => parseInt(t.item.style[d[t.layout.mode].art_b])), n = W(() => ({
|
|
3050
3050
|
width: `${o.value * y.value}px`,
|
|
3051
3051
|
height: `${y.value}px`
|
|
3052
3052
|
})), h = W(() => ({
|
|
3053
3053
|
width: `${y.value}px`
|
|
3054
|
-
})),
|
|
3055
|
-
return
|
|
3054
|
+
})), P = W(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3055
|
+
return Ue(() => {
|
|
3056
3056
|
if (!t.item.artBlock)
|
|
3057
3057
|
return;
|
|
3058
|
-
|
|
3058
|
+
st(() => {
|
|
3059
3059
|
o.value = Math.floor(r.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3060
3060
|
if (!r.value)
|
|
3061
3061
|
return;
|
|
@@ -3079,16 +3079,16 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3079
3079
|
class: "flex items-center mt-1 mb-4",
|
|
3080
3080
|
"data-block": L(Te)
|
|
3081
3081
|
}, [
|
|
3082
|
-
|
|
3083
|
-
k("div",
|
|
3084
|
-
ae(
|
|
3082
|
+
_t(p.$slots, "default"),
|
|
3083
|
+
k("div", qn, [
|
|
3084
|
+
ae(ct, {
|
|
3085
3085
|
item: p.item,
|
|
3086
3086
|
layout: p.layout
|
|
3087
3087
|
}, null, 8, ["item", "layout"])
|
|
3088
3088
|
])
|
|
3089
|
-
], 8,
|
|
3089
|
+
], 8, Qn)),
|
|
3090
3090
|
p.item.artBlock ? (i(), u(N, { key: 1 }, [
|
|
3091
|
-
p.item.beforeArt && !p.item.startAnswerLen ? (i(), ee(
|
|
3091
|
+
p.item.beforeArt && !p.item.startAnswerLen ? (i(), ee(ze, {
|
|
3092
3092
|
key: 0,
|
|
3093
3093
|
data: p.item.beforeArt,
|
|
3094
3094
|
"data-bart": p.item.id,
|
|
@@ -3104,32 +3104,32 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3104
3104
|
style: Z(n.value)
|
|
3105
3105
|
}, [
|
|
3106
3106
|
(i(!0), u(N, null, le(o.value, (X, A) => (i(), u("span", {
|
|
3107
|
-
class: oe([
|
|
3107
|
+
class: oe([P.value[j * o.value + A] && "flex items-center justify-center"]),
|
|
3108
3108
|
style: Z(h.value)
|
|
3109
|
-
}, te(
|
|
3109
|
+
}, te(P.value[j * o.value + A] || ""), 7))), 256)),
|
|
3110
3110
|
(i(!0), u(N, null, le(s.value, (X) => (i(), u(N, null, [
|
|
3111
3111
|
p.item.startAnswerLen + j * o.value < X && p.item.startAnswerLen + (j + 1) * o.value >= X ? (i(), u("span", {
|
|
3112
3112
|
key: 0,
|
|
3113
3113
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3114
3114
|
style: Z({ left: `${(X - p.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3115
3115
|
"data-block": L(Be)
|
|
3116
|
-
}, te(X), 13,
|
|
3116
|
+
}, te(X), 13, Kn)) : D("", !0)
|
|
3117
3117
|
], 64))), 256))
|
|
3118
|
-
], 12,
|
|
3119
|
-
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (i(), ee(
|
|
3118
|
+
], 12, Yn))), 256)),
|
|
3119
|
+
p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (i(), ee(ze, {
|
|
3120
3120
|
key: 1,
|
|
3121
3121
|
data: p.item.afterArt,
|
|
3122
3122
|
"data-aart": p.item.id,
|
|
3123
3123
|
class: "mt-2 indent-[2em]"
|
|
3124
3124
|
}, null, 8, ["data", "data-aart"])) : D("", !0)
|
|
3125
|
-
], 64)) : (i(), ee(
|
|
3125
|
+
], 64)) : (i(), ee(ze, {
|
|
3126
3126
|
key: 2,
|
|
3127
3127
|
"data-area": p.item.id,
|
|
3128
3128
|
data: p.item.answerArea
|
|
3129
3129
|
}, null, 8, ["data-area", "data"]))
|
|
3130
|
-
], 8,
|
|
3130
|
+
], 8, Gn));
|
|
3131
3131
|
}
|
|
3132
|
-
}),
|
|
3132
|
+
}), Vn = ["data-block"], jn = /* @__PURE__ */ ne({
|
|
3133
3133
|
__name: "index",
|
|
3134
3134
|
props: {
|
|
3135
3135
|
item: {},
|
|
@@ -3139,18 +3139,18 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3139
3139
|
setup(e, { emit: t }) {
|
|
3140
3140
|
return (o, l) => (i(), u("div", {
|
|
3141
3141
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
3142
|
-
"data-block": L(
|
|
3142
|
+
"data-block": L(bt)
|
|
3143
3143
|
}, [
|
|
3144
|
-
ae(
|
|
3144
|
+
ae(ze, {
|
|
3145
3145
|
"data-content": o.item.id,
|
|
3146
3146
|
data: o.item.content
|
|
3147
3147
|
}, null, 8, ["data-content", "data"])
|
|
3148
|
-
], 8,
|
|
3148
|
+
], 8, Vn));
|
|
3149
3149
|
}
|
|
3150
|
-
}),
|
|
3150
|
+
}), Xn = ["data-block"], Jn = { key: 0 }, Zn = { key: 1 }, es = { key: 2 }, ts = {
|
|
3151
3151
|
key: 3,
|
|
3152
3152
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
3153
|
-
},
|
|
3153
|
+
}, os = { key: 0 }, as = /* @__PURE__ */ ne({
|
|
3154
3154
|
__name: "index",
|
|
3155
3155
|
props: {
|
|
3156
3156
|
sub: {},
|
|
@@ -3174,34 +3174,34 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3174
3174
|
"data-block": L(Be)
|
|
3175
3175
|
}, [
|
|
3176
3176
|
(i(!0), u(N, null, le(o.value, (c, y) => (i(), u(N, null, [
|
|
3177
|
-
y ? (i(), u("span",
|
|
3178
|
-
c[0] ? (i(), u("span",
|
|
3179
|
-
c[1] ? (i(), u("span",
|
|
3180
|
-
c[2] ? (i(), u("span",
|
|
3177
|
+
y ? (i(), u("span", Jn, " - ")) : D("", !0),
|
|
3178
|
+
c[0] ? (i(), u("span", Zn, te(c[0]), 1)) : D("", !0),
|
|
3179
|
+
c[1] ? (i(), u("span", es, "(" + te(c[1]) + ")", 1)) : D("", !0),
|
|
3180
|
+
c[2] ? (i(), u("span", ts, te(c[2]), 1)) : D("", !0)
|
|
3181
3181
|
], 64))), 256)),
|
|
3182
|
-
a.score ? (i(), u("span",
|
|
3183
|
-
], 14,
|
|
3182
|
+
a.score ? (i(), u("span", os, te(r("prev")) + te(a.score) + "分" + te(r("after")), 1)) : D("", !0)
|
|
3183
|
+
], 14, Xn));
|
|
3184
3184
|
}
|
|
3185
|
-
}),
|
|
3185
|
+
}), ls = {
|
|
3186
3186
|
components: {
|
|
3187
|
-
choice:
|
|
3188
|
-
choiceSheet:
|
|
3189
|
-
decide:
|
|
3190
|
-
decideSheet:
|
|
3191
|
-
fill:
|
|
3192
|
-
fillSheet:
|
|
3193
|
-
slove:
|
|
3194
|
-
sloveSheet:
|
|
3195
|
-
easy_slove:
|
|
3196
|
-
easy_sloveSheet:
|
|
3197
|
-
mix:
|
|
3198
|
-
mixSheet:
|
|
3199
|
-
synthesis:
|
|
3200
|
-
synthesisSheet:
|
|
3201
|
-
art:
|
|
3202
|
-
artSheet:
|
|
3203
|
-
notArea:
|
|
3204
|
-
Sub:
|
|
3187
|
+
choice: Ql,
|
|
3188
|
+
choiceSheet: Kl,
|
|
3189
|
+
decide: jl,
|
|
3190
|
+
decideSheet: sn,
|
|
3191
|
+
fill: dn,
|
|
3192
|
+
fillSheet: _n,
|
|
3193
|
+
slove: bn,
|
|
3194
|
+
sloveSheet: kn,
|
|
3195
|
+
easy_slove: Sn,
|
|
3196
|
+
easy_sloveSheet: Tn,
|
|
3197
|
+
mix: Fn,
|
|
3198
|
+
mixSheet: Mn,
|
|
3199
|
+
synthesis: Bn,
|
|
3200
|
+
synthesisSheet: zn,
|
|
3201
|
+
art: Wn,
|
|
3202
|
+
artSheet: Un,
|
|
3203
|
+
notArea: jn,
|
|
3204
|
+
Sub: as
|
|
3205
3205
|
},
|
|
3206
3206
|
props: {
|
|
3207
3207
|
data: {
|
|
@@ -3230,7 +3230,7 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3230
3230
|
dbclick: null
|
|
3231
3231
|
},
|
|
3232
3232
|
setup(e, { emit: t }) {
|
|
3233
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(
|
|
3233
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(At), r = V(""), a = W(() => {
|
|
3234
3234
|
const g = o ? {
|
|
3235
3235
|
choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
3236
3236
|
fillSheet: [m.fill, m.fill_english]
|
|
@@ -3243,7 +3243,7 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3243
3243
|
let g = [];
|
|
3244
3244
|
e.data.children.forEach((T) => {
|
|
3245
3245
|
let B = g[g.length - 1];
|
|
3246
|
-
((T.polymerId || l.includes(e.data.problemType)) && l.includes(T.problemType) || [
|
|
3246
|
+
((T.polymerId || l.includes(e.data.problemType)) && l.includes(T.problemType) || [Ge.fill, Ge.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === f.portrait) && T.style ? (!B || B.type !== "polymer" || B.polymerId !== T.polymerId) && (g.push({
|
|
3247
3247
|
type: "polymer",
|
|
3248
3248
|
problemType: T.problemType,
|
|
3249
3249
|
polymerId: T.polymerId,
|
|
@@ -3256,15 +3256,15 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3256
3256
|
}), B = g[g.length - 1]), B.children.push({ ...T, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
|
|
3257
3257
|
});
|
|
3258
3258
|
const S = (T, B, ue, Y, $, v) => {
|
|
3259
|
-
let _ = Math.min(Math.floor(e.width / B), ue), R = [], Q = [],
|
|
3259
|
+
let _ = Math.min(Math.floor(e.width / B), ue), R = [], Q = [], E = !0;
|
|
3260
3260
|
const H = (K = _) => {
|
|
3261
3261
|
R = (v ? [...Array(K).keys()].map((se, $e) => T.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === $e)).filter((se) => se.length) : [...Array(K).keys()].map((se) => T.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map(($e) => {
|
|
3262
3262
|
var ge;
|
|
3263
3263
|
return ((ge = $e.optList) == null ? void 0 : ge.length) || 0;
|
|
3264
3264
|
})));
|
|
3265
3265
|
};
|
|
3266
|
-
for (H(_), Q = [...R];
|
|
3267
|
-
H(_ + 1),
|
|
3266
|
+
for (H(_), Q = [...R]; E && _ < ue; )
|
|
3267
|
+
H(_ + 1), E = _ + 1 <= ue && R.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * $ < e.width, E && (_ += 1, Q = [...R]);
|
|
3268
3268
|
return { children: T.children.slice(0, v ? Y : Y * _), col: _, colList: [...Q] };
|
|
3269
3269
|
};
|
|
3270
3270
|
return g = g.map((T) => {
|
|
@@ -3274,33 +3274,33 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3274
3274
|
if (T.styleInfo[d[e.layout.mode].choice_a] === f.choice_1) {
|
|
3275
3275
|
let _ = [], R = 0;
|
|
3276
3276
|
for (; R < T.children.length; ) {
|
|
3277
|
-
const Q = T.children.slice(R),
|
|
3277
|
+
const Q = T.children.slice(R), E = Math.max(...Q.map((K) => {
|
|
3278
3278
|
var se;
|
|
3279
3279
|
return ((se = K.optList) == null ? void 0 : se.length) || 0;
|
|
3280
|
-
})) * (Fe[e.layout.fillSize].value + 9) + v, H = S({ ...T, children: Q },
|
|
3280
|
+
})) * (Fe[e.layout.fillSize].value + 9) + v, H = S({ ...T, children: Q }, E, $, Y, v, ue);
|
|
3281
3281
|
_.push({ ...T, groupIndex: _.length, children: H.children, col: H.col, colList: H.colList }), R = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
|
|
3282
3282
|
}
|
|
3283
3283
|
return _;
|
|
3284
3284
|
} else if (T.styleInfo[d[e.layout.mode].choice_a] === f.choice_2) {
|
|
3285
3285
|
const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), R = Math.floor(e.width / (_ * T.styleInfo[d[e.layout.mode].choice_c] + 10)), Q = R * T.styleInfo[d[e.layout.mode].choice_c];
|
|
3286
|
-
let
|
|
3286
|
+
let E = [{ children: [], col: R }];
|
|
3287
3287
|
return T.children.forEach((H, K) => {
|
|
3288
|
-
K >= Q *
|
|
3289
|
-
}),
|
|
3288
|
+
K >= Q * E.length && E.push({ children: [], col: R }), E[E.length - 1].children.push(H);
|
|
3289
|
+
}), E.map((H, K) => ({ ...T, groupIndex: K, children: H.children, col: H.col, colList: [] }));
|
|
3290
3290
|
} else if (T.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
|
|
3291
|
-
let _ = [], R = 0, Q = 0,
|
|
3291
|
+
let _ = [], R = 0, Q = 0, E = 0, H = 0;
|
|
3292
3292
|
return T.children.forEach((K) => {
|
|
3293
|
-
K.optList.length !== R && (Q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v,
|
|
3293
|
+
K.optList.length !== R && (Q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / Q), $), H = ue ? E * 20 : E * T.styleInfo[d[e.layout.mode].choice_e], R = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(We).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= H) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
|
|
3294
3294
|
}), _.map((K, se) => ({ ...T, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
|
|
3295
3295
|
} else if ([m.fill, m.fill_english].includes(T.problemType) && T.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
|
|
3296
3296
|
const _ = Math.floor(T.styleInfo[d[e.layout.mode].fill_f]) * (T.styleInfo[d[e.layout.mode].fill_h] || 10);
|
|
3297
3297
|
return [...Array(Math.ceil(T.children.length / _)).keys()].map((R, Q) => ({
|
|
3298
3298
|
...T,
|
|
3299
3299
|
groupIndex: Q,
|
|
3300
|
-
children: T.children.slice(Q * _, (Q + 1) * _).map((
|
|
3301
|
-
...
|
|
3300
|
+
children: T.children.slice(Q * _, (Q + 1) * _).map((E) => ({
|
|
3301
|
+
...E,
|
|
3302
3302
|
style: {
|
|
3303
|
-
...
|
|
3303
|
+
...E.style,
|
|
3304
3304
|
[d[e.layout.mode].fill_b]: !1,
|
|
3305
3305
|
[d[e.layout.mode].fill_d]: T.styleInfo[d[e.layout.mode].fill_d]
|
|
3306
3306
|
}
|
|
@@ -3354,7 +3354,7 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3354
3354
|
};
|
|
3355
3355
|
break;
|
|
3356
3356
|
}
|
|
3357
|
-
else if (Object.values(
|
|
3357
|
+
else if (Object.values(We).includes(g.problemType)) {
|
|
3358
3358
|
if (g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2)
|
|
3359
3359
|
return S;
|
|
3360
3360
|
let B = [];
|
|
@@ -3370,8 +3370,8 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3370
3370
|
switch (g.styleInfo[d[e.layout.mode].choice_a]) {
|
|
3371
3371
|
case f.choice_1:
|
|
3372
3372
|
case f.choice_3:
|
|
3373
|
-
ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((R) => g.children.filter((Q,
|
|
3374
|
-
const Q = g.children.find((
|
|
3373
|
+
ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((R) => g.children.filter((Q, E) => E >= R * Y && E < (R + 1) * Y)).map((R, Q) => R.map((E, H) => ({ ...E, _grid_area_: ue ? null : pt[H] + Q }))).flat(2).forEach((R) => {
|
|
3374
|
+
const Q = g.children.find((E) => E.id === R.id);
|
|
3375
3375
|
Q._grid_area_ = R._grid_area_;
|
|
3376
3376
|
}), S = ue ? {
|
|
3377
3377
|
"grid-template": `repeat(${Math.ceil(g.children.length / g.col)}, 1fr) / ${B.join(" ")}`
|
|
@@ -3390,7 +3390,7 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3390
3390
|
return {
|
|
3391
3391
|
"grid-area": g._grid_area_
|
|
3392
3392
|
};
|
|
3393
|
-
if (Object.values(
|
|
3393
|
+
if (Object.values(We).includes(g.problemType) && g.style[d[e.layout.mode].choice_a] === f.choice_2) {
|
|
3394
3394
|
const B = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[(T = g.children[0]) == null ? void 0 : T.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (B * g.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - B * ue * g.style[d[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
|
|
3395
3395
|
return !((S + 1) % g.style[d[e.layout.mode].choice_c]) && ((S + 1) % (g.style[d[e.layout.mode].choice_c] * ue) || ue < 2) ? {
|
|
3396
3396
|
"min-width": `${B - 5}px`,
|
|
@@ -3408,7 +3408,7 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3408
3408
|
return T;
|
|
3409
3409
|
if (l.includes(g.problemType)) {
|
|
3410
3410
|
let ue = {};
|
|
3411
|
-
if (Object.values(
|
|
3411
|
+
if (Object.values(We).includes(e.data.problemType)) {
|
|
3412
3412
|
const Y = Math.max(.../*props.data.rawChildren || */
|
|
3413
3413
|
e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[g.polymerId || ""] || n.value[((B = e.data.children[0]) == null ? void 0 : B.polymerId) || ""] || 0) * 10 + 10, $ = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
|
|
3414
3414
|
ue = S % $ ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * $) / ($ - 1) - 5}px` } : { minWidth: `${Y}px` };
|
|
@@ -3459,9 +3459,9 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3459
3459
|
}
|
|
3460
3460
|
};
|
|
3461
3461
|
}
|
|
3462
|
-
},
|
|
3463
|
-
function
|
|
3464
|
-
const s =
|
|
3462
|
+
}, ns = ["data-block", "data-polymer"], ss = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], is = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], rs = { key: 0 };
|
|
3463
|
+
function cs(e, t, o, l, r, a) {
|
|
3464
|
+
const s = Yt("Sub");
|
|
3465
3465
|
return i(!0), u(N, null, le(l.GroupData, (c, y) => (i(), u(N, null, [
|
|
3466
3466
|
c.type === "polymer" ? (i(), u("div", {
|
|
3467
3467
|
key: 0,
|
|
@@ -3471,9 +3471,9 @@ function rs(e, t, o, l, r, a) {
|
|
|
3471
3471
|
style: Z(l.ComputPolymerStyle(c))
|
|
3472
3472
|
}, [
|
|
3473
3473
|
(i(!0), u(N, null, le(c.children, (n, h) => {
|
|
3474
|
-
var
|
|
3474
|
+
var P;
|
|
3475
3475
|
return i(), u("div", {
|
|
3476
|
-
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3476
|
+
class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((P = o.target.value) == null ? void 0 : P.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3477
3477
|
style: Z(l.ComputPolymerItemStyle(n, h)),
|
|
3478
3478
|
"data-tag": n.__tag__,
|
|
3479
3479
|
"data-polymer": y,
|
|
@@ -3490,14 +3490,14 @@ function rs(e, t, o, l, r, a) {
|
|
|
3490
3490
|
width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
|
|
3491
3491
|
class: oe(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
|
|
3492
3492
|
}, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
|
|
3493
|
-
(i(), ee(
|
|
3494
|
-
], 46,
|
|
3493
|
+
(i(), ee(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, h) })), null, 16))
|
|
3494
|
+
], 46, ss);
|
|
3495
3495
|
}), 256))
|
|
3496
|
-
], 14,
|
|
3497
|
-
var
|
|
3496
|
+
], 14, ns)) : (i(!0), u(N, { key: 1 }, le(c.children, (n, h) => {
|
|
3497
|
+
var P;
|
|
3498
3498
|
return i(), u(N, null, [
|
|
3499
3499
|
k("div", {
|
|
3500
|
-
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((
|
|
3500
|
+
class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((P = o.target.value) == null ? void 0 : P.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3501
3501
|
style: Z(l.ComputStyle(n, h)),
|
|
3502
3502
|
"data-tag": n.__tag__,
|
|
3503
3503
|
"data-block": l.ComputBlock(n),
|
|
@@ -3515,8 +3515,8 @@ function rs(e, t, o, l, r, a) {
|
|
|
3515
3515
|
score: l.ComputItemScore(n),
|
|
3516
3516
|
bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3517
3517
|
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : D("", !0),
|
|
3518
|
-
(i(), ee(
|
|
3519
|
-
default:
|
|
3518
|
+
(i(), ee(xt(l.ComputName(n)), Ct(St({ item: n, layout: o.layout, ...l.ComputPayload(n, h) })), {
|
|
3519
|
+
default: Mt(() => [
|
|
3520
3520
|
n.customSub ? D("", !0) : (i(), ee(s, {
|
|
3521
3521
|
key: 0,
|
|
3522
3522
|
sub: n.sub,
|
|
@@ -3528,13 +3528,13 @@ function rs(e, t, o, l, r, a) {
|
|
|
3528
3528
|
]),
|
|
3529
3529
|
_: 2
|
|
3530
3530
|
}, 1040))
|
|
3531
|
-
], 46,
|
|
3532
|
-
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (i(), u("div",
|
|
3531
|
+
], 46, is),
|
|
3532
|
+
n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (i(), u("div", rs)) : D("", !0)
|
|
3533
3533
|
], 64);
|
|
3534
3534
|
}), 256))
|
|
3535
3535
|
], 64))), 256);
|
|
3536
3536
|
}
|
|
3537
|
-
const
|
|
3537
|
+
const je = /* @__PURE__ */ me(ls, [["render", cs]]), ds = (e, t, o) => {
|
|
3538
3538
|
const r = (e.length > 1 ? [e[0], e[e.length - 1]] : e).map((c) => c.split(".")).map((c) => `${c[0] ? `<span>${c[0]}</span>` : ""}${c[1] ? `<span> - </span><span>${c[1]}</span>` : ""}${c[2] ? `<span> - </span><span class="flex items-center justify-center w-8 h-8 border rounded-full scale-75">${c[2]}</span>` : ""}`).filter((c) => c).join(""), a = (c) => {
|
|
3539
3539
|
if (!o)
|
|
3540
3540
|
return "";
|
|
@@ -3544,7 +3544,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3544
3544
|
return o === f.bracket_cn ? ")" : ")";
|
|
3545
3545
|
}, s = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
|
|
3546
3546
|
return r ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${r}${s}</span>` : "";
|
|
3547
|
-
},
|
|
3547
|
+
}, Pe = 200 / 96, Wt = 4, us = 10, q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), hs = (e, t, o) => {
|
|
3548
3548
|
const l = q(he(`${I.item}${e._sub}`, t));
|
|
3549
3549
|
return !(l.top >= o.top + o.height || l.top + l.height < o.top);
|
|
3550
3550
|
}, pe = (e, t, o = !1) => !e || !t ? null : {
|
|
@@ -3570,14 +3570,14 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3570
3570
|
}, ce = (e, t = !1) => {
|
|
3571
3571
|
if (!e)
|
|
3572
3572
|
return null;
|
|
3573
|
-
const o = t ?
|
|
3573
|
+
const o = t ? Wt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
3574
3574
|
return {
|
|
3575
|
-
x: Math.round(l.x *
|
|
3576
|
-
y: Math.round(l.y *
|
|
3577
|
-
width: Math.round(l.width *
|
|
3578
|
-
height: Math.round(l.height *
|
|
3575
|
+
x: Math.round(l.x * Pe - o),
|
|
3576
|
+
y: Math.round(l.y * Pe - o),
|
|
3577
|
+
width: Math.round(l.width * Pe + o * 2),
|
|
3578
|
+
height: Math.round(l.height * Pe + o * 2)
|
|
3579
3579
|
};
|
|
3580
|
-
},
|
|
3580
|
+
}, Gt = (e, t = I.en_num) => {
|
|
3581
3581
|
const o = he(t);
|
|
3582
3582
|
if (!o)
|
|
3583
3583
|
return null;
|
|
@@ -3588,38 +3588,38 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3588
3588
|
};
|
|
3589
3589
|
return e.bindWidth ? {
|
|
3590
3590
|
choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
|
|
3591
|
-
yRowOffset: Math.round((l.list[0][0].y - l.list[0][1].y - l.list[0][1].height) *
|
|
3591
|
+
yRowOffset: Math.round((l.list[0][0].y - l.list[0][1].y - l.list[0][1].height) * Pe),
|
|
3592
3592
|
firstChoicePosition: ce(l.list[0][9]),
|
|
3593
3593
|
crosswised: !1,
|
|
3594
3594
|
choiceQuestionPosition: ce(l.area),
|
|
3595
3595
|
choiceQuestionCount: l.list.length,
|
|
3596
|
-
xColOffset: Math.round((l.list[1][0].x - l.list[0][0].x - l.list[0][0].width) *
|
|
3596
|
+
xColOffset: Math.round((l.list[1][0].x - l.list[0][0].x - l.list[0][0].width) * Pe),
|
|
3597
3597
|
questionNOList: [...Array(l.list.length).keys()].map((r, a) => a + 1)
|
|
3598
3598
|
} : {
|
|
3599
3599
|
choiceGridSequenceNOList: [...Array(10).keys()],
|
|
3600
|
-
yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) *
|
|
3600
|
+
yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) * Pe),
|
|
3601
3601
|
firstChoicePosition: ce(l.list[0][0]),
|
|
3602
3602
|
crosswised: !0,
|
|
3603
3603
|
choiceQuestionPosition: ce(l.area),
|
|
3604
3604
|
choiceQuestionCount: l.list.length,
|
|
3605
|
-
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) *
|
|
3605
|
+
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Pe),
|
|
3606
3606
|
questionNOList: [...Array(l.list.length).keys()].map((r, a) => a + 1)
|
|
3607
3607
|
};
|
|
3608
|
-
},
|
|
3609
|
-
cardSizeType:
|
|
3608
|
+
}, ps = (e) => ({
|
|
3609
|
+
cardSizeType: ko[e.layout.paper],
|
|
3610
3610
|
cardColumnCount: e.layout.column,
|
|
3611
3611
|
cardColumnCount2: e.layout.backColumn,
|
|
3612
3612
|
doubleCard: !0,
|
|
3613
|
-
paperWidth: Math.round(x[e.layout.paper].width *
|
|
3614
|
-
paperHeight: Math.round(x[e.layout.paper].height *
|
|
3615
|
-
}),
|
|
3613
|
+
paperWidth: Math.round(x[e.layout.paper].width * Pe),
|
|
3614
|
+
paperHeight: Math.round(x[e.layout.paper].height * Pe)
|
|
3615
|
+
}), ms = (e) => {
|
|
3616
3616
|
const t = q(e.pageDom[0]), o = q(e.pageDom[1]), l = (r, a) => {
|
|
3617
3617
|
var c;
|
|
3618
|
-
const s = a > 2 ||
|
|
3618
|
+
const s = a > 2 || ot.includes(e.layout.paper) ? {
|
|
3619
3619
|
trdLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[r])[1]), q(e.pageDom[r]))),
|
|
3620
3620
|
trdLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[r])[1]), q(e.pageDom[r])))
|
|
3621
3621
|
} : {};
|
|
3622
|
-
return (c =
|
|
3622
|
+
return (c = Qe.find((y) => y.code === e.layout.paper)) != null && c.isMultCol ? {
|
|
3623
3623
|
secLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[r])[0]), q(e.pageDom[r]))),
|
|
3624
3624
|
secLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[r])[0]), q(e.pageDom[r]))),
|
|
3625
3625
|
...s
|
|
@@ -3643,7 +3643,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3643
3643
|
auxAnchorInfo: l(0, e.layout.column),
|
|
3644
3644
|
auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
|
|
3645
3645
|
};
|
|
3646
|
-
},
|
|
3646
|
+
}, ys = (e) => {
|
|
3647
3647
|
let t = 10;
|
|
3648
3648
|
if (e.pageDom[1]) {
|
|
3649
3649
|
const l = he(`${I.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
@@ -3661,16 +3661,16 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3661
3661
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3662
3662
|
firstChoicePosition: ce(pe(q(he(`${I.page_item}0`, e.pageDom[e.pageTotal - 1])), q(e.pageDom[e.pageTotal - 1]))),
|
|
3663
3663
|
// 页码点最大值,展开为数组
|
|
3664
|
-
choiceGridSequenceNOList:
|
|
3664
|
+
choiceGridSequenceNOList: gt.filter((l, r) => r < e.pageTotal),
|
|
3665
3665
|
// 排列方向
|
|
3666
3666
|
crosswised: !0,
|
|
3667
3667
|
// 两个页码点之间的间距,纵排此项赋值
|
|
3668
3668
|
yRowOffset: 0,
|
|
3669
3669
|
// 横排此项赋值
|
|
3670
|
-
xColOffset: Math.round(t *
|
|
3670
|
+
xColOffset: Math.round(t * Pe)
|
|
3671
3671
|
}
|
|
3672
3672
|
];
|
|
3673
|
-
},
|
|
3673
|
+
}, _s = (e) => {
|
|
3674
3674
|
const t = he(I.lack, e.pageDom[0]);
|
|
3675
3675
|
return t ? {
|
|
3676
3676
|
// 固定值
|
|
@@ -3690,10 +3690,10 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3690
3690
|
yRowOffset: 0,
|
|
3691
3691
|
xColOffset: 0
|
|
3692
3692
|
} : null;
|
|
3693
|
-
},
|
|
3693
|
+
}, fs = (e) => {
|
|
3694
3694
|
let t = pe(q(he(I.en_code, e.pageDom[0])), q(e.pageDom[0]));
|
|
3695
3695
|
return ce(t);
|
|
3696
|
-
},
|
|
3696
|
+
}, gs = (e) => {
|
|
3697
3697
|
const t = he(I.write_view, e.pageDom[0]);
|
|
3698
3698
|
if (!t)
|
|
3699
3699
|
return null;
|
|
@@ -3710,8 +3710,8 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3710
3710
|
score: Math.abs(parseFloat(o[r].innerText))
|
|
3711
3711
|
}))
|
|
3712
3712
|
};
|
|
3713
|
-
},
|
|
3714
|
-
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l =
|
|
3713
|
+
}, bs = (e, t) => {
|
|
3714
|
+
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = us + Wt, r = (a) => parseFloat(a.toFixed(2));
|
|
3715
3715
|
return t.flat().filter((a) => o.includes(a.problemType) && a.colIndex < 2).map((a) => {
|
|
3716
3716
|
switch (a.problemType) {
|
|
3717
3717
|
case m.fill:
|
|
@@ -3759,12 +3759,12 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3759
3759
|
});
|
|
3760
3760
|
}
|
|
3761
3761
|
}).flat();
|
|
3762
|
-
},
|
|
3762
|
+
}, vs = (e, t) => {
|
|
3763
3763
|
let o = 0, l = {};
|
|
3764
3764
|
return [...Array(e.pageDom.length).keys()].map((r) => {
|
|
3765
3765
|
var c, y, n, h;
|
|
3766
3766
|
const a = Math.floor(r / 2) * (e.layout.column + e.layout.backColumn) + (r % 2 ? e.layout.column : 0), s = (h = (n = t[t.length - 1]) == null ? void 0 : n.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : h.children;
|
|
3767
|
-
return [...Array(r % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((
|
|
3767
|
+
return [...Array(r % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((P, p) => a + p < t.length).map((P, p) => {
|
|
3768
3768
|
const M = e.pageDom[r], z = q(M), j = e.colDom[a + p], X = q(j), A = e.colViewDom[a + p], w = q(A), G = t[a + p].data.map((C) => C.children).flat(), ie = t[a + p].data.filter((C) => [Ce.one_choice, Ce.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
|
|
3769
3769
|
const U = he(`${I.choice}${C.id}`, j);
|
|
3770
3770
|
return U ? {
|
|
@@ -3779,7 +3779,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3779
3779
|
})).filter((de) => de.position)
|
|
3780
3780
|
} : {};
|
|
3781
3781
|
}).filter((C) => C.position);
|
|
3782
|
-
return G.filter((C) => C.problemType &&
|
|
3782
|
+
return G.filter((C) => C.problemType && hs(C, j, X)).map((C, U) => {
|
|
3783
3783
|
var S;
|
|
3784
3784
|
let de = {};
|
|
3785
3785
|
l[C._sub] ? l[C._sub] += 1 : l[C._sub] = 1;
|
|
@@ -3853,11 +3853,11 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3853
3853
|
}).concat(ie).filter((C) => C.position);
|
|
3854
3854
|
});
|
|
3855
3855
|
}).map((r) => r.flat());
|
|
3856
|
-
},
|
|
3856
|
+
}, ws = (e) => {
|
|
3857
3857
|
let t = {};
|
|
3858
3858
|
const o = (a = e, s = !1) => (t[a.id] = {
|
|
3859
|
-
_rootProblemType:
|
|
3860
|
-
_parentProblemType:
|
|
3859
|
+
_rootProblemType: dt[e._rootProblemType],
|
|
3860
|
+
_parentProblemType: dt[e._parentProblemType]
|
|
3861
3861
|
}, {
|
|
3862
3862
|
// 块位置
|
|
3863
3863
|
sectionPosition: ce(a.position, !0),
|
|
@@ -3868,7 +3868,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3868
3868
|
// 需要保存文件,固定值
|
|
3869
3869
|
needSavedFile: !!s || [m.mix].includes(e.problemType),
|
|
3870
3870
|
// 题型
|
|
3871
|
-
cuttingSectionQuestionType:
|
|
3871
|
+
cuttingSectionQuestionType: dt[a.problemType || e.problemType]
|
|
3872
3872
|
});
|
|
3873
3873
|
let l = {};
|
|
3874
3874
|
switch (e.problemType) {
|
|
@@ -3888,7 +3888,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3888
3888
|
choiceUnitSectionList: e.optList.map((a, s) => ({
|
|
3889
3889
|
...o(a, !0),
|
|
3890
3890
|
choicePosition: ce(a.position),
|
|
3891
|
-
choiceResult: [m.decide].includes(e.problemType) ?
|
|
3891
|
+
choiceResult: [m.decide].includes(e.problemType) ? wo[s] : gt[s]
|
|
3892
3892
|
}))
|
|
3893
3893
|
}]
|
|
3894
3894
|
};
|
|
@@ -3966,7 +3966,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3966
3966
|
...o(e, !e.isOneChoice),
|
|
3967
3967
|
...l
|
|
3968
3968
|
}, typeData: t };
|
|
3969
|
-
},
|
|
3969
|
+
}, ks = (e, t) => {
|
|
3970
3970
|
let o = {};
|
|
3971
3971
|
const l = [...Array(e.pageTotal).keys()].map((s) => ({
|
|
3972
3972
|
// 当前页数
|
|
@@ -3980,21 +3980,21 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3980
3980
|
// 固定值
|
|
3981
3981
|
splitFileList: [],
|
|
3982
3982
|
// 依据当前页码设置答案
|
|
3983
|
-
answerResultList:
|
|
3983
|
+
answerResultList: gt.slice(e.layout.pagePoint === qe.right_up.code ? e.pageTotal - s - 1 : 0, e.layout.pagePoint === qe.right_up.code ? e.pageTotal : s + 1),
|
|
3984
3984
|
// 固定值
|
|
3985
3985
|
noAnswerTag: !1
|
|
3986
3986
|
}],
|
|
3987
3987
|
// 按题切块信息
|
|
3988
3988
|
cardCuttingSectionList: t[s].map((c) => {
|
|
3989
|
-
const y =
|
|
3989
|
+
const y = ws(c);
|
|
3990
3990
|
return o = { ...o, ...y.typeData }, y.data;
|
|
3991
3991
|
}).flat()
|
|
3992
3992
|
})), r = (s, c) => ([s.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < c).join("."), a = l.map((s) => {
|
|
3993
3993
|
let c = [], y = [], n = [];
|
|
3994
|
-
return s.cardCuttingSectionList.forEach((h,
|
|
3994
|
+
return s.cardCuttingSectionList.forEach((h, P, p) => {
|
|
3995
3995
|
const M = r(h, 1);
|
|
3996
3996
|
let z = !1, j = !1;
|
|
3997
|
-
if (n.find((A) => r(A, 1) === M && A.secitonSeqID === h.secitonSeqID) && !(h.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(h), z =
|
|
3997
|
+
if (n.find((A) => r(A, 1) === M && A.secitonSeqID === h.secitonSeqID) && !(h.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(h), z = P < p.length - 1, j = !0), z)
|
|
3998
3998
|
return;
|
|
3999
3999
|
let X = !1;
|
|
4000
4000
|
if ((h.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(h), X = !0), n.length) {
|
|
@@ -4017,11 +4017,11 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4017
4017
|
const c = s.cardCuttingSectionList.map((y) => {
|
|
4018
4018
|
var M;
|
|
4019
4019
|
let n = [], h = [];
|
|
4020
|
-
const
|
|
4020
|
+
const P = Math.max(...(y.subjectiveQuestionSectionList || []).map((z) => z.sectionID.split(".").length - 1), 1);
|
|
4021
4021
|
(M = y.subjectiveQuestionSectionList) == null || M.forEach((z, j, X) => {
|
|
4022
|
-
const A = r(z,
|
|
4022
|
+
const A = r(z, P);
|
|
4023
4023
|
let w = !1, G = !1;
|
|
4024
|
-
if (h.find((ie) => r(ie,
|
|
4024
|
+
if (h.find((ie) => r(ie, P) === A && ie.secitonSeqID === z.secitonSeqID) && (h.push(z), w = j < X.length - 1, G = !0), !w) {
|
|
4025
4025
|
if (h.length) {
|
|
4026
4026
|
if (h.length === 1)
|
|
4027
4027
|
n.push(h[0]);
|
|
@@ -4047,7 +4047,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4047
4047
|
return { ...s, cardCuttingSectionList: c };
|
|
4048
4048
|
});
|
|
4049
4049
|
return o = {}, a;
|
|
4050
|
-
},
|
|
4050
|
+
}, xs = (e, t) => {
|
|
4051
4051
|
var l;
|
|
4052
4052
|
const o = q(e.pageDom[0]);
|
|
4053
4053
|
return {
|
|
@@ -4062,7 +4062,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4062
4062
|
// true:表示每个页面都要自带页面号确定信息 false:表示可以根据双面扫描下解析出来的另一面来推定
|
|
4063
4063
|
sideAllSelfIntp: !1,
|
|
4064
4064
|
// 填涂式考号,与条码式考号互斥
|
|
4065
|
-
adminssionTicketID:
|
|
4065
|
+
adminssionTicketID: Gt(e),
|
|
4066
4066
|
// 试卷二维码
|
|
4067
4067
|
cardSerialNumber: {
|
|
4068
4068
|
// 条形码虚线框位置, x, y, width, height
|
|
@@ -4075,7 +4075,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4075
4075
|
studentID: {
|
|
4076
4076
|
// 条形码虚线框位置, x, y, width, height
|
|
4077
4077
|
// encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
4078
|
-
encodePictureArea:
|
|
4078
|
+
encodePictureArea: fs(e),
|
|
4079
4079
|
// ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
4080
4080
|
// 固定值
|
|
4081
4081
|
qrCodePosition: null,
|
|
@@ -4095,21 +4095,21 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4095
4095
|
// 哪些面有选做老师布置题的信息,固定值
|
|
4096
4096
|
onlyAssignInfoList: [],
|
|
4097
4097
|
// 页面布局信息
|
|
4098
|
-
layerType:
|
|
4098
|
+
layerType: ps(e),
|
|
4099
4099
|
// 定位点信息
|
|
4100
|
-
...
|
|
4100
|
+
...ms(e),
|
|
4101
4101
|
pottedLineXPos: e.bindWidth ? (l = ce(pe(q(he(I.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4102
4102
|
// 页码点信息
|
|
4103
|
-
pageSideAnchorsList:
|
|
4103
|
+
pageSideAnchorsList: ys(e),
|
|
4104
4104
|
// 缺考标记
|
|
4105
|
-
absenceMark:
|
|
4105
|
+
absenceMark: _s(e),
|
|
4106
4106
|
// 业务数据
|
|
4107
4107
|
oneFullPageCardList: t
|
|
4108
4108
|
};
|
|
4109
|
-
},
|
|
4110
|
-
const { config: t, data: o } = e, l =
|
|
4109
|
+
}, Cs = (e) => {
|
|
4110
|
+
const { config: t, data: o } = e, l = gs(t), r = vs(t, o);
|
|
4111
4111
|
l && r[0].unshift(l);
|
|
4112
|
-
const a =
|
|
4112
|
+
const a = bs(t, r), s = ks(t, r), c = xs(t, s), y = Gt(t, I.en_num_view) || {};
|
|
4113
4113
|
return {
|
|
4114
4114
|
engineData: c,
|
|
4115
4115
|
pageTotal: t.pageTotal,
|
|
@@ -4117,10 +4117,10 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4117
4117
|
localData: a,
|
|
4118
4118
|
extendInfo: { shortCoordinate: y }
|
|
4119
4119
|
};
|
|
4120
|
-
},
|
|
4120
|
+
}, Ss = { class: "layt-moni_view" }, $s = { class: "layt-moni_content" }, Ts = { class: "layt-moni_icon" }, Is = { class: "layt-moni_msg" }, Ls = {
|
|
4121
4121
|
key: 0,
|
|
4122
4122
|
class: "layt-moni_err_view"
|
|
4123
|
-
},
|
|
4123
|
+
}, Fs = { class: "layt-moni_err_item_msg" }, Es = ["onClick"], Ps = /* @__PURE__ */ ne({
|
|
4124
4124
|
__name: "index",
|
|
4125
4125
|
props: {
|
|
4126
4126
|
ColList: {},
|
|
@@ -4134,10 +4134,10 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4134
4134
|
De(() => [o.ColList, o.ImgData, o.TxtData], () => {
|
|
4135
4135
|
l.value = [], setTimeout(() => {
|
|
4136
4136
|
var n;
|
|
4137
|
-
o.ColList.forEach((h,
|
|
4137
|
+
o.ColList.forEach((h, P) => {
|
|
4138
4138
|
h.data.map((p) => p.children).flat().filter((p) => [m.slove, m.art].includes(p.problemType) && !p.chunk).forEach((p) => {
|
|
4139
4139
|
var X;
|
|
4140
|
-
const M = (X = o.ColDom[
|
|
4140
|
+
const M = (X = o.ColDom[P].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : X.querySelector(`*[data-xine="${I.score}"]`);
|
|
4141
4141
|
if (!M)
|
|
4142
4142
|
return;
|
|
4143
4143
|
M.classList.remove("err_lack");
|
|
@@ -4163,51 +4163,51 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4163
4163
|
var c;
|
|
4164
4164
|
(((c = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : c.value) || []).forEach((y) => t("delAbsTxtItem", y));
|
|
4165
4165
|
};
|
|
4166
|
-
return (s, c) => (i(), u("div",
|
|
4167
|
-
k("div",
|
|
4166
|
+
return (s, c) => (i(), u("div", Ss, [
|
|
4167
|
+
k("div", $s, [
|
|
4168
4168
|
k("div", {
|
|
4169
4169
|
class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4170
4170
|
}, null, 2),
|
|
4171
4171
|
k("div", {
|
|
4172
4172
|
class: oe(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4173
4173
|
}, [
|
|
4174
|
-
k("span",
|
|
4174
|
+
k("span", Ts, [
|
|
4175
4175
|
ae(ve, {
|
|
4176
4176
|
width: 1.6,
|
|
4177
4177
|
name: l.value.length ? "wrong" : "right"
|
|
4178
4178
|
}, null, 8, ["name"])
|
|
4179
4179
|
]),
|
|
4180
|
-
k("span",
|
|
4180
|
+
k("span", Is, "排版" + te(l.value.length ? "异常" : "良好"), 1)
|
|
4181
4181
|
], 2),
|
|
4182
|
-
l.value.length ? (i(), u("ul",
|
|
4182
|
+
l.value.length ? (i(), u("ul", Ls, [
|
|
4183
4183
|
(i(!0), u(N, null, le(l.value, (y, n) => (i(), u("li", {
|
|
4184
4184
|
key: n,
|
|
4185
4185
|
class: "layt-moni_err_item"
|
|
4186
4186
|
}, [
|
|
4187
|
-
k("span",
|
|
4187
|
+
k("span", Fs, te(y.msg), 1),
|
|
4188
4188
|
y.fn ? (i(), u("span", {
|
|
4189
4189
|
key: 0,
|
|
4190
4190
|
class: "layt-moni_err_item_fn",
|
|
4191
4191
|
onClick: y.fn
|
|
4192
|
-
}, te(y.btnTxt || "删除"), 9,
|
|
4192
|
+
}, te(y.btnTxt || "删除"), 9, Es)) : D("", !0)
|
|
4193
4193
|
]))), 128))
|
|
4194
4194
|
])) : D("", !0)
|
|
4195
4195
|
])
|
|
4196
4196
|
]));
|
|
4197
4197
|
}
|
|
4198
4198
|
});
|
|
4199
|
-
const
|
|
4199
|
+
const Ms = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e) => e == null ? void 0 : e.getBoundingClientRect(), ut = (e, t) => t.querySelector(`*[data-tag="${e}"]`), mt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, vt].includes(t.dataset.block || "")), nt = (e) => e.previousElementSibling ? [Be, vt].includes(e.previousElementSibling.dataset.block || "") ? nt(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? nt(e.parentElement) : document.body, As = (e) => {
|
|
4200
4200
|
const t = e.parentElement, o = document.createElement("span");
|
|
4201
|
-
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block =
|
|
4202
|
-
},
|
|
4201
|
+
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = vt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
4202
|
+
}, Ds = (e, t, o, l) => {
|
|
4203
4203
|
let r = null;
|
|
4204
|
-
if (e.dataset.block ===
|
|
4204
|
+
if (e.dataset.block === bt && !e.dataset.used) {
|
|
4205
4205
|
const a = window.getComputedStyle(e);
|
|
4206
|
-
t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (r = e.parentElement && e.parentElement.dataset.block ===
|
|
4206
|
+
t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (r = e.parentElement && e.parentElement.dataset.block === rl ? e.parentElement : e), e.dataset.used = "1";
|
|
4207
4207
|
} else
|
|
4208
|
-
e.dataset.block ===
|
|
4208
|
+
e.dataset.block === Lt ? r = e.parentElement : e.dataset.block === cl && !e.dataset.used ? e.offsetHeight < o - 20 ? r = e.parentElement : e.dataset.used = "1" : e.dataset.block === Te && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${Lt}]`) ? e.dataset.used = "1" : r = e : (e.dataset.block === dl && l || ul.includes(e.tagName.toLowerCase())) && (r = e);
|
|
4209
4209
|
return r;
|
|
4210
|
-
},
|
|
4210
|
+
}, Et = (e, t, o) => {
|
|
4211
4211
|
const l = e.textContent || "", r = l.split("").map((y) => `<span>${y}</span>`).join("");
|
|
4212
4212
|
e.innerHTML = r;
|
|
4213
4213
|
const a = [...Array.from(e.children)].findIndex((y) => ye(y).top - t + y.offsetHeight > o);
|
|
@@ -4217,10 +4217,10 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4217
4217
|
s.textContent = l.slice(0, a);
|
|
4218
4218
|
const c = document.createElement("span");
|
|
4219
4219
|
return c.textContent = l.slice(a), e.innerHTML = "", e.append(s, c), s;
|
|
4220
|
-
},
|
|
4221
|
-
const l =
|
|
4220
|
+
}, yt = (e, t, o) => {
|
|
4221
|
+
const l = mt(e.parentElement), r = l.findIndex((s) => s === e);
|
|
4222
4222
|
let a = l.filter((s, c) => ye(s).top + s.offsetHeight - 1 < ye(e).top || c < r && ye(s).top < ye(e).top).reverse()[0];
|
|
4223
|
-
return a || (a =
|
|
4223
|
+
return a || (a = nt(e), ye(a).top + a.offsetHeight - t > o && (a = yt(a, t, o))), a;
|
|
4224
4224
|
}, Pt = (e, t, o, l) => {
|
|
4225
4225
|
const r = (s, c = o) => {
|
|
4226
4226
|
var j, X, A;
|
|
@@ -4239,30 +4239,30 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4239
4239
|
const G = document.createElement("div");
|
|
4240
4240
|
return (X = s[0].parentElement) == null || X.appendChild(G), G.style.height = c - (ye(G).top - t) + "px", G;
|
|
4241
4241
|
}
|
|
4242
|
-
const
|
|
4242
|
+
const P = ye(h), p = P.top - t, M = P.left;
|
|
4243
4243
|
if (n.filter((w) => w.top < p + h.offsetHeight && w.top + w.el.offsetHeight - 1 > p && (w.left + w.el.offsetWidth - 1 < M || w.left + 1 > M + h.offsetWidth)).length) {
|
|
4244
4244
|
const w = (A = y.filter((G) => G.top < p).pop()) == null ? void 0 : A.el;
|
|
4245
4245
|
if (w != null && w.children.length) {
|
|
4246
|
-
const G =
|
|
4246
|
+
const G = mt(w);
|
|
4247
4247
|
return r(G, p) || w;
|
|
4248
4248
|
} else
|
|
4249
|
-
return w ? ye(w).top - t + w.offsetHeight > p ?
|
|
4249
|
+
return w ? ye(w).top - t + w.offsetHeight > p ? Et(w, t, p) : w : yt(h.parentElement, t, p);
|
|
4250
4250
|
} else {
|
|
4251
4251
|
const w = getComputedStyle(h);
|
|
4252
4252
|
if (p + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
|
|
4253
|
-
return
|
|
4254
|
-
const G =
|
|
4253
|
+
return yt(h, t, p);
|
|
4254
|
+
const G = Ds(h, c - p, c, l);
|
|
4255
4255
|
if (G)
|
|
4256
|
-
return
|
|
4256
|
+
return nt(G);
|
|
4257
4257
|
if (h.children.length) {
|
|
4258
|
-
const ie =
|
|
4258
|
+
const ie = mt(h);
|
|
4259
4259
|
return r(ie, c);
|
|
4260
4260
|
} else
|
|
4261
|
-
return
|
|
4261
|
+
return Et(h, t, c);
|
|
4262
4262
|
}
|
|
4263
4263
|
}, a = r([e]);
|
|
4264
|
-
return { cut:
|
|
4265
|
-
},
|
|
4264
|
+
return { cut: As(a), targetEl: a };
|
|
4265
|
+
}, Bs = (e) => {
|
|
4266
4266
|
const { el: t, data: o, column: l, backColumn: r, getColSize: a, change: s } = e;
|
|
4267
4267
|
if (!t || !o.length) {
|
|
4268
4268
|
s([], !0);
|
|
@@ -4271,7 +4271,7 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4271
4271
|
console.time("layout");
|
|
4272
4272
|
const c = ye(t).top;
|
|
4273
4273
|
let y = {}, n = 0, h = 0;
|
|
4274
|
-
const
|
|
4274
|
+
const P = (w) => {
|
|
4275
4275
|
const G = w % (l + r), ie = Math.floor(w / (l + r)) * 2 + (G >= l ? 1 : 0), C = a(w, ie);
|
|
4276
4276
|
y = {
|
|
4277
4277
|
top: c,
|
|
@@ -4281,7 +4281,7 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4281
4281
|
};
|
|
4282
4282
|
let p = [], M = 0;
|
|
4283
4283
|
const z = () => {
|
|
4284
|
-
|
|
4284
|
+
P(p.length), t.style.width = `${y.width}px`, p.push({
|
|
4285
4285
|
top: 0,
|
|
4286
4286
|
data: [],
|
|
4287
4287
|
width: y.width,
|
|
@@ -4301,7 +4301,7 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4301
4301
|
return;
|
|
4302
4302
|
}
|
|
4303
4303
|
p[p.length - 1].data.push({ ...w }), s([...p]), window.requestAnimationFrame(() => {
|
|
4304
|
-
const G =
|
|
4304
|
+
const G = ut(w.__tag__, t), ie = !w.isHidden && ye(G);
|
|
4305
4305
|
let C = null;
|
|
4306
4306
|
if (h) {
|
|
4307
4307
|
const U = G.querySelector(`*[data-hutkey="${h}"]`), de = ye(U);
|
|
@@ -4323,7 +4323,7 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4323
4323
|
let U = [], de = [], g = !1;
|
|
4324
4324
|
if (w.children.some((S, T) => {
|
|
4325
4325
|
var Y, $;
|
|
4326
|
-
const B =
|
|
4326
|
+
const B = ut(S.__tag__, t), ue = ye(B);
|
|
4327
4327
|
if (n) {
|
|
4328
4328
|
const v = B.querySelector(`*[data-cutkey="${n}"]`), _ = ye(v);
|
|
4329
4329
|
p[p.length - 1].top = y.top - _.top, p[p.length - 1].height = y.height - p[p.length - 1].top, n = 0;
|
|
@@ -4332,7 +4332,7 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4332
4332
|
if ((Y = B.parentElement) != null && Y.dataset.polymer)
|
|
4333
4333
|
parseInt(($ = B.parentElement) == null ? void 0 : $.dataset.polymer) ? (U = U.filter((v) => {
|
|
4334
4334
|
var _;
|
|
4335
|
-
return
|
|
4335
|
+
return ut(v.__tag__, t).dataset.polymer !== ((_ = B.parentElement) == null ? void 0 : _.dataset.polymer);
|
|
4336
4336
|
}), de = w.children.slice(U.length)) : (p[p.length - 1].data.pop(), U = [], g = !0, z(), A({ ...w }));
|
|
4337
4337
|
else if (X(B))
|
|
4338
4338
|
U.push(S), de = T < w.children.length - 1 ? w.children.slice(T + 1) : [];
|
|
@@ -4349,27 +4349,27 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4349
4349
|
if (!de.length) {
|
|
4350
4350
|
let _ = { ...S };
|
|
4351
4351
|
switch (S.problemType) {
|
|
4352
|
-
case
|
|
4352
|
+
case Ge.slove:
|
|
4353
4353
|
const R = B.querySelector(`*[data-area="${S.id}"]`);
|
|
4354
4354
|
R != null && R.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = R.innerHTML), B.contains(C.targetEl) && (S.chunk += 1);
|
|
4355
4355
|
break;
|
|
4356
|
-
case
|
|
4356
|
+
case Ge.art:
|
|
4357
4357
|
if (S.artEditor) {
|
|
4358
4358
|
const Q = B.querySelector(`*[data-area="${S.id}"]`);
|
|
4359
4359
|
Q != null && Q.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = Q.innerHTML), B.contains(C.targetEl) && (S.chunk += 1);
|
|
4360
4360
|
break;
|
|
4361
4361
|
} else {
|
|
4362
|
-
const Q = B.querySelector(`*[data-bart="${S.id}"]`),
|
|
4362
|
+
const Q = B.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === Te && C.targetEl.dataset.size ? C.targetEl : null, H = B.querySelector(`*[data-aart="${S.id}"]`);
|
|
4363
4363
|
if (Q != null && Q.contains(C.cut))
|
|
4364
4364
|
n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = Q == null ? void 0 : Q.innerHTML, _.beforeGuide = "", _.afterArt = "", _.endAnswerLen = -1;
|
|
4365
|
-
else if (
|
|
4366
|
-
const K = parseInt(
|
|
4365
|
+
else if (E) {
|
|
4366
|
+
const K = parseInt(E.dataset.size);
|
|
4367
4367
|
if (!S.artBlock)
|
|
4368
4368
|
if (S.beforeGuide && S.beforeGuide.length + (S.startAnswerLen ? 0 : 2) - S.startAnswerLen > K) {
|
|
4369
4369
|
const se = B.querySelector(`*[data-guide="${S.id}"]`), $e = ye(se);
|
|
4370
4370
|
if ($e.height + $e.top - y.top > y.height) {
|
|
4371
4371
|
se.innerHTML = S.beforeGuide.split("").map((b) => `<span>${b}</span>`).join("");
|
|
4372
|
-
const ge = ye(
|
|
4372
|
+
const ge = ye(E).top + E.offsetHeight, we = [...Array.from(se.children)].findIndex((b) => ye(b).top > ge);
|
|
4373
4373
|
_.beforeGuide = S.beforeGuide.substring(0, we), S.beforeGuide = S.beforeGuide.substring(we);
|
|
4374
4374
|
} else
|
|
4375
4375
|
S.beforeGuide = "";
|
|
@@ -4397,16 +4397,16 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4397
4397
|
});
|
|
4398
4398
|
};
|
|
4399
4399
|
A();
|
|
4400
|
-
},
|
|
4401
|
-
|
|
4402
|
-
const
|
|
4403
|
-
function
|
|
4404
|
-
return
|
|
4400
|
+
}, Qt = window.CKEDITOR;
|
|
4401
|
+
Qt.disableAutoInline = !0;
|
|
4402
|
+
const wt = `dx${Math.random().toString(32).substring(2)}`;
|
|
4403
|
+
function Ns(e, t) {
|
|
4404
|
+
return Qt[e](wt, {
|
|
4405
4405
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
4406
4406
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
4407
4407
|
});
|
|
4408
4408
|
}
|
|
4409
|
-
const
|
|
4409
|
+
const Os = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, zs = ["disabled", "contentEditable", "id"], Rs = /* @__PURE__ */ ne({
|
|
4410
4410
|
__name: "index",
|
|
4411
4411
|
props: {
|
|
4412
4412
|
value: {},
|
|
@@ -4415,16 +4415,16 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4415
4415
|
},
|
|
4416
4416
|
emits: ["change", "focus", "blur"],
|
|
4417
4417
|
setup(e, { emit: t }) {
|
|
4418
|
-
const o = e, l =
|
|
4419
|
-
De(() => o.readonly, () => a()),
|
|
4418
|
+
const o = e, l = Kt("ckeditorOrigin", ""), r = V();
|
|
4419
|
+
De(() => o.readonly, () => a()), Ue(() => a());
|
|
4420
4420
|
const a = () => {
|
|
4421
4421
|
if (window.CKEDITOR) {
|
|
4422
4422
|
if (o.readonly) {
|
|
4423
4423
|
r.value && (r.value.destroy(), r.value = null);
|
|
4424
4424
|
return;
|
|
4425
4425
|
}
|
|
4426
|
-
|
|
4427
|
-
r.value =
|
|
4426
|
+
st(() => {
|
|
4427
|
+
r.value = Ns("inline", l), r.value && r.value.on("instanceReady", (n) => {
|
|
4428
4428
|
r.value.setData(o.value);
|
|
4429
4429
|
});
|
|
4430
4430
|
});
|
|
@@ -4446,21 +4446,21 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4446
4446
|
const M = window.getComputedStyle(p);
|
|
4447
4447
|
(M.display === "none" || M.width === "0px" && M.height === "0px" || M.opacity === "0" || M.visibility === "hidden") && p.remove();
|
|
4448
4448
|
});
|
|
4449
|
-
const
|
|
4449
|
+
const P = (p = h) => {
|
|
4450
4450
|
[...Array.from(p.childNodes)].forEach((M) => {
|
|
4451
4451
|
var z;
|
|
4452
4452
|
if (M.nodeType === Node.ELEMENT_NODE && M.children.length)
|
|
4453
|
-
|
|
4453
|
+
P(M);
|
|
4454
4454
|
else if (M.nodeType === Node.TEXT_NODE) {
|
|
4455
4455
|
const j = document.createElement("span");
|
|
4456
4456
|
j.textContent = M.textContent, window.REGULAR.underscore.test(M.textContent || "") && (window.getComputedStyle(M.parentNode).wordBreak !== "break-all" || !(M.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (M.textContent || "").length > 5 && (j.innerHTML = (M.textContent || "").replace(window.REGULAR.underscore, (A) => A.length > 5 ? `<span style="word-break: break-all">${A}</span>` : A)), (z = M.parentElement) == null || z.replaceChild(j, M);
|
|
4457
4457
|
}
|
|
4458
4458
|
});
|
|
4459
4459
|
};
|
|
4460
|
-
return
|
|
4460
|
+
return P(), h.innerHTML;
|
|
4461
4461
|
};
|
|
4462
|
-
return (n, h) => (i(), u("div",
|
|
4463
|
-
o.readonly ? (i(), ee(
|
|
4462
|
+
return (n, h) => (i(), u("div", Os, [
|
|
4463
|
+
o.readonly ? (i(), ee(ze, {
|
|
4464
4464
|
key: 1,
|
|
4465
4465
|
data: o.value,
|
|
4466
4466
|
class: "raw_view"
|
|
@@ -4469,37 +4469,37 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4469
4469
|
class: "overflow-auto outline-none whitespace-normal editor_view",
|
|
4470
4470
|
disabled: o.readonly,
|
|
4471
4471
|
contentEditable: !o.readonly,
|
|
4472
|
-
id: L(
|
|
4472
|
+
id: L(wt),
|
|
4473
4473
|
onFocus: c,
|
|
4474
4474
|
onBlur: s
|
|
4475
|
-
}, null, 40,
|
|
4475
|
+
}, null, 40, zs))
|
|
4476
4476
|
]));
|
|
4477
4477
|
}
|
|
4478
4478
|
});
|
|
4479
|
-
const
|
|
4480
|
-
let
|
|
4481
|
-
const
|
|
4479
|
+
const Hs = /* @__PURE__ */ me(Rs, [["__scopeId", "data-v-1398ac85"]]);
|
|
4480
|
+
let Xe = null, Oe = null;
|
|
4481
|
+
const Ws = {
|
|
4482
4482
|
mounted: (e, t) => {
|
|
4483
4483
|
let o = {}, l = !1, r = !1, a = e.offsetParent, s = {}, c = {}, y = {};
|
|
4484
4484
|
const n = e.querySelector(".move-target") || e;
|
|
4485
|
-
n.style.cursor = "move", n.addEventListener("mousedown", (h) => {
|
|
4485
|
+
n.style.cursor = "move", document.removeEventListener("mousemove", Xe), document.removeEventListener("mouseup", Oe), document.removeEventListener("mouseleave", Oe), n.addEventListener("mousedown", (h) => {
|
|
4486
4486
|
l = !0, r = !!e.dataset.safe, a = e.offsetParent;
|
|
4487
|
-
const
|
|
4488
|
-
o = { x: h.clientX, y: h.clientY }, s = { x: parseInt(
|
|
4489
|
-
}),
|
|
4490
|
-
l
|
|
4491
|
-
}),
|
|
4487
|
+
const P = window.getComputedStyle(e);
|
|
4488
|
+
o = { x: h.clientX, y: h.clientY }, s = { x: parseInt(P.left), y: parseInt(P.top) };
|
|
4489
|
+
}), Oe = () => {
|
|
4490
|
+
l && t.value && typeof t.value == "function" && t.value(y), l = !1;
|
|
4491
|
+
}, document.addEventListener("mouseup", Oe), document.addEventListener("mouseleave", Oe), Xe = (h) => {
|
|
4492
4492
|
if (!l || e.getAttribute("disabled") === "true")
|
|
4493
4493
|
return;
|
|
4494
4494
|
h.stopPropagation(), h.preventDefault(), c = { x: h.clientX, y: h.clientY };
|
|
4495
|
-
const
|
|
4496
|
-
e.style.left = `${
|
|
4497
|
-
}, document.addEventListener("mousemove",
|
|
4495
|
+
const P = r ? Math.min(Math.max(c.x - o.x + s.x, 0), a.offsetWidth - e.offsetWidth) : c.x - o.x + s.x, p = r ? Math.min(Math.max(c.y - o.y + s.y, 0), a.offsetHeight - e.offsetHeight) : c.y - o.y + s.y;
|
|
4496
|
+
e.style.left = `${P}px`, e.style.top = `${p}px`, y = { x: P, y: p };
|
|
4497
|
+
}, document.addEventListener("mousemove", Xe);
|
|
4498
4498
|
},
|
|
4499
4499
|
unmounted: () => {
|
|
4500
|
-
document.removeEventListener("mousemove",
|
|
4500
|
+
document.removeEventListener("mousemove", Xe), document.removeEventListener("mouseup", Oe), document.removeEventListener("mouseleave", Oe);
|
|
4501
4501
|
}
|
|
4502
|
-
},
|
|
4502
|
+
}, Gs = ["onMousedown", "data-block"], Qs = ["src"], qs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ys = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ks = ["onMousedown"], Us = ["onMousedown"], Vs = ["disabled", "onMousedown", "data-block"], js = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Xs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Js = ["onMousedown"], Zs = /* @__PURE__ */ ne({
|
|
4503
4503
|
__name: "absItem",
|
|
4504
4504
|
props: {
|
|
4505
4505
|
imgData: {},
|
|
@@ -4511,7 +4511,7 @@ const Hs = {
|
|
|
4511
4511
|
},
|
|
4512
4512
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4513
4513
|
setup(e, { emit: t }) {
|
|
4514
|
-
const o = e, l =
|
|
4514
|
+
const o = e, l = Ws, r = [
|
|
4515
4515
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4516
4516
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4517
4517
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4522,7 +4522,7 @@ const Hs = {
|
|
|
4522
4522
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4523
4523
|
], a = V({}), s = V(), c = V(0), y = V(0), n = V();
|
|
4524
4524
|
V();
|
|
4525
|
-
const h = V({}),
|
|
4525
|
+
const h = V({}), P = V(!1), p = V(), M = V(), z = V(), j = W(() => o.imgData.map(($) => ({
|
|
4526
4526
|
...$,
|
|
4527
4527
|
top: $.top - Math.floor($.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4528
4528
|
}))), X = W(() => o.txtData.map(($) => ({
|
|
@@ -4533,14 +4533,14 @@ const Hs = {
|
|
|
4533
4533
|
o.activeAbsItem && Y({ ...o.activeAbsItem });
|
|
4534
4534
|
}), De(() => o.target, () => {
|
|
4535
4535
|
Y(null);
|
|
4536
|
-
}),
|
|
4536
|
+
}), Ue(() => {
|
|
4537
4537
|
n.value = document.body.querySelector(".__layout__");
|
|
4538
4538
|
});
|
|
4539
4539
|
const G = ($) => {
|
|
4540
4540
|
var v;
|
|
4541
4541
|
s.value = { ...A.value, left: Math.max($.x, 0), top: Math.max($.y, 0) }, (v = A.value) != null && v.key && (A.value.key.split("-")[0] === "img" ? t("changeAbsImgItem", { ...A.value, left: Math.max($.x, 0), top: Math.max($.y, 0) }) : t("changeAbsTxtItem", { ...A.value, left: Math.max($.x, 0), top: Math.max($.y, 0) }));
|
|
4542
4542
|
}, ie = ($) => {
|
|
4543
|
-
|
|
4543
|
+
P.value = $;
|
|
4544
4544
|
}, C = () => {
|
|
4545
4545
|
const $ = A.value, v = $.left + $.width / 2, _ = $.top + $.height / 2, R = n.value.getBoundingClientRect() || {};
|
|
4546
4546
|
h.value = { x: v + R.left, y: _ + R.top }, n.value.addEventListener("mousemove", U), n.value.addEventListener("mouseleave", de), n.value.addEventListener("mouseup", de);
|
|
@@ -4558,7 +4558,7 @@ const Hs = {
|
|
|
4558
4558
|
[
|
|
4559
4559
|
// 0
|
|
4560
4560
|
() => {
|
|
4561
|
-
const
|
|
4561
|
+
const E = {
|
|
4562
4562
|
width: a.value.width - v.x,
|
|
4563
4563
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4564
4564
|
}[R], H = {
|
|
@@ -4567,26 +4567,26 @@ const Hs = {
|
|
|
4567
4567
|
}[R];
|
|
4568
4568
|
s.value = {
|
|
4569
4569
|
..._,
|
|
4570
|
-
width:
|
|
4570
|
+
width: E,
|
|
4571
4571
|
height: H,
|
|
4572
|
-
left: a.value.left - (
|
|
4572
|
+
left: a.value.left - (E - a.value.width),
|
|
4573
4573
|
top: a.value.top - (H - a.value.height)
|
|
4574
4574
|
};
|
|
4575
4575
|
},
|
|
4576
4576
|
// 1
|
|
4577
4577
|
() => {
|
|
4578
|
-
const
|
|
4578
|
+
const E = a.value.width * (1 - v.y / a.value.height), H = a.value.height - v.y;
|
|
4579
4579
|
s.value = {
|
|
4580
4580
|
..._,
|
|
4581
|
-
width:
|
|
4581
|
+
width: E,
|
|
4582
4582
|
height: H,
|
|
4583
|
-
left: a.value.left - (
|
|
4583
|
+
left: a.value.left - (E - a.value.width) / 2,
|
|
4584
4584
|
top: a.value.top - (H - a.value.height)
|
|
4585
4585
|
};
|
|
4586
4586
|
},
|
|
4587
4587
|
// 2
|
|
4588
4588
|
() => {
|
|
4589
|
-
const
|
|
4589
|
+
const E = {
|
|
4590
4590
|
width: a.value.height * (1 + v.x / a.value.width),
|
|
4591
4591
|
height: a.value.height - v.y
|
|
4592
4592
|
}[R];
|
|
@@ -4596,34 +4596,34 @@ const Hs = {
|
|
|
4596
4596
|
width: a.value.width + v.x,
|
|
4597
4597
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4598
4598
|
}[R],
|
|
4599
|
-
height:
|
|
4600
|
-
top: a.value.top - (
|
|
4599
|
+
height: E,
|
|
4600
|
+
top: a.value.top - (E - a.value.height)
|
|
4601
4601
|
};
|
|
4602
4602
|
},
|
|
4603
4603
|
// 3
|
|
4604
4604
|
() => {
|
|
4605
|
-
const
|
|
4605
|
+
const E = a.value.width - v.x, H = a.value.height * (1 - v.x / a.value.width);
|
|
4606
4606
|
s.value = {
|
|
4607
4607
|
..._,
|
|
4608
|
-
width:
|
|
4608
|
+
width: E,
|
|
4609
4609
|
height: H,
|
|
4610
|
-
left: a.value.left - (
|
|
4610
|
+
left: a.value.left - (E - a.value.width),
|
|
4611
4611
|
top: a.value.top - (H - a.value.height) / 2
|
|
4612
4612
|
};
|
|
4613
4613
|
},
|
|
4614
4614
|
// 4
|
|
4615
4615
|
() => {
|
|
4616
|
-
const
|
|
4616
|
+
const E = a.value.width + v.x, H = a.value.height * (1 + v.x / a.value.width);
|
|
4617
4617
|
s.value = {
|
|
4618
4618
|
..._,
|
|
4619
|
-
width:
|
|
4619
|
+
width: E,
|
|
4620
4620
|
height: H,
|
|
4621
4621
|
top: a.value.top - (H - a.value.height) / 2
|
|
4622
4622
|
};
|
|
4623
4623
|
},
|
|
4624
4624
|
// 5
|
|
4625
4625
|
() => {
|
|
4626
|
-
const
|
|
4626
|
+
const E = {
|
|
4627
4627
|
width: a.value.width - v.x,
|
|
4628
4628
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4629
4629
|
}[R], H = {
|
|
@@ -4632,24 +4632,24 @@ const Hs = {
|
|
|
4632
4632
|
}[R];
|
|
4633
4633
|
s.value = {
|
|
4634
4634
|
..._,
|
|
4635
|
-
width:
|
|
4635
|
+
width: E,
|
|
4636
4636
|
height: H,
|
|
4637
|
-
left: a.value.left - (
|
|
4637
|
+
left: a.value.left - (E - a.value.width)
|
|
4638
4638
|
};
|
|
4639
4639
|
},
|
|
4640
4640
|
// 6
|
|
4641
4641
|
() => {
|
|
4642
|
-
const
|
|
4642
|
+
const E = a.value.width * (1 + v.y / a.value.height), H = a.value.height + v.y;
|
|
4643
4643
|
s.value = {
|
|
4644
4644
|
..._,
|
|
4645
|
-
width:
|
|
4645
|
+
width: E,
|
|
4646
4646
|
height: H,
|
|
4647
|
-
left: a.value.left - (
|
|
4647
|
+
left: a.value.left - (E - a.value.width) / 2
|
|
4648
4648
|
};
|
|
4649
4649
|
},
|
|
4650
4650
|
// 7
|
|
4651
4651
|
() => {
|
|
4652
|
-
const
|
|
4652
|
+
const E = {
|
|
4653
4653
|
width: a.value.width + v.x,
|
|
4654
4654
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4655
4655
|
}[R], H = {
|
|
@@ -4658,7 +4658,7 @@ const Hs = {
|
|
|
4658
4658
|
}[R];
|
|
4659
4659
|
s.value = {
|
|
4660
4660
|
..._,
|
|
4661
|
-
width:
|
|
4661
|
+
width: E,
|
|
4662
4662
|
height: H
|
|
4663
4663
|
};
|
|
4664
4664
|
}
|
|
@@ -4720,29 +4720,29 @@ const Hs = {
|
|
|
4720
4720
|
t("changeAbsTxtItem", { ...A.value, content: $ });
|
|
4721
4721
|
}, Y = ($, v) => {
|
|
4722
4722
|
var R, Q;
|
|
4723
|
-
const _ = document.body.querySelector(`.cke_editor_${
|
|
4724
|
-
!$ && ((Q = (R = v == null ? void 0 : v.target) == null ? void 0 : R.dataset) != null && Q.safe || [...M.value || [], ...z.value || []].find((
|
|
4723
|
+
const _ = document.body.querySelector(`.cke_editor_${wt}`);
|
|
4724
|
+
!$ && ((Q = (R = v == null ? void 0 : v.target) == null ? void 0 : R.dataset) != null && Q.safe || [...M.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (p.value = $ == null ? void 0 : $.key, $ && (s.value = { ...$ }));
|
|
4725
4725
|
};
|
|
4726
4726
|
return ($, v) => (i(), u(N, null, [
|
|
4727
4727
|
(i(!0), u(N, null, le(j.value, (_) => {
|
|
4728
|
-
var R, Q,
|
|
4729
|
-
return
|
|
4728
|
+
var R, Q, E, H, K, se, $e;
|
|
4729
|
+
return $t((i(), u("div", {
|
|
4730
4730
|
key: _.id,
|
|
4731
4731
|
ref_for: !0,
|
|
4732
4732
|
ref_key: "imgViewList",
|
|
4733
4733
|
ref: M,
|
|
4734
4734
|
"data-safe": "true",
|
|
4735
4735
|
class: oe(["absolute", ((R = A.value) == null ? void 0 : R.key) === _.key ? "z-8" : "z-7"]),
|
|
4736
|
-
style: Z({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((
|
|
4737
|
-
onClick: v[0] || (v[0] =
|
|
4738
|
-
onMousedown:
|
|
4736
|
+
style: Z({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((H = w.value[_.key]) == null ? void 0 : H.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
|
|
4737
|
+
onClick: v[0] || (v[0] = Ee((ge) => $.void, ["stop"])),
|
|
4738
|
+
onMousedown: Ee((ge) => Y(_), ["stop"]),
|
|
4739
4739
|
"data-block": L(Be)
|
|
4740
4740
|
}, [
|
|
4741
4741
|
k("img", {
|
|
4742
4742
|
src: _.url
|
|
4743
|
-
}, null, 8,
|
|
4743
|
+
}, null, 8, Qs),
|
|
4744
4744
|
(($e = A.value) == null ? void 0 : $e.key) === _.key ? (i(), u(N, { key: 0 }, [
|
|
4745
|
-
k("span",
|
|
4745
|
+
k("span", qs, [
|
|
4746
4746
|
ae(ve, {
|
|
4747
4747
|
name: "close",
|
|
4748
4748
|
width: 2,
|
|
@@ -4750,44 +4750,44 @@ const Hs = {
|
|
|
4750
4750
|
onClick: (ge) => t("delAbsImgItem", _)
|
|
4751
4751
|
}, null, 8, ["onClick"])
|
|
4752
4752
|
]),
|
|
4753
|
-
k("div",
|
|
4753
|
+
k("div", Ys, [
|
|
4754
4754
|
(i(), u(N, null, le(8, (ge, we) => k("div", {
|
|
4755
4755
|
key: ge,
|
|
4756
4756
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4757
4757
|
style: Z({ ...r[we], transform: "translate(-50%, -50%)" }),
|
|
4758
|
-
onMousedown:
|
|
4759
|
-
}, null, 44,
|
|
4758
|
+
onMousedown: Ee((b) => g(b, we), ["stop"])
|
|
4759
|
+
}, null, 44, Ks)), 64))
|
|
4760
4760
|
]),
|
|
4761
4761
|
k("span", {
|
|
4762
4762
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4763
|
-
onMousedown:
|
|
4763
|
+
onMousedown: Ee(C, ["stop"])
|
|
4764
4764
|
}, [
|
|
4765
4765
|
ae(ve, {
|
|
4766
4766
|
name: "reset",
|
|
4767
4767
|
width: 2
|
|
4768
4768
|
})
|
|
4769
|
-
], 40,
|
|
4769
|
+
], 40, Us)
|
|
4770
4770
|
], 64)) : D("", !0)
|
|
4771
|
-
], 46,
|
|
4771
|
+
], 46, Gs)), [
|
|
4772
4772
|
[L(l), G]
|
|
4773
4773
|
]);
|
|
4774
4774
|
}), 128)),
|
|
4775
4775
|
(i(!0), u(N, null, le(X.value, (_) => {
|
|
4776
|
-
var R, Q,
|
|
4777
|
-
return
|
|
4776
|
+
var R, Q, E, H, K, se, $e;
|
|
4777
|
+
return $t((i(), u("div", {
|
|
4778
4778
|
key: _.id,
|
|
4779
4779
|
ref_for: !0,
|
|
4780
4780
|
ref_key: "txtViewList",
|
|
4781
4781
|
ref: z,
|
|
4782
|
-
disabled:
|
|
4782
|
+
disabled: P.value,
|
|
4783
4783
|
"data-safe": "true",
|
|
4784
4784
|
class: oe(["absolute", ((R = A.value) == null ? void 0 : R.key) === _.key ? "z-8 bg-white" : "z-7"]),
|
|
4785
|
-
style: Z({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((
|
|
4786
|
-
onClick: v[3] || (v[3] =
|
|
4787
|
-
onMousedown:
|
|
4785
|
+
style: Z({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((H = w.value[_.key]) == null ? void 0 : H.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
|
|
4786
|
+
onClick: v[3] || (v[3] = Ee((ge) => $.void, ["stop"])),
|
|
4787
|
+
onMousedown: Ee((ge) => Y(_), ["stop"]),
|
|
4788
4788
|
"data-block": L(Be)
|
|
4789
4789
|
}, [
|
|
4790
|
-
(i(), ee(
|
|
4790
|
+
(i(), ee(Hs, {
|
|
4791
4791
|
key: y.value,
|
|
4792
4792
|
class: "border-0 relative z-4",
|
|
4793
4793
|
readonly: ((se = A.value) == null ? void 0 : se.key) !== _.key,
|
|
@@ -4798,7 +4798,7 @@ const Hs = {
|
|
|
4798
4798
|
onBlur: v[2] || (v[2] = (ge) => ie(!1))
|
|
4799
4799
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4800
4800
|
(($e = A.value) == null ? void 0 : $e.key) === _.key ? (i(), u(N, { key: 0 }, [
|
|
4801
|
-
k("span",
|
|
4801
|
+
k("span", js, [
|
|
4802
4802
|
ae(ve, {
|
|
4803
4803
|
name: "close",
|
|
4804
4804
|
width: 2,
|
|
@@ -4806,28 +4806,28 @@ const Hs = {
|
|
|
4806
4806
|
onClick: (ge) => t("delAbsTxtItem", _)
|
|
4807
4807
|
}, null, 8, ["onClick"])
|
|
4808
4808
|
]),
|
|
4809
|
-
k("div",
|
|
4809
|
+
k("div", Xs, [
|
|
4810
4810
|
(i(), u(N, null, le(8, (ge, we) => k("div", {
|
|
4811
4811
|
key: ge,
|
|
4812
4812
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4813
4813
|
style: Z({ ...r[we], transform: "translate(-50%, -50%)" }),
|
|
4814
4814
|
onMousedown: (b) => g(b, we)
|
|
4815
|
-
}, null, 44,
|
|
4815
|
+
}, null, 44, Js)), 64))
|
|
4816
4816
|
])
|
|
4817
4817
|
], 64)) : D("", !0)
|
|
4818
|
-
], 46,
|
|
4818
|
+
], 46, Vs)), [
|
|
4819
4819
|
[L(l), G]
|
|
4820
4820
|
]);
|
|
4821
4821
|
}), 128))
|
|
4822
4822
|
], 64));
|
|
4823
4823
|
}
|
|
4824
4824
|
});
|
|
4825
|
-
const
|
|
4825
|
+
const ei = /* @__PURE__ */ me(Zs, [["__scopeId", "data-v-db8ee9a5"]]), ti = ["viewBox"], oi = {
|
|
4826
4826
|
x: "0",
|
|
4827
4827
|
y: "0",
|
|
4828
4828
|
width: "100%",
|
|
4829
4829
|
height: "100%"
|
|
4830
|
-
},
|
|
4830
|
+
}, ai = ["onClick", "onDblclick"], li = ["data-block"], ni = /* @__PURE__ */ ne({
|
|
4831
4831
|
__name: "index",
|
|
4832
4832
|
props: {
|
|
4833
4833
|
layout: {},
|
|
@@ -4845,12 +4845,12 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4845
4845
|
emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
|
|
4846
4846
|
setup(e, { emit: t }) {
|
|
4847
4847
|
const o = e;
|
|
4848
|
-
|
|
4849
|
-
const l = V([]), r = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]), h = V([]),
|
|
4848
|
+
Ut("ckeditorOrigin", o.ckeditorOrigin);
|
|
4849
|
+
const l = V([]), r = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]), h = V([]), P = V([]), p = V([]), M = W(() => o.data.map((b) => ({
|
|
4850
4850
|
...b,
|
|
4851
|
-
__tag__:
|
|
4851
|
+
__tag__: It(),
|
|
4852
4852
|
rawChildren: b.children,
|
|
4853
|
-
children: b.children.map((F) => ({ ...F, ...$(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__:
|
|
4853
|
+
children: b.children.map((F) => ({ ...F, ...$(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: It() }))
|
|
4854
4854
|
}))), z = W(() => {
|
|
4855
4855
|
if (!M.value.length)
|
|
4856
4856
|
return;
|
|
@@ -4858,8 +4858,8 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4858
4858
|
return ie.value && [m.slove].includes(F == null ? void 0 : F.problemType) && F.id;
|
|
4859
4859
|
}), j = W(() => {
|
|
4860
4860
|
var b;
|
|
4861
|
-
return o.layout.bindFlag && !!((b =
|
|
4862
|
-
}), X = W(() => o.isFinal ? 0 : 10), A = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding ||
|
|
4861
|
+
return o.layout.bindFlag && !!((b = Qe.find((F) => F.code === o.layout.paper)) != null && b.isMultCol);
|
|
4862
|
+
}), X = W(() => o.isFinal ? 0 : 10), A = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || ft[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + H(0) : 0) + H(0)) / o.layout.column - H(0)), T = W(() => ({
|
|
4863
4863
|
width: `${x[o.layout.paper].width}px`,
|
|
4864
4864
|
height: `${(x[o.layout.paper].height + X.value) * G.value - X.value}px`
|
|
4865
4865
|
})), B = W(() => ({
|
|
@@ -4869,13 +4869,13 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4869
4869
|
marginBottom: `${X.value}px`
|
|
4870
4870
|
})), ue = W(() => {
|
|
4871
4871
|
var F;
|
|
4872
|
-
const b = (F =
|
|
4872
|
+
const b = (F = Qe.find((_e) => _e.code === o.layout.paper)) == null ? void 0 : F.isFullTitle;
|
|
4873
4873
|
return {
|
|
4874
4874
|
left: `${U.value.left + (c.value ? c.value + H(0) : 0)}px`,
|
|
4875
4875
|
top: `${U.value.top}px`,
|
|
4876
4876
|
width: b ? `${de.value}px` : `${S.value}px`
|
|
4877
4877
|
};
|
|
4878
|
-
}), Y = W(() =>
|
|
4878
|
+
}), Y = W(() => Bt.filter((b) => o.info.bindExtentInfo[b.code]).map((b) => o.info.bindExtentInfo[b.key]));
|
|
4879
4879
|
De(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
|
|
4880
4880
|
setTimeout(() => {
|
|
4881
4881
|
ge();
|
|
@@ -4888,10 +4888,10 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4888
4888
|
if ([m.slove].includes(F.problemType) && ie.value) {
|
|
4889
4889
|
const _e = document.createElement("div");
|
|
4890
4890
|
_e.innerHTML = F.answerArea;
|
|
4891
|
-
const J = _e.querySelector(
|
|
4891
|
+
const J = _e.querySelector(Ot.sub);
|
|
4892
4892
|
if (J) {
|
|
4893
4893
|
const re = document.createElement("div");
|
|
4894
|
-
re.innerHTML =
|
|
4894
|
+
re.innerHTML = ds(F.sub, F.style[d.public.scoreShowFlag] === f.bracket_none ? void 0 : [F.score].flat(2).reduce((Ie, Ae) => Ie + Ae, 0), F.style[d.public.scoreShowFlag]), J.replaceWith(re.children[0]), F.answerArea = _e.innerHTML, F.customSub = !0, _e.remove(), re.remove();
|
|
4895
4895
|
}
|
|
4896
4896
|
}
|
|
4897
4897
|
return F;
|
|
@@ -4900,11 +4900,11 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4900
4900
|
return F >= o.layout.column ? F - o.layout.column : F;
|
|
4901
4901
|
}, Q = (b, F) => {
|
|
4902
4902
|
b ? n.value[F] = b : n.value.splice(F, 1);
|
|
4903
|
-
},
|
|
4903
|
+
}, E = (b, F) => {
|
|
4904
4904
|
b ? h.value[F] = b : h.value.splice(F, 1);
|
|
4905
|
-
}, H = (b) =>
|
|
4905
|
+
}, H = (b) => Dt[o.layout.mode][o.layout.paper][v(b)] || 0, K = (b, F = !1) => (de.value - (c.value ? c.value + H(b) : 0) + H(b)) / v(b) - H(b) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), se = (b, F) => {
|
|
4906
4906
|
var J, re;
|
|
4907
|
-
const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((J =
|
|
4907
|
+
const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((J = P.value[Math.min(F, 1)]) == null ? void 0 : J.offsetHeight) || 0;
|
|
4908
4908
|
return {
|
|
4909
4909
|
left: `${U.value.left + (F % 2 ? 0 : c.value ? c.value + H(b) : 0) + C.value.left + R(b) * (K(b) + H(b) + C.value.left + C.value.right)}px`,
|
|
4910
4910
|
top: `${_e + U.value.top + (!F && !b ? 0 : C.value.top)}px`,
|
|
@@ -4913,12 +4913,12 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4913
4913
|
contentHeight: `${(re = l.value[b]) == null ? void 0 : re.height}px`
|
|
4914
4914
|
};
|
|
4915
4915
|
}, $e = (b, F = !1) => {
|
|
4916
|
-
r.value = b.map((_e) => ({ ..._e })), F && (l.value = [...b], s.value += 1,
|
|
4916
|
+
r.value = b.map((_e) => ({ ..._e })), F && (l.value = [...b], s.value += 1, st(() => {
|
|
4917
4917
|
a.value = Math.ceil(l.value.length / o.layout.column), r.value = [], h.value.forEach((_e, J) => {
|
|
4918
4918
|
var re, Ie;
|
|
4919
4919
|
!_e || !_e.col || ((re = l.value[J]) != null && re.top ? _e.col.style.marginTop = `${(Ie = l.value[J]) == null ? void 0 : Ie.top}px` : _e.col.style.marginTop = "");
|
|
4920
4920
|
}), o.isFinal && setTimeout(() => {
|
|
4921
|
-
const _e =
|
|
4921
|
+
const _e = Cs({
|
|
4922
4922
|
config: {
|
|
4923
4923
|
...o.info,
|
|
4924
4924
|
layout: o.layout,
|
|
@@ -4935,7 +4935,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4935
4935
|
}, 500);
|
|
4936
4936
|
}));
|
|
4937
4937
|
}, ge = () => {
|
|
4938
|
-
|
|
4938
|
+
Bs({
|
|
4939
4939
|
el: y.value,
|
|
4940
4940
|
data: M.value,
|
|
4941
4941
|
column: o.layout.column,
|
|
@@ -4949,7 +4949,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4949
4949
|
return (b, F) => {
|
|
4950
4950
|
var _e;
|
|
4951
4951
|
return i(), u(N, null, [
|
|
4952
|
-
b.readonly ? D("", !0) : (i(), ee(
|
|
4952
|
+
b.readonly ? D("", !0) : (i(), ee(Ms, {
|
|
4953
4953
|
key: 0,
|
|
4954
4954
|
ColList: l.value,
|
|
4955
4955
|
ColDom: h.value.map((J) => J.col),
|
|
@@ -4970,7 +4970,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4970
4970
|
ref: y
|
|
4971
4971
|
}, [
|
|
4972
4972
|
r.value.length ? (i(!0), u(N, { key: 0 }, le((_e = r.value[r.value.length - 1]) == null ? void 0 : _e.data, (J, re) => (i(), u(N, null, [
|
|
4973
|
-
J.isHidden ? D("", !0) : (i(), ee(
|
|
4973
|
+
J.isHidden ? D("", !0) : (i(), ee(Ft, {
|
|
4974
4974
|
key: 0,
|
|
4975
4975
|
item: J,
|
|
4976
4976
|
showColBorder: ie.value,
|
|
@@ -4981,7 +4981,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4981
4981
|
key: 1,
|
|
4982
4982
|
class: oe([!J.children.length && J.problemType && "p-1 min-h-[2rem]"])
|
|
4983
4983
|
}, [
|
|
4984
|
-
(i(), ee(
|
|
4984
|
+
(i(), ee(je, {
|
|
4985
4985
|
data: J,
|
|
4986
4986
|
key: r.value.length,
|
|
4987
4987
|
layout: b.layout,
|
|
@@ -4989,7 +4989,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4989
4989
|
noPortrait: "",
|
|
4990
4990
|
width: K(r.value.length - 1)
|
|
4991
4991
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4992
|
-
], 2)) : (i(), ee(
|
|
4992
|
+
], 2)) : (i(), ee(je, {
|
|
4993
4993
|
data: J,
|
|
4994
4994
|
key: r.value.length,
|
|
4995
4995
|
layout: b.layout,
|
|
@@ -5002,7 +5002,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5002
5002
|
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"]),
|
|
5003
5003
|
style: Z(T.value)
|
|
5004
5004
|
}, [
|
|
5005
|
-
ae(
|
|
5005
|
+
ae(ei, {
|
|
5006
5006
|
imgData: b.imgData,
|
|
5007
5007
|
txtData: b.txtData,
|
|
5008
5008
|
activeAbsItem: b.activeAbsItem,
|
|
@@ -5020,7 +5020,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5020
5020
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5021
5021
|
key: s.value
|
|
5022
5022
|
}, [
|
|
5023
|
-
(i(), u("foreignObject",
|
|
5023
|
+
(i(), u("foreignObject", oi, [
|
|
5024
5024
|
(i(!0), u(N, null, le(G.value, (J, re) => (i(), u("div", {
|
|
5025
5025
|
key: J,
|
|
5026
5026
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
@@ -5029,7 +5029,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5029
5029
|
style: Z(B.value)
|
|
5030
5030
|
}, [
|
|
5031
5031
|
re < w.value ? (i(), u(N, { key: 0 }, [
|
|
5032
|
-
ae(
|
|
5032
|
+
ae(Lo, {
|
|
5033
5033
|
layout: b.layout,
|
|
5034
5034
|
currentPage: re,
|
|
5035
5035
|
totalPage: w.value,
|
|
@@ -5038,13 +5038,13 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5038
5038
|
bindWidth: c.value,
|
|
5039
5039
|
padding: U.value
|
|
5040
5040
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
5041
|
-
b.layout.sloganFlag ? (i(), ee(
|
|
5041
|
+
b.layout.sloganFlag ? (i(), ee(Mo, {
|
|
5042
5042
|
key: 0,
|
|
5043
5043
|
info: b.info,
|
|
5044
5044
|
layout: b.layout,
|
|
5045
5045
|
onChange: F[7] || (F[7] = (Ie) => t("changeInfo", Ie))
|
|
5046
5046
|
}, null, 8, ["info", "layout"])) : D("", !0),
|
|
5047
|
-
ae(
|
|
5047
|
+
ae(il, {
|
|
5048
5048
|
ref_for: !0,
|
|
5049
5049
|
ref_key: "bindDom",
|
|
5050
5050
|
ref: p,
|
|
@@ -5059,73 +5059,73 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5059
5059
|
key: 1,
|
|
5060
5060
|
ref_for: !0,
|
|
5061
5061
|
ref_key: "titleDom",
|
|
5062
|
-
ref:
|
|
5062
|
+
ref: P,
|
|
5063
5063
|
class: oe(["absolute text-black", re === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5064
5064
|
style: Z(ue.value)
|
|
5065
5065
|
}, [
|
|
5066
|
-
ae(
|
|
5066
|
+
ae(Ro, {
|
|
5067
5067
|
layout: b.layout,
|
|
5068
5068
|
code: b.info.textCode
|
|
5069
5069
|
}, null, 8, ["layout", "code"]),
|
|
5070
|
-
ae(
|
|
5070
|
+
ae(ca, {
|
|
5071
5071
|
info: b.info,
|
|
5072
5072
|
layout: b.layout,
|
|
5073
5073
|
fontConfig: b.fontConfig,
|
|
5074
5074
|
data: b.data,
|
|
5075
5075
|
onChange: F[8] || (F[8] = (Ie) => t("changeInfo", Ie))
|
|
5076
5076
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5077
|
-
ae(
|
|
5077
|
+
ae(La, {
|
|
5078
5078
|
layout: b.layout,
|
|
5079
5079
|
info: b.info,
|
|
5080
5080
|
isBindFlag: j.value,
|
|
5081
5081
|
onChange: F[9] || (F[9] = (Ie) => t("changeExtentInfo", Ie))
|
|
5082
5082
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5083
|
-
ae(
|
|
5083
|
+
ae(Ga, {
|
|
5084
5084
|
layout: b.layout,
|
|
5085
5085
|
isBindFlag: j.value
|
|
5086
5086
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5087
|
-
re ? D("", !0) : (i(), ee(
|
|
5087
|
+
re ? D("", !0) : (i(), ee(ja, {
|
|
5088
5088
|
key: 0,
|
|
5089
5089
|
layout: b.layout,
|
|
5090
5090
|
data: b.data
|
|
5091
5091
|
}, null, 8, ["layout", "data"])),
|
|
5092
|
-
b.layout.writeScoreFlag && !re ? (i(), ee(
|
|
5092
|
+
b.layout.writeScoreFlag && !re ? (i(), ee(Cl, {
|
|
5093
5093
|
key: 1,
|
|
5094
5094
|
info: b.info,
|
|
5095
5095
|
layout: b.layout
|
|
5096
5096
|
}, null, 8, ["info", "layout"])) : D("", !0)
|
|
5097
5097
|
], 6)) : D("", !0),
|
|
5098
|
-
(i(!0), u(N, null, le(re % 2 ? b.layout.backColumn : b.layout.column, (Ie, Ae) => (i(), ee(
|
|
5098
|
+
(i(!0), u(N, null, le(re % 2 ? b.layout.backColumn : b.layout.column, (Ie, Ae) => (i(), ee(Ja, {
|
|
5099
5099
|
ref_for: !0,
|
|
5100
|
-
ref: (
|
|
5100
|
+
ref: (Ve) => E(Ve, _(Ae, re)),
|
|
5101
5101
|
styleInfo: se(_(Ae, re), re),
|
|
5102
5102
|
column: b.layout.column,
|
|
5103
5103
|
currentColumn: _(Ae, re),
|
|
5104
5104
|
showColBorder: ie.value
|
|
5105
5105
|
}, {
|
|
5106
|
-
default:
|
|
5107
|
-
var
|
|
5106
|
+
default: Mt(() => {
|
|
5107
|
+
var Ve;
|
|
5108
5108
|
return [
|
|
5109
|
-
(i(!0), u(N, null, le(((
|
|
5110
|
-
var
|
|
5109
|
+
(i(!0), u(N, null, le(((Ve = l.value[_(Ae, re)]) == null ? void 0 : Ve.data) || [], (ke, qt) => {
|
|
5110
|
+
var kt;
|
|
5111
5111
|
return i(), u(N, null, [
|
|
5112
|
-
ke.isHidden ? D("", !0) : (i(), ee(
|
|
5112
|
+
ke.isHidden ? D("", !0) : (i(), ee(Ft, {
|
|
5113
5113
|
key: 0,
|
|
5114
5114
|
item: ke,
|
|
5115
5115
|
showColBorder: ie.value,
|
|
5116
|
-
isFirst: !re && !Ae && !
|
|
5116
|
+
isFirst: !re && !Ae && !qt,
|
|
5117
5117
|
layout: b.layout,
|
|
5118
|
-
isActive: ((
|
|
5118
|
+
isActive: ((kt = b.target.value) == null ? void 0 : kt.id) === ke.id,
|
|
5119
5119
|
onClick: (be) => we({ type: ke.problemType ? L(O).headline : L(O).headlineNotarea, value: ke }),
|
|
5120
5120
|
onDbclick: (be) => t("dbHeadLineClick", ke)
|
|
5121
5121
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5122
5122
|
ie.value ? (i(), u("div", {
|
|
5123
5123
|
key: 1,
|
|
5124
5124
|
class: oe([!ke.children.length && ke.problemType && "p-1 min-h-[2rem]", b.target.type === L(O).headline && b.target.value.id === ke.id && "active_headline"]),
|
|
5125
|
-
onClick:
|
|
5125
|
+
onClick: Ee((be) => we({ type: ke.problemType ? L(O).headline : L(O).headlineNotarea, value: ke }), ["stop"]),
|
|
5126
5126
|
onDblclick: (be) => t("dbHeadLineClick", ke)
|
|
5127
5127
|
}, [
|
|
5128
|
-
ae(
|
|
5128
|
+
ae(je, {
|
|
5129
5129
|
data: ke,
|
|
5130
5130
|
layout: b.layout,
|
|
5131
5131
|
target: b.target,
|
|
@@ -5137,8 +5137,8 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5137
5137
|
key: 0,
|
|
5138
5138
|
class: "border-t",
|
|
5139
5139
|
"data-block": L(Be)
|
|
5140
|
-
}, null, 8,
|
|
5141
|
-
], 42,
|
|
5140
|
+
}, null, 8, li)) : D("", !0)
|
|
5141
|
+
], 42, ai)) : (i(), ee(je, {
|
|
5142
5142
|
key: 2,
|
|
5143
5143
|
data: ke,
|
|
5144
5144
|
layout: b.layout,
|
|
@@ -5156,15 +5156,15 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5156
5156
|
], 64)) : D("", !0)
|
|
5157
5157
|
], 4))), 128))
|
|
5158
5158
|
]))
|
|
5159
|
-
], 8,
|
|
5159
|
+
], 8, ti))
|
|
5160
5160
|
], 6)
|
|
5161
5161
|
])
|
|
5162
5162
|
], 64);
|
|
5163
5163
|
};
|
|
5164
5164
|
}
|
|
5165
5165
|
});
|
|
5166
|
-
const
|
|
5166
|
+
const ri = /* @__PURE__ */ me(ni, [["__scopeId", "data-v-3cc4ec73"]]);
|
|
5167
5167
|
export {
|
|
5168
|
-
|
|
5169
|
-
|
|
5168
|
+
ii as Config,
|
|
5169
|
+
ri as default
|
|
5170
5170
|
};
|