alit-layout 1.2.6 → 1.2.8
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 +853 -835
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as te, computed as H, openBlock as r, createElementBlock as d, Fragment as M, renderList as ee, createElementVNode as f, normalizeStyle as ae, unref as T, toDisplayString as Z, createCommentVNode as B, ref as X, watch as De, normalizeClass as le, createBlock as ie, createTextVNode as ot, createVNode as J, pushScopeId as Ne, popScopeId as Oe, createStaticVNode as Xt, resolveComponent as Bt, renderSlot as gt, onMounted as Ke, nextTick as st, withModifiers as Me, resolveDynamicComponent as $t, normalizeProps as Tt, guardReactiveProps as It, withCtx as Nt, inject as Jt, withDirectives as Lt, provide as Zt } from "vue";
|
|
2
|
+
const Xe = {
|
|
3
3
|
// 选择题
|
|
4
4
|
choice: "MULTIPLE_RADIO_QUESTION",
|
|
5
5
|
// 多选题
|
|
@@ -9,10 +9,10 @@ const Je = {
|
|
|
9
9
|
// 完形填空
|
|
10
10
|
cloze: "CLOZE_TEST"
|
|
11
11
|
}, pt = {
|
|
12
|
-
...
|
|
12
|
+
...Xe,
|
|
13
13
|
// 判断题
|
|
14
14
|
decide: "TRUE_OR_FALSE"
|
|
15
|
-
},
|
|
15
|
+
}, Qe = {
|
|
16
16
|
// 填空题
|
|
17
17
|
fill: "FILL_BLANKS",
|
|
18
18
|
// 听后填空
|
|
@@ -47,7 +47,7 @@ const Je = {
|
|
|
47
47
|
__notareaproblem: "QUES_NO_ANSWER_AREA"
|
|
48
48
|
}, m = {
|
|
49
49
|
...pt,
|
|
50
|
-
...
|
|
50
|
+
...Qe
|
|
51
51
|
}, Re = [
|
|
52
52
|
{ name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
|
|
53
53
|
{ name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0, disabled: !0 },
|
|
@@ -85,7 +85,7 @@ const Je = {
|
|
|
85
85
|
width: 1332,
|
|
86
86
|
height: 944
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, eo = {
|
|
89
89
|
article: {
|
|
90
90
|
a3: [
|
|
91
91
|
{ name: "两栏", code: 2 },
|
|
@@ -166,7 +166,7 @@ const Je = {
|
|
|
166
166
|
{ name: "两栏", code: 2 }
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
|
-
},
|
|
169
|
+
}, at = ["a3", "a3+", "8k", "b4"], bt = {
|
|
170
170
|
article: {
|
|
171
171
|
a3: {
|
|
172
172
|
top: k.a3.width / 420 * 20.5,
|
|
@@ -299,7 +299,7 @@ const Je = {
|
|
|
299
299
|
left: k.b4.width / 353 * 19
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
},
|
|
302
|
+
}, to = {
|
|
303
303
|
article: {
|
|
304
304
|
a3: 5,
|
|
305
305
|
"a3+": 5,
|
|
@@ -332,10 +332,10 @@ const Je = {
|
|
|
332
332
|
right: 6,
|
|
333
333
|
bottom: 21,
|
|
334
334
|
left: 6
|
|
335
|
-
},
|
|
335
|
+
}, oo = {
|
|
336
336
|
left: 5,
|
|
337
337
|
right: 5
|
|
338
|
-
},
|
|
338
|
+
}, Ot = {
|
|
339
339
|
article: {
|
|
340
340
|
a3: {
|
|
341
341
|
2: 30,
|
|
@@ -420,7 +420,7 @@ const Je = {
|
|
|
420
420
|
2: 20
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
},
|
|
423
|
+
}, ao = 10, lo = {
|
|
424
424
|
base: {
|
|
425
425
|
secTitleFlag: "副标题",
|
|
426
426
|
authorFlag: "命题人",
|
|
@@ -502,7 +502,7 @@ const Je = {
|
|
|
502
502
|
simpleScoreBarFlag: "简易打分条",
|
|
503
503
|
scoreTipFlag: "计分提示"
|
|
504
504
|
}
|
|
505
|
-
},
|
|
505
|
+
}, no = {
|
|
506
506
|
a3: {
|
|
507
507
|
2: 1,
|
|
508
508
|
3: 1
|
|
@@ -539,71 +539,71 @@ const Je = {
|
|
|
539
539
|
cdest: "cdest",
|
|
540
540
|
headlineNotarea: "headlineNotarea",
|
|
541
541
|
problemNotarea: "problemNotarea"
|
|
542
|
-
},
|
|
542
|
+
}, so = [
|
|
543
543
|
{ name: "正常", code: "stand" },
|
|
544
544
|
{ name: "横向", code: "column" }
|
|
545
545
|
], Te = {
|
|
546
546
|
none: "none",
|
|
547
547
|
seat: "seat",
|
|
548
548
|
shortId: "short"
|
|
549
|
-
},
|
|
549
|
+
}, io = [
|
|
550
550
|
{ name: "无", code: Te.none },
|
|
551
551
|
{ name: "座位号", code: Te.seat, value: 3 },
|
|
552
552
|
{ name: "短学号", code: Te.shortId, value: 4 }
|
|
553
|
-
],
|
|
553
|
+
], ro = [
|
|
554
554
|
{ name: "无", code: !1 },
|
|
555
555
|
{ name: "有", code: !0 }
|
|
556
|
-
],
|
|
556
|
+
], co = [
|
|
557
557
|
{ name: "条码", code: Te.none },
|
|
558
558
|
{ name: "短学号", code: Te.shortId }
|
|
559
559
|
], mt = {
|
|
560
560
|
wide: "text",
|
|
561
561
|
local: "topic"
|
|
562
|
-
},
|
|
562
|
+
}, uo = [
|
|
563
563
|
{ name: "整卷", code: mt.wide },
|
|
564
564
|
{ name: "大题", code: mt.local }
|
|
565
|
-
],
|
|
565
|
+
], Je = {
|
|
566
566
|
system: "system",
|
|
567
567
|
second: "level_2",
|
|
568
568
|
three: "level_3"
|
|
569
|
-
},
|
|
570
|
-
{ name: "自增", code:
|
|
571
|
-
{ name: "二级", code:
|
|
572
|
-
{ name: "三级", code:
|
|
573
|
-
],
|
|
569
|
+
}, ho = [
|
|
570
|
+
{ name: "自增", code: Je.system },
|
|
571
|
+
{ name: "二级", code: Je.second },
|
|
572
|
+
{ name: "三级", code: Je.three }
|
|
573
|
+
], po = [
|
|
574
574
|
{ name: "缩进", code: !0 },
|
|
575
575
|
{ name: "不缩进", code: !1 }
|
|
576
|
-
],
|
|
576
|
+
], zt = [
|
|
577
577
|
{ name: "考号", code: "examNumFieldFlag", key: "examNumField" },
|
|
578
578
|
{ name: "姓名", code: "nameFieldFlag", key: "nameField" },
|
|
579
579
|
{ name: "班级", code: "classFieldFlag", key: "classField" },
|
|
580
580
|
{ name: "考场", code: "examRoomFieldFlag", key: "examRoomField" },
|
|
581
581
|
{ name: "座号", code: "seatFieldFlag", key: "seatField" }
|
|
582
|
-
],
|
|
582
|
+
], Ze = {
|
|
583
583
|
auto: "auto",
|
|
584
584
|
on: "on",
|
|
585
585
|
off: "off"
|
|
586
|
-
},
|
|
587
|
-
{ name: "自动", code:
|
|
588
|
-
{ name: "开", code:
|
|
589
|
-
{ name: "关", code:
|
|
590
|
-
],
|
|
586
|
+
}, mo = [
|
|
587
|
+
{ name: "自动", code: Ze.auto },
|
|
588
|
+
{ name: "开", code: Ze.on },
|
|
589
|
+
{ name: "关", code: Ze.off }
|
|
590
|
+
], lt = {
|
|
591
591
|
step: "step",
|
|
592
592
|
custom: "custom"
|
|
593
|
-
},
|
|
594
|
-
{ name: "分段", code:
|
|
595
|
-
{ name: "自编", code:
|
|
596
|
-
],
|
|
593
|
+
}, yo = [
|
|
594
|
+
{ name: "分段", code: lt.step },
|
|
595
|
+
{ name: "自编", code: lt.custom }
|
|
596
|
+
], _o = [
|
|
597
597
|
{ name: "显示", code: !0 },
|
|
598
598
|
{ name: "隐藏", code: !1 }
|
|
599
|
-
],
|
|
599
|
+
], et = {
|
|
600
600
|
custom: "less",
|
|
601
601
|
average: "ans",
|
|
602
602
|
averagefill: "opt"
|
|
603
|
-
},
|
|
604
|
-
{ name: "按答案个数均分", code:
|
|
605
|
-
{ name: "手动设置", code:
|
|
606
|
-
{ name: "按答案个数均分(错选不扣分)", code:
|
|
603
|
+
}, fo = [
|
|
604
|
+
{ name: "按答案个数均分", code: et.average },
|
|
605
|
+
{ name: "手动设置", code: et.custom },
|
|
606
|
+
{ name: "按答案个数均分(错选不扣分)", code: et.averagefill }
|
|
607
607
|
], _ = {
|
|
608
608
|
choice_1: "choice-1",
|
|
609
609
|
choice_2: "choice-2",
|
|
@@ -795,7 +795,7 @@ const Je = {
|
|
|
795
795
|
synthesis_a: "polymerFlag",
|
|
796
796
|
synthesis_b: "scoreShowType"
|
|
797
797
|
}
|
|
798
|
-
},
|
|
798
|
+
}, tt = {
|
|
799
799
|
article: {
|
|
800
800
|
// 文案边框控制
|
|
801
801
|
isShowBorder: "isShowBorder"
|
|
@@ -804,7 +804,7 @@ const Je = {
|
|
|
804
804
|
// 非作答区边框控制
|
|
805
805
|
isShowBorder: "isShowBorder"
|
|
806
806
|
}
|
|
807
|
-
},
|
|
807
|
+
}, go = {
|
|
808
808
|
base: [
|
|
809
809
|
{
|
|
810
810
|
type: "radio",
|
|
@@ -831,7 +831,7 @@ const Je = {
|
|
|
831
831
|
]
|
|
832
832
|
}
|
|
833
833
|
]
|
|
834
|
-
},
|
|
834
|
+
}, bo = {
|
|
835
835
|
base: {
|
|
836
836
|
// 解答题
|
|
837
837
|
[m.slove]: [
|
|
@@ -1723,12 +1723,12 @@ const Je = {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
]
|
|
1725
1725
|
}
|
|
1726
|
-
},
|
|
1726
|
+
}, vo = {
|
|
1727
1727
|
[dt.__cdest]: [
|
|
1728
1728
|
{
|
|
1729
1729
|
type: "radio",
|
|
1730
1730
|
label: "边框显示控制",
|
|
1731
|
-
key:
|
|
1731
|
+
key: tt.article.isShowBorder,
|
|
1732
1732
|
option: [
|
|
1733
1733
|
{ name: "显示边框", code: !0 },
|
|
1734
1734
|
{ name: "隐藏边框", code: !1 }
|
|
@@ -1739,7 +1739,7 @@ const Je = {
|
|
|
1739
1739
|
{
|
|
1740
1740
|
type: "radio",
|
|
1741
1741
|
label: "边框显示控制",
|
|
1742
|
-
key:
|
|
1742
|
+
key: tt.sheetCard.isShowBorder,
|
|
1743
1743
|
option: [
|
|
1744
1744
|
{ name: "显示边框", code: !0 },
|
|
1745
1745
|
{ name: "隐藏边框", code: !1 }
|
|
@@ -1750,23 +1750,23 @@ const Je = {
|
|
|
1750
1750
|
{
|
|
1751
1751
|
type: "radio",
|
|
1752
1752
|
label: "边框显示控制",
|
|
1753
|
-
key:
|
|
1753
|
+
key: tt.sheetCard.isShowBorder,
|
|
1754
1754
|
option: [
|
|
1755
1755
|
{ name: "显示边框", code: !0 },
|
|
1756
1756
|
{ name: "隐藏边框", code: !1 }
|
|
1757
1757
|
]
|
|
1758
1758
|
}
|
|
1759
1759
|
]
|
|
1760
|
-
},
|
|
1760
|
+
}, wo = [
|
|
1761
1761
|
{ name: "宋体", code: "宋体" },
|
|
1762
1762
|
{ name: "黑体", code: "黑体" },
|
|
1763
1763
|
{ name: "Times New Roman", code: "Times New Roman" },
|
|
1764
1764
|
{ name: "仿宋", code: "仿宋" },
|
|
1765
1765
|
{ name: "MS Mincho", code: "MS Mincho" }
|
|
1766
|
-
],
|
|
1766
|
+
], xo = [
|
|
1767
1767
|
{ name: "正常", code: "normal" },
|
|
1768
1768
|
{ name: "粗体", code: "bold" }
|
|
1769
|
-
],
|
|
1769
|
+
], ko = [
|
|
1770
1770
|
{ name: "初号", code: "56px", alias: "l" },
|
|
1771
1771
|
{ name: "小初", code: "48px", alias: "sl" },
|
|
1772
1772
|
{ name: "一号", code: "34px", alias: "1" },
|
|
@@ -1815,7 +1815,7 @@ const Je = {
|
|
|
1815
1815
|
value: 24,
|
|
1816
1816
|
height: 16
|
|
1817
1817
|
}
|
|
1818
|
-
},
|
|
1818
|
+
}, qe = {
|
|
1819
1819
|
small: {
|
|
1820
1820
|
name: "小",
|
|
1821
1821
|
code: "small",
|
|
@@ -1831,7 +1831,7 @@ const Je = {
|
|
|
1831
1831
|
code: "large",
|
|
1832
1832
|
value: 33
|
|
1833
1833
|
}
|
|
1834
|
-
},
|
|
1834
|
+
}, it = {
|
|
1835
1835
|
none: {
|
|
1836
1836
|
name: "无",
|
|
1837
1837
|
code: "none",
|
|
@@ -1842,7 +1842,7 @@ const Je = {
|
|
|
1842
1842
|
code: "star",
|
|
1843
1843
|
value: "star"
|
|
1844
1844
|
}
|
|
1845
|
-
},
|
|
1845
|
+
}, Ye = {
|
|
1846
1846
|
left_down: {
|
|
1847
1847
|
name: "左下",
|
|
1848
1848
|
code: "left_down",
|
|
@@ -1853,13 +1853,13 @@ const Je = {
|
|
|
1853
1853
|
code: "right_up",
|
|
1854
1854
|
value: "right_up"
|
|
1855
1855
|
}
|
|
1856
|
-
},
|
|
1856
|
+
}, Ht = {
|
|
1857
1857
|
choice: 'span.__MC41aTVhZDc3NDdnMzM2__[data-t="MC4wNHY2eGVwODFmMXg"]',
|
|
1858
1858
|
decide: 'span.__MC5jY2ZpMWU5NzYyamo__[data-t="MC5hMDFjMGM5NGNmZmFl"]',
|
|
1859
1859
|
fill: 'span.__MC50aXB0OGc2Y2tqbw__[data-t="MC5mM2VtbTVkcDJm"]',
|
|
1860
1860
|
scoreline: 'span.__MC5sOG52dGVycnI5Zw__[data-t="MC42NG83Z2Y1Y2w3bw"]',
|
|
1861
1861
|
sub: 'span.__MC5yM3ZnaGNudHNzbw__[data-t="MC4zaWV2dDAwMnY2bw"]'
|
|
1862
|
-
},
|
|
1862
|
+
}, Co = {
|
|
1863
1863
|
scoreWidthErr: "打分条超长",
|
|
1864
1864
|
pageMaxErr: "纸张数量超限,最多10页",
|
|
1865
1865
|
problemEmptyErr: "请添加常规题目",
|
|
@@ -1869,56 +1869,56 @@ const Je = {
|
|
|
1869
1869
|
sloveScoreHalfErr: "简易打分条含小数分值",
|
|
1870
1870
|
absImgOverErr: "浮层图片超出纸张",
|
|
1871
1871
|
absTxtOverErr: "浮层文本超出纸张"
|
|
1872
|
-
},
|
|
1872
|
+
}, Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1873
1873
|
__proto__: null,
|
|
1874
|
-
ErrLayoutCode:
|
|
1875
|
-
MixNodeTag:
|
|
1876
|
-
bindInfoOption:
|
|
1877
|
-
column:
|
|
1878
|
-
columnMargin:
|
|
1879
|
-
defaultProblemLayout:
|
|
1874
|
+
ErrLayoutCode: Co,
|
|
1875
|
+
MixNodeTag: Ht,
|
|
1876
|
+
bindInfoOption: zt,
|
|
1877
|
+
column: eo,
|
|
1878
|
+
columnMargin: Ot,
|
|
1879
|
+
defaultProblemLayout: go,
|
|
1880
1880
|
fillSize: $e,
|
|
1881
|
-
fontFamily:
|
|
1882
|
-
fontSize:
|
|
1883
|
-
fontWeight:
|
|
1884
|
-
formatConfig:
|
|
1885
|
-
halfScoreType:
|
|
1886
|
-
halfScoreTypeOption:
|
|
1881
|
+
fontFamily: wo,
|
|
1882
|
+
fontSize: ko,
|
|
1883
|
+
fontWeight: xo,
|
|
1884
|
+
formatConfig: lo,
|
|
1885
|
+
halfScoreType: Ze,
|
|
1886
|
+
halfScoreTypeOption: mo,
|
|
1887
1887
|
headTemplate: Ge,
|
|
1888
|
-
inlineNotAreaOption:
|
|
1889
|
-
layoutMode:
|
|
1890
|
-
lessScoreRule:
|
|
1891
|
-
lessScoreRuleOption:
|
|
1892
|
-
otherLayout:
|
|
1893
|
-
otherLayoutKey:
|
|
1894
|
-
paddDiff:
|
|
1895
|
-
pageMargin:
|
|
1888
|
+
inlineNotAreaOption: _o,
|
|
1889
|
+
layoutMode: so,
|
|
1890
|
+
lessScoreRule: et,
|
|
1891
|
+
lessScoreRuleOption: fo,
|
|
1892
|
+
otherLayout: vo,
|
|
1893
|
+
otherLayoutKey: tt,
|
|
1894
|
+
paddDiff: to,
|
|
1895
|
+
pageMargin: ao,
|
|
1896
1896
|
pagePadding: bt,
|
|
1897
|
-
pagePointPosition:
|
|
1897
|
+
pagePointPosition: Ye,
|
|
1898
1898
|
pageSize: k,
|
|
1899
|
-
pageTitleBlockCol:
|
|
1899
|
+
pageTitleBlockCol: no,
|
|
1900
1900
|
paper: Re,
|
|
1901
|
-
problemLayout:
|
|
1901
|
+
problemLayout: bo,
|
|
1902
1902
|
problemLayoutKey: u,
|
|
1903
1903
|
problemLayoutVal: _,
|
|
1904
|
-
scoreLineSize:
|
|
1905
|
-
scoreLineStyle:
|
|
1906
|
-
scoreLineType:
|
|
1907
|
-
scoreLineTypeOption:
|
|
1908
|
-
seatBarOption:
|
|
1904
|
+
scoreLineSize: qe,
|
|
1905
|
+
scoreLineStyle: it,
|
|
1906
|
+
scoreLineType: lt,
|
|
1907
|
+
scoreLineTypeOption: yo,
|
|
1908
|
+
seatBarOption: ro,
|
|
1909
1909
|
seatType: Te,
|
|
1910
|
-
seatTypeBindOption:
|
|
1911
|
-
seatTypeOption:
|
|
1910
|
+
seatTypeBindOption: co,
|
|
1911
|
+
seatTypeOption: io,
|
|
1912
1912
|
sheetColumnPad: Ee,
|
|
1913
|
-
sheetItemColumnPad:
|
|
1914
|
-
specialPaper:
|
|
1915
|
-
subIndentOption:
|
|
1913
|
+
sheetItemColumnPad: oo,
|
|
1914
|
+
specialPaper: at,
|
|
1915
|
+
subIndentOption: po,
|
|
1916
1916
|
subRange: mt,
|
|
1917
|
-
subRangeOption:
|
|
1918
|
-
subRule:
|
|
1919
|
-
subRuleOption:
|
|
1917
|
+
subRangeOption: uo,
|
|
1918
|
+
subRule: Je,
|
|
1919
|
+
subRuleOption: ho,
|
|
1920
1920
|
toolGroup: D
|
|
1921
|
-
}, Symbol.toStringTag, { value: "Module" })), vt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),
|
|
1921
|
+
}, Symbol.toStringTag, { value: "Module" })), vt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), So = "TF".split(""), $o = {
|
|
1922
1922
|
a4: "TYPE_A4",
|
|
1923
1923
|
a4x: "TYPE_A4",
|
|
1924
1924
|
a3: "TYPE_A3",
|
|
@@ -1996,7 +1996,7 @@ const Je = {
|
|
|
1996
1996
|
// 选做题
|
|
1997
1997
|
[Se.another_choice]: "TYPE_SINGLECHOICE"
|
|
1998
1998
|
// 附加选做题
|
|
1999
|
-
},
|
|
1999
|
+
}, To = ["data-xine"], Io = ["data-xine"], Lo = ["data-xine"], Fo = ["data-xine"], Eo = ["data-xine"], Ce = 20, Mo = /* @__PURE__ */ te({
|
|
2000
2000
|
__name: "point",
|
|
2001
2001
|
props: {
|
|
2002
2002
|
layout: {},
|
|
@@ -2008,17 +2008,17 @@ const Je = {
|
|
|
2008
2008
|
padding: {}
|
|
2009
2009
|
},
|
|
2010
2010
|
setup(e) {
|
|
2011
|
-
const t = e, o = H(() =>
|
|
2011
|
+
const t = e, o = H(() => at.includes(t.layout.paper) ? 2 : (t.currentPage % 2 ? t.layout.backColumn : t.layout.column) - 1), l = (c) => ({
|
|
2012
2012
|
lt: { left: `${t.padding.left - Ce}px`, top: `${t.padding.top - Ce}px` },
|
|
2013
2013
|
rt: { right: `${t.padding.right - Ce}px`, top: `${t.padding.top - Ce}px` },
|
|
2014
2014
|
lb: { left: `${t.padding.left - Ce}px`, bottom: `${t.padding.bottom - Ce}px` },
|
|
2015
2015
|
rb: { right: `${t.padding.right - Ce}px`, bottom: `${t.padding.bottom - Ce}px` }
|
|
2016
2016
|
})[c], i = () => ({
|
|
2017
|
-
[
|
|
2017
|
+
[Ye.left_down.code]: {
|
|
2018
2018
|
left: `${t.padding.left - Ce + 100}px`,
|
|
2019
2019
|
bottom: `${t.padding.bottom - Ce}px`
|
|
2020
2020
|
},
|
|
2021
|
-
[
|
|
2021
|
+
[Ye.right_up.code]: {
|
|
2022
2022
|
right: `${t.padding.right - Ce + 100}px`,
|
|
2023
2023
|
top: `${t.padding.top - Ce}px`
|
|
2024
2024
|
}
|
|
@@ -2030,7 +2030,7 @@ const Je = {
|
|
|
2030
2030
|
b: {
|
|
2031
2031
|
bottom: `${t.padding.bottom - Ce}px`
|
|
2032
2032
|
}
|
|
2033
|
-
}, p = (k[t.layout.paper].width - t.padding.left - t.padding.right + Ce) / (
|
|
2033
|
+
}, p = (k[t.layout.paper].width - t.padding.left - t.padding.right + Ce) / (at.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
|
|
2034
2034
|
return { left: `${c * p + t.padding.left - Ce}px`, width: `${Ce}px`, ...s[h] };
|
|
2035
2035
|
}, n = (c) => {
|
|
2036
2036
|
const h = (k[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, s = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((F) => F === c);
|
|
@@ -2038,60 +2038,60 @@ const Je = {
|
|
|
2038
2038
|
};
|
|
2039
2039
|
return (c, h) => {
|
|
2040
2040
|
var s;
|
|
2041
|
-
return r(), d(
|
|
2042
|
-
(r(), d(
|
|
2041
|
+
return r(), d(M, null, [
|
|
2042
|
+
(r(), d(M, null, ee(["lt", "rt", "lb", "rb"], (p) => f("span", {
|
|
2043
2043
|
key: p,
|
|
2044
2044
|
class: "absolute w-8 bg-black point_item",
|
|
2045
|
-
style:
|
|
2045
|
+
style: ae(l(p)),
|
|
2046
2046
|
"data-xine": T($).point + p
|
|
2047
|
-
}, null, 12,
|
|
2048
|
-
(r(!0), d(
|
|
2049
|
-
(r(), d(
|
|
2047
|
+
}, null, 12, To)), 64)),
|
|
2048
|
+
(r(!0), d(M, null, ee(o.value, (p) => (r(), d(M, { key: p }, [
|
|
2049
|
+
(r(), d(M, null, ee(["t", "b"], (F) => f("span", {
|
|
2050
2050
|
key: F,
|
|
2051
2051
|
class: "absolute bg-black w-8 point_item",
|
|
2052
|
-
style:
|
|
2052
|
+
style: ae(a(p, F)),
|
|
2053
2053
|
"data-xine": T($).point + F
|
|
2054
|
-
}, null, 12,
|
|
2054
|
+
}, null, 12, Io)), 64))
|
|
2055
2055
|
], 64))), 128)),
|
|
2056
|
-
(r(), d(
|
|
2056
|
+
(r(), d(M, null, ee(["l", "r"], (p) => f("span", {
|
|
2057
2057
|
key: p,
|
|
2058
2058
|
class: "absolute bg-black h-8",
|
|
2059
|
-
style:
|
|
2059
|
+
style: ae(n(p)),
|
|
2060
2060
|
"data-xine": T($).point + p
|
|
2061
|
-
}, null, 12,
|
|
2061
|
+
}, null, 12, Lo)), 64)),
|
|
2062
2062
|
f("p", {
|
|
2063
2063
|
class: "absolute leading-none text-0",
|
|
2064
|
-
style:
|
|
2064
|
+
style: ae(i()),
|
|
2065
2065
|
"data-xine": T($).page
|
|
2066
2066
|
}, [
|
|
2067
|
-
(r(!0), d(
|
|
2067
|
+
(r(!0), d(M, null, ee(c.currentPage + 1, (p, F) => (r(), d("span", {
|
|
2068
2068
|
key: p,
|
|
2069
2069
|
class: "inline-block bg-black mx-2 page_item",
|
|
2070
2070
|
"data-xine": T($).page_item + F
|
|
2071
|
-
}, null, 8,
|
|
2072
|
-
], 12,
|
|
2071
|
+
}, null, 8, Eo))), 128))
|
|
2072
|
+
], 12, Fo),
|
|
2073
2073
|
c.currentPage % 2 ? B("", !0) : (r(), d("span", {
|
|
2074
2074
|
key: 0,
|
|
2075
2075
|
class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
|
|
2076
|
-
style:
|
|
2077
|
-
}, "提示:本卷" +
|
|
2076
|
+
style: ae({ right: `${c.padding.right - 12}px` })
|
|
2077
|
+
}, "提示:本卷" + Z((s = T(Re).find((p) => p.code === c.layout.paper)) == null ? void 0 : s.name) + "纸张", 5)),
|
|
2078
2078
|
f("span", {
|
|
2079
2079
|
class: "absolute text-sm red_sheet",
|
|
2080
|
-
style:
|
|
2081
|
-
},
|
|
2080
|
+
style: ae({ right: `${c.padding.bottom - 20 + 75}px`, bottom: `${c.padding.bottom - 20 - 3}px` })
|
|
2081
|
+
}, Z(c.currentPage + 1) + "/" + Z(c.totalPage), 5)
|
|
2082
2082
|
], 64);
|
|
2083
2083
|
};
|
|
2084
2084
|
}
|
|
2085
2085
|
});
|
|
2086
|
-
const
|
|
2086
|
+
const he = (e, t) => {
|
|
2087
2087
|
const o = e.__vccOpts || e;
|
|
2088
2088
|
for (const [l, i] of t)
|
|
2089
2089
|
o[l] = i;
|
|
2090
2090
|
return o;
|
|
2091
|
-
},
|
|
2091
|
+
}, Po = /* @__PURE__ */ he(Mo, [["__scopeId", "data-v-2c1c50bb"]]), Ao = { class: "flex-1" }, Do = ["type", "placeholder", "maxlength", "value"], Bo = {
|
|
2092
2092
|
key: 0,
|
|
2093
2093
|
class: "flex-shrink-0 ml-2 text-text3"
|
|
2094
|
-
},
|
|
2094
|
+
}, Ue = /* @__PURE__ */ te({
|
|
2095
2095
|
__name: "index",
|
|
2096
2096
|
props: {
|
|
2097
2097
|
value: { default: "" },
|
|
@@ -2122,11 +2122,11 @@ const pe = (e, t) => {
|
|
|
2122
2122
|
t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
|
|
2123
2123
|
};
|
|
2124
2124
|
return (s, p) => (r(), d("div", {
|
|
2125
|
-
class:
|
|
2125
|
+
class: le(["flex-1 flex items-center border rounded-lg", s.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", s.size === "small" && "p-1", s.size === "stand" && "p-2", s.size === "large" && "p-2"])
|
|
2126
2126
|
}, [
|
|
2127
|
-
f("div",
|
|
2127
|
+
f("div", Ao, [
|
|
2128
2128
|
f("input", {
|
|
2129
|
-
class:
|
|
2129
|
+
class: le(["w-full", s.dir === "center" && "text-center", s.dir === "right" && "text-right"]),
|
|
2130
2130
|
type: s.type,
|
|
2131
2131
|
placeholder: s.placeholder,
|
|
2132
2132
|
maxlength: s.maxLength,
|
|
@@ -2135,12 +2135,12 @@ const pe = (e, t) => {
|
|
|
2135
2135
|
onChange: n,
|
|
2136
2136
|
onFocus: c,
|
|
2137
2137
|
onBlur: h
|
|
2138
|
-
}, null, 42,
|
|
2138
|
+
}, null, 42, Do)
|
|
2139
2139
|
]),
|
|
2140
|
-
s.unit ? (r(), d("span",
|
|
2140
|
+
s.unit ? (r(), d("span", Bo, Z(s.unit), 1)) : B("", !0)
|
|
2141
2141
|
], 2));
|
|
2142
2142
|
}
|
|
2143
|
-
}),
|
|
2143
|
+
}), No = /* @__PURE__ */ te({
|
|
2144
2144
|
__name: "slogan",
|
|
2145
2145
|
props: {
|
|
2146
2146
|
info: {},
|
|
@@ -2152,7 +2152,7 @@ const pe = (e, t) => {
|
|
|
2152
2152
|
right: `${l.value.right + 97}px`,
|
|
2153
2153
|
bottom: `${l.value.bottom - 25}px`
|
|
2154
2154
|
}));
|
|
2155
|
-
return (a, n) => (r(),
|
|
2155
|
+
return (a, n) => (r(), ie(Ue, {
|
|
2156
2156
|
class: "absolute w-72 text-sm",
|
|
2157
2157
|
value: a.info.slogan,
|
|
2158
2158
|
maxLength: 12,
|
|
@@ -2160,11 +2160,11 @@ const pe = (e, t) => {
|
|
|
2160
2160
|
size: "small",
|
|
2161
2161
|
autoLine: "",
|
|
2162
2162
|
dir: "right",
|
|
2163
|
-
style:
|
|
2163
|
+
style: ae(i.value),
|
|
2164
2164
|
onChange: n[0] || (n[0] = (c) => t("change", { slogan: c }))
|
|
2165
2165
|
}, null, 8, ["value", "style"]));
|
|
2166
2166
|
}
|
|
2167
|
-
}),
|
|
2167
|
+
}), Oo = ["width", "height"], zo = ["xlink:href"], Ho = /* @__PURE__ */ te({
|
|
2168
2168
|
__name: "index",
|
|
2169
2169
|
props: {
|
|
2170
2170
|
width: { default: 1.5 },
|
|
@@ -2182,35 +2182,35 @@ const pe = (e, t) => {
|
|
|
2182
2182
|
width: i.width + "rem",
|
|
2183
2183
|
height: (i.height || i.width) + "rem"
|
|
2184
2184
|
}, [
|
|
2185
|
-
f("use", { "xlink:href": l.value }, null, 8,
|
|
2186
|
-
], 8,
|
|
2185
|
+
f("use", { "xlink:href": l.value }, null, 8, zo)
|
|
2186
|
+
], 8, Oo))
|
|
2187
2187
|
]));
|
|
2188
2188
|
}
|
|
2189
2189
|
});
|
|
2190
|
-
const xe = /* @__PURE__ */
|
|
2190
|
+
const xe = /* @__PURE__ */ he(Ho, [["__scopeId", "data-v-ed2907dd"]]), Ro = { class: "flex items-center text-black text-sm h-6 mb-2" }, Go = {
|
|
2191
2191
|
key: 0,
|
|
2192
2192
|
class: "flex items-center"
|
|
2193
|
-
},
|
|
2193
|
+
}, Wo = { class: "px-2 ml-2 border leading-none" }, qo = /* @__PURE__ */ te({
|
|
2194
2194
|
__name: "secrecy",
|
|
2195
2195
|
props: {
|
|
2196
2196
|
layout: {},
|
|
2197
2197
|
code: {}
|
|
2198
2198
|
},
|
|
2199
2199
|
setup(e) {
|
|
2200
|
-
return (t, o) => (r(), d("div",
|
|
2201
|
-
t.layout.secrecyFlag ? (r(), d("p",
|
|
2202
|
-
|
|
2203
|
-
|
|
2200
|
+
return (t, o) => (r(), d("div", Ro, [
|
|
2201
|
+
t.layout.secrecyFlag ? (r(), d("p", Go, [
|
|
2202
|
+
ot("绝密"),
|
|
2203
|
+
J(xe, {
|
|
2204
2204
|
name: "fiveArrow",
|
|
2205
2205
|
width: 1.4,
|
|
2206
2206
|
class: "px-0 py-0"
|
|
2207
2207
|
}),
|
|
2208
|
-
|
|
2208
|
+
ot("启用前")
|
|
2209
2209
|
])) : B("", !0),
|
|
2210
|
-
f("p",
|
|
2210
|
+
f("p", Wo, "ID:" + Z(t.code), 1)
|
|
2211
2211
|
]));
|
|
2212
2212
|
}
|
|
2213
|
-
}),
|
|
2213
|
+
}), Qo = ["innerHTML"], We = /* @__PURE__ */ te({
|
|
2214
2214
|
__name: "index",
|
|
2215
2215
|
props: {
|
|
2216
2216
|
value: {},
|
|
@@ -2226,24 +2226,24 @@ const xe = /* @__PURE__ */ pe(Oo, [["__scopeId", "data-v-ed2907dd"]]), zo = { cl
|
|
|
2226
2226
|
innerHTML: i.value,
|
|
2227
2227
|
contenteditable: "",
|
|
2228
2228
|
onBlur: l
|
|
2229
|
-
}, null, 40,
|
|
2229
|
+
}, null, 40, Qo));
|
|
2230
2230
|
}
|
|
2231
|
-
}),
|
|
2231
|
+
}), Yo = { class: "flex w-full" }, Ko = ["src", "data-xine"], Uo = { class: "flex-1 mx-4" }, Vo = { class: "flex items-center justify-center flex-wrap" }, jo = {
|
|
2232
2232
|
key: 0,
|
|
2233
2233
|
class: "flex mx-4 min-w-[70px]"
|
|
2234
|
-
},
|
|
2234
|
+
}, Xo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "范围:", -1), Jo = {
|
|
2235
2235
|
key: 1,
|
|
2236
2236
|
class: "flex items-center w-40 mx-4"
|
|
2237
|
-
},
|
|
2237
|
+
}, Zo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "时间:", -1), ea = /* @__PURE__ */ f("span", null, "分钟", -1), ta = {
|
|
2238
2238
|
key: 2,
|
|
2239
2239
|
class: "flex mx-4 min-w-[80px]"
|
|
2240
|
-
},
|
|
2240
|
+
}, oa = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "命题人:", -1), aa = {
|
|
2241
2241
|
key: 3,
|
|
2242
2242
|
class: "flex mx-4 min-w-[80px]"
|
|
2243
|
-
},
|
|
2243
|
+
}, la = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "审核人:", -1), na = {
|
|
2244
2244
|
key: 4,
|
|
2245
2245
|
class: "flex items-center mx-4"
|
|
2246
|
-
},
|
|
2246
|
+
}, sa = /* @__PURE__ */ f("span", null, "总", -1), ia = { key: 1 }, ra = { key: 3 }, ca = { key: 1 }, da = { key: 3 }, ua = /* @__PURE__ */ f("span", null, ")", -1), ha = { key: 1 }, pa = /* @__PURE__ */ te({
|
|
2247
2247
|
__name: "title",
|
|
2248
2248
|
props: {
|
|
2249
2249
|
info: {},
|
|
@@ -2253,40 +2253,40 @@ const xe = /* @__PURE__ */ pe(Oo, [["__scopeId", "data-v-ed2907dd"]]), zo = { cl
|
|
|
2253
2253
|
},
|
|
2254
2254
|
emits: ["change"],
|
|
2255
2255
|
setup(e, { emit: t }) {
|
|
2256
|
-
const o = e, l = H(() => o.data.filter((n) => ![Se.another, Se.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), i = H(() => o.data.filter((n) => [Se.another, Se.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), a = H(() => o.layout.scoreAddStars ===
|
|
2257
|
-
return (n, c) => (r(), d("div",
|
|
2256
|
+
const o = e, l = H(() => o.data.filter((n) => ![Se.another, Se.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), i = H(() => o.data.filter((n) => [Se.another, Se.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), a = H(() => o.layout.scoreAddStars === it.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
|
|
2257
|
+
return (n, c) => (r(), d("div", Yo, [
|
|
2258
2258
|
f("img", {
|
|
2259
2259
|
src: n.info.qrCode,
|
|
2260
2260
|
alt: "QRCode",
|
|
2261
2261
|
class: "flex-shrink-0 w-28 h-28",
|
|
2262
2262
|
"data-xine": T($).art_code
|
|
2263
|
-
}, null, 8,
|
|
2264
|
-
f("div",
|
|
2265
|
-
|
|
2263
|
+
}, null, 8, Ko),
|
|
2264
|
+
f("div", Uo, [
|
|
2265
|
+
J(We, {
|
|
2266
2266
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2267
2267
|
value: n.info.title,
|
|
2268
|
-
style:
|
|
2268
|
+
style: ae(n.fontConfig.titleStyle),
|
|
2269
2269
|
onChange: c[0] || (c[0] = (h) => t("change", { title: h }))
|
|
2270
2270
|
}, null, 8, ["value", "style"]),
|
|
2271
|
-
n.layout.secTitleFlag ? (r(),
|
|
2271
|
+
n.layout.secTitleFlag ? (r(), ie(We, {
|
|
2272
2272
|
key: 0,
|
|
2273
2273
|
class: "w-full text-center border-2 border-transparent focus:border-current",
|
|
2274
2274
|
value: n.info.secTitle,
|
|
2275
|
-
style:
|
|
2275
|
+
style: ae(n.fontConfig.halfTitleStyle),
|
|
2276
2276
|
onChange: c[1] || (c[1] = (h) => t("change", { secTitle: h }))
|
|
2277
2277
|
}, null, 8, ["value", "style"])) : B("", !0),
|
|
2278
|
-
f("div",
|
|
2279
|
-
n.layout.examExtentFlag ? (r(), d("p",
|
|
2280
|
-
|
|
2281
|
-
|
|
2278
|
+
f("div", Vo, [
|
|
2279
|
+
n.layout.examExtentFlag ? (r(), d("p", jo, [
|
|
2280
|
+
Xo,
|
|
2281
|
+
J(We, {
|
|
2282
2282
|
class: "flex-1",
|
|
2283
2283
|
value: n.info.extent,
|
|
2284
2284
|
onChange: c[2] || (c[2] = (h) => t("change", { extent: h }))
|
|
2285
2285
|
}, null, 8, ["value"])
|
|
2286
2286
|
])) : B("", !0),
|
|
2287
|
-
n.layout.examTimeFlag ? (r(), d("p",
|
|
2288
|
-
|
|
2289
|
-
|
|
2287
|
+
n.layout.examTimeFlag ? (r(), d("p", Jo, [
|
|
2288
|
+
Zo,
|
|
2289
|
+
J(Ue, {
|
|
2290
2290
|
value: n.info.time,
|
|
2291
2291
|
class: "text-center",
|
|
2292
2292
|
type: "number",
|
|
@@ -2295,66 +2295,66 @@ const xe = /* @__PURE__ */ pe(Oo, [["__scopeId", "data-v-ed2907dd"]]), zo = { cl
|
|
|
2295
2295
|
placeholder: "",
|
|
2296
2296
|
onChange: c[3] || (c[3] = (h) => t("change", { time: h }))
|
|
2297
2297
|
}, null, 8, ["value"]),
|
|
2298
|
-
|
|
2298
|
+
ea
|
|
2299
2299
|
])) : B("", !0),
|
|
2300
|
-
n.layout.authorFlag ? (r(), d("p",
|
|
2301
|
-
|
|
2302
|
-
|
|
2300
|
+
n.layout.authorFlag ? (r(), d("p", ta, [
|
|
2301
|
+
oa,
|
|
2302
|
+
J(We, {
|
|
2303
2303
|
class: "flex-1",
|
|
2304
2304
|
value: n.info.author,
|
|
2305
2305
|
onChange: c[4] || (c[4] = (h) => t("change", { author: h }))
|
|
2306
2306
|
}, null, 8, ["value"])
|
|
2307
2307
|
])) : B("", !0),
|
|
2308
|
-
n.layout.reviewerFlag ? (r(), d("p",
|
|
2309
|
-
|
|
2310
|
-
|
|
2308
|
+
n.layout.reviewerFlag ? (r(), d("p", aa, [
|
|
2309
|
+
la,
|
|
2310
|
+
J(We, {
|
|
2311
2311
|
class: "flex-1",
|
|
2312
2312
|
value: n.info.reviewer,
|
|
2313
2313
|
onChange: c[5] || (c[5] = (h) => t("change", { reviewer: h }))
|
|
2314
2314
|
}, null, 8, ["value"])
|
|
2315
2315
|
])) : B("", !0),
|
|
2316
|
-
n.layout.totalScoreFlag ? (r(), d("p",
|
|
2317
|
-
|
|
2318
|
-
a.value ? (r(),
|
|
2316
|
+
n.layout.totalScoreFlag ? (r(), d("p", na, [
|
|
2317
|
+
sa,
|
|
2318
|
+
a.value ? (r(), ie(xe, {
|
|
2319
2319
|
key: 0,
|
|
2320
2320
|
name: a.value,
|
|
2321
2321
|
class: "p-0 -translate-y-[1px]"
|
|
2322
|
-
}, null, 8, ["name"])) : (r(), d("span",
|
|
2323
|
-
f("span", null, ":" +
|
|
2324
|
-
a.value ? (r(),
|
|
2322
|
+
}, null, 8, ["name"])) : (r(), d("span", ia, "分")),
|
|
2323
|
+
f("span", null, ":" + Z(l.value + (n.layout.writeScoreFlag ? n.info.writeScore : 0)), 1),
|
|
2324
|
+
a.value ? (r(), ie(xe, {
|
|
2325
2325
|
key: 2,
|
|
2326
2326
|
name: a.value,
|
|
2327
2327
|
class: "p-0 -translate-y-[1px]"
|
|
2328
|
-
}, null, 8, ["name"])) : (r(), d("span",
|
|
2329
|
-
n.layout.writeScoreFlag ? (r(), d(
|
|
2330
|
-
f("span", null, "(试题" +
|
|
2331
|
-
a.value ? (r(),
|
|
2328
|
+
}, null, 8, ["name"])) : (r(), d("span", ra, "分")),
|
|
2329
|
+
n.layout.writeScoreFlag ? (r(), d(M, { key: 4 }, [
|
|
2330
|
+
f("span", null, "(试题" + Z(l.value), 1),
|
|
2331
|
+
a.value ? (r(), ie(xe, {
|
|
2332
2332
|
key: 0,
|
|
2333
2333
|
name: a.value,
|
|
2334
2334
|
class: "p-0 -translate-y-[1px]"
|
|
2335
|
-
}, null, 8, ["name"])) : (r(), d("span",
|
|
2336
|
-
f("span", null, "+卷面" +
|
|
2337
|
-
a.value ? (r(),
|
|
2335
|
+
}, null, 8, ["name"])) : (r(), d("span", ca, "分")),
|
|
2336
|
+
f("span", null, "+卷面" + Z(n.info.writeScore || 0), 1),
|
|
2337
|
+
a.value ? (r(), ie(xe, {
|
|
2338
2338
|
key: 2,
|
|
2339
2339
|
name: a.value,
|
|
2340
2340
|
class: "p-0 -translate-y-[1px]"
|
|
2341
|
-
}, null, 8, ["name"])) : (r(), d("span",
|
|
2342
|
-
|
|
2341
|
+
}, null, 8, ["name"])) : (r(), d("span", da, "分")),
|
|
2342
|
+
ua
|
|
2343
2343
|
], 64)) : B("", !0),
|
|
2344
|
-
i.value ? (r(), d(
|
|
2345
|
-
f("span", null, ";附加题:" +
|
|
2346
|
-
a.value ? (r(),
|
|
2344
|
+
i.value ? (r(), d(M, { key: 5 }, [
|
|
2345
|
+
f("span", null, ";附加题:" + Z(i.value), 1),
|
|
2346
|
+
a.value ? (r(), ie(xe, {
|
|
2347
2347
|
key: 0,
|
|
2348
2348
|
name: a.value,
|
|
2349
2349
|
class: "p-0 -translate-y-[1px]"
|
|
2350
|
-
}, null, 8, ["name"])) : (r(), d("span",
|
|
2350
|
+
}, null, 8, ["name"])) : (r(), d("span", ha, "分"))
|
|
2351
2351
|
], 64)) : B("", !0)
|
|
2352
2352
|
])) : B("", !0)
|
|
2353
2353
|
])
|
|
2354
2354
|
])
|
|
2355
2355
|
]));
|
|
2356
2356
|
}
|
|
2357
|
-
}), Ft = /* @__PURE__ */
|
|
2357
|
+
}), Ft = /* @__PURE__ */ te({
|
|
2358
2358
|
__name: "examInfoNone",
|
|
2359
2359
|
props: {
|
|
2360
2360
|
extent: {},
|
|
@@ -2364,13 +2364,13 @@ const xe = /* @__PURE__ */ pe(Oo, [["__scopeId", "data-v-ed2907dd"]]), zo = { cl
|
|
|
2364
2364
|
setup(e, { emit: t }) {
|
|
2365
2365
|
const o = ["examNumField", "examRoomField", "scoreField"];
|
|
2366
2366
|
return (l, i) => (r(), d("ul", {
|
|
2367
|
-
class:
|
|
2367
|
+
class: le(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
|
|
2368
2368
|
}, [
|
|
2369
|
-
(r(), d(
|
|
2369
|
+
(r(), d(M, null, ee(o, (a, n) => f("li", {
|
|
2370
2370
|
key: a,
|
|
2371
|
-
class:
|
|
2371
|
+
class: le(["flex flex-1 min-w-[12rem]", l.isRow && n && "ml-2"])
|
|
2372
2372
|
}, [
|
|
2373
|
-
|
|
2373
|
+
J(Ue, {
|
|
2374
2374
|
value: l.extent[a],
|
|
2375
2375
|
class: "px-0",
|
|
2376
2376
|
placeholder: "",
|
|
@@ -2381,73 +2381,73 @@ const xe = /* @__PURE__ */ pe(Oo, [["__scopeId", "data-v-ed2907dd"]]), zo = { cl
|
|
|
2381
2381
|
], 2)), 64))
|
|
2382
2382
|
], 2));
|
|
2383
2383
|
}
|
|
2384
|
-
}),
|
|
2384
|
+
}), ma = ["data-xine"], ya = { class: "flex items-center" }, _a = ["data-xine"], fa = ["data-xine"], ga = ["data-xine"], ba = /* @__PURE__ */ te({
|
|
2385
2385
|
__name: "examInfoSeat",
|
|
2386
2386
|
setup(e) {
|
|
2387
2387
|
return (t, o) => (r(), d("div", {
|
|
2388
2388
|
class: "flex-shrink-0 border flex flex-col",
|
|
2389
2389
|
"data-xine": T($).en_num_view
|
|
2390
2390
|
}, [
|
|
2391
|
-
f("p",
|
|
2392
|
-
|
|
2391
|
+
f("p", ya, [
|
|
2392
|
+
J(xe, {
|
|
2393
2393
|
class: "pt-1",
|
|
2394
2394
|
name: "fiveArrow"
|
|
2395
2395
|
}),
|
|
2396
|
-
|
|
2396
|
+
ot("座位号")
|
|
2397
2397
|
]),
|
|
2398
2398
|
f("div", {
|
|
2399
2399
|
class: "flex-1 flex flex-col",
|
|
2400
2400
|
"data-xine": T($).en_num
|
|
2401
2401
|
}, [
|
|
2402
|
-
(r(), d(
|
|
2402
|
+
(r(), d(M, null, ee(3, (l, i) => f("p", {
|
|
2403
2403
|
key: l,
|
|
2404
2404
|
class: "flex-1 flex items-center text-0 px-1 border-t",
|
|
2405
2405
|
"data-xine": T($).en_num_group
|
|
2406
2406
|
}, [
|
|
2407
|
-
(r(), d(
|
|
2407
|
+
(r(), d(M, null, ee(10, (a) => f("span", {
|
|
2408
2408
|
key: a,
|
|
2409
2409
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2410
2410
|
"data-xine": T($).en_num_item
|
|
2411
|
-
},
|
|
2412
|
-
], 8,
|
|
2413
|
-
], 8,
|
|
2414
|
-
], 8,
|
|
2411
|
+
}, Z(a - 1), 9, ga)), 64))
|
|
2412
|
+
], 8, fa)), 64))
|
|
2413
|
+
], 8, _a)
|
|
2414
|
+
], 8, ma));
|
|
2415
2415
|
}
|
|
2416
2416
|
});
|
|
2417
|
-
const
|
|
2417
|
+
const va = /* @__PURE__ */ he(ba, [["__scopeId", "data-v-91b25fab"]]), wa = ["data-xine"], xa = { class: "flex items-center border-r tracking-[5px] text_dir" }, ka = ["data-xine"], Ca = ["data-xine"], Sa = ["data-xine"], $a = /* @__PURE__ */ te({
|
|
2418
2418
|
__name: "examInfoShort",
|
|
2419
2419
|
setup(e) {
|
|
2420
2420
|
return (t, o) => (r(), d("div", {
|
|
2421
2421
|
class: "flex-shrink-0 border ml-4 flex min-h-[9.5rem]",
|
|
2422
2422
|
"data-xine": T($).en_num_view
|
|
2423
2423
|
}, [
|
|
2424
|
-
f("p",
|
|
2425
|
-
|
|
2424
|
+
f("p", xa, [
|
|
2425
|
+
J(xe, {
|
|
2426
2426
|
class: "px-1 pt-1",
|
|
2427
2427
|
name: "fiveArrow"
|
|
2428
2428
|
}),
|
|
2429
|
-
|
|
2429
|
+
ot("短学号")
|
|
2430
2430
|
]),
|
|
2431
2431
|
f("div", {
|
|
2432
2432
|
class: "flex-1 flex flex-col",
|
|
2433
2433
|
"data-xine": T($).en_num
|
|
2434
2434
|
}, [
|
|
2435
|
-
(r(), d(
|
|
2435
|
+
(r(), d(M, null, ee(4, (l, i) => f("p", {
|
|
2436
2436
|
key: l,
|
|
2437
|
-
class:
|
|
2437
|
+
class: le(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
|
|
2438
2438
|
"data-xine": T($).en_num_group
|
|
2439
2439
|
}, [
|
|
2440
|
-
(r(), d(
|
|
2440
|
+
(r(), d(M, null, ee(10, (a) => f("span", {
|
|
2441
2441
|
key: a,
|
|
2442
2442
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2443
2443
|
"data-xine": T($).en_num_item
|
|
2444
|
-
},
|
|
2445
|
-
], 10,
|
|
2446
|
-
], 8,
|
|
2447
|
-
], 8,
|
|
2444
|
+
}, Z(a - 1), 9, Sa)), 64))
|
|
2445
|
+
], 10, Ca)), 64))
|
|
2446
|
+
], 8, ka)
|
|
2447
|
+
], 8, wa));
|
|
2448
2448
|
}
|
|
2449
2449
|
});
|
|
2450
|
-
const
|
|
2450
|
+
const Rt = /* @__PURE__ */ he($a, [["__scopeId", "data-v-96e8d41d"]]), Ta = /* @__PURE__ */ te({
|
|
2451
2451
|
__name: "examInfoBase",
|
|
2452
2452
|
props: {
|
|
2453
2453
|
extent: {},
|
|
@@ -2457,13 +2457,13 @@ const Ht = /* @__PURE__ */ pe(Ca, [["__scopeId", "data-v-96e8d41d"]]), Sa = /* @
|
|
|
2457
2457
|
setup(e, { emit: t }) {
|
|
2458
2458
|
const o = ["nameField", "classField", "seatField"];
|
|
2459
2459
|
return (l, i) => (r(), d("ul", {
|
|
2460
|
-
class:
|
|
2460
|
+
class: le(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
|
|
2461
2461
|
}, [
|
|
2462
|
-
(r(), d(
|
|
2462
|
+
(r(), d(M, null, ee(o, (a, n) => f("li", {
|
|
2463
2463
|
key: a,
|
|
2464
|
-
class:
|
|
2464
|
+
class: le(["flex flex-1", l.isRow && n && "ml-2"])
|
|
2465
2465
|
}, [
|
|
2466
|
-
|
|
2466
|
+
J(Ue, {
|
|
2467
2467
|
value: l.extent[a],
|
|
2468
2468
|
class: "px-0",
|
|
2469
2469
|
placeholder: "",
|
|
@@ -2474,7 +2474,7 @@ const Ht = /* @__PURE__ */ pe(Ca, [["__scopeId", "data-v-96e8d41d"]]), Sa = /* @
|
|
|
2474
2474
|
], 2)), 64))
|
|
2475
2475
|
], 2));
|
|
2476
2476
|
}
|
|
2477
|
-
}),
|
|
2477
|
+
}), Ia = /* @__PURE__ */ te({
|
|
2478
2478
|
__name: "examInfoBase2",
|
|
2479
2479
|
props: {
|
|
2480
2480
|
extent: {},
|
|
@@ -2484,13 +2484,13 @@ const Ht = /* @__PURE__ */ pe(Ca, [["__scopeId", "data-v-96e8d41d"]]), Sa = /* @
|
|
|
2484
2484
|
setup(e, { emit: t }) {
|
|
2485
2485
|
const o = ["nameField", "classField"];
|
|
2486
2486
|
return (l, i) => (r(), d("ul", {
|
|
2487
|
-
class:
|
|
2487
|
+
class: le(["flex items-center flex-wrap gap-2", !l.isRow && "flex-col"])
|
|
2488
2488
|
}, [
|
|
2489
|
-
(r(), d(
|
|
2489
|
+
(r(), d(M, null, ee(o, (a) => f("li", {
|
|
2490
2490
|
key: a,
|
|
2491
2491
|
class: "flex flex-1 min-w-[11rem] max-w-[14rem]"
|
|
2492
2492
|
}, [
|
|
2493
|
-
|
|
2493
|
+
J(Ue, {
|
|
2494
2494
|
value: l.extent[a],
|
|
2495
2495
|
class: "px-0",
|
|
2496
2496
|
placeholder: "",
|
|
@@ -2501,37 +2501,37 @@ const Ht = /* @__PURE__ */ pe(Ca, [["__scopeId", "data-v-96e8d41d"]]), Sa = /* @
|
|
|
2501
2501
|
])), 64))
|
|
2502
2502
|
], 2));
|
|
2503
2503
|
}
|
|
2504
|
-
}),
|
|
2504
|
+
}), La = (e) => (Ne("data-v-a2edef87"), e = e(), Oe(), e), Fa = ["data-xine"], Ea = /* @__PURE__ */ La(() => /* @__PURE__ */ f("p", { class: "text-center text-xl text-black" }, "准考证号", -1)), Ma = ["data-xine"], Pa = ["data-xine"], Aa = ["data-xine"], Da = /* @__PURE__ */ te({
|
|
2505
2505
|
__name: "examInfoTicket",
|
|
2506
2506
|
setup(e) {
|
|
2507
2507
|
return (t, o) => (r(), d("div", {
|
|
2508
|
-
class: "flex-shrink-0 border-2 flex flex-col
|
|
2508
|
+
class: "flex-shrink-0 border-2 flex flex-col red_sheet",
|
|
2509
2509
|
"data-xine": T($).en_num_view
|
|
2510
2510
|
}, [
|
|
2511
|
-
|
|
2511
|
+
Ea,
|
|
2512
2512
|
f("div", {
|
|
2513
2513
|
class: "flex-1 flex divide-x",
|
|
2514
2514
|
"data-xine": T($).en_num
|
|
2515
2515
|
}, [
|
|
2516
|
-
(r(), d(
|
|
2516
|
+
(r(), d(M, null, ee(10, (l, i) => f("p", {
|
|
2517
2517
|
key: l,
|
|
2518
2518
|
class: "flex-1 flex flex-col items-center text-0 pt-10 pb-1 border-t num_group",
|
|
2519
2519
|
"data-xine": T($).en_num_group
|
|
2520
2520
|
}, [
|
|
2521
|
-
(r(), d(
|
|
2521
|
+
(r(), d(M, null, ee(10, (a) => f("span", {
|
|
2522
2522
|
key: a,
|
|
2523
2523
|
class: "flex items-center justify-between flex-nowrap item",
|
|
2524
2524
|
"data-xine": T($).en_num_item
|
|
2525
|
-
},
|
|
2526
|
-
], 8,
|
|
2527
|
-
], 8,
|
|
2528
|
-
], 8,
|
|
2525
|
+
}, Z(a - 1), 9, Aa)), 64))
|
|
2526
|
+
], 8, Pa)), 64))
|
|
2527
|
+
], 8, Ma)
|
|
2528
|
+
], 8, Fa));
|
|
2529
2529
|
}
|
|
2530
2530
|
});
|
|
2531
|
-
const
|
|
2531
|
+
const Ba = /* @__PURE__ */ he(Da, [["__scopeId", "data-v-a2edef87"]]), Na = {
|
|
2532
2532
|
key: 0,
|
|
2533
|
-
class: "flex border-2"
|
|
2534
|
-
},
|
|
2533
|
+
class: "flex border-2 red_sheet"
|
|
2534
|
+
}, Oa = /* @__PURE__ */ Xt('<p class="px-2 text-center border-r tracking-[3px] text_dir" data-v-9f14f612>填涂样例</p><div class="flex flex-col items-center justify-around px-2 border-r" data-v-9f14f612><span data-v-9f14f612>正确填涂</span><span class="w-8 bg-black ml-2 block_tips" data-v-9f14f612></span><span data-v-9f14f612>错误填涂</span><p class="flex items-center justify-center" data-v-9f14f612><span class="relative flex justify-between item" data-v-9f14f612><span class="flex-1 relative tmp_1" data-v-9f14f612></span></span><span class="relative flex justify-between item" data-v-9f14f612><span class="flex-1 relative tmp_2" data-v-9f14f612></span></span><span class="flex items-center justify-between item" data-v-9f14f612><span class="tmp_3" data-v-9f14f612></span></span></p></div><p class="px-2 text-center border-r tracking-[3px] text_dir" data-v-9f14f612>注意事项</p>', 3), za = { class: "flex-1 overflow-hidden pl-6" }, Ha = /* @__PURE__ */ te({
|
|
2535
2535
|
__name: "notice2",
|
|
2536
2536
|
props: {
|
|
2537
2537
|
layout: {}
|
|
@@ -2543,24 +2543,24 @@ const Aa = /* @__PURE__ */ pe(Pa, [["__scopeId", "data-v-a407d29d"]]), Da = {
|
|
|
2543
2543
|
"请按照题号顺序在各题目的答题区域内作答,超出答题区域书写的答案无效;在草稿纸、试题卷上答题无效。",
|
|
2544
2544
|
"保持卡面清洁,不要折叠、不要弄破。"
|
|
2545
2545
|
]);
|
|
2546
|
-
return (o, l) => o.layout.noteFlag ? (r(), d("div",
|
|
2547
|
-
|
|
2548
|
-
f("ul",
|
|
2549
|
-
(r(!0), d(
|
|
2546
|
+
return (o, l) => o.layout.noteFlag ? (r(), d("div", Na, [
|
|
2547
|
+
Oa,
|
|
2548
|
+
f("ul", za, [
|
|
2549
|
+
(r(!0), d(M, null, ee(t.value, (i) => (r(), d("li", {
|
|
2550
2550
|
key: i,
|
|
2551
2551
|
class: "origin-left list-decimal text-sm tip_item"
|
|
2552
|
-
},
|
|
2552
|
+
}, Z(i), 1))), 128))
|
|
2553
2553
|
])
|
|
2554
2554
|
])) : B("", !0);
|
|
2555
2555
|
}
|
|
2556
2556
|
});
|
|
2557
|
-
const
|
|
2557
|
+
const Ra = /* @__PURE__ */ he(Ha, [["__scopeId", "data-v-9f14f612"]]), wt = (e) => (Ne("data-v-e959fa86"), e = e(), Oe(), e), Ga = {
|
|
2558
2558
|
key: 0,
|
|
2559
|
-
class: "flex flex-col border-2 w-[220px]"
|
|
2560
|
-
},
|
|
2559
|
+
class: "flex flex-col border-2 w-[220px] red_sheet"
|
|
2560
|
+
}, Wa = { class: "flex" }, qa = /* @__PURE__ */ wt(() => /* @__PURE__ */ f("p", { class: "px-2 text-center tracking-[3px] text_dir text-xl font-bold" }, "注意事项", -1)), Qa = { class: "flex-1 overflow-hidden pl-4" }, Ya = /* @__PURE__ */ wt(() => /* @__PURE__ */ f("div", { class: "flex items-center justify-around border-t border-b" }, [
|
|
2561
2561
|
/* @__PURE__ */ f("span", { class: "text-xll font-bold" }, "正确填涂示例"),
|
|
2562
2562
|
/* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2563
|
-
], -1)),
|
|
2563
|
+
], -1)), Ka = { class: "inline" }, Ua = /* @__PURE__ */ wt(() => /* @__PURE__ */ f("span", null, " 考生禁填缺考标记!由监考老师用2B铅笔填涂。", -1)), Va = ["data-xine"], ja = /* @__PURE__ */ te({
|
|
2564
2564
|
__name: "notice3",
|
|
2565
2565
|
props: {
|
|
2566
2566
|
layout: {}
|
|
@@ -2572,32 +2572,65 @@ const za = /* @__PURE__ */ pe(Oa, [["__scopeId", "data-v-9704fba9"]]), wt = (e)
|
|
|
2572
2572
|
"请按照题号顺序在各题目的答题区域内作答,超出答题区域书写的答案无效;在草稿纸、试题卷上答题无效。",
|
|
2573
2573
|
"保持卡面清洁,不折叠,不破损。"
|
|
2574
2574
|
]);
|
|
2575
|
-
return (o, l) => o.layout.noteFlag ? (r(), d("div",
|
|
2576
|
-
f("div",
|
|
2577
|
-
|
|
2578
|
-
f("ul",
|
|
2579
|
-
(r(!0), d(
|
|
2575
|
+
return (o, l) => o.layout.noteFlag ? (r(), d("div", Ga, [
|
|
2576
|
+
f("div", Wa, [
|
|
2577
|
+
qa,
|
|
2578
|
+
f("ul", Qa, [
|
|
2579
|
+
(r(!0), d(M, null, ee(t.value, (i) => (r(), d("li", {
|
|
2580
2580
|
key: i,
|
|
2581
2581
|
class: "list-decimal tip_item"
|
|
2582
|
-
},
|
|
2582
|
+
}, Z(i), 1))), 128))
|
|
2583
2583
|
])
|
|
2584
2584
|
]),
|
|
2585
|
-
|
|
2586
|
-
f("div",
|
|
2587
|
-
|
|
2585
|
+
Ya,
|
|
2586
|
+
f("div", Ka, [
|
|
2587
|
+
Ua,
|
|
2588
2588
|
f("span", {
|
|
2589
|
-
class: "inline-block w-8 border ml-4 block_tips",
|
|
2589
|
+
class: "inline-block w-8 border ml-4 text-black block_tips",
|
|
2590
2590
|
"data-xine": T($).lack
|
|
2591
|
-
}, null, 8,
|
|
2591
|
+
}, null, 8, Va)
|
|
2592
2592
|
])
|
|
2593
2593
|
])) : B("", !0);
|
|
2594
2594
|
}
|
|
2595
2595
|
});
|
|
2596
|
-
const
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2596
|
+
const Xa = /* @__PURE__ */ he(ja, [["__scopeId", "data-v-e959fa86"]]), rt = (e) => (Ne("data-v-a41336ff"), e = e(), Oe(), e), Ja = {
|
|
2597
|
+
key: 0,
|
|
2598
|
+
class: "flex border text-sm red_sheet"
|
|
2599
|
+
}, Za = { class: "flex items-center flex-1 pl-2" }, el = /* @__PURE__ */ rt(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), tl = { class: "flex items-center justify-center text-black" }, ol = ["data-xine"], al = /* @__PURE__ */ rt(() => /* @__PURE__ */ f("span", null, "[", -1)), ll = /* @__PURE__ */ rt(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), nl = [
|
|
2600
|
+
al,
|
|
2601
|
+
ll
|
|
2602
|
+
], sl = /* @__PURE__ */ rt(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2603
|
+
/* @__PURE__ */ f("span", null, "正确填涂示例"),
|
|
2604
|
+
/* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2605
|
+
], -1)), il = /* @__PURE__ */ te({
|
|
2606
|
+
__name: "lack",
|
|
2607
|
+
props: {
|
|
2608
|
+
layout: {}
|
|
2609
|
+
},
|
|
2610
|
+
setup(e) {
|
|
2611
|
+
return (t, o) => {
|
|
2612
|
+
const l = Bt("Icon");
|
|
2613
|
+
return t.layout.lackFlag ? (r(), d("div", Ja, [
|
|
2614
|
+
f("p", Za, [
|
|
2615
|
+
el,
|
|
2616
|
+
f("span", tl, [
|
|
2617
|
+
J(l, { name: "rightArrow" }),
|
|
2618
|
+
f("span", {
|
|
2619
|
+
class: "flex items-center leading-4",
|
|
2620
|
+
"data-xine": T($).lack
|
|
2621
|
+
}, nl, 8, ol)
|
|
2622
|
+
])
|
|
2623
|
+
]),
|
|
2624
|
+
sl
|
|
2625
|
+
])) : B("", !0);
|
|
2626
|
+
};
|
|
2627
|
+
}
|
|
2628
|
+
});
|
|
2629
|
+
const Gt = /* @__PURE__ */ he(il, [["__scopeId", "data-v-a41336ff"]]), Wt = (e) => (Ne("data-v-28d77f29"), e = e(), Oe(), e), rl = { class: "flex-1 flex flex-col items-center justify-around mx-auto" }, cl = ["data-xine"], dl = /* @__PURE__ */ Wt(() => /* @__PURE__ */ f("span", { class: "font-bold tips" }, "贴条码区域", -1)), ul = [
|
|
2630
|
+
dl
|
|
2631
|
+
], hl = ["data-xine"], pl = /* @__PURE__ */ Wt(() => /* @__PURE__ */ f("span", { class: "font-bold tips" }, "贴条码区域", -1)), ml = [
|
|
2632
|
+
pl
|
|
2633
|
+
], yl = /* @__PURE__ */ te({
|
|
2601
2634
|
__name: "examInfo",
|
|
2602
2635
|
props: {
|
|
2603
2636
|
layout: {},
|
|
@@ -2609,64 +2642,61 @@ const Va = /* @__PURE__ */ pe(Ua, [["__scopeId", "data-v-1458f37f"]]), Rt = (e)
|
|
|
2609
2642
|
const o = e, l = H(() => o.layout.seatType === Te.none || !o.layout.seatBar), i = H(() => o.layout.column >= 3 && l.value), a = H(() => o.layout.headTemplate === Ge.examHigh.code), n = H(() => a.value && ["16k", ...Re.filter((h) => h.isMultCol).map((h) => h.code)].includes(o.layout.paper)), c = H(() => o.layout.column >= 3 && o.layout.seatType !== Te.none && o.layout.seatBar);
|
|
2610
2643
|
return (h, s) => h.isBindFlag ? B("", !0) : (r(), d("div", {
|
|
2611
2644
|
key: 0,
|
|
2612
|
-
class:
|
|
2645
|
+
class: le(["flex justify-between", (c.value || i.value || n.value) && "flex-wrap", a.value && "gap-2 mb-2"])
|
|
2613
2646
|
}, [
|
|
2614
|
-
a.value ? (r(), d(
|
|
2615
|
-
f("div",
|
|
2616
|
-
|
|
2647
|
+
a.value ? (r(), d(M, { key: 0 }, [
|
|
2648
|
+
f("div", rl, [
|
|
2649
|
+
J(Ia, {
|
|
2617
2650
|
extent: h.info.extentInfo,
|
|
2618
2651
|
isRow: n.value && h.layout.column === 2
|
|
2619
2652
|
}, null, 8, ["extent", "isRow"]),
|
|
2620
2653
|
f("div", {
|
|
2621
2654
|
class: "flex items-center justify-center flex-col w-full min-h-[9rem] max-w-[24rem] border border-dashed mt-4 mb-2 red_sheet",
|
|
2622
2655
|
"data-xine": T($).en_code
|
|
2623
|
-
},
|
|
2656
|
+
}, ul, 8, cl)
|
|
2624
2657
|
]),
|
|
2625
|
-
|
|
2626
|
-
n.value ? (r(),
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2658
|
+
J(Ba),
|
|
2659
|
+
n.value ? (r(), d(M, { key: 0 }, [
|
|
2660
|
+
J(Ra, { layout: h.layout }, null, 8, ["layout"]),
|
|
2661
|
+
J(Gt, {
|
|
2662
|
+
layout: h.layout,
|
|
2663
|
+
class: "w-full border-2"
|
|
2664
|
+
}, null, 8, ["layout"])
|
|
2665
|
+
], 64)) : (r(), ie(Xa, {
|
|
2630
2666
|
key: 1,
|
|
2631
2667
|
layout: h.layout
|
|
2632
2668
|
}, null, 8, ["layout"]))
|
|
2633
|
-
], 64)) : (r(), d(
|
|
2634
|
-
i.value ? (r(),
|
|
2669
|
+
], 64)) : (r(), d(M, { key: 1 }, [
|
|
2670
|
+
i.value ? (r(), ie(Ft, {
|
|
2635
2671
|
key: 0,
|
|
2636
2672
|
isRow: "",
|
|
2637
2673
|
extent: h.info.extentInfo,
|
|
2638
2674
|
onChange: s[0] || (s[0] = (p) => t("change", p))
|
|
2639
2675
|
}, null, 8, ["extent"])) : B("", !0),
|
|
2640
|
-
|
|
2676
|
+
J(Ta, {
|
|
2641
2677
|
isRow: c.value,
|
|
2642
2678
|
extent: h.info.extentInfo,
|
|
2643
2679
|
onChange: s[1] || (s[1] = (p) => t("change", p))
|
|
2644
2680
|
}, null, 8, ["isRow", "extent"]),
|
|
2645
|
-
!i.value && l.value ? (r(),
|
|
2681
|
+
!i.value && l.value ? (r(), ie(Ft, {
|
|
2646
2682
|
key: 1,
|
|
2647
2683
|
extent: h.info.extentInfo,
|
|
2648
2684
|
onChange: s[2] || (s[2] = (p) => t("change", p))
|
|
2649
2685
|
}, null, 8, ["extent"])) : B("", !0),
|
|
2650
|
-
h.layout.seatType === T(Te).seat ? (r(),
|
|
2686
|
+
h.layout.seatType === T(Te).seat ? (r(), ie(va, { key: 2 })) : h.layout.seatType === T(Te).shortId ? (r(), ie(Rt, { key: 3 })) : B("", !0),
|
|
2651
2687
|
h.layout.seatBar ? (r(), d("div", {
|
|
2652
2688
|
key: 4,
|
|
2653
2689
|
class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
|
|
2654
2690
|
"data-xine": T($).en_code
|
|
2655
|
-
},
|
|
2691
|
+
}, ml, 8, hl)) : B("", !0)
|
|
2656
2692
|
], 64))
|
|
2657
2693
|
], 2));
|
|
2658
2694
|
}
|
|
2659
2695
|
});
|
|
2660
|
-
const
|
|
2696
|
+
const _l = /* @__PURE__ */ he(yl, [["__scopeId", "data-v-28d77f29"]]), qt = (e) => (Ne("data-v-a6c6d2f0"), e = e(), Oe(), e), fl = {
|
|
2661
2697
|
key: 0,
|
|
2662
2698
|
class: "flex border mt-2 red_sheet"
|
|
2663
|
-
},
|
|
2664
|
-
hl,
|
|
2665
|
-
pl
|
|
2666
|
-
], yl = /* @__PURE__ */ We(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
|
|
2667
|
-
/* @__PURE__ */ f("span", null, "正确填涂示例"),
|
|
2668
|
-
/* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
|
|
2669
|
-
], -1)), _l = /* @__PURE__ */ We(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), fl = /* @__PURE__ */ le({
|
|
2699
|
+
}, gl = /* @__PURE__ */ qt(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), bl = { class: "flex-1 overflow-hidden" }, vl = /* @__PURE__ */ qt(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), wl = /* @__PURE__ */ te({
|
|
2670
2700
|
__name: "notice",
|
|
2671
2701
|
props: {
|
|
2672
2702
|
layout: {},
|
|
@@ -2686,44 +2716,32 @@ const ll = /* @__PURE__ */ pe(al, [["__scopeId", "data-v-cb3c9696"]]), We = (e)
|
|
|
2686
2716
|
"4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
|
|
2687
2717
|
];
|
|
2688
2718
|
});
|
|
2689
|
-
return (l, i) => l.layout.headTemplate === T(Ge).stand.code ? (r(), d(
|
|
2690
|
-
l.layout.noteFlag ? (r(), d("div",
|
|
2691
|
-
|
|
2692
|
-
f("div",
|
|
2693
|
-
(r(!0), d(
|
|
2719
|
+
return (l, i) => l.layout.headTemplate === T(Ge).stand.code ? (r(), d(M, { key: 0 }, [
|
|
2720
|
+
l.layout.noteFlag ? (r(), d("div", fl, [
|
|
2721
|
+
gl,
|
|
2722
|
+
f("div", bl, [
|
|
2723
|
+
(r(!0), d(M, null, ee(o.value, (a) => (r(), d("p", {
|
|
2694
2724
|
key: a,
|
|
2695
2725
|
class: "px-2 origin-left scale-75 tip_item"
|
|
2696
|
-
},
|
|
2726
|
+
}, Z(a), 1))), 128))
|
|
2697
2727
|
])
|
|
2698
2728
|
])) : B("", !0),
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
class:
|
|
2702
|
-
}, [
|
|
2703
|
-
|
|
2704
|
-
cl,
|
|
2705
|
-
f("span", dl, [
|
|
2706
|
-
ie(xe, { name: "rightArrow" }),
|
|
2707
|
-
f("span", {
|
|
2708
|
-
class: "flex items-center leading-4",
|
|
2709
|
-
"data-xine": T($).lack
|
|
2710
|
-
}, ml, 8, ul)
|
|
2711
|
-
])
|
|
2712
|
-
]),
|
|
2713
|
-
yl
|
|
2714
|
-
], 2)) : B("", !0),
|
|
2715
|
-
_l
|
|
2729
|
+
J(Gt, {
|
|
2730
|
+
layout: l.layout,
|
|
2731
|
+
class: le([l.layout.noteFlag ? "border-t-0" : "mt-2"])
|
|
2732
|
+
}, null, 8, ["layout", "class"]),
|
|
2733
|
+
vl
|
|
2716
2734
|
], 64)) : B("", !0);
|
|
2717
2735
|
}
|
|
2718
2736
|
});
|
|
2719
|
-
const
|
|
2737
|
+
const xl = /* @__PURE__ */ he(wl, [["__scopeId", "data-v-a6c6d2f0"]]), yt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), kl = (e, t = "", o = !0, l = "children") => {
|
|
2720
2738
|
let i = [];
|
|
2721
2739
|
const a = (n) => {
|
|
2722
2740
|
(n[l] || []).length ? (o && i.push(t ? n[t] : n[l]), n[l].forEach((c) => a(c))) : i.push(t ? n[t] : n);
|
|
2723
2741
|
};
|
|
2724
2742
|
return e.forEach((n) => a(n)), i.flat(5);
|
|
2725
2743
|
};
|
|
2726
|
-
function
|
|
2744
|
+
function Qt(e) {
|
|
2727
2745
|
if (e < 0 || e > 99)
|
|
2728
2746
|
throw Error("下标超限");
|
|
2729
2747
|
const t = "零一二三四五六七八九".split("");
|
|
@@ -2735,16 +2753,16 @@ function Gt(e) {
|
|
|
2735
2753
|
function Et(e) {
|
|
2736
2754
|
return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
|
|
2737
2755
|
}
|
|
2738
|
-
const
|
|
2756
|
+
const Cl = {
|
|
2739
2757
|
key: 0,
|
|
2740
2758
|
class: "flex border mb-2 text-center leading-loose red_sheet"
|
|
2741
|
-
},
|
|
2759
|
+
}, Sl = /* @__PURE__ */ f("li", { class: "flex-1 flex flex-col" }, [
|
|
2742
2760
|
/* @__PURE__ */ f("p", { class: "flex-1" }, "题号"),
|
|
2743
2761
|
/* @__PURE__ */ f("p", { class: "flex-1 border-t" }, "得分")
|
|
2744
|
-
], -1),
|
|
2762
|
+
], -1), $l = { class: "flex-1" }, Tl = /* @__PURE__ */ f("p", { class: "flex-1 border-t" }, null, -1), Il = /* @__PURE__ */ f("li", { class: "flex-1 flex flex-col border-l" }, [
|
|
2745
2763
|
/* @__PURE__ */ f("p", { class: "flex-1" }, "总分"),
|
|
2746
2764
|
/* @__PURE__ */ f("p", { class: "flex-1 border-t" })
|
|
2747
|
-
], -1),
|
|
2765
|
+
], -1), Ll = /* @__PURE__ */ te({
|
|
2748
2766
|
__name: "scoreTable",
|
|
2749
2767
|
props: {
|
|
2750
2768
|
layout: {},
|
|
@@ -2752,19 +2770,19 @@ const vl = {
|
|
|
2752
2770
|
},
|
|
2753
2771
|
setup(e) {
|
|
2754
2772
|
const t = e, o = H(() => t.data.filter((l) => l.problemType));
|
|
2755
|
-
return (l, i) => l.layout.scoreFlag ? (r(), d("ul",
|
|
2756
|
-
|
|
2757
|
-
(r(!0), d(
|
|
2773
|
+
return (l, i) => l.layout.scoreFlag ? (r(), d("ul", Cl, [
|
|
2774
|
+
Sl,
|
|
2775
|
+
(r(!0), d(M, null, ee(o.value, (a, n) => (r(), d("li", {
|
|
2758
2776
|
key: a.id,
|
|
2759
2777
|
class: "flex-1 flex flex-col border-l"
|
|
2760
2778
|
}, [
|
|
2761
|
-
f("p",
|
|
2762
|
-
|
|
2779
|
+
f("p", $l, Z(T(Qt)(n)), 1),
|
|
2780
|
+
Tl
|
|
2763
2781
|
]))), 128)),
|
|
2764
|
-
|
|
2782
|
+
Il
|
|
2765
2783
|
])) : B("", !0);
|
|
2766
2784
|
}
|
|
2767
|
-
}),
|
|
2785
|
+
}), Fl = /* @__PURE__ */ te({
|
|
2768
2786
|
__name: "columnDom",
|
|
2769
2787
|
props: {
|
|
2770
2788
|
column: {},
|
|
@@ -2789,28 +2807,28 @@ const vl = {
|
|
|
2789
2807
|
bottom: `${Ee.bottom - 1}px`,
|
|
2790
2808
|
right: `${Ee.right - 1}px`
|
|
2791
2809
|
})), c = H(() => o.column < 3 || o.currentColumn % 3 === 1);
|
|
2792
|
-
return (h, s) => (r(), d(
|
|
2810
|
+
return (h, s) => (r(), d(M, null, [
|
|
2793
2811
|
h.showColBorder ? (r(), d("div", {
|
|
2794
2812
|
key: 0,
|
|
2795
|
-
class:
|
|
2796
|
-
style:
|
|
2813
|
+
class: le(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
|
|
2814
|
+
style: ae(a.value)
|
|
2797
2815
|
}, [
|
|
2798
2816
|
f("span", {
|
|
2799
2817
|
class: "absolute border border-black",
|
|
2800
|
-
style:
|
|
2818
|
+
style: ae(n.value)
|
|
2801
2819
|
}, null, 4)
|
|
2802
2820
|
], 6)) : B("", !0),
|
|
2803
2821
|
f("div", {
|
|
2804
2822
|
class: "absolute overflow-hidden",
|
|
2805
2823
|
ref_key: "colView",
|
|
2806
2824
|
ref: i,
|
|
2807
|
-
style:
|
|
2825
|
+
style: ae(h.styleInfo)
|
|
2808
2826
|
}, [
|
|
2809
2827
|
f("div", {
|
|
2810
2828
|
ref_key: "col",
|
|
2811
2829
|
ref: l,
|
|
2812
2830
|
class: "overflow-hidden __col__",
|
|
2813
|
-
style:
|
|
2831
|
+
style: ae({ height: h.styleInfo.contentHeight })
|
|
2814
2832
|
}, [
|
|
2815
2833
|
gt(h.$slots, "default", {}, void 0, !0)
|
|
2816
2834
|
], 4)
|
|
@@ -2818,12 +2836,12 @@ const vl = {
|
|
|
2818
2836
|
], 64));
|
|
2819
2837
|
}
|
|
2820
2838
|
});
|
|
2821
|
-
const
|
|
2839
|
+
const El = /* @__PURE__ */ he(Fl, [["__scopeId", "data-v-e102e805"]]), Ml = (e) => (Ne("data-v-01785ba3"), e = e(), Oe(), e), Pl = { class: "flex-1 flex items-center flex-wrap relative" }, Al = {
|
|
2822
2840
|
key: 0,
|
|
2823
2841
|
class: "flex-1 mr-4 mb-4 min-w-[30%] max-w-[35%]"
|
|
2824
|
-
},
|
|
2825
|
-
|
|
2826
|
-
],
|
|
2842
|
+
}, Dl = ["data-xine"], Bl = /* @__PURE__ */ Ml(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Nl = [
|
|
2843
|
+
Bl
|
|
2844
|
+
], Ol = ["data-xine"], zl = /* @__PURE__ */ te({
|
|
2827
2845
|
__name: "bind",
|
|
2828
2846
|
props: {
|
|
2829
2847
|
currentPage: {},
|
|
@@ -2837,45 +2855,45 @@ const Tl = /* @__PURE__ */ pe($l, [["__scopeId", "data-v-e102e805"]]), Il = (e)
|
|
|
2837
2855
|
const t = X();
|
|
2838
2856
|
return (o, l) => o.isBindFlag ? (r(), d("div", {
|
|
2839
2857
|
key: 0,
|
|
2840
|
-
style:
|
|
2841
|
-
class:
|
|
2858
|
+
style: ae({ width: `${o.currentPage % 2 ? 0 : o.width}px`, height: `${o.height - 20}px` }),
|
|
2859
|
+
class: le([o.currentPage % 2 && "right_view"]),
|
|
2842
2860
|
ref_key: "view",
|
|
2843
2861
|
ref: t
|
|
2844
2862
|
}, [
|
|
2845
2863
|
o.currentPage % 2 ? (r(), d("div", {
|
|
2846
2864
|
key: 0,
|
|
2847
2865
|
class: "flex items-center justify-center origin-top-left border-b end_view",
|
|
2848
|
-
style:
|
|
2866
|
+
style: ae({ width: `${o.height - 20}px`, height: `${o.width}px` })
|
|
2849
2867
|
}, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), d("div", {
|
|
2850
2868
|
key: 1,
|
|
2851
2869
|
class: "relative flex items-end px-20 pb-6 border-b origin-top-right front_view",
|
|
2852
|
-
style:
|
|
2870
|
+
style: ae({ width: `${o.height - 20}px` })
|
|
2853
2871
|
}, [
|
|
2854
|
-
f("div",
|
|
2855
|
-
(r(!0), d(
|
|
2856
|
-
a === 2 && o.bindInfo.length === 5 ? (r(), d("span",
|
|
2872
|
+
f("div", Pl, [
|
|
2873
|
+
(r(!0), d(M, null, ee(o.bindInfo, (i, a) => (r(), d(M, { key: i }, [
|
|
2874
|
+
a === 2 && o.bindInfo.length === 5 ? (r(), d("span", Al)) : B("", !0),
|
|
2857
2875
|
f("span", {
|
|
2858
|
-
class:
|
|
2859
|
-
},
|
|
2876
|
+
class: le(["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%]"])
|
|
2877
|
+
}, Z(i), 3)
|
|
2860
2878
|
], 64))), 128))
|
|
2861
2879
|
]),
|
|
2862
2880
|
o.bindSeatType === T(Te).none ? (r(), d("div", {
|
|
2863
2881
|
key: 0,
|
|
2864
2882
|
class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
|
|
2865
2883
|
"data-xine": T($).en_code
|
|
2866
|
-
},
|
|
2884
|
+
}, Nl, 8, Dl)) : o.bindSeatType === T(Te).shortId ? (r(), ie(Rt, {
|
|
2867
2885
|
key: 1,
|
|
2868
2886
|
class: "h-40"
|
|
2869
2887
|
})) : B("", !0),
|
|
2870
2888
|
f("span", {
|
|
2871
2889
|
class: "absolute right-0 bottom-0",
|
|
2872
2890
|
"data-xine": T($).bind_line
|
|
2873
|
-
}, null, 8,
|
|
2891
|
+
}, null, 8, Ol)
|
|
2874
2892
|
], 4))
|
|
2875
2893
|
], 6)) : B("", !0);
|
|
2876
2894
|
}
|
|
2877
2895
|
});
|
|
2878
|
-
const
|
|
2896
|
+
const Hl = /* @__PURE__ */ he(zl, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5jdmxyN28zYWRl", Rl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", Mt = "MC5sZGN2NzJ0ZXE0bw", xt = "MC5yYjk3NGY2OTcyOA", kt = "MC42cWRzbGM0c21jbw", Gl = "MC45amVuM25vajRk", Wl = "MC44YjJkb212djRu", ql = ["img", "table", "svg"], Ql = ["data-block", "data-xine"], Yl = ["data-xine"], Kl = ["data-xine"], Ul = { class: "absolute opacity-0 pointer-events-none" }, Vl = /* @__PURE__ */ te({
|
|
2879
2897
|
__name: "simple",
|
|
2880
2898
|
props: {
|
|
2881
2899
|
item: {},
|
|
@@ -2895,21 +2913,21 @@ const Bl = /* @__PURE__ */ pe(Dl, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2895
2913
|
class: "flex h-full divide-x divide-solid",
|
|
2896
2914
|
"data-xine": T($).score_base
|
|
2897
2915
|
}, [
|
|
2898
|
-
(r(!0), d(
|
|
2916
|
+
(r(!0), d(M, null, ee(l.value, (n, c) => (r(), d("li", {
|
|
2899
2917
|
class: "flex items-center justify-center relative score_line",
|
|
2900
|
-
style:
|
|
2918
|
+
style: ae({ width: `${T(qe)[i.layout.scoreLineSize].value}px` }),
|
|
2901
2919
|
"data-xine": T($).score_item
|
|
2902
2920
|
}, [
|
|
2903
|
-
f("span",
|
|
2904
|
-
|
|
2921
|
+
f("span", Ul, Z(n), 1),
|
|
2922
|
+
J(xe, {
|
|
2905
2923
|
class: "p-0",
|
|
2906
2924
|
name: o[c]
|
|
2907
2925
|
}, null, 8, ["name"])
|
|
2908
|
-
], 12,
|
|
2909
|
-
], 8,
|
|
2910
|
-
], 8,
|
|
2926
|
+
], 12, Kl))), 256))
|
|
2927
|
+
], 8, Yl)
|
|
2928
|
+
], 8, Ql));
|
|
2911
2929
|
}
|
|
2912
|
-
}),
|
|
2930
|
+
}), jl = ["data-block", "data-xine"], Xl = ["data-xine"], Jl = ["data-xine"], ct = /* @__PURE__ */ te({
|
|
2913
2931
|
__name: "index",
|
|
2914
2932
|
props: {
|
|
2915
2933
|
item: {},
|
|
@@ -2917,26 +2935,26 @@ const Bl = /* @__PURE__ */ pe(Dl, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2917
2935
|
static: { type: Boolean }
|
|
2918
2936
|
},
|
|
2919
2937
|
setup(e) {
|
|
2920
|
-
const t = e, o = X(), l = X(!1), i = X(!1), a = X(!1), n = X([]), c = H(() => t.layout.scoreAddStars ===
|
|
2921
|
-
De(() => [t.item.score], () => h()),
|
|
2938
|
+
const t = e, o = X(), l = X(!1), i = X(!1), a = X(!1), n = X([]), c = H(() => t.layout.scoreAddStars === it.star.code);
|
|
2939
|
+
De(() => [t.item.score], () => h()), Ke(() => {
|
|
2922
2940
|
h();
|
|
2923
2941
|
});
|
|
2924
2942
|
const h = () => {
|
|
2925
|
-
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static ||
|
|
2943
|
+
!t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || st(() => {
|
|
2926
2944
|
let p = [];
|
|
2927
|
-
if (t.item.scoreLineType ===
|
|
2945
|
+
if (t.item.scoreLineType === lt.custom)
|
|
2928
2946
|
p = [[...t.item.customScore, 0]];
|
|
2929
2947
|
else if (t.item.scoreStep)
|
|
2930
2948
|
p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((F) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * F)).reverse());
|
|
2931
2949
|
else {
|
|
2932
|
-
const F = o.value.offsetWidth, y =
|
|
2933
|
-
l.value = F - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * y && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((
|
|
2950
|
+
const F = o.value.offsetWidth, y = qe[t.layout.scoreLineSize].value + 1;
|
|
2951
|
+
l.value = F - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * y && 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());
|
|
2934
2952
|
}
|
|
2935
|
-
t.item.hasHalfScore && p.push([0.5]), n.value = p, i.value = !!p.flat().find((F) => `${F}`.length > 3) || t.layout.scoreLineSize ===
|
|
2953
|
+
t.item.hasHalfScore && p.push([0.5]), n.value = p, i.value = !!p.flat().find((F) => `${F}`.length > 3) || t.layout.scoreLineSize === qe.small.code;
|
|
2936
2954
|
});
|
|
2937
2955
|
}, s = (p) => t.item.hasHalfScore ? [$.score_half, $.score_base, $.score_tenbit][n.value.length - p - 1] : [$.score_base, $.score_tenbit][n.value.length - p - 1];
|
|
2938
|
-
return (p, F) => p.layout.handReadFlag ? (r(), d(
|
|
2939
|
-
p.layout.simpleScoreBarFlag && !p.static ? (r(),
|
|
2956
|
+
return (p, F) => p.layout.handReadFlag ? (r(), d(M, { key: 0 }, [
|
|
2957
|
+
p.layout.simpleScoreBarFlag && !p.static ? (r(), ie(Vl, {
|
|
2940
2958
|
key: 0,
|
|
2941
2959
|
item: p.item,
|
|
2942
2960
|
layout: p.layout
|
|
@@ -2944,34 +2962,34 @@ const Bl = /* @__PURE__ */ pe(Dl, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2944
2962
|
key: 1,
|
|
2945
2963
|
ref_key: "view",
|
|
2946
2964
|
ref: o,
|
|
2947
|
-
class:
|
|
2965
|
+
class: le([n.value.length ? "inline-flex" : "flex-1", "max-w-full overflow-hidden border border-l-2 border-r-2 divide-x divide-solid"]),
|
|
2948
2966
|
"data-block": T(Ie),
|
|
2949
2967
|
"data-xine": T($).score
|
|
2950
2968
|
}, [
|
|
2951
|
-
(r(!0), d(
|
|
2969
|
+
(r(!0), d(M, null, ee(n.value, (y, P) => (r(), d("ul", {
|
|
2952
2970
|
class: "flex divide-x divide-solid",
|
|
2953
|
-
"data-xine": s(
|
|
2971
|
+
"data-xine": s(P)
|
|
2954
2972
|
}, [
|
|
2955
|
-
(r(!0), d(
|
|
2973
|
+
(r(!0), d(M, null, ee(y, (q) => (r(), d("li", {
|
|
2956
2974
|
class: "flex items-center justify-center flex-shrink-0 score_line",
|
|
2957
|
-
style:
|
|
2975
|
+
style: ae({ width: `${T(qe)[p.layout.scoreLineSize].value}px` }),
|
|
2958
2976
|
"data-xine": q.toString() ? T($).score_item : ""
|
|
2959
2977
|
}, [
|
|
2960
2978
|
f("span", {
|
|
2961
|
-
class:
|
|
2962
|
-
},
|
|
2963
|
-
c.value && q.toString().length ? (r(),
|
|
2979
|
+
class: le(["whitespace-nowrap", c.value && "origin-right", i.value && "scale-75"])
|
|
2980
|
+
}, Z(p.layout.minusFlag && q.toString().length && !c.value ? "-" : "") + Z(q), 3),
|
|
2981
|
+
c.value && q.toString().length ? (r(), ie(xe, {
|
|
2964
2982
|
key: 0,
|
|
2965
2983
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
2966
2984
|
name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
|
|
2967
2985
|
width: i.value ? 0.9 : 1.2
|
|
2968
2986
|
}, null, 8, ["name", "width"])) : B("", !0)
|
|
2969
|
-
], 12,
|
|
2970
|
-
], 8,
|
|
2971
|
-
], 10,
|
|
2987
|
+
], 12, Jl))), 256))
|
|
2988
|
+
], 8, Xl))), 256))
|
|
2989
|
+
], 10, jl))
|
|
2972
2990
|
], 64)) : B("", !0);
|
|
2973
2991
|
}
|
|
2974
|
-
}),
|
|
2992
|
+
}), Yt = (e) => (Ne("data-v-a8dbd3b0"), e = e(), Oe(), e), Zl = ["data-xine"], en = /* @__PURE__ */ Yt(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), tn = /* @__PURE__ */ Yt(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), on = /* @__PURE__ */ te({
|
|
2975
2993
|
__name: "writeScore",
|
|
2976
2994
|
props: {
|
|
2977
2995
|
info: {},
|
|
@@ -2982,17 +3000,17 @@ const Bl = /* @__PURE__ */ pe(Dl, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5
|
|
|
2982
3000
|
class: "flex items-center mb-2",
|
|
2983
3001
|
"data-xine": T($).write_view
|
|
2984
3002
|
}, [
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
3003
|
+
en,
|
|
3004
|
+
tn,
|
|
3005
|
+
J(ct, {
|
|
2988
3006
|
item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
|
|
2989
3007
|
layout: t.layout,
|
|
2990
3008
|
static: ""
|
|
2991
3009
|
}, null, 8, ["item", "layout"])
|
|
2992
|
-
], 8,
|
|
3010
|
+
], 8, Zl));
|
|
2993
3011
|
}
|
|
2994
3012
|
});
|
|
2995
|
-
const
|
|
3013
|
+
const an = /* @__PURE__ */ he(on, [["__scopeId", "data-v-a8dbd3b0"]]), ln = ["innerHTML"], nn = /* @__PURE__ */ te({
|
|
2996
3014
|
__name: "index",
|
|
2997
3015
|
props: {
|
|
2998
3016
|
data: {}
|
|
@@ -3002,33 +3020,33 @@ const Zl = /* @__PURE__ */ pe(Jl, [["__scopeId", "data-v-a8dbd3b0"]]), en = ["in
|
|
|
3002
3020
|
return (o, l) => (r(), d("div", {
|
|
3003
3021
|
innerHTML: t.data,
|
|
3004
3022
|
class: "base-problem-font problem-base"
|
|
3005
|
-
}, null, 8,
|
|
3023
|
+
}, null, 8, ln));
|
|
3006
3024
|
}
|
|
3007
3025
|
});
|
|
3008
|
-
const
|
|
3026
|
+
const He = /* @__PURE__ */ he(nn, [["__scopeId", "data-v-e6258dec"]]), sn = ["data-tag", "data-block"], rn = /* @__PURE__ */ te({
|
|
3009
3027
|
__name: "notArea",
|
|
3010
3028
|
props: {
|
|
3011
3029
|
item: {}
|
|
3012
3030
|
},
|
|
3013
3031
|
setup(e) {
|
|
3014
3032
|
return (t, o) => (r(), d("div", {
|
|
3015
|
-
class:
|
|
3033
|
+
class: le(["py-2 rounded-lg mx-1 my-2", t.item.isShowBorder && "border border-dashed"]),
|
|
3016
3034
|
"data-tag": t.item.__tag__,
|
|
3017
3035
|
"data-block": T(xt)
|
|
3018
3036
|
}, [
|
|
3019
|
-
|
|
3037
|
+
J(He, {
|
|
3020
3038
|
"data-content": t.item.id,
|
|
3021
3039
|
data: t.item.content
|
|
3022
3040
|
}, null, 8, ["data-content", "data"])
|
|
3023
|
-
], 10,
|
|
3041
|
+
], 10, sn));
|
|
3024
3042
|
}
|
|
3025
|
-
}),
|
|
3043
|
+
}), cn = (e) => (Ne("data-v-8b8ee819"), e = e(), Oe(), e), dn = ["data-tag", "data-block"], un = {
|
|
3026
3044
|
key: 0,
|
|
3027
3045
|
class: "flex-shrink-0"
|
|
3028
|
-
},
|
|
3046
|
+
}, hn = { key: 0 }, pn = {
|
|
3029
3047
|
key: 1,
|
|
3030
3048
|
class: "indent-2"
|
|
3031
|
-
},
|
|
3049
|
+
}, mn = { key: 0 }, yn = { key: 0 }, _n = { key: 1 }, fn = ["data-block", "data-xine"], gn = /* @__PURE__ */ cn(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), bn = { class: "flex items-center" }, vn = ["data-xine"], wn = /* @__PURE__ */ te({
|
|
3032
3050
|
__name: "index",
|
|
3033
3051
|
props: {
|
|
3034
3052
|
item: {},
|
|
@@ -3039,12 +3057,12 @@ const Oe = /* @__PURE__ */ pe(tn, [["__scopeId", "data-v-e6258dec"]]), on = ["da
|
|
|
3039
3057
|
},
|
|
3040
3058
|
emits: ["click", "dbclick"],
|
|
3041
3059
|
setup(e, { emit: t }) {
|
|
3042
|
-
const o = e, l = X(!1), i = X(), a = H(() => [Se.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((s) => s.problemType) : null), n = H(() => [Se.another_choice].includes(o.item.problemType)), c = H(() => [Se.one_choice].includes(o.item.problemType) ? h.value.length : [...new Set(
|
|
3043
|
-
return
|
|
3060
|
+
const o = e, l = X(!1), i = X(), a = H(() => [Se.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((s) => s.problemType) : null), n = H(() => [Se.another_choice].includes(o.item.problemType)), c = H(() => [Se.one_choice].includes(o.item.problemType) ? h.value.length : [...new Set(kl(o.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), h = H(() => [...new Set(o.item.rawChildren.map((s) => [...new Set(s.sub.map((p) => p.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
|
|
3061
|
+
return Ke(() => {
|
|
3044
3062
|
o.isFirst && o.item.problemType && (i.value.offsetHeight / parseFloat(window.getComputedStyle(i.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
|
|
3045
3063
|
}), (s, p) => s.item.problemType ? (r(), d("div", {
|
|
3046
3064
|
key: 1,
|
|
3047
|
-
class:
|
|
3065
|
+
class: le(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view", l.value && "first_headline_view"]),
|
|
3048
3066
|
onClick: p[2] || (p[2] = Me((F) => t("click", s.item), ["stop"])),
|
|
3049
3067
|
ref_key: "view",
|
|
3050
3068
|
ref: i,
|
|
@@ -3052,45 +3070,45 @@ const Oe = /* @__PURE__ */ pe(tn, [["__scopeId", "data-v-e6258dec"]]), on = ["da
|
|
|
3052
3070
|
"data-block": T(Ie),
|
|
3053
3071
|
onDblclick: p[3] || (p[3] = Me((F) => t("dbclick", s.item), ["stop"]))
|
|
3054
3072
|
}, [
|
|
3055
|
-
!s.layout.listIndexFlag && s.item.sub ? (r(), d("span",
|
|
3073
|
+
!s.layout.listIndexFlag && s.item.sub ? (r(), d("span", un, Z(T(Qt)(s.item.sub - 1)) + "、", 1)) : B("", !0),
|
|
3056
3074
|
f("div", null, [
|
|
3057
3075
|
f("div", null, [
|
|
3058
|
-
f("span", null,
|
|
3059
|
-
s.item.desc ? (r(), d("span",
|
|
3060
|
-
s.layout.scoreTipFlag ? (r(), d("span",
|
|
3076
|
+
f("span", null, Z(s.item.name), 1),
|
|
3077
|
+
s.item.desc ? (r(), d("span", hn, "(" + Z(s.item.desc) + ")", 1)) : B("", !0),
|
|
3078
|
+
s.layout.scoreTipFlag ? (r(), d("span", pn, "(共" + Z(c.value) + "题,共" + Z(s.item.totalScore) + "分)", 1)) : B("", !0)
|
|
3061
3079
|
]),
|
|
3062
|
-
a.value || n.value ? (r(), d("div",
|
|
3063
|
-
a.value ? (r(), d("p",
|
|
3080
|
+
a.value || n.value ? (r(), d("div", mn, [
|
|
3081
|
+
a.value ? (r(), d("p", yn, "请在以下" + Z(h.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), d("p", _n, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
|
|
3064
3082
|
f("p", {
|
|
3065
3083
|
class: "flex flex-wrap",
|
|
3066
3084
|
"data-block": T(Ie),
|
|
3067
3085
|
"data-xine": T($).choice + s.item.id
|
|
3068
3086
|
}, [
|
|
3069
|
-
|
|
3070
|
-
(r(!0), d(
|
|
3071
|
-
f("span", null,
|
|
3087
|
+
gn,
|
|
3088
|
+
(r(!0), d(M, null, ee(h.value, (F, y) => (r(), d("span", bn, [
|
|
3089
|
+
f("span", null, Z(F), 1),
|
|
3072
3090
|
f("span", {
|
|
3073
3091
|
class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
|
|
3074
3092
|
"data-xine": T($).fill
|
|
3075
|
-
}, null, 8,
|
|
3093
|
+
}, null, 8, vn)
|
|
3076
3094
|
]))), 256))
|
|
3077
|
-
], 8,
|
|
3095
|
+
], 8, fn)
|
|
3078
3096
|
])) : B("", !0)
|
|
3079
3097
|
])
|
|
3080
|
-
], 42,
|
|
3098
|
+
], 42, dn)) : (r(), ie(rn, {
|
|
3081
3099
|
key: 0,
|
|
3082
|
-
class:
|
|
3100
|
+
class: le([s.isActive && "border-current", s.isFirst && "mt-9"]),
|
|
3083
3101
|
item: s.item,
|
|
3084
3102
|
onClick: p[0] || (p[0] = Me((F) => t("click", s.item), ["stop"])),
|
|
3085
3103
|
onDblclick: p[1] || (p[1] = Me((F) => t("dbclick", s.item), ["stop"]))
|
|
3086
3104
|
}, null, 8, ["class", "item"]));
|
|
3087
3105
|
}
|
|
3088
3106
|
});
|
|
3089
|
-
const Pt = /* @__PURE__ */
|
|
3090
|
-
function
|
|
3107
|
+
const Pt = /* @__PURE__ */ he(wn, [["__scopeId", "data-v-8b8ee819"]]), xn = {};
|
|
3108
|
+
function kn(e, t) {
|
|
3091
3109
|
return null;
|
|
3092
3110
|
}
|
|
3093
|
-
const
|
|
3111
|
+
const Cn = /* @__PURE__ */ he(xn, [["render", kn]]), Sn = ["data-block"], $n = ["data-xine"], Tn = /* @__PURE__ */ te({
|
|
3094
3112
|
__name: "sheet",
|
|
3095
3113
|
props: {
|
|
3096
3114
|
item: {},
|
|
@@ -3101,27 +3119,27 @@ const vn = /* @__PURE__ */ pe(gn, [["render", bn]]), wn = ["data-block"], xn = [
|
|
|
3101
3119
|
class: "flex items-center red_sheet",
|
|
3102
3120
|
"data-block": T(Ie)
|
|
3103
3121
|
}, [
|
|
3104
|
-
(r(!0), d(
|
|
3105
|
-
class:
|
|
3106
|
-
style:
|
|
3122
|
+
(r(!0), d(M, null, ee(t.item.optList, (l, i) => (r(), d("span", {
|
|
3123
|
+
class: le(["fill_block", t.layout.showAnswer && t.item.answer.includes(T(yt)[i]) && "bg-success border-success"]),
|
|
3124
|
+
style: ae({ width: `${T($e)[t.layout.fillSize].value + 1}px`, height: `${T($e)[t.layout.fillSize].height + 1}px` }),
|
|
3107
3125
|
"data-xine": T($).fill + i
|
|
3108
3126
|
}, [
|
|
3109
|
-
|
|
3127
|
+
J(xe, {
|
|
3110
3128
|
width: t.layout.fillSize === T($e).small.code ? 0.7 : 1,
|
|
3111
3129
|
name: T(yt)[i]
|
|
3112
3130
|
}, null, 8, ["width", "name"])
|
|
3113
|
-
], 14,
|
|
3114
|
-
], 8,
|
|
3131
|
+
], 14, $n))), 256))
|
|
3132
|
+
], 8, Sn));
|
|
3115
3133
|
}
|
|
3116
|
-
}),
|
|
3117
|
-
function
|
|
3134
|
+
}), In = {};
|
|
3135
|
+
function Ln(e, t) {
|
|
3118
3136
|
return null;
|
|
3119
3137
|
}
|
|
3120
|
-
const
|
|
3121
|
-
|
|
3122
|
-
],
|
|
3123
|
-
|
|
3124
|
-
],
|
|
3138
|
+
const Fn = /* @__PURE__ */ he(In, [["render", Ln]]), En = ["data-block"], Mn = ["data-xine"], Pn = ["data-xine"], An = ["data-xine"], Dn = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), Bn = [
|
|
3139
|
+
Dn
|
|
3140
|
+
], Nn = ["data-xine"], On = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "F", -1), zn = [
|
|
3141
|
+
On
|
|
3142
|
+
], Hn = /* @__PURE__ */ te({
|
|
3125
3143
|
__name: "sheet",
|
|
3126
3144
|
props: {
|
|
3127
3145
|
item: {},
|
|
@@ -3136,49 +3154,49 @@ const $n = /* @__PURE__ */ pe(Cn, [["render", Sn]]), Tn = ["data-block"], In = [
|
|
|
3136
3154
|
class: "flex red_sheet",
|
|
3137
3155
|
"data-block": T(Ie)
|
|
3138
3156
|
}, [
|
|
3139
|
-
l.item.style[T(u)[l.layout.mode].decide_a] === T(_).decide_1 ? (r(), d(
|
|
3157
|
+
l.item.style[T(u)[l.layout.mode].decide_a] === T(_).decide_1 ? (r(), d(M, { key: 0 }, [
|
|
3140
3158
|
f("span", {
|
|
3141
|
-
class:
|
|
3142
|
-
style:
|
|
3159
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
3160
|
+
style: ae(o.value),
|
|
3143
3161
|
"data-xine": T($).fill + "0"
|
|
3144
3162
|
}, [
|
|
3145
|
-
|
|
3163
|
+
J(xe, {
|
|
3146
3164
|
name: "right",
|
|
3147
3165
|
width: 1
|
|
3148
3166
|
})
|
|
3149
|
-
], 14,
|
|
3167
|
+
], 14, Mn),
|
|
3150
3168
|
f("span", {
|
|
3151
|
-
class:
|
|
3152
|
-
style:
|
|
3169
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
3170
|
+
style: ae(o.value),
|
|
3153
3171
|
"data-xine": T($).fill + "1"
|
|
3154
3172
|
}, [
|
|
3155
|
-
|
|
3173
|
+
J(xe, {
|
|
3156
3174
|
name: "wrong",
|
|
3157
3175
|
width: 1
|
|
3158
3176
|
})
|
|
3159
|
-
], 14,
|
|
3160
|
-
], 64)) : (r(), d(
|
|
3177
|
+
], 14, Pn)
|
|
3178
|
+
], 64)) : (r(), d(M, { key: 1 }, [
|
|
3161
3179
|
f("span", {
|
|
3162
|
-
class:
|
|
3163
|
-
style:
|
|
3180
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
|
|
3181
|
+
style: ae(o.value),
|
|
3164
3182
|
"data-xine": T($).fill + "0"
|
|
3165
|
-
},
|
|
3183
|
+
}, Bn, 14, An),
|
|
3166
3184
|
f("span", {
|
|
3167
|
-
class:
|
|
3168
|
-
style:
|
|
3185
|
+
class: le(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
|
|
3186
|
+
style: ae(o.value),
|
|
3169
3187
|
"data-xine": T($).fill + "1"
|
|
3170
|
-
},
|
|
3188
|
+
}, zn, 14, Nn)
|
|
3171
3189
|
], 64))
|
|
3172
|
-
], 8,
|
|
3190
|
+
], 8, En));
|
|
3173
3191
|
}
|
|
3174
|
-
}),
|
|
3175
|
-
function
|
|
3192
|
+
}), Rn = {};
|
|
3193
|
+
function Gn(e, t) {
|
|
3176
3194
|
return null;
|
|
3177
3195
|
}
|
|
3178
|
-
const
|
|
3196
|
+
const Wn = /* @__PURE__ */ he(Rn, [["render", Gn]]), qn = ["data-block", "data-xine"], Qn = {
|
|
3179
3197
|
key: 0,
|
|
3180
3198
|
class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
|
|
3181
|
-
},
|
|
3199
|
+
}, Yn = { key: 1 }, Kn = /* @__PURE__ */ te({
|
|
3182
3200
|
__name: "index",
|
|
3183
3201
|
props: {
|
|
3184
3202
|
item: {},
|
|
@@ -3186,25 +3204,25 @@ const zn = /* @__PURE__ */ pe(Nn, [["render", On]]), Hn = ["data-block", "data-x
|
|
|
3186
3204
|
showScoreCn: { type: Boolean }
|
|
3187
3205
|
},
|
|
3188
3206
|
setup(e) {
|
|
3189
|
-
const t = e, o = H(() => t.layout.scoreAddStars ===
|
|
3207
|
+
const t = e, o = H(() => t.layout.scoreAddStars === it.star.code);
|
|
3190
3208
|
return (l, i) => l.layout.handReadFlag ? (r(), d("div", {
|
|
3191
3209
|
key: 0,
|
|
3192
3210
|
class: "score_fill flex items-center",
|
|
3193
3211
|
"data-block": T(Ie),
|
|
3194
3212
|
"data-xine": T($).fill
|
|
3195
3213
|
}, [
|
|
3196
|
-
l.showScoreCn ? (r(), d("span",
|
|
3197
|
-
f("span", null,
|
|
3198
|
-
o.value ? (r(),
|
|
3214
|
+
l.showScoreCn ? (r(), d("span", Qn, [
|
|
3215
|
+
f("span", null, Z(o.value ? "" : "-") + Z(l.item.score), 1),
|
|
3216
|
+
o.value ? (r(), ie(xe, {
|
|
3199
3217
|
key: 0,
|
|
3200
3218
|
class: "px-0 py-0 -translate-y-[1px]",
|
|
3201
3219
|
name: "fiveArrowLine",
|
|
3202
3220
|
width: 1.2
|
|
3203
|
-
})) : (r(), d("span",
|
|
3221
|
+
})) : (r(), d("span", Yn, "分"))
|
|
3204
3222
|
])) : B("", !0)
|
|
3205
|
-
], 8,
|
|
3223
|
+
], 8, qn)) : B("", !0);
|
|
3206
3224
|
}
|
|
3207
|
-
}),
|
|
3225
|
+
}), Un = ["data-xine"], Vn = /* @__PURE__ */ te({
|
|
3208
3226
|
__name: "sheet",
|
|
3209
3227
|
props: {
|
|
3210
3228
|
item: {},
|
|
@@ -3212,13 +3230,13 @@ const zn = /* @__PURE__ */ pe(Nn, [["render", On]]), Hn = ["data-block", "data-x
|
|
|
3212
3230
|
},
|
|
3213
3231
|
setup(e) {
|
|
3214
3232
|
const t = e;
|
|
3215
|
-
return (o, l) => (r(), d(
|
|
3233
|
+
return (o, l) => (r(), d(M, null, [
|
|
3216
3234
|
f("div", {
|
|
3217
3235
|
class: "flex-1 border-b self-stretch red_sheet",
|
|
3218
|
-
style:
|
|
3236
|
+
style: ae({ height: `${20 + o.item.style[T(u)[t.layout.mode].fill_e]}px` }),
|
|
3219
3237
|
"data-xine": T($).fill_line
|
|
3220
|
-
}, null, 12,
|
|
3221
|
-
o.layout.handReadFlag ? (r(),
|
|
3238
|
+
}, null, 12, Un),
|
|
3239
|
+
o.layout.handReadFlag ? (r(), ie(Kn, {
|
|
3222
3240
|
key: 0,
|
|
3223
3241
|
item: o.item,
|
|
3224
3242
|
layout: o.layout,
|
|
@@ -3226,11 +3244,11 @@ const zn = /* @__PURE__ */ pe(Nn, [["render", On]]), Hn = ["data-block", "data-x
|
|
|
3226
3244
|
}, null, 8, ["item", "layout", "showScoreCn"])) : B("", !0)
|
|
3227
3245
|
], 64));
|
|
3228
3246
|
}
|
|
3229
|
-
}),
|
|
3230
|
-
function
|
|
3247
|
+
}), jn = {};
|
|
3248
|
+
function Xn(e, t) {
|
|
3231
3249
|
return null;
|
|
3232
3250
|
}
|
|
3233
|
-
const
|
|
3251
|
+
const Jn = /* @__PURE__ */ he(jn, [["render", Xn]]), Zn = ["data-block"], es = { class: "flex-1 flex justify-end overflow-hidden" }, ts = /* @__PURE__ */ te({
|
|
3234
3252
|
__name: "sheet",
|
|
3235
3253
|
props: {
|
|
3236
3254
|
item: {},
|
|
@@ -3239,7 +3257,7 @@ const Un = /* @__PURE__ */ pe(Yn, [["render", Kn]]), Vn = ["data-block"], jn = {
|
|
|
3239
3257
|
},
|
|
3240
3258
|
setup(e) {
|
|
3241
3259
|
return (t, o) => (r(), d("div", {
|
|
3242
|
-
class:
|
|
3260
|
+
class: le(["w-full min-h-[5rem] pt-2 relative", !t.isFirst && "border-t"])
|
|
3243
3261
|
}, [
|
|
3244
3262
|
t.item.chunk ? B("", !0) : (r(), d("div", {
|
|
3245
3263
|
key: 0,
|
|
@@ -3247,24 +3265,24 @@ const Un = /* @__PURE__ */ pe(Yn, [["render", Kn]]), Vn = ["data-block"], jn = {
|
|
|
3247
3265
|
"data-block": T(Ie)
|
|
3248
3266
|
}, [
|
|
3249
3267
|
gt(t.$slots, "default"),
|
|
3250
|
-
f("div",
|
|
3251
|
-
|
|
3268
|
+
f("div", es, [
|
|
3269
|
+
J(ct, {
|
|
3252
3270
|
item: t.item,
|
|
3253
3271
|
layout: t.layout
|
|
3254
3272
|
}, null, 8, ["item", "layout"])
|
|
3255
3273
|
])
|
|
3256
|
-
], 8,
|
|
3257
|
-
|
|
3274
|
+
], 8, Zn)),
|
|
3275
|
+
J(He, {
|
|
3258
3276
|
"data-area": t.item.id,
|
|
3259
3277
|
data: t.item.answerArea
|
|
3260
3278
|
}, null, 8, ["data-area", "data"])
|
|
3261
3279
|
], 2));
|
|
3262
3280
|
}
|
|
3263
|
-
}),
|
|
3264
|
-
function
|
|
3281
|
+
}), os = {};
|
|
3282
|
+
function as(e, t) {
|
|
3265
3283
|
return null;
|
|
3266
3284
|
}
|
|
3267
|
-
const
|
|
3285
|
+
const ls = /* @__PURE__ */ he(os, [["render", as]]), ns = /* @__PURE__ */ te({
|
|
3268
3286
|
__name: "sheet",
|
|
3269
3287
|
props: {
|
|
3270
3288
|
item: {},
|
|
@@ -3272,38 +3290,38 @@ const es = /* @__PURE__ */ pe(Jn, [["render", Zn]]), ts = /* @__PURE__ */ le({
|
|
|
3272
3290
|
},
|
|
3273
3291
|
setup(e) {
|
|
3274
3292
|
const t = e;
|
|
3275
|
-
return (o, l) => (r(), d(
|
|
3293
|
+
return (o, l) => (r(), d(M, null, [
|
|
3276
3294
|
f("div", {
|
|
3277
3295
|
class: "flex-1 border-b self-end mr-2",
|
|
3278
|
-
style:
|
|
3296
|
+
style: ae({ height: `${20 + o.item.style[T(u)[t.layout.mode].easy_slove_d]}px` })
|
|
3279
3297
|
}, null, 4),
|
|
3280
|
-
|
|
3298
|
+
J(ct, {
|
|
3281
3299
|
item: o.item,
|
|
3282
3300
|
layout: o.layout
|
|
3283
3301
|
}, null, 8, ["item", "layout"])
|
|
3284
3302
|
], 64));
|
|
3285
3303
|
}
|
|
3286
|
-
}),
|
|
3287
|
-
function
|
|
3304
|
+
}), ss = {};
|
|
3305
|
+
function is(e, t) {
|
|
3288
3306
|
return null;
|
|
3289
3307
|
}
|
|
3290
|
-
const
|
|
3291
|
-
function
|
|
3308
|
+
const rs = /* @__PURE__ */ he(ss, [["render", is]]), cs = {};
|
|
3309
|
+
function ds(e, t) {
|
|
3292
3310
|
return null;
|
|
3293
3311
|
}
|
|
3294
|
-
const
|
|
3295
|
-
function
|
|
3312
|
+
const us = /* @__PURE__ */ he(cs, [["render", ds]]), hs = {};
|
|
3313
|
+
function ps(e, t) {
|
|
3296
3314
|
return null;
|
|
3297
3315
|
}
|
|
3298
|
-
const
|
|
3299
|
-
function
|
|
3316
|
+
const ms = /* @__PURE__ */ he(hs, [["render", ps]]), ys = {};
|
|
3317
|
+
function _s(e, t) {
|
|
3300
3318
|
return null;
|
|
3301
3319
|
}
|
|
3302
|
-
const
|
|
3303
|
-
function
|
|
3320
|
+
const fs = /* @__PURE__ */ he(ys, [["render", _s]]), gs = {};
|
|
3321
|
+
function bs(e, t) {
|
|
3304
3322
|
return null;
|
|
3305
3323
|
}
|
|
3306
|
-
const
|
|
3324
|
+
const vs = /* @__PURE__ */ he(gs, [["render", bs]]), ws = ["data-viewid"], xs = ["data-block"], ks = { class: "flex-1 flex justify-end overflow-hidden" }, Cs = ["data-block", "data-size"], Ss = ["data-block"], $s = /* @__PURE__ */ te({
|
|
3307
3325
|
__name: "sheet",
|
|
3308
3326
|
props: {
|
|
3309
3327
|
item: {},
|
|
@@ -3319,10 +3337,10 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3319
3337
|
})), p = H(() => ({
|
|
3320
3338
|
width: `${h.value}px`
|
|
3321
3339
|
})), F = H(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
|
|
3322
|
-
return
|
|
3340
|
+
return Ke(() => {
|
|
3323
3341
|
if (!t.item.artBlock)
|
|
3324
3342
|
return;
|
|
3325
|
-
|
|
3343
|
+
st(() => {
|
|
3326
3344
|
o.value = Math.floor(i.value.offsetWidth / h.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
|
|
3327
3345
|
if (!i.value)
|
|
3328
3346
|
return;
|
|
@@ -3333,9 +3351,9 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3333
3351
|
};
|
|
3334
3352
|
}, 20);
|
|
3335
3353
|
});
|
|
3336
|
-
const y = parseInt(t.item.style[u[t.layout.mode].art_c]),
|
|
3337
|
-
n.value = [...Array(Math.min(t.item.style[u[t.layout.mode].art_d] || 1, q) - 1 || 0).keys()].map((ne) => (ne + 1) *
|
|
3338
|
-
}), (y,
|
|
3354
|
+
const y = parseInt(t.item.style[u[t.layout.mode].art_c]), P = t.item.style[u[t.layout.mode].art_e], q = Math.floor(y / P), oe = Math.round(q / (t.item.style[u[t.layout.mode].art_d] || 1) - 0.01) * P;
|
|
3355
|
+
n.value = [...Array(Math.min(t.item.style[u[t.layout.mode].art_d] || 1, q) - 1 || 0).keys()].map((ne) => (ne + 1) * oe).concat(y / P < 2 ? P : y).filter((ne) => ne);
|
|
3356
|
+
}), (y, P) => (r(), d("div", {
|
|
3339
3357
|
class: "w-full relative min-h-[10rem]",
|
|
3340
3358
|
ref_key: "view",
|
|
3341
3359
|
ref: i,
|
|
@@ -3347,56 +3365,56 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3347
3365
|
"data-block": T(Ie)
|
|
3348
3366
|
}, [
|
|
3349
3367
|
gt(y.$slots, "default"),
|
|
3350
|
-
f("div",
|
|
3351
|
-
|
|
3368
|
+
f("div", ks, [
|
|
3369
|
+
J(ct, {
|
|
3352
3370
|
item: y.item,
|
|
3353
3371
|
layout: y.layout
|
|
3354
3372
|
}, null, 8, ["item", "layout"])
|
|
3355
3373
|
])
|
|
3356
|
-
], 8,
|
|
3357
|
-
y.item.artBlock ? (r(), d(
|
|
3358
|
-
y.item.beforeArt && !y.item.startAnswerLen ? (r(),
|
|
3374
|
+
], 8, xs)),
|
|
3375
|
+
y.item.artBlock ? (r(), d(M, { key: 1 }, [
|
|
3376
|
+
y.item.beforeArt && !y.item.startAnswerLen ? (r(), ie(He, {
|
|
3359
3377
|
key: 0,
|
|
3360
3378
|
data: y.item.beforeArt,
|
|
3361
3379
|
"data-bart": y.item.id,
|
|
3362
3380
|
class: "indent-[2em]"
|
|
3363
3381
|
}, null, 8, ["data", "data-bart"])) : B("", !0),
|
|
3364
|
-
(r(!0), d(
|
|
3382
|
+
(r(!0), d(M, null, ee(c.value, (q, oe) => (r(), d("p", {
|
|
3365
3383
|
ref_for: !0,
|
|
3366
3384
|
ref_key: "line",
|
|
3367
3385
|
ref: a,
|
|
3368
3386
|
class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
|
|
3369
3387
|
"data-block": T(Ie),
|
|
3370
|
-
"data-size": y.item.startAnswerLen + (
|
|
3371
|
-
style:
|
|
3388
|
+
"data-size": y.item.startAnswerLen + (oe + 1) * o.value,
|
|
3389
|
+
style: ae(s.value)
|
|
3372
3390
|
}, [
|
|
3373
|
-
(r(!0), d(
|
|
3374
|
-
class:
|
|
3375
|
-
style:
|
|
3376
|
-
},
|
|
3377
|
-
(r(!0), d(
|
|
3378
|
-
y.item.startAnswerLen +
|
|
3391
|
+
(r(!0), d(M, null, ee(o.value, (ne, N) => (r(), d("span", {
|
|
3392
|
+
class: le([F.value[oe * o.value + N] && "flex items-center justify-center"]),
|
|
3393
|
+
style: ae(p.value)
|
|
3394
|
+
}, Z(F.value[oe * o.value + N] || ""), 7))), 256)),
|
|
3395
|
+
(r(!0), d(M, null, ee(n.value, (ne) => (r(), d(M, null, [
|
|
3396
|
+
y.item.startAnswerLen + oe * o.value < ne && y.item.startAnswerLen + (oe + 1) * o.value >= ne ? (r(), d("span", {
|
|
3379
3397
|
key: 0,
|
|
3380
3398
|
class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
|
|
3381
|
-
style:
|
|
3399
|
+
style: ae({ left: `${(ne - y.item.startAnswerLen) % o.value * h.value}px` }),
|
|
3382
3400
|
"data-block": T(Be)
|
|
3383
|
-
},
|
|
3401
|
+
}, Z(ne), 13, Ss)) : B("", !0)
|
|
3384
3402
|
], 64))), 256))
|
|
3385
|
-
], 12,
|
|
3386
|
-
y.item.afterArt && [-1, 0].includes(y.item.endAnswerLen) ? (r(),
|
|
3403
|
+
], 12, Cs))), 256)),
|
|
3404
|
+
y.item.afterArt && [-1, 0].includes(y.item.endAnswerLen) ? (r(), ie(He, {
|
|
3387
3405
|
key: 1,
|
|
3388
3406
|
data: y.item.afterArt,
|
|
3389
3407
|
"data-aart": y.item.id,
|
|
3390
3408
|
class: "mt-2 indent-[2em]"
|
|
3391
3409
|
}, null, 8, ["data", "data-aart"])) : B("", !0)
|
|
3392
|
-
], 64)) : (r(),
|
|
3410
|
+
], 64)) : (r(), ie(He, {
|
|
3393
3411
|
key: 2,
|
|
3394
3412
|
"data-area": y.item.id,
|
|
3395
3413
|
data: y.item.answerArea
|
|
3396
3414
|
}, null, 8, ["data-area", "data"]))
|
|
3397
|
-
], 8,
|
|
3415
|
+
], 8, ws));
|
|
3398
3416
|
}
|
|
3399
|
-
}),
|
|
3417
|
+
}), Ts = ["data-block"], Is = /* @__PURE__ */ te({
|
|
3400
3418
|
__name: "index",
|
|
3401
3419
|
props: {
|
|
3402
3420
|
item: {},
|
|
@@ -3405,19 +3423,19 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3405
3423
|
emits: ["change"],
|
|
3406
3424
|
setup(e, { emit: t }) {
|
|
3407
3425
|
return (o, l) => (r(), d("div", {
|
|
3408
|
-
class:
|
|
3426
|
+
class: le(["px-2 py-3 w-full rounded-lg", o.item.isShowBorder && "border border-dashed"]),
|
|
3409
3427
|
"data-block": T(xt)
|
|
3410
3428
|
}, [
|
|
3411
|
-
|
|
3429
|
+
J(He, {
|
|
3412
3430
|
"data-content": o.item.id,
|
|
3413
3431
|
data: o.item.content
|
|
3414
3432
|
}, null, 8, ["data-content", "data"])
|
|
3415
|
-
], 10,
|
|
3433
|
+
], 10, Ts));
|
|
3416
3434
|
}
|
|
3417
|
-
}),
|
|
3435
|
+
}), Ls = ["data-block"], Fs = { key: 0 }, Es = { key: 1 }, Ms = { key: 2 }, Ps = {
|
|
3418
3436
|
key: 3,
|
|
3419
3437
|
class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
|
|
3420
|
-
},
|
|
3438
|
+
}, As = { key: 0 }, Ds = /* @__PURE__ */ te({
|
|
3421
3439
|
__name: "index",
|
|
3422
3440
|
props: {
|
|
3423
3441
|
sub: {},
|
|
@@ -3436,39 +3454,39 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3436
3454
|
return t.bracketType === _.bracket_cn ? ")" : ")";
|
|
3437
3455
|
};
|
|
3438
3456
|
return (a, n) => (r(), d("span", {
|
|
3439
|
-
class:
|
|
3440
|
-
style:
|
|
3457
|
+
class: le(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", a.isFull && "justify-end"]),
|
|
3458
|
+
style: ae({ width: l.value }),
|
|
3441
3459
|
"data-block": T(Be)
|
|
3442
3460
|
}, [
|
|
3443
|
-
(r(!0), d(
|
|
3444
|
-
h ? (r(), d("span",
|
|
3445
|
-
c[0] ? (r(), d("span",
|
|
3446
|
-
c[1] ? (r(), d("span",
|
|
3447
|
-
c[2] ? (r(), d("span",
|
|
3461
|
+
(r(!0), d(M, null, ee(o.value, (c, h) => (r(), d(M, null, [
|
|
3462
|
+
h ? (r(), d("span", Fs, " - ")) : B("", !0),
|
|
3463
|
+
c[0] ? (r(), d("span", Es, Z(c[0]), 1)) : B("", !0),
|
|
3464
|
+
c[1] ? (r(), d("span", Ms, "(" + Z(c[1]) + ")", 1)) : B("", !0),
|
|
3465
|
+
c[2] ? (r(), d("span", Ps, Z(c[2]), 1)) : B("", !0)
|
|
3448
3466
|
], 64))), 256)),
|
|
3449
|
-
a.score ? (r(), d("span",
|
|
3450
|
-
], 14,
|
|
3467
|
+
a.score ? (r(), d("span", As, Z(i("prev")) + Z(a.score) + "分" + Z(i("after")), 1)) : B("", !0)
|
|
3468
|
+
], 14, Ls));
|
|
3451
3469
|
}
|
|
3452
|
-
}),
|
|
3470
|
+
}), Bs = {
|
|
3453
3471
|
components: {
|
|
3454
|
-
choice:
|
|
3455
|
-
choiceSheet:
|
|
3456
|
-
decide:
|
|
3457
|
-
decideSheet:
|
|
3458
|
-
fill:
|
|
3459
|
-
fillSheet:
|
|
3460
|
-
slove:
|
|
3461
|
-
sloveSheet:
|
|
3462
|
-
easy_slove:
|
|
3463
|
-
easy_sloveSheet:
|
|
3464
|
-
mix:
|
|
3465
|
-
mixSheet:
|
|
3466
|
-
synthesis:
|
|
3467
|
-
synthesisSheet:
|
|
3468
|
-
art:
|
|
3469
|
-
artSheet:
|
|
3470
|
-
notArea:
|
|
3471
|
-
Sub:
|
|
3472
|
+
choice: Cn,
|
|
3473
|
+
choiceSheet: Tn,
|
|
3474
|
+
decide: Fn,
|
|
3475
|
+
decideSheet: Hn,
|
|
3476
|
+
fill: Wn,
|
|
3477
|
+
fillSheet: Vn,
|
|
3478
|
+
slove: Jn,
|
|
3479
|
+
sloveSheet: ts,
|
|
3480
|
+
easy_slove: ls,
|
|
3481
|
+
easy_sloveSheet: ns,
|
|
3482
|
+
mix: rs,
|
|
3483
|
+
mixSheet: us,
|
|
3484
|
+
synthesis: ms,
|
|
3485
|
+
synthesisSheet: fs,
|
|
3486
|
+
art: vs,
|
|
3487
|
+
artSheet: $s,
|
|
3488
|
+
notArea: Is,
|
|
3489
|
+
Sub: Ds
|
|
3472
3490
|
},
|
|
3473
3491
|
props: {
|
|
3474
3492
|
data: {
|
|
@@ -3497,7 +3515,7 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3497
3515
|
dbclick: null
|
|
3498
3516
|
},
|
|
3499
3517
|
setup(e, { emit: t }) {
|
|
3500
|
-
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(pt), i = Object.values(
|
|
3518
|
+
const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(pt), i = Object.values(Xe), a = X(""), n = H(() => {
|
|
3501
3519
|
const b = o ? {
|
|
3502
3520
|
choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
|
|
3503
3521
|
fillSheet: [m.fill, m.fill_english]
|
|
@@ -3510,7 +3528,7 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3510
3528
|
let b = [];
|
|
3511
3529
|
e.data.children.forEach((I) => {
|
|
3512
3530
|
let O = b[b.length - 1];
|
|
3513
|
-
((I.polymerId || l.includes(e.data.problemType)) && l.includes(I.problemType) || [
|
|
3531
|
+
((I.polymerId || l.includes(e.data.problemType)) && l.includes(I.problemType) || [Qe.fill, Qe.fill_english].includes(e.data.problemType) && e.data.style[u[e.layout.mode].fill_g] === _.portrait) && I.style ? (!O || O.type !== "polymer" || O.polymerId !== I.polymerId) && (b.push({
|
|
3514
3532
|
type: "polymer",
|
|
3515
3533
|
problemType: I.problemType,
|
|
3516
3534
|
polymerId: I.polymerId,
|
|
@@ -3529,51 +3547,51 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3529
3547
|
}).map((G) => {
|
|
3530
3548
|
var Q;
|
|
3531
3549
|
return (Q = G.optList) == null ? void 0 : Q.length;
|
|
3532
|
-
})) * ($e[e.layout.fillSize].value + 9) + v)), O), z = !0,
|
|
3550
|
+
})) * ($e[e.layout.fillSize].value + 9) + v)), O), z = !0, A = [], W = [], U = [];
|
|
3533
3551
|
if (C) {
|
|
3534
3552
|
for (; z; )
|
|
3535
|
-
|
|
3553
|
+
A = [...Array(Math.ceil(I.children.length / x)).keys()].map((G) => I.children.slice(G * x, (G + 1) * x)).map((G) => [...Array(Math.ceil(G.length / R)).keys()].map((Q) => G.slice(Q * R, (Q + 1) * R))), U = [...Array(R).keys()].map((G) => Math.max(...A.flat().map((Q) => {
|
|
3536
3554
|
var me, g;
|
|
3537
3555
|
return ((g = (me = Q[G]) == null ? void 0 : me.optList) == null ? void 0 : g.length) || 0;
|
|
3538
3556
|
}))), z = U.reduce((G, Q) => G + Q, 0) * ($e[e.layout.fillSize].value + 9) + U.length * v > e.width, z && R--;
|
|
3539
|
-
W =
|
|
3557
|
+
W = A.map((G) => G.map((Q) => Q.map((me) => me.optList.length))).flat();
|
|
3540
3558
|
} else {
|
|
3541
3559
|
for (; z; )
|
|
3542
|
-
|
|
3560
|
+
A = [...Array(Math.ceil(I.children.length / (R * x))).keys()].map((G) => I.children.slice(G * (R * x), (G + 1) * (R * x))).map((G) => [...Array(R).keys()].map((Q) => G.slice(Q * x, (Q + 1) * x)).filter((Q) => Q.length)), A[0].length < R && (R = A[0].length), U = [...Array(R).keys()].map((G) => Math.max(...A.flat().filter((Q, me) => me % R === G).flat().map((Q) => {
|
|
3543
3561
|
var me;
|
|
3544
3562
|
return ((me = Q == null ? void 0 : Q.optList) == null ? void 0 : me.length) || 0;
|
|
3545
3563
|
}))), z = U.reduce((G, Q) => G + Q, 0) * ($e[e.layout.fillSize].value + 9) + U.length * v > e.width, z && R--;
|
|
3546
|
-
W =
|
|
3564
|
+
W = A.map((G) => [...Array(x).keys()].map((Q) => [...Array(R).keys()].map((me) => {
|
|
3547
3565
|
var g, L;
|
|
3548
3566
|
return (L = (g = (G[me] || [])[Q]) == null ? void 0 : g.optList) == null ? void 0 : L.length;
|
|
3549
3567
|
}))).flat();
|
|
3550
3568
|
}
|
|
3551
|
-
|
|
3569
|
+
A = A.map((G) => G.flat());
|
|
3552
3570
|
const _e = [...Array(R).keys()].map((G) => Math.max(...W.map((Q) => Q[G] || 0)));
|
|
3553
|
-
return
|
|
3571
|
+
return A.map((G, Q) => ({ ...I, groupIndex: Q, children: G, col: R, colList: _e }));
|
|
3554
3572
|
};
|
|
3555
3573
|
return b = b.map((I) => {
|
|
3556
3574
|
var O;
|
|
3557
3575
|
if (I.type === "polymer") {
|
|
3558
3576
|
const x = I.styleInfo[u[e.layout.mode].choice_b] === _.landscape, v = I.styleInfo[u[e.layout.mode].choice_e] || 20, C = e.data.style[u[e.layout.mode].choice_d] || 10, R = (F.value[`h${e.data.id}`] || F.value[I.polymerId] || F.value[((O = e.data.children[0]) == null ? void 0 : O.polymerId) || ""] || 0) * 10 + 10;
|
|
3559
3577
|
if (pt.decide === I.problemType)
|
|
3560
|
-
return E({ ...I, children: I.children.map((z) => ({ ...z, optList: ["", ""] })) }, 10, 100, R, !0).map((z) => ({ ...z, children: z.children.map((
|
|
3578
|
+
return E({ ...I, children: I.children.map((z) => ({ ...z, optList: ["", ""] })) }, 10, 100, R, !0).map((z) => ({ ...z, children: z.children.map((A) => ({ ...A, optList: [] })) }));
|
|
3561
3579
|
if (I.styleInfo[u[e.layout.mode].choice_a] === _.choice_1)
|
|
3562
3580
|
return E(I, C, v, R, x);
|
|
3563
3581
|
if (I.styleInfo[u[e.layout.mode].choice_a] === _.choice_2) {
|
|
3564
|
-
const z = Math.max($e[e.layout.fillSize].value + 9, R),
|
|
3565
|
-
let U = [{ children: [], col:
|
|
3582
|
+
const z = Math.max($e[e.layout.fillSize].value + 9, R), A = Math.floor(e.width / (z * I.styleInfo[u[e.layout.mode].choice_c] + 10)), W = A * I.styleInfo[u[e.layout.mode].choice_c];
|
|
3583
|
+
let U = [{ children: [], col: A }];
|
|
3566
3584
|
return I.children.forEach((_e, G) => {
|
|
3567
|
-
G >= W * U.length && U.push({ children: [], col:
|
|
3585
|
+
G >= W * U.length && U.push({ children: [], col: A }), U[U.length - 1].children.push(_e);
|
|
3568
3586
|
}), U.map((_e, G) => ({ ...I, groupIndex: G, children: _e.children, col: _e.col, colList: [] }));
|
|
3569
3587
|
} else if (I.styleInfo[u[e.layout.mode].choice_a] === _.choice_3) {
|
|
3570
|
-
let z = [],
|
|
3588
|
+
let z = [], A = 0, W = 0, U = 0, _e = 0;
|
|
3571
3589
|
return I.children.forEach((G) => {
|
|
3572
|
-
G.optList.length !==
|
|
3590
|
+
G.optList.length !== A && (W = G.optList.length * ($e[e.layout.fillSize].value + 9) + R, U = Math.min(Math.floor(e.width / W), C), _e = x ? U * 20 : U * I.styleInfo[u[e.layout.mode].choice_e], A = G.optList.length, z.push({ children: [], col: U, colList: [...Array(U).keys()].map((Q) => G.optList.length) })), (!Object.values(Xe).includes(G.problemType) && !z.length || z[z.length - 1].children.length >= _e) && z.push({ children: [], col: U, colList: [...Array(U).keys()].map((Q) => G.optList.length) }), z[z.length - 1].children.push(G);
|
|
3573
3591
|
}), z.map((G, Q) => ({ ...I, groupIndex: Q, children: G.children, col: G.col, colList: G.colList }));
|
|
3574
3592
|
} else if ([m.fill, m.fill_english].includes(I.problemType) && I.styleInfo[u[e.layout.mode].fill_g] === _.portrait) {
|
|
3575
3593
|
const z = Math.floor(I.styleInfo[u[e.layout.mode].fill_f]) * (I.styleInfo[u[e.layout.mode].fill_h] || 10);
|
|
3576
|
-
return [...Array(Math.ceil(I.children.length / z)).keys()].map((
|
|
3594
|
+
return [...Array(Math.ceil(I.children.length / z)).keys()].map((A, W) => ({
|
|
3577
3595
|
...I,
|
|
3578
3596
|
groupIndex: W,
|
|
3579
3597
|
children: I.children.slice(W * z, (W + 1) * z).map((U) => ({
|
|
@@ -3652,9 +3670,9 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3652
3670
|
switch (b.styleInfo[u[e.layout.mode].choice_a]) {
|
|
3653
3671
|
case _.choice_1:
|
|
3654
3672
|
case _.choice_3:
|
|
3655
|
-
x && !e.noPortrait && [...Array(Math.ceil(b.children.length / v)).keys()].map((
|
|
3656
|
-
const W = b.children.find((U) => U.id ===
|
|
3657
|
-
W._grid_area_ =
|
|
3673
|
+
x && !e.noPortrait && [...Array(Math.ceil(b.children.length / v)).keys()].map((A) => b.children.filter((W, U) => U >= A * v && U < (A + 1) * v)).map((A, W) => A.map((U, _e) => ({ ...U, _grid_area_: x ? null : yt[_e] + W }))).flat(2).forEach((A) => {
|
|
3674
|
+
const W = b.children.find((U) => U.id === A.id);
|
|
3675
|
+
W._grid_area_ = A._grid_area_;
|
|
3658
3676
|
}), E = x ? {
|
|
3659
3677
|
"grid-template": `repeat(${Math.ceil(b.children.length / b.col)}, 1fr) / ${O.join(" ")}`
|
|
3660
3678
|
} : {
|
|
@@ -3698,7 +3716,7 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3698
3716
|
return I;
|
|
3699
3717
|
if (l.includes(b.problemType)) {
|
|
3700
3718
|
let x = {};
|
|
3701
|
-
if (Object.values(
|
|
3719
|
+
if (Object.values(Xe).includes(e.data.problemType)) {
|
|
3702
3720
|
const v = Math.max(.../*props.data.rawChildren || */
|
|
3703
3721
|
e.data.children.map((R) => R.optList.length)) * ($e[e.layout.fillSize].value + 9) + (F.value[`h${e.data.id}`] || F.value[b.polymerId || ""] || F.value[((O = e.data.children[0]) == null ? void 0 : O.polymerId) || ""] || 0) * 10 + 10, C = Math.min(Math.floor(e.width / v), e.data.style[u[e.layout.mode].choice_d] || 10);
|
|
3704
3722
|
x = E % C ? { minWidth: `${v}px`, marginLeft: `${(e.width - v * C) / (C - 1) - 5}px` } : { minWidth: `${v}px` };
|
|
@@ -3750,22 +3768,22 @@ const _s = /* @__PURE__ */ pe(ms, [["render", ys]]), fs = ["data-viewid"], gs =
|
|
|
3750
3768
|
};
|
|
3751
3769
|
}
|
|
3752
3770
|
};
|
|
3753
|
-
const
|
|
3754
|
-
function
|
|
3755
|
-
const n =
|
|
3756
|
-
return r(!0), d(
|
|
3771
|
+
const Ns = ["data-block", "data-polymer"], Os = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], zs = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], Hs = { key: 0 };
|
|
3772
|
+
function Rs(e, t, o, l, i, a) {
|
|
3773
|
+
const n = Bt("Sub");
|
|
3774
|
+
return r(!0), d(M, null, ee(l.GroupData, (c, h) => (r(), d(M, null, [
|
|
3757
3775
|
c.type === "polymer" ? (r(), d("div", {
|
|
3758
3776
|
key: 0,
|
|
3759
3777
|
"data-block": l.ComputBlock(c),
|
|
3760
3778
|
"data-polymer": h,
|
|
3761
|
-
class:
|
|
3762
|
-
style:
|
|
3779
|
+
class: le([...l.ComputPolymerCls(c)]),
|
|
3780
|
+
style: ae(l.ComputPolymerStyle(c))
|
|
3763
3781
|
}, [
|
|
3764
|
-
(r(!0), d(
|
|
3782
|
+
(r(!0), d(M, null, ee(c.children, (s, p) => {
|
|
3765
3783
|
var F;
|
|
3766
3784
|
return r(), d("div", {
|
|
3767
|
-
class:
|
|
3768
|
-
style:
|
|
3785
|
+
class: le(["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 === s.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((F = o.target.value) == null ? void 0 : F.rootProblemId) === s.rootProblemId ? "border-current" : "border-transparent", l.IsSmallFill && "small_view"]),
|
|
3786
|
+
style: ae(l.ComputPolymerItemStyle(s, p)),
|
|
3769
3787
|
"data-tag": s.__tag__,
|
|
3770
3788
|
"data-polymer": h,
|
|
3771
3789
|
"data-block": l.ComputBlock(s),
|
|
@@ -3774,22 +3792,22 @@ function Ns(e, t, o, l, i, a) {
|
|
|
3774
3792
|
onMouseenter: (y) => l.handleHoverIn(s),
|
|
3775
3793
|
onMouseleave: (y) => l.handleHoverOut(s)
|
|
3776
3794
|
}, [
|
|
3777
|
-
s.problemType ? (r(),
|
|
3795
|
+
s.problemType ? (r(), ie(n, {
|
|
3778
3796
|
key: 0,
|
|
3779
3797
|
sub: s.sub,
|
|
3780
3798
|
isFull: !!l.ModuleTag,
|
|
3781
3799
|
width: l.SubWidthInfo[`h${s.headLineId}`] || l.SubWidthInfo[s.polymerId || ""] || 0,
|
|
3782
|
-
class:
|
|
3800
|
+
class: le(["sub_item", l.ComputAbs(s) && "absolute left-0 top-3 left_sub"])
|
|
3783
3801
|
}, null, 8, ["sub", "isFull", "width", "class"])) : B("", !0),
|
|
3784
|
-
(r(),
|
|
3785
|
-
], 46,
|
|
3802
|
+
(r(), ie($t(l.ComputName(s)), Tt(It({ item: s, layout: o.layout, ...l.ComputPayload(s, p) })), null, 16))
|
|
3803
|
+
], 46, Os);
|
|
3786
3804
|
}), 256))
|
|
3787
|
-
], 14,
|
|
3805
|
+
], 14, Ns)) : (r(!0), d(M, { key: 1 }, ee(c.children, (s, p) => {
|
|
3788
3806
|
var F;
|
|
3789
|
-
return r(), d(
|
|
3807
|
+
return r(), d(M, null, [
|
|
3790
3808
|
f("div", {
|
|
3791
|
-
class:
|
|
3792
|
-
style:
|
|
3809
|
+
class: le(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === s.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((F = o.target.value) == null ? void 0 : F.rootProblemId) === s.rootProblemId ? "border-current" : "border-transparent"]),
|
|
3810
|
+
style: ae(l.ComputStyle(s, p)),
|
|
3793
3811
|
"data-tag": s.__tag__,
|
|
3794
3812
|
"data-block": l.ComputBlock(s),
|
|
3795
3813
|
"data-xine": l.Gps_cls.item + s._sub,
|
|
@@ -3798,7 +3816,7 @@ function Ns(e, t, o, l, i, a) {
|
|
|
3798
3816
|
onMouseenter: (y) => l.handleHoverIn(s),
|
|
3799
3817
|
onMouseleave: (y) => l.handleHoverOut(s)
|
|
3800
3818
|
}, [
|
|
3801
|
-
s.problemType && !l.ComputAbs(s) ? (r(),
|
|
3819
|
+
s.problemType && !l.ComputAbs(s) ? (r(), ie(n, {
|
|
3802
3820
|
key: 0,
|
|
3803
3821
|
sub: s.sub,
|
|
3804
3822
|
isFull: !!l.ModuleTag,
|
|
@@ -3806,9 +3824,9 @@ function Ns(e, t, o, l, i, a) {
|
|
|
3806
3824
|
score: l.ComputItemScore(s),
|
|
3807
3825
|
bracketType: s.style[l.problemLayoutKey.public.scoreShowFlag]
|
|
3808
3826
|
}, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : B("", !0),
|
|
3809
|
-
(r(),
|
|
3810
|
-
default:
|
|
3811
|
-
s.customSub ? B("", !0) : (r(),
|
|
3827
|
+
(r(), ie($t(l.ComputName(s)), Tt(It({ item: s, layout: o.layout, ...l.ComputPayload(s, p) })), {
|
|
3828
|
+
default: Nt(() => [
|
|
3829
|
+
s.customSub ? B("", !0) : (r(), ie(n, {
|
|
3812
3830
|
key: 0,
|
|
3813
3831
|
sub: s.sub,
|
|
3814
3832
|
isFull: !!l.ModuleTag,
|
|
@@ -3819,13 +3837,13 @@ function Ns(e, t, o, l, i, a) {
|
|
|
3819
3837
|
]),
|
|
3820
3838
|
_: 2
|
|
3821
3839
|
}, 1040))
|
|
3822
|
-
], 46,
|
|
3823
|
-
s.polymerId && l.PolymerData[s.polymerId][l.PolymerData[s.polymerId].length - 1] === s.id || s.style && s.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && s.order === s.answerLen - 1 ? (r(), d("div",
|
|
3840
|
+
], 46, zs),
|
|
3841
|
+
s.polymerId && l.PolymerData[s.polymerId][l.PolymerData[s.polymerId].length - 1] === s.id || s.style && s.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && s.order === s.answerLen - 1 ? (r(), d("div", Hs)) : B("", !0)
|
|
3824
3842
|
], 64);
|
|
3825
3843
|
}), 256))
|
|
3826
3844
|
], 64))), 256);
|
|
3827
3845
|
}
|
|
3828
|
-
const
|
|
3846
|
+
const je = /* @__PURE__ */ he(Bs, [["render", Rs], ["__scopeId", "data-v-41210dd5"]]), Gs = (e, t, o) => {
|
|
3829
3847
|
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) => {
|
|
3830
3848
|
if (!o)
|
|
3831
3849
|
return "";
|
|
@@ -3835,15 +3853,15 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
3835
3853
|
return o === _.bracket_cn ? ")" : ")";
|
|
3836
3854
|
}, n = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
|
|
3837
3855
|
return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${n}</span>` : "";
|
|
3838
|
-
}, Fe = 200 / 96,
|
|
3839
|
-
const l = V(
|
|
3856
|
+
}, Fe = 200 / 96, Kt = 4, Ws = 10, V = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, pe = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Pe = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), qs = (e, t, o) => {
|
|
3857
|
+
const l = V(pe(`${$.item}${e._sub}`, t));
|
|
3840
3858
|
return !(l.top >= o.top + o.height || l.top + l.height < o.top);
|
|
3841
3859
|
}, ye = (e, t, o = !1) => !e || !t ? null : {
|
|
3842
3860
|
x: e.x - t.x,
|
|
3843
3861
|
y: e.y - t.y + (o ? 1 : 0),
|
|
3844
3862
|
width: e.width,
|
|
3845
3863
|
height: e.height - (o ? 2 : 0)
|
|
3846
|
-
},
|
|
3864
|
+
}, ze = (e, t, o, l = !1, i = !1) => {
|
|
3847
3865
|
if (!e)
|
|
3848
3866
|
return {
|
|
3849
3867
|
x: 0,
|
|
@@ -3861,15 +3879,15 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
3861
3879
|
}, re = (e, t = !1) => {
|
|
3862
3880
|
if (!e)
|
|
3863
3881
|
return null;
|
|
3864
|
-
const o = t ?
|
|
3882
|
+
const o = t ? Kt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
|
|
3865
3883
|
return {
|
|
3866
3884
|
x: Math.round(l.x * Fe - o),
|
|
3867
3885
|
y: Math.round(l.y * Fe - o),
|
|
3868
3886
|
width: Math.round(l.width * Fe + o * 2),
|
|
3869
3887
|
height: Math.round(l.height * Fe + o * 2)
|
|
3870
3888
|
};
|
|
3871
|
-
},
|
|
3872
|
-
const o =
|
|
3889
|
+
}, Ut = (e, t = $.en_num) => {
|
|
3890
|
+
const o = pe(t);
|
|
3873
3891
|
if (!o)
|
|
3874
3892
|
return null;
|
|
3875
3893
|
const l = {
|
|
@@ -3905,17 +3923,17 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
3905
3923
|
xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
|
|
3906
3924
|
questionNOList: [...Array(l.list.length).keys()].map((i, a) => a + 1)
|
|
3907
3925
|
};
|
|
3908
|
-
},
|
|
3909
|
-
cardSizeType:
|
|
3926
|
+
}, Qs = (e) => ({
|
|
3927
|
+
cardSizeType: $o[e.layout.paper],
|
|
3910
3928
|
cardColumnCount: e.layout.column,
|
|
3911
3929
|
cardColumnCount2: e.layout.backColumn,
|
|
3912
3930
|
doubleCard: !0,
|
|
3913
3931
|
paperWidth: Math.round(k[e.layout.paper].width * Fe),
|
|
3914
3932
|
paperHeight: Math.round(k[e.layout.paper].height * Fe)
|
|
3915
|
-
}),
|
|
3933
|
+
}), Ys = (e) => {
|
|
3916
3934
|
const t = V(e.pageDom[0]), o = V(e.pageDom[1]), l = (a, n) => {
|
|
3917
3935
|
var h;
|
|
3918
|
-
const c = n > 2 ||
|
|
3936
|
+
const c = n > 2 || at.includes(e.layout.paper) ? {
|
|
3919
3937
|
trdLeftTopPos: re(ye(V(Pe(`${$.point}t`, e.pageDom[a])[1]), V(e.pageDom[a]))),
|
|
3920
3938
|
trdLeftBottomPos: re(ye(V(Pe(`${$.point}b`, e.pageDom[a])[1]), V(e.pageDom[a])))
|
|
3921
3939
|
} : {};
|
|
@@ -3925,31 +3943,31 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
3925
3943
|
...c
|
|
3926
3944
|
} : null;
|
|
3927
3945
|
}, i = [
|
|
3928
|
-
re(ye(V(
|
|
3929
|
-
re(ye(V(
|
|
3946
|
+
re(ye(V(pe(`${$.point}l`, e.pageDom[0])), t)),
|
|
3947
|
+
re(ye(V(pe(`${$.point}r`, e.pageDom[0])), t))
|
|
3930
3948
|
];
|
|
3931
3949
|
return {
|
|
3932
3950
|
// 取第一/二页定位点信息
|
|
3933
|
-
leftTopPos: re(ye(V(
|
|
3934
|
-
rightTopPos: re(ye(V(
|
|
3935
|
-
leftBottomPos: re(ye(V(
|
|
3936
|
-
rightBottomPos: re(ye(V(
|
|
3951
|
+
leftTopPos: re(ye(V(pe(`${$.point}lt`, e.pageDom[0])), t)),
|
|
3952
|
+
rightTopPos: re(ye(V(pe(`${$.point}rt`, e.pageDom[0])), t)),
|
|
3953
|
+
leftBottomPos: re(ye(V(pe(`${$.point}lb`, e.pageDom[0])), t)),
|
|
3954
|
+
rightBottomPos: re(ye(V(pe(`${$.point}rb`, e.pageDom[0])), t)),
|
|
3937
3955
|
// waistAuxAnchorInfo: getAuxInfo(0, true),
|
|
3938
3956
|
verticalAuxInfo: i,
|
|
3939
3957
|
verticalAuxInfo2: e.pageDom[1] ? e.bindWidth ? [
|
|
3940
|
-
re(ye(V(
|
|
3941
|
-
re(ye(V(
|
|
3958
|
+
re(ye(V(pe(`${$.point}l`, e.pageDom[1])), o)),
|
|
3959
|
+
re(ye(V(pe(`${$.point}r`, e.pageDom[1])), o))
|
|
3942
3960
|
] : i : null,
|
|
3943
3961
|
auxAnchorInfo: l(0, e.layout.column),
|
|
3944
3962
|
auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
|
|
3945
3963
|
};
|
|
3946
|
-
},
|
|
3964
|
+
}, Ks = (e) => {
|
|
3947
3965
|
let t = 10;
|
|
3948
3966
|
if (e.pageDom[1]) {
|
|
3949
|
-
const l =
|
|
3950
|
-
t =
|
|
3967
|
+
const l = pe(`${$.page_item}0`, e.pageDom[1]).getBoundingClientRect();
|
|
3968
|
+
t = pe(`${$.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
|
|
3951
3969
|
}
|
|
3952
|
-
let o = ye(V(
|
|
3970
|
+
let o = ye(V(pe($.page, e.pageDom[e.pageTotal - 1])), V(e.pageDom[e.pageTotal - 1]));
|
|
3953
3971
|
return o = { ...o, y: o.y % (k[e.layout.paper].height + (e.pageMargin || 0)) }, [
|
|
3954
3972
|
{
|
|
3955
3973
|
// 固定值
|
|
@@ -3959,7 +3977,7 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
3959
3977
|
// 页码区块位置,部分需动态获取 x y width height
|
|
3960
3978
|
choiceQuestionPosition: re(o, !0),
|
|
3961
3979
|
// 页码点区块第一个页码点的位置,部分需动态获取
|
|
3962
|
-
firstChoicePosition: re(ye(V(
|
|
3980
|
+
firstChoicePosition: re(ye(V(pe(`${$.page_item}0`, e.pageDom[e.pageTotal - 1])), V(e.pageDom[e.pageTotal - 1]))),
|
|
3963
3981
|
// 页码点最大值,展开为数组
|
|
3964
3982
|
choiceGridSequenceNOList: vt.filter((l, i) => i < e.pageTotal),
|
|
3965
3983
|
// 排列方向
|
|
@@ -3970,8 +3988,8 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
3970
3988
|
xColOffset: Math.round(t * Fe)
|
|
3971
3989
|
}
|
|
3972
3990
|
];
|
|
3973
|
-
},
|
|
3974
|
-
const t =
|
|
3991
|
+
}, Us = (e) => {
|
|
3992
|
+
const t = pe($.lack, e.pageDom[0]);
|
|
3975
3993
|
return t ? {
|
|
3976
3994
|
// 固定值
|
|
3977
3995
|
choiceQuestionCount: 1,
|
|
@@ -3990,8 +4008,8 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
3990
4008
|
yRowOffset: 0,
|
|
3991
4009
|
xColOffset: 0
|
|
3992
4010
|
} : null;
|
|
3993
|
-
},
|
|
3994
|
-
const t =
|
|
4011
|
+
}, Vs = (e) => {
|
|
4012
|
+
const t = pe($.en_code, e.pageDom[0]);
|
|
3995
4013
|
if (!t)
|
|
3996
4014
|
return null;
|
|
3997
4015
|
let o = ye(V(t), V(e.pageDom[0]));
|
|
@@ -4005,8 +4023,8 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4005
4023
|
// 条形码或二维码,不确定,固定此值
|
|
4006
4024
|
pictureType: "TYPE_NONE"
|
|
4007
4025
|
};
|
|
4008
|
-
},
|
|
4009
|
-
const t =
|
|
4026
|
+
}, js = (e) => {
|
|
4027
|
+
const t = pe($.write_view, e.pageDom[0]);
|
|
4010
4028
|
if (!t)
|
|
4011
4029
|
return null;
|
|
4012
4030
|
const o = Pe($.score_item, t);
|
|
@@ -4022,8 +4040,8 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4022
4040
|
score: Math.abs(parseFloat(o[i].innerText))
|
|
4023
4041
|
}))
|
|
4024
4042
|
};
|
|
4025
|
-
},
|
|
4026
|
-
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l =
|
|
4043
|
+
}, Xs = (e, t) => {
|
|
4044
|
+
const o = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = Ws + Kt, i = (a) => parseFloat(a.toFixed(2));
|
|
4027
4045
|
return t.flat().filter((a) => o.includes(a.problemType) && a.colIndex < 2).map((a) => {
|
|
4028
4046
|
switch (a.problemType) {
|
|
4029
4047
|
case m.fill:
|
|
@@ -4071,7 +4089,7 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4071
4089
|
});
|
|
4072
4090
|
}
|
|
4073
4091
|
}).flat();
|
|
4074
|
-
},
|
|
4092
|
+
}, Js = (e, t) => {
|
|
4075
4093
|
const o = e.map((i) => {
|
|
4076
4094
|
let a = [];
|
|
4077
4095
|
return i.filter((n) => [m.fill, m.fill_english].includes(n.problemType)).forEach((n) => {
|
|
@@ -4086,14 +4104,14 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4086
4104
|
}).filter((i) => i.data.length).forEach((i) => {
|
|
4087
4105
|
l[i.id] || (l[i.id] = []), l[i.id].push(...i.data);
|
|
4088
4106
|
}), l;
|
|
4089
|
-
},
|
|
4107
|
+
}, Zs = (e, t) => {
|
|
4090
4108
|
let o = 0, l = {};
|
|
4091
4109
|
return [...Array(e.pageDom.length).keys()].map((i) => {
|
|
4092
4110
|
var c, h, s, p;
|
|
4093
4111
|
const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), n = ((p = (s = t[t.length - 1]) == null ? void 0 : s.data[((h = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : h.length) - 1]) == null ? void 0 : p.children) || [];
|
|
4094
4112
|
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((F, y) => a + y < t.length).map((F, y) => {
|
|
4095
|
-
const
|
|
4096
|
-
const j =
|
|
4113
|
+
const P = e.pageDom[i], q = V(P), oe = e.colDom[a + y], ne = V(oe), N = e.colViewDom[a + y], w = V(N), K = t[a + y].data.map((S) => S.children).flat(), ce = t[a + y].data.filter((S) => [Se.one_choice, Se.another_choice].includes(S.problemType) && S.rawChildren.length).map((S) => {
|
|
4114
|
+
const j = pe(`${$.choice}${S.id}`, oe);
|
|
4097
4115
|
return j ? {
|
|
4098
4116
|
id: `${++o}`,
|
|
4099
4117
|
baseIndex: parseInt(S.rawChildren[0]._sub),
|
|
@@ -4106,11 +4124,11 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4106
4124
|
})).filter((ue) => ue.position)
|
|
4107
4125
|
} : {};
|
|
4108
4126
|
}).filter((S) => S.position);
|
|
4109
|
-
return K.filter((S) => S.problemType &&
|
|
4127
|
+
return K.filter((S) => S.problemType && qs(S, oe, ne)).map((S, j) => {
|
|
4110
4128
|
var Y;
|
|
4111
4129
|
let ue = {};
|
|
4112
4130
|
l[S._sub] ? l[S._sub] += 1 : l[S._sub] = 1;
|
|
4113
|
-
const ve =
|
|
4131
|
+
const ve = pe(`${$.item}${S._sub}`, oe);
|
|
4114
4132
|
switch (S.problemType) {
|
|
4115
4133
|
case m.choice:
|
|
4116
4134
|
case m.choice_english:
|
|
@@ -4121,7 +4139,7 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4121
4139
|
isColumn: S.style[u[e.layout.mode].choice_a] !== _.choice_2,
|
|
4122
4140
|
optList: S.optList.map((O, x) => ({
|
|
4123
4141
|
id: `${S._sub}.${x + 1}`,
|
|
4124
|
-
position:
|
|
4142
|
+
position: ze(pe(`${$.fill}${x}`, ve), w, q)
|
|
4125
4143
|
})).filter((O) => O.position)
|
|
4126
4144
|
};
|
|
4127
4145
|
break;
|
|
@@ -4129,7 +4147,7 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4129
4147
|
ue = {
|
|
4130
4148
|
optList: [0, 1].map((O, x) => ({
|
|
4131
4149
|
id: `${S._sub}.${x + 1}`,
|
|
4132
|
-
position:
|
|
4150
|
+
position: ze(pe(`${$.fill}${x}`, ve), w, q)
|
|
4133
4151
|
})).filter((O) => O.position)
|
|
4134
4152
|
};
|
|
4135
4153
|
break;
|
|
@@ -4142,23 +4160,23 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4142
4160
|
score: O,
|
|
4143
4161
|
problemType: S.problemType,
|
|
4144
4162
|
isHiddenContent: !S.style[u[e.layout.mode].fill_b],
|
|
4145
|
-
position:
|
|
4146
|
-
scorePosition:
|
|
4147
|
-
answerPosition:
|
|
4163
|
+
position: ze(ve, w, q),
|
|
4164
|
+
scorePosition: ze(b[x], w, q),
|
|
4165
|
+
answerPosition: ze(E[x], w, q)
|
|
4148
4166
|
})).filter((O) => O.position)
|
|
4149
4167
|
};
|
|
4150
4168
|
break;
|
|
4151
4169
|
case m.slove:
|
|
4152
4170
|
case m.easy_slove:
|
|
4153
4171
|
case m.art:
|
|
4154
|
-
const I =
|
|
4172
|
+
const I = pe($.score, ve);
|
|
4155
4173
|
ue = {
|
|
4156
|
-
scoreList: I ? [
|
|
4174
|
+
scoreList: I ? [pe($.score_tenbit, I), pe($.score_base, I), pe($.score_half, I)].map((O) => {
|
|
4157
4175
|
if (!O)
|
|
4158
4176
|
return {};
|
|
4159
4177
|
const x = Pe($.score_item, O);
|
|
4160
4178
|
return {
|
|
4161
|
-
position:
|
|
4179
|
+
position: ze(O, w, q, !0),
|
|
4162
4180
|
itemPosition: {
|
|
4163
4181
|
width: x[0].getBoundingClientRect().width
|
|
4164
4182
|
},
|
|
@@ -4174,13 +4192,13 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4174
4192
|
problemType: S.problemType,
|
|
4175
4193
|
_rootProblemType: S._rootProblemType,
|
|
4176
4194
|
_parentProblemType: S._parentProblemType,
|
|
4177
|
-
position:
|
|
4195
|
+
position: ze(ve, w, q, !1, S.id === K[K.length - 1].id && S.id !== ((Y = n[n.length - 1]) == null ? void 0 : Y.id) && [m.slove].includes(S.problemType)),
|
|
4178
4196
|
...ue
|
|
4179
4197
|
};
|
|
4180
4198
|
}).concat(ce).filter((S) => S.position);
|
|
4181
4199
|
});
|
|
4182
4200
|
}).map((i) => i.flat());
|
|
4183
|
-
},
|
|
4201
|
+
}, ei = (e) => {
|
|
4184
4202
|
let t = {};
|
|
4185
4203
|
const o = (a = e, n = !1) => (t[a.id] = {
|
|
4186
4204
|
_rootProblemType: ut[e._rootProblemType],
|
|
@@ -4215,7 +4233,7 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4215
4233
|
choiceUnitSectionList: e.optList.map((a, n) => ({
|
|
4216
4234
|
...o(a, !0),
|
|
4217
4235
|
choicePosition: re(a.position),
|
|
4218
|
-
choiceResult: [m.decide].includes(e.problemType) ?
|
|
4236
|
+
choiceResult: [m.decide].includes(e.problemType) ? So[n] : vt[n]
|
|
4219
4237
|
}))
|
|
4220
4238
|
}]
|
|
4221
4239
|
};
|
|
@@ -4293,7 +4311,7 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4293
4311
|
...o(e, !e.isOneChoice),
|
|
4294
4312
|
...l
|
|
4295
4313
|
}, typeData: t };
|
|
4296
|
-
},
|
|
4314
|
+
}, ti = (e, t) => {
|
|
4297
4315
|
let o = {};
|
|
4298
4316
|
const l = [...Array(e.pageTotal).keys()].map((n) => ({
|
|
4299
4317
|
// 当前页数
|
|
@@ -4307,21 +4325,21 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4307
4325
|
// 固定值
|
|
4308
4326
|
splitFileList: [],
|
|
4309
4327
|
// 依据当前页码设置答案
|
|
4310
|
-
answerResultList: vt.slice(e.layout.pagePoint ===
|
|
4328
|
+
answerResultList: vt.slice(e.layout.pagePoint === Ye.right_up.code ? e.pageTotal - n - 1 : 0, e.layout.pagePoint === Ye.right_up.code ? e.pageTotal : n + 1),
|
|
4311
4329
|
// 固定值
|
|
4312
4330
|
noAnswerTag: !1
|
|
4313
4331
|
}],
|
|
4314
4332
|
// 按题切块信息
|
|
4315
4333
|
cardCuttingSectionList: t[n].map((c) => {
|
|
4316
|
-
const h =
|
|
4334
|
+
const h = ei(c);
|
|
4317
4335
|
return o = { ...o, ...h.typeData }, h.data;
|
|
4318
4336
|
}).flat()
|
|
4319
4337
|
})), i = (n, c) => ([n.sectionID].flat(2)[0] || "").split(".").filter((h, s) => s < c).join("."), a = l.map((n) => {
|
|
4320
4338
|
let c = [], h = [], s = [];
|
|
4321
4339
|
return n.cardCuttingSectionList.forEach((p, F, y) => {
|
|
4322
|
-
const
|
|
4323
|
-
let q = !1,
|
|
4324
|
-
if (s.find((N) => i(N, 1) ===
|
|
4340
|
+
const P = i(p, 1);
|
|
4341
|
+
let q = !1, oe = !1;
|
|
4342
|
+
if (s.find((N) => i(N, 1) === P && N.secitonSeqID === p.secitonSeqID) && !(p.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(p), q = F < y.length - 1, oe = !0), q)
|
|
4325
4343
|
return;
|
|
4326
4344
|
let ne = !1;
|
|
4327
4345
|
if ((p.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (h.push(p), ne = !0), s.length) {
|
|
@@ -4338,17 +4356,17 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4338
4356
|
}
|
|
4339
4357
|
s = [];
|
|
4340
4358
|
}
|
|
4341
|
-
ne ||
|
|
4359
|
+
ne || oe || s.push(p);
|
|
4342
4360
|
}), c = [...c, ...s].map((p) => ({ ...p, cuttingSectionQuestionType: o[p.sectionID]._rootProblemType || p.cuttingSectionQuestionType, sectionID: i(p, 1) })), { ...n, cardCuttingSectionList: [...c, ...h] };
|
|
4343
4361
|
}).map((n) => {
|
|
4344
4362
|
const c = n.cardCuttingSectionList.map((h) => {
|
|
4345
|
-
var
|
|
4363
|
+
var P;
|
|
4346
4364
|
let s = [], p = [];
|
|
4347
4365
|
const F = Math.max(...(h.subjectiveQuestionSectionList || []).map((q) => q.sectionID.split(".").length - 1), 1);
|
|
4348
|
-
(
|
|
4366
|
+
(P = h.subjectiveQuestionSectionList) == null || P.forEach((q, oe, ne) => {
|
|
4349
4367
|
const N = i(q, F);
|
|
4350
4368
|
let w = !1, K = !1;
|
|
4351
|
-
if (p.find((ce) => i(ce, F) === N && ce.secitonSeqID === q.secitonSeqID) && (p.push(q), w =
|
|
4369
|
+
if (p.find((ce) => i(ce, F) === N && ce.secitonSeqID === q.secitonSeqID) && (p.push(q), w = oe < ne.length - 1, K = !0), !w) {
|
|
4352
4370
|
if (p.length) {
|
|
4353
4371
|
if (p.length === 1)
|
|
4354
4372
|
s.push(p[0]);
|
|
@@ -4374,7 +4392,7 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4374
4392
|
return { ...n, cardCuttingSectionList: c };
|
|
4375
4393
|
});
|
|
4376
4394
|
return o = {}, a;
|
|
4377
|
-
},
|
|
4395
|
+
}, oi = (e, t) => {
|
|
4378
4396
|
var l;
|
|
4379
4397
|
const o = V(e.pageDom[0]);
|
|
4380
4398
|
return {
|
|
@@ -4389,17 +4407,17 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4389
4407
|
// true:表示每个页面都要自带页面号确定信息 false:表示可以根据双面扫描下解析出来的另一面来推定
|
|
4390
4408
|
sideAllSelfIntp: !1,
|
|
4391
4409
|
// 填涂式考号,与条码式考号互斥
|
|
4392
|
-
adminssionTicketID:
|
|
4410
|
+
adminssionTicketID: Ut(e),
|
|
4393
4411
|
// 试卷二维码
|
|
4394
4412
|
cardSerialNumber: {
|
|
4395
4413
|
// 条形码虚线框位置, x, y, width, height
|
|
4396
|
-
encodePictureArea: re(ye(V(
|
|
4397
|
-
qrCodePosition: re(ye(V(
|
|
4414
|
+
encodePictureArea: re(ye(V(pe($.art_code, e.pageDom[0])), o), !0),
|
|
4415
|
+
qrCodePosition: re(ye(V(pe($.art_code, e.pageDom[0])), o)),
|
|
4398
4416
|
// 条形码或二维码,不确定,固定此值
|
|
4399
4417
|
pictureType: "TYPE_QRCODE"
|
|
4400
4418
|
},
|
|
4401
4419
|
// 条码式考号
|
|
4402
|
-
studentID:
|
|
4420
|
+
studentID: Vs(e),
|
|
4403
4421
|
// 表示一个正确ID号的位数,暂未使用,固定此值
|
|
4404
4422
|
idLength: 12,
|
|
4405
4423
|
// 用来表示老师布置题的标识,固定值
|
|
@@ -4407,27 +4425,27 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4407
4425
|
// 有UserID的页面序号,一般情况是奇数面,例如1、3、5
|
|
4408
4426
|
userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
|
|
4409
4427
|
// 有缺考标记的页面序号,一般情况是第一面,固定值1
|
|
4410
|
-
absenceInfoIndexList:
|
|
4428
|
+
absenceInfoIndexList: pe($.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2) : null,
|
|
4411
4429
|
// 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
|
|
4412
4430
|
snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
|
|
4413
4431
|
// 哪些面有选做老师布置题的信息,固定值
|
|
4414
4432
|
onlyAssignInfoList: [],
|
|
4415
4433
|
// 页面布局信息
|
|
4416
|
-
layerType:
|
|
4434
|
+
layerType: Qs(e),
|
|
4417
4435
|
// 定位点信息
|
|
4418
|
-
...
|
|
4419
|
-
pottedLineXPos: e.bindWidth ? (l = re(ye(V(
|
|
4436
|
+
...Ys(e),
|
|
4437
|
+
pottedLineXPos: e.bindWidth ? (l = re(ye(V(pe($.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
|
|
4420
4438
|
// 页码点信息
|
|
4421
|
-
pageSideAnchorsList:
|
|
4439
|
+
pageSideAnchorsList: Ks(e),
|
|
4422
4440
|
// 缺考标记
|
|
4423
|
-
absenceMark:
|
|
4441
|
+
absenceMark: Us(e),
|
|
4424
4442
|
// 业务数据
|
|
4425
4443
|
oneFullPageCardList: t
|
|
4426
4444
|
};
|
|
4427
|
-
},
|
|
4428
|
-
const { config: t, data: o } = e, l =
|
|
4445
|
+
}, ai = (e) => {
|
|
4446
|
+
const { config: t, data: o } = e, l = js(t), i = Zs(t, o);
|
|
4429
4447
|
l && i[0].unshift(l);
|
|
4430
|
-
const a =
|
|
4448
|
+
const a = Xs(t, i), n = ti(t, i), c = oi(t, n), h = Ut(t, $.en_num_view) || {}, s = Js(i, o);
|
|
4431
4449
|
return {
|
|
4432
4450
|
engineData: c,
|
|
4433
4451
|
pageTotal: t.pageTotal,
|
|
@@ -4435,10 +4453,10 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4435
4453
|
localData: a,
|
|
4436
4454
|
extendInfo: { shortCoordinate: h, topicArrangeList: Object.keys(s).map((p) => ({ topicId: p, quesArrangeList: s[p] })) }
|
|
4437
4455
|
};
|
|
4438
|
-
},
|
|
4456
|
+
}, li = { class: "layt-moni_view" }, ni = { class: "layt-moni_content" }, si = { class: "layt-moni_icon" }, ii = { class: "layt-moni_msg" }, ri = {
|
|
4439
4457
|
key: 0,
|
|
4440
4458
|
class: "layt-moni_err_view"
|
|
4441
|
-
},
|
|
4459
|
+
}, ci = { class: "layt-moni_err_item_msg" }, di = ["onClick"], ui = /* @__PURE__ */ te({
|
|
4442
4460
|
__name: "index",
|
|
4443
4461
|
props: {
|
|
4444
4462
|
ColList: {},
|
|
@@ -4455,12 +4473,12 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4455
4473
|
o.ColList.forEach((p, F) => {
|
|
4456
4474
|
p.data.map((y) => y.children).flat().filter((y) => [m.slove, m.art, m.easy_slove].includes(y.problemType) && !y.chunk).forEach((y) => {
|
|
4457
4475
|
var ne;
|
|
4458
|
-
const
|
|
4459
|
-
if (!
|
|
4476
|
+
const P = (ne = o.ColDom[F].querySelector(`*[data-tag="${y.__tag__}"]`)) == null ? void 0 : ne.querySelector(`*[data-xine="${$.score}"]`);
|
|
4477
|
+
if (!P)
|
|
4460
4478
|
return;
|
|
4461
|
-
|
|
4462
|
-
const q = window.getComputedStyle(
|
|
4463
|
-
|
|
4479
|
+
P.classList.remove("err_lack");
|
|
4480
|
+
const q = window.getComputedStyle(P), oe = [...Array.from(P.children)].map((N) => N.offsetWidth).reduce((N, w) => N + w, 0);
|
|
4481
|
+
P.offsetWidth + (P.children.length - 1) - parseFloat(q.borderLeft) - parseFloat(q.borderRight) < oe && (l.value.push({ msg: `${y.subStr}题打分条超长` }), P.classList.add("err_lack"), P.title = "打分条超长,请调整排版或使用自编打分条");
|
|
4464
4482
|
});
|
|
4465
4483
|
});
|
|
4466
4484
|
const n = (s = document.querySelector(".__layout__")) == null ? void 0 : s.getBoundingClientRect();
|
|
@@ -4481,49 +4499,49 @@ const Xe = /* @__PURE__ */ pe(Ms, [["render", Ns], ["__scopeId", "data-v-41210dd
|
|
|
4481
4499
|
var c;
|
|
4482
4500
|
(((c = l.value.find((h) => h.type === "absTxt")) == null ? void 0 : c.value) || []).forEach((h) => t("delAbsTxtItem", h));
|
|
4483
4501
|
};
|
|
4484
|
-
return (n, c) => (r(), d("div",
|
|
4485
|
-
f("div",
|
|
4502
|
+
return (n, c) => (r(), d("div", li, [
|
|
4503
|
+
f("div", ni, [
|
|
4486
4504
|
f("div", {
|
|
4487
|
-
class:
|
|
4505
|
+
class: le(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4488
4506
|
}, null, 2),
|
|
4489
4507
|
f("div", {
|
|
4490
|
-
class:
|
|
4508
|
+
class: le(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
|
|
4491
4509
|
}, [
|
|
4492
|
-
f("span",
|
|
4493
|
-
|
|
4510
|
+
f("span", si, [
|
|
4511
|
+
J(xe, {
|
|
4494
4512
|
width: 1.6,
|
|
4495
4513
|
name: l.value.length ? "wrong" : "right"
|
|
4496
4514
|
}, null, 8, ["name"])
|
|
4497
4515
|
]),
|
|
4498
|
-
f("span",
|
|
4516
|
+
f("span", ii, "排版" + Z(l.value.length ? "异常" : "良好"), 1)
|
|
4499
4517
|
], 2),
|
|
4500
|
-
l.value.length ? (r(), d("ul",
|
|
4501
|
-
(r(!0), d(
|
|
4518
|
+
l.value.length ? (r(), d("ul", ri, [
|
|
4519
|
+
(r(!0), d(M, null, ee(l.value, (h, s) => (r(), d("li", {
|
|
4502
4520
|
key: s,
|
|
4503
4521
|
class: "layt-moni_err_item"
|
|
4504
4522
|
}, [
|
|
4505
|
-
f("span",
|
|
4523
|
+
f("span", ci, Z(h.msg), 1),
|
|
4506
4524
|
h.fn ? (r(), d("span", {
|
|
4507
4525
|
key: 0,
|
|
4508
4526
|
class: "layt-moni_err_item_fn",
|
|
4509
4527
|
onClick: h.fn
|
|
4510
|
-
},
|
|
4528
|
+
}, Z(h.btnTxt || "删除"), 9, di)) : B("", !0)
|
|
4511
4529
|
]))), 128))
|
|
4512
4530
|
])) : B("", !0)
|
|
4513
4531
|
])
|
|
4514
4532
|
]));
|
|
4515
4533
|
}
|
|
4516
4534
|
});
|
|
4517
|
-
const
|
|
4535
|
+
const hi = /* @__PURE__ */ he(ui, [["__scopeId", "data-v-158ca85c"]]), fe = (e) => e == null ? void 0 : e.getBoundingClientRect(), ht = (e, t) => t.querySelector(`*[data-tag="${e}"]`), _t = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, kt].includes(t.dataset.block || "")), nt = (e) => e.previousElementSibling ? [Be, kt].includes(e.previousElementSibling.dataset.block || "") ? nt(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? nt(e.parentElement) : document.body, pi = (e) => {
|
|
4518
4536
|
const t = e.parentElement, o = document.createElement("span");
|
|
4519
4537
|
return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = kt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
|
|
4520
|
-
},
|
|
4538
|
+
}, mi = (e, t, o, l) => {
|
|
4521
4539
|
let i = null;
|
|
4522
4540
|
if (e.dataset.block === xt && !e.dataset.used) {
|
|
4523
4541
|
const a = window.getComputedStyle(e);
|
|
4524
|
-
t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block ===
|
|
4542
|
+
t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block === Rl ? e.parentElement : e), e.dataset.used = "1";
|
|
4525
4543
|
} else
|
|
4526
|
-
e.dataset.block === Mt ? i = e.parentElement : e.dataset.block ===
|
|
4544
|
+
e.dataset.block === Mt ? i = e.parentElement : e.dataset.block === Gl && !e.dataset.used ? e.offsetHeight < o - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === Ie && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${Mt}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === Wl && l || ql.includes(e.tagName.toLowerCase())) && (i = e);
|
|
4527
4545
|
return i;
|
|
4528
4546
|
}, At = (e, t, o) => {
|
|
4529
4547
|
const l = e.textContent || "", i = l.split("").map((h) => `<span>${h}</span>`).join("");
|
|
@@ -4538,10 +4556,10 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4538
4556
|
}, ft = (e, t, o) => {
|
|
4539
4557
|
const l = _t(e.parentElement), i = l.findIndex((n) => n === e);
|
|
4540
4558
|
let a = l.filter((n, c) => fe(n).top + n.offsetHeight - 1 < fe(e).top || c < i && fe(n).top < fe(e).top).reverse()[0];
|
|
4541
|
-
return a || (a =
|
|
4559
|
+
return a || (a = nt(e), fe(a).top + a.offsetHeight - t > o && (a = ft(a, t, o))), a;
|
|
4542
4560
|
}, Dt = (e, t, o, l) => {
|
|
4543
4561
|
const i = (n, c = o) => {
|
|
4544
|
-
var
|
|
4562
|
+
var oe, ne, N;
|
|
4545
4563
|
const h = n.map((w) => {
|
|
4546
4564
|
const K = fe(w);
|
|
4547
4565
|
return {
|
|
@@ -4549,7 +4567,7 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4549
4567
|
top: K.top - t,
|
|
4550
4568
|
left: K.left
|
|
4551
4569
|
};
|
|
4552
|
-
}), s = h.filter((w) => w.el.offsetHeight + w.top > c).sort((w, K) => w.top - K.top), p = (
|
|
4570
|
+
}), s = h.filter((w) => w.el.offsetHeight + w.top > c).sort((w, K) => w.top - K.top), p = (oe = s.shift()) == null ? void 0 : oe.el;
|
|
4553
4571
|
if (!p) {
|
|
4554
4572
|
const w = fe(n[0].parentElement);
|
|
4555
4573
|
if (w.top + w.height - t - 10 < c)
|
|
@@ -4557,8 +4575,8 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4557
4575
|
const K = document.createElement("div");
|
|
4558
4576
|
return (ne = n[0].parentElement) == null || ne.appendChild(K), K.style.height = c - (fe(K).top - t) + "px", K;
|
|
4559
4577
|
}
|
|
4560
|
-
const F = fe(p), y = F.top - t,
|
|
4561
|
-
if (s.filter((w) => w.top < y + p.offsetHeight && w.top + w.el.offsetHeight - 1 > y && (w.left + w.el.offsetWidth - 1 <
|
|
4578
|
+
const F = fe(p), y = F.top - t, P = F.left;
|
|
4579
|
+
if (s.filter((w) => w.top < y + p.offsetHeight && w.top + w.el.offsetHeight - 1 > y && (w.left + w.el.offsetWidth - 1 < P || w.left + 1 > P + p.offsetWidth)).length) {
|
|
4562
4580
|
const w = (N = h.filter((K) => K.top < y).pop()) == null ? void 0 : N.el;
|
|
4563
4581
|
if (w != null && w.children.length) {
|
|
4564
4582
|
const K = _t(w);
|
|
@@ -4569,9 +4587,9 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4569
4587
|
const w = getComputedStyle(p);
|
|
4570
4588
|
if (y + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
|
|
4571
4589
|
return ft(p, t, y);
|
|
4572
|
-
const K =
|
|
4590
|
+
const K = mi(p, c - y, c, l);
|
|
4573
4591
|
if (K)
|
|
4574
|
-
return
|
|
4592
|
+
return nt(K);
|
|
4575
4593
|
if (p.children.length) {
|
|
4576
4594
|
const ce = _t(p);
|
|
4577
4595
|
return i(ce, c);
|
|
@@ -4579,8 +4597,8 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4579
4597
|
return At(p, t, c);
|
|
4580
4598
|
}
|
|
4581
4599
|
}, a = i([e]);
|
|
4582
|
-
return { cut:
|
|
4583
|
-
},
|
|
4600
|
+
return { cut: pi(a), targetEl: a };
|
|
4601
|
+
}, yi = (e) => {
|
|
4584
4602
|
const { el: t, data: o, column: l, backColumn: i, getColSize: a, change: n } = e;
|
|
4585
4603
|
if (!t || !o.length) {
|
|
4586
4604
|
n([], !0);
|
|
@@ -4597,7 +4615,7 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4597
4615
|
height: parseFloat(S.height)
|
|
4598
4616
|
};
|
|
4599
4617
|
};
|
|
4600
|
-
let y = [],
|
|
4618
|
+
let y = [], P = 0;
|
|
4601
4619
|
const q = () => {
|
|
4602
4620
|
F(y.length), t.style.width = `${h.width}px`, y.push({
|
|
4603
4621
|
top: 0,
|
|
@@ -4607,14 +4625,14 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4607
4625
|
}), n([...y]);
|
|
4608
4626
|
};
|
|
4609
4627
|
q();
|
|
4610
|
-
const
|
|
4628
|
+
const oe = (w) => {
|
|
4611
4629
|
const K = getComputedStyle(w);
|
|
4612
4630
|
return fe(w).top - h.top + parseFloat(K.borderTop) + parseFloat(K.paddingTop) + parseFloat(K.lineHeight) > y[y.length - 1].height;
|
|
4613
4631
|
}, ne = (w) => {
|
|
4614
4632
|
const K = getComputedStyle(w);
|
|
4615
4633
|
return fe(w).top + w.offsetHeight - h.top - (w.dataset.block === Ie ? 0 : parseFloat(K.paddingBottom) - parseFloat(K.borderBottom)) <= y[y.length - 1].height;
|
|
4616
|
-
}, N = (w = JSON.parse(JSON.stringify(o[
|
|
4617
|
-
if (
|
|
4634
|
+
}, N = (w = JSON.parse(JSON.stringify(o[P] || {}))) => {
|
|
4635
|
+
if (P >= o.length || !Object.keys(w).length) {
|
|
4618
4636
|
n([...y], !0), console.timeEnd("layout"), y = [], s = 0;
|
|
4619
4637
|
return;
|
|
4620
4638
|
}
|
|
@@ -4629,8 +4647,8 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4629
4647
|
if (w.problemType)
|
|
4630
4648
|
y[y.length - 1].data.pop(), q(), N({ ...w });
|
|
4631
4649
|
else if (ne(K))
|
|
4632
|
-
q(),
|
|
4633
|
-
else if (
|
|
4650
|
+
q(), P++, N();
|
|
4651
|
+
else if (oe(K))
|
|
4634
4652
|
y[y.length - 1].data.pop(), q(), N({ ...w });
|
|
4635
4653
|
else {
|
|
4636
4654
|
S = Dt(K, h.top, y[y.length - 1].height, y.length % (l + i) >= l), console.log(S);
|
|
@@ -4654,7 +4672,7 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4654
4672
|
}), ue = w.children.slice(j.length)) : (y[y.length - 1].data.pop(), j = [], ve = !0, q(), N({ ...w }));
|
|
4655
4673
|
else if (ne(E))
|
|
4656
4674
|
j.push(Y), ue = b < w.children.length - 1 ? w.children.slice(b + 1) : [];
|
|
4657
|
-
else if (
|
|
4675
|
+
else if (oe(E))
|
|
4658
4676
|
ue = w.children.slice(b);
|
|
4659
4677
|
else {
|
|
4660
4678
|
S = Dt(E, h.top, y[y.length - 1].height, y.length % (l + i) >= l);
|
|
@@ -4667,27 +4685,27 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4667
4685
|
if (!ue.length) {
|
|
4668
4686
|
let C = { ...Y };
|
|
4669
4687
|
switch (Y.problemType) {
|
|
4670
|
-
case
|
|
4688
|
+
case Qe.slove:
|
|
4671
4689
|
const R = E.querySelector(`*[data-area="${Y.id}"]`);
|
|
4672
4690
|
R != null && R.contains(S.cut) && (s = Date.now(), S.cut.dataset.cutkey = s, Y.answerArea = R.innerHTML), E.contains(S.targetEl) && (Y.chunk += 1);
|
|
4673
4691
|
break;
|
|
4674
|
-
case
|
|
4692
|
+
case Qe.art:
|
|
4675
4693
|
if (Y.artEditor) {
|
|
4676
4694
|
const z = E.querySelector(`*[data-area="${Y.id}"]`);
|
|
4677
4695
|
z != null && z.contains(S.cut) && (s = Date.now(), S.cut.dataset.cutkey = s, Y.answerArea = z.innerHTML), E.contains(S.targetEl) && (Y.chunk += 1);
|
|
4678
4696
|
break;
|
|
4679
4697
|
} else {
|
|
4680
|
-
const z = E.querySelector(`*[data-bart="${Y.id}"]`),
|
|
4698
|
+
const z = E.querySelector(`*[data-bart="${Y.id}"]`), A = S.targetEl.dataset.block === Ie && S.targetEl.dataset.size ? S.targetEl : null, W = E.querySelector(`*[data-aart="${Y.id}"]`);
|
|
4681
4699
|
if (z != null && z.contains(S.cut))
|
|
4682
4700
|
s = Date.now(), S.cut.dataset.cutkey = s, Y.beforeArt = z == null ? void 0 : z.innerHTML, C.beforeGuide = "", C.afterArt = "", C.endAnswerLen = -1;
|
|
4683
|
-
else if (
|
|
4684
|
-
const U = parseInt(
|
|
4701
|
+
else if (A) {
|
|
4702
|
+
const U = parseInt(A.dataset.size);
|
|
4685
4703
|
if (!Y.artBlock)
|
|
4686
4704
|
if (Y.beforeGuide && Y.beforeGuide.length + (Y.startAnswerLen ? 0 : 2) - Y.startAnswerLen > U) {
|
|
4687
4705
|
const _e = E.querySelector(`*[data-guide="${Y.id}"]`), G = fe(_e);
|
|
4688
4706
|
if (G.height + G.top - h.top > h.height) {
|
|
4689
4707
|
_e.innerHTML = Y.beforeGuide.split("").map((g) => `<span>${g}</span>`).join("");
|
|
4690
|
-
const Q = fe(
|
|
4708
|
+
const Q = fe(A).top + A.offsetHeight, me = [...Array.from(_e.children)].findIndex((g) => fe(g).top > Q);
|
|
4691
4709
|
C.beforeGuide = Y.beforeGuide.substring(0, me), Y.beforeGuide = Y.beforeGuide.substring(me);
|
|
4692
4710
|
} else
|
|
4693
4711
|
Y.beforeGuide = "";
|
|
@@ -4710,21 +4728,21 @@ const ri = /* @__PURE__ */ pe(ii, [["__scopeId", "data-v-158ca85c"]]), fe = (e)
|
|
|
4710
4728
|
j.push(Y);
|
|
4711
4729
|
}), ve)
|
|
4712
4730
|
return;
|
|
4713
|
-
y[y.length - 1].data[y[y.length - 1].data.length - 1].children = j, ue.length ? (q(), N({ ...w, isHidden: !0, children: ue })) : (n([...y]),
|
|
4731
|
+
y[y.length - 1].data[y[y.length - 1].data.length - 1].children = j, ue.length ? (q(), N({ ...w, isHidden: !0, children: ue })) : (n([...y]), P++, N());
|
|
4714
4732
|
}
|
|
4715
4733
|
});
|
|
4716
4734
|
};
|
|
4717
4735
|
N();
|
|
4718
|
-
},
|
|
4719
|
-
|
|
4736
|
+
}, Vt = window.CKEDITOR;
|
|
4737
|
+
Vt.disableAutoInline = !0;
|
|
4720
4738
|
const Ct = `dx${Math.random().toString(32).substring(2)}`;
|
|
4721
|
-
function
|
|
4722
|
-
return
|
|
4739
|
+
function _i(e, t) {
|
|
4740
|
+
return Vt[e](Ct, {
|
|
4723
4741
|
filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
|
|
4724
4742
|
uploadUrl: `${t}ckeditor/uploadImg`
|
|
4725
4743
|
});
|
|
4726
4744
|
}
|
|
4727
|
-
const
|
|
4745
|
+
const fi = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, gi = ["disabled", "contentEditable", "id"], bi = /* @__PURE__ */ te({
|
|
4728
4746
|
__name: "index",
|
|
4729
4747
|
props: {
|
|
4730
4748
|
value: {},
|
|
@@ -4733,16 +4751,16 @@ const pi = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4733
4751
|
},
|
|
4734
4752
|
emits: ["change", "focus", "blur"],
|
|
4735
4753
|
setup(e, { emit: t }) {
|
|
4736
|
-
const o = e, l =
|
|
4737
|
-
De(() => o.readonly, () => a()),
|
|
4754
|
+
const o = e, l = Jt("ckeditorOrigin", ""), i = X();
|
|
4755
|
+
De(() => o.readonly, () => a()), Ke(() => a());
|
|
4738
4756
|
const a = () => {
|
|
4739
4757
|
if (window.CKEDITOR) {
|
|
4740
4758
|
if (o.readonly) {
|
|
4741
4759
|
i.value && (i.value.destroy(), i.value = null);
|
|
4742
4760
|
return;
|
|
4743
4761
|
}
|
|
4744
|
-
|
|
4745
|
-
i.value =
|
|
4762
|
+
st(() => {
|
|
4763
|
+
i.value = _i("inline", l), i.value && i.value.on("instanceReady", (s) => {
|
|
4746
4764
|
i.value.setData(o.value);
|
|
4747
4765
|
});
|
|
4748
4766
|
});
|
|
@@ -4761,24 +4779,24 @@ const pi = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4761
4779
|
}, h = (s) => {
|
|
4762
4780
|
const p = document.createElement("div");
|
|
4763
4781
|
p.innerHTML = s, [...Array.from(p.querySelectorAll("*"))].forEach((y) => {
|
|
4764
|
-
const
|
|
4765
|
-
(
|
|
4782
|
+
const P = window.getComputedStyle(y);
|
|
4783
|
+
(P.display === "none" || P.width === "0px" && P.height === "0px" || P.opacity === "0" || P.visibility === "hidden") && y.remove();
|
|
4766
4784
|
});
|
|
4767
4785
|
const F = (y = p) => {
|
|
4768
|
-
[...Array.from(y.childNodes)].forEach((
|
|
4786
|
+
[...Array.from(y.childNodes)].forEach((P) => {
|
|
4769
4787
|
var q;
|
|
4770
|
-
if (
|
|
4771
|
-
F(
|
|
4772
|
-
else if (
|
|
4773
|
-
const
|
|
4774
|
-
|
|
4788
|
+
if (P.nodeType === Node.ELEMENT_NODE && P.children.length)
|
|
4789
|
+
F(P);
|
|
4790
|
+
else if (P.nodeType === Node.TEXT_NODE) {
|
|
4791
|
+
const oe = document.createElement("span");
|
|
4792
|
+
oe.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 && (oe.innerHTML = (P.textContent || "").replace(window.REGULAR.underscore, (N) => N.length > 5 ? `<span style="word-break: break-all">${N}</span>` : N)), (q = P.parentElement) == null || q.replaceChild(oe, P);
|
|
4775
4793
|
}
|
|
4776
4794
|
});
|
|
4777
4795
|
};
|
|
4778
4796
|
return F(), p.innerHTML;
|
|
4779
4797
|
};
|
|
4780
|
-
return (s, p) => (r(), d("div",
|
|
4781
|
-
o.readonly ? (r(),
|
|
4798
|
+
return (s, p) => (r(), d("div", fi, [
|
|
4799
|
+
o.readonly ? (r(), ie(He, {
|
|
4782
4800
|
key: 1,
|
|
4783
4801
|
data: o.value,
|
|
4784
4802
|
class: "raw_view"
|
|
@@ -4790,11 +4808,11 @@ const pi = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
|
|
|
4790
4808
|
id: T(Ct),
|
|
4791
4809
|
onFocus: c,
|
|
4792
4810
|
onBlur: n
|
|
4793
|
-
}, null, 40,
|
|
4811
|
+
}, null, 40, gi))
|
|
4794
4812
|
]));
|
|
4795
4813
|
}
|
|
4796
4814
|
});
|
|
4797
|
-
const
|
|
4815
|
+
const vi = /* @__PURE__ */ he(bi, [["__scopeId", "data-v-1398ac85"]]), wi = {
|
|
4798
4816
|
mounted: (e, t) => {
|
|
4799
4817
|
let o = null, l = null, i = {}, a = !1, n = e.offsetParent, c = {}, h = {}, s = {};
|
|
4800
4818
|
const p = e.querySelector(".move-target") || e;
|
|
@@ -4808,11 +4826,11 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4808
4826
|
if (e.getAttribute("disabled") === "true")
|
|
4809
4827
|
return;
|
|
4810
4828
|
F.stopPropagation(), F.preventDefault(), h = { x: F.clientX, y: F.clientY };
|
|
4811
|
-
const y = a ? Math.min(Math.max(h.x - i.x + c.x, 0), n.offsetWidth - e.offsetWidth) : h.x - i.x + c.x,
|
|
4812
|
-
e.style.left = `${y}px`, e.style.top = `${
|
|
4829
|
+
const y = a ? Math.min(Math.max(h.x - i.x + c.x, 0), n.offsetWidth - e.offsetWidth) : h.x - i.x + c.x, P = a ? Math.min(Math.max(h.y - i.y + c.y, 0), n.offsetHeight - e.offsetHeight) : h.y - i.y + c.y;
|
|
4830
|
+
e.style.left = `${y}px`, e.style.top = `${P}px`, s = { x: y, y: P };
|
|
4813
4831
|
};
|
|
4814
4832
|
}
|
|
4815
|
-
},
|
|
4833
|
+
}, xi = ["onMousedown", "data-block"], ki = ["src"], Ci = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Si = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, $i = ["onMousedown"], Ti = ["onMousedown"], Ii = ["disabled", "onMousedown", "data-block"], Li = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-5 flex items-center justify-center rounded-tl-lg text-warn" }, Fi = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ei = ["onMousedown"], Mi = /* @__PURE__ */ te({
|
|
4816
4834
|
__name: "absItem",
|
|
4817
4835
|
props: {
|
|
4818
4836
|
imgData: {},
|
|
@@ -4824,7 +4842,7 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4824
4842
|
},
|
|
4825
4843
|
emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
|
|
4826
4844
|
setup(e, { emit: t }) {
|
|
4827
|
-
const o = e, l =
|
|
4845
|
+
const o = e, l = wi, i = [
|
|
4828
4846
|
{ left: "0", top: "0", cursor: "nwse-resize" },
|
|
4829
4847
|
{ left: "50%", top: "0", cursor: "ns-resize" },
|
|
4830
4848
|
{ left: "100%", top: "0", cursor: "nesw-resize" },
|
|
@@ -4835,18 +4853,18 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4835
4853
|
{ left: "100%", top: "100%", cursor: "nwse-resize" }
|
|
4836
4854
|
], a = X({}), n = X(), c = X(0), h = X(0), s = X();
|
|
4837
4855
|
X();
|
|
4838
|
-
const p = X({}), F = X(!1), y = X(),
|
|
4856
|
+
const p = X({}), F = X(!1), y = X(), P = X(), q = X(), oe = H(() => o.imgData.map((x) => ({
|
|
4839
4857
|
...x,
|
|
4840
4858
|
top: x.top - Math.floor(x.top / (k[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4841
4859
|
}))), ne = H(() => o.txtData.map((x) => ({
|
|
4842
4860
|
...x,
|
|
4843
4861
|
top: x.top - Math.floor(x.top / (k[o.layout.paper].height + o.pageMargin)) * o.pageMargin
|
|
4844
|
-
}))), N = H(() => y.value ? y.value.split("-")[0] === "img" ?
|
|
4862
|
+
}))), N = H(() => y.value ? y.value.split("-")[0] === "img" ? oe.value.find((v) => v.key === y.value) : ne.value.find((v) => v.key === y.value) : null), w = H(() => N.value ? { [N.value.key]: { ...n.value } } : {});
|
|
4845
4863
|
De(() => o.activeAbsItem, () => {
|
|
4846
4864
|
o.activeAbsItem && O({ ...o.activeAbsItem });
|
|
4847
4865
|
}), De(() => o.target, () => {
|
|
4848
4866
|
O(null);
|
|
4849
|
-
}),
|
|
4867
|
+
}), Ke(() => {
|
|
4850
4868
|
s.value = document.body.querySelector(".__layout__");
|
|
4851
4869
|
});
|
|
4852
4870
|
const K = (x) => {
|
|
@@ -4871,7 +4889,7 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4871
4889
|
[
|
|
4872
4890
|
// 0
|
|
4873
4891
|
() => {
|
|
4874
|
-
const
|
|
4892
|
+
const A = {
|
|
4875
4893
|
width: a.value.width - v.x,
|
|
4876
4894
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4877
4895
|
}[R], W = {
|
|
@@ -4880,26 +4898,26 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4880
4898
|
}[R];
|
|
4881
4899
|
n.value = {
|
|
4882
4900
|
...C,
|
|
4883
|
-
width:
|
|
4901
|
+
width: A,
|
|
4884
4902
|
height: W,
|
|
4885
|
-
left: a.value.left - (
|
|
4903
|
+
left: a.value.left - (A - a.value.width),
|
|
4886
4904
|
top: a.value.top - (W - a.value.height)
|
|
4887
4905
|
};
|
|
4888
4906
|
},
|
|
4889
4907
|
// 1
|
|
4890
4908
|
() => {
|
|
4891
|
-
const
|
|
4909
|
+
const A = a.value.width * (1 - v.y / a.value.height), W = a.value.height - v.y;
|
|
4892
4910
|
n.value = {
|
|
4893
4911
|
...C,
|
|
4894
|
-
width:
|
|
4912
|
+
width: A,
|
|
4895
4913
|
height: W,
|
|
4896
|
-
left: a.value.left - (
|
|
4914
|
+
left: a.value.left - (A - a.value.width) / 2,
|
|
4897
4915
|
top: a.value.top - (W - a.value.height)
|
|
4898
4916
|
};
|
|
4899
4917
|
},
|
|
4900
4918
|
// 2
|
|
4901
4919
|
() => {
|
|
4902
|
-
const
|
|
4920
|
+
const A = {
|
|
4903
4921
|
width: a.value.height * (1 + v.x / a.value.width),
|
|
4904
4922
|
height: a.value.height - v.y
|
|
4905
4923
|
}[R];
|
|
@@ -4909,34 +4927,34 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4909
4927
|
width: a.value.width + v.x,
|
|
4910
4928
|
height: a.value.width * (1 - v.y / a.value.height)
|
|
4911
4929
|
}[R],
|
|
4912
|
-
height:
|
|
4913
|
-
top: a.value.top - (
|
|
4930
|
+
height: A,
|
|
4931
|
+
top: a.value.top - (A - a.value.height)
|
|
4914
4932
|
};
|
|
4915
4933
|
},
|
|
4916
4934
|
// 3
|
|
4917
4935
|
() => {
|
|
4918
|
-
const
|
|
4936
|
+
const A = a.value.width - v.x, W = a.value.height * (1 - v.x / a.value.width);
|
|
4919
4937
|
n.value = {
|
|
4920
4938
|
...C,
|
|
4921
|
-
width:
|
|
4939
|
+
width: A,
|
|
4922
4940
|
height: W,
|
|
4923
|
-
left: a.value.left - (
|
|
4941
|
+
left: a.value.left - (A - a.value.width),
|
|
4924
4942
|
top: a.value.top - (W - a.value.height) / 2
|
|
4925
4943
|
};
|
|
4926
4944
|
},
|
|
4927
4945
|
// 4
|
|
4928
4946
|
() => {
|
|
4929
|
-
const
|
|
4947
|
+
const A = a.value.width + v.x, W = a.value.height * (1 + v.x / a.value.width);
|
|
4930
4948
|
n.value = {
|
|
4931
4949
|
...C,
|
|
4932
|
-
width:
|
|
4950
|
+
width: A,
|
|
4933
4951
|
height: W,
|
|
4934
4952
|
top: a.value.top - (W - a.value.height) / 2
|
|
4935
4953
|
};
|
|
4936
4954
|
},
|
|
4937
4955
|
// 5
|
|
4938
4956
|
() => {
|
|
4939
|
-
const
|
|
4957
|
+
const A = {
|
|
4940
4958
|
width: a.value.width - v.x,
|
|
4941
4959
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4942
4960
|
}[R], W = {
|
|
@@ -4945,24 +4963,24 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4945
4963
|
}[R];
|
|
4946
4964
|
n.value = {
|
|
4947
4965
|
...C,
|
|
4948
|
-
width:
|
|
4966
|
+
width: A,
|
|
4949
4967
|
height: W,
|
|
4950
|
-
left: a.value.left - (
|
|
4968
|
+
left: a.value.left - (A - a.value.width)
|
|
4951
4969
|
};
|
|
4952
4970
|
},
|
|
4953
4971
|
// 6
|
|
4954
4972
|
() => {
|
|
4955
|
-
const
|
|
4973
|
+
const A = a.value.width * (1 + v.y / a.value.height), W = a.value.height + v.y;
|
|
4956
4974
|
n.value = {
|
|
4957
4975
|
...C,
|
|
4958
|
-
width:
|
|
4976
|
+
width: A,
|
|
4959
4977
|
height: W,
|
|
4960
|
-
left: a.value.left - (
|
|
4978
|
+
left: a.value.left - (A - a.value.width) / 2
|
|
4961
4979
|
};
|
|
4962
4980
|
},
|
|
4963
4981
|
// 7
|
|
4964
4982
|
() => {
|
|
4965
|
-
const
|
|
4983
|
+
const A = {
|
|
4966
4984
|
width: a.value.width + v.x,
|
|
4967
4985
|
height: a.value.width * (1 + v.y / a.value.height)
|
|
4968
4986
|
}[R], W = {
|
|
@@ -4971,7 +4989,7 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
4971
4989
|
}[R];
|
|
4972
4990
|
n.value = {
|
|
4973
4991
|
...C,
|
|
4974
|
-
width:
|
|
4992
|
+
width: A,
|
|
4975
4993
|
height: W
|
|
4976
4994
|
};
|
|
4977
4995
|
}
|
|
@@ -5034,59 +5052,59 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
5034
5052
|
}, O = (x, v) => {
|
|
5035
5053
|
var R, z;
|
|
5036
5054
|
const C = document.body.querySelector(`.cke_editor_${Ct}`);
|
|
5037
|
-
!x && ((z = (R = v == null ? void 0 : v.target) == null ? void 0 : R.dataset) != null && z.safe || [...
|
|
5055
|
+
!x && ((z = (R = v == null ? void 0 : v.target) == null ? void 0 : R.dataset) != null && z.safe || [...P.value || [], ...q.value || []].find((A) => A.contains(v == null ? void 0 : v.target)) || C && window.getComputedStyle(C).display !== "none") || (y.value = x == null ? void 0 : x.key, x && (n.value = { ...x }));
|
|
5038
5056
|
};
|
|
5039
|
-
return (x, v) => (r(), d(
|
|
5040
|
-
(r(!0), d(
|
|
5041
|
-
var R, z,
|
|
5057
|
+
return (x, v) => (r(), d(M, null, [
|
|
5058
|
+
(r(!0), d(M, null, ee(oe.value, (C) => {
|
|
5059
|
+
var R, z, A, W, U, _e, G;
|
|
5042
5060
|
return Lt((r(), d("div", {
|
|
5043
5061
|
key: C.id,
|
|
5044
5062
|
ref_for: !0,
|
|
5045
5063
|
ref_key: "imgViewList",
|
|
5046
|
-
ref:
|
|
5064
|
+
ref: P,
|
|
5047
5065
|
"data-safe": "true",
|
|
5048
|
-
class:
|
|
5049
|
-
style:
|
|
5066
|
+
class: le(["absolute", ((R = N.value) == null ? void 0 : R.key) === C.key ? "z-8" : "z-7"]),
|
|
5067
|
+
style: ae({ left: Math.max(((z = w.value[C.key]) == null ? void 0 : z.left) || C.left, 0) + "px", top: Math.max(((A = w.value[C.key]) == null ? void 0 : A.top) || C.top, 0) + "px", width: (((W = w.value[C.key]) == null ? void 0 : W.width) || C.width) + "px", height: (((U = w.value[C.key]) == null ? void 0 : U.height) || C.height) + "px", transform: `rotate(${((_e = w.value[C.key]) == null ? void 0 : _e.rotate) || C.rotate}deg)` }),
|
|
5050
5068
|
onClick: v[0] || (v[0] = Me((Q) => x.void, ["stop"])),
|
|
5051
5069
|
onMousedown: Me((Q) => O(C), ["stop"]),
|
|
5052
5070
|
"data-block": T(Be)
|
|
5053
5071
|
}, [
|
|
5054
5072
|
f("img", {
|
|
5055
5073
|
src: C.url
|
|
5056
|
-
}, null, 8,
|
|
5057
|
-
((G = N.value) == null ? void 0 : G.key) === C.key ? (r(), d(
|
|
5058
|
-
f("span",
|
|
5059
|
-
|
|
5074
|
+
}, null, 8, ki),
|
|
5075
|
+
((G = N.value) == null ? void 0 : G.key) === C.key ? (r(), d(M, { key: 0 }, [
|
|
5076
|
+
f("span", Ci, [
|
|
5077
|
+
J(xe, {
|
|
5060
5078
|
name: "close",
|
|
5061
5079
|
width: 2,
|
|
5062
5080
|
class: "cursor-pointer",
|
|
5063
5081
|
onClick: (Q) => t("delAbsImgItem", C)
|
|
5064
5082
|
}, null, 8, ["onClick"])
|
|
5065
5083
|
]),
|
|
5066
|
-
f("div",
|
|
5067
|
-
(r(), d(
|
|
5084
|
+
f("div", Si, [
|
|
5085
|
+
(r(), d(M, null, ee(8, (Q, me) => f("div", {
|
|
5068
5086
|
key: Q,
|
|
5069
5087
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
5070
|
-
style:
|
|
5088
|
+
style: ae({ ...i[me], transform: "translate(-50%, -50%)" }),
|
|
5071
5089
|
onMousedown: Me((g) => ve(g, me), ["stop"])
|
|
5072
|
-
}, null, 44,
|
|
5090
|
+
}, null, 44, $i)), 64))
|
|
5073
5091
|
]),
|
|
5074
5092
|
f("span", {
|
|
5075
5093
|
class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
|
|
5076
5094
|
onMousedown: Me(S, ["stop"])
|
|
5077
5095
|
}, [
|
|
5078
|
-
|
|
5096
|
+
J(xe, {
|
|
5079
5097
|
name: "reset",
|
|
5080
5098
|
width: 2
|
|
5081
5099
|
})
|
|
5082
|
-
], 40,
|
|
5100
|
+
], 40, Ti)
|
|
5083
5101
|
], 64)) : B("", !0)
|
|
5084
|
-
], 46,
|
|
5102
|
+
], 46, xi)), [
|
|
5085
5103
|
[T(l), K]
|
|
5086
5104
|
]);
|
|
5087
5105
|
}), 128)),
|
|
5088
|
-
(r(!0), d(
|
|
5089
|
-
var R, z,
|
|
5106
|
+
(r(!0), d(M, null, ee(ne.value, (C) => {
|
|
5107
|
+
var R, z, A, W, U, _e, G;
|
|
5090
5108
|
return Lt((r(), d("div", {
|
|
5091
5109
|
key: C.id,
|
|
5092
5110
|
ref_for: !0,
|
|
@@ -5094,13 +5112,13 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
5094
5112
|
ref: q,
|
|
5095
5113
|
disabled: F.value,
|
|
5096
5114
|
"data-safe": "true",
|
|
5097
|
-
class:
|
|
5098
|
-
style:
|
|
5115
|
+
class: le(["absolute", ((R = N.value) == null ? void 0 : R.key) === C.key ? "z-8 bg-white" : "z-7"]),
|
|
5116
|
+
style: ae({ left: Math.max(((z = w.value[C.key]) == null ? void 0 : z.left) || C.left, 0) + "px", top: Math.max(((A = w.value[C.key]) == null ? void 0 : A.top) || C.top, 0) + "px", width: (((W = w.value[C.key]) == null ? void 0 : W.width) || C.width) + "px", height: (((U = w.value[C.key]) == null ? void 0 : U.height) || C.height) + "px" }),
|
|
5099
5117
|
onClick: v[3] || (v[3] = Me((Q) => x.void, ["stop"])),
|
|
5100
5118
|
onMousedown: Me((Q) => O(C), ["stop"]),
|
|
5101
5119
|
"data-block": T(Be)
|
|
5102
5120
|
}, [
|
|
5103
|
-
(r(),
|
|
5121
|
+
(r(), ie(vi, {
|
|
5104
5122
|
key: h.value,
|
|
5105
5123
|
class: "border-0 relative z-4",
|
|
5106
5124
|
readonly: ((_e = N.value) == null ? void 0 : _e.key) !== C.key,
|
|
@@ -5110,37 +5128,37 @@ const _i = /* @__PURE__ */ pe(yi, [["__scopeId", "data-v-1398ac85"]]), fi = {
|
|
|
5110
5128
|
onFocus: v[1] || (v[1] = (Q) => ce(!0)),
|
|
5111
5129
|
onBlur: v[2] || (v[2] = (Q) => ce(!1))
|
|
5112
5130
|
}, null, 8, ["readonly", "value", "name"])),
|
|
5113
|
-
((G = N.value) == null ? void 0 : G.key) === C.key ? (r(), d(
|
|
5114
|
-
f("span",
|
|
5115
|
-
|
|
5131
|
+
((G = N.value) == null ? void 0 : G.key) === C.key ? (r(), d(M, { key: 0 }, [
|
|
5132
|
+
f("span", Li, [
|
|
5133
|
+
J(xe, {
|
|
5116
5134
|
name: "close",
|
|
5117
5135
|
width: 2,
|
|
5118
5136
|
class: "cursor-pointer",
|
|
5119
5137
|
onClick: (Q) => t("delAbsTxtItem", C)
|
|
5120
5138
|
}, null, 8, ["onClick"])
|
|
5121
5139
|
]),
|
|
5122
|
-
f("div",
|
|
5123
|
-
(r(), d(
|
|
5140
|
+
f("div", Fi, [
|
|
5141
|
+
(r(), d(M, null, ee(8, (Q, me) => f("div", {
|
|
5124
5142
|
key: Q,
|
|
5125
5143
|
class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
|
|
5126
|
-
style:
|
|
5144
|
+
style: ae({ ...i[me], transform: "translate(-50%, -50%)" }),
|
|
5127
5145
|
onMousedown: (g) => ve(g, me)
|
|
5128
|
-
}, null, 44,
|
|
5146
|
+
}, null, 44, Ei)), 64))
|
|
5129
5147
|
])
|
|
5130
5148
|
], 64)) : B("", !0)
|
|
5131
|
-
], 46,
|
|
5149
|
+
], 46, Ii)), [
|
|
5132
5150
|
[T(l), K]
|
|
5133
5151
|
]);
|
|
5134
5152
|
}), 128))
|
|
5135
5153
|
], 64));
|
|
5136
5154
|
}
|
|
5137
5155
|
});
|
|
5138
|
-
const
|
|
5156
|
+
const Pi = /* @__PURE__ */ he(Mi, [["__scopeId", "data-v-16136ee2"]]), Ai = ["viewBox"], Di = {
|
|
5139
5157
|
x: "0",
|
|
5140
5158
|
y: "0",
|
|
5141
5159
|
width: "100%",
|
|
5142
5160
|
height: "100%"
|
|
5143
|
-
},
|
|
5161
|
+
}, Bi = ["onClick", "onDblclick"], Ni = ["data-block"], Oi = /* @__PURE__ */ te({
|
|
5144
5162
|
__name: "index",
|
|
5145
5163
|
props: {
|
|
5146
5164
|
layout: {},
|
|
@@ -5158,18 +5176,18 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5158
5176
|
emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
|
|
5159
5177
|
setup(e, { emit: t }) {
|
|
5160
5178
|
const o = e;
|
|
5161
|
-
|
|
5162
|
-
const l = X([]), i = X([]), a = X(2), n = X(0), c = X(0), h = X(), s = X([]), p = X([]), F = X([]), y = X([]),
|
|
5179
|
+
Zt("ckeditorOrigin", o.ckeditorOrigin);
|
|
5180
|
+
const l = X([]), i = X([]), a = X(2), n = X(0), c = X(0), h = X(), s = X([]), p = X([]), F = X([]), y = X([]), P = H(() => o.data.map((g) => ({
|
|
5163
5181
|
...g,
|
|
5164
5182
|
__tag__: Et(),
|
|
5165
5183
|
rawChildren: g.children,
|
|
5166
5184
|
children: g.children.map((L) => ({ ...L, ...x(L), startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Et() }))
|
|
5167
5185
|
}))), q = H(() => {
|
|
5168
|
-
if (!
|
|
5186
|
+
if (!P.value.length)
|
|
5169
5187
|
return;
|
|
5170
|
-
const g =
|
|
5188
|
+
const g = P.value[P.value.length - 1], L = g.rawChildren[g.rawChildren.length - 1];
|
|
5171
5189
|
return ce.value && [m.slove].includes(L == null ? void 0 : L.problemType) && L.id;
|
|
5172
|
-
}),
|
|
5190
|
+
}), oe = H(() => {
|
|
5173
5191
|
var g;
|
|
5174
5192
|
return o.layout.bindFlag && !!((g = Re.find((L) => L.code === o.layout.paper)) != null && g.isMultCol);
|
|
5175
5193
|
}), ne = H(() => o.isFinal ? 0 : 10), N = H(() => o.isFinal ? 10 : 0), w = H(() => 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), K = H(() => Math.ceil(w.value / 2) * 2), ce = H(() => ["sheet", "sheetCard"].includes(o.layout.mode)), S = H(() => ce.value ? Ee : { top: 0, right: 0, bottom: 0, left: 0 }), j = H(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || bt[o.layout.mode][o.layout.paper]), ue = H(() => k[o.layout.paper].width - j.value.left - j.value.right), ve = H(() => k[o.layout.paper].height - j.value.top - j.value.bottom), Y = H(() => (ue.value - (c.value ? c.value + W(0) : 0) + W(0)) / o.layout.column - W(0)), b = H(() => ({
|
|
@@ -5188,23 +5206,23 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5188
5206
|
top: `${j.value.top}px`,
|
|
5189
5207
|
width: g ? `${ue.value}px` : `${Y.value}px`
|
|
5190
5208
|
};
|
|
5191
|
-
}), O = H(() =>
|
|
5209
|
+
}), O = H(() => zt.filter((g) => o.info.bindExtentInfo[g.code]).map((g) => o.info.bindExtentInfo[g.key]));
|
|
5192
5210
|
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(""), () => {
|
|
5193
5211
|
setTimeout(() => {
|
|
5194
5212
|
Q();
|
|
5195
5213
|
}, 100);
|
|
5196
|
-
}, { immediate: !0 }), De(() =>
|
|
5197
|
-
c.value =
|
|
5214
|
+
}, { immediate: !0 }), De(() => oe.value, () => {
|
|
5215
|
+
c.value = oe.value ? 100 : 0;
|
|
5198
5216
|
}, { immediate: !0 });
|
|
5199
5217
|
const x = (g) => {
|
|
5200
5218
|
let L = { ...g };
|
|
5201
5219
|
if ([m.slove].includes(L.problemType) && ce.value) {
|
|
5202
5220
|
const ge = document.createElement("div");
|
|
5203
5221
|
ge.innerHTML = L.answerArea;
|
|
5204
|
-
const se = ge.querySelector(
|
|
5222
|
+
const se = ge.querySelector(Ht.sub);
|
|
5205
5223
|
if (se) {
|
|
5206
5224
|
const de = document.createElement("div");
|
|
5207
|
-
de.innerHTML =
|
|
5225
|
+
de.innerHTML = Gs(L.sub, L.style[u.public.scoreShowFlag] === _.bracket_none ? void 0 : [L.score].flat(2).reduce((Le, Ae) => Le + Ae, 0), L.style[u.public.scoreShowFlag]), se.replaceWith(de.children[0]), L.answerArea = ge.innerHTML, L.customSub = !0, ge.remove(), de.remove();
|
|
5208
5226
|
}
|
|
5209
5227
|
}
|
|
5210
5228
|
return L;
|
|
@@ -5213,9 +5231,9 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5213
5231
|
return L >= o.layout.column ? L - o.layout.column : L;
|
|
5214
5232
|
}, z = (g, L) => {
|
|
5215
5233
|
g ? s.value[L] = g : s.value.splice(L, 1);
|
|
5216
|
-
},
|
|
5234
|
+
}, A = (g, L) => {
|
|
5217
5235
|
g ? p.value[L] = g : p.value.splice(L, 1);
|
|
5218
|
-
}, W = (g) =>
|
|
5236
|
+
}, W = (g) => Ot[o.layout.mode][o.layout.paper][v(g)] || 0, U = (g, L = !1) => (ue.value - (c.value ? c.value + W(g) : 0) + W(g)) / v(g) - W(g) - S.value.left - S.value.right + (L ? S.value.left + S.value.right : 0), _e = (g, L) => {
|
|
5219
5237
|
var se, de;
|
|
5220
5238
|
const ge = g % (o.layout.column + o.layout.backColumn) ? 0 : ((se = F.value[Math.min(L, 1)]) == null ? void 0 : se.offsetHeight) || 0;
|
|
5221
5239
|
return {
|
|
@@ -5226,12 +5244,12 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5226
5244
|
contentHeight: `${(de = l.value[g]) == null ? void 0 : de.height}px`
|
|
5227
5245
|
};
|
|
5228
5246
|
}, G = (g, L = !1) => {
|
|
5229
|
-
i.value = g.map((ge) => ({ ...ge })), L && (l.value = [...g], n.value += 1,
|
|
5247
|
+
i.value = g.map((ge) => ({ ...ge })), L && (l.value = [...g], n.value += 1, st(() => {
|
|
5230
5248
|
a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], p.value.forEach((ge, se) => {
|
|
5231
5249
|
var de, Le;
|
|
5232
5250
|
!ge || !ge.col || ((de = l.value[se]) != null && de.top ? ge.col.style.marginTop = `${(Le = l.value[se]) == null ? void 0 : Le.top}px` : ge.col.style.marginTop = "");
|
|
5233
5251
|
}), o.isFinal && setTimeout(() => {
|
|
5234
|
-
const ge =
|
|
5252
|
+
const ge = ai({
|
|
5235
5253
|
config: {
|
|
5236
5254
|
...o.info,
|
|
5237
5255
|
layout: o.layout,
|
|
@@ -5249,9 +5267,9 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5249
5267
|
}, 500);
|
|
5250
5268
|
}));
|
|
5251
5269
|
}, Q = () => {
|
|
5252
|
-
|
|
5270
|
+
yi({
|
|
5253
5271
|
el: h.value,
|
|
5254
|
-
data:
|
|
5272
|
+
data: P.value,
|
|
5255
5273
|
column: o.layout.column,
|
|
5256
5274
|
backColumn: o.layout.backColumn || o.layout.column,
|
|
5257
5275
|
getColSize: _e,
|
|
@@ -5262,8 +5280,8 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5262
5280
|
};
|
|
5263
5281
|
return (g, L) => {
|
|
5264
5282
|
var ge;
|
|
5265
|
-
return r(), d(
|
|
5266
|
-
g.readonly ? B("", !0) : (r(),
|
|
5283
|
+
return r(), d(M, null, [
|
|
5284
|
+
g.readonly ? B("", !0) : (r(), ie(hi, {
|
|
5267
5285
|
key: 0,
|
|
5268
5286
|
ColList: l.value,
|
|
5269
5287
|
ColDom: p.value.map((se) => se.col),
|
|
@@ -5283,8 +5301,8 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5283
5301
|
ref_key: "rawDom",
|
|
5284
5302
|
ref: h
|
|
5285
5303
|
}, [
|
|
5286
|
-
i.value.length ? (r(!0), d(
|
|
5287
|
-
se.isHidden ? B("", !0) : (r(),
|
|
5304
|
+
i.value.length ? (r(!0), d(M, { key: 0 }, ee((ge = i.value[i.value.length - 1]) == null ? void 0 : ge.data, (se, de) => (r(), d(M, null, [
|
|
5305
|
+
se.isHidden ? B("", !0) : (r(), ie(Pt, {
|
|
5288
5306
|
key: 0,
|
|
5289
5307
|
item: se,
|
|
5290
5308
|
showColBorder: ce.value,
|
|
@@ -5293,9 +5311,9 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5293
5311
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
|
|
5294
5312
|
ce.value ? (r(), d("div", {
|
|
5295
5313
|
key: 1,
|
|
5296
|
-
class:
|
|
5314
|
+
class: le([!se.children.length && se.problemType && "p-1 min-h-[2rem]"])
|
|
5297
5315
|
}, [
|
|
5298
|
-
(r(),
|
|
5316
|
+
(r(), ie(je, {
|
|
5299
5317
|
data: se,
|
|
5300
5318
|
key: i.value.length,
|
|
5301
5319
|
layout: g.layout,
|
|
@@ -5303,7 +5321,7 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5303
5321
|
noPortrait: "",
|
|
5304
5322
|
width: U(i.value.length - 1)
|
|
5305
5323
|
}, null, 8, ["data", "layout", "target", "width"]))
|
|
5306
|
-
], 2)) : (r(),
|
|
5324
|
+
], 2)) : (r(), ie(je, {
|
|
5307
5325
|
data: se,
|
|
5308
5326
|
key: i.value.length,
|
|
5309
5327
|
layout: g.layout,
|
|
@@ -5313,10 +5331,10 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5313
5331
|
], 64))), 256)) : B("", !0)
|
|
5314
5332
|
], 512),
|
|
5315
5333
|
f("div", {
|
|
5316
|
-
class:
|
|
5317
|
-
style:
|
|
5334
|
+
class: le(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", g.layout.redFlag && "red_mode", g.readonly && "pointer-events-none"]),
|
|
5335
|
+
style: ae(b.value)
|
|
5318
5336
|
}, [
|
|
5319
|
-
|
|
5337
|
+
J(Pi, {
|
|
5320
5338
|
imgData: g.imgData,
|
|
5321
5339
|
txtData: g.txtData,
|
|
5322
5340
|
activeAbsItem: g.activeAbsItem,
|
|
@@ -5334,16 +5352,16 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5334
5352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5335
5353
|
key: n.value
|
|
5336
5354
|
}, [
|
|
5337
|
-
(r(), d("foreignObject",
|
|
5338
|
-
(r(!0), d(
|
|
5355
|
+
(r(), d("foreignObject", Di, [
|
|
5356
|
+
(r(!0), d(M, null, ee(K.value, (se, de) => (r(), d("div", {
|
|
5339
5357
|
key: se,
|
|
5340
5358
|
class: "bg-white relative flex justify-between overflow-hidden box-border",
|
|
5341
5359
|
ref_for: !0,
|
|
5342
5360
|
ref: (Le) => z(Le, de),
|
|
5343
|
-
style:
|
|
5361
|
+
style: ae(E.value)
|
|
5344
5362
|
}, [
|
|
5345
|
-
de < w.value ? (r(), d(
|
|
5346
|
-
|
|
5363
|
+
de < w.value ? (r(), d(M, { key: 0 }, [
|
|
5364
|
+
J(Po, {
|
|
5347
5365
|
layout: g.layout,
|
|
5348
5366
|
currentPage: de,
|
|
5349
5367
|
totalPage: w.value,
|
|
@@ -5352,20 +5370,20 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5352
5370
|
bindWidth: c.value,
|
|
5353
5371
|
padding: j.value
|
|
5354
5372
|
}, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
|
|
5355
|
-
g.layout.sloganFlag ? (r(),
|
|
5373
|
+
g.layout.sloganFlag ? (r(), ie(No, {
|
|
5356
5374
|
key: 0,
|
|
5357
5375
|
info: g.info,
|
|
5358
5376
|
layout: g.layout,
|
|
5359
5377
|
onChange: L[7] || (L[7] = (Le) => t("changeInfo", Le))
|
|
5360
5378
|
}, null, 8, ["info", "layout"])) : B("", !0),
|
|
5361
|
-
|
|
5379
|
+
J(Hl, {
|
|
5362
5380
|
ref_for: !0,
|
|
5363
5381
|
ref_key: "bindDom",
|
|
5364
5382
|
ref: y,
|
|
5365
5383
|
currentPage: de,
|
|
5366
5384
|
width: c.value,
|
|
5367
5385
|
height: ve.value,
|
|
5368
|
-
isBindFlag:
|
|
5386
|
+
isBindFlag: oe.value,
|
|
5369
5387
|
bindSeatType: g.layout.bindSeatType,
|
|
5370
5388
|
bindInfo: O.value
|
|
5371
5389
|
}, null, 8, ["currentPage", "width", "height", "isBindFlag", "bindSeatType", "bindInfo"]),
|
|
@@ -5374,60 +5392,60 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5374
5392
|
ref_for: !0,
|
|
5375
5393
|
ref_key: "titleDom",
|
|
5376
5394
|
ref: F,
|
|
5377
|
-
class:
|
|
5378
|
-
style:
|
|
5395
|
+
class: le(["absolute text-black", de === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
|
|
5396
|
+
style: ae(I.value)
|
|
5379
5397
|
}, [
|
|
5380
|
-
|
|
5398
|
+
J(qo, {
|
|
5381
5399
|
layout: g.layout,
|
|
5382
5400
|
code: g.info.textCode
|
|
5383
5401
|
}, null, 8, ["layout", "code"]),
|
|
5384
|
-
|
|
5402
|
+
J(pa, {
|
|
5385
5403
|
info: g.info,
|
|
5386
5404
|
layout: g.layout,
|
|
5387
5405
|
fontConfig: g.fontConfig,
|
|
5388
5406
|
data: g.data,
|
|
5389
5407
|
onChange: L[8] || (L[8] = (Le) => t("changeInfo", Le))
|
|
5390
5408
|
}, null, 8, ["info", "layout", "fontConfig", "data"]),
|
|
5391
|
-
|
|
5409
|
+
J(_l, {
|
|
5392
5410
|
layout: g.layout,
|
|
5393
5411
|
info: g.info,
|
|
5394
|
-
isBindFlag:
|
|
5412
|
+
isBindFlag: oe.value,
|
|
5395
5413
|
onChange: L[9] || (L[9] = (Le) => t("changeExtentInfo", Le))
|
|
5396
5414
|
}, null, 8, ["layout", "info", "isBindFlag"]),
|
|
5397
|
-
|
|
5415
|
+
J(xl, {
|
|
5398
5416
|
layout: g.layout,
|
|
5399
|
-
isBindFlag:
|
|
5417
|
+
isBindFlag: oe.value
|
|
5400
5418
|
}, null, 8, ["layout", "isBindFlag"]),
|
|
5401
|
-
de ? B("", !0) : (r(),
|
|
5419
|
+
de ? B("", !0) : (r(), ie(Ll, {
|
|
5402
5420
|
key: 0,
|
|
5403
5421
|
layout: g.layout,
|
|
5404
5422
|
data: g.data
|
|
5405
5423
|
}, null, 8, ["layout", "data"])),
|
|
5406
|
-
g.layout.writeScoreFlag && !de ? (r(),
|
|
5424
|
+
g.layout.writeScoreFlag && !de ? (r(), ie(an, {
|
|
5407
5425
|
key: 1,
|
|
5408
5426
|
info: g.info,
|
|
5409
5427
|
layout: g.layout
|
|
5410
5428
|
}, null, 8, ["info", "layout"])) : B("", !0)
|
|
5411
5429
|
], 6)) : B("", !0),
|
|
5412
|
-
(r(!0), d(
|
|
5430
|
+
(r(!0), d(M, null, ee(de % 2 ? g.layout.backColumn : g.layout.column, (Le, Ae) => (r(), ie(El, {
|
|
5413
5431
|
ref_for: !0,
|
|
5414
|
-
ref: (
|
|
5432
|
+
ref: (Ve) => A(Ve, C(Ae, de)),
|
|
5415
5433
|
styleInfo: _e(C(Ae, de), de),
|
|
5416
5434
|
column: g.layout.column,
|
|
5417
5435
|
currentColumn: C(Ae, de),
|
|
5418
5436
|
showColBorder: ce.value
|
|
5419
5437
|
}, {
|
|
5420
|
-
default:
|
|
5421
|
-
var
|
|
5438
|
+
default: Nt(() => {
|
|
5439
|
+
var Ve;
|
|
5422
5440
|
return [
|
|
5423
|
-
(r(!0), d(
|
|
5441
|
+
(r(!0), d(M, null, ee(((Ve = l.value[C(Ae, de)]) == null ? void 0 : Ve.data) || [], (ke, jt) => {
|
|
5424
5442
|
var St;
|
|
5425
|
-
return r(), d(
|
|
5426
|
-
ke.isHidden ? B("", !0) : (r(),
|
|
5443
|
+
return r(), d(M, null, [
|
|
5444
|
+
ke.isHidden ? B("", !0) : (r(), ie(Pt, {
|
|
5427
5445
|
key: 0,
|
|
5428
5446
|
item: ke,
|
|
5429
5447
|
showColBorder: ce.value,
|
|
5430
|
-
isFirst: !de && !Ae && !
|
|
5448
|
+
isFirst: !de && !Ae && !jt,
|
|
5431
5449
|
layout: g.layout,
|
|
5432
5450
|
isActive: ((St = g.target.value) == null ? void 0 : St.id) === ke.id,
|
|
5433
5451
|
onClick: (we) => me({ type: ke.problemType ? T(D).headline : T(D).headlineNotarea, value: ke }),
|
|
@@ -5435,11 +5453,11 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5435
5453
|
}, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
|
|
5436
5454
|
ce.value ? (r(), d("div", {
|
|
5437
5455
|
key: 1,
|
|
5438
|
-
class:
|
|
5456
|
+
class: le([!ke.children.length && ke.problemType && "p-1 min-h-[2rem]", g.target.type === T(D).headline && g.target.value.id === ke.id && "active_headline"]),
|
|
5439
5457
|
onClick: Me((we) => me({ type: ke.problemType ? T(D).headline : T(D).headlineNotarea, value: ke }), ["stop"]),
|
|
5440
5458
|
onDblclick: (we) => t("dbHeadLineClick", ke)
|
|
5441
5459
|
}, [
|
|
5442
|
-
|
|
5460
|
+
J(je, {
|
|
5443
5461
|
data: ke,
|
|
5444
5462
|
layout: g.layout,
|
|
5445
5463
|
target: g.target,
|
|
@@ -5451,8 +5469,8 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5451
5469
|
key: 0,
|
|
5452
5470
|
class: "border-t",
|
|
5453
5471
|
"data-block": T(Be)
|
|
5454
|
-
}, null, 8,
|
|
5455
|
-
], 42,
|
|
5472
|
+
}, null, 8, Ni)) : B("", !0)
|
|
5473
|
+
], 42, Bi)) : (r(), ie(je, {
|
|
5456
5474
|
key: 2,
|
|
5457
5475
|
data: ke,
|
|
5458
5476
|
layout: g.layout,
|
|
@@ -5470,15 +5488,15 @@ const Li = /* @__PURE__ */ pe(Ii, [["__scopeId", "data-v-16136ee2"]]), Fi = ["vi
|
|
|
5470
5488
|
], 64)) : B("", !0)
|
|
5471
5489
|
], 4))), 128))
|
|
5472
5490
|
]))
|
|
5473
|
-
], 8,
|
|
5491
|
+
], 8, Ai))
|
|
5474
5492
|
], 6)
|
|
5475
5493
|
])
|
|
5476
5494
|
], 64);
|
|
5477
5495
|
};
|
|
5478
5496
|
}
|
|
5479
5497
|
});
|
|
5480
|
-
const
|
|
5498
|
+
const Ri = /* @__PURE__ */ he(Oi, [["__scopeId", "data-v-cc7d1168"]]);
|
|
5481
5499
|
export {
|
|
5482
|
-
|
|
5483
|
-
|
|
5500
|
+
Hi as Config,
|
|
5501
|
+
Ri as default
|
|
5484
5502
|
};
|