alit-layout 1.0.15 → 1.0.16

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.
Files changed (2) hide show
  1. package/dist/index.es.js +201 -195
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, openBlock as s, createElementBlock as d, Fragment as M, renderList as X, createElementVNode as g, normalizeStyle as W, unref as x, toDisplayString as j, createCommentVNode as P, ref as q, watch as Ae, normalizeClass as te, computed as A, createBlock as Q, createTextVNode as Ke, createVNode as U, pushScopeId as Re, popScopeId as Ge, renderSlot as it, onMounted as Ve, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as It, inject as Rt, withDirectives as ft, provide as Gt } from "vue";
1
+ import { defineComponent as V, openBlock as s, createElementBlock as d, Fragment as M, renderList as X, createElementVNode as g, normalizeStyle as G, unref as x, toDisplayString as j, createCommentVNode as P, ref as q, watch as Ae, normalizeClass as te, computed as A, createBlock as Q, createTextVNode as Ke, createVNode as U, pushScopeId as Re, popScopeId as We, renderSlot as it, onMounted as Ve, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as It, inject as Rt, withDirectives as ft, provide as Wt } from "vue";
2
2
  const Lt = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -36,7 +36,7 @@ const Lt = {
36
36
  another: "ADDITIONAL_QUESTION",
37
37
  // 附加选做题
38
38
  another_choice: "ADDITIONAL_CHOOSE_QUESTION"
39
- }, Wt = {
39
+ }, Gt = {
40
40
  // 文本
41
41
  __text: "TXT",
42
42
  // 文案
@@ -1302,8 +1302,13 @@ const Lt = {
1302
1302
  label: "格子尺寸",
1303
1303
  key: y.article.art_b,
1304
1304
  detail: !0,
1305
+ target: [Y.problem],
1305
1306
  min: () => 27,
1306
- max: () => 40
1307
+ max: () => 40,
1308
+ formatTip: (e, t) => {
1309
+ const o = document.querySelector(`*[data-viewid="${e.id}"]`);
1310
+ return o ? `单行${Math.floor(o.offsetWidth / t)}格` : t;
1311
+ }
1307
1312
  },
1308
1313
  {
1309
1314
  type: "input",
@@ -1348,7 +1353,7 @@ const Lt = {
1348
1353
  ]
1349
1354
  }
1350
1355
  }, no = {
1351
- [Wt.__cdest]: [
1356
+ [Gt.__cdest]: [
1352
1357
  {
1353
1358
  type: "radio",
1354
1359
  label: "边框显示控制",
@@ -1449,7 +1454,7 @@ const Lt = {
1449
1454
  sloveScoreHalfErr: "简易打分条含小数分值",
1450
1455
  absImgOverErr: "浮层图片超出纸张",
1451
1456
  absTxtOverErr: "浮层文本超出纸张"
1452
- }, Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1457
+ }, ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1453
1458
  __proto__: null,
1454
1459
  ErrLayoutCode: uo,
1455
1460
  MixNodeTag: co,
@@ -1614,26 +1619,26 @@ const Lt = {
1614
1619
  (s(), d(M, null, X(["lt", "rt", "lb", "rb"], (u) => g("span", {
1615
1620
  key: u,
1616
1621
  class: "absolute w-8 bg-black point_item",
1617
- style: W(o(u)),
1622
+ style: G(o(u)),
1618
1623
  "data-xine": x(C).point + u
1619
1624
  }, null, 12, yo)), 64)),
1620
1625
  (s(!0), d(M, null, X((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(M, { key: u }, [
1621
1626
  (s(), d(M, null, X(["t", "b"], (m) => g("span", {
1622
1627
  key: m,
1623
1628
  class: "absolute bg-black w-8 point_item",
1624
- style: W(n(u, m)),
1629
+ style: G(n(u, m)),
1625
1630
  "data-xine": x(C).point + m
1626
1631
  }, null, 12, _o)), 64))
1627
1632
  ], 64))), 128)),
1628
1633
  (s(), d(M, null, X(["l", "r"], (u) => g("span", {
1629
1634
  key: u,
1630
1635
  class: "absolute bg-black h-8",
1631
- style: W(r(u)),
1636
+ style: G(r(u)),
1632
1637
  "data-xine": x(C).point + u
1633
1638
  }, null, 12, fo)), 64)),
1634
1639
  g("p", {
1635
1640
  class: "absolute leading-none text-0",
1636
- style: W(a()),
1641
+ style: G(a()),
1637
1642
  "data-xine": x(C).page
1638
1643
  }, [
1639
1644
  (s(!0), d(M, null, X(l.currentPage + 1, (u, m) => (s(), d("span", {
@@ -1645,11 +1650,11 @@ const Lt = {
1645
1650
  l.currentPage % 2 ? P("", !0) : (s(), d("span", {
1646
1651
  key: 0,
1647
1652
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1648
- style: W({ right: `${l.padding.right - 12}px` })
1653
+ style: G({ right: `${l.padding.right - 12}px` })
1649
1654
  }, "提示:本卷" + j((c = x(ze).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
1650
1655
  g("span", {
1651
1656
  class: "absolute text-sm red_sheet",
1652
- style: W({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
1657
+ style: G({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
1653
1658
  }, j(l.currentPage + 1) + "/" + j(l.totalPage), 5)
1654
1659
  ], 64);
1655
1660
  };
@@ -1732,7 +1737,7 @@ const ce = (e, t) => {
1732
1737
  size: "small",
1733
1738
  autoLine: "",
1734
1739
  dir: "right",
1735
- style: W(n.value),
1740
+ style: G(n.value),
1736
1741
  onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
1737
1742
  }, null, 8, ["value", "style"]));
1738
1743
  }
@@ -1806,7 +1811,7 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1806
1811
  }, zo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
1807
1812
  key: 1,
1808
1813
  class: "flex items-center w-40 mx-4"
1809
- }, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Go = /* @__PURE__ */ g("span", null, "分钟", -1), Wo = {
1814
+ }, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Wo = /* @__PURE__ */ g("span", null, "分钟", -1), Go = {
1810
1815
  key: 2,
1811
1816
  class: "flex mx-4 min-w-[80px]"
1812
1817
  }, Yo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
@@ -1837,14 +1842,14 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1837
1842
  U(Oe, {
1838
1843
  class: "w-full text-center border-2 border-transparent focus:border-current",
1839
1844
  value: l.info.title,
1840
- style: W(l.fontConfig.titleStyle),
1845
+ style: G(l.fontConfig.titleStyle),
1841
1846
  onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
1842
1847
  }, null, 8, ["value", "style"]),
1843
1848
  l.layout.secTitleFlag ? (s(), Q(Oe, {
1844
1849
  key: 0,
1845
1850
  class: "w-full text-center border-2 border-transparent focus:border-current",
1846
1851
  value: l.info.secTitle,
1847
- style: W(l.fontConfig.halfTitleStyle),
1852
+ style: G(l.fontConfig.halfTitleStyle),
1848
1853
  onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
1849
1854
  }, null, 8, ["value", "style"])) : P("", !0),
1850
1855
  g("div", Bo, [
@@ -1867,9 +1872,9 @@ const _e = /* @__PURE__ */ ce(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1867
1872
  placeholder: "",
1868
1873
  onChange: i[3] || (i[3] = (c) => t("change", { time: c }))
1869
1874
  }, null, 8, ["value"]),
1870
- Go
1875
+ Wo
1871
1876
  ])) : P("", !0),
1872
- l.layout.authorFlag ? (s(), d("p", Wo, [
1877
+ l.layout.authorFlag ? (s(), d("p", Go, [
1873
1878
  Yo,
1874
1879
  U(Oe, {
1875
1880
  class: "flex-1",
@@ -2038,7 +2043,7 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2038
2043
  ])), 64))
2039
2044
  ]));
2040
2045
  }
2041
- }), fa = (e) => (Re("data-v-44e44996"), e = e(), Ge(), e), ga = {
2046
+ }), fa = (e) => (Re("data-v-44e44996"), e = e(), We(), e), ga = {
2042
2047
  key: 0,
2043
2048
  class: "flex"
2044
2049
  }, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ g("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
@@ -2079,7 +2084,7 @@ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2079
2084
  ]));
2080
2085
  }
2081
2086
  });
2082
- const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), Ge(), e), Ca = {
2087
+ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), We(), e), Ca = {
2083
2088
  key: 0,
2084
2089
  class: "flex border mt-2 red_sheet"
2085
2090
  }, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", null, "[", -1)), Ma = /* @__PURE__ */ Be(() => /* @__PURE__ */ g("span", { class: "ml-4" }, "]", -1)), Pa = [
@@ -2163,7 +2168,7 @@ const za = {
2163
2168
  }, Ha = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col" }, [
2164
2169
  /* @__PURE__ */ g("p", { class: "flex-1" }, "题号"),
2165
2170
  /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, "得分")
2166
- ], -1), Ra = { class: "flex-1" }, Ga = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Wa = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
2171
+ ], -1), Ra = { class: "flex-1" }, Wa = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Ga = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
2167
2172
  /* @__PURE__ */ g("p", { class: "flex-1" }, "总分"),
2168
2173
  /* @__PURE__ */ g("p", { class: "flex-1 border-t" })
2169
2174
  ], -1), Ya = /* @__PURE__ */ V({
@@ -2181,9 +2186,9 @@ const za = {
2181
2186
  class: "flex-1 flex flex-col border-l"
2182
2187
  }, [
2183
2188
  g("p", Ra, j(x(Pt)(l)), 1),
2184
- Ga
2189
+ Wa
2185
2190
  ]))), 128)),
2186
- Wa
2191
+ Ga
2187
2192
  ])) : P("", !0);
2188
2193
  }
2189
2194
  }), qa = /* @__PURE__ */ V({
@@ -2215,24 +2220,24 @@ const za = {
2215
2220
  c.showColBorder ? (s(), d("div", {
2216
2221
  key: 0,
2217
2222
  class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
2218
- style: W(r.value)
2223
+ style: G(r.value)
2219
2224
  }, [
2220
2225
  g("span", {
2221
2226
  class: "absolute border border-black",
2222
- style: W(l.value)
2227
+ style: G(l.value)
2223
2228
  }, null, 4)
2224
2229
  ], 6)) : P("", !0),
2225
2230
  g("div", {
2226
2231
  class: "absolute overflow-hidden",
2227
2232
  ref_key: "colView",
2228
2233
  ref: n,
2229
- style: W(c.styleInfo)
2234
+ style: G(c.styleInfo)
2230
2235
  }, [
2231
2236
  g("div", {
2232
2237
  ref_key: "col",
2233
2238
  ref: a,
2234
2239
  class: "overflow-hidden __col__",
2235
- style: W({ height: c.styleInfo.contentHeight })
2240
+ style: G({ height: c.styleInfo.contentHeight })
2236
2241
  }, [
2237
2242
  it(c.$slots, "default", {}, void 0, !0)
2238
2243
  ], 4)
@@ -2240,7 +2245,7 @@ const za = {
2240
2245
  ], 64));
2241
2246
  }
2242
2247
  });
2243
- const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), Ge(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
2248
+ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), We(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
2244
2249
  ja
2245
2250
  ], Va = ["data-xine"], Ja = /* @__PURE__ */ V({
2246
2251
  __name: "bind",
@@ -2254,7 +2259,7 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2254
2259
  const t = q(), o = ["学校", "班级", "准考证号", "姓名"];
2255
2260
  return (a, n) => a.isBindFlag ? (s(), d("div", {
2256
2261
  key: 0,
2257
- style: W({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
2262
+ style: G({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
2258
2263
  class: te([a.currentPage % 2 && "right_view"]),
2259
2264
  ref_key: "view",
2260
2265
  ref: t
@@ -2262,11 +2267,11 @@ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2262
2267
  a.currentPage % 2 ? (s(), d("div", {
2263
2268
  key: 0,
2264
2269
  class: "flex items-center justify-center origin-top-left border-b end_view",
2265
- style: W({ width: `${a.height - 20}px`, height: `${a.width}px` })
2270
+ style: G({ width: `${a.height - 20}px`, height: `${a.width}px` })
2266
2271
  }, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
2267
2272
  key: 1,
2268
2273
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2269
- style: W({ width: `${a.height - 20}px` })
2274
+ style: G({ width: `${a.height - 20}px` })
2270
2275
  }, [
2271
2276
  (s(), d(M, null, X(o, (r) => g("p", {
2272
2277
  key: r,
@@ -2308,7 +2313,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
2308
2313
  }, [
2309
2314
  (s(!0), d(M, null, X(a.value, (l, i) => (s(), d("li", {
2310
2315
  class: "flex items-center justify-center relative score_line",
2311
- style: W({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2316
+ style: G({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2312
2317
  "data-xine": x(C).score_item
2313
2318
  }, [
2314
2319
  g("span", il, j(l), 1),
@@ -2365,7 +2370,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
2365
2370
  }, [
2366
2371
  (s(!0), d(M, null, X(h, (J) => (s(), d("li", {
2367
2372
  class: "flex items-center justify-center flex-shrink-0 score_line",
2368
- style: W({ width: `${x(je)[m.layout.scoreLineSize].value}px` }),
2373
+ style: G({ width: `${x(je)[m.layout.scoreLineSize].value}px` }),
2369
2374
  "data-xine": J.toString() ? x(C).score_item : ""
2370
2375
  }, [
2371
2376
  g("span", {
@@ -2382,7 +2387,7 @@ const Za = /* @__PURE__ */ ce(Ja, [["__scopeId", "data-v-3f588317"]]), we = "MC5
2382
2387
  ], 8, cl))
2383
2388
  ], 64)) : P("", !0);
2384
2389
  }
2385
- }), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), Ge(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ V({
2390
+ }), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), We(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ V({
2386
2391
  __name: "writeScore",
2387
2392
  props: {
2388
2393
  info: {},
@@ -2433,7 +2438,7 @@ const Ne = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2433
2438
  }, null, 8, ["data-content", "data"])
2434
2439
  ], 8, bl));
2435
2440
  }
2436
- }), wl = (e) => (Re("data-v-257ae24a"), e = e(), Ge(), e), xl = ["data-tag", "data-block"], kl = {
2441
+ }), wl = (e) => (Re("data-v-257ae24a"), e = e(), We(), e), xl = ["data-tag", "data-block"], kl = {
2437
2442
  key: 0,
2438
2443
  class: "flex-shrink-0"
2439
2444
  }, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
@@ -2510,7 +2515,7 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2510
2515
  }, [
2511
2516
  (s(!0), d(M, null, X(t.item.optList, (a, n) => (s(), d("span", {
2512
2517
  class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
2513
- style: W({ width: `${x(Te)[t.layout.fillSize].value + 1}px`, height: `${x(Te)[t.layout.fillSize].height + 1}px` }),
2518
+ style: G({ width: `${x(Te)[t.layout.fillSize].value + 1}px`, height: `${x(Te)[t.layout.fillSize].height + 1}px` }),
2514
2519
  "data-xine": x(C).fill + n
2515
2520
  }, [
2516
2521
  U(_e, {
@@ -2521,10 +2526,10 @@ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2521
2526
  ], 8, Ol));
2522
2527
  }
2523
2528
  }), Rl = {};
2524
- function Gl(e, t) {
2529
+ function Wl(e, t) {
2525
2530
  return null;
2526
2531
  }
2527
- const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2532
+ const Gl = /* @__PURE__ */ ce(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2528
2533
  Kl
2529
2534
  ], Xl = ["data-xine"], Vl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
2530
2535
  Vl
@@ -2546,7 +2551,7 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
2546
2551
  a.item.style[x(y)[a.layout.mode].decide_a] === x(T).decide_1 ? (s(), d(M, { key: 0 }, [
2547
2552
  g("span", {
2548
2553
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2549
- style: W(o.value),
2554
+ style: G(o.value),
2550
2555
  "data-xine": x(C).fill + "0"
2551
2556
  }, [
2552
2557
  U(_e, {
@@ -2556,7 +2561,7 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
2556
2561
  ], 14, ql),
2557
2562
  g("span", {
2558
2563
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2559
- style: W(o.value),
2564
+ style: G(o.value),
2560
2565
  "data-xine": x(C).fill + "1"
2561
2566
  }, [
2562
2567
  U(_e, {
@@ -2567,12 +2572,12 @@ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = [
2567
2572
  ], 64)) : (s(), d(M, { key: 1 }, [
2568
2573
  g("span", {
2569
2574
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2570
- style: W(o.value),
2575
+ style: G(o.value),
2571
2576
  "data-xine": x(C).fill + "0"
2572
2577
  }, jl, 14, Ul),
2573
2578
  g("span", {
2574
2579
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2575
- style: W(o.value),
2580
+ style: G(o.value),
2576
2581
  "data-xine": x(C).fill + "1"
2577
2582
  }, Jl, 14, Xl)
2578
2583
  ], 64))
@@ -2622,7 +2627,7 @@ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-x
2622
2627
  return (o, a) => (s(), d(M, null, [
2623
2628
  g("div", {
2624
2629
  class: "flex-1 border-b self-stretch red_sheet",
2625
- style: W({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
2630
+ style: G({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
2626
2631
  "data-xine": x(C).fill_line
2627
2632
  }, null, 12, rn),
2628
2633
  o.layout.handReadFlag ? (s(), Q(sn, {
@@ -2706,7 +2711,7 @@ const Mn = /* @__PURE__ */ ce(Fn, [["render", En]]), Pn = {};
2706
2711
  function Dn(e, t) {
2707
2712
  return null;
2708
2713
  }
2709
- const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = { class: "flex-1 flex justify-end overflow-hidden" }, On = ["data-block", "data-guide"], zn = ["data-block", "data-size"], Hn = ["data-block"], Rn = /* @__PURE__ */ V({
2714
+ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn = ["data-block"], On = { class: "flex-1 flex justify-end overflow-hidden" }, zn = ["data-block", "data-guide"], Hn = ["data-block", "data-size"], Rn = ["data-block"], Wn = /* @__PURE__ */ V({
2710
2715
  __name: "sheet",
2711
2716
  props: {
2712
2717
  item: {},
@@ -2735,11 +2740,12 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2735
2740
  }, 20);
2736
2741
  });
2737
2742
  const h = parseInt(t.item.style[y[t.layout.mode].art_c]), E = t.item.style[y[t.layout.mode].art_e], J = Math.floor(h / E), Z = Math.round(J / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * E;
2738
- l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, J) - 1 || 0).keys()].map((L) => (L + 1) * Z).concat(h / E < 2 && E < 100 ? E : h).filter((L) => L);
2743
+ l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, J) - 1 || 0).keys()].map((L) => (L + 1) * Z).concat(h / E < 2 ? E : h).filter((L) => L);
2739
2744
  }), (h, E) => (s(), d("div", {
2740
2745
  class: "w-full relative min-h-[10rem]",
2741
2746
  ref_key: "view",
2742
- ref: n
2747
+ ref: n,
2748
+ "data-viewid": h.item.id
2743
2749
  }, [
2744
2750
  h.item.chunk ? P("", !0) : (s(), d("div", {
2745
2751
  key: 0,
@@ -2747,13 +2753,13 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2747
2753
  "data-block": x(we)
2748
2754
  }, [
2749
2755
  it(h.$slots, "default"),
2750
- g("div", Bn, [
2756
+ g("div", On, [
2751
2757
  U(tt, {
2752
2758
  item: h.item,
2753
2759
  layout: h.layout
2754
2760
  }, null, 8, ["item", "layout"])
2755
2761
  ])
2756
- ], 8, Nn)),
2762
+ ], 8, Bn)),
2757
2763
  h.item.beforeArt && !h.item.startAnswerLen ? (s(), Q(Ne, {
2758
2764
  key: 1,
2759
2765
  data: h.item.beforeArt,
@@ -2765,8 +2771,8 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2765
2771
  "data-block": x(Ee),
2766
2772
  "data-guide": h.item.id,
2767
2773
  class: te(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2768
- style: W({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
2769
- }, j(h.item.beforeGuide), 15, On)) : P("", !0),
2774
+ style: G({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
2775
+ }, j(h.item.beforeGuide), 15, zn)) : P("", !0),
2770
2776
  (s(!0), d(M, null, X(i.value, (J, Z) => (s(), d("p", {
2771
2777
  ref_for: !0,
2772
2778
  ref_key: "line",
@@ -2774,30 +2780,30 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2774
2780
  class: te(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2775
2781
  "data-block": x(we),
2776
2782
  "data-size": h.item.startAnswerLen + (Z + 1) * o.value,
2777
- style: W(u.value)
2783
+ style: G(u.value)
2778
2784
  }, [
2779
2785
  h.item.artBlock ? (s(!0), d(M, { key: 0 }, X(o.value, (L, D) => (s(), d("span", {
2780
2786
  class: te([O.value[Z * o.value + D] && "flex items-center justify-center"]),
2781
- style: W(m.value)
2787
+ style: G(m.value)
2782
2788
  }, j(O.value[Z * o.value + D]), 7))), 256)) : P("", !0),
2783
2789
  (s(!0), d(M, null, X(l.value, (L) => (s(), d(M, null, [
2784
2790
  h.item.startAnswerLen + Z * o.value < L && h.item.startAnswerLen + (Z + 1) * o.value >= L ? (s(), d("span", {
2785
2791
  key: 0,
2786
2792
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2787
- style: W({ left: `${(L - h.item.startAnswerLen) % o.value * c.value}px` }),
2793
+ style: G({ left: `${(L - h.item.startAnswerLen) % o.value * c.value}px` }),
2788
2794
  "data-block": x(Ee)
2789
- }, j(L), 13, Hn)) : P("", !0)
2795
+ }, j(L), 13, Rn)) : P("", !0)
2790
2796
  ], 64))), 256))
2791
- ], 14, zn))), 256)),
2797
+ ], 14, Hn))), 256)),
2792
2798
  h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), Q(Ne, {
2793
2799
  key: 3,
2794
2800
  data: h.item.afterArt,
2795
2801
  "data-aart": h.item.id,
2796
2802
  class: "mt-2 indent-[2em]"
2797
2803
  }, null, 8, ["data", "data-aart"])) : P("", !0)
2798
- ], 512));
2804
+ ], 8, Nn));
2799
2805
  }
2800
- }), Gn = ["data-block"], Wn = /* @__PURE__ */ V({
2806
+ }), Gn = ["data-block"], Yn = /* @__PURE__ */ V({
2801
2807
  __name: "index",
2802
2808
  props: {
2803
2809
  item: {},
@@ -2815,10 +2821,10 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2815
2821
  }, null, 8, ["data-content", "data"])
2816
2822
  ], 8, Gn));
2817
2823
  }
2818
- }), Yn = ["data-block"], qn = { key: 0 }, Qn = { key: 1 }, Un = { key: 2 }, Kn = {
2824
+ }), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, Kn = { key: 2 }, jn = {
2819
2825
  key: 3,
2820
2826
  class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
2821
- }, jn = /* @__PURE__ */ V({
2827
+ }, Xn = /* @__PURE__ */ V({
2822
2828
  __name: "index",
2823
2829
  props: {
2824
2830
  sub: {},
@@ -2829,22 +2835,22 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2829
2835
  const t = e, o = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((l, i) => i === r.length - 1 ? l : ""))), a = A(() => t.width ? `${t.width}em` : "");
2830
2836
  return (n, r) => (s(), d("span", {
2831
2837
  class: te(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2832
- style: W({ width: a.value }),
2838
+ style: G({ width: a.value }),
2833
2839
  "data-block": x(Ee)
2834
2840
  }, [
2835
2841
  (s(!0), d(M, null, X(o.value, (l, i) => (s(), d(M, null, [
2836
- i ? (s(), d("span", qn, " - ")) : P("", !0),
2837
- l[0] ? (s(), d("span", Qn, j(l[0]), 1)) : P("", !0),
2838
- l[1] ? (s(), d("span", Un, "(" + j(l[1]) + ")", 1)) : P("", !0),
2839
- l[2] ? (s(), d("span", Kn, j(l[2]), 1)) : P("", !0)
2842
+ i ? (s(), d("span", Qn, " - ")) : P("", !0),
2843
+ l[0] ? (s(), d("span", Un, j(l[0]), 1)) : P("", !0),
2844
+ l[1] ? (s(), d("span", Kn, "(" + j(l[1]) + ")", 1)) : P("", !0),
2845
+ l[2] ? (s(), d("span", jn, j(l[2]), 1)) : P("", !0)
2840
2846
  ], 64))), 256))
2841
- ], 14, Yn));
2847
+ ], 14, qn));
2842
2848
  }
2843
- }), Xn = {
2849
+ }), Vn = {
2844
2850
  components: {
2845
2851
  choice: Bl,
2846
2852
  choiceSheet: Hl,
2847
- decide: Wl,
2853
+ decide: Gl,
2848
2854
  decideSheet: Zl,
2849
2855
  fill: on,
2850
2856
  fillSheet: cn,
@@ -2857,9 +2863,9 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2857
2863
  synthesis: Ln,
2858
2864
  synthesisSheet: Mn,
2859
2865
  art: An,
2860
- artSheet: Rn,
2861
- notArea: Wn,
2862
- Sub: jn
2866
+ artSheet: Wn,
2867
+ notArea: Yn,
2868
+ Sub: Xn
2863
2869
  },
2864
2870
  props: {
2865
2871
  data: {
@@ -3045,21 +3051,21 @@ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
3045
3051
  }
3046
3052
  };
3047
3053
  }
3048
- }, Vn = ["data-block"], Jn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], Zn = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], es = { key: 0 };
3049
- function ts(e, t, o, a, n, r) {
3054
+ }, Jn = ["data-block"], Zn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], es = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ts = { key: 0 };
3055
+ function os(e, t, o, a, n, r) {
3050
3056
  const l = Ht("Sub");
3051
3057
  return s(!0), d(M, null, X(a.GroupData, (i) => (s(), d(M, null, [
3052
3058
  i.type === "polymer" ? (s(), d("div", {
3053
3059
  key: 0,
3054
3060
  "data-block": a.ComputBlock(i),
3055
3061
  class: te([...a.ComputPolymerCls(i)]),
3056
- style: W(a.ComputPolymerStyle(i))
3062
+ style: G(a.ComputPolymerStyle(i))
3057
3063
  }, [
3058
3064
  (s(!0), d(M, null, X(i.children, (c, u) => {
3059
3065
  var m;
3060
3066
  return s(), d("div", {
3061
3067
  class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3062
- style: W(a.ComputPolymerItemStyle(c, u)),
3068
+ style: G(a.ComputPolymerItemStyle(c, u)),
3063
3069
  "data-tag": c.__tag__,
3064
3070
  "data-block": a.ComputBlock(c),
3065
3071
  "data-xine": a.Gps_cls.item + c._sub,
@@ -3074,14 +3080,14 @@ function ts(e, t, o, a, n, r) {
3074
3080
  class: te(["sub_item", a.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
3075
3081
  }, null, 8, ["sub", "isFull", "width", "class"])) : P("", !0),
3076
3082
  (s(), Q(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), null, 16))
3077
- ], 46, Jn);
3083
+ ], 46, Zn);
3078
3084
  }), 256))
3079
- ], 14, Vn)) : (s(!0), d(M, { key: 1 }, X(i.children, (c, u) => {
3085
+ ], 14, Jn)) : (s(!0), d(M, { key: 1 }, X(i.children, (c, u) => {
3080
3086
  var m;
3081
3087
  return s(), d(M, null, [
3082
3088
  g("div", {
3083
3089
  class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3084
- style: W(a.ComputStyle(c, u)),
3090
+ style: G(a.ComputStyle(c, u)),
3085
3091
  "data-tag": c.__tag__,
3086
3092
  "data-block": a.ComputBlock(c),
3087
3093
  "data-xine": a.Gps_cls.item + c._sub,
@@ -3106,13 +3112,13 @@ function ts(e, t, o, a, n, r) {
3106
3112
  ]),
3107
3113
  _: 2
3108
3114
  }, 1040))
3109
- ], 46, Zn),
3110
- c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", es)) : P("", !0)
3115
+ ], 46, es),
3116
+ c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) : P("", !0)
3111
3117
  ], 64);
3112
3118
  }), 256))
3113
3119
  ], 64))), 256);
3114
3120
  }
3115
- const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, le = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), $e = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), as = (e, t, o) => {
3121
+ const Ye = /* @__PURE__ */ ce(Vn, [["render", os]]), Fe = 200 / 96, Nt = 4, as = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, le = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), $e = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, o) => {
3116
3122
  const a = N(le(`${C.item}${e._sub}`, t));
3117
3123
  return !(a.top >= o.top + o.height || a.top + a.height < o.top);
3118
3124
  }, re = (e, t, o = !1) => !e || !t ? null : {
@@ -3164,14 +3170,14 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3164
3170
  xColOffset: Math.round((a.list[0][1].x - a.list[0][0].x - a.list[0][0].width) * Fe),
3165
3171
  questionNOList: [...Array(a.list.length).keys()].map((n, r) => r + 1)
3166
3172
  };
3167
- }, ls = (e) => ({
3173
+ }, ns = (e) => ({
3168
3174
  cardSizeType: po[e.layout.paper],
3169
3175
  cardColumnCount: e.layout.column,
3170
3176
  cardColumnCount2: e.layout.backColumn,
3171
3177
  doubleCard: !0,
3172
3178
  paperWidth: Math.round(b[e.layout.paper].width * Fe),
3173
3179
  paperHeight: Math.round(b[e.layout.paper].height * Fe)
3174
- }), ns = (e) => {
3180
+ }), ss = (e) => {
3175
3181
  const t = N(e.pageDom[0]), o = N(e.pageDom[1]), a = (n) => {
3176
3182
  var l;
3177
3183
  const r = e.layout.backColumn > 2 ? {
@@ -3202,7 +3208,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3202
3208
  auxAnchorInfo: a(0),
3203
3209
  auxAnchorInfo2: e.pageDom[1] ? a(1) : null
3204
3210
  };
3205
- }, ss = (e) => {
3211
+ }, is = (e) => {
3206
3212
  let t = 10;
3207
3213
  if (e.pageDom[1]) {
3208
3214
  const a = le(`${C.page_item}0`, e.pageDom[1]).getBoundingClientRect();
@@ -3229,7 +3235,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3229
3235
  xColOffset: Math.round(t * Fe)
3230
3236
  }
3231
3237
  ];
3232
- }, is = (e) => {
3238
+ }, rs = (e) => {
3233
3239
  const t = le(C.lack, e.pageDom[0]);
3234
3240
  return t ? {
3235
3241
  // 固定值
@@ -3249,10 +3255,10 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3249
3255
  yRowOffset: 0,
3250
3256
  xColOffset: 0
3251
3257
  } : null;
3252
- }, rs = (e) => {
3258
+ }, cs = (e) => {
3253
3259
  let t = re(N(le(C.en_code, e.pageDom[0])), N(e.pageDom[0]));
3254
3260
  return oe(t);
3255
- }, cs = (e) => {
3261
+ }, ds = (e) => {
3256
3262
  const t = le(C.write_view, e.pageDom[0]);
3257
3263
  if (!t)
3258
3264
  return null;
@@ -3269,8 +3275,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3269
3275
  score: Math.abs(parseFloat(o[n].innerText))
3270
3276
  }))
3271
3277
  };
3272
- }, ds = (e, t) => {
3273
- const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], a = os + Nt, n = (r) => parseFloat(r.toFixed(2));
3278
+ }, us = (e, t) => {
3279
+ const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], a = as + Nt, n = (r) => parseFloat(r.toFixed(2));
3274
3280
  return t.flat().filter((r) => o.includes(r.problemType) && r.colIndex < 2).map((r) => {
3275
3281
  switch (r.problemType) {
3276
3282
  case p.fill:
@@ -3318,7 +3324,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3318
3324
  });
3319
3325
  }
3320
3326
  }).flat();
3321
- }, us = (e, t) => {
3327
+ }, hs = (e, t) => {
3322
3328
  let o = 0, a = {};
3323
3329
  return [...Array(e.pageDom.length).keys()].map((n) => {
3324
3330
  const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
@@ -3337,7 +3343,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3337
3343
  })).filter((v) => v.position)
3338
3344
  } : {};
3339
3345
  }).filter((L) => L.position);
3340
- return J.filter((L) => as(L, m, O)).map((L, D, v) => {
3346
+ return J.filter((L) => ls(L, m, O)).map((L, D, v) => {
3341
3347
  let z = {};
3342
3348
  a[L._sub] ? a[L._sub] += 1 : a[L._sub] = 1;
3343
3349
  const ne = le(`${C.item}${L._sub}`, m);
@@ -3408,7 +3414,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3408
3414
  }).concat(Z).filter((L) => L.position);
3409
3415
  });
3410
3416
  }).map((n) => n.flat());
3411
- }, hs = (e) => {
3417
+ }, ps = (e) => {
3412
3418
  const t = (a = e, n = !1) => ({
3413
3419
  // 块位置
3414
3420
  sectionPosition: oe(a.position, !0),
@@ -3517,7 +3523,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3517
3523
  ...t(e, !e.isOneChoice),
3518
3524
  ...o
3519
3525
  };
3520
- }, ps = (e, t) => [...Array(e.pageTotal).keys()].map((o) => ({
3526
+ }, ms = (e, t) => [...Array(e.pageTotal).keys()].map((o) => ({
3521
3527
  // 当前页数
3522
3528
  pageIndexID: o + 1,
3523
3529
  // 保留字段
@@ -3534,8 +3540,8 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3534
3540
  noAnswerTag: !1
3535
3541
  }],
3536
3542
  // 按题切块信息
3537
- cardCuttingSectionList: t[o].map((a) => hs(a)).flat()
3538
- })), ms = (e, t) => {
3543
+ cardCuttingSectionList: t[o].map((a) => ps(a)).flat()
3544
+ })), ys = (e, t) => {
3539
3545
  var a;
3540
3546
  const o = N(e.pageDom[0]);
3541
3547
  return {
@@ -3563,7 +3569,7 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3563
3569
  studentID: {
3564
3570
  // 条形码虚线框位置, x, y, width, height
3565
3571
  // encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
3566
- encodePictureArea: rs(e),
3572
+ encodePictureArea: cs(e),
3567
3573
  // ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
3568
3574
  // 固定值
3569
3575
  qrCodePosition: null,
@@ -3583,21 +3589,21 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3583
3589
  // 哪些面有选做老师布置题的信息,固定值
3584
3590
  onlyAssignInfoList: [],
3585
3591
  // 页面布局信息
3586
- layerType: ls(e),
3592
+ layerType: ns(e),
3587
3593
  // 定位点信息
3588
- ...ns(e),
3594
+ ...ss(e),
3589
3595
  pottedLineXPos: e.bindWidth ? (a = oe(re(N(le(C.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
3590
3596
  // 页码点信息
3591
- pageSideAnchorsList: ss(e),
3597
+ pageSideAnchorsList: is(e),
3592
3598
  // 缺考标记
3593
- absenceMark: is(e),
3599
+ absenceMark: rs(e),
3594
3600
  // 业务数据
3595
3601
  oneFullPageCardList: t
3596
3602
  };
3597
- }, ys = (e) => {
3598
- const { config: t, data: o } = e, a = cs(t), n = us(t, o);
3603
+ }, _s = (e) => {
3604
+ const { config: t, data: o } = e, a = ds(t), n = hs(t, o);
3599
3605
  a && n[0].unshift(a);
3600
- const r = ds(t, n), l = ps(t, n), i = ms(t, l), c = Bt(t, C.en_num_view) || {};
3606
+ const r = us(t, n), l = ms(t, n), i = ys(t, l), c = Bt(t, C.en_num_view) || {};
3601
3607
  return {
3602
3608
  engineData: i,
3603
3609
  pageTotal: t.pageTotal,
@@ -3605,10 +3611,10 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3605
3611
  localData: r,
3606
3612
  extendInfo: { shortCoordinate: c }
3607
3613
  };
3608
- }, _s = { class: "layt-moni_view" }, fs = { class: "layt-moni_content" }, gs = { class: "layt-moni_icon" }, bs = { class: "layt-moni_msg" }, vs = {
3614
+ }, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
3609
3615
  key: 0,
3610
3616
  class: "layt-moni_err_view"
3611
- }, ws = { class: "layt-moni_err_item_msg" }, xs = ["onClick"], ks = /* @__PURE__ */ V({
3617
+ }, xs = { class: "layt-moni_err_item_msg" }, ks = ["onClick"], Cs = /* @__PURE__ */ V({
3612
3618
  __name: "index",
3613
3619
  props: {
3614
3620
  ColList: {},
@@ -3651,43 +3657,43 @@ const Ye = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3651
3657
  var i;
3652
3658
  (((i = a.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
3653
3659
  };
3654
- return (l, i) => (s(), d("div", _s, [
3655
- g("div", fs, [
3660
+ return (l, i) => (s(), d("div", fs, [
3661
+ g("div", gs, [
3656
3662
  g("div", {
3657
3663
  class: te(["layt-moni_status", a.value.length ? "layt-moni_err" : "layt-moni_success"])
3658
3664
  }, null, 2),
3659
3665
  g("div", {
3660
3666
  class: te(["layt-moni_info", a.value.length ? "layt-moni_err" : "layt-moni_success"])
3661
3667
  }, [
3662
- g("span", gs, [
3668
+ g("span", bs, [
3663
3669
  U(_e, {
3664
3670
  width: 1.6,
3665
3671
  name: a.value.length ? "wrong" : "right"
3666
3672
  }, null, 8, ["name"])
3667
3673
  ]),
3668
- g("span", bs, "排版" + j(a.value.length ? "异常" : "良好"), 1)
3674
+ g("span", vs, "排版" + j(a.value.length ? "异常" : "良好"), 1)
3669
3675
  ], 2),
3670
- a.value.length ? (s(), d("ul", vs, [
3676
+ a.value.length ? (s(), d("ul", ws, [
3671
3677
  (s(!0), d(M, null, X(a.value, (c, u) => (s(), d("li", {
3672
3678
  key: u,
3673
3679
  class: "layt-moni_err_item"
3674
3680
  }, [
3675
- g("span", ws, j(c.msg), 1),
3681
+ g("span", xs, j(c.msg), 1),
3676
3682
  c.fn ? (s(), d("span", {
3677
3683
  key: 0,
3678
3684
  class: "layt-moni_err_item_fn",
3679
3685
  onClick: c.fn
3680
- }, j(c.btnTxt || "删除"), 9, xs)) : P("", !0)
3686
+ }, j(c.btnTxt || "删除"), 9, ks)) : P("", !0)
3681
3687
  ]))), 128))
3682
3688
  ])) : P("", !0)
3683
3689
  ])
3684
3690
  ]));
3685
3691
  }
3686
3692
  });
3687
- const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Xe = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Xe(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Xe(e.parentElement) : document.body, $s = (e) => {
3693
+ const $s = /* @__PURE__ */ ce(Cs, [["__scopeId", "data-v-90e967d8"]]), de = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Xe = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Xe(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Xe(e.parentElement) : document.body, Ss = (e) => {
3688
3694
  const t = e.parentElement, o = document.createElement("span");
3689
3695
  return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ut, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
3690
- }, Ss = (e, t, o, a) => {
3696
+ }, Ts = (e, t, o, a) => {
3691
3697
  let n = null;
3692
3698
  if (e.dataset.block === dt && !e.dataset.used) {
3693
3699
  const r = window.getComputedStyle(e);
@@ -3699,7 +3705,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3699
3705
  const a = e.textContent || "", n = a.split("").map((c) => `<span>${c}</span>`).join("");
3700
3706
  e.innerHTML = n;
3701
3707
  const r = [...Array.from(e.children)].findIndex((c) => de(c).top - t + c.offsetHeight > o);
3702
- if (!r)
3708
+ if (r < 1)
3703
3709
  return e.innerHTML = a, e;
3704
3710
  const l = document.createElement("span");
3705
3711
  l.textContent = a.slice(0, r);
@@ -3736,7 +3742,7 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3736
3742
  const v = getComputedStyle(m);
3737
3743
  if (h + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > i)
3738
3744
  return st(m, t, h);
3739
- const z = Ss(m, i - h, i, a);
3745
+ const z = Ts(m, i - h, i, a);
3740
3746
  if (z)
3741
3747
  return Xe(z);
3742
3748
  if (m.children.length) {
@@ -3746,8 +3752,8 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3746
3752
  return St(m, t, i);
3747
3753
  }
3748
3754
  }, r = n([e]);
3749
- return { cut: $s(r), targetEl: r };
3750
- }, Ts = (e) => {
3755
+ return { cut: Ss(r), targetEl: r };
3756
+ }, Is = (e) => {
3751
3757
  const { el: t, data: o, column: a, backColumn: n, getColSize: r, change: l } = e;
3752
3758
  if (!t || !o.length) {
3753
3759
  l([], !0);
@@ -3840,10 +3846,10 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3840
3846
  const pe = parseInt(I.dataset.size);
3841
3847
  if (!w.artBlock)
3842
3848
  if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > pe) {
3843
- const G = B.querySelector(`*[data-guide="${w.id}"]`), ae = de(G);
3849
+ const W = B.querySelector(`*[data-guide="${w.id}"]`), ae = de(W);
3844
3850
  if (ae.height + ae.top - c.top > c.height) {
3845
- G.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
3846
- const Ie = de(I).top + I.offsetHeight, Se = [...Array.from(G.children)].findIndex((ge) => de(ge).top > Ie);
3851
+ W.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
3852
+ const Ie = de(I).top + I.offsetHeight, Se = [...Array.from(W.children)].findIndex((ge) => de(ge).top > Ie);
3847
3853
  se.beforeGuide = w.beforeGuide.substring(0, Se), w.beforeGuide = w.beforeGuide.substring(Se);
3848
3854
  } else
3849
3855
  w.beforeGuide = "";
@@ -3871,13 +3877,13 @@ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3871
3877
  }, Ot = window.CKEDITOR;
3872
3878
  Ot.disableAutoInline = !0;
3873
3879
  const ht = `dx${Math.random().toString(32).substring(2)}`;
3874
- function Is(e, t) {
3880
+ function Ls(e, t) {
3875
3881
  return Ot[e](ht, {
3876
3882
  filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
3877
3883
  uploadUrl: `${t}ckeditor/uploadImg`
3878
3884
  });
3879
3885
  }
3880
- const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Fs = ["disabled", "contentEditable", "id"], Es = /* @__PURE__ */ V({
3886
+ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Es = ["disabled", "contentEditable", "id"], Ms = /* @__PURE__ */ V({
3881
3887
  __name: "index",
3882
3888
  props: {
3883
3889
  value: {},
@@ -3895,7 +3901,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3895
3901
  return;
3896
3902
  }
3897
3903
  Je(() => {
3898
- n.value = Is("inline", a), n.value && n.value.on("instanceReady", (u) => {
3904
+ n.value = Ls("inline", a), n.value && n.value.on("instanceReady", (u) => {
3899
3905
  n.value.setData(o.value);
3900
3906
  });
3901
3907
  });
@@ -3930,7 +3936,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3930
3936
  };
3931
3937
  return O(), m.innerHTML;
3932
3938
  };
3933
- return (u, m) => (s(), d("div", Ls, [
3939
+ return (u, m) => (s(), d("div", Fs, [
3934
3940
  o.readonly ? (s(), Q(Ne, {
3935
3941
  key: 1,
3936
3942
  data: o.value,
@@ -3943,14 +3949,14 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3943
3949
  id: x(ht),
3944
3950
  onFocus: i,
3945
3951
  onBlur: l
3946
- }, null, 40, Fs))
3952
+ }, null, 40, Es))
3947
3953
  ]));
3948
3954
  }
3949
3955
  });
3950
- const Ms = /* @__PURE__ */ ce(Es, [["__scopeId", "data-v-1398ac85"]]);
3956
+ const Ps = /* @__PURE__ */ ce(Ms, [["__scopeId", "data-v-1398ac85"]]);
3951
3957
  let qe = (e) => {
3952
3958
  };
3953
- const Ps = {
3959
+ const Ds = {
3954
3960
  updated: function(e, t) {
3955
3961
  document.body.removeEventListener("click", qe), qe = (o) => {
3956
3962
  !e.contains(o.target) && t.value && t.value(o);
@@ -3961,7 +3967,7 @@ const Ps = {
3961
3967
  }
3962
3968
  };
3963
3969
  let ot = null;
3964
- const Ds = {
3970
+ const As = {
3965
3971
  mounted: (e, t) => {
3966
3972
  let o = {}, a = !1, n = !1, r = e.offsetParent, l = {}, i = {};
3967
3973
  const c = e.querySelector(".move-target") || e;
@@ -3982,7 +3988,7 @@ const Ds = {
3982
3988
  unmounted: () => {
3983
3989
  document.removeEventListener("mousemove", ot);
3984
3990
  }
3985
- }, As = ["onMousedown", "data-block"], Ns = ["src"], Bs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Os = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, zs = ["onMousedown"], Hs = ["onMousedown"], Rs = ["disabled", "onMousedown", "data-block"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ws = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ys = ["onMousedown"], qs = /* @__PURE__ */ V({
3991
+ }, Ns = ["onMousedown", "data-block"], Bs = ["src"], Os = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, zs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Hs = ["onMousedown"], Rs = ["onMousedown"], Ws = ["disabled", "onMousedown", "data-block"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ys = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, qs = ["onMousedown"], Qs = /* @__PURE__ */ V({
3986
3992
  __name: "absItem",
3987
3993
  props: {
3988
3994
  imgData: {},
@@ -3992,7 +3998,7 @@ const Ds = {
3992
3998
  },
3993
3999
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
3994
4000
  setup(e, { emit: t }) {
3995
- const o = e, a = Ps, n = Ds, r = [
4001
+ const o = e, a = Ds, n = As, r = [
3996
4002
  { left: "0", top: "0", cursor: "nwse-resize" },
3997
4003
  { left: "50%", top: "0", cursor: "ns-resize" },
3998
4004
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4035,7 +4041,7 @@ const Ds = {
4035
4041
  [
4036
4042
  // 0
4037
4043
  () => {
4038
- const G = {
4044
+ const W = {
4039
4045
  width: l.value.width - $.x,
4040
4046
  height: l.value.width * (1 - $.y / l.value.height)
4041
4047
  }[ee], ae = {
@@ -4044,26 +4050,26 @@ const Ds = {
4044
4050
  }[ee];
4045
4051
  i.value = {
4046
4052
  ...I,
4047
- width: G,
4053
+ width: W,
4048
4054
  height: ae,
4049
- left: l.value.left - (G - l.value.width),
4055
+ left: l.value.left - (W - l.value.width),
4050
4056
  top: l.value.top - (ae - l.value.height)
4051
4057
  };
4052
4058
  },
4053
4059
  // 1
4054
4060
  () => {
4055
- const G = l.value.width * (1 - $.y / l.value.height), ae = l.value.height - $.y;
4061
+ const W = l.value.width * (1 - $.y / l.value.height), ae = l.value.height - $.y;
4056
4062
  i.value = {
4057
4063
  ...I,
4058
- width: G,
4064
+ width: W,
4059
4065
  height: ae,
4060
- left: l.value.left - (G - l.value.width) / 2,
4066
+ left: l.value.left - (W - l.value.width) / 2,
4061
4067
  top: l.value.top - (ae - l.value.height)
4062
4068
  };
4063
4069
  },
4064
4070
  // 2
4065
4071
  () => {
4066
- const G = {
4072
+ const W = {
4067
4073
  width: l.value.height * (1 + $.x / l.value.width),
4068
4074
  height: l.value.height - $.y
4069
4075
  }[ee];
@@ -4073,34 +4079,34 @@ const Ds = {
4073
4079
  width: l.value.width + $.x,
4074
4080
  height: l.value.width * (1 - $.y / l.value.height)
4075
4081
  }[ee],
4076
- height: G,
4077
- top: l.value.top - (G - l.value.height)
4082
+ height: W,
4083
+ top: l.value.top - (W - l.value.height)
4078
4084
  };
4079
4085
  },
4080
4086
  // 3
4081
4087
  () => {
4082
- const G = l.value.width - $.x, ae = l.value.height * (1 - $.x / l.value.width);
4088
+ const W = l.value.width - $.x, ae = l.value.height * (1 - $.x / l.value.width);
4083
4089
  i.value = {
4084
4090
  ...I,
4085
- width: G,
4091
+ width: W,
4086
4092
  height: ae,
4087
- left: l.value.left - (G - l.value.width),
4093
+ left: l.value.left - (W - l.value.width),
4088
4094
  top: l.value.top - (ae - l.value.height) / 2
4089
4095
  };
4090
4096
  },
4091
4097
  // 4
4092
4098
  () => {
4093
- const G = l.value.width + $.x, ae = l.value.height * (1 + $.x / l.value.width);
4099
+ const W = l.value.width + $.x, ae = l.value.height * (1 + $.x / l.value.width);
4094
4100
  i.value = {
4095
4101
  ...I,
4096
- width: G,
4102
+ width: W,
4097
4103
  height: ae,
4098
4104
  top: l.value.top - (ae - l.value.height) / 2
4099
4105
  };
4100
4106
  },
4101
4107
  // 5
4102
4108
  () => {
4103
- const G = {
4109
+ const W = {
4104
4110
  width: l.value.width - $.x,
4105
4111
  height: l.value.width * (1 + $.y / l.value.height)
4106
4112
  }[ee], ae = {
@@ -4109,24 +4115,24 @@ const Ds = {
4109
4115
  }[ee];
4110
4116
  i.value = {
4111
4117
  ...I,
4112
- width: G,
4118
+ width: W,
4113
4119
  height: ae,
4114
- left: l.value.left - (G - l.value.width)
4120
+ left: l.value.left - (W - l.value.width)
4115
4121
  };
4116
4122
  },
4117
4123
  // 6
4118
4124
  () => {
4119
- const G = l.value.width * (1 + $.y / l.value.height), ae = l.value.height + $.y;
4125
+ const W = l.value.width * (1 + $.y / l.value.height), ae = l.value.height + $.y;
4120
4126
  i.value = {
4121
4127
  ...I,
4122
- width: G,
4128
+ width: W,
4123
4129
  height: ae,
4124
- left: l.value.left - (G - l.value.width) / 2
4130
+ left: l.value.left - (W - l.value.width) / 2
4125
4131
  };
4126
4132
  },
4127
4133
  // 7
4128
4134
  () => {
4129
- const G = {
4135
+ const W = {
4130
4136
  width: l.value.width + $.x,
4131
4137
  height: l.value.width * (1 + $.y / l.value.height)
4132
4138
  }[ee], ae = {
@@ -4135,7 +4141,7 @@ const Ds = {
4135
4141
  }[ee];
4136
4142
  i.value = {
4137
4143
  ...I,
4138
- width: G,
4144
+ width: W,
4139
4145
  height: ae
4140
4146
  };
4141
4147
  }
@@ -4202,20 +4208,20 @@ const Ds = {
4202
4208
  };
4203
4209
  return (F, $) => (s(), d(M, null, [
4204
4210
  (s(!0), d(M, null, X(Z.value, (I) => {
4205
- var ee, pe, G, ae, Ie, Se, ge;
4211
+ var ee, pe, W, ae, Ie, Se, ge;
4206
4212
  return ft((s(), d("div", {
4207
4213
  key: I.id,
4208
4214
  "data-safe": "true",
4209
4215
  class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8" : "z-7"]),
4210
- style: W({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((G = v.value[I.key]) == null ? void 0 : G.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px", transform: `rotate(${((Se = v.value[I.key]) == null ? void 0 : Se.rotate) || I.rotate}deg)` }),
4216
+ style: G({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((W = v.value[I.key]) == null ? void 0 : W.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px", transform: `rotate(${((Se = v.value[I.key]) == null ? void 0 : Se.rotate) || I.rotate}deg)` }),
4211
4217
  onMousedown: Le((f) => se(I), ["stop"]),
4212
4218
  "data-block": x(Ee)
4213
4219
  }, [
4214
4220
  g("img", {
4215
4221
  src: I.url
4216
- }, null, 8, Ns),
4222
+ }, null, 8, Bs),
4217
4223
  ((ge = D.value) == null ? void 0 : ge.key) === I.key ? (s(), d(M, { key: 0 }, [
4218
- g("span", Bs, [
4224
+ g("span", Os, [
4219
4225
  U(_e, {
4220
4226
  name: "close",
4221
4227
  width: 2,
@@ -4223,13 +4229,13 @@ const Ds = {
4223
4229
  onClick: (f) => t("delAbsImgItem", I)
4224
4230
  }, null, 8, ["onClick"])
4225
4231
  ]),
4226
- g("div", Os, [
4232
+ g("div", zs, [
4227
4233
  (s(), d(M, null, X(8, (f, S) => g("div", {
4228
4234
  key: f,
4229
4235
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4230
- style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
4236
+ style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
4231
4237
  onMousedown: Le((ye) => w(ye, S), ["stop"])
4232
- }, null, 44, zs)), 64))
4238
+ }, null, 44, Hs)), 64))
4233
4239
  ]),
4234
4240
  g("span", {
4235
4241
  class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
@@ -4239,25 +4245,25 @@ const Ds = {
4239
4245
  name: "reset",
4240
4246
  width: 2
4241
4247
  })
4242
- ], 40, Hs)
4248
+ ], 40, Rs)
4243
4249
  ], 64)) : P("", !0)
4244
- ], 46, As)), [
4250
+ ], 46, Ns)), [
4245
4251
  [x(n), z],
4246
4252
  [x(a), (f) => se(null, f)]
4247
4253
  ]);
4248
4254
  }), 128)),
4249
4255
  (s(!0), d(M, null, X(L.value, (I) => {
4250
- var ee, pe, G, ae, Ie, Se, ge;
4256
+ var ee, pe, W, ae, Ie, Se, ge;
4251
4257
  return ft((s(), d("div", {
4252
4258
  key: I.id,
4253
4259
  disabled: E.value,
4254
4260
  "data-safe": "true",
4255
4261
  class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8 bg-white" : "z-7"]),
4256
- style: W({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((G = v.value[I.key]) == null ? void 0 : G.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px" }),
4262
+ style: G({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((W = v.value[I.key]) == null ? void 0 : W.top) || I.top, 0) + "px", width: (((ae = v.value[I.key]) == null ? void 0 : ae.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px" }),
4257
4263
  onMousedown: Le((f) => se(I), ["stop"]),
4258
4264
  "data-block": x(Ee)
4259
4265
  }, [
4260
- (s(), Q(Ms, {
4266
+ (s(), Q(Ps, {
4261
4267
  key: u.value,
4262
4268
  class: "border-0 relative z-4",
4263
4269
  readonly: ((Se = D.value) == null ? void 0 : Se.key) !== I.key,
@@ -4276,16 +4282,16 @@ const Ds = {
4276
4282
  onClick: (f) => t("delAbsTxtItem", I)
4277
4283
  }, null, 8, ["onClick"])
4278
4284
  ]),
4279
- g("div", Ws, [
4285
+ g("div", Ys, [
4280
4286
  (s(), d(M, null, X(8, (f, S) => g("div", {
4281
4287
  key: f,
4282
4288
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4283
- style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
4289
+ style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
4284
4290
  onMousedown: (ye) => w(ye, S)
4285
- }, null, 44, Ys)), 64))
4291
+ }, null, 44, qs)), 64))
4286
4292
  ])
4287
4293
  ], 64)) : P("", !0)
4288
- ], 46, Rs)), [
4294
+ ], 46, Ws)), [
4289
4295
  [x(n), z],
4290
4296
  [x(a), (f) => se(null, f)]
4291
4297
  ]);
@@ -4293,12 +4299,12 @@ const Ds = {
4293
4299
  ], 64));
4294
4300
  }
4295
4301
  });
4296
- const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["viewBox"], Ks = {
4302
+ const Us = /* @__PURE__ */ ce(Qs, [["__scopeId", "data-v-09e89b79"]]), Ks = ["viewBox"], js = {
4297
4303
  x: "0",
4298
4304
  y: "0",
4299
4305
  width: "100%",
4300
4306
  height: "100%"
4301
- }, js = ["onClick", "onDblclick"], Xs = ["data-block"], Vs = /* @__PURE__ */ V({
4307
+ }, Xs = ["onClick", "onDblclick"], Vs = ["data-block"], Js = /* @__PURE__ */ V({
4302
4308
  __name: "index",
4303
4309
  props: {
4304
4310
  layout: {},
@@ -4315,7 +4321,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4315
4321
  emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
4316
4322
  setup(e, { emit: t }) {
4317
4323
  const o = e;
4318
- Gt("ckeditorOrigin", o.ckeditorOrigin);
4324
+ Wt("ckeditorOrigin", o.ckeditorOrigin);
4319
4325
  const a = q([]), n = q([]), r = q(2), l = q(0), i = q(0), c = q(), u = q([]), m = q([]), O = q([]), h = q([]), E = A(() => o.data.map((f) => ({
4320
4326
  ...f,
4321
4327
  __tag__: xt(),
@@ -4358,13 +4364,13 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4358
4364
  f ? u.value[S] = f : u.value.splice(S, 1);
4359
4365
  }, ee = (f, S) => {
4360
4366
  f ? m.value[S] = f : m.value.splice(S, 1);
4361
- }, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, G = (f, S = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / se(f) - pe(f) - H.value.left - H.value.right + (S ? H.value.left + H.value.right : 0), ae = (f, S) => {
4367
+ }, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, W = (f, S = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / se(f) - pe(f) - H.value.left - H.value.right + (S ? H.value.left + H.value.right : 0), ae = (f, S) => {
4362
4368
  var K, ie;
4363
4369
  const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((K = O.value[Math.min(S, 1)]) == null ? void 0 : K.offsetHeight) || 0;
4364
4370
  return {
4365
- left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (G(f) + pe(f) + H.value.left + H.value.right)}px`,
4371
+ left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (W(f) + pe(f) + H.value.left + H.value.right)}px`,
4366
4372
  top: `${ye + _.value.top + (!S && !f ? 0 : H.value.top)}px`,
4367
- width: `${G(f)}px`,
4373
+ width: `${W(f)}px`,
4368
4374
  height: `${w.value - ye - (!S && !f ? 0 : H.value.top) - H.value.bottom}px`,
4369
4375
  contentHeight: `${(ie = a.value[f]) == null ? void 0 : ie.height}px`
4370
4376
  };
@@ -4374,7 +4380,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4374
4380
  var ie, Ce;
4375
4381
  !ye || !ye.col || ((ie = a.value[K]) != null && ie.top ? ye.col.style.marginTop = `${(Ce = a.value[K]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
4376
4382
  }), o.isFinal && setTimeout(() => {
4377
- const ye = ys({
4383
+ const ye = _s({
4378
4384
  config: {
4379
4385
  ...o.info,
4380
4386
  layout: o.layout,
@@ -4391,7 +4397,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4391
4397
  }, 500);
4392
4398
  }));
4393
4399
  }, Se = () => {
4394
- Ts({
4400
+ Is({
4395
4401
  el: c.value,
4396
4402
  data: E.value,
4397
4403
  column: o.layout.column,
@@ -4405,7 +4411,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4405
4411
  return (f, S) => {
4406
4412
  var ye;
4407
4413
  return s(), d(M, null, [
4408
- f.readonly ? P("", !0) : (s(), Q(Cs, {
4414
+ f.readonly ? P("", !0) : (s(), Q($s, {
4409
4415
  key: 0,
4410
4416
  ColList: a.value,
4411
4417
  ColDom: m.value.map((K) => K.col),
@@ -4443,22 +4449,22 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4443
4449
  layout: f.layout,
4444
4450
  target: f.target,
4445
4451
  noPortrait: "",
4446
- width: G(n.value.length - 1) - 10
4452
+ width: W(n.value.length - 1) - 10
4447
4453
  }, null, 8, ["data", "layout", "target", "width"]))
4448
4454
  ], 2)) : (s(), Q(Ye, {
4449
4455
  data: K,
4450
4456
  key: n.value.length,
4451
4457
  layout: f.layout,
4452
4458
  target: f.target,
4453
- width: G(n.value.length - 1)
4459
+ width: W(n.value.length - 1)
4454
4460
  }, null, 8, ["data", "layout", "target", "width"]))
4455
4461
  ], 64))), 256)) : P("", !0)
4456
4462
  ], 512),
4457
4463
  g("div", {
4458
4464
  class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", f.layout.redFlag && "red_mode", f.readonly && "pointer-events-none"]),
4459
- style: W(B.value)
4465
+ style: G(B.value)
4460
4466
  }, [
4461
- U(Qs, {
4467
+ U(Us, {
4462
4468
  imgData: f.imgData,
4463
4469
  txtData: f.txtData,
4464
4470
  layout: f.layout,
@@ -4474,20 +4480,20 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4474
4480
  xmlns: "http://www.w3.org/2000/svg",
4475
4481
  key: l.value
4476
4482
  }, [
4477
- (s(), d("foreignObject", Ks, [
4483
+ (s(), d("foreignObject", js, [
4478
4484
  (s(!0), d(M, null, X(z.value, (K, ie) => (s(), d("div", {
4479
4485
  key: K,
4480
4486
  class: "bg-white relative flex justify-between overflow-hidden box-border",
4481
4487
  ref_for: !0,
4482
4488
  ref: (Ce) => I(Ce, ie),
4483
- style: W(ue.value)
4489
+ style: G(ue.value)
4484
4490
  }, [
4485
4491
  ie < v.value ? (s(), d(M, { key: 0 }, [
4486
4492
  U(wo, {
4487
4493
  layout: f.layout,
4488
4494
  currentPage: ie,
4489
4495
  totalPage: v.value,
4490
- columnContentWidth: G(ie % 2 ? f.layout.column : 0, !0),
4496
+ columnContentWidth: W(ie % 2 ? f.layout.column : 0, !0),
4491
4497
  columnMargin: pe(ie % 2 ? f.layout.column : 0),
4492
4498
  bindWidth: i.value,
4493
4499
  padding: _.value
@@ -4513,7 +4519,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4513
4519
  ref_key: "titleDom",
4514
4520
  ref: O,
4515
4521
  class: te(["absolute text-black", ie === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
4516
- style: W(he.value)
4522
+ style: G(he.value)
4517
4523
  }, [
4518
4524
  U(Mo, {
4519
4525
  layout: f.layout,
@@ -4549,16 +4555,16 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4549
4555
  ], 6)) : P("", !0),
4550
4556
  (s(!0), d(M, null, X(ie % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), Q(Qa, {
4551
4557
  ref_for: !0,
4552
- ref: (We) => ee(We, F(Me, ie)),
4558
+ ref: (Ge) => ee(Ge, F(Me, ie)),
4553
4559
  styleInfo: ae(F(Me, ie), ie),
4554
4560
  column: f.layout.column,
4555
4561
  currentColumn: F(Me, ie),
4556
4562
  showColBorder: ne.value
4557
4563
  }, {
4558
4564
  default: It(() => {
4559
- var We;
4565
+ var Ge;
4560
4566
  return [
4561
- (s(!0), d(M, null, X(((We = a.value[F(Me, ie)]) == null ? void 0 : We.data) || [], (fe, zt) => {
4567
+ (s(!0), d(M, null, X(((Ge = a.value[F(Me, ie)]) == null ? void 0 : Ge.data) || [], (fe, zt) => {
4562
4568
  var pt;
4563
4569
  return s(), d(M, null, [
4564
4570
  fe.isHidden ? P("", !0) : (s(), Q(Ct, {
@@ -4581,7 +4587,7 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4581
4587
  data: fe,
4582
4588
  layout: f.layout,
4583
4589
  target: f.target,
4584
- width: G(F(Me, ie)) - 10,
4590
+ width: W(F(Me, ie)) - 10,
4585
4591
  onClick: S[10] || (S[10] = (xe) => ge({ type: xe.problemType ? x(Y).problem : x(Y).problemNotarea, value: xe })),
4586
4592
  onDbclick: S[11] || (S[11] = (xe) => t("dbProblemClick", xe))
4587
4593
  }, null, 8, ["data", "layout", "target", "width"]),
@@ -4589,13 +4595,13 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4589
4595
  key: 0,
4590
4596
  class: "border-t",
4591
4597
  "data-block": x(Ee)
4592
- }, null, 8, Xs)) : P("", !0)
4593
- ], 42, js)) : (s(), Q(Ye, {
4598
+ }, null, 8, Vs)) : P("", !0)
4599
+ ], 42, Xs)) : (s(), Q(Ye, {
4594
4600
  key: 2,
4595
4601
  data: fe,
4596
4602
  layout: f.layout,
4597
4603
  target: f.target,
4598
- width: G(F(Me, ie)),
4604
+ width: W(F(Me, ie)),
4599
4605
  onClick: S[12] || (S[12] = (xe) => ge({ type: xe.problemType ? x(Y).problem : x(Y).problemNotarea, value: xe })),
4600
4606
  onDbclick: S[13] || (S[13] = (xe) => t("dbProblemClick", xe))
4601
4607
  }, null, 8, ["data", "layout", "target", "width"]))
@@ -4608,15 +4614,15 @@ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4608
4614
  ], 64)) : P("", !0)
4609
4615
  ], 4))), 128))
4610
4616
  ]))
4611
- ], 8, Us))
4617
+ ], 8, Ks))
4612
4618
  ], 6)
4613
4619
  ])
4614
4620
  ], 64);
4615
4621
  };
4616
4622
  }
4617
4623
  });
4618
- const ei = /* @__PURE__ */ ce(Vs, [["__scopeId", "data-v-823af0fa"]]);
4624
+ const ti = /* @__PURE__ */ ce(Js, [["__scopeId", "data-v-823af0fa"]]);
4619
4625
  export {
4620
- Zs as Config,
4621
- ei as default
4626
+ ei as Config,
4627
+ ti as default
4622
4628
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alit-layout",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "devDependencies": {