alit-layout 1.1.0 → 1.1.1

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 +106 -106
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as M, renderList as oe, createElementVNode as v, normalizeStyle as K, unref as I, toDisplayString as V, createCommentVNode as P, ref as Q, watch as Ne, normalizeClass as J, computed as D, createBlock as j, createTextVNode as Xe, createVNode as te, pushScopeId as Ge, popScopeId as Qe, renderSlot as pt, onMounted as qe, nextTick as tt, withModifiers as Me, resolveComponent as Gt, resolveDynamicComponent as vt, normalizeProps as wt, guardReactiveProps as kt, withCtx as Ft, inject as Qt, withDirectives as xt, provide as qt } from "vue";
2
- const rt = {
1
+ import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as M, renderList as oe, createElementVNode as v, normalizeStyle as K, unref as I, toDisplayString as V, createCommentVNode as P, ref as Q, watch as Ne, normalizeClass as J, computed as D, createBlock as j, createTextVNode as Je, createVNode as te, pushScopeId as Ge, popScopeId as Qe, renderSlot as pt, onMounted as qe, nextTick as ot, withModifiers as Me, resolveComponent as Gt, resolveDynamicComponent as vt, normalizeProps as wt, guardReactiveProps as kt, withCtx as Ft, inject as Qt, withDirectives as xt, provide as qt } from "vue";
2
+ const je = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
5
5
  // 多选题
@@ -9,7 +9,7 @@ const rt = {
9
9
  // 完形填空
10
10
  cloze: "CLOZE_TEST"
11
11
  }, Et = {
12
- ...rt,
12
+ ...je,
13
13
  // 判断题
14
14
  decide: "TRUE_OR_FALSE"
15
15
  }, Re = {
@@ -561,14 +561,14 @@ const rt = {
561
561
  }, ao = [
562
562
  { name: "整卷", code: ct.wide },
563
563
  { name: "大题", code: ct.local }
564
- ], je = {
564
+ ], Ve = {
565
565
  system: "system",
566
566
  second: "level_2",
567
567
  three: "level_3"
568
568
  }, lo = [
569
- { name: "自增", code: je.system },
570
- { name: "二级", code: je.second },
571
- { name: "三级", code: je.three }
569
+ { name: "自增", code: Ve.system },
570
+ { name: "二级", code: Ve.second },
571
+ { name: "三级", code: Ve.three }
572
572
  ], no = [
573
573
  { name: "缩进", code: !0 },
574
574
  { name: "不缩进", code: !1 }
@@ -578,20 +578,20 @@ const rt = {
578
578
  { name: "班级", code: "classFieldFlag", key: "classField" },
579
579
  { name: "考场", code: "examRoomFieldFlag", key: "examRoomField" },
580
580
  { name: "座号", code: "seatFieldFlag", key: "seatField" }
581
- ], Ve = {
581
+ ], Xe = {
582
582
  auto: "auto",
583
583
  on: "on",
584
584
  off: "off"
585
585
  }, so = [
586
- { name: "自动", code: Ve.auto },
587
- { name: "开", code: Ve.on },
588
- { name: "关", code: Ve.off }
589
- ], Je = {
586
+ { name: "自动", code: Xe.auto },
587
+ { name: "开", code: Xe.on },
588
+ { name: "关", code: Xe.off }
589
+ ], Ze = {
590
590
  step: "step",
591
591
  custom: "custom"
592
592
  }, io = [
593
- { name: "分段", code: Je.step },
594
- { name: "自编", code: Je.custom }
593
+ { name: "分段", code: Ze.step },
594
+ { name: "自编", code: Ze.custom }
595
595
  ], g = {
596
596
  choice_1: "choice-1",
597
597
  choice_2: "choice-2",
@@ -1651,7 +1651,7 @@ const rt = {
1651
1651
  value: 24,
1652
1652
  height: 16
1653
1653
  }
1654
- }, Ze = {
1654
+ }, et = {
1655
1655
  stand: {
1656
1656
  name: "标准",
1657
1657
  code: "stand",
@@ -1662,7 +1662,7 @@ const rt = {
1662
1662
  code: "large",
1663
1663
  value: 33
1664
1664
  }
1665
- }, ot = {
1665
+ }, at = {
1666
1666
  none: {
1667
1667
  name: "无",
1668
1668
  code: "none",
@@ -1713,7 +1713,7 @@ const rt = {
1713
1713
  fontSize: mo,
1714
1714
  fontWeight: po,
1715
1715
  formatConfig: Xt,
1716
- halfScoreType: Ve,
1716
+ halfScoreType: Xe,
1717
1717
  halfScoreTypeOption: so,
1718
1718
  layoutMode: Zt,
1719
1719
  otherLayout: uo,
@@ -1728,9 +1728,9 @@ const rt = {
1728
1728
  problemLayout: co,
1729
1729
  problemLayoutKey: d,
1730
1730
  problemLayoutVal: g,
1731
- scoreLineSize: Ze,
1732
- scoreLineStyle: ot,
1733
- scoreLineType: Je,
1731
+ scoreLineSize: et,
1732
+ scoreLineStyle: at,
1733
+ scoreLineType: Ze,
1734
1734
  scoreLineTypeOption: io,
1735
1735
  seatBarOption: to,
1736
1736
  seatType: xe,
@@ -1741,7 +1741,7 @@ const rt = {
1741
1741
  subIndentOption: no,
1742
1742
  subRange: ct,
1743
1743
  subRangeOption: ao,
1744
- subRule: je,
1744
+ subRule: Ve,
1745
1745
  subRuleOption: lo,
1746
1746
  toolGroup: z
1747
1747
  }, Symbol.toStringTag, { value: "Module" })), yt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), _o = "TF".split(""), fo = {
@@ -1798,7 +1798,7 @@ const rt = {
1798
1798
  write_view: `__${be}write`,
1799
1799
  // 密封线
1800
1800
  bind_line: `__${be}bindline`
1801
- }, nt = {
1801
+ }, st = {
1802
1802
  [_.choice]: "TYPE_SINGLECHOICE",
1803
1803
  // 单项选择
1804
1804
  [_.choice_english]: "TYPE_SINGLECHOICE",
@@ -1917,7 +1917,7 @@ const ye = (e, t) => {
1917
1917
  }, Co = /* @__PURE__ */ ye(xo, [["__scopeId", "data-v-dc735a34"]]), So = { class: "flex-1" }, $o = ["type", "placeholder", "maxlength", "value"], To = {
1918
1918
  key: 0,
1919
1919
  class: "flex-shrink-0 ml-2 text-text3"
1920
- }, at = /* @__PURE__ */ ae({
1920
+ }, lt = /* @__PURE__ */ ae({
1921
1921
  __name: "index",
1922
1922
  props: {
1923
1923
  value: { default: "" },
@@ -1978,7 +1978,7 @@ const ye = (e, t) => {
1978
1978
  right: `${l.value.right + 97}px`,
1979
1979
  bottom: `${l.value.bottom - 25}px`
1980
1980
  }));
1981
- return (s, a) => (i(), j(at, {
1981
+ return (s, a) => (i(), j(lt, {
1982
1982
  class: "absolute w-72 text-sm",
1983
1983
  value: s.info.slogan,
1984
1984
  maxLength: 12,
@@ -2025,13 +2025,13 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
2025
2025
  setup(e) {
2026
2026
  return (t, o) => (i(), h("div", Po, [
2027
2027
  t.layout.secrecyFlag ? (i(), h("p", Mo, [
2028
- Xe("绝密"),
2028
+ Je("绝密"),
2029
2029
  te(ve, {
2030
2030
  name: "fiveArrow",
2031
2031
  width: 1.4,
2032
2032
  class: "px-0 py-0"
2033
2033
  }),
2034
- Xe("启用前")
2034
+ Je("启用前")
2035
2035
  ])) : P("", !0),
2036
2036
  v("p", Do, "ID:" + V(t.code), 1)
2037
2037
  ]));
@@ -2079,7 +2079,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
2079
2079
  },
2080
2080
  emits: ["change"],
2081
2081
  setup(e, { emit: t }) {
2082
- const o = e, l = D(() => o.data.filter((a) => ![ke.another, ke.another_choice, ke.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), r = D(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), s = D(() => o.layout.scoreAddStars === ot.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2082
+ const o = e, l = D(() => o.data.filter((a) => ![ke.another, ke.another_choice, ke.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), r = D(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), s = D(() => o.layout.scoreAddStars === at.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2083
2083
  return (a, c) => (i(), h("div", No, [
2084
2084
  v("img", {
2085
2085
  src: a.info.qrCode,
@@ -2112,7 +2112,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
2112
2112
  ])) : P("", !0),
2113
2113
  a.layout.examTimeFlag ? (i(), h("p", Go, [
2114
2114
  Qo,
2115
- te(at, {
2115
+ te(lt, {
2116
2116
  value: a.info.time,
2117
2117
  class: "text-center",
2118
2118
  type: "number",
@@ -2196,7 +2196,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
2196
2196
  key: s,
2197
2197
  class: J(["flex flex-1 min-w-[12rem]", l.isRow && a && "ml-2"])
2198
2198
  }, [
2199
- te(at, {
2199
+ te(lt, {
2200
2200
  value: l.extent[s],
2201
2201
  class: "px-0",
2202
2202
  placeholder: "",
@@ -2219,7 +2219,7 @@ const ve = /* @__PURE__ */ ye(Eo, [["__scopeId", "data-v-ed2907dd"]]), Po = { cl
2219
2219
  class: "pt-1",
2220
2220
  name: "fiveArrow"
2221
2221
  }),
2222
- Xe("座位号")
2222
+ Je("座位号")
2223
2223
  ]),
2224
2224
  v("div", {
2225
2225
  class: "flex-1 flex flex-col",
@@ -2252,7 +2252,7 @@ const ua = /* @__PURE__ */ ye(da, [["__scopeId", "data-v-91b25fab"]]), ha = ["da
2252
2252
  class: "px-1 pt-1",
2253
2253
  name: "fiveArrow"
2254
2254
  }),
2255
- Xe("短学号")
2255
+ Je("短学号")
2256
2256
  ]),
2257
2257
  v("div", {
2258
2258
  class: "flex-1 flex flex-col",
@@ -2289,7 +2289,7 @@ const Bt = /* @__PURE__ */ ye(fa, [["__scopeId", "data-v-96e8d41d"]]), ga = /* @
2289
2289
  key: s,
2290
2290
  class: J(["flex flex-1", l.isRow && a && "ml-2"])
2291
2291
  }, [
2292
- te(at, {
2292
+ te(lt, {
2293
2293
  value: l.extent[s],
2294
2294
  class: "px-0",
2295
2295
  placeholder: "",
@@ -2580,7 +2580,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2580
2580
  }, [
2581
2581
  (i(!0), h(M, null, oe(l.value, (a, c) => (i(), h("li", {
2582
2582
  class: "flex items-center justify-center relative score_line",
2583
- style: K({ width: `${I(Ze)[r.layout.scoreLineSize].value}px` }),
2583
+ style: K({ width: `${I(et)[r.layout.scoreLineSize].value}px` }),
2584
2584
  "data-xine": I(T).score_item
2585
2585
  }, [
2586
2586
  v("span", dl, V(a), 1),
@@ -2592,7 +2592,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2592
2592
  ], 8, rl)
2593
2593
  ], 8, il));
2594
2594
  }
2595
- }), hl = ["data-block", "data-xine"], pl = ["data-xine"], ml = ["data-xine"], lt = /* @__PURE__ */ ae({
2595
+ }), hl = ["data-block", "data-xine"], pl = ["data-xine"], ml = ["data-xine"], nt = /* @__PURE__ */ ae({
2596
2596
  __name: "index",
2597
2597
  props: {
2598
2598
  item: {},
@@ -2600,19 +2600,19 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2600
2600
  static: { type: Boolean }
2601
2601
  },
2602
2602
  setup(e) {
2603
- const t = e, o = Q(), l = Q(!1), r = Q(!1), s = Q(!1), a = Q([]), c = D(() => t.layout.scoreAddStars === ot.star.code);
2603
+ const t = e, o = Q(), l = Q(!1), r = Q(!1), s = Q(!1), a = Q([]), c = D(() => t.layout.scoreAddStars === at.star.code);
2604
2604
  Ne(() => [t.item.score], () => m()), qe(() => {
2605
2605
  m();
2606
2606
  });
2607
2607
  const m = () => {
2608
- !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || tt(() => {
2608
+ !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || ot(() => {
2609
2609
  let u = [];
2610
- if (t.item.scoreLineType === Je.custom)
2610
+ if (t.item.scoreLineType === Ze.custom)
2611
2611
  u = [[...t.item.customScore, 0]];
2612
2612
  else if (t.item.scoreStep)
2613
2613
  u.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((O) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * O)).reverse());
2614
2614
  else {
2615
- const O = o.value.offsetWidth, p = Ze[t.layout.scoreLineSize].value + 1;
2615
+ const O = o.value.offsetWidth, p = et[t.layout.scoreLineSize].value + 1;
2616
2616
  l.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (u.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), u.push([...Array(10).keys()].reverse()), s.value = !0) : u.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2617
2617
  }
2618
2618
  t.item.hasHalfScore && u.push([0.5]), a.value = u, r.value = !!u.flat().find((O) => `${O}`.length > 3);
@@ -2637,7 +2637,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2637
2637
  }, [
2638
2638
  (i(!0), h(M, null, oe(p, (A) => (i(), h("li", {
2639
2639
  class: "flex items-center justify-center flex-shrink-0 score_line",
2640
- style: K({ width: `${I(Ze)[u.layout.scoreLineSize].value}px` }),
2640
+ style: K({ width: `${I(et)[u.layout.scoreLineSize].value}px` }),
2641
2641
  "data-xine": A.toString() ? I(T).score_item : ""
2642
2642
  }, [
2643
2643
  v("span", {
@@ -2667,7 +2667,7 @@ const ol = /* @__PURE__ */ ye(tl, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2667
2667
  }, [
2668
2668
  _l,
2669
2669
  fl,
2670
- te(lt, {
2670
+ te(nt, {
2671
2671
  item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
2672
2672
  layout: t.layout,
2673
2673
  static: ""
@@ -2869,7 +2869,7 @@ const ln = /* @__PURE__ */ ye(on, [["render", an]]), nn = ["data-block", "data-x
2869
2869
  showScoreCn: { type: Boolean }
2870
2870
  },
2871
2871
  setup(e) {
2872
- const t = e, o = D(() => t.layout.scoreAddStars === ot.star.code);
2872
+ const t = e, o = D(() => t.layout.scoreAddStars === at.star.code);
2873
2873
  return (l, r) => l.layout.handReadFlag ? (i(), h("div", {
2874
2874
  key: 0,
2875
2875
  class: "score_fill flex items-center",
@@ -2931,7 +2931,7 @@ const mn = /* @__PURE__ */ ye(hn, [["render", pn]]), yn = ["data-block"], _n = {
2931
2931
  }, [
2932
2932
  pt(t.$slots, "default"),
2933
2933
  v("div", _n, [
2934
- te(lt, {
2934
+ te(nt, {
2935
2935
  item: t.item,
2936
2936
  layout: t.layout
2937
2937
  }, null, 8, ["item", "layout"])
@@ -2956,7 +2956,7 @@ const vn = /* @__PURE__ */ ye(gn, [["render", bn]]), wn = /* @__PURE__ */ v("div
2956
2956
  setup(e) {
2957
2957
  return (t, o) => (i(), h(M, null, [
2958
2958
  wn,
2959
- te(lt, {
2959
+ te(nt, {
2960
2960
  item: t.item,
2961
2961
  layout: t.layout
2962
2962
  }, null, 8, ["item", "layout"])
@@ -3001,7 +3001,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3001
3001
  return qe(() => {
3002
3002
  if (!t.item.artBlock)
3003
3003
  return;
3004
- tt(() => {
3004
+ ot(() => {
3005
3005
  o.value = Math.floor(r.value.offsetWidth / m.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
3006
3006
  if (!r.value)
3007
3007
  return;
@@ -3027,7 +3027,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3027
3027
  }, [
3028
3028
  pt(p.$slots, "default"),
3029
3029
  v("div", Rn, [
3030
- te(lt, {
3030
+ te(nt, {
3031
3031
  item: p.item,
3032
3032
  layout: p.layout
3033
3033
  }, null, 8, ["item", "layout"])
@@ -3203,28 +3203,28 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3203
3203
  }), b = b.map((f) => {
3204
3204
  var N;
3205
3205
  if (f.type === "polymer") {
3206
- const Y = Math.min(Math.floor(e.width / (Math.max(...f.children.map((Z) => Z.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[((N = f.children[0]) == null ? void 0 : N.polymerId) || ""] || n[f.polymerId] || 0) * 10 + 10)), f.styleInfo[d[e.layout.mode].choice_d] || 10), fe = f.styleInfo[d[e.layout.mode].choice_b] === g.landscape;
3206
+ const Y = Math.min(Math.floor(e.width / (Math.max(...f.children.map((Z) => Z.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[f.polymerId] || n.value[((N = f.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10)), f.styleInfo[d[e.layout.mode].choice_d] || 10), fe = f.styleInfo[d[e.layout.mode].choice_b] === g.landscape;
3207
3207
  if (f.styleInfo[d[e.layout.mode].choice_a] === g.choice_1) {
3208
3208
  const Z = f.styleInfo[d[e.layout.mode].choice_e], ge = fe ? (
3209
3209
  /*col * line || */
3210
3210
  f.styleInfo[d[e.layout.mode].choice_e] || 20
3211
3211
  ) : Y * Z;
3212
- return [...Array(Math.ceil(f.children.length / ge)).keys()].map((se, x) => ({
3212
+ return [...Array(Math.ceil(f.children.length / ge)).keys()].map((ne, x) => ({
3213
3213
  ...f,
3214
3214
  groupIndex: x,
3215
3215
  children: f.children.slice(x * ge, (x + 1) * ge)
3216
3216
  }));
3217
3217
  } else if (f.styleInfo[d[e.layout.mode].choice_a] === g.choice_3) {
3218
3218
  let Z = [], ge = 0;
3219
- return f.children.forEach((se) => {
3220
- se.optList.length !== ge && (Z.push([]), ge = se.optList.length), Z[Z.length - 1].push(se);
3221
- }), Z.map((se, x) => ({ ...f, groupIndex: x, children: se }));
3219
+ return f.children.forEach((ne) => {
3220
+ (ne.optList.length !== ge || !Object.values(je).includes(ne.problemType)) && (Z.push([]), ge = ne.optList.length), Z[Z.length - 1].push(ne);
3221
+ }), Z.map((ne, x) => ({ ...f, groupIndex: x, children: ne }));
3222
3222
  } else if (f.styleInfo[d[e.layout.mode].fill_g] === g.portrait) {
3223
3223
  const Z = Math.floor(f.styleInfo[d[e.layout.mode].fill_f]) * (f.styleInfo[d[e.layout.mode].fill_h] || 10);
3224
- return [...Array(Math.ceil(f.children.length / Z)).keys()].map((ge, se) => ({
3224
+ return [...Array(Math.ceil(f.children.length / Z)).keys()].map((ge, ne) => ({
3225
3225
  ...f,
3226
- groupIndex: se,
3227
- children: f.children.slice(se * Z, (se + 1) * Z).map((x) => ({
3226
+ groupIndex: ne,
3227
+ children: f.children.slice(ne * Z, (ne + 1) * Z).map((x) => ({
3228
3228
  ...x,
3229
3229
  style: {
3230
3230
  ...x.style,
@@ -3280,23 +3280,23 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3280
3280
  };
3281
3281
  break;
3282
3282
  }
3283
- else if (Object.values(rt).includes(b.problemType)) {
3284
- const fe = b.styleInfo[d[e.layout.mode].choice_b] === g.landscape, Z = b.styleInfo[d[e.layout.mode].choice_e] || 20, ge = e.data.style[d[e.layout.mode].choice_d] || 10, se = (n.value[`h${e.data.id}`] || n.value[((Y = e.data.children[0]) == null ? void 0 : Y.polymerId) || ""] || n[b.polymerId] || 0) * 10 + 10, x = Math.max(.../* item.rawChildren || */
3283
+ else if (Object.values(je).includes(b.problemType)) {
3284
+ const fe = b.styleInfo[d[e.layout.mode].choice_b] === g.landscape, Z = b.styleInfo[d[e.layout.mode].choice_e] || 20, ge = e.data.style[d[e.layout.mode].choice_d] || 10, ne = (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[((Y = e.data.children[0]) == null ? void 0 : Y.polymerId) || ""] || 0) * 10 + 10, x = Math.max(.../* item.rawChildren || */
3285
3285
  b.children.map((ie) => {
3286
- var ne;
3287
- return ((ne = ie.optList) == null ? void 0 : ne.length) || 0;
3288
- })) * (Le[e.layout.fillSize].value + 9) + se;
3286
+ var se;
3287
+ return ((se = ie.optList) == null ? void 0 : se.length) || 0;
3288
+ })) * (Le[e.layout.fillSize].value + 9) + ne;
3289
3289
  let S = Math.min(Math.floor(e.width / x), ge), $ = [], ee = [], ue = [];
3290
3290
  const G = (ie = S) => {
3291
- $ = (fe ? [...Array(ie).keys()].map((ne, y) => b.children.filter((C, pe) => pe % ie === y)).filter((ne) => ne.length) : [...Array(Math.ceil(b.children.length / ie)).keys()].map((ne) => b.children.slice(ne * ie, (ne + 1) * ie))).filter((ne) => ne.length).map((ne) => Math.max(...ne.map((y) => {
3291
+ $ = (fe ? [...Array(ie).keys()].map((se, y) => b.children.filter((C, pe) => pe % ie === y)).filter((se) => se.length) : [...Array(Math.ceil(b.children.length / ie)).keys()].map((se) => b.children.slice(se * ie, (se + 1) * ie))).filter((se) => se.length).map((se) => Math.max(...se.map((y) => {
3292
3292
  var C;
3293
3293
  return ((C = y.optList) == null ? void 0 : C.length) || 0;
3294
3294
  })));
3295
3295
  };
3296
3296
  for (G(S), ee = [...$]; N && S < ge; )
3297
- G(S + 1), N = S + 1 <= ge && $.reduce((ie, ne) => ie + ne, 0) * (Le[e.layout.fillSize].value + 9) + (S + 1) * se < e.width, N && (S += 1, ee = [...$]);
3297
+ G(S + 1), N = S + 1 <= ge && $.reduce((ie, se) => ie + se, 0) * (Le[e.layout.fillSize].value + 9) + (S + 1) * ne < e.width, N && (S += 1, ee = [...$]);
3298
3298
  b.children.length % Z;
3299
- const re = [...Array(Math.ceil(b.children.length / Z)).keys()].map((ie) => b.children.filter((ne, y) => y >= ie * Z && y < (ie + 1) * Z)).map((ie, ne) => ie.map((y, C) => ({ ...y, _grid_area_: fe ? null : dt[C] + ne }))), Ce = ee.map((ie) => ie * (Le[e.layout.fillSize].value + 9) + se);
3299
+ const re = [...Array(Math.ceil(b.children.length / Z)).keys()].map((ie) => b.children.filter((se, y) => y >= ie * Z && y < (ie + 1) * Z)).map((ie, se) => ie.map((y, C) => ({ ...y, _grid_area_: fe ? null : dt[C] + se }))), Ce = ee.map((ie) => ie * (Le[e.layout.fillSize].value + 9) + ne);
3300
3300
  switch (b.styleInfo[d[e.layout.mode].choice_f]) {
3301
3301
  case g.choice_6:
3302
3302
  ue = Ce.map((ie) => `${ie}px`);
@@ -3309,8 +3309,8 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3309
3309
  case g.choice_1:
3310
3310
  case g.choice_3:
3311
3311
  fe && !e.noPortrait && re.flat(2).forEach((ie) => {
3312
- const ne = b.children.find((y) => y.id === ie.id);
3313
- ne._grid_area_ = ie._grid_area_;
3312
+ const se = b.children.find((y) => y.id === ie.id);
3313
+ se._grid_area_ = ie._grid_area_;
3314
3314
  }), f = fe ? {
3315
3315
  // 横排竖向按列排
3316
3316
  // 'grid-template': `${colList[0].map((k: Strany, i: number) => `"${[...Array(colList.length).keys()].map(j => colList[j][i] ? ChoiceSub[i] + j : '.').join(' ')}" 1fr`).join('')} / ${colListW.join(' ')}`
@@ -3333,7 +3333,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3333
3333
  "grid-area": b._grid_area_
3334
3334
  };
3335
3335
  if (l.includes(b.problemType) && b.style[d[e.layout.mode].choice_a] === g.choice_2) {
3336
- const Y = Math.max(Le[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[(N = b.children[0]) == null ? void 0 : N.polymerId] || n.value[b.polymerId] || 0) * 10 + 10), fe = Math.floor(e.width / (Y * b.style[d[e.layout.mode].choice_c] + 10)), Z = (e.width - Y * fe * b.style[d[e.layout.mode].choice_c]) / (fe - 1 || 1);
3336
+ const Y = Math.max(Le[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[b.polymerId] || n.value[(N = b.children[0]) == null ? void 0 : N.polymerId] || 0) * 10 + 10), fe = Math.floor(e.width / (Y * b.style[d[e.layout.mode].choice_c] + 10)), Z = (e.width - Y * fe * b.style[d[e.layout.mode].choice_c]) / (fe - 1 || 1);
3337
3337
  if (!((f + 1) % b.style[d[e.layout.mode].choice_c]) && ((f + 1) % (b.style[d[e.layout.mode].choice_c] * fe) || fe < 2))
3338
3338
  return {
3339
3339
  "margin-right": `${Z}px`
@@ -3348,9 +3348,9 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3348
3348
  return N;
3349
3349
  if (l.includes(b.problemType)) {
3350
3350
  let fe = {};
3351
- if (Object.values(rt).includes(e.data.problemType)) {
3351
+ if (Object.values(je).includes(e.data.problemType)) {
3352
3352
  const Z = Math.max(.../*props.data.rawChildren || */
3353
- e.data.children.map((se) => se.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[((Y = e.data.children[0]) == null ? void 0 : Y.polymerId) || ""] || n.value[b.polymerId || ""] || 0) * 10 + 10, ge = Math.min(Math.floor(e.width / Z), e.data.style[d[e.layout.mode].choice_d] || 10);
3353
+ e.data.children.map((ne) => ne.optList.length)) * (Le[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[b.polymerId || ""] || n.value[((Y = e.data.children[0]) == null ? void 0 : Y.polymerId) || ""] || 0) * 10 + 10, ge = Math.min(Math.floor(e.width / Z), e.data.style[d[e.layout.mode].choice_d] || 10);
3354
3354
  fe = f % ge ? { minWidth: `${Z}px`, marginLeft: `${(e.width - Z * ge) / (ge - 1) - 5}px` } : { minWidth: `${Z}px` };
3355
3355
  }
3356
3356
  N = {
@@ -3391,7 +3391,7 @@ const Nn = /* @__PURE__ */ ye(An, [["render", Bn]]), On = ["data-viewid"], zn =
3391
3391
  e.data.isPolymer || (b.stopPropagation(), t("click", f));
3392
3392
  },
3393
3393
  handleGroupClick: (b, f) => {
3394
- ![_.mix].includes(f.__rootProblemType__) || e.layout.polymerFlag || (b.stopPropagation(), t("click", f));
3394
+ ![_.mix, _.synthesis].includes(f.__rootProblemType__) || e.layout.polymerFlag || (b.stopPropagation(), t("click", f));
3395
3395
  },
3396
3396
  handleDblClick: (b, f) => {
3397
3397
  e.data.isPolymer || (b.stopPropagation(), t("dbclick", f));
@@ -3793,8 +3793,8 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
3793
3793
  }, _s = (e) => {
3794
3794
  let t = {};
3795
3795
  const o = (s = e, a = !1) => (t[s.id] = {
3796
- _rootProblemType: nt[e._rootProblemType],
3797
- _parentProblemType: nt[e._parentProblemType]
3796
+ _rootProblemType: st[e._rootProblemType],
3797
+ _parentProblemType: st[e._parentProblemType]
3798
3798
  }, {
3799
3799
  // 块位置
3800
3800
  sectionPosition: de(s.position, !0),
@@ -3805,7 +3805,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
3805
3805
  // 需要保存文件,固定值
3806
3806
  needSavedFile: !!a || [_.mix].includes(e.problemType),
3807
3807
  // 题型
3808
- cuttingSectionQuestionType: nt[s.problemType || e.problemType]
3808
+ cuttingSectionQuestionType: st[s.problemType || e.problemType]
3809
3809
  });
3810
3810
  let l = {};
3811
3811
  switch (e.problemType) {
@@ -4133,7 +4133,7 @@ const Ue = /* @__PURE__ */ ye(Zn, [["render", ls]]), ns = (e, t, o) => {
4133
4133
  ]));
4134
4134
  }
4135
4135
  });
4136
- const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e) => e == null ? void 0 : e.getBoundingClientRect(), st = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ut = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![De, ft].includes(t.dataset.block || "")), et = (e) => e.previousElementSibling ? [De, ft].includes(e.previousElementSibling.dataset.block || "") ? et(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? et(e.parentElement) : document.body, Ls = (e) => {
4136
+ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e) => e == null ? void 0 : e.getBoundingClientRect(), it = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ut = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![De, ft].includes(t.dataset.block || "")), tt = (e) => e.previousElementSibling ? [De, ft].includes(e.previousElementSibling.dataset.block || "") ? tt(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? tt(e.parentElement) : document.body, Ls = (e) => {
4137
4137
  const t = e.parentElement, o = document.createElement("span");
4138
4138
  return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ft, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
4139
4139
  }, Fs = (e, t, o, l) => {
@@ -4157,7 +4157,7 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4157
4157
  }, ht = (e, t, o) => {
4158
4158
  const l = ut("", e.parentElement), r = l.findIndex((a) => a === e);
4159
4159
  let s = l.filter((a, c) => _e(a).top + a.offsetHeight - 1 < _e(e).top || c < r && _e(a).top < _e(e).top).reverse()[0];
4160
- return s || (s = et(e), _e(s).top + s.offsetHeight - t > o && (s = ht(s, t, o))), s;
4160
+ return s || (s = tt(e), _e(s).top + s.offsetHeight - t > o && (s = ht(s, t, o))), s;
4161
4161
  }, Lt = (e, t, o, l) => {
4162
4162
  const r = (a, c = o) => {
4163
4163
  var X, L, H;
@@ -4187,7 +4187,7 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4187
4187
  return ht(u, t, p);
4188
4188
  const E = Fs(u, c - p, c, l);
4189
4189
  if (E)
4190
- return et(E);
4190
+ return tt(E);
4191
4191
  if (u.children.length) {
4192
4192
  const q = ut(u);
4193
4193
  return r(q, c);
@@ -4235,7 +4235,7 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4235
4235
  return;
4236
4236
  }
4237
4237
  p[p.length - 1].data.push({ ...w }), a([...p]), window.requestAnimationFrame(() => {
4238
- const E = st(w.__tag__, t), q = !w.isHidden && _e(E);
4238
+ const E = it(w.__tag__, t), q = !w.isHidden && _e(E);
4239
4239
  let B = null;
4240
4240
  if (u) {
4241
4241
  const W = E.querySelector(`*[data-hutkey="${u}"]`), le = _e(W);
@@ -4257,16 +4257,16 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4257
4257
  let W = [], le = [], b = !1;
4258
4258
  if (w.children.some((f, N) => {
4259
4259
  var Z, ge;
4260
- const Y = st(f.__tag__, t), fe = _e(Y);
4260
+ const Y = it(f.__tag__, t), fe = _e(Y);
4261
4261
  if (n) {
4262
- const se = Y.querySelector(`*[data-cutkey="${n}"]`), x = _e(se);
4262
+ const ne = Y.querySelector(`*[data-cutkey="${n}"]`), x = _e(ne);
4263
4263
  p[p.length - 1].top = m.top - x.top, p[p.length - 1].height = m.height - p[p.length - 1].top, n = 0;
4264
4264
  }
4265
4265
  if (fe.height + fe.top - m.top > p[p.length - 1].height) {
4266
4266
  if ((Z = Y.parentElement) != null && Z.dataset.polymer)
4267
- parseInt((ge = Y.parentElement) == null ? void 0 : ge.dataset.polymer) ? (W = W.filter((se) => {
4267
+ parseInt((ge = Y.parentElement) == null ? void 0 : ge.dataset.polymer) ? (W = W.filter((ne) => {
4268
4268
  var x;
4269
- return st(se.__tag__, t).dataset.polymer !== ((x = Y.parentElement) == null ? void 0 : x.dataset.polymer);
4269
+ return it(ne.__tag__, t).dataset.polymer !== ((x = Y.parentElement) == null ? void 0 : x.dataset.polymer);
4270
4270
  }), le = w.children.slice(W.length)) : (p[p.length - 1].data.pop(), W = [], b = !0, A(), H({ ...w }));
4271
4271
  else if (L(Y))
4272
4272
  W.push(f), le = N < w.children.length - 1 ? w.children.slice(N + 1) : [];
@@ -4274,11 +4274,11 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4274
4274
  le = w.children.slice(N);
4275
4275
  else {
4276
4276
  B = Lt(Y, m.top, p[p.length - 1].height, p.length % (l + r) >= l);
4277
- const se = Y.querySelector(`*[data-content="${f.id}"]`);
4277
+ const ne = Y.querySelector(`*[data-content="${f.id}"]`);
4278
4278
  if (Y === B.targetEl)
4279
4279
  W.push(f), le = N < w.children.length - 1 ? w.children.slice(N + 1) : [];
4280
- else if (se && se.contains(B.cut))
4281
- n = Date.now(), B.cut.dataset.cutkey = n, f.content = se.innerHTML, W.push(f), le = [{ ...f, content: se.innerHTML }, ...N < w.children.length - 1 ? w.children.slice(N + 1) : []], p[p.length - 1].height = _e(B.cut).top - m.top;
4280
+ else if (ne && ne.contains(B.cut))
4281
+ n = Date.now(), B.cut.dataset.cutkey = n, f.content = ne.innerHTML, W.push(f), le = [{ ...f, content: ne.innerHTML }, ...N < w.children.length - 1 ? w.children.slice(N + 1) : []], p[p.length - 1].height = _e(B.cut).top - m.top;
4282
4282
  else {
4283
4283
  if (!le.length) {
4284
4284
  let x = { ...f };
@@ -4303,8 +4303,8 @@ const Is = /* @__PURE__ */ ye(Ts, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4303
4303
  const re = Y.querySelector(`*[data-guide="${f.id}"]`), Ce = _e(re);
4304
4304
  if (Ce.height + Ce.top - m.top > m.height) {
4305
4305
  re.innerHTML = f.beforeGuide.split("").map((y) => `<span>${y}</span>`).join("");
4306
- const ie = _e(ee).top + ee.offsetHeight, ne = [...Array.from(re.children)].findIndex((y) => _e(y).top > ie);
4307
- x.beforeGuide = f.beforeGuide.substring(0, ne), f.beforeGuide = f.beforeGuide.substring(ne);
4306
+ const ie = _e(ee).top + ee.offsetHeight, se = [...Array.from(re.children)].findIndex((y) => _e(y).top > ie);
4307
+ x.beforeGuide = f.beforeGuide.substring(0, se), f.beforeGuide = f.beforeGuide.substring(se);
4308
4308
  } else
4309
4309
  f.beforeGuide = "";
4310
4310
  } else
@@ -4357,7 +4357,7 @@ const Ms = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4357
4357
  r.value && (r.value.destroy(), r.value = null);
4358
4358
  return;
4359
4359
  }
4360
- tt(() => {
4360
+ ot(() => {
4361
4361
  r.value = Ps("inline", l), r.value && r.value.on("instanceReady", (n) => {
4362
4362
  r.value.setData(o.value);
4363
4363
  });
@@ -4423,7 +4423,7 @@ const Ns = {
4423
4423
  document.body.removeEventListener("click", Ke);
4424
4424
  }
4425
4425
  };
4426
- let it = null;
4426
+ let rt = null;
4427
4427
  const Os = {
4428
4428
  mounted: (e, t) => {
4429
4429
  let o = {}, l = !1, r = !1, s = e.offsetParent, a = {}, c = {};
@@ -4434,16 +4434,16 @@ const Os = {
4434
4434
  o = { x: n.clientX, y: n.clientY }, a = { x: parseInt(u.left), y: parseInt(u.top) };
4435
4435
  }), document.addEventListener("mouseup", (n) => {
4436
4436
  l = !1;
4437
- }), it = (n) => {
4437
+ }), rt = (n) => {
4438
4438
  if (!l || e.getAttribute("disabled") === "true")
4439
4439
  return;
4440
4440
  n.stopPropagation(), n.preventDefault(), c = { x: n.clientX, y: n.clientY };
4441
4441
  const u = r ? Math.min(Math.max(c.x - o.x + a.x, 0), s.offsetWidth - e.offsetWidth) : c.x - o.x + a.x, O = r ? Math.min(Math.max(c.y - o.y + a.y, 0), s.offsetHeight - e.offsetHeight) : c.y - o.y + a.y;
4442
4442
  e.style.left = `${u}px`, e.style.top = `${O}px`, t.value && typeof t.value == "function" && t.value({ x: u, y: O });
4443
- }, document.addEventListener("mousemove", it);
4443
+ }, document.addEventListener("mousemove", rt);
4444
4444
  },
4445
4445
  unmounted: () => {
4446
- document.removeEventListener("mousemove", it);
4446
+ document.removeEventListener("mousemove", rt);
4447
4447
  }
4448
4448
  }, zs = ["onMousedown", "data-block"], Rs = ["src"], Hs = { 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" }, Gs = ["onMousedown"], Qs = ["onMousedown"], qs = ["disabled", "onMousedown", "data-block"], Ys = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Us = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ks = ["onMousedown"], js = /* @__PURE__ */ ae({
4449
4449
  __name: "absItem",
@@ -4658,14 +4658,14 @@ const Os = {
4658
4658
  return;
4659
4659
  }
4660
4660
  t("changeAbsTxtItem", { ...E.value, content: x });
4661
- }, se = (x, S) => {
4661
+ }, ne = (x, S) => {
4662
4662
  var ee;
4663
4663
  const $ = document.body.querySelector(`.cke_editor_${gt}`);
4664
4664
  !x && ((ee = (S == null ? void 0 : S.target).dataset) != null && ee.safe || [...X.value, ...L.value].find((ue) => ue.contains(S == null ? void 0 : S.target)) || $ && window.getComputedStyle($).display !== "none") || (A.value = x == null ? void 0 : x.key, c.value = x ? { ...x } : null);
4665
4665
  };
4666
4666
  return (x, S) => (i(), h(M, null, [
4667
4667
  (i(!0), h(M, null, oe(H.value, ($) => {
4668
- var ee, ue, G, re, Ce, ie, ne;
4668
+ var ee, ue, G, re, Ce, ie, se;
4669
4669
  return xt((i(), h("div", {
4670
4670
  key: $.id,
4671
4671
  ref_for: !0,
@@ -4674,13 +4674,13 @@ const Os = {
4674
4674
  "data-safe": "true",
4675
4675
  class: J(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8" : "z-7"]),
4676
4676
  style: K({ left: Math.max(((ue = q.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = q.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((re = q.value[$.key]) == null ? void 0 : re.width) || $.width) + "px", height: (((Ce = q.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px", transform: `rotate(${((ie = q.value[$.key]) == null ? void 0 : ie.rotate) || $.rotate}deg)` }),
4677
- onMousedown: Me((y) => se($), ["stop"]),
4677
+ onMousedown: Me((y) => ne($), ["stop"]),
4678
4678
  "data-block": I(De)
4679
4679
  }, [
4680
4680
  v("img", {
4681
4681
  src: $.url
4682
4682
  }, null, 8, Rs),
4683
- ((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(M, { key: 0 }, [
4683
+ ((se = E.value) == null ? void 0 : se.key) === $.key ? (i(), h(M, { key: 0 }, [
4684
4684
  v("span", Hs, [
4685
4685
  te(ve, {
4686
4686
  name: "close",
@@ -4709,11 +4709,11 @@ const Os = {
4709
4709
  ], 64)) : P("", !0)
4710
4710
  ], 46, zs)), [
4711
4711
  [I(r), B],
4712
- [I(l), (y) => se(null, y)]
4712
+ [I(l), (y) => ne(null, y)]
4713
4713
  ]);
4714
4714
  }), 128)),
4715
4715
  (i(!0), h(M, null, oe(w.value, ($) => {
4716
- var ee, ue, G, re, Ce, ie, ne;
4716
+ var ee, ue, G, re, Ce, ie, se;
4717
4717
  return xt((i(), h("div", {
4718
4718
  key: $.id,
4719
4719
  ref_for: !0,
@@ -4723,7 +4723,7 @@ const Os = {
4723
4723
  "data-safe": "true",
4724
4724
  class: J(["absolute", ((ee = E.value) == null ? void 0 : ee.key) === $.key ? "z-8 bg-white" : "z-7"]),
4725
4725
  style: K({ left: Math.max(((ue = q.value[$.key]) == null ? void 0 : ue.left) || $.left, 0) + "px", top: Math.max(((G = q.value[$.key]) == null ? void 0 : G.top) || $.top, 0) + "px", width: (((re = q.value[$.key]) == null ? void 0 : re.width) || $.width) + "px", height: (((Ce = q.value[$.key]) == null ? void 0 : Ce.height) || $.height) + "px" }),
4726
- onMousedown: Me((y) => se($), ["stop"]),
4726
+ onMousedown: Me((y) => ne($), ["stop"]),
4727
4727
  "data-block": I(De)
4728
4728
  }, [
4729
4729
  (i(), j(Bs, {
@@ -4736,7 +4736,7 @@ const Os = {
4736
4736
  onFocus: S[0] || (S[0] = (y) => W(!0)),
4737
4737
  onBlur: S[1] || (S[1] = (y) => W(!1))
4738
4738
  }, null, 8, ["readonly", "value", "name"])),
4739
- ((ne = E.value) == null ? void 0 : ne.key) === $.key ? (i(), h(M, { key: 0 }, [
4739
+ ((se = E.value) == null ? void 0 : se.key) === $.key ? (i(), h(M, { key: 0 }, [
4740
4740
  v("span", Ys, [
4741
4741
  te(ve, {
4742
4742
  name: "close",
@@ -4756,7 +4756,7 @@ const Os = {
4756
4756
  ], 64)) : P("", !0)
4757
4757
  ], 46, qs)), [
4758
4758
  [I(r), B],
4759
- [I(l), (y) => se(null, y)]
4759
+ [I(l), (y) => ne(null, y)]
4760
4760
  ]);
4761
4761
  }), 128))
4762
4762
  ], 64));
@@ -4834,14 +4834,14 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
4834
4834
  }
4835
4835
  }
4836
4836
  return C;
4837
- }, se = (y) => y % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, x = (y, C) => Math.floor(C / 2) * (o.layout.column + o.layout.backColumn) + C % 2 * o.layout.column + y, S = (y) => {
4837
+ }, ne = (y) => y % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, x = (y, C) => Math.floor(C / 2) * (o.layout.column + o.layout.backColumn) + C % 2 * o.layout.column + y, S = (y) => {
4838
4838
  const C = y % (o.layout.column + o.layout.backColumn);
4839
4839
  return C >= o.layout.column ? C - o.layout.column : C;
4840
4840
  }, $ = (y, C) => {
4841
4841
  y ? n.value[C] = y : n.value.splice(C, 1);
4842
4842
  }, ee = (y, C) => {
4843
4843
  y ? u.value[C] = y : u.value.splice(C, 1);
4844
- }, ue = (y) => Pt[o.layout.mode][o.layout.paper][se(y)] || 0, G = (y, C = !1) => (le.value - (c.value ? c.value + ue(y) : 0) + ue(y)) / se(y) - ue(y) - B.value.left - B.value.right + (C ? B.value.left + B.value.right : 0), re = (y, C) => {
4844
+ }, ue = (y) => Pt[o.layout.mode][o.layout.paper][ne(y)] || 0, G = (y, C = !1) => (le.value - (c.value ? c.value + ue(y) : 0) + ue(y)) / ne(y) - ue(y) - B.value.left - B.value.right + (C ? B.value.left + B.value.right : 0), re = (y, C) => {
4845
4845
  var U, ce;
4846
4846
  const pe = y % (o.layout.column + o.layout.backColumn) ? 0 : ((U = O.value[Math.min(C, 1)]) == null ? void 0 : U.offsetHeight) || 0;
4847
4847
  return {
@@ -4852,7 +4852,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
4852
4852
  contentHeight: `${(ce = l.value[y]) == null ? void 0 : ce.height}px`
4853
4853
  };
4854
4854
  }, Ce = (y, C = !1) => {
4855
- r.value = y.map((pe) => ({ ...pe })), C && (l.value = [...y], a.value += 1, tt(() => {
4855
+ r.value = y.map((pe) => ({ ...pe })), C && (l.value = [...y], a.value += 1, ot(() => {
4856
4856
  s.value = Math.ceil(l.value.length / o.layout.column), r.value = [], u.value.forEach((pe, U) => {
4857
4857
  var ce, $e;
4858
4858
  !pe || !pe.col || ((ce = l.value[U]) != null && ce.top ? pe.col.style.marginTop = `${($e = l.value[U]) == null ? void 0 : $e.top}px` : pe.col.style.marginTop = "");
@@ -4882,7 +4882,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
4882
4882
  getColSize: re,
4883
4883
  change: Ce
4884
4884
  });
4885
- }, ne = (y = { type: z.page, value: {} }) => {
4885
+ }, se = (y = { type: z.page, value: {} }) => {
4886
4886
  t("toggleActive", y);
4887
4887
  };
4888
4888
  return (y, C) => {
@@ -4901,7 +4901,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
4901
4901
  v("div", {
4902
4902
  class: "flex-1 overflow-auto relative z-1",
4903
4903
  id: "alit-layout",
4904
- onClick: C[14] || (C[14] = (U) => ne())
4904
+ onClick: C[14] || (C[14] = (U) => se())
4905
4905
  }, [
4906
4906
  v("div", {
4907
4907
  class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
@@ -5053,13 +5053,13 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
5053
5053
  isFirst: !ce && !Pe && !Wt,
5054
5054
  layout: y.layout,
5055
5055
  isActive: ((bt = y.target.value) == null ? void 0 : bt.id) === we.id,
5056
- onClick: (Te) => ne({ type: we.problemType ? I(z).headline : I(z).headlineNotarea, value: we }),
5056
+ onClick: (Te) => se({ type: we.problemType ? I(z).headline : I(z).headlineNotarea, value: we }),
5057
5057
  onDbclick: (Te) => t("dbHeadLineClick", we)
5058
5058
  }, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
5059
5059
  q.value ? (i(), h("div", {
5060
5060
  key: 1,
5061
5061
  class: J([!we.children.length && we.problemType && "p-1 min-h-[2rem]", y.target.type === I(z).headline && y.target.value.id === we.id && "active_headline"]),
5062
- onClick: Me((Te) => ne({ type: we.problemType ? I(z).headline : I(z).headlineNotarea, value: we }), ["stop"]),
5062
+ onClick: Me((Te) => se({ type: we.problemType ? I(z).headline : I(z).headlineNotarea, value: we }), ["stop"]),
5063
5063
  onDblclick: (Te) => t("dbHeadLineClick", we)
5064
5064
  }, [
5065
5065
  te(Ue, {
@@ -5067,7 +5067,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
5067
5067
  layout: y.layout,
5068
5068
  target: y.target,
5069
5069
  width: G(x(Pe, ce)),
5070
- onClick: C[10] || (C[10] = (Te) => ne({ type: Te.problemType ? I(z).problem : I(z).problemNotarea, value: Te })),
5070
+ onClick: C[10] || (C[10] = (Te) => se({ type: Te.problemType ? I(z).problem : I(z).problemNotarea, value: Te })),
5071
5071
  onDbclick: C[11] || (C[11] = (Te) => t("dbProblemClick", Te))
5072
5072
  }, null, 8, ["data", "layout", "target", "width"]),
5073
5073
  we.children.length && we.children[we.children.length - 1].id === A.value ? (i(), h("div", {
@@ -5081,7 +5081,7 @@ const Vs = /* @__PURE__ */ ye(js, [["__scopeId", "data-v-410db2aa"]]), Xs = ["vi
5081
5081
  layout: y.layout,
5082
5082
  target: y.target,
5083
5083
  width: G(x(Pe, ce)),
5084
- onClick: C[12] || (C[12] = (Te) => ne({ type: Te.problemType ? I(z).problem : I(z).problemNotarea, value: Te })),
5084
+ onClick: C[12] || (C[12] = (Te) => se({ type: Te.problemType ? I(z).problem : I(z).problemNotarea, value: Te })),
5085
5085
  onDbclick: C[13] || (C[13] = (Te) => t("dbProblemClick", Te))
5086
5086
  }, null, 8, ["data", "layout", "target", "width"]))
5087
5087
  ], 64);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alit-layout",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "devDependencies": {