alit-layout 1.1.31 → 1.1.33
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 +888 -893
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ne, computed as W, openBlock as
|
|
1
|
+
import { defineComponent as ne, computed as W, openBlock as r, 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 Ze, createVNode as ae, pushScopeId as qe, popScopeId as Ye, renderSlot as mt, onMounted as Ke, nextTick as lt, withModifiers as Ee, resolveComponent as Qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as qt, withDirectives as Ct, provide as Yt } from "vue";
|
|
2
2
|
const He = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
@@ -8,7 +8,7 @@ const He = {
|
|
|
8
8
|
choice_english: "LISTEN_AFTER_SELECTION",
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
|
-
},
|
|
11
|
+
}, Pt = {
|
|
12
12
|
...He,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
@@ -36,7 +36,7 @@ const He = {
|
|
|
36
36
|
another: "ADDITIONAL_QUESTION",
|
|
37
37
|
// 附加选做题
|
|
38
38
|
another_choice: "ADDITIONAL_CHOOSE_QUESTION"
|
|
39
|
-
},
|
|
39
|
+
}, Kt = {
|
|
40
40
|
// 文本
|
|
41
41
|
__text: "TXT",
|
|
42
42
|
// 文案
|
|
@@ -46,7 +46,7 @@ const He = {
|
|
|
46
46
|
// 非作答区(试题)
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
48
|
}, m = {
|
|
49
|
-
...
|
|
49
|
+
...Pt,
|
|
50
50
|
...We
|
|
51
51
|
}, Ge = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
@@ -85,7 +85,7 @@ const He = {
|
|
|
85
85
|
width: 1332,
|
|
86
86
|
height: 944
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, Ut = {
|
|
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
|
-
}, et = ["a3", "a3+", "8k", "b4"],
|
|
169
|
+
}, et = ["a3", "a3+", "8k", "b4"], yt = {
|
|
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
|
+
}, Vt = {
|
|
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
|
+
}, Mt = {
|
|
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
|
+
}, Xt = 10, Jt = {
|
|
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
|
+
}, Zt = {
|
|
506
506
|
a3: {
|
|
507
507
|
2: 1,
|
|
508
508
|
3: 1
|
|
@@ -539,41 +539,41 @@ const He = {
|
|
|
539
539
|
cdest: "cdest",
|
|
540
540
|
headlineNotarea: "headlineNotarea",
|
|
541
541
|
problemNotarea: "problemNotarea"
|
|
542
|
-
},
|
|
542
|
+
}, eo = [
|
|
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
|
+
}, to = [
|
|
550
550
|
{ name: "无", code: Se.none },
|
|
551
551
|
{ name: "座位号", code: Se.seat, value: 3 },
|
|
552
552
|
{ name: "短学号", code: Se.shortId, value: 4 }
|
|
553
|
-
],
|
|
553
|
+
], oo = [
|
|
554
554
|
{ name: "无", code: !1 },
|
|
555
555
|
{ name: "有", code: !0 }
|
|
556
|
-
],
|
|
556
|
+
], ao = [
|
|
557
557
|
{ name: "条码", code: Se.none },
|
|
558
558
|
{ name: "短学号", code: Se.shortId }
|
|
559
|
-
],
|
|
559
|
+
], dt = {
|
|
560
560
|
wide: "text",
|
|
561
561
|
local: "topic"
|
|
562
|
-
},
|
|
563
|
-
{ name: "整卷", code:
|
|
564
|
-
{ name: "大题", code:
|
|
562
|
+
}, lo = [
|
|
563
|
+
{ name: "整卷", code: dt.wide },
|
|
564
|
+
{ name: "大题", code: dt.local }
|
|
565
565
|
], je = {
|
|
566
566
|
system: "system",
|
|
567
567
|
second: "level_2",
|
|
568
568
|
three: "level_3"
|
|
569
|
-
},
|
|
569
|
+
}, no = [
|
|
570
570
|
{ name: "自增", code: je.system },
|
|
571
571
|
{ name: "二级", code: je.second },
|
|
572
572
|
{ name: "三级", code: je.three }
|
|
573
|
-
],
|
|
573
|
+
], so = [
|
|
574
574
|
{ name: "缩进", code: !0 },
|
|
575
575
|
{ name: "不缩进", code: !1 }
|
|
576
|
-
],
|
|
576
|
+
], At = [
|
|
577
577
|
{ name: "考号", code: "examNumFieldFlag", key: "examNumField" },
|
|
578
578
|
{ name: "姓名", code: "nameFieldFlag", key: "nameField" },
|
|
579
579
|
{ name: "班级", code: "classFieldFlag", key: "classField" },
|
|
@@ -583,24 +583,24 @@ const He = {
|
|
|
583
583
|
auto: "auto",
|
|
584
584
|
on: "on",
|
|
585
585
|
off: "off"
|
|
586
|
-
},
|
|
586
|
+
}, io = [
|
|
587
587
|
{ name: "自动", code: Xe.auto },
|
|
588
588
|
{ name: "开", code: Xe.on },
|
|
589
589
|
{ name: "关", code: Xe.off }
|
|
590
590
|
], tt = {
|
|
591
591
|
step: "step",
|
|
592
592
|
custom: "custom"
|
|
593
|
-
},
|
|
593
|
+
}, ro = [
|
|
594
594
|
{ name: "分段", code: tt.step },
|
|
595
595
|
{ name: "自编", code: tt.custom }
|
|
596
|
-
],
|
|
596
|
+
], co = [
|
|
597
597
|
{ name: "显示", code: !0 },
|
|
598
598
|
{ name: "隐藏", code: !1 }
|
|
599
599
|
], Je = {
|
|
600
600
|
custom: "less",
|
|
601
601
|
average: "ans",
|
|
602
602
|
averagefill: "opt"
|
|
603
|
-
},
|
|
603
|
+
}, uo = [
|
|
604
604
|
{ name: "按答案个数均分", code: Je.average },
|
|
605
605
|
{ name: "手动设置", code: Je.custom },
|
|
606
606
|
{ name: "按答案个数均分(错选不扣分)", code: Je.averagefill }
|
|
@@ -789,12 +789,12 @@ const He = {
|
|
|
789
789
|
synthesis_a: "polymerFlag",
|
|
790
790
|
synthesis_b: "scoreShowType"
|
|
791
791
|
}
|
|
792
|
-
},
|
|
792
|
+
}, Dt = {
|
|
793
793
|
article: {
|
|
794
794
|
// 文案边框控制
|
|
795
795
|
isShowBorder: "isShowBorder"
|
|
796
796
|
}
|
|
797
|
-
},
|
|
797
|
+
}, ho = {
|
|
798
798
|
base: [
|
|
799
799
|
{
|
|
800
800
|
type: "radio",
|
|
@@ -821,7 +821,7 @@ const He = {
|
|
|
821
821
|
]
|
|
822
822
|
}
|
|
823
823
|
]
|
|
824
|
-
},
|
|
824
|
+
}, po = {
|
|
825
825
|
base: {
|
|
826
826
|
// 解答题
|
|
827
827
|
[m.slove]: [
|
|
@@ -1647,28 +1647,28 @@ const He = {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
]
|
|
1649
1649
|
}
|
|
1650
|
-
},
|
|
1651
|
-
[
|
|
1650
|
+
}, mo = {
|
|
1651
|
+
[Kt.__cdest]: [
|
|
1652
1652
|
{
|
|
1653
1653
|
type: "radio",
|
|
1654
1654
|
label: "边框显示控制",
|
|
1655
|
-
key:
|
|
1655
|
+
key: Dt.article.isShowBorder,
|
|
1656
1656
|
option: [
|
|
1657
1657
|
{ name: "显示边框", code: !0 },
|
|
1658
1658
|
{ name: "隐藏边框", code: !1 }
|
|
1659
1659
|
]
|
|
1660
1660
|
}
|
|
1661
1661
|
]
|
|
1662
|
-
},
|
|
1662
|
+
}, yo = [
|
|
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
|
+
], _o = [
|
|
1669
1669
|
{ name: "正常", code: "normal" },
|
|
1670
1670
|
{ name: "粗体", code: "bold" }
|
|
1671
|
-
],
|
|
1671
|
+
], fo = [
|
|
1672
1672
|
{ name: "初号", code: "56px", alias: "l" },
|
|
1673
1673
|
{ name: "小初", code: "48px", alias: "sl" },
|
|
1674
1674
|
{ name: "一号", code: "34px", alias: "1" },
|
|
@@ -1733,13 +1733,13 @@ const He = {
|
|
|
1733
1733
|
code: "right_up",
|
|
1734
1734
|
value: "right_up"
|
|
1735
1735
|
}
|
|
1736
|
-
},
|
|
1736
|
+
}, Bt = {
|
|
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
|
+
}, go = {
|
|
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
|
+
}, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1753
1753
|
__proto__: null,
|
|
1754
|
-
ErrLayoutCode:
|
|
1755
|
-
MixNodeTag:
|
|
1756
|
-
bindInfoOption:
|
|
1757
|
-
column:
|
|
1758
|
-
columnMargin:
|
|
1759
|
-
defaultProblemLayout:
|
|
1754
|
+
ErrLayoutCode: go,
|
|
1755
|
+
MixNodeTag: Bt,
|
|
1756
|
+
bindInfoOption: At,
|
|
1757
|
+
column: Ut,
|
|
1758
|
+
columnMargin: Mt,
|
|
1759
|
+
defaultProblemLayout: ho,
|
|
1760
1760
|
fillSize: Fe,
|
|
1761
|
-
fontFamily:
|
|
1762
|
-
fontSize:
|
|
1763
|
-
fontWeight:
|
|
1764
|
-
formatConfig:
|
|
1761
|
+
fontFamily: yo,
|
|
1762
|
+
fontSize: fo,
|
|
1763
|
+
fontWeight: _o,
|
|
1764
|
+
formatConfig: Jt,
|
|
1765
1765
|
halfScoreType: Xe,
|
|
1766
|
-
halfScoreTypeOption:
|
|
1767
|
-
inlineNotAreaOption:
|
|
1768
|
-
layoutMode:
|
|
1766
|
+
halfScoreTypeOption: io,
|
|
1767
|
+
inlineNotAreaOption: co,
|
|
1768
|
+
layoutMode: eo,
|
|
1769
1769
|
lessScoreRule: Je,
|
|
1770
|
-
lessScoreRuleOption:
|
|
1771
|
-
otherLayout:
|
|
1772
|
-
otherLayoutKey:
|
|
1773
|
-
paddDiff:
|
|
1774
|
-
pageMargin:
|
|
1775
|
-
pagePadding:
|
|
1770
|
+
lessScoreRuleOption: uo,
|
|
1771
|
+
otherLayout: mo,
|
|
1772
|
+
otherLayoutKey: Dt,
|
|
1773
|
+
paddDiff: Vt,
|
|
1774
|
+
pageMargin: Xt,
|
|
1775
|
+
pagePadding: yt,
|
|
1776
1776
|
pagePointPosition: Qe,
|
|
1777
1777
|
pageSize: x,
|
|
1778
|
-
pageTitleBlockCol:
|
|
1778
|
+
pageTitleBlockCol: Zt,
|
|
1779
1779
|
paper: Ge,
|
|
1780
|
-
problemLayout:
|
|
1780
|
+
problemLayout: po,
|
|
1781
1781
|
problemLayoutKey: d,
|
|
1782
1782
|
problemLayoutVal: f,
|
|
1783
1783
|
scoreLineSize: ot,
|
|
1784
1784
|
scoreLineStyle: nt,
|
|
1785
1785
|
scoreLineType: tt,
|
|
1786
|
-
scoreLineTypeOption:
|
|
1787
|
-
seatBarOption:
|
|
1786
|
+
scoreLineTypeOption: ro,
|
|
1787
|
+
seatBarOption: oo,
|
|
1788
1788
|
seatType: Se,
|
|
1789
|
-
seatTypeBindOption:
|
|
1790
|
-
seatTypeOption:
|
|
1789
|
+
seatTypeBindOption: ao,
|
|
1790
|
+
seatTypeOption: to,
|
|
1791
1791
|
sheetColumnPad: Le,
|
|
1792
|
-
sheetItemColumnPad:
|
|
1792
|
+
sheetItemColumnPad: jt,
|
|
1793
1793
|
specialPaper: et,
|
|
1794
|
-
subIndentOption:
|
|
1795
|
-
subRange:
|
|
1796
|
-
subRangeOption:
|
|
1794
|
+
subIndentOption: so,
|
|
1795
|
+
subRange: dt,
|
|
1796
|
+
subRangeOption: lo,
|
|
1797
1797
|
subRule: je,
|
|
1798
|
-
subRuleOption:
|
|
1798
|
+
subRuleOption: no,
|
|
1799
1799
|
toolGroup: O
|
|
1800
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1800
|
+
}, Symbol.toStringTag, { value: "Module" })), _t = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), bo = "TF".split(""), vo = {
|
|
1801
1801
|
a4: "TYPE_A4",
|
|
1802
1802
|
a4x: "TYPE_A4",
|
|
1803
1803
|
a3: "TYPE_A3",
|
|
@@ -1875,7 +1875,7 @@ const He = {
|
|
|
1875
1875
|
// 选做题
|
|
1876
1876
|
[Ce.another_choice]: "TYPE_SINGLECHOICE"
|
|
1877
1877
|
// 附加选做题
|
|
1878
|
-
},
|
|
1878
|
+
}, wo = ["data-xine"], ko = ["data-xine"], xo = ["data-xine"], Co = ["data-xine"], So = ["data-xine"], xe = 20, $o = /* @__PURE__ */ ne({
|
|
1879
1879
|
__name: "point",
|
|
1880
1880
|
props: {
|
|
1881
1881
|
layout: {},
|
|
@@ -1892,7 +1892,7 @@ const He = {
|
|
|
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
|
-
})[c],
|
|
1895
|
+
})[c], i = () => ({
|
|
1896
1896
|
[Qe.left_down.code]: {
|
|
1897
1897
|
left: `${t.padding.left - xe + 100}px`,
|
|
1898
1898
|
bottom: `${t.padding.bottom - xe}px`
|
|
@@ -1909,51 +1909,51 @@ const He = {
|
|
|
1909
1909
|
b: {
|
|
1910
1910
|
bottom: `${t.padding.bottom - xe}px`
|
|
1911
1911
|
}
|
|
1912
|
-
},
|
|
1913
|
-
return { left: `${c *
|
|
1912
|
+
}, p = (x[t.layout.paper].width - t.padding.left - t.padding.right + xe) / (et.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
1913
|
+
return { left: `${c * p + 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` },
|
|
1916
|
-
return { top: `${y *
|
|
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` }, p = ["", "l", "r"].findIndex((M) => M === c);
|
|
1916
|
+
return { top: `${y * p + t.padding.top - 10}px`, width: "11px", ...n };
|
|
1917
1917
|
};
|
|
1918
1918
|
return (c, y) => {
|
|
1919
1919
|
var n;
|
|
1920
|
-
return
|
|
1921
|
-
(
|
|
1922
|
-
key:
|
|
1920
|
+
return r(), u(N, null, [
|
|
1921
|
+
(r(), u(N, null, le(["lt", "rt", "lb", "rb"], (p) => k("span", {
|
|
1922
|
+
key: p,
|
|
1923
1923
|
class: "absolute w-8 bg-black point_item",
|
|
1924
|
-
style: Z(l(
|
|
1925
|
-
"data-xine": L(I).point +
|
|
1926
|
-
}, null, 12,
|
|
1927
|
-
(
|
|
1928
|
-
(
|
|
1929
|
-
key:
|
|
1924
|
+
style: Z(l(p)),
|
|
1925
|
+
"data-xine": L(I).point + p
|
|
1926
|
+
}, null, 12, wo)), 64)),
|
|
1927
|
+
(r(!0), u(N, null, le(o.value, (p) => (r(), u(N, { key: p }, [
|
|
1928
|
+
(r(), u(N, null, le(["t", "b"], (M) => k("span", {
|
|
1929
|
+
key: M,
|
|
1930
1930
|
class: "absolute bg-black w-8 point_item",
|
|
1931
|
-
style: Z(a(
|
|
1932
|
-
"data-xine": L(I).point +
|
|
1933
|
-
}, null, 12,
|
|
1931
|
+
style: Z(a(p, M)),
|
|
1932
|
+
"data-xine": L(I).point + M
|
|
1933
|
+
}, null, 12, ko)), 64))
|
|
1934
1934
|
], 64))), 128)),
|
|
1935
|
-
(
|
|
1936
|
-
key:
|
|
1935
|
+
(r(), u(N, null, le(["l", "r"], (p) => k("span", {
|
|
1936
|
+
key: p,
|
|
1937
1937
|
class: "absolute bg-black h-8",
|
|
1938
|
-
style: Z(s(
|
|
1939
|
-
"data-xine": L(I).point +
|
|
1940
|
-
}, null, 12,
|
|
1938
|
+
style: Z(s(p)),
|
|
1939
|
+
"data-xine": L(I).point + p
|
|
1940
|
+
}, null, 12, xo)), 64)),
|
|
1941
1941
|
k("p", {
|
|
1942
1942
|
class: "absolute leading-none text-0",
|
|
1943
|
-
style: Z(
|
|
1943
|
+
style: Z(i()),
|
|
1944
1944
|
"data-xine": L(I).page
|
|
1945
1945
|
}, [
|
|
1946
|
-
(
|
|
1947
|
-
key:
|
|
1946
|
+
(r(!0), u(N, null, le(c.currentPage + 1, (p, M) => (r(), u("span", {
|
|
1947
|
+
key: p,
|
|
1948
1948
|
class: "inline-block bg-black mx-2 page_item",
|
|
1949
|
-
"data-xine": L(I).page_item +
|
|
1950
|
-
}, null, 8,
|
|
1951
|
-
], 12,
|
|
1952
|
-
c.currentPage % 2 ? D("", !0) : (
|
|
1949
|
+
"data-xine": L(I).page_item + M
|
|
1950
|
+
}, null, 8, So))), 128))
|
|
1951
|
+
], 12, Co),
|
|
1952
|
+
c.currentPage % 2 ? D("", !0) : (r(), 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(Ge).find((
|
|
1956
|
+
}, "提示:本卷" + te((n = L(Ge).find((p) => p.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` })
|
|
@@ -1964,10 +1964,10 @@ const He = {
|
|
|
1964
1964
|
});
|
|
1965
1965
|
const me = (e, t) => {
|
|
1966
1966
|
const o = e.__vccOpts || e;
|
|
1967
|
-
for (const [l,
|
|
1968
|
-
o[l] =
|
|
1967
|
+
for (const [l, i] of t)
|
|
1968
|
+
o[l] = i;
|
|
1969
1969
|
return o;
|
|
1970
|
-
},
|
|
1970
|
+
}, To = /* @__PURE__ */ me($o, [["__scopeId", "data-v-2c1c50bb"]]), Io = { class: "flex-1" }, Lo = ["type", "placeholder", "maxlength", "value"], Fo = {
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
1973
1973
|
}, st = /* @__PURE__ */ ne({
|
|
@@ -1985,7 +1985,7 @@ const me = (e, t) => {
|
|
|
1985
1985
|
},
|
|
1986
1986
|
emits: ["change", "input", "focus", "blur"],
|
|
1987
1987
|
setup(e, { emit: t }) {
|
|
1988
|
-
const o = e, l = V(o.value),
|
|
1988
|
+
const o = e, l = V(o.value), i = V(!1);
|
|
1989
1989
|
De(() => o.value, () => {
|
|
1990
1990
|
l.value = o.value;
|
|
1991
1991
|
});
|
|
@@ -1996,14 +1996,14 @@ const me = (e, t) => {
|
|
|
1996
1996
|
l.value = o.value;
|
|
1997
1997
|
}, 400);
|
|
1998
1998
|
}, c = (n) => {
|
|
1999
|
-
l.value = n.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value),
|
|
1999
|
+
l.value = n.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value), i.value = !0;
|
|
2000
2000
|
}, y = () => {
|
|
2001
|
-
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value),
|
|
2001
|
+
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
|
|
2002
2002
|
};
|
|
2003
|
-
return (n,
|
|
2004
|
-
class: oe(["flex-1 flex items-center border rounded-lg", n.autoLine ?
|
|
2003
|
+
return (n, p) => (r(), u("div", {
|
|
2004
|
+
class: oe(["flex-1 flex items-center border rounded-lg", n.autoLine ? i.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", Io, [
|
|
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,9 +2014,9 @@ const me = (e, t) => {
|
|
|
2014
2014
|
onChange: s,
|
|
2015
2015
|
onFocus: c,
|
|
2016
2016
|
onBlur: y
|
|
2017
|
-
}, null, 42,
|
|
2017
|
+
}, null, 42, Lo)
|
|
2018
2018
|
]),
|
|
2019
|
-
n.unit ? (
|
|
2019
|
+
n.unit ? (r(), u("span", Fo, te(n.unit), 1)) : D("", !0)
|
|
2020
2020
|
], 2));
|
|
2021
2021
|
}
|
|
2022
2022
|
}), Eo = /* @__PURE__ */ ne({
|
|
@@ -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(() => yt[o.layout.mode][o.layout.paper]), i = W(() => ({
|
|
2031
2031
|
right: `${l.value.right + 97}px`,
|
|
2032
2032
|
bottom: `${l.value.bottom - 25}px`
|
|
2033
2033
|
}));
|
|
2034
|
-
return (a, s) => (
|
|
2034
|
+
return (a, s) => (r(), ee(st, {
|
|
2035
2035
|
class: "absolute w-72 text-sm",
|
|
2036
2036
|
value: a.info.slogan,
|
|
2037
2037
|
maxLength: 12,
|
|
@@ -2039,11 +2039,11 @@ const me = (e, t) => {
|
|
|
2039
2039
|
size: "small",
|
|
2040
2040
|
autoLine: "",
|
|
2041
2041
|
dir: "right",
|
|
2042
|
-
style: Z(
|
|
2042
|
+
style: Z(i.value),
|
|
2043
2043
|
onChange: s[0] || (s[0] = (c) => t("change", { slogin: c }))
|
|
2044
2044
|
}, null, 8, ["value", "style"]));
|
|
2045
2045
|
}
|
|
2046
|
-
}),
|
|
2046
|
+
}), Po = ["width", "height"], Mo = ["xlink:href"], Ao = /* @__PURE__ */ ne({
|
|
2047
2047
|
__name: "index",
|
|
2048
2048
|
props: {
|
|
2049
2049
|
width: { default: 1.5 },
|
|
@@ -2053,31 +2053,31 @@ const me = (e, t) => {
|
|
|
2053
2053
|
emits: ["click"],
|
|
2054
2054
|
setup(e, { emit: t }) {
|
|
2055
2055
|
const o = e, l = W(() => `#icon-${o.name}`);
|
|
2056
|
-
return (
|
|
2056
|
+
return (i, a) => (r(), u("span", {
|
|
2057
2057
|
class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
|
|
2058
2058
|
onClick: a[0] || (a[0] = (s) => t("click"))
|
|
2059
2059
|
}, [
|
|
2060
|
-
(
|
|
2061
|
-
width:
|
|
2062
|
-
height: (
|
|
2060
|
+
(r(), u("svg", {
|
|
2061
|
+
width: i.width + "rem",
|
|
2062
|
+
height: (i.height || i.width) + "rem"
|
|
2063
2063
|
}, [
|
|
2064
|
-
k("use", { "xlink:href": l.value }, null, 8,
|
|
2065
|
-
], 8,
|
|
2064
|
+
k("use", { "xlink:href": l.value }, null, 8, Mo)
|
|
2065
|
+
], 8, Po))
|
|
2066
2066
|
]));
|
|
2067
2067
|
}
|
|
2068
2068
|
});
|
|
2069
|
-
const ve = /* @__PURE__ */ me(
|
|
2069
|
+
const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { class: "flex items-center text-black text-sm h-6 mb-2" }, Bo = {
|
|
2070
2070
|
key: 0,
|
|
2071
2071
|
class: "flex items-center"
|
|
2072
|
-
},
|
|
2072
|
+
}, No = { class: "px-2 ml-2 border leading-none" }, Oo = /* @__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) => (
|
|
2080
|
-
t.layout.secrecyFlag ? (
|
|
2079
|
+
return (t, o) => (r(), u("div", Do, [
|
|
2080
|
+
t.layout.secrecyFlag ? (r(), u("p", Bo, [
|
|
2081
2081
|
Ze("绝密"),
|
|
2082
2082
|
ae(ve, {
|
|
2083
2083
|
name: "fiveArrow",
|
|
@@ -2086,10 +2086,10 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2086
2086
|
}),
|
|
2087
2087
|
Ze("启用前")
|
|
2088
2088
|
])) : D("", !0),
|
|
2089
|
-
k("p",
|
|
2089
|
+
k("p", No, "ID:" + te(t.code), 1)
|
|
2090
2090
|
]));
|
|
2091
2091
|
}
|
|
2092
|
-
}),
|
|
2092
|
+
}), zo = ["innerHTML"], Re = /* @__PURE__ */ ne({
|
|
2093
2093
|
__name: "index",
|
|
2094
2094
|
props: {
|
|
2095
2095
|
value: {},
|
|
@@ -2098,31 +2098,31 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2098
2098
|
},
|
|
2099
2099
|
emits: ["change"],
|
|
2100
2100
|
setup(e, { emit: t }) {
|
|
2101
|
-
const o = e, l = (
|
|
2102
|
-
t("change",
|
|
2101
|
+
const o = e, l = (i) => {
|
|
2102
|
+
t("change", i.target.innerHTML, o.name);
|
|
2103
2103
|
};
|
|
2104
|
-
return (
|
|
2105
|
-
innerHTML:
|
|
2104
|
+
return (i, a) => (r(), u("div", {
|
|
2105
|
+
innerHTML: i.value,
|
|
2106
2106
|
contenteditable: "",
|
|
2107
2107
|
onBlur: l
|
|
2108
|
-
}, null, 40,
|
|
2108
|
+
}, null, 40, zo));
|
|
2109
2109
|
}
|
|
2110
|
-
}),
|
|
2110
|
+
}), Ro = { class: "flex w-full" }, Ho = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, Qo = {
|
|
2111
2111
|
key: 0,
|
|
2112
2112
|
class: "flex mx-4 min-w-[70px]"
|
|
2113
|
-
},
|
|
2113
|
+
}, qo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Yo = {
|
|
2114
2114
|
key: 1,
|
|
2115
2115
|
class: "flex items-center w-40 mx-4"
|
|
2116
|
-
},
|
|
2116
|
+
}, Ko = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "时间:", -1), Uo = /* @__PURE__ */ k("span", null, "分钟", -1), Vo = {
|
|
2117
2117
|
key: 2,
|
|
2118
2118
|
class: "flex mx-4 min-w-[80px]"
|
|
2119
|
-
},
|
|
2119
|
+
}, jo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "命题人:", -1), Xo = {
|
|
2120
2120
|
key: 3,
|
|
2121
2121
|
class: "flex mx-4 min-w-[80px]"
|
|
2122
|
-
},
|
|
2122
|
+
}, Jo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "审核人:", -1), Zo = {
|
|
2123
2123
|
key: 4,
|
|
2124
2124
|
class: "flex items-center mx-4"
|
|
2125
|
-
},
|
|
2125
|
+
}, ea = /* @__PURE__ */ k("span", null, "总", -1), ta = { key: 1 }, oa = { key: 3 }, aa = { key: 1 }, la = { key: 3 }, na = /* @__PURE__ */ k("span", null, ")", -1), sa = { key: 1 }, ia = /* @__PURE__ */ ne({
|
|
2126
2126
|
__name: "title",
|
|
2127
2127
|
props: {
|
|
2128
2128
|
info: {},
|
|
@@ -2132,39 +2132,39 @@ 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)),
|
|
2136
|
-
return (s, c) => (
|
|
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)), i = 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 === nt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2136
|
+
return (s, c) => (r(), u("div", Ro, [
|
|
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",
|
|
2142
|
+
}, null, 8, Ho),
|
|
2143
|
+
k("div", Wo, [
|
|
2144
2144
|
ae(Re, {
|
|
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 ? (
|
|
2150
|
+
s.layout.secTitleFlag ? (r(), ee(Re, {
|
|
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 ? (
|
|
2159
|
-
|
|
2157
|
+
k("div", Go, [
|
|
2158
|
+
s.layout.examExtentFlag ? (r(), u("p", Qo, [
|
|
2159
|
+
qo,
|
|
2160
2160
|
ae(Re, {
|
|
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 ? (
|
|
2167
|
-
|
|
2166
|
+
s.layout.examTimeFlag ? (r(), u("p", Yo, [
|
|
2167
|
+
Ko,
|
|
2168
2168
|
ae(st, {
|
|
2169
2169
|
value: s.info.time,
|
|
2170
2170
|
class: "text-center",
|
|
@@ -2174,66 +2174,66 @@ 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
|
+
Uo
|
|
2178
2178
|
])) : D("", !0),
|
|
2179
|
-
s.layout.authorFlag ? (
|
|
2180
|
-
|
|
2179
|
+
s.layout.authorFlag ? (r(), u("p", Vo, [
|
|
2180
|
+
jo,
|
|
2181
2181
|
ae(Re, {
|
|
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 ? (
|
|
2188
|
-
|
|
2187
|
+
s.layout.reviewerFlag ? (r(), u("p", Xo, [
|
|
2188
|
+
Jo,
|
|
2189
2189
|
ae(Re, {
|
|
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 ? (
|
|
2196
|
-
|
|
2197
|
-
a.value ? (
|
|
2195
|
+
s.layout.totalScoreFlag ? (r(), u("p", Zo, [
|
|
2196
|
+
ea,
|
|
2197
|
+
a.value ? (r(), ee(ve, {
|
|
2198
2198
|
key: 0,
|
|
2199
2199
|
name: a.value,
|
|
2200
2200
|
class: "p-0 -translate-y-[1px]"
|
|
2201
|
-
}, null, 8, ["name"])) : (
|
|
2201
|
+
}, null, 8, ["name"])) : (r(), u("span", ta, "分")),
|
|
2202
2202
|
k("span", null, ":" + te(l.value + (s.layout.writeScoreFlag ? s.info.writeScore : 0)), 1),
|
|
2203
|
-
a.value ? (
|
|
2203
|
+
a.value ? (r(), ee(ve, {
|
|
2204
2204
|
key: 2,
|
|
2205
2205
|
name: a.value,
|
|
2206
2206
|
class: "p-0 -translate-y-[1px]"
|
|
2207
|
-
}, null, 8, ["name"])) : (
|
|
2208
|
-
s.layout.writeScoreFlag ? (
|
|
2207
|
+
}, null, 8, ["name"])) : (r(), u("span", oa, "分")),
|
|
2208
|
+
s.layout.writeScoreFlag ? (r(), u(N, { key: 4 }, [
|
|
2209
2209
|
k("span", null, "(试题" + te(l.value), 1),
|
|
2210
|
-
a.value ? (
|
|
2210
|
+
a.value ? (r(), ee(ve, {
|
|
2211
2211
|
key: 0,
|
|
2212
2212
|
name: a.value,
|
|
2213
2213
|
class: "p-0 -translate-y-[1px]"
|
|
2214
|
-
}, null, 8, ["name"])) : (
|
|
2214
|
+
}, null, 8, ["name"])) : (r(), u("span", aa, "分")),
|
|
2215
2215
|
k("span", null, "+卷面" + te(s.info.writeScore || 0), 1),
|
|
2216
|
-
a.value ? (
|
|
2216
|
+
a.value ? (r(), ee(ve, {
|
|
2217
2217
|
key: 2,
|
|
2218
2218
|
name: a.value,
|
|
2219
2219
|
class: "p-0 -translate-y-[1px]"
|
|
2220
|
-
}, null, 8, ["name"])) : (
|
|
2221
|
-
|
|
2220
|
+
}, null, 8, ["name"])) : (r(), u("span", la, "分")),
|
|
2221
|
+
na
|
|
2222
2222
|
], 64)) : D("", !0),
|
|
2223
|
-
|
|
2224
|
-
k("span", null, ";附加题:" + te(
|
|
2225
|
-
a.value ? (
|
|
2223
|
+
i.value ? (r(), u(N, { key: 5 }, [
|
|
2224
|
+
k("span", null, ";附加题:" + te(i.value), 1),
|
|
2225
|
+
a.value ? (r(), ee(ve, {
|
|
2226
2226
|
key: 0,
|
|
2227
2227
|
name: a.value,
|
|
2228
2228
|
class: "p-0 -translate-y-[1px]"
|
|
2229
|
-
}, null, 8, ["name"])) : (
|
|
2229
|
+
}, null, 8, ["name"])) : (r(), u("span", sa, "分"))
|
|
2230
2230
|
], 64)) : D("", !0)
|
|
2231
2231
|
])) : D("", !0)
|
|
2232
2232
|
])
|
|
2233
2233
|
])
|
|
2234
2234
|
]));
|
|
2235
2235
|
}
|
|
2236
|
-
}),
|
|
2236
|
+
}), St = /* @__PURE__ */ ne({
|
|
2237
2237
|
__name: "examInfoNone",
|
|
2238
2238
|
props: {
|
|
2239
2239
|
extent: {},
|
|
@@ -2242,10 +2242,10 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2242
2242
|
emits: ["change"],
|
|
2243
2243
|
setup(e, { emit: t }) {
|
|
2244
2244
|
const o = ["examNumField", "examRoomField", "scoreField"];
|
|
2245
|
-
return (l,
|
|
2245
|
+
return (l, i) => (r(), u("ul", {
|
|
2246
2246
|
class: oe(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2247
2247
|
}, [
|
|
2248
|
-
(
|
|
2248
|
+
(r(), u(N, null, le(o, (a, s) => k("li", {
|
|
2249
2249
|
key: a,
|
|
2250
2250
|
class: oe(["flex flex-1 min-w-[12rem]", l.isRow && s && "ml-2"])
|
|
2251
2251
|
}, [
|
|
@@ -2260,14 +2260,14 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2260
2260
|
], 2)), 64))
|
|
2261
2261
|
], 2));
|
|
2262
2262
|
}
|
|
2263
|
-
}),
|
|
2263
|
+
}), ra = ["data-xine"], ca = { class: "flex items-center" }, da = ["data-xine"], ua = ["data-xine"], ha = ["data-xine"], pa = /* @__PURE__ */ ne({
|
|
2264
2264
|
__name: "examInfoSeat",
|
|
2265
2265
|
setup(e) {
|
|
2266
|
-
return (t, o) => (
|
|
2266
|
+
return (t, o) => (r(), 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", ca, [
|
|
2271
2271
|
ae(ve, {
|
|
2272
2272
|
class: "pt-1",
|
|
2273
2273
|
name: "fiveArrow"
|
|
@@ -2278,29 +2278,29 @@ const ve = /* @__PURE__ */ me(Do, [["__scopeId", "data-v-ed2907dd"]]), Bo = { cl
|
|
|
2278
2278
|
class: "flex-1 flex flex-col",
|
|
2279
2279
|
"data-xine": L(I).en_num
|
|
2280
2280
|
}, [
|
|
2281
|
-
(
|
|
2281
|
+
(r(), u(N, null, le(3, (l, i) => k("p", {
|
|
2282
2282
|
key: l,
|
|
2283
2283
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2284
2284
|
"data-xine": L(I).en_num_group
|
|
2285
2285
|
}, [
|
|
2286
|
-
(
|
|
2286
|
+
(r(), u(N, null, le(10, (a) => k("span", {
|
|
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, ha)), 64))
|
|
2291
|
+
], 8, ua)), 64))
|
|
2292
|
+
], 8, da)
|
|
2293
|
+
], 8, ra));
|
|
2294
2294
|
}
|
|
2295
2295
|
});
|
|
2296
|
-
const
|
|
2296
|
+
const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["data-xine"], _a = { class: "flex items-center border-r tracking-[5px] text_dir" }, fa = ["data-xine"], ga = ["data-xine"], ba = ["data-xine"], va = /* @__PURE__ */ ne({
|
|
2297
2297
|
__name: "examInfoShort",
|
|
2298
2298
|
setup(e) {
|
|
2299
|
-
return (t, o) => (
|
|
2299
|
+
return (t, o) => (r(), 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", _a, [
|
|
2304
2304
|
ae(ve, {
|
|
2305
2305
|
class: "px-1 pt-1",
|
|
2306
2306
|
name: "fiveArrow"
|
|
@@ -2311,22 +2311,22 @@ const ya = /* @__PURE__ */ me(ma, [["__scopeId", "data-v-91b25fab"]]), _a = ["da
|
|
|
2311
2311
|
class: "flex-1 flex flex-col",
|
|
2312
2312
|
"data-xine": L(I).en_num
|
|
2313
2313
|
}, [
|
|
2314
|
-
(
|
|
2314
|
+
(r(), u(N, null, le(4, (l, i) => k("p", {
|
|
2315
2315
|
key: l,
|
|
2316
|
-
class: oe(["flex-1 flex items-center text-0 px-1",
|
|
2316
|
+
class: oe(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
|
|
2317
2317
|
"data-xine": L(I).en_num_group
|
|
2318
2318
|
}, [
|
|
2319
|
-
(
|
|
2319
|
+
(r(), u(N, null, le(10, (a) => k("span", {
|
|
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, ba)), 64))
|
|
2324
|
+
], 10, ga)), 64))
|
|
2325
|
+
], 8, fa)
|
|
2326
|
+
], 8, ya));
|
|
2327
2327
|
}
|
|
2328
2328
|
});
|
|
2329
|
-
const
|
|
2329
|
+
const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @__PURE__ */ ne({
|
|
2330
2330
|
__name: "examInfoBase",
|
|
2331
2331
|
props: {
|
|
2332
2332
|
extent: {},
|
|
@@ -2335,10 +2335,10 @@ const Ot = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2335
2335
|
emits: ["change"],
|
|
2336
2336
|
setup(e, { emit: t }) {
|
|
2337
2337
|
const o = ["nameField", "classField", "seatField"];
|
|
2338
|
-
return (l,
|
|
2338
|
+
return (l, i) => (r(), u("ul", {
|
|
2339
2339
|
class: oe(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2340
2340
|
}, [
|
|
2341
|
-
(
|
|
2341
|
+
(r(), u(N, null, le(o, (a, s) => k("li", {
|
|
2342
2342
|
key: a,
|
|
2343
2343
|
class: oe(["flex flex-1", l.isRow && s && "ml-2"])
|
|
2344
2344
|
}, [
|
|
@@ -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
|
+
}), ka = (e) => (qe("data-v-4d37cd56"), e = e(), Ye(), e), xa = ["data-xine"], Ca = /* @__PURE__ */ ka(() => /* @__PURE__ */ k("span", { class: "font-bold tips" }, "贴条码区域", -1)), Sa = [
|
|
2357
|
+
Ca
|
|
2358
|
+
], $a = /* @__PURE__ */ ne({
|
|
2359
2359
|
__name: "examInfo",
|
|
2360
2360
|
props: {
|
|
2361
2361
|
layout: {},
|
|
@@ -2364,46 +2364,46 @@ const Ot = /* @__PURE__ */ me(wa, [["__scopeId", "data-v-96e8d41d"]]), ka = /* @
|
|
|
2364
2364
|
},
|
|
2365
2365
|
emits: ["change"],
|
|
2366
2366
|
setup(e, { emit: t }) {
|
|
2367
|
-
const o = e, l = W(() => o.layout.seatType === Se.none || !o.layout.seatBar),
|
|
2368
|
-
return (s, c) => s.isBindFlag ? D("", !0) : (
|
|
2367
|
+
const o = e, l = W(() => o.layout.seatType === Se.none || !o.layout.seatBar), i = W(() => o.layout.column >= 3 && l.value), a = W(() => o.layout.column >= 3 && o.layout.seatType !== Se.none && o.layout.seatBar);
|
|
2368
|
+
return (s, c) => s.isBindFlag ? D("", !0) : (r(), u("div", {
|
|
2369
2369
|
key: 0,
|
|
2370
|
-
class: oe(["flex justify-between", (a.value ||
|
|
2370
|
+
class: oe(["flex justify-between", (a.value || i.value) && "flex-wrap"])
|
|
2371
2371
|
}, [
|
|
2372
|
-
|
|
2372
|
+
i.value ? (r(), ee(St, {
|
|
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(wa, {
|
|
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
|
-
!
|
|
2383
|
+
!i.value && l.value ? (r(), ee(St, {
|
|
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 ? (
|
|
2389
|
-
s.layout.seatBar ? (
|
|
2388
|
+
s.layout.seatType === L(Se).seat ? (r(), ee(ma, { key: 2 })) : s.layout.seatType === L(Se).shortId ? (r(), ee(Nt, { key: 3 })) : D("", !0),
|
|
2389
|
+
s.layout.seatBar ? (r(), 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
|
+
}, Sa, 8, xa)) : D("", !0)
|
|
2394
2394
|
], 2));
|
|
2395
2395
|
}
|
|
2396
2396
|
});
|
|
2397
|
-
const
|
|
2397
|
+
const Ta = /* @__PURE__ */ me($a, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (qe("data-v-936c144e"), e = e(), Ye(), e), Ia = {
|
|
2398
2398
|
key: 0,
|
|
2399
2399
|
class: "flex border mt-2 red_sheet"
|
|
2400
|
-
},
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
],
|
|
2400
|
+
}, La = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Fa = { class: "flex-1 overflow-hidden" }, Ea = { class: "flex items-center flex-1 pl-2" }, Pa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), Ma = { class: "flex items-center justify-center text-black" }, Aa = ["data-xine"], Da = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "[", -1)), Ba = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", { class: "ml-4" }, "]", -1)), Na = [
|
|
2401
|
+
Da,
|
|
2402
|
+
Ba
|
|
2403
|
+
], Oa = /* @__PURE__ */ ze(() => /* @__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)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ra = /* @__PURE__ */ ne({
|
|
2407
2407
|
__name: "notice",
|
|
2408
2408
|
props: {
|
|
2409
2409
|
layout: {},
|
|
@@ -2423,65 +2423,65 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
|
|
|
2423
2423
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2424
2424
|
];
|
|
2425
2425
|
});
|
|
2426
|
-
return (l,
|
|
2427
|
-
l.layout.noteFlag ? (
|
|
2428
|
-
|
|
2429
|
-
k("div",
|
|
2430
|
-
(
|
|
2426
|
+
return (l, i) => (r(), u(N, null, [
|
|
2427
|
+
l.layout.noteFlag ? (r(), u("div", Ia, [
|
|
2428
|
+
La,
|
|
2429
|
+
k("div", Fa, [
|
|
2430
|
+
(r(!0), u(N, null, le(o.value, (a) => (r(), u("p", {
|
|
2431
2431
|
key: a,
|
|
2432
2432
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2433
2433
|
}, te(a), 1))), 128))
|
|
2434
2434
|
])
|
|
2435
2435
|
])) : D("", !0),
|
|
2436
|
-
l.layout.lackFlag ? (
|
|
2436
|
+
l.layout.lackFlag ? (r(), u("div", {
|
|
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
2440
|
k("p", Ea, [
|
|
2441
|
-
|
|
2442
|
-
k("span",
|
|
2441
|
+
Pa,
|
|
2442
|
+
k("span", Ma, [
|
|
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
|
+
}, Na, 8, Aa)
|
|
2448
2448
|
])
|
|
2449
2449
|
]),
|
|
2450
|
-
|
|
2450
|
+
Oa
|
|
2451
2451
|
], 2)) : D("", !0),
|
|
2452
|
-
|
|
2452
|
+
za
|
|
2453
2453
|
], 64));
|
|
2454
2454
|
}
|
|
2455
2455
|
});
|
|
2456
|
-
const
|
|
2457
|
-
let
|
|
2456
|
+
const Ha = /* @__PURE__ */ me(Ra, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Wa = (e, t = "", o = !0, l = "children") => {
|
|
2457
|
+
let i = [];
|
|
2458
2458
|
const a = (s) => {
|
|
2459
|
-
(s[l] || []).length ? (o &&
|
|
2459
|
+
(s[l] || []).length ? (o && i.push(t ? s[t] : s[l]), s[l].forEach((c) => a(c))) : i.push(t ? s[t] : s);
|
|
2460
2460
|
};
|
|
2461
|
-
return e.forEach((s) => a(s)),
|
|
2461
|
+
return e.forEach((s) => a(s)), i.flat(5);
|
|
2462
2462
|
};
|
|
2463
|
-
function
|
|
2463
|
+
function Ot(e) {
|
|
2464
2464
|
if (e < 0 || e > 99)
|
|
2465
2465
|
throw Error("下标超限");
|
|
2466
2466
|
const t = "零一二三四五六七八九".split("");
|
|
2467
|
-
return [...Array(100)].map((l,
|
|
2468
|
-
const a = Math.floor(
|
|
2467
|
+
return [...Array(100)].map((l, i) => {
|
|
2468
|
+
const a = Math.floor(i / t.length), s = i % t.length;
|
|
2469
2469
|
return a ? `${a > 1 ? t[a] : ""}十${s ? t[s] : ""}` : t[s];
|
|
2470
2470
|
})[e + 1];
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function $t(e) {
|
|
2473
2473
|
return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
|
|
2474
2474
|
}
|
|
2475
|
-
const
|
|
2475
|
+
const Ga = {
|
|
2476
2476
|
key: 0,
|
|
2477
2477
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2478
|
-
},
|
|
2478
|
+
}, Qa = /* @__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), qa = { class: "flex-1" }, Ya = /* @__PURE__ */ k("p", { class: "flex-1 border-t" }, null, -1), Ka = /* @__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), Ua = /* @__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,
|
|
2493
|
-
|
|
2494
|
-
(
|
|
2492
|
+
return (l, i) => l.layout.scoreFlag ? (r(), u("ul", Ga, [
|
|
2493
|
+
Qa,
|
|
2494
|
+
(r(!0), u(N, null, le(o.value, (a, s) => (r(), 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", qa, te(L(Ot)(s)), 1),
|
|
2499
|
+
Ya
|
|
2500
2500
|
]))), 128)),
|
|
2501
|
-
|
|
2501
|
+
Ka
|
|
2502
2502
|
])) : D("", !0);
|
|
2503
2503
|
}
|
|
2504
|
-
}),
|
|
2504
|
+
}), Va = /* @__PURE__ */ ne({
|
|
2505
2505
|
__name: "columnDom",
|
|
2506
2506
|
props: {
|
|
2507
2507
|
column: {},
|
|
@@ -2510,15 +2510,15 @@ const Qa = {
|
|
|
2510
2510
|
styleInfo: {}
|
|
2511
2511
|
},
|
|
2512
2512
|
setup(e, { expose: t }) {
|
|
2513
|
-
const o = e, l = V(),
|
|
2514
|
-
t({ col: l, colView:
|
|
2513
|
+
const o = e, l = V(), i = V();
|
|
2514
|
+
t({ col: l, colView: i });
|
|
2515
2515
|
const a = W(() => {
|
|
2516
|
-
const { top: y, width: n, height:
|
|
2516
|
+
const { top: y, width: n, height: p, left: M } = o.styleInfo;
|
|
2517
2517
|
return {
|
|
2518
2518
|
top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
|
|
2519
|
-
left: `${parseFloat(
|
|
2519
|
+
left: `${parseFloat(M) - Le.left}px`,
|
|
2520
2520
|
width: `${parseFloat(n) + Le.left + Le.right}px`,
|
|
2521
|
-
height: `${parseFloat(
|
|
2521
|
+
height: `${parseFloat(p) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
|
|
2522
2522
|
};
|
|
2523
2523
|
}), s = W(() => ({
|
|
2524
2524
|
left: `${Le.left - 1}px`,
|
|
@@ -2526,8 +2526,8 @@ const Qa = {
|
|
|
2526
2526
|
bottom: `${Le.bottom - 1}px`,
|
|
2527
2527
|
right: `${Le.right - 1}px`
|
|
2528
2528
|
})), c = W(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2529
|
-
return (y, n) => (
|
|
2530
|
-
y.showColBorder ? (
|
|
2529
|
+
return (y, n) => (r(), u(N, null, [
|
|
2530
|
+
y.showColBorder ? (r(), u("div", {
|
|
2531
2531
|
key: 0,
|
|
2532
2532
|
class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
|
|
2533
2533
|
style: Z(a.value)
|
|
@@ -2540,7 +2540,7 @@ const Qa = {
|
|
|
2540
2540
|
k("div", {
|
|
2541
2541
|
class: "absolute overflow-hidden",
|
|
2542
2542
|
ref_key: "colView",
|
|
2543
|
-
ref:
|
|
2543
|
+
ref: i,
|
|
2544
2544
|
style: Z(y.styleInfo)
|
|
2545
2545
|
}, [
|
|
2546
2546
|
k("div", {
|
|
@@ -2549,18 +2549,18 @@ const Qa = {
|
|
|
2549
2549
|
class: "overflow-hidden __col__",
|
|
2550
2550
|
style: Z({ height: y.styleInfo.contentHeight })
|
|
2551
2551
|
}, [
|
|
2552
|
-
|
|
2552
|
+
mt(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(Va, [["__scopeId", "data-v-e102e805"]]), Xa = (e) => (qe("data-v-01785ba3"), e = e(), Ye(), e), Ja = { class: "flex-1 flex items-center flex-wrap relative" }, Za = {
|
|
2559
2559
|
key: 0,
|
|
2560
2560
|
class: "flex-1 mr-4 mb-4 min-w-[30%] max-w-[35%]"
|
|
2561
|
-
},
|
|
2562
|
-
|
|
2563
|
-
],
|
|
2561
|
+
}, el = ["data-xine"], tl = /* @__PURE__ */ Xa(() => /* @__PURE__ */ k("span", null, "贴条码区域", -1)), ol = [
|
|
2562
|
+
tl
|
|
2563
|
+
], al = ["data-xine"], ll = /* @__PURE__ */ ne({
|
|
2564
2564
|
__name: "bind",
|
|
2565
2565
|
props: {
|
|
2566
2566
|
currentPage: {},
|
|
@@ -2572,47 +2572,47 @@ const Xa = /* @__PURE__ */ me(ja, [["__scopeId", "data-v-e102e805"]]), Ja = (e)
|
|
|
2572
2572
|
},
|
|
2573
2573
|
setup(e) {
|
|
2574
2574
|
const t = V();
|
|
2575
|
-
return (o, l) => o.isBindFlag ? (
|
|
2575
|
+
return (o, l) => o.isBindFlag ? (r(), u("div", {
|
|
2576
2576
|
key: 0,
|
|
2577
2577
|
style: Z({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2578
2578
|
class: oe([o.currentPage % 2 && "right_view"]),
|
|
2579
2579
|
ref_key: "view",
|
|
2580
2580
|
ref: t
|
|
2581
2581
|
}, [
|
|
2582
|
-
o.currentPage % 2 ? (
|
|
2582
|
+
o.currentPage % 2 ? (r(), u("div", {
|
|
2583
2583
|
key: 0,
|
|
2584
2584
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2585
2585
|
style: Z({ width: `${o.height - 20}px`, height: `${o.width}px` })
|
|
2586
|
-
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (
|
|
2586
|
+
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), u("div", {
|
|
2587
2587
|
key: 1,
|
|
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",
|
|
2592
|
-
(
|
|
2593
|
-
a === 2 && o.bindInfo.length === 5 ? (
|
|
2591
|
+
k("div", Ja, [
|
|
2592
|
+
(r(!0), u(N, null, le(o.bindInfo, (i, a) => (r(), u(N, { key: i }, [
|
|
2593
|
+
a === 2 && o.bindInfo.length === 5 ? (r(), u("span", Za)) : 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
|
-
}, te(
|
|
2596
|
+
}, te(i), 3)
|
|
2597
2597
|
], 64))), 128))
|
|
2598
2598
|
]),
|
|
2599
|
-
o.bindSeatType === L(Se).none ? (
|
|
2599
|
+
o.bindSeatType === L(Se).none ? (r(), u("div", {
|
|
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
|
+
}, ol, 8, el)) : o.bindSeatType === L(Se).shortId ? (r(), ee(Nt, {
|
|
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, al)
|
|
2611
2611
|
], 4))
|
|
2612
2612
|
], 6)) : D("", !0);
|
|
2613
2613
|
}
|
|
2614
2614
|
});
|
|
2615
|
-
const
|
|
2615
|
+
const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", Tt = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */ ne({
|
|
2616
2616
|
__name: "simple",
|
|
2617
2617
|
props: {
|
|
2618
2618
|
item: {},
|
|
@@ -2620,10 +2620,10 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2620
2620
|
},
|
|
2621
2621
|
setup(e) {
|
|
2622
2622
|
const t = e, o = ["right", "half_right", "wrong"], l = W(() => {
|
|
2623
|
-
const
|
|
2624
|
-
return [
|
|
2623
|
+
const i = t.item.score;
|
|
2624
|
+
return [i, Math.round(i / 2 * 100) / 100, 0];
|
|
2625
2625
|
});
|
|
2626
|
-
return (
|
|
2626
|
+
return (i, a) => (r(), u("div", {
|
|
2627
2627
|
class: "flex border-x-2 border-y divide-x divide-solid",
|
|
2628
2628
|
"data-block": L(Te),
|
|
2629
2629
|
"data-xine": L(I).score
|
|
@@ -2632,21 +2632,21 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2632
2632
|
class: "flex h-full divide-x divide-solid",
|
|
2633
2633
|
"data-xine": L(I).score_base
|
|
2634
2634
|
}, [
|
|
2635
|
-
(
|
|
2635
|
+
(r(!0), u(N, null, le(l.value, (s, c) => (r(), u("li", {
|
|
2636
2636
|
class: "flex items-center justify-center relative score_line",
|
|
2637
|
-
style: Z({ width: `${L(ot)[
|
|
2637
|
+
style: Z({ width: `${L(ot)[i.layout.scoreLineSize].value}px` }),
|
|
2638
2638
|
"data-xine": L(I).score_item
|
|
2639
2639
|
}, [
|
|
2640
|
-
k("span",
|
|
2640
|
+
k("span", pl, 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, hl))), 256))
|
|
2646
|
+
], 8, ul)
|
|
2647
|
+
], 8, dl));
|
|
2648
2648
|
}
|
|
2649
|
-
}),
|
|
2649
|
+
}), yl = ["data-block", "data-xine"], _l = ["data-xine"], fl = ["data-xine"], it = /* @__PURE__ */ ne({
|
|
2650
2650
|
__name: "index",
|
|
2651
2651
|
props: {
|
|
2652
2652
|
item: {},
|
|
@@ -2654,30 +2654,30 @@ 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),
|
|
2657
|
+
const t = e, o = V(), l = V(!1), i = V(!1), a = V(!1), s = V([]), c = W(() => t.layout.scoreAddStars === nt.star.code);
|
|
2658
2658
|
De(() => [t.item.score], () => y()), Ke(() => {
|
|
2659
2659
|
y();
|
|
2660
2660
|
});
|
|
2661
2661
|
const y = () => {
|
|
2662
2662
|
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || lt(() => {
|
|
2663
|
-
let
|
|
2663
|
+
let p = [];
|
|
2664
2664
|
if (t.item.scoreLineType === tt.custom)
|
|
2665
|
-
|
|
2665
|
+
p = [[...t.item.customScore, 0]];
|
|
2666
2666
|
else if (t.item.scoreStep)
|
|
2667
|
-
|
|
2667
|
+
p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((M) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * M)).reverse());
|
|
2668
2668
|
else {
|
|
2669
|
-
const
|
|
2670
|
-
l.value =
|
|
2669
|
+
const M = o.value.offsetWidth, h = ot[t.layout.scoreLineSize].value + 1;
|
|
2670
|
+
l.value = M - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((P) => P && P * 10).reverse()), p.push([...Array(10).keys()].reverse()), a.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
|
|
2671
2671
|
}
|
|
2672
|
-
t.item.hasHalfScore &&
|
|
2672
|
+
t.item.hasHalfScore && p.push([0.5]), s.value = p, i.value = !!p.flat().find((M) => `${M}`.length > 3);
|
|
2673
2673
|
});
|
|
2674
|
-
}, n = (
|
|
2675
|
-
return (
|
|
2676
|
-
|
|
2674
|
+
}, n = (p) => t.item.hasHalfScore ? [I.score_half, I.score_base, I.score_tenbit][s.value.length - p - 1] : [I.score_base, I.score_tenbit][s.value.length - p - 1];
|
|
2675
|
+
return (p, M) => p.layout.handReadFlag ? (r(), u(N, { key: 0 }, [
|
|
2676
|
+
p.layout.simpleScoreBarFlag && !p.static ? (r(), ee(ml, {
|
|
2677
2677
|
key: 0,
|
|
2678
|
-
item:
|
|
2679
|
-
layout:
|
|
2680
|
-
}, null, 8, ["item", "layout"])) : (
|
|
2678
|
+
item: p.item,
|
|
2679
|
+
layout: p.layout
|
|
2680
|
+
}, null, 8, ["item", "layout"])) : (r(), u("div", {
|
|
2681
2681
|
key: 1,
|
|
2682
2682
|
ref_key: "view",
|
|
2683
2683
|
ref: o,
|
|
@@ -2685,87 +2685,87 @@ const sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-01785ba3"]]), Te = "MC5
|
|
|
2685
2685
|
"data-block": L(Te),
|
|
2686
2686
|
"data-xine": L(I).score
|
|
2687
2687
|
}, [
|
|
2688
|
-
(
|
|
2688
|
+
(r(!0), u(N, null, le(s.value, (h, P) => (r(), u("ul", {
|
|
2689
2689
|
class: "flex divide-x divide-solid",
|
|
2690
|
-
"data-xine": n(
|
|
2690
|
+
"data-xine": n(P)
|
|
2691
2691
|
}, [
|
|
2692
|
-
(
|
|
2692
|
+
(r(!0), u(N, null, le(h, (z) => (r(), u("li", {
|
|
2693
2693
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2694
|
-
style: Z({ width: `${L(ot)[
|
|
2694
|
+
style: Z({ width: `${L(ot)[p.layout.scoreLineSize].value}px` }),
|
|
2695
2695
|
"data-xine": z.toString() ? L(I).score_item : ""
|
|
2696
2696
|
}, [
|
|
2697
2697
|
k("span", {
|
|
2698
|
-
class: oe(["whitespace-nowrap", c.value && "origin-right",
|
|
2699
|
-
}, te(
|
|
2700
|
-
c.value && z.toString().length ? (
|
|
2698
|
+
class: oe(["whitespace-nowrap", c.value && "origin-right", i.value && "scale-75"])
|
|
2699
|
+
}, te(p.layout.minusFlag && z.toString().length && !c.value ? "-" : "") + te(z), 3),
|
|
2700
|
+
c.value && z.toString().length ? (r(), ee(ve, {
|
|
2701
2701
|
key: 0,
|
|
2702
2702
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2703
|
-
name:
|
|
2704
|
-
width:
|
|
2703
|
+
name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2704
|
+
width: i.value ? 0.9 : 1.2
|
|
2705
2705
|
}, null, 8, ["name", "width"])) : D("", !0)
|
|
2706
|
-
], 12,
|
|
2707
|
-
], 8,
|
|
2708
|
-
], 10,
|
|
2706
|
+
], 12, fl))), 256))
|
|
2707
|
+
], 8, _l))), 256))
|
|
2708
|
+
], 10, yl))
|
|
2709
2709
|
], 64)) : D("", !0);
|
|
2710
2710
|
}
|
|
2711
|
-
}),
|
|
2711
|
+
}), zt = (e) => (qe("data-v-a8dbd3b0"), e = e(), Ye(), e), gl = ["data-xine"], bl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), vl = /* @__PURE__ */ zt(() => /* @__PURE__ */ k("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), wl = /* @__PURE__ */ ne({
|
|
2712
2712
|
__name: "writeScore",
|
|
2713
2713
|
props: {
|
|
2714
2714
|
info: {},
|
|
2715
2715
|
layout: {}
|
|
2716
2716
|
},
|
|
2717
2717
|
setup(e) {
|
|
2718
|
-
return (t, o) => (
|
|
2718
|
+
return (t, o) => (r(), u("div", {
|
|
2719
2719
|
class: "flex items-center mb-2",
|
|
2720
2720
|
"data-xine": L(I).write_view
|
|
2721
2721
|
}, [
|
|
2722
|
+
bl,
|
|
2722
2723
|
vl,
|
|
2723
|
-
wl,
|
|
2724
2724
|
ae(it, {
|
|
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, gl));
|
|
2730
2730
|
}
|
|
2731
2731
|
});
|
|
2732
|
-
const
|
|
2732
|
+
const kl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-a8dbd3b0"]]), xl = ["innerHTML"], Cl = /* @__PURE__ */ ne({
|
|
2733
2733
|
__name: "index",
|
|
2734
2734
|
props: {
|
|
2735
2735
|
data: {}
|
|
2736
2736
|
},
|
|
2737
2737
|
setup(e) {
|
|
2738
2738
|
const t = e;
|
|
2739
|
-
return (o, l) => (
|
|
2739
|
+
return (o, l) => (r(), u("div", {
|
|
2740
2740
|
innerHTML: t.data,
|
|
2741
2741
|
class: "base-problem-font problem-base"
|
|
2742
|
-
}, null, 8,
|
|
2742
|
+
}, null, 8, xl));
|
|
2743
2743
|
}
|
|
2744
2744
|
});
|
|
2745
|
-
const Oe = /* @__PURE__ */ me(
|
|
2745
|
+
const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["data-tag", "data-block"], $l = /* @__PURE__ */ ne({
|
|
2746
2746
|
__name: "notArea",
|
|
2747
2747
|
props: {
|
|
2748
2748
|
item: {}
|
|
2749
2749
|
},
|
|
2750
2750
|
setup(e) {
|
|
2751
|
-
return (t, o) => (
|
|
2751
|
+
return (t, o) => (r(), 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(ft)
|
|
2755
2755
|
}, [
|
|
2756
2756
|
ae(Oe, {
|
|
2757
2757
|
"data-content": t.item.id,
|
|
2758
2758
|
data: t.item.content
|
|
2759
2759
|
}, null, 8, ["data-content", "data"])
|
|
2760
|
-
], 8,
|
|
2760
|
+
], 8, Sl));
|
|
2761
2761
|
}
|
|
2762
|
-
}),
|
|
2762
|
+
}), Tl = (e) => (qe("data-v-8b8ee819"), e = e(), Ye(), e), Il = ["data-tag", "data-block"], Ll = {
|
|
2763
2763
|
key: 0,
|
|
2764
2764
|
class: "flex-shrink-0"
|
|
2765
|
-
},
|
|
2765
|
+
}, Fl = { key: 0 }, El = {
|
|
2766
2766
|
key: 1,
|
|
2767
2767
|
class: "indent-2"
|
|
2768
|
-
},
|
|
2768
|
+
}, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */ ne({
|
|
2769
2769
|
__name: "index",
|
|
2770
2770
|
props: {
|
|
2771
2771
|
item: {},
|
|
@@ -2776,89 +2776,89 @@ 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),
|
|
2779
|
+
const o = e, l = V(!1), i = 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(Wa(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((p) => p.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
|
|
2780
2780
|
return Ke(() => {
|
|
2781
|
-
o.isFirst && o.item.problemType && (
|
|
2782
|
-
}), (n,
|
|
2781
|
+
o.isFirst && o.item.problemType && (i.value.offsetHeight / parseFloat(window.getComputedStyle(i.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
2782
|
+
}), (n, p) => n.item.problemType ? (r(), 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:
|
|
2785
|
+
onClick: p[2] || (p[2] = Ee((M) => t("click", n.item), ["stop"])),
|
|
2786
2786
|
ref_key: "view",
|
|
2787
|
-
ref:
|
|
2787
|
+
ref: i,
|
|
2788
2788
|
"data-tag": n.item.__tag__,
|
|
2789
2789
|
"data-block": L(Te),
|
|
2790
|
-
onDblclick:
|
|
2790
|
+
onDblclick: p[3] || (p[3] = Ee((M) => t("dbclick", n.item), ["stop"]))
|
|
2791
2791
|
}, [
|
|
2792
|
-
!n.layout.listIndexFlag && n.item.sub ? (
|
|
2792
|
+
!n.layout.listIndexFlag && n.item.sub ? (r(), u("span", Ll, te(L(Ot)(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
|
-
n.item.desc ? (
|
|
2797
|
-
n.layout.scoreTipFlag ? (
|
|
2796
|
+
n.item.desc ? (r(), u("span", Fl, "(" + te(n.item.desc) + ")", 1)) : D("", !0),
|
|
2797
|
+
n.layout.scoreTipFlag ? (r(), u("span", El, "(共" + te(c.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : D("", !0)
|
|
2798
2798
|
]),
|
|
2799
|
-
a.value || s.value ? (
|
|
2800
|
-
a.value ? (
|
|
2799
|
+
a.value || s.value ? (r(), u("div", Pl, [
|
|
2800
|
+
a.value ? (r(), u("p", Ml, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), u("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
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
|
-
(
|
|
2808
|
-
k("span", null, te(
|
|
2806
|
+
Bl,
|
|
2807
|
+
(r(!0), u(N, null, le(y.value, (M, h) => (r(), u("span", Nl, [
|
|
2808
|
+
k("span", null, te(M), 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, Ol)
|
|
2813
2813
|
]))), 256))
|
|
2814
|
-
], 8,
|
|
2814
|
+
], 8, Dl)
|
|
2815
2815
|
])) : D("", !0)
|
|
2816
2816
|
])
|
|
2817
|
-
], 42,
|
|
2817
|
+
], 42, Il)) : (r(), ee($l, {
|
|
2818
2818
|
key: 0,
|
|
2819
2819
|
class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
|
|
2820
2820
|
item: n.item,
|
|
2821
|
-
onClick:
|
|
2822
|
-
onDblclick:
|
|
2821
|
+
onClick: p[0] || (p[0] = Ee((M) => t("click", n.item), ["stop"])),
|
|
2822
|
+
onDblclick: p[1] || (p[1] = Ee((M) => t("dbclick", n.item), ["stop"]))
|
|
2823
2823
|
}, null, 8, ["class", "item"]));
|
|
2824
2824
|
}
|
|
2825
2825
|
});
|
|
2826
|
-
const
|
|
2827
|
-
function
|
|
2826
|
+
const It = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Rl = {};
|
|
2827
|
+
function Hl(e, t) {
|
|
2828
2828
|
return null;
|
|
2829
2829
|
}
|
|
2830
|
-
const
|
|
2830
|
+
const Wl = /* @__PURE__ */ me(Rl, [["render", Hl]]), Gl = ["data-block"], Ql = ["data-xine"], ql = /* @__PURE__ */ ne({
|
|
2831
2831
|
__name: "sheet",
|
|
2832
2832
|
props: {
|
|
2833
2833
|
item: {},
|
|
2834
2834
|
layout: {}
|
|
2835
2835
|
},
|
|
2836
2836
|
setup(e) {
|
|
2837
|
-
return (t, o) => (
|
|
2837
|
+
return (t, o) => (r(), u("div", {
|
|
2838
2838
|
class: "flex items-center red_sheet",
|
|
2839
2839
|
"data-block": L(Te)
|
|
2840
2840
|
}, [
|
|
2841
|
-
(
|
|
2842
|
-
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(
|
|
2841
|
+
(r(!0), u(N, null, le(t.item.optList, (l, i) => (r(), u("span", {
|
|
2842
|
+
class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(ut)[i]) && "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
|
-
"data-xine": L(I).fill +
|
|
2844
|
+
"data-xine": L(I).fill + i
|
|
2845
2845
|
}, [
|
|
2846
2846
|
ae(ve, {
|
|
2847
2847
|
width: 1,
|
|
2848
|
-
name: L(
|
|
2848
|
+
name: L(ut)[i]
|
|
2849
2849
|
}, null, 8, ["name"])
|
|
2850
|
-
], 14,
|
|
2851
|
-
], 8,
|
|
2850
|
+
], 14, Ql))), 256))
|
|
2851
|
+
], 8, Gl));
|
|
2852
2852
|
}
|
|
2853
|
-
}),
|
|
2854
|
-
function
|
|
2853
|
+
}), Yl = {};
|
|
2854
|
+
function Kl(e, t) {
|
|
2855
2855
|
return null;
|
|
2856
2856
|
}
|
|
2857
|
-
const
|
|
2858
|
-
|
|
2859
|
-
],
|
|
2860
|
-
|
|
2861
|
-
],
|
|
2857
|
+
const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = ["data-xine"], Xl = ["data-xine"], Jl = ["data-xine"], Zl = /* @__PURE__ */ k("span", { class: "text-sm scale-75" }, "T", -1), en = [
|
|
2858
|
+
Zl
|
|
2859
|
+
], tn = ["data-xine"], on = /* @__PURE__ */ k("span", { class: "text-sm scale-75" }, "F", -1), an = [
|
|
2860
|
+
on
|
|
2861
|
+
], ln = /* @__PURE__ */ ne({
|
|
2862
2862
|
__name: "sheet",
|
|
2863
2863
|
props: {
|
|
2864
2864
|
item: {},
|
|
@@ -2869,11 +2869,11 @@ const Vl = /* @__PURE__ */ me(Kl, [["render", Ul]]), jl = ["data-block"], Xl = [
|
|
|
2869
2869
|
width: `${Fe[t.layout.fillSize].value + 1}px`,
|
|
2870
2870
|
height: `${Fe[t.layout.fillSize].height + 1}px`
|
|
2871
2871
|
}));
|
|
2872
|
-
return (l,
|
|
2872
|
+
return (l, i) => (r(), u("div", {
|
|
2873
2873
|
class: "flex red_sheet",
|
|
2874
2874
|
"data-block": L(Te)
|
|
2875
2875
|
}, [
|
|
2876
|
-
l.item.style[L(d)[l.layout.mode].decide_a] === L(f).decide_1 ? (
|
|
2876
|
+
l.item.style[L(d)[l.layout.mode].decide_a] === L(f).decide_1 ? (r(), u(N, { key: 0 }, [
|
|
2877
2877
|
k("span", {
|
|
2878
2878
|
class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
2879
2879
|
style: Z(o.value),
|
|
@@ -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,
|
|
2897
|
-
], 64)) : (
|
|
2896
|
+
], 14, Xl)
|
|
2897
|
+
], 64)) : (r(), 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
|
+
}, en, 14, Jl),
|
|
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
|
+
}, an, 14, tn)
|
|
2908
2908
|
], 64))
|
|
2909
|
-
], 8,
|
|
2909
|
+
], 8, Vl));
|
|
2910
2910
|
}
|
|
2911
|
-
}),
|
|
2912
|
-
function
|
|
2911
|
+
}), nn = {};
|
|
2912
|
+
function sn(e, t) {
|
|
2913
2913
|
return null;
|
|
2914
2914
|
}
|
|
2915
|
-
const
|
|
2915
|
+
const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-xine"], dn = {
|
|
2916
2916
|
key: 0,
|
|
2917
2917
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
2918
|
-
},
|
|
2918
|
+
}, un = { key: 1 }, hn = /* @__PURE__ */ ne({
|
|
2919
2919
|
__name: "index",
|
|
2920
2920
|
props: {
|
|
2921
2921
|
item: {},
|
|
@@ -2924,24 +2924,24 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2924
2924
|
},
|
|
2925
2925
|
setup(e) {
|
|
2926
2926
|
const t = e, o = W(() => t.layout.scoreAddStars === nt.star.code);
|
|
2927
|
-
return (l,
|
|
2927
|
+
return (l, i) => l.layout.handReadFlag ? (r(), 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 ? (
|
|
2933
|
+
l.showScoreCn ? (r(), u("span", dn, [
|
|
2934
2934
|
k("span", null, te(o.value ? "" : "-") + te(l.item.score), 1),
|
|
2935
|
-
o.value ? (
|
|
2935
|
+
o.value ? (r(), 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
|
-
})) : (
|
|
2940
|
+
})) : (r(), u("span", un, "分"))
|
|
2941
2941
|
])) : D("", !0)
|
|
2942
|
-
], 8,
|
|
2942
|
+
], 8, cn)) : D("", !0);
|
|
2943
2943
|
}
|
|
2944
|
-
}),
|
|
2944
|
+
}), pn = ["data-xine"], mn = /* @__PURE__ */ ne({
|
|
2945
2945
|
__name: "sheet",
|
|
2946
2946
|
props: {
|
|
2947
2947
|
item: {},
|
|
@@ -2949,13 +2949,13 @@ const cn = /* @__PURE__ */ me(sn, [["render", rn]]), dn = ["data-block", "data-x
|
|
|
2949
2949
|
},
|
|
2950
2950
|
setup(e) {
|
|
2951
2951
|
const t = e;
|
|
2952
|
-
return (o, l) => (
|
|
2952
|
+
return (o, l) => (r(), u(N, null, [
|
|
2953
2953
|
k("div", {
|
|
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 ? (
|
|
2957
|
+
}, null, 12, pn),
|
|
2958
|
+
o.layout.handReadFlag ? (r(), ee(hn, {
|
|
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
|
+
}), yn = {};
|
|
2967
|
+
function _n(e, t) {
|
|
2968
2968
|
return null;
|
|
2969
2969
|
}
|
|
2970
|
-
const
|
|
2970
|
+
const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = { class: "flex-1 flex justify-end overflow-hidden" }, vn = /* @__PURE__ */ ne({
|
|
2971
2971
|
__name: "sheet",
|
|
2972
2972
|
props: {
|
|
2973
2973
|
item: {},
|
|
@@ -2975,161 +2975,161 @@ const gn = /* @__PURE__ */ me(_n, [["render", fn]]), bn = ["data-block"], vn = {
|
|
|
2975
2975
|
isFirst: { type: Boolean }
|
|
2976
2976
|
},
|
|
2977
2977
|
setup(e) {
|
|
2978
|
-
return (t, o) => (
|
|
2978
|
+
return (t, o) => (r(), u("div", {
|
|
2979
2979
|
class: oe(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
2980
2980
|
}, [
|
|
2981
|
-
t.item.chunk ? D("", !0) : (
|
|
2981
|
+
t.item.chunk ? D("", !0) : (r(), u("div", {
|
|
2982
2982
|
key: 0,
|
|
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",
|
|
2986
|
+
mt(t.$slots, "default"),
|
|
2987
|
+
k("div", bn, [
|
|
2988
2988
|
ae(it, {
|
|
2989
2989
|
item: t.item,
|
|
2990
2990
|
layout: t.layout
|
|
2991
2991
|
}, null, 8, ["item", "layout"])
|
|
2992
2992
|
])
|
|
2993
|
-
], 8,
|
|
2993
|
+
], 8, gn)),
|
|
2994
2994
|
ae(Oe, {
|
|
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
|
+
}), wn = {};
|
|
3001
|
+
function kn(e, t) {
|
|
3002
3002
|
return null;
|
|
3003
3003
|
}
|
|
3004
|
-
const
|
|
3004
|
+
const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */ k("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), Sn = /* @__PURE__ */ ne({
|
|
3005
3005
|
__name: "sheet",
|
|
3006
3006
|
props: {
|
|
3007
3007
|
item: {},
|
|
3008
3008
|
layout: {}
|
|
3009
3009
|
},
|
|
3010
3010
|
setup(e) {
|
|
3011
|
-
return (t, o) => (
|
|
3012
|
-
|
|
3011
|
+
return (t, o) => (r(), u(N, null, [
|
|
3012
|
+
Cn,
|
|
3013
3013
|
ae(it, {
|
|
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
|
+
}), $n = {};
|
|
3020
|
+
function Tn(e, t) {
|
|
3021
3021
|
return null;
|
|
3022
3022
|
}
|
|
3023
|
-
const
|
|
3024
|
-
function
|
|
3023
|
+
const In = /* @__PURE__ */ me($n, [["render", Tn]]), Ln = {};
|
|
3024
|
+
function Fn(e, t) {
|
|
3025
3025
|
return null;
|
|
3026
3026
|
}
|
|
3027
|
-
const En = /* @__PURE__ */ me(
|
|
3028
|
-
function
|
|
3027
|
+
const En = /* @__PURE__ */ me(Ln, [["render", Fn]]), Pn = {};
|
|
3028
|
+
function Mn(e, t) {
|
|
3029
3029
|
return null;
|
|
3030
3030
|
}
|
|
3031
|
-
const
|
|
3032
|
-
function
|
|
3031
|
+
const An = /* @__PURE__ */ me(Pn, [["render", Mn]]), Dn = {};
|
|
3032
|
+
function Bn(e, t) {
|
|
3033
3033
|
return null;
|
|
3034
3034
|
}
|
|
3035
|
-
const
|
|
3036
|
-
function
|
|
3035
|
+
const Nn = /* @__PURE__ */ me(Dn, [["render", Bn]]), On = {};
|
|
3036
|
+
function zn(e, t) {
|
|
3037
3037
|
return null;
|
|
3038
3038
|
}
|
|
3039
|
-
const
|
|
3039
|
+
const Rn = /* @__PURE__ */ me(On, [["render", zn]]), Hn = ["data-viewid"], Wn = ["data-block"], Gn = { class: "flex-1 flex justify-end overflow-hidden" }, Qn = ["data-block", "data-size"], qn = ["data-block"], Yn = /* @__PURE__ */ ne({
|
|
3040
3040
|
__name: "sheet",
|
|
3041
3041
|
props: {
|
|
3042
3042
|
item: {},
|
|
3043
3043
|
layout: {}
|
|
3044
3044
|
},
|
|
3045
3045
|
setup(e) {
|
|
3046
|
-
const t = e, o = V(0), l = V({}),
|
|
3047
|
-
const
|
|
3048
|
-
return
|
|
3046
|
+
const t = e, o = V(0), l = V({}), i = V(), a = V(), s = V([]), c = W(() => {
|
|
3047
|
+
const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, M.value.length, 0);
|
|
3048
|
+
return h ? Math.ceil(h / (o.value || h)) : 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
|
+
})), p = W(() => ({
|
|
3053
3053
|
width: `${y.value}px`
|
|
3054
|
-
})),
|
|
3054
|
+
})), M = W(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3055
3055
|
return Ke(() => {
|
|
3056
3056
|
if (!t.item.artBlock)
|
|
3057
3057
|
return;
|
|
3058
3058
|
lt(() => {
|
|
3059
|
-
o.value = Math.floor(
|
|
3060
|
-
if (!
|
|
3059
|
+
o.value = Math.floor(i.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3060
|
+
if (!i.value)
|
|
3061
3061
|
return;
|
|
3062
|
-
const X =
|
|
3062
|
+
const X = i.value.getBoundingClientRect(), A = a.value[0].getBoundingClientRect();
|
|
3063
3063
|
l.value = {
|
|
3064
3064
|
left: `${A.left - X.left}px`,
|
|
3065
3065
|
top: `${A.top - X.top}px`
|
|
3066
3066
|
};
|
|
3067
3067
|
}, 20);
|
|
3068
3068
|
});
|
|
3069
|
-
const
|
|
3070
|
-
s.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((X) => (X + 1) * j).concat(
|
|
3071
|
-
}), (
|
|
3069
|
+
const h = parseInt(t.item.style[d[t.layout.mode].art_c]), P = t.item.style[d[t.layout.mode].art_e], z = Math.floor(h / P), j = Math.round(z / (t.item.style[d[t.layout.mode].art_d] || 1) - 0.01) * P;
|
|
3070
|
+
s.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((X) => (X + 1) * j).concat(h / P < 2 ? P : h).filter((X) => X);
|
|
3071
|
+
}), (h, P) => (r(), u("div", {
|
|
3072
3072
|
class: "w-full relative min-h-[10rem]",
|
|
3073
3073
|
ref_key: "view",
|
|
3074
|
-
ref:
|
|
3075
|
-
"data-viewid":
|
|
3074
|
+
ref: i,
|
|
3075
|
+
"data-viewid": h.item.id
|
|
3076
3076
|
}, [
|
|
3077
|
-
|
|
3077
|
+
h.item.chunk ? D("", !0) : (r(), u("div", {
|
|
3078
3078
|
key: 0,
|
|
3079
3079
|
class: "flex items-center mt-1 mb-4",
|
|
3080
3080
|
"data-block": L(Te)
|
|
3081
3081
|
}, [
|
|
3082
|
-
|
|
3083
|
-
k("div",
|
|
3082
|
+
mt(h.$slots, "default"),
|
|
3083
|
+
k("div", Gn, [
|
|
3084
3084
|
ae(it, {
|
|
3085
|
-
item:
|
|
3086
|
-
layout:
|
|
3085
|
+
item: h.item,
|
|
3086
|
+
layout: h.layout
|
|
3087
3087
|
}, null, 8, ["item", "layout"])
|
|
3088
3088
|
])
|
|
3089
|
-
], 8,
|
|
3090
|
-
|
|
3091
|
-
|
|
3089
|
+
], 8, Wn)),
|
|
3090
|
+
h.item.artBlock ? (r(), u(N, { key: 1 }, [
|
|
3091
|
+
h.item.beforeArt && !h.item.startAnswerLen ? (r(), ee(Oe, {
|
|
3092
3092
|
key: 0,
|
|
3093
|
-
data:
|
|
3094
|
-
"data-bart":
|
|
3093
|
+
data: h.item.beforeArt,
|
|
3094
|
+
"data-bart": h.item.id,
|
|
3095
3095
|
class: "indent-[2em]"
|
|
3096
3096
|
}, null, 8, ["data", "data-bart"])) : D("", !0),
|
|
3097
|
-
(
|
|
3097
|
+
(r(!0), u(N, null, le(c.value, (z, j) => (r(), u("p", {
|
|
3098
3098
|
ref_for: !0,
|
|
3099
3099
|
ref_key: "line",
|
|
3100
3100
|
ref: a,
|
|
3101
3101
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3102
3102
|
"data-block": L(Te),
|
|
3103
|
-
"data-size":
|
|
3103
|
+
"data-size": h.item.startAnswerLen + (j + 1) * o.value,
|
|
3104
3104
|
style: Z(n.value)
|
|
3105
3105
|
}, [
|
|
3106
|
-
(
|
|
3107
|
-
class: oe([
|
|
3108
|
-
style: Z(
|
|
3109
|
-
}, te(
|
|
3110
|
-
(
|
|
3111
|
-
|
|
3106
|
+
(r(!0), u(N, null, le(o.value, (X, A) => (r(), u("span", {
|
|
3107
|
+
class: oe([M.value[j * o.value + A] && "flex items-center justify-center"]),
|
|
3108
|
+
style: Z(p.value)
|
|
3109
|
+
}, te(M.value[j * o.value + A] || ""), 7))), 256)),
|
|
3110
|
+
(r(!0), u(N, null, le(s.value, (X) => (r(), u(N, null, [
|
|
3111
|
+
h.item.startAnswerLen + j * o.value < X && h.item.startAnswerLen + (j + 1) * o.value >= X ? (r(), u("span", {
|
|
3112
3112
|
key: 0,
|
|
3113
3113
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3114
|
-
style: Z({ left: `${(X -
|
|
3114
|
+
style: Z({ left: `${(X - h.item.startAnswerLen) % o.value * y.value}px` }),
|
|
3115
3115
|
"data-block": L(Be)
|
|
3116
|
-
}, te(X), 13,
|
|
3116
|
+
}, te(X), 13, qn)) : D("", !0)
|
|
3117
3117
|
], 64))), 256))
|
|
3118
|
-
], 12,
|
|
3119
|
-
|
|
3118
|
+
], 12, Qn))), 256)),
|
|
3119
|
+
h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (r(), ee(Oe, {
|
|
3120
3120
|
key: 1,
|
|
3121
|
-
data:
|
|
3122
|
-
"data-aart":
|
|
3121
|
+
data: h.item.afterArt,
|
|
3122
|
+
"data-aart": h.item.id,
|
|
3123
3123
|
class: "mt-2 indent-[2em]"
|
|
3124
3124
|
}, null, 8, ["data", "data-aart"])) : D("", !0)
|
|
3125
|
-
], 64)) : (
|
|
3125
|
+
], 64)) : (r(), ee(Oe, {
|
|
3126
3126
|
key: 2,
|
|
3127
|
-
"data-area":
|
|
3128
|
-
data:
|
|
3127
|
+
"data-area": h.item.id,
|
|
3128
|
+
data: h.item.answerArea
|
|
3129
3129
|
}, null, 8, ["data-area", "data"]))
|
|
3130
|
-
], 8,
|
|
3130
|
+
], 8, Hn));
|
|
3131
3131
|
}
|
|
3132
|
-
}),
|
|
3132
|
+
}), Kn = ["data-block"], Un = /* @__PURE__ */ ne({
|
|
3133
3133
|
__name: "index",
|
|
3134
3134
|
props: {
|
|
3135
3135
|
item: {},
|
|
@@ -3137,20 +3137,20 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3137
3137
|
},
|
|
3138
3138
|
emits: ["change"],
|
|
3139
3139
|
setup(e, { emit: t }) {
|
|
3140
|
-
return (o, l) => (
|
|
3140
|
+
return (o, l) => (r(), u("div", {
|
|
3141
3141
|
class: "px-2 py-3 w-full border border-dashed rounded-lg",
|
|
3142
|
-
"data-block": L(
|
|
3142
|
+
"data-block": L(ft)
|
|
3143
3143
|
}, [
|
|
3144
3144
|
ae(Oe, {
|
|
3145
3145
|
"data-content": o.item.id,
|
|
3146
3146
|
data: o.item.content
|
|
3147
3147
|
}, null, 8, ["data-content", "data"])
|
|
3148
|
-
], 8,
|
|
3148
|
+
], 8, Kn));
|
|
3149
3149
|
}
|
|
3150
|
-
}),
|
|
3150
|
+
}), Vn = ["data-block"], jn = { key: 0 }, Xn = { key: 1 }, Jn = { key: 2 }, Zn = {
|
|
3151
3151
|
key: 3,
|
|
3152
3152
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
3153
|
-
},
|
|
3153
|
+
}, es = { key: 0 }, ts = /* @__PURE__ */ ne({
|
|
3154
3154
|
__name: "index",
|
|
3155
3155
|
props: {
|
|
3156
3156
|
sub: {},
|
|
@@ -3160,7 +3160,7 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3160
3160
|
bracketType: {}
|
|
3161
3161
|
},
|
|
3162
3162
|
setup(e) {
|
|
3163
|
-
const t = e, o = W(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((s) => s.split(".")).map((s) => t.isFull ? s : s.map((c, y) => y === s.length - 1 ? c : ""))), l = W(() => t.width ? `${Math.max(t.width * 5 / 7, 1)}em` : ""),
|
|
3163
|
+
const t = e, o = W(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((s) => s.split(".")).map((s) => t.isFull ? s : s.map((c, y) => y === s.length - 1 ? c : ""))), l = W(() => t.width ? `${Math.max(t.width * 5 / 7, 1)}em` : ""), i = (a) => {
|
|
3164
3164
|
if (!t.bracketType)
|
|
3165
3165
|
return "";
|
|
3166
3166
|
if (a === "prev")
|
|
@@ -3168,40 +3168,40 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3168
3168
|
if (a === "after")
|
|
3169
3169
|
return t.bracketType === f.bracket_cn ? ")" : ")";
|
|
3170
3170
|
};
|
|
3171
|
-
return (a, s) => (
|
|
3171
|
+
return (a, s) => (r(), u("span", {
|
|
3172
3172
|
class: oe(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", a.isFull && "justify-end"]),
|
|
3173
3173
|
style: Z({ width: l.value }),
|
|
3174
3174
|
"data-block": L(Be)
|
|
3175
3175
|
}, [
|
|
3176
|
-
(
|
|
3177
|
-
y ? (
|
|
3178
|
-
c[0] ? (
|
|
3179
|
-
c[1] ? (
|
|
3180
|
-
c[2] ? (
|
|
3176
|
+
(r(!0), u(N, null, le(o.value, (c, y) => (r(), u(N, null, [
|
|
3177
|
+
y ? (r(), u("span", jn, " - ")) : D("", !0),
|
|
3178
|
+
c[0] ? (r(), u("span", Xn, te(c[0]), 1)) : D("", !0),
|
|
3179
|
+
c[1] ? (r(), u("span", Jn, "(" + te(c[1]) + ")", 1)) : D("", !0),
|
|
3180
|
+
c[2] ? (r(), u("span", Zn, te(c[2]), 1)) : D("", !0)
|
|
3181
3181
|
], 64))), 256)),
|
|
3182
|
-
a.score ? (
|
|
3183
|
-
], 14,
|
|
3182
|
+
a.score ? (r(), u("span", es, te(i("prev")) + te(a.score) + "分" + te(i("after")), 1)) : D("", !0)
|
|
3183
|
+
], 14, Vn));
|
|
3184
3184
|
}
|
|
3185
|
-
}),
|
|
3185
|
+
}), os = {
|
|
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:
|
|
3187
|
+
choice: Wl,
|
|
3188
|
+
choiceSheet: ql,
|
|
3189
|
+
decide: Ul,
|
|
3190
|
+
decideSheet: ln,
|
|
3191
|
+
fill: rn,
|
|
3192
|
+
fillSheet: mn,
|
|
3193
|
+
slove: fn,
|
|
3194
|
+
sloveSheet: vn,
|
|
3195
|
+
easy_slove: xn,
|
|
3196
|
+
easy_sloveSheet: Sn,
|
|
3197
|
+
mix: In,
|
|
3198
3198
|
mixSheet: En,
|
|
3199
|
-
synthesis:
|
|
3200
|
-
synthesisSheet:
|
|
3201
|
-
art:
|
|
3202
|
-
artSheet:
|
|
3203
|
-
notArea:
|
|
3204
|
-
Sub:
|
|
3199
|
+
synthesis: An,
|
|
3200
|
+
synthesisSheet: Nn,
|
|
3201
|
+
art: Rn,
|
|
3202
|
+
artSheet: Yn,
|
|
3203
|
+
notArea: Un,
|
|
3204
|
+
Sub: ts
|
|
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(Pt), i = 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]
|
|
@@ -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(He).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
|
}
|
|
@@ -3332,7 +3332,7 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3332
3332
|
Gps_cls: I,
|
|
3333
3333
|
problemLayoutKey: d,
|
|
3334
3334
|
problemLayoutVal: f,
|
|
3335
|
-
hoverActive:
|
|
3335
|
+
hoverActive: i,
|
|
3336
3336
|
ModuleTag: o,
|
|
3337
3337
|
ChoiceType: s,
|
|
3338
3338
|
GroupData: c,
|
|
@@ -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 : ut[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(" ")}`
|
|
@@ -3443,10 +3443,10 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3443
3443
|
}
|
|
3444
3444
|
},
|
|
3445
3445
|
handleHoverIn: (g) => {
|
|
3446
|
-
|
|
3446
|
+
i.value = g.rootProblemId;
|
|
3447
3447
|
},
|
|
3448
3448
|
handleHoverOut: (g) => {
|
|
3449
|
-
|
|
3449
|
+
i.value = "";
|
|
3450
3450
|
},
|
|
3451
3451
|
handleClick: (g, S) => {
|
|
3452
3452
|
e.data.isPolymer || (g.stopPropagation(), t("click", S));
|
|
@@ -3459,55 +3459,55 @@ const Hn = /* @__PURE__ */ me(zn, [["render", Rn]]), Wn = ["data-viewid"], Gn =
|
|
|
3459
3459
|
}
|
|
3460
3460
|
};
|
|
3461
3461
|
}
|
|
3462
|
-
},
|
|
3463
|
-
function
|
|
3464
|
-
const s =
|
|
3465
|
-
return
|
|
3466
|
-
c.type === "polymer" ? (
|
|
3462
|
+
}, as = ["data-block", "data-polymer"], ls = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ns = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ss = { key: 0 };
|
|
3463
|
+
function is(e, t, o, l, i, a) {
|
|
3464
|
+
const s = Qt("Sub");
|
|
3465
|
+
return r(!0), u(N, null, le(l.GroupData, (c, y) => (r(), u(N, null, [
|
|
3466
|
+
c.type === "polymer" ? (r(), u("div", {
|
|
3467
3467
|
key: 0,
|
|
3468
3468
|
"data-block": l.ComputBlock(c),
|
|
3469
3469
|
"data-polymer": y,
|
|
3470
3470
|
class: oe([...l.ComputPolymerCls(c)]),
|
|
3471
3471
|
style: Z(l.ComputPolymerStyle(c))
|
|
3472
3472
|
}, [
|
|
3473
|
-
(
|
|
3474
|
-
var
|
|
3475
|
-
return
|
|
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", ((
|
|
3477
|
-
style: Z(l.ComputPolymerItemStyle(n,
|
|
3473
|
+
(r(!0), u(N, null, le(c.children, (n, p) => {
|
|
3474
|
+
var M;
|
|
3475
|
+
return r(), 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", ((M = o.target.value) == null ? void 0 : M.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3477
|
+
style: Z(l.ComputPolymerItemStyle(n, p)),
|
|
3478
3478
|
"data-tag": n.__tag__,
|
|
3479
3479
|
"data-polymer": y,
|
|
3480
3480
|
"data-block": l.ComputBlock(n),
|
|
3481
3481
|
"data-xine": l.Gps_cls.item + n._sub,
|
|
3482
|
-
onClick: (
|
|
3483
|
-
onMouseenter: (
|
|
3484
|
-
onMouseleave: (
|
|
3482
|
+
onClick: (h) => l.handleGroupClick(h, n),
|
|
3483
|
+
onMouseenter: (h) => l.handleHoverIn(n),
|
|
3484
|
+
onMouseleave: (h) => l.handleHoverOut(n)
|
|
3485
3485
|
}, [
|
|
3486
|
-
n.problemType ? (
|
|
3486
|
+
n.problemType ? (r(), ee(s, {
|
|
3487
3487
|
key: 0,
|
|
3488
3488
|
sub: n.sub,
|
|
3489
3489
|
isFull: !!l.ModuleTag,
|
|
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
|
-
(
|
|
3494
|
-
], 46,
|
|
3493
|
+
(r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, p) })), null, 16))
|
|
3494
|
+
], 46, ls);
|
|
3495
3495
|
}), 256))
|
|
3496
|
-
], 14,
|
|
3497
|
-
var
|
|
3498
|
-
return
|
|
3496
|
+
], 14, as)) : (r(!0), u(N, { key: 1 }, le(c.children, (n, p) => {
|
|
3497
|
+
var M;
|
|
3498
|
+
return r(), 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", ((
|
|
3501
|
-
style: Z(l.ComputStyle(n,
|
|
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", ((M = o.target.value) == null ? void 0 : M.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3501
|
+
style: Z(l.ComputStyle(n, p)),
|
|
3502
3502
|
"data-tag": n.__tag__,
|
|
3503
3503
|
"data-block": l.ComputBlock(n),
|
|
3504
3504
|
"data-xine": l.Gps_cls.item + n._sub,
|
|
3505
|
-
onClick: (
|
|
3506
|
-
onDblclick: (
|
|
3507
|
-
onMouseenter: (
|
|
3508
|
-
onMouseleave: (
|
|
3505
|
+
onClick: (h) => l.handleClick(h, n),
|
|
3506
|
+
onDblclick: (h) => l.handleDblClick(h, n),
|
|
3507
|
+
onMouseenter: (h) => l.handleHoverIn(n),
|
|
3508
|
+
onMouseleave: (h) => l.handleHoverOut(n)
|
|
3509
3509
|
}, [
|
|
3510
|
-
n.problemType && !l.ComputAbs(n) ? (
|
|
3510
|
+
n.problemType && !l.ComputAbs(n) ? (r(), ee(s, {
|
|
3511
3511
|
key: 0,
|
|
3512
3512
|
sub: n.sub,
|
|
3513
3513
|
isFull: !!l.ModuleTag,
|
|
@@ -3515,9 +3515,9 @@ 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
|
-
(
|
|
3518
|
+
(r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, p) })), {
|
|
3519
3519
|
default: Et(() => [
|
|
3520
|
-
n.customSub ? D("", !0) : (
|
|
3520
|
+
n.customSub ? D("", !0) : (r(), ee(s, {
|
|
3521
3521
|
key: 0,
|
|
3522
3522
|
sub: n.sub,
|
|
3523
3523
|
isFull: !!l.ModuleTag,
|
|
@@ -3528,14 +3528,14 @@ 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 ? (
|
|
3531
|
+
], 46, ns),
|
|
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 ? (r(), u("div", ss)) : D("", !0)
|
|
3533
3533
|
], 64);
|
|
3534
3534
|
}), 256))
|
|
3535
3535
|
], 64))), 256);
|
|
3536
3536
|
}
|
|
3537
|
-
const Ve = /* @__PURE__ */ me(
|
|
3538
|
-
const
|
|
3537
|
+
const Ve = /* @__PURE__ */ me(os, [["render", is]]), rs = (e, t, o) => {
|
|
3538
|
+
const i = (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 "";
|
|
3541
3541
|
if (c === "prev")
|
|
@@ -3543,8 +3543,8 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3543
3543
|
if (c === "after")
|
|
3544
3544
|
return o === f.bracket_cn ? ")" : ")";
|
|
3545
3545
|
}, s = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
|
|
3546
|
-
return
|
|
3547
|
-
},
|
|
3546
|
+
return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${s}</span>` : "";
|
|
3547
|
+
}, Pe = 200 / 96, Rt = 4, cs = 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}"]`) || []), ds = (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 : {
|
|
@@ -3552,7 +3552,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3552
3552
|
y: e.y - t.y + (o ? 1 : 0),
|
|
3553
3553
|
width: e.width,
|
|
3554
3554
|
height: e.height - (o ? 2 : 0)
|
|
3555
|
-
}, Ne = (e, t, o, l = !1,
|
|
3555
|
+
}, Ne = (e, t, o, l = !1, i = !1) => {
|
|
3556
3556
|
if (!e)
|
|
3557
3557
|
return {
|
|
3558
3558
|
x: 0,
|
|
@@ -3560,7 +3560,7 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3560
3560
|
width: 0,
|
|
3561
3561
|
height: 0
|
|
3562
3562
|
};
|
|
3563
|
-
const a = q(e), s = Math.min(t.height, a.y < t.y ? a.y + a.height - t.y : a.y + a.height > t.y + t.height ||
|
|
3563
|
+
const a = q(e), s = Math.min(t.height, a.y < t.y ? a.y + a.height - t.y : a.y + a.height > t.y + t.height || i ? t.y + t.height - a.y : a.height);
|
|
3564
3564
|
return s > 5 ? {
|
|
3565
3565
|
x: a.x - o.x,
|
|
3566
3566
|
y: Math.max(a.y, t.y) + (l ? 1 : 0) - o.y,
|
|
@@ -3570,58 +3570,58 @@ 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 ? Rt : 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
|
+
}, Ht = (e, t = I.en_num) => {
|
|
3581
3581
|
const o = he(t);
|
|
3582
3582
|
if (!o)
|
|
3583
3583
|
return null;
|
|
3584
3584
|
const l = {
|
|
3585
3585
|
// area: GetPosition(el, config.pageDom[0]),
|
|
3586
3586
|
area: pe(q(o), q(e.pageDom[0])),
|
|
3587
|
-
list: Me(I.en_num_group, o).map((
|
|
3587
|
+
list: Me(I.en_num_group, o).map((i) => Me(I.en_num_item, i).map((a) => pe(q(a), q(e.pageDom[0]), !0)))
|
|
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) *
|
|
3597
|
-
questionNOList: [...Array(l.list.length).keys()].map((
|
|
3596
|
+
xColOffset: Math.round((l.list[1][0].x - l.list[0][0].x - l.list[0][0].width) * Pe),
|
|
3597
|
+
questionNOList: [...Array(l.list.length).keys()].map((i, 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) *
|
|
3606
|
-
questionNOList: [...Array(l.list.length).keys()].map((
|
|
3605
|
+
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Pe),
|
|
3606
|
+
questionNOList: [...Array(l.list.length).keys()].map((i, a) => a + 1)
|
|
3607
3607
|
};
|
|
3608
|
-
},
|
|
3609
|
-
cardSizeType:
|
|
3608
|
+
}, us = (e) => ({
|
|
3609
|
+
cardSizeType: vo[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
|
-
}),
|
|
3616
|
-
const t = q(e.pageDom[0]), o = q(e.pageDom[1]), l = (
|
|
3613
|
+
paperWidth: Math.round(x[e.layout.paper].width * Pe),
|
|
3614
|
+
paperHeight: Math.round(x[e.layout.paper].height * Pe)
|
|
3615
|
+
}), hs = (e) => {
|
|
3616
|
+
const t = q(e.pageDom[0]), o = q(e.pageDom[1]), l = (i, a) => {
|
|
3617
3617
|
var c;
|
|
3618
3618
|
const s = a > 2 || et.includes(e.layout.paper) ? {
|
|
3619
|
-
trdLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[
|
|
3620
|
-
trdLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[
|
|
3619
|
+
trdLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[i])[1]), q(e.pageDom[i]))),
|
|
3620
|
+
trdLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[i])[1]), q(e.pageDom[i])))
|
|
3621
3621
|
} : {};
|
|
3622
3622
|
return (c = Ge.find((y) => y.code === e.layout.paper)) != null && c.isMultCol ? {
|
|
3623
|
-
secLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[
|
|
3624
|
-
secLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[
|
|
3623
|
+
secLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[i])[0]), q(e.pageDom[i]))),
|
|
3624
|
+
secLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[i])[0]), q(e.pageDom[i]))),
|
|
3625
3625
|
...s
|
|
3626
3626
|
} : null;
|
|
3627
3627
|
};
|
|
@@ -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
|
+
}, ps = (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: _t.filter((l, i) => i < 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
|
+
}, ms = (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
|
+
}, ys = (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
|
+
}, _s = (e) => {
|
|
3697
3697
|
const t = he(I.write_view, e.pageDom[0]);
|
|
3698
3698
|
if (!t)
|
|
3699
3699
|
return null;
|
|
@@ -3702,16 +3702,16 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3702
3702
|
id: "0",
|
|
3703
3703
|
problemType: m.slove,
|
|
3704
3704
|
position: pe(q(t), q(e.pageDom[0])),
|
|
3705
|
-
scoreList: o.map((l,
|
|
3706
|
-
position: pe(q(o[
|
|
3705
|
+
scoreList: o.map((l, i) => ({
|
|
3706
|
+
position: pe(q(o[i]), q(e.pageDom[0])),
|
|
3707
3707
|
itemPosition: {
|
|
3708
|
-
width: o[
|
|
3708
|
+
width: o[i].offsetWidth
|
|
3709
3709
|
},
|
|
3710
|
-
score: Math.abs(parseFloat(o[
|
|
3710
|
+
score: Math.abs(parseFloat(o[i].innerText))
|
|
3711
3711
|
}))
|
|
3712
3712
|
};
|
|
3713
|
-
},
|
|
3714
|
-
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l =
|
|
3713
|
+
}, fs = (e, t) => {
|
|
3714
|
+
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = cs + Rt, i = (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:
|
|
@@ -3721,8 +3721,8 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3721
3721
|
return {
|
|
3722
3722
|
sub: s.id,
|
|
3723
3723
|
position: {
|
|
3724
|
-
x:
|
|
3725
|
-
y:
|
|
3724
|
+
x: i(c.x - s.position.x),
|
|
3725
|
+
y: i(c.y - s.position.y) + l * (a.colIndex - 1),
|
|
3726
3726
|
width: c.width,
|
|
3727
3727
|
height: c.height
|
|
3728
3728
|
}
|
|
@@ -3733,8 +3733,8 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3733
3733
|
return e.layout.handReadFlag ? [{
|
|
3734
3734
|
sub: a.id,
|
|
3735
3735
|
position: {
|
|
3736
|
-
x:
|
|
3737
|
-
y:
|
|
3736
|
+
x: i(a.scoreList[0].position.x - a.position.x),
|
|
3737
|
+
y: i(a.scoreList[0].position.y - a.position.y) + l * (a.colIndex - 1),
|
|
3738
3738
|
width: a.scoreList.map((s) => s.position.width).reduce((s, c) => s + c, 0),
|
|
3739
3739
|
height: a.scoreList[0].position.height
|
|
3740
3740
|
}
|
|
@@ -3743,29 +3743,29 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3743
3743
|
return !e.layout.handReadFlag && a.isHiddenContent ? [] : (a.children || []).filter((s) => [m.fill, m.fill_english, m.easy_slove].includes(s.problemType)).map((s) => [m.easy_slove].includes(s.problemType) ? {
|
|
3744
3744
|
sub: s.id,
|
|
3745
3745
|
position: {
|
|
3746
|
-
x:
|
|
3747
|
-
y:
|
|
3746
|
+
x: i(s.scoreList[0].position.x - (s.isHiddenContent ? s.position.x : a.position.x)),
|
|
3747
|
+
y: i(s.scoreList[0].position.y - (s.isHiddenContent ? s.position.y : a.position.y)) + l * (a.colIndex - 1),
|
|
3748
3748
|
width: s.scoreList.map((c) => c.position.width).reduce((c, y) => c + y, 0),
|
|
3749
3749
|
height: s.position.height
|
|
3750
3750
|
}
|
|
3751
3751
|
} : {
|
|
3752
3752
|
sub: s.id,
|
|
3753
3753
|
position: {
|
|
3754
|
-
x:
|
|
3755
|
-
y:
|
|
3754
|
+
x: i(s.scorePosition.x - (s.isHiddenContent ? s.rawPosition.x : a.position.x)),
|
|
3755
|
+
y: i(s.scorePosition.y - (s.isHiddenContent ? s.rawPosition.y : a.position.y)) + l * (a.colIndex - 1),
|
|
3756
3756
|
width: s.scorePosition.width,
|
|
3757
3757
|
height: s.scorePosition.height
|
|
3758
3758
|
}
|
|
3759
3759
|
});
|
|
3760
3760
|
}
|
|
3761
3761
|
}).flat();
|
|
3762
|
-
},
|
|
3762
|
+
}, gs = (e, t) => {
|
|
3763
3763
|
let o = 0, l = {};
|
|
3764
|
-
return [...Array(e.pageDom.length).keys()].map((
|
|
3765
|
-
var c, y, n,
|
|
3766
|
-
const a = Math.floor(
|
|
3767
|
-
return [...Array(
|
|
3768
|
-
const
|
|
3764
|
+
return [...Array(e.pageDom.length).keys()].map((i) => {
|
|
3765
|
+
var c, y, n, p;
|
|
3766
|
+
const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), s = (p = (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 : p.children;
|
|
3767
|
+
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((M, h) => a + h < t.length).map((M, h) => {
|
|
3768
|
+
const P = e.pageDom[i], z = q(P), j = e.colDom[a + h], X = q(j), A = e.colViewDom[a + h], w = q(A), G = t[a + h].data.map((C) => C.children).flat(), ie = t[a + h].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 ? {
|
|
3771
3771
|
id: `${++o}`,
|
|
@@ -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 && ds(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;
|
|
@@ -3852,8 +3852,8 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3852
3852
|
};
|
|
3853
3853
|
}).concat(ie).filter((C) => C.position);
|
|
3854
3854
|
});
|
|
3855
|
-
}).map((
|
|
3856
|
-
},
|
|
3855
|
+
}).map((i) => i.flat());
|
|
3856
|
+
}, bs = (e) => {
|
|
3857
3857
|
let t = {};
|
|
3858
3858
|
const o = (a = e, s = !1) => (t[a.id] = {
|
|
3859
3859
|
_rootProblemType: rt[e._rootProblemType],
|
|
@@ -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) ? bo[s] : _t[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
|
+
}, vs = (e, t) => {
|
|
3970
3970
|
let o = {};
|
|
3971
3971
|
const l = [...Array(e.pageTotal).keys()].map((s) => ({
|
|
3972
3972
|
// 当前页数
|
|
@@ -3980,24 +3980,24 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
3980
3980
|
// 固定值
|
|
3981
3981
|
splitFileList: [],
|
|
3982
3982
|
// 依据当前页码设置答案
|
|
3983
|
-
answerResultList:
|
|
3983
|
+
answerResultList: _t.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 = bs(c);
|
|
3990
3990
|
return o = { ...o, ...y.typeData }, y.data;
|
|
3991
3991
|
}).flat()
|
|
3992
|
-
})),
|
|
3992
|
+
})), i = (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((
|
|
3995
|
-
const
|
|
3994
|
+
return s.cardCuttingSectionList.forEach((p, M, h) => {
|
|
3995
|
+
const P = i(p, 1);
|
|
3996
3996
|
let z = !1, j = !1;
|
|
3997
|
-
if (n.find((A) =>
|
|
3997
|
+
if (n.find((A) => i(A, 1) === P && A.secitonSeqID === p.secitonSeqID) && !(p.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(p), z = M < h.length - 1, j = !0), z)
|
|
3998
3998
|
return;
|
|
3999
3999
|
let X = !1;
|
|
4000
|
-
if ((
|
|
4000
|
+
if ((p.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(p), X = !0), n.length) {
|
|
4001
4001
|
if (n.length === 1)
|
|
4002
4002
|
c.push(n[0]);
|
|
4003
4003
|
else {
|
|
@@ -4011,35 +4011,35 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4011
4011
|
}
|
|
4012
4012
|
n = [];
|
|
4013
4013
|
}
|
|
4014
|
-
X || j || n.push(
|
|
4015
|
-
}), c = [...c, ...n].map((
|
|
4014
|
+
X || j || n.push(p);
|
|
4015
|
+
}), c = [...c, ...n].map((p) => ({ ...p, cuttingSectionQuestionType: o[p.sectionID]._rootProblemType || p.cuttingSectionQuestionType, sectionID: i(p, 1) })), { ...s, cardCuttingSectionList: [...c, ...y] };
|
|
4016
4016
|
}).map((s) => {
|
|
4017
4017
|
const c = s.cardCuttingSectionList.map((y) => {
|
|
4018
|
-
var
|
|
4019
|
-
let n = [],
|
|
4020
|
-
const
|
|
4021
|
-
(
|
|
4022
|
-
const A =
|
|
4018
|
+
var P;
|
|
4019
|
+
let n = [], p = [];
|
|
4020
|
+
const M = Math.max(...(y.subjectiveQuestionSectionList || []).map((z) => z.sectionID.split(".").length - 1), 1);
|
|
4021
|
+
(P = y.subjectiveQuestionSectionList) == null || P.forEach((z, j, X) => {
|
|
4022
|
+
const A = i(z, M);
|
|
4023
4023
|
let w = !1, G = !1;
|
|
4024
|
-
if (
|
|
4025
|
-
if (
|
|
4026
|
-
if (
|
|
4027
|
-
n.push(
|
|
4024
|
+
if (p.find((ie) => i(ie, M) === A && ie.secitonSeqID === z.secitonSeqID) && (p.push(z), w = j < X.length - 1, G = !0), !w) {
|
|
4025
|
+
if (p.length) {
|
|
4026
|
+
if (p.length === 1)
|
|
4027
|
+
n.push(p[0]);
|
|
4028
4028
|
else {
|
|
4029
|
-
const ie =
|
|
4029
|
+
const ie = p.map((U) => U.singleBlankSectionList || []).flat(), C = ie.length ? { singleBlankSectionList: ie, unitCount: ie.length } : {};
|
|
4030
4030
|
n.push({
|
|
4031
|
-
...
|
|
4031
|
+
...p[0],
|
|
4032
4032
|
// cuttingSectionQuestionType: typeResult[subjectTmp[0].sectionID]._parentProblemType || subjectTmp[0].cuttingSectionQuestionType,
|
|
4033
4033
|
...C
|
|
4034
4034
|
});
|
|
4035
4035
|
}
|
|
4036
|
-
|
|
4036
|
+
p = [];
|
|
4037
4037
|
}
|
|
4038
|
-
G ||
|
|
4038
|
+
G || p.push(z);
|
|
4039
4039
|
}
|
|
4040
4040
|
});
|
|
4041
|
-
const
|
|
4042
|
-
return n = [...n, ...
|
|
4041
|
+
const h = Math.max(...[...n, ...p].map((z) => z.sectionID.split(".").length));
|
|
4042
|
+
return n = [...n, ...p].map((z) => ({ ...z, cuttingSectionQuestionType: o[z.sectionID]._parentProblemType || z.cuttingSectionQuestionType, sectionID: i(z, Math.max(h - 1, 1)) })), n.length ? {
|
|
4043
4043
|
...y,
|
|
4044
4044
|
subjectiveQuestionSectionList: n
|
|
4045
4045
|
} : y;
|
|
@@ -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
|
+
}, ws = (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: Ht(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: ys(e),
|
|
4079
4079
|
// ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
|
|
4080
4080
|
// 固定值
|
|
4081
4081
|
qrCodePosition: null,
|
|
@@ -4087,29 +4087,29 @@ const Ve = /* @__PURE__ */ me(as, [["render", rs]]), cs = (e, t, o) => {
|
|
|
4087
4087
|
// 用来表示老师布置题的标识,固定值
|
|
4088
4088
|
onlyAssignQuestions: null,
|
|
4089
4089
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
4090
|
-
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
4090
|
+
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
|
|
4091
4091
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
4092
|
-
absenceInfoIndexList: he(I.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
4092
|
+
absenceInfoIndexList: he(I.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2) : null,
|
|
4093
4093
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
4094
|
-
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((
|
|
4094
|
+
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
|
|
4095
4095
|
// 哪些面有选做老师布置题的信息,固定值
|
|
4096
4096
|
onlyAssignInfoList: [],
|
|
4097
4097
|
// 页面布局信息
|
|
4098
|
-
layerType:
|
|
4098
|
+
layerType: us(e),
|
|
4099
4099
|
// 定位点信息
|
|
4100
|
-
...
|
|
4100
|
+
...hs(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: ps(e),
|
|
4104
4104
|
// 缺考标记
|
|
4105
|
-
absenceMark:
|
|
4105
|
+
absenceMark: ms(e),
|
|
4106
4106
|
// 业务数据
|
|
4107
4107
|
oneFullPageCardList: t
|
|
4108
4108
|
};
|
|
4109
|
-
},
|
|
4110
|
-
const { config: t, data: o } = e, l =
|
|
4111
|
-
l &&
|
|
4112
|
-
const a =
|
|
4109
|
+
}, ks = (e) => {
|
|
4110
|
+
const { config: t, data: o } = e, l = _s(t), i = gs(t, o);
|
|
4111
|
+
l && i[0].unshift(l);
|
|
4112
|
+
const a = fs(t, i), s = vs(t, i), c = ws(t, s), y = Ht(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
|
+
}, xs = { class: "layt-moni_view" }, Cs = { class: "layt-moni_content" }, Ss = { class: "layt-moni_icon" }, $s = { class: "layt-moni_msg" }, Ts = {
|
|
4121
4121
|
key: 0,
|
|
4122
4122
|
class: "layt-moni_err_view"
|
|
4123
|
-
},
|
|
4123
|
+
}, Is = { class: "layt-moni_err_item_msg" }, Ls = ["onClick"], Fs = /* @__PURE__ */ ne({
|
|
4124
4124
|
__name: "index",
|
|
4125
4125
|
props: {
|
|
4126
4126
|
ColList: {},
|
|
@@ -4134,82 +4134,82 @@ 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((
|
|
4138
|
-
|
|
4137
|
+
o.ColList.forEach((p, M) => {
|
|
4138
|
+
p.data.map((h) => h.children).flat().filter((h) => [m.slove, m.art].includes(h.problemType) && !h.chunk).forEach((h) => {
|
|
4139
4139
|
var X;
|
|
4140
|
-
const
|
|
4141
|
-
if (!
|
|
4140
|
+
const P = (X = o.ColDom[M].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : X.querySelector(`*[data-xine="${I.score}"]`);
|
|
4141
|
+
if (!P)
|
|
4142
4142
|
return;
|
|
4143
|
-
|
|
4144
|
-
const z = window.getComputedStyle(
|
|
4145
|
-
|
|
4143
|
+
P.classList.remove("err_lack");
|
|
4144
|
+
const z = window.getComputedStyle(P), j = [...Array.from(P.children)].map((A) => A.offsetWidth).reduce((A, w) => A + w, 0);
|
|
4145
|
+
P.offsetWidth - parseFloat(z.borderLeft) - parseFloat(z.borderRight) < j && (l.value.push({ msg: `${h.subStr}题打分条超长` }), P.classList.add("err_lack"), P.title = "打分条超长,请调整排版或使用自编打分条");
|
|
4146
4146
|
});
|
|
4147
4147
|
});
|
|
4148
4148
|
const s = (n = document.querySelector(".__layout__")) == null ? void 0 : n.getBoundingClientRect();
|
|
4149
4149
|
if (!s)
|
|
4150
4150
|
return;
|
|
4151
4151
|
let c = [], y = [];
|
|
4152
|
-
o.ImgData.forEach((
|
|
4153
|
-
(
|
|
4154
|
-
}), o.TxtData.forEach((
|
|
4155
|
-
(
|
|
4156
|
-
}), c.length && l.value.push({ type: "absImg", value: c, msg: `${c.length}张插入图片溢出`, fn:
|
|
4152
|
+
o.ImgData.forEach((p) => {
|
|
4153
|
+
(p.left + p.width > s.width || p.top + p.height > s.height) && c.push(p);
|
|
4154
|
+
}), o.TxtData.forEach((p) => {
|
|
4155
|
+
(p.left + p.width > s.width || p.top + p.height > s.height) && y.push(p);
|
|
4156
|
+
}), c.length && l.value.push({ type: "absImg", value: c, msg: `${c.length}张插入图片溢出`, fn: i }), y.length && l.value.push({ type: "absTxt", value: y, msg: `${y.length}条插入文本溢出`, fn: a }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
|
|
4157
4157
|
}, 500);
|
|
4158
4158
|
});
|
|
4159
|
-
const
|
|
4159
|
+
const i = () => {
|
|
4160
4160
|
var c;
|
|
4161
4161
|
(((c = l.value.find((y) => y.type === "absImg")) == null ? void 0 : c.value) || []).forEach((y) => t("delAbsImgItem", y));
|
|
4162
4162
|
}, a = () => {
|
|
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) => (
|
|
4167
|
-
k("div",
|
|
4166
|
+
return (s, c) => (r(), u("div", xs, [
|
|
4167
|
+
k("div", Cs, [
|
|
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", Ss, [
|
|
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", $s, "排版" + te(l.value.length ? "异常" : "良好"), 1)
|
|
4181
4181
|
], 2),
|
|
4182
|
-
l.value.length ? (
|
|
4183
|
-
(
|
|
4182
|
+
l.value.length ? (r(), u("ul", Ts, [
|
|
4183
|
+
(r(!0), u(N, null, le(l.value, (y, n) => (r(), u("li", {
|
|
4184
4184
|
key: n,
|
|
4185
4185
|
class: "layt-moni_err_item"
|
|
4186
4186
|
}, [
|
|
4187
|
-
k("span",
|
|
4188
|
-
y.fn ? (
|
|
4187
|
+
k("span", Is, te(y.msg), 1),
|
|
4188
|
+
y.fn ? (r(), 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, Ls)) : D("", !0)
|
|
4193
4193
|
]))), 128))
|
|
4194
4194
|
])) : D("", !0)
|
|
4195
4195
|
])
|
|
4196
4196
|
]));
|
|
4197
4197
|
}
|
|
4198
4198
|
});
|
|
4199
|
-
const Es = /* @__PURE__ */ me(
|
|
4199
|
+
const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-90e967d8"]]), ye = (e) => e == null ? void 0 : e.getBoundingClientRect(), ct = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, gt].includes(t.dataset.block || "")), at = (e) => e.previousElementSibling ? [Be, gt].includes(e.previousElementSibling.dataset.block || "") ? at(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? at(e.parentElement) : document.body, Ps = (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
|
-
},
|
|
4203
|
-
let
|
|
4204
|
-
if (e.dataset.block ===
|
|
4201
|
+
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = gt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
4202
|
+
}, Ms = (e, t, o, l) => {
|
|
4203
|
+
let i = null;
|
|
4204
|
+
if (e.dataset.block === ft && !e.dataset.used) {
|
|
4205
4205
|
const a = window.getComputedStyle(e);
|
|
4206
|
-
t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (
|
|
4206
|
+
t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block === sl ? e.parentElement : e), e.dataset.used = "1";
|
|
4207
4207
|
} else
|
|
4208
|
-
e.dataset.block ===
|
|
4209
|
-
return
|
|
4210
|
-
},
|
|
4211
|
-
const l = e.textContent || "",
|
|
4212
|
-
e.innerHTML =
|
|
4208
|
+
e.dataset.block === Tt ? i = e.parentElement : e.dataset.block === il && !e.dataset.used ? e.offsetHeight < o - 20 ? i = 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=${Tt}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === rl && l || cl.includes(e.tagName.toLowerCase())) && (i = e);
|
|
4209
|
+
return i;
|
|
4210
|
+
}, Lt = (e, t, o) => {
|
|
4211
|
+
const l = e.textContent || "", i = l.split("").map((y) => `<span>${y}</span>`).join("");
|
|
4212
|
+
e.innerHTML = i;
|
|
4213
4213
|
const a = [...Array.from(e.children)].findIndex((y) => ye(y).top - t + y.offsetHeight > o);
|
|
4214
4214
|
if (a < 1)
|
|
4215
4215
|
return e.innerHTML = l, e;
|
|
@@ -4217,12 +4217,12 @@ 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 =
|
|
4222
|
-
let a = l.filter((s, c) => ye(s).top + s.offsetHeight - 1 < ye(e).top || c <
|
|
4223
|
-
return a || (a = at(e), ye(a).top + a.offsetHeight - t > o && (a =
|
|
4224
|
-
},
|
|
4225
|
-
const
|
|
4220
|
+
}, pt = (e, t, o) => {
|
|
4221
|
+
const l = ht(e.parentElement), i = l.findIndex((s) => s === e);
|
|
4222
|
+
let a = l.filter((s, c) => ye(s).top + s.offsetHeight - 1 < ye(e).top || c < i && ye(s).top < ye(e).top).reverse()[0];
|
|
4223
|
+
return a || (a = at(e), ye(a).top + a.offsetHeight - t > o && (a = pt(a, t, o))), a;
|
|
4224
|
+
}, Ft = (e, t, o, l) => {
|
|
4225
|
+
const i = (s, c = o) => {
|
|
4226
4226
|
var j, X, A;
|
|
4227
4227
|
const y = s.map((w) => {
|
|
4228
4228
|
const G = ye(w);
|
|
@@ -4231,93 +4231,93 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4231
4231
|
top: G.top - t,
|
|
4232
4232
|
left: G.left
|
|
4233
4233
|
};
|
|
4234
|
-
}), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top),
|
|
4235
|
-
if (!
|
|
4234
|
+
}), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top), p = (j = n.shift()) == null ? void 0 : j.el;
|
|
4235
|
+
if (!p) {
|
|
4236
4236
|
const w = ye(s[0].parentElement);
|
|
4237
4237
|
if (w.top + w.height - t - 10 < c)
|
|
4238
4238
|
return s[0].parentElement;
|
|
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
|
|
4243
|
-
if (n.filter((w) => w.top <
|
|
4244
|
-
const w = (A = y.filter((G) => G.top <
|
|
4242
|
+
const M = ye(p), h = M.top - t, P = M.left;
|
|
4243
|
+
if (n.filter((w) => w.top < h + p.offsetHeight && w.top + w.el.offsetHeight - 1 > h && (w.left + w.el.offsetWidth - 1 < P || w.left + 1 > P + p.offsetWidth)).length) {
|
|
4244
|
+
const w = (A = y.filter((G) => G.top < h).pop()) == null ? void 0 : A.el;
|
|
4245
4245
|
if (w != null && w.children.length) {
|
|
4246
|
-
const G =
|
|
4247
|
-
return
|
|
4246
|
+
const G = ht(w);
|
|
4247
|
+
return i(G, h) || w;
|
|
4248
4248
|
} else
|
|
4249
|
-
return w ? ye(w).top - t + w.offsetHeight >
|
|
4249
|
+
return w ? ye(w).top - t + w.offsetHeight > h ? Lt(w, t, h) : w : pt(p.parentElement, t, h);
|
|
4250
4250
|
} else {
|
|
4251
|
-
const w = getComputedStyle(
|
|
4252
|
-
if (
|
|
4253
|
-
return
|
|
4254
|
-
const G =
|
|
4251
|
+
const w = getComputedStyle(p);
|
|
4252
|
+
if (h + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
|
|
4253
|
+
return pt(p, t, h);
|
|
4254
|
+
const G = Ms(p, c - h, c, l);
|
|
4255
4255
|
if (G)
|
|
4256
4256
|
return at(G);
|
|
4257
|
-
if (
|
|
4258
|
-
const ie =
|
|
4259
|
-
return
|
|
4257
|
+
if (p.children.length) {
|
|
4258
|
+
const ie = ht(p);
|
|
4259
|
+
return i(ie, c);
|
|
4260
4260
|
} else
|
|
4261
|
-
return
|
|
4261
|
+
return Lt(p, t, c);
|
|
4262
4262
|
}
|
|
4263
|
-
}, a =
|
|
4264
|
-
return { cut:
|
|
4265
|
-
},
|
|
4266
|
-
const { el: t, data: o, column: l, backColumn:
|
|
4263
|
+
}, a = i([e]);
|
|
4264
|
+
return { cut: Ps(a), targetEl: a };
|
|
4265
|
+
}, As = (e) => {
|
|
4266
|
+
const { el: t, data: o, column: l, backColumn: i, getColSize: a, change: s } = e;
|
|
4267
4267
|
if (!t || !o.length) {
|
|
4268
4268
|
s([], !0);
|
|
4269
4269
|
return;
|
|
4270
4270
|
}
|
|
4271
4271
|
console.time("layout");
|
|
4272
4272
|
const c = ye(t).top;
|
|
4273
|
-
let y = {}, n = 0,
|
|
4274
|
-
const
|
|
4275
|
-
const G = w % (l +
|
|
4273
|
+
let y = {}, n = 0, p = 0;
|
|
4274
|
+
const M = (w) => {
|
|
4275
|
+
const G = w % (l + i), ie = Math.floor(w / (l + i)) * 2 + (G >= l ? 1 : 0), C = a(w, ie);
|
|
4276
4276
|
y = {
|
|
4277
4277
|
top: c,
|
|
4278
4278
|
width: parseFloat(C.width),
|
|
4279
4279
|
height: parseFloat(C.height)
|
|
4280
4280
|
};
|
|
4281
4281
|
};
|
|
4282
|
-
let
|
|
4282
|
+
let h = [], P = 0;
|
|
4283
4283
|
const z = () => {
|
|
4284
|
-
|
|
4284
|
+
M(h.length), t.style.width = `${y.width}px`, h.push({
|
|
4285
4285
|
top: 0,
|
|
4286
4286
|
data: [],
|
|
4287
4287
|
width: y.width,
|
|
4288
4288
|
height: y.height
|
|
4289
|
-
}), s([...
|
|
4289
|
+
}), s([...h]);
|
|
4290
4290
|
};
|
|
4291
4291
|
z();
|
|
4292
4292
|
const j = (w) => {
|
|
4293
4293
|
const G = getComputedStyle(w);
|
|
4294
|
-
return ye(w).top - y.top + parseFloat(G.borderTop) + parseFloat(G.paddingTop) + parseFloat(G.lineHeight) >
|
|
4294
|
+
return ye(w).top - y.top + parseFloat(G.borderTop) + parseFloat(G.paddingTop) + parseFloat(G.lineHeight) > h[h.length - 1].height;
|
|
4295
4295
|
}, X = (w) => {
|
|
4296
4296
|
const G = getComputedStyle(w);
|
|
4297
|
-
return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === Te ? 0 : parseFloat(G.paddingBottom) - parseFloat(G.borderBottom)) <=
|
|
4298
|
-
}, A = (w = JSON.parse(JSON.stringify(o[
|
|
4299
|
-
if (
|
|
4300
|
-
s([...
|
|
4297
|
+
return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === Te ? 0 : parseFloat(G.paddingBottom) - parseFloat(G.borderBottom)) <= h[h.length - 1].height;
|
|
4298
|
+
}, A = (w = JSON.parse(JSON.stringify(o[P] || {}))) => {
|
|
4299
|
+
if (P >= o.length || !Object.keys(w).length) {
|
|
4300
|
+
s([...h], !0), console.timeEnd("layout"), h = [], n = 0;
|
|
4301
4301
|
return;
|
|
4302
4302
|
}
|
|
4303
|
-
|
|
4303
|
+
h[h.length - 1].data.push({ ...w }), s([...h]), window.requestAnimationFrame(() => {
|
|
4304
4304
|
const G = ct(w.__tag__, t), ie = !w.isHidden && ye(G);
|
|
4305
4305
|
let C = null;
|
|
4306
|
-
if (
|
|
4307
|
-
const U = G.querySelector(`*[data-hutkey="${
|
|
4308
|
-
|
|
4306
|
+
if (p) {
|
|
4307
|
+
const U = G.querySelector(`*[data-hutkey="${p}"]`), de = ye(U);
|
|
4308
|
+
h[h.length - 1].top = y.top - de.top, h[h.length - 1].height = y.height - h[h.length - 1].top, p = 0;
|
|
4309
4309
|
}
|
|
4310
|
-
if (ie && ie.height + ie.top - y.top >
|
|
4310
|
+
if (ie && ie.height + ie.top - y.top > h[h.length - 1].height)
|
|
4311
4311
|
if (w.problemType)
|
|
4312
|
-
|
|
4312
|
+
h[h.length - 1].data.pop(), z(), A({ ...w });
|
|
4313
4313
|
else if (X(G))
|
|
4314
|
-
z(),
|
|
4314
|
+
z(), P++, A();
|
|
4315
4315
|
else if (j(G))
|
|
4316
|
-
|
|
4316
|
+
h[h.length - 1].data.pop(), z(), A({ ...w });
|
|
4317
4317
|
else {
|
|
4318
|
-
C =
|
|
4318
|
+
C = Ft(G, y.top, h[h.length - 1].height, h.length % (l + i) >= l), console.log(C);
|
|
4319
4319
|
const U = G.querySelector(`*[data-content="${w.id}"]`);
|
|
4320
|
-
|
|
4320
|
+
h[h.length - 1].height = ye(C.cut).top - y.top, z(), U != null && U.contains(C.cut) ? (p = Date.now(), C.cut.dataset.hutkey = p, A({ ...w, content: U.innerHTML })) : (h[h.length - 1].data.pop(), A({ ...w }));
|
|
4321
4321
|
}
|
|
4322
4322
|
else {
|
|
4323
4323
|
let U = [], de = [], g = !1;
|
|
@@ -4326,25 +4326,25 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4326
4326
|
const B = ct(S.__tag__, t), ue = ye(B);
|
|
4327
4327
|
if (n) {
|
|
4328
4328
|
const v = B.querySelector(`*[data-cutkey="${n}"]`), _ = ye(v);
|
|
4329
|
-
|
|
4329
|
+
h[h.length - 1].top = y.top - _.top, h[h.length - 1].height = y.height - h[h.length - 1].top, n = 0;
|
|
4330
4330
|
}
|
|
4331
|
-
if (ue.height + ue.top - y.top >
|
|
4331
|
+
if (ue.height + ue.top - y.top > h[h.length - 1].height) {
|
|
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
4335
|
return ct(v.__tag__, t).dataset.polymer !== ((_ = B.parentElement) == null ? void 0 : _.dataset.polymer);
|
|
4336
|
-
}), de = w.children.slice(U.length)) : (
|
|
4336
|
+
}), de = w.children.slice(U.length)) : (h[h.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) : [];
|
|
4339
4339
|
else if (j(B))
|
|
4340
4340
|
de = w.children.slice(T);
|
|
4341
4341
|
else {
|
|
4342
|
-
C =
|
|
4342
|
+
C = Ft(B, y.top, h[h.length - 1].height, h.length % (l + i) >= l);
|
|
4343
4343
|
const v = B.querySelector(`*[data-content="${S.id}"]`);
|
|
4344
4344
|
if (B === C.targetEl)
|
|
4345
4345
|
U.push(S), de = T < w.children.length - 1 ? w.children.slice(T + 1) : [];
|
|
4346
4346
|
else if (v && v.contains(C.cut))
|
|
4347
|
-
n = Date.now(), C.cut.dataset.cutkey = n, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML }, ...T < w.children.length - 1 ? w.children.slice(T + 1) : []],
|
|
4347
|
+
n = Date.now(), C.cut.dataset.cutkey = n, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML }, ...T < w.children.length - 1 ? w.children.slice(T + 1) : []], h[h.length - 1].height = ye(C.cut).top - y.top;
|
|
4348
4348
|
else {
|
|
4349
4349
|
if (!de.length) {
|
|
4350
4350
|
let _ = { ...S };
|
|
@@ -4359,17 +4359,17 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
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 = "";
|
|
@@ -4382,7 +4382,7 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4382
4382
|
break;
|
|
4383
4383
|
}
|
|
4384
4384
|
}
|
|
4385
|
-
B.contains(C.targetEl) && U.push(_), n && (
|
|
4385
|
+
B.contains(C.targetEl) && U.push(_), n && (h[h.length - 1].height = ye(C.cut).top - y.top);
|
|
4386
4386
|
}
|
|
4387
4387
|
de = [S, ...T < w.children.length - 1 ? w.children.slice(T + 1) : []];
|
|
4388
4388
|
}
|
|
@@ -4392,21 +4392,21 @@ const Es = /* @__PURE__ */ me(Ps, [["__scopeId", "data-v-90e967d8"]]), ye = (e)
|
|
|
4392
4392
|
U.push(S);
|
|
4393
4393
|
}), g)
|
|
4394
4394
|
return;
|
|
4395
|
-
|
|
4395
|
+
h[h.length - 1].data[h[h.length - 1].data.length - 1].children = U, de.length ? (z(), A({ ...w, isHidden: !0, children: de })) : (s([...h]), P++, A());
|
|
4396
4396
|
}
|
|
4397
4397
|
});
|
|
4398
4398
|
};
|
|
4399
4399
|
A();
|
|
4400
|
-
},
|
|
4401
|
-
|
|
4402
|
-
const
|
|
4403
|
-
function
|
|
4404
|
-
return
|
|
4400
|
+
}, Wt = window.CKEDITOR;
|
|
4401
|
+
Wt.disableAutoInline = !0;
|
|
4402
|
+
const bt = `dx${Math.random().toString(32).substring(2)}`;
|
|
4403
|
+
function Ds(e, t) {
|
|
4404
|
+
return Wt[e](bt, {
|
|
4405
4405
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
4406
4406
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
4407
4407
|
});
|
|
4408
4408
|
}
|
|
4409
|
-
const
|
|
4409
|
+
const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Ns = ["disabled", "contentEditable", "id"], Os = /* @__PURE__ */ ne({
|
|
4410
4410
|
__name: "index",
|
|
4411
4411
|
props: {
|
|
4412
4412
|
value: {},
|
|
@@ -4415,17 +4415,17 @@ 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 =
|
|
4418
|
+
const o = e, l = qt("ckeditorOrigin", ""), i = V();
|
|
4419
4419
|
De(() => o.readonly, () => a()), Ke(() => a());
|
|
4420
4420
|
const a = () => {
|
|
4421
4421
|
if (window.CKEDITOR) {
|
|
4422
4422
|
if (o.readonly) {
|
|
4423
|
-
|
|
4423
|
+
i.value && (i.value.destroy(), i.value = null);
|
|
4424
4424
|
return;
|
|
4425
4425
|
}
|
|
4426
4426
|
lt(() => {
|
|
4427
|
-
|
|
4428
|
-
|
|
4427
|
+
i.value = Ds("inline", l), i.value && i.value.on("instanceReady", (n) => {
|
|
4428
|
+
i.value.setData(o.value);
|
|
4429
4429
|
});
|
|
4430
4430
|
});
|
|
4431
4431
|
} else {
|
|
@@ -4436,70 +4436,65 @@ const Ns = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4436
4436
|
}
|
|
4437
4437
|
}, s = () => {
|
|
4438
4438
|
t("blur");
|
|
4439
|
-
const n = y(
|
|
4439
|
+
const n = y(i.value.getData());
|
|
4440
4440
|
n !== o.value && t("change", n, o.name);
|
|
4441
4441
|
}, c = () => {
|
|
4442
4442
|
t("focus");
|
|
4443
4443
|
}, y = (n) => {
|
|
4444
|
-
const
|
|
4445
|
-
|
|
4446
|
-
const
|
|
4447
|
-
(
|
|
4444
|
+
const p = document.createElement("div");
|
|
4445
|
+
p.innerHTML = n, [...Array.from(p.querySelectorAll("*"))].forEach((h) => {
|
|
4446
|
+
const P = window.getComputedStyle(h);
|
|
4447
|
+
(P.display === "none" || P.width === "0px" && P.height === "0px" || P.opacity === "0" || P.visibility === "hidden") && h.remove();
|
|
4448
4448
|
});
|
|
4449
|
-
const
|
|
4450
|
-
[...Array.from(
|
|
4449
|
+
const M = (h = p) => {
|
|
4450
|
+
[...Array.from(h.childNodes)].forEach((P) => {
|
|
4451
4451
|
var z;
|
|
4452
|
-
if (
|
|
4453
|
-
|
|
4454
|
-
else if (
|
|
4452
|
+
if (P.nodeType === Node.ELEMENT_NODE && P.children.length)
|
|
4453
|
+
M(P);
|
|
4454
|
+
else if (P.nodeType === Node.TEXT_NODE) {
|
|
4455
4455
|
const j = document.createElement("span");
|
|
4456
|
-
j.textContent =
|
|
4456
|
+
j.textContent = P.textContent, window.REGULAR.underscore.test(P.textContent || "") && (window.getComputedStyle(P.parentNode).wordBreak !== "break-all" || !(P.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (P.textContent || "").length > 5 && (j.innerHTML = (P.textContent || "").replace(window.REGULAR.underscore, (A) => A.length > 5 ? `<span style="word-break: break-all">${A}</span>` : A)), (z = P.parentElement) == null || z.replaceChild(j, P);
|
|
4457
4457
|
}
|
|
4458
4458
|
});
|
|
4459
4459
|
};
|
|
4460
|
-
return
|
|
4460
|
+
return M(), p.innerHTML;
|
|
4461
4461
|
};
|
|
4462
|
-
return (n,
|
|
4463
|
-
o.readonly ? (
|
|
4462
|
+
return (n, p) => (r(), u("div", Bs, [
|
|
4463
|
+
o.readonly ? (r(), ee(Oe, {
|
|
4464
4464
|
key: 1,
|
|
4465
4465
|
data: o.value,
|
|
4466
4466
|
class: "raw_view"
|
|
4467
|
-
}, null, 8, ["data"])) : (
|
|
4467
|
+
}, null, 8, ["data"])) : (r(), u("div", {
|
|
4468
4468
|
key: 0,
|
|
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(bt),
|
|
4473
4473
|
onFocus: c,
|
|
4474
4474
|
onBlur: s
|
|
4475
|
-
}, null, 40,
|
|
4475
|
+
}, null, 40, Ns))
|
|
4476
4476
|
]));
|
|
4477
4477
|
}
|
|
4478
4478
|
});
|
|
4479
|
-
const
|
|
4480
|
-
let dt = null;
|
|
4481
|
-
const Hs = {
|
|
4479
|
+
const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
|
|
4482
4480
|
mounted: (e, t) => {
|
|
4483
|
-
let o =
|
|
4484
|
-
const
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
const
|
|
4488
|
-
|
|
4489
|
-
}),
|
|
4490
|
-
|
|
4491
|
-
}
|
|
4492
|
-
if (
|
|
4481
|
+
let o = null, l = null, i = {}, a = !1, s = e.offsetParent, c = {}, y = {}, n = {};
|
|
4482
|
+
const p = e.querySelector(".move-target") || e;
|
|
4483
|
+
p.style.cursor = "move", p.addEventListener("mousedown", (M) => {
|
|
4484
|
+
a = !!e.dataset.safe, s = e.offsetParent;
|
|
4485
|
+
const h = window.getComputedStyle(e);
|
|
4486
|
+
i = { x: M.clientX, y: M.clientY }, c = { x: parseInt(h.left), y: parseInt(h.top) }, document.addEventListener("mousemove", o), document.addEventListener("mouseup", l), document.addEventListener("mouseleave", l);
|
|
4487
|
+
}), l = () => {
|
|
4488
|
+
t.value && typeof t.value == "function" && t.value(n), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", l), document.removeEventListener("mouseleave", l);
|
|
4489
|
+
}, o = (M) => {
|
|
4490
|
+
if (e.getAttribute("disabled") === "true")
|
|
4493
4491
|
return;
|
|
4494
|
-
|
|
4495
|
-
const
|
|
4496
|
-
e.style.left = `${
|
|
4497
|
-
}
|
|
4498
|
-
},
|
|
4499
|
-
unmounted: () => {
|
|
4500
|
-
document.removeEventListener("mousemove", dt);
|
|
4492
|
+
M.stopPropagation(), M.preventDefault(), y = { x: M.clientX, y: M.clientY };
|
|
4493
|
+
const h = a ? Math.min(Math.max(y.x - i.x + c.x, 0), s.offsetWidth - e.offsetWidth) : y.x - i.x + c.x, P = a ? Math.min(Math.max(y.y - i.y + c.y, 0), s.offsetHeight - e.offsetHeight) : y.y - i.y + c.y;
|
|
4494
|
+
e.style.left = `${h}px`, e.style.top = `${P}px`, n = { x: h, y: P };
|
|
4495
|
+
};
|
|
4501
4496
|
}
|
|
4502
|
-
},
|
|
4497
|
+
}, Hs = ["onMousedown", "data-block"], Ws = ["src"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Qs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, qs = ["onMousedown"], Ys = ["onMousedown"], Ks = ["disabled", "onMousedown", "data-block"], Us = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Vs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, js = ["onMousedown"], Xs = /* @__PURE__ */ ne({
|
|
4503
4498
|
__name: "absItem",
|
|
4504
4499
|
props: {
|
|
4505
4500
|
imgData: {},
|
|
@@ -4511,7 +4506,7 @@ const Hs = {
|
|
|
4511
4506
|
},
|
|
4512
4507
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4513
4508
|
setup(e, { emit: t }) {
|
|
4514
|
-
const o = e, l =
|
|
4509
|
+
const o = e, l = Rs, i = [
|
|
4515
4510
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4516
4511
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4517
4512
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4522,13 +4517,13 @@ const Hs = {
|
|
|
4522
4517
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4523
4518
|
], a = V({}), s = V(), c = V(0), y = V(0), n = V();
|
|
4524
4519
|
V();
|
|
4525
|
-
const
|
|
4520
|
+
const p = V({}), M = V(!1), h = V(), P = V(), z = V(), j = W(() => o.imgData.map(($) => ({
|
|
4526
4521
|
...$,
|
|
4527
4522
|
top: $.top - Math.floor($.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4528
4523
|
}))), X = W(() => o.txtData.map(($) => ({
|
|
4529
4524
|
...$,
|
|
4530
4525
|
top: $.top - Math.floor($.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4531
|
-
}))), A = W(() =>
|
|
4526
|
+
}))), A = W(() => h.value ? h.value.split("-")[0] === "img" ? j.value.find((v) => v.key === h.value) : X.value.find((v) => v.key === h.value) : null), w = W(() => A.value ? { [A.value.key]: { ...s.value } } : {});
|
|
4532
4527
|
De(() => o.activeAbsItem, () => {
|
|
4533
4528
|
o.activeAbsItem && Y({ ...o.activeAbsItem });
|
|
4534
4529
|
}), De(() => o.target, () => {
|
|
@@ -4538,15 +4533,15 @@ const Hs = {
|
|
|
4538
4533
|
});
|
|
4539
4534
|
const G = ($) => {
|
|
4540
4535
|
var v;
|
|
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) }));
|
|
4536
|
+
console.log($), 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
4537
|
}, ie = ($) => {
|
|
4543
|
-
|
|
4538
|
+
M.value = $;
|
|
4544
4539
|
}, C = () => {
|
|
4545
4540
|
const $ = A.value, v = $.left + $.width / 2, _ = $.top + $.height / 2, R = n.value.getBoundingClientRect() || {};
|
|
4546
|
-
|
|
4541
|
+
p.value = { x: v + R.left, y: _ + R.top }, n.value.addEventListener("mousemove", U), n.value.addEventListener("mouseleave", de), n.value.addEventListener("mouseup", de);
|
|
4547
4542
|
}, U = ($) => {
|
|
4548
4543
|
$.stopPropagation(), $.preventDefault();
|
|
4549
|
-
const v = $.clientX -
|
|
4544
|
+
const v = $.clientX - p.value.x, _ = p.value.y - $.clientY, R = Math.atan2(_, v) / (Math.PI / 180);
|
|
4550
4545
|
s.value = { ...A.value, rotate: -parseInt(R.toString()) };
|
|
4551
4546
|
}, de = ($) => {
|
|
4552
4547
|
$.stopPropagation(), $.preventDefault(), t("changeAbsImgItem", s.value), n.value.removeEventListener("mousemove", U), n.value.removeEventListener("mouseleave", de), n.value.removeEventListener("mouseup", de);
|
|
@@ -4558,7 +4553,7 @@ const Hs = {
|
|
|
4558
4553
|
[
|
|
4559
4554
|
// 0
|
|
4560
4555
|
() => {
|
|
4561
|
-
const
|
|
4556
|
+
const E = {
|
|
4562
4557
|
width: a.value.width - v.x,
|
|
4563
4558
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4564
4559
|
}[R], H = {
|
|
@@ -4567,26 +4562,26 @@ const Hs = {
|
|
|
4567
4562
|
}[R];
|
|
4568
4563
|
s.value = {
|
|
4569
4564
|
..._,
|
|
4570
|
-
width:
|
|
4565
|
+
width: E,
|
|
4571
4566
|
height: H,
|
|
4572
|
-
left: a.value.left - (
|
|
4567
|
+
left: a.value.left - (E - a.value.width),
|
|
4573
4568
|
top: a.value.top - (H - a.value.height)
|
|
4574
4569
|
};
|
|
4575
4570
|
},
|
|
4576
4571
|
// 1
|
|
4577
4572
|
() => {
|
|
4578
|
-
const
|
|
4573
|
+
const E = a.value.width * (1 - v.y / a.value.height), H = a.value.height - v.y;
|
|
4579
4574
|
s.value = {
|
|
4580
4575
|
..._,
|
|
4581
|
-
width:
|
|
4576
|
+
width: E,
|
|
4582
4577
|
height: H,
|
|
4583
|
-
left: a.value.left - (
|
|
4578
|
+
left: a.value.left - (E - a.value.width) / 2,
|
|
4584
4579
|
top: a.value.top - (H - a.value.height)
|
|
4585
4580
|
};
|
|
4586
4581
|
},
|
|
4587
4582
|
// 2
|
|
4588
4583
|
() => {
|
|
4589
|
-
const
|
|
4584
|
+
const E = {
|
|
4590
4585
|
width: a.value.height * (1 + v.x / a.value.width),
|
|
4591
4586
|
height: a.value.height - v.y
|
|
4592
4587
|
}[R];
|
|
@@ -4596,34 +4591,34 @@ const Hs = {
|
|
|
4596
4591
|
width: a.value.width + v.x,
|
|
4597
4592
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4598
4593
|
}[R],
|
|
4599
|
-
height:
|
|
4600
|
-
top: a.value.top - (
|
|
4594
|
+
height: E,
|
|
4595
|
+
top: a.value.top - (E - a.value.height)
|
|
4601
4596
|
};
|
|
4602
4597
|
},
|
|
4603
4598
|
// 3
|
|
4604
4599
|
() => {
|
|
4605
|
-
const
|
|
4600
|
+
const E = a.value.width - v.x, H = a.value.height * (1 - v.x / a.value.width);
|
|
4606
4601
|
s.value = {
|
|
4607
4602
|
..._,
|
|
4608
|
-
width:
|
|
4603
|
+
width: E,
|
|
4609
4604
|
height: H,
|
|
4610
|
-
left: a.value.left - (
|
|
4605
|
+
left: a.value.left - (E - a.value.width),
|
|
4611
4606
|
top: a.value.top - (H - a.value.height) / 2
|
|
4612
4607
|
};
|
|
4613
4608
|
},
|
|
4614
4609
|
// 4
|
|
4615
4610
|
() => {
|
|
4616
|
-
const
|
|
4611
|
+
const E = a.value.width + v.x, H = a.value.height * (1 + v.x / a.value.width);
|
|
4617
4612
|
s.value = {
|
|
4618
4613
|
..._,
|
|
4619
|
-
width:
|
|
4614
|
+
width: E,
|
|
4620
4615
|
height: H,
|
|
4621
4616
|
top: a.value.top - (H - a.value.height) / 2
|
|
4622
4617
|
};
|
|
4623
4618
|
},
|
|
4624
4619
|
// 5
|
|
4625
4620
|
() => {
|
|
4626
|
-
const
|
|
4621
|
+
const E = {
|
|
4627
4622
|
width: a.value.width - v.x,
|
|
4628
4623
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4629
4624
|
}[R], H = {
|
|
@@ -4632,24 +4627,24 @@ const Hs = {
|
|
|
4632
4627
|
}[R];
|
|
4633
4628
|
s.value = {
|
|
4634
4629
|
..._,
|
|
4635
|
-
width:
|
|
4630
|
+
width: E,
|
|
4636
4631
|
height: H,
|
|
4637
|
-
left: a.value.left - (
|
|
4632
|
+
left: a.value.left - (E - a.value.width)
|
|
4638
4633
|
};
|
|
4639
4634
|
},
|
|
4640
4635
|
// 6
|
|
4641
4636
|
() => {
|
|
4642
|
-
const
|
|
4637
|
+
const E = a.value.width * (1 + v.y / a.value.height), H = a.value.height + v.y;
|
|
4643
4638
|
s.value = {
|
|
4644
4639
|
..._,
|
|
4645
|
-
width:
|
|
4640
|
+
width: E,
|
|
4646
4641
|
height: H,
|
|
4647
|
-
left: a.value.left - (
|
|
4642
|
+
left: a.value.left - (E - a.value.width) / 2
|
|
4648
4643
|
};
|
|
4649
4644
|
},
|
|
4650
4645
|
// 7
|
|
4651
4646
|
() => {
|
|
4652
|
-
const
|
|
4647
|
+
const E = {
|
|
4653
4648
|
width: a.value.width + v.x,
|
|
4654
4649
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4655
4650
|
}[R], H = {
|
|
@@ -4658,7 +4653,7 @@ const Hs = {
|
|
|
4658
4653
|
}[R];
|
|
4659
4654
|
s.value = {
|
|
4660
4655
|
..._,
|
|
4661
|
-
width:
|
|
4656
|
+
width: E,
|
|
4662
4657
|
height: H
|
|
4663
4658
|
};
|
|
4664
4659
|
}
|
|
@@ -4720,29 +4715,29 @@ const Hs = {
|
|
|
4720
4715
|
t("changeAbsTxtItem", { ...A.value, content: $ });
|
|
4721
4716
|
}, Y = ($, v) => {
|
|
4722
4717
|
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 || [...
|
|
4718
|
+
const _ = document.body.querySelector(`.cke_editor_${bt}`);
|
|
4719
|
+
!$ && ((Q = (R = v == null ? void 0 : v.target) == null ? void 0 : R.dataset) != null && Q.safe || [...P.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (h.value = $ == null ? void 0 : $.key, $ && (s.value = { ...$ }));
|
|
4725
4720
|
};
|
|
4726
|
-
return ($, v) => (
|
|
4727
|
-
(
|
|
4728
|
-
var R, Q,
|
|
4729
|
-
return
|
|
4721
|
+
return ($, v) => (r(), u(N, null, [
|
|
4722
|
+
(r(!0), u(N, null, le(j.value, (_) => {
|
|
4723
|
+
var R, Q, E, H, K, se, $e;
|
|
4724
|
+
return Ct((r(), u("div", {
|
|
4730
4725
|
key: _.id,
|
|
4731
4726
|
ref_for: !0,
|
|
4732
4727
|
ref_key: "imgViewList",
|
|
4733
|
-
ref:
|
|
4728
|
+
ref: P,
|
|
4734
4729
|
"data-safe": "true",
|
|
4735
4730
|
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:
|
|
4731
|
+
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)` }),
|
|
4732
|
+
onClick: v[0] || (v[0] = Ee((ge) => $.void, ["stop"])),
|
|
4733
|
+
onMousedown: Ee((ge) => Y(_), ["stop"]),
|
|
4739
4734
|
"data-block": L(Be)
|
|
4740
4735
|
}, [
|
|
4741
4736
|
k("img", {
|
|
4742
4737
|
src: _.url
|
|
4743
|
-
}, null, 8,
|
|
4744
|
-
(($e = A.value) == null ? void 0 : $e.key) === _.key ? (
|
|
4745
|
-
k("span",
|
|
4738
|
+
}, null, 8, Ws),
|
|
4739
|
+
(($e = A.value) == null ? void 0 : $e.key) === _.key ? (r(), u(N, { key: 0 }, [
|
|
4740
|
+
k("span", Gs, [
|
|
4746
4741
|
ae(ve, {
|
|
4747
4742
|
name: "close",
|
|
4748
4743
|
width: 2,
|
|
@@ -4750,44 +4745,44 @@ const Hs = {
|
|
|
4750
4745
|
onClick: (ge) => t("delAbsImgItem", _)
|
|
4751
4746
|
}, null, 8, ["onClick"])
|
|
4752
4747
|
]),
|
|
4753
|
-
k("div",
|
|
4754
|
-
(
|
|
4748
|
+
k("div", Qs, [
|
|
4749
|
+
(r(), u(N, null, le(8, (ge, we) => k("div", {
|
|
4755
4750
|
key: ge,
|
|
4756
4751
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4757
|
-
style: Z({ ...
|
|
4758
|
-
onMousedown:
|
|
4759
|
-
}, null, 44,
|
|
4752
|
+
style: Z({ ...i[we], transform: "translate(-50%, -50%)" }),
|
|
4753
|
+
onMousedown: Ee((b) => g(b, we), ["stop"])
|
|
4754
|
+
}, null, 44, qs)), 64))
|
|
4760
4755
|
]),
|
|
4761
4756
|
k("span", {
|
|
4762
4757
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
4763
|
-
onMousedown:
|
|
4758
|
+
onMousedown: Ee(C, ["stop"])
|
|
4764
4759
|
}, [
|
|
4765
4760
|
ae(ve, {
|
|
4766
4761
|
name: "reset",
|
|
4767
4762
|
width: 2
|
|
4768
4763
|
})
|
|
4769
|
-
], 40,
|
|
4764
|
+
], 40, Ys)
|
|
4770
4765
|
], 64)) : D("", !0)
|
|
4771
|
-
], 46,
|
|
4766
|
+
], 46, Hs)), [
|
|
4772
4767
|
[L(l), G]
|
|
4773
4768
|
]);
|
|
4774
4769
|
}), 128)),
|
|
4775
|
-
(
|
|
4776
|
-
var R, Q,
|
|
4777
|
-
return
|
|
4770
|
+
(r(!0), u(N, null, le(X.value, (_) => {
|
|
4771
|
+
var R, Q, E, H, K, se, $e;
|
|
4772
|
+
return Ct((r(), u("div", {
|
|
4778
4773
|
key: _.id,
|
|
4779
4774
|
ref_for: !0,
|
|
4780
4775
|
ref_key: "txtViewList",
|
|
4781
4776
|
ref: z,
|
|
4782
|
-
disabled:
|
|
4777
|
+
disabled: M.value,
|
|
4783
4778
|
"data-safe": "true",
|
|
4784
4779
|
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:
|
|
4780
|
+
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" }),
|
|
4781
|
+
onClick: v[3] || (v[3] = Ee((ge) => $.void, ["stop"])),
|
|
4782
|
+
onMousedown: Ee((ge) => Y(_), ["stop"]),
|
|
4788
4783
|
"data-block": L(Be)
|
|
4789
4784
|
}, [
|
|
4790
|
-
(
|
|
4785
|
+
(r(), ee(zs, {
|
|
4791
4786
|
key: y.value,
|
|
4792
4787
|
class: "border-0 relative z-4",
|
|
4793
4788
|
readonly: ((se = A.value) == null ? void 0 : se.key) !== _.key,
|
|
@@ -4797,8 +4792,8 @@ const Hs = {
|
|
|
4797
4792
|
onFocus: v[1] || (v[1] = (ge) => ie(!0)),
|
|
4798
4793
|
onBlur: v[2] || (v[2] = (ge) => ie(!1))
|
|
4799
4794
|
}, null, 8, ["readonly", "value", "name"])),
|
|
4800
|
-
(($e = A.value) == null ? void 0 : $e.key) === _.key ? (
|
|
4801
|
-
k("span",
|
|
4795
|
+
(($e = A.value) == null ? void 0 : $e.key) === _.key ? (r(), u(N, { key: 0 }, [
|
|
4796
|
+
k("span", Us, [
|
|
4802
4797
|
ae(ve, {
|
|
4803
4798
|
name: "close",
|
|
4804
4799
|
width: 2,
|
|
@@ -4806,28 +4801,28 @@ const Hs = {
|
|
|
4806
4801
|
onClick: (ge) => t("delAbsTxtItem", _)
|
|
4807
4802
|
}, null, 8, ["onClick"])
|
|
4808
4803
|
]),
|
|
4809
|
-
k("div",
|
|
4810
|
-
(
|
|
4804
|
+
k("div", Vs, [
|
|
4805
|
+
(r(), u(N, null, le(8, (ge, we) => k("div", {
|
|
4811
4806
|
key: ge,
|
|
4812
4807
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
4813
|
-
style: Z({ ...
|
|
4808
|
+
style: Z({ ...i[we], transform: "translate(-50%, -50%)" }),
|
|
4814
4809
|
onMousedown: (b) => g(b, we)
|
|
4815
|
-
}, null, 44,
|
|
4810
|
+
}, null, 44, js)), 64))
|
|
4816
4811
|
])
|
|
4817
4812
|
], 64)) : D("", !0)
|
|
4818
|
-
], 46,
|
|
4813
|
+
], 46, Ks)), [
|
|
4819
4814
|
[L(l), G]
|
|
4820
4815
|
]);
|
|
4821
4816
|
}), 128))
|
|
4822
4817
|
], 64));
|
|
4823
4818
|
}
|
|
4824
4819
|
});
|
|
4825
|
-
const
|
|
4820
|
+
const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-4d620c5a"]]), Zs = ["viewBox"], ei = {
|
|
4826
4821
|
x: "0",
|
|
4827
4822
|
y: "0",
|
|
4828
4823
|
width: "100%",
|
|
4829
4824
|
height: "100%"
|
|
4830
|
-
},
|
|
4825
|
+
}, ti = ["onClick", "onDblclick"], oi = ["data-block"], ai = /* @__PURE__ */ ne({
|
|
4831
4826
|
__name: "index",
|
|
4832
4827
|
props: {
|
|
4833
4828
|
layout: {},
|
|
@@ -4845,21 +4840,21 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4845
4840
|
emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
|
|
4846
4841
|
setup(e, { emit: t }) {
|
|
4847
4842
|
const o = e;
|
|
4848
|
-
|
|
4849
|
-
const l = V([]),
|
|
4843
|
+
Yt("ckeditorOrigin", o.ckeditorOrigin);
|
|
4844
|
+
const l = V([]), i = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]), p = V([]), M = V([]), h = V([]), P = W(() => o.data.map((b) => ({
|
|
4850
4845
|
...b,
|
|
4851
|
-
__tag__:
|
|
4846
|
+
__tag__: $t(),
|
|
4852
4847
|
rawChildren: b.children,
|
|
4853
|
-
children: b.children.map((F) => ({ ...F, ...$(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__:
|
|
4848
|
+
children: b.children.map((F) => ({ ...F, ...$(F), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: $t() }))
|
|
4854
4849
|
}))), z = W(() => {
|
|
4855
|
-
if (!
|
|
4850
|
+
if (!P.value.length)
|
|
4856
4851
|
return;
|
|
4857
|
-
const b =
|
|
4852
|
+
const b = P.value[P.value.length - 1], F = b.rawChildren[b.rawChildren.length - 1];
|
|
4858
4853
|
return ie.value && [m.slove].includes(F == null ? void 0 : F.problemType) && F.id;
|
|
4859
4854
|
}), j = W(() => {
|
|
4860
4855
|
var b;
|
|
4861
4856
|
return o.layout.bindFlag && !!((b = Ge.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 ||
|
|
4857
|
+
}), 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 || yt[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
4858
|
width: `${x[o.layout.paper].width}px`,
|
|
4864
4859
|
height: `${(x[o.layout.paper].height + X.value) * G.value - X.value}px`
|
|
4865
4860
|
})), B = W(() => ({
|
|
@@ -4875,7 +4870,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4875
4870
|
top: `${U.value.top}px`,
|
|
4876
4871
|
width: b ? `${de.value}px` : `${S.value}px`
|
|
4877
4872
|
};
|
|
4878
|
-
}), Y = W(() =>
|
|
4873
|
+
}), Y = W(() => At.filter((b) => o.info.bindExtentInfo[b.code]).map((b) => o.info.bindExtentInfo[b.key]));
|
|
4879
4874
|
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
4875
|
setTimeout(() => {
|
|
4881
4876
|
ge();
|
|
@@ -4888,10 +4883,10 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4888
4883
|
if ([m.slove].includes(F.problemType) && ie.value) {
|
|
4889
4884
|
const _e = document.createElement("div");
|
|
4890
4885
|
_e.innerHTML = F.answerArea;
|
|
4891
|
-
const J = _e.querySelector(
|
|
4886
|
+
const J = _e.querySelector(Bt.sub);
|
|
4892
4887
|
if (J) {
|
|
4893
4888
|
const re = document.createElement("div");
|
|
4894
|
-
re.innerHTML =
|
|
4889
|
+
re.innerHTML = rs(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
4890
|
}
|
|
4896
4891
|
}
|
|
4897
4892
|
return F;
|
|
@@ -4900,11 +4895,11 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4900
4895
|
return F >= o.layout.column ? F - o.layout.column : F;
|
|
4901
4896
|
}, Q = (b, F) => {
|
|
4902
4897
|
b ? n.value[F] = b : n.value.splice(F, 1);
|
|
4903
|
-
},
|
|
4904
|
-
b ?
|
|
4905
|
-
}, H = (b) =>
|
|
4898
|
+
}, E = (b, F) => {
|
|
4899
|
+
b ? p.value[F] = b : p.value.splice(F, 1);
|
|
4900
|
+
}, H = (b) => Mt[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
4901
|
var J, re;
|
|
4907
|
-
const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((J =
|
|
4902
|
+
const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((J = M.value[Math.min(F, 1)]) == null ? void 0 : J.offsetHeight) || 0;
|
|
4908
4903
|
return {
|
|
4909
4904
|
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
4905
|
top: `${_e + U.value.top + (!F && !b ? 0 : C.value.top)}px`,
|
|
@@ -4913,12 +4908,12 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4913
4908
|
contentHeight: `${(re = l.value[b]) == null ? void 0 : re.height}px`
|
|
4914
4909
|
};
|
|
4915
4910
|
}, $e = (b, F = !1) => {
|
|
4916
|
-
|
|
4917
|
-
a.value = Math.ceil(l.value.length / o.layout.column),
|
|
4911
|
+
i.value = b.map((_e) => ({ ..._e })), F && (l.value = [...b], s.value += 1, lt(() => {
|
|
4912
|
+
a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], p.value.forEach((_e, J) => {
|
|
4918
4913
|
var re, Ie;
|
|
4919
4914
|
!_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
4915
|
}), o.isFinal && setTimeout(() => {
|
|
4921
|
-
const _e =
|
|
4916
|
+
const _e = ks({
|
|
4922
4917
|
config: {
|
|
4923
4918
|
...o.info,
|
|
4924
4919
|
layout: o.layout,
|
|
@@ -4926,8 +4921,8 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4926
4921
|
bindWidth: c.value,
|
|
4927
4922
|
pageMargin: X.value,
|
|
4928
4923
|
pageDom: n.value.slice(0, w.value),
|
|
4929
|
-
colDom:
|
|
4930
|
-
colViewDom:
|
|
4924
|
+
colDom: p.value.map((J) => J.col),
|
|
4925
|
+
colViewDom: p.value.map((J) => J.colView)
|
|
4931
4926
|
},
|
|
4932
4927
|
data: l.value
|
|
4933
4928
|
});
|
|
@@ -4935,9 +4930,9 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4935
4930
|
}, 500);
|
|
4936
4931
|
}));
|
|
4937
4932
|
}, ge = () => {
|
|
4938
|
-
|
|
4933
|
+
As({
|
|
4939
4934
|
el: y.value,
|
|
4940
|
-
data:
|
|
4935
|
+
data: P.value,
|
|
4941
4936
|
column: o.layout.column,
|
|
4942
4937
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
4943
4938
|
getColSize: se,
|
|
@@ -4948,11 +4943,11 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4948
4943
|
};
|
|
4949
4944
|
return (b, F) => {
|
|
4950
4945
|
var _e;
|
|
4951
|
-
return
|
|
4952
|
-
b.readonly ? D("", !0) : (
|
|
4946
|
+
return r(), u(N, null, [
|
|
4947
|
+
b.readonly ? D("", !0) : (r(), ee(Es, {
|
|
4953
4948
|
key: 0,
|
|
4954
4949
|
ColList: l.value,
|
|
4955
|
-
ColDom:
|
|
4950
|
+
ColDom: p.value.map((J) => J.col),
|
|
4956
4951
|
ImgData: b.imgData,
|
|
4957
4952
|
TxtData: b.txtData,
|
|
4958
4953
|
onDelAbsImgItem: F[0] || (F[0] = (J) => t("delAbsImgItem", J)),
|
|
@@ -4969,32 +4964,32 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
4969
4964
|
ref_key: "rawDom",
|
|
4970
4965
|
ref: y
|
|
4971
4966
|
}, [
|
|
4972
|
-
|
|
4973
|
-
J.isHidden ? D("", !0) : (
|
|
4967
|
+
i.value.length ? (r(!0), u(N, { key: 0 }, le((_e = i.value[i.value.length - 1]) == null ? void 0 : _e.data, (J, re) => (r(), u(N, null, [
|
|
4968
|
+
J.isHidden ? D("", !0) : (r(), ee(It, {
|
|
4974
4969
|
key: 0,
|
|
4975
4970
|
item: J,
|
|
4976
4971
|
showColBorder: ie.value,
|
|
4977
|
-
isFirst: !re &&
|
|
4972
|
+
isFirst: !re && i.value.length === 1,
|
|
4978
4973
|
layout: b.layout
|
|
4979
4974
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
4980
|
-
ie.value ? (
|
|
4975
|
+
ie.value ? (r(), u("div", {
|
|
4981
4976
|
key: 1,
|
|
4982
4977
|
class: oe([!J.children.length && J.problemType && "p-1 min-h-[2rem]"])
|
|
4983
4978
|
}, [
|
|
4984
|
-
(
|
|
4979
|
+
(r(), ee(Ve, {
|
|
4985
4980
|
data: J,
|
|
4986
|
-
key:
|
|
4981
|
+
key: i.value.length,
|
|
4987
4982
|
layout: b.layout,
|
|
4988
4983
|
target: b.target,
|
|
4989
4984
|
noPortrait: "",
|
|
4990
|
-
width: K(
|
|
4985
|
+
width: K(i.value.length - 1)
|
|
4991
4986
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4992
|
-
], 2)) : (
|
|
4987
|
+
], 2)) : (r(), ee(Ve, {
|
|
4993
4988
|
data: J,
|
|
4994
|
-
key:
|
|
4989
|
+
key: i.value.length,
|
|
4995
4990
|
layout: b.layout,
|
|
4996
4991
|
target: b.target,
|
|
4997
|
-
width: K(
|
|
4992
|
+
width: K(i.value.length - 1)
|
|
4998
4993
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
4999
4994
|
], 64))), 256)) : D("", !0)
|
|
5000
4995
|
], 512),
|
|
@@ -5002,7 +4997,7 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5002
4997
|
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
4998
|
style: Z(T.value)
|
|
5004
4999
|
}, [
|
|
5005
|
-
ae(
|
|
5000
|
+
ae(Js, {
|
|
5006
5001
|
imgData: b.imgData,
|
|
5007
5002
|
txtData: b.txtData,
|
|
5008
5003
|
activeAbsItem: b.activeAbsItem,
|
|
@@ -5014,22 +5009,22 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5014
5009
|
onChangeAbsTxtItem: F[5] || (F[5] = (J) => t("changeAbsTxtItem", J)),
|
|
5015
5010
|
onDelAbsTxtItem: F[6] || (F[6] = (J) => t("delAbsTxtItem", J))
|
|
5016
5011
|
}, null, 8, ["imgData", "txtData", "activeAbsItem", "target", "layout", "pageMargin"]),
|
|
5017
|
-
(
|
|
5012
|
+
(r(), u("svg", {
|
|
5018
5013
|
viewBox: `0 0 ${parseFloat(T.value.width)} ${parseFloat(T.value.height)}`,
|
|
5019
5014
|
version: "1.1",
|
|
5020
5015
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5021
5016
|
key: s.value
|
|
5022
5017
|
}, [
|
|
5023
|
-
(
|
|
5024
|
-
(
|
|
5018
|
+
(r(), u("foreignObject", ei, [
|
|
5019
|
+
(r(!0), u(N, null, le(G.value, (J, re) => (r(), u("div", {
|
|
5025
5020
|
key: J,
|
|
5026
5021
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
5027
5022
|
ref_for: !0,
|
|
5028
5023
|
ref: (Ie) => Q(Ie, re),
|
|
5029
5024
|
style: Z(B.value)
|
|
5030
5025
|
}, [
|
|
5031
|
-
re < w.value ? (
|
|
5032
|
-
ae(
|
|
5026
|
+
re < w.value ? (r(), u(N, { key: 0 }, [
|
|
5027
|
+
ae(To, {
|
|
5033
5028
|
layout: b.layout,
|
|
5034
5029
|
currentPage: re,
|
|
5035
5030
|
totalPage: w.value,
|
|
@@ -5038,16 +5033,16 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5038
5033
|
bindWidth: c.value,
|
|
5039
5034
|
padding: U.value
|
|
5040
5035
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
5041
|
-
b.layout.sloganFlag ? (
|
|
5036
|
+
b.layout.sloganFlag ? (r(), ee(Eo, {
|
|
5042
5037
|
key: 0,
|
|
5043
5038
|
info: b.info,
|
|
5044
5039
|
layout: b.layout,
|
|
5045
5040
|
onChange: F[7] || (F[7] = (Ie) => t("changeInfo", Ie))
|
|
5046
5041
|
}, null, 8, ["info", "layout"])) : D("", !0),
|
|
5047
|
-
ae(
|
|
5042
|
+
ae(nl, {
|
|
5048
5043
|
ref_for: !0,
|
|
5049
5044
|
ref_key: "bindDom",
|
|
5050
|
-
ref:
|
|
5045
|
+
ref: h,
|
|
5051
5046
|
currentPage: re,
|
|
5052
5047
|
width: c.value,
|
|
5053
5048
|
height: g.value,
|
|
@@ -5055,49 +5050,49 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5055
5050
|
bindSeatType: b.layout.bindSeatType,
|
|
5056
5051
|
bindInfo: Y.value
|
|
5057
5052
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
5058
|
-
!(re % 2) || re === 1 && w.value < 3 ? (
|
|
5053
|
+
!(re % 2) || re === 1 && w.value < 3 ? (r(), u("div", {
|
|
5059
5054
|
key: 1,
|
|
5060
5055
|
ref_for: !0,
|
|
5061
5056
|
ref_key: "titleDom",
|
|
5062
|
-
ref:
|
|
5057
|
+
ref: M,
|
|
5063
5058
|
class: oe(["absolute text-black", re === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5064
5059
|
style: Z(ue.value)
|
|
5065
5060
|
}, [
|
|
5066
|
-
ae(
|
|
5061
|
+
ae(Oo, {
|
|
5067
5062
|
layout: b.layout,
|
|
5068
5063
|
code: b.info.textCode
|
|
5069
5064
|
}, null, 8, ["layout", "code"]),
|
|
5070
|
-
ae(
|
|
5065
|
+
ae(ia, {
|
|
5071
5066
|
info: b.info,
|
|
5072
5067
|
layout: b.layout,
|
|
5073
5068
|
fontConfig: b.fontConfig,
|
|
5074
5069
|
data: b.data,
|
|
5075
5070
|
onChange: F[8] || (F[8] = (Ie) => t("changeInfo", Ie))
|
|
5076
5071
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5077
|
-
ae(
|
|
5072
|
+
ae(Ta, {
|
|
5078
5073
|
layout: b.layout,
|
|
5079
5074
|
info: b.info,
|
|
5080
5075
|
isBindFlag: j.value,
|
|
5081
5076
|
onChange: F[9] || (F[9] = (Ie) => t("changeExtentInfo", Ie))
|
|
5082
5077
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5083
|
-
ae(
|
|
5078
|
+
ae(Ha, {
|
|
5084
5079
|
layout: b.layout,
|
|
5085
5080
|
isBindFlag: j.value
|
|
5086
5081
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5087
|
-
re ? D("", !0) : (
|
|
5082
|
+
re ? D("", !0) : (r(), ee(Ua, {
|
|
5088
5083
|
key: 0,
|
|
5089
5084
|
layout: b.layout,
|
|
5090
5085
|
data: b.data
|
|
5091
5086
|
}, null, 8, ["layout", "data"])),
|
|
5092
|
-
b.layout.writeScoreFlag && !re ? (
|
|
5087
|
+
b.layout.writeScoreFlag && !re ? (r(), ee(kl, {
|
|
5093
5088
|
key: 1,
|
|
5094
5089
|
info: b.info,
|
|
5095
5090
|
layout: b.layout
|
|
5096
5091
|
}, null, 8, ["info", "layout"])) : D("", !0)
|
|
5097
5092
|
], 6)) : D("", !0),
|
|
5098
|
-
(
|
|
5093
|
+
(r(!0), u(N, null, le(re % 2 ? b.layout.backColumn : b.layout.column, (Ie, Ae) => (r(), ee(ja, {
|
|
5099
5094
|
ref_for: !0,
|
|
5100
|
-
ref: (Ue) =>
|
|
5095
|
+
ref: (Ue) => E(Ue, _(Ae, re)),
|
|
5101
5096
|
styleInfo: se(_(Ae, re), re),
|
|
5102
5097
|
column: b.layout.column,
|
|
5103
5098
|
currentColumn: _(Ae, re),
|
|
@@ -5106,23 +5101,23 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5106
5101
|
default: Et(() => {
|
|
5107
5102
|
var Ue;
|
|
5108
5103
|
return [
|
|
5109
|
-
(
|
|
5110
|
-
var
|
|
5111
|
-
return
|
|
5112
|
-
ke.isHidden ? D("", !0) : (
|
|
5104
|
+
(r(!0), u(N, null, le(((Ue = l.value[_(Ae, re)]) == null ? void 0 : Ue.data) || [], (ke, Gt) => {
|
|
5105
|
+
var vt;
|
|
5106
|
+
return r(), u(N, null, [
|
|
5107
|
+
ke.isHidden ? D("", !0) : (r(), ee(It, {
|
|
5113
5108
|
key: 0,
|
|
5114
5109
|
item: ke,
|
|
5115
5110
|
showColBorder: ie.value,
|
|
5116
|
-
isFirst: !re && !Ae && !
|
|
5111
|
+
isFirst: !re && !Ae && !Gt,
|
|
5117
5112
|
layout: b.layout,
|
|
5118
|
-
isActive: ((
|
|
5113
|
+
isActive: ((vt = b.target.value) == null ? void 0 : vt.id) === ke.id,
|
|
5119
5114
|
onClick: (be) => we({ type: ke.problemType ? L(O).headline : L(O).headlineNotarea, value: ke }),
|
|
5120
5115
|
onDbclick: (be) => t("dbHeadLineClick", ke)
|
|
5121
5116
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5122
|
-
ie.value ? (
|
|
5117
|
+
ie.value ? (r(), u("div", {
|
|
5123
5118
|
key: 1,
|
|
5124
5119
|
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:
|
|
5120
|
+
onClick: Ee((be) => we({ type: ke.problemType ? L(O).headline : L(O).headlineNotarea, value: ke }), ["stop"]),
|
|
5126
5121
|
onDblclick: (be) => t("dbHeadLineClick", ke)
|
|
5127
5122
|
}, [
|
|
5128
5123
|
ae(Ve, {
|
|
@@ -5133,12 +5128,12 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5133
5128
|
onClick: F[10] || (F[10] = (be) => we({ type: be.problemType || be.notAreaFlag ? L(O).problem : L(O).problemNotarea, value: { ...be, problemType: be.problemType || be.sourceProblemType } })),
|
|
5134
5129
|
onDbclick: F[11] || (F[11] = (be) => t("dbProblemClick", be))
|
|
5135
5130
|
}, null, 8, ["data", "layout", "target", "width"]),
|
|
5136
|
-
ke.children.length && ke.children[ke.children.length - 1].id === z.value ? (
|
|
5131
|
+
ke.children.length && ke.children[ke.children.length - 1].id === z.value ? (r(), u("div", {
|
|
5137
5132
|
key: 0,
|
|
5138
5133
|
class: "border-t",
|
|
5139
5134
|
"data-block": L(Be)
|
|
5140
|
-
}, null, 8,
|
|
5141
|
-
], 42,
|
|
5135
|
+
}, null, 8, oi)) : D("", !0)
|
|
5136
|
+
], 42, ti)) : (r(), ee(Ve, {
|
|
5142
5137
|
key: 2,
|
|
5143
5138
|
data: ke,
|
|
5144
5139
|
layout: b.layout,
|
|
@@ -5156,15 +5151,15 @@ const Zs = /* @__PURE__ */ me(Js, [["__scopeId", "data-v-db8ee9a5"]]), ei = ["vi
|
|
|
5156
5151
|
], 64)) : D("", !0)
|
|
5157
5152
|
], 4))), 128))
|
|
5158
5153
|
]))
|
|
5159
|
-
], 8,
|
|
5154
|
+
], 8, Zs))
|
|
5160
5155
|
], 6)
|
|
5161
5156
|
])
|
|
5162
5157
|
], 64);
|
|
5163
5158
|
};
|
|
5164
5159
|
}
|
|
5165
5160
|
});
|
|
5166
|
-
const
|
|
5161
|
+
const si = /* @__PURE__ */ me(ai, [["__scopeId", "data-v-3cc4ec73"]]);
|
|
5167
5162
|
export {
|
|
5168
|
-
|
|
5169
|
-
|
|
5163
|
+
ni as Config,
|
|
5164
|
+
si as default
|
|
5170
5165
|
};
|