alit-layout 1.1.10 → 1.1.11

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 +58 -58
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as M, renderList as oe, createElementVNode as v, normalizeStyle as j, unref as I, toDisplayString as X, createCommentVNode as P, ref as Q, watch as Ne, normalizeClass as Z, computed as A, createBlock as V, createTextVNode as Je, createVNode as te, pushScopeId as Ge, popScopeId as Qe, renderSlot as mt, onMounted as qe, nextTick as ot, withModifiers as Me, resolveComponent as Qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as qt, withDirectives as Ct, provide as Yt } from "vue";
1
+ import { defineComponent as ae, openBlock as i, createElementBlock as h, Fragment as M, renderList as oe, createElementVNode as v, normalizeStyle as j, unref as I, toDisplayString as X, createCommentVNode as P, ref as Q, watch as Ne, normalizeClass as Z, computed as A, createBlock as V, createTextVNode as Ze, createVNode as te, pushScopeId as Ge, popScopeId as Qe, renderSlot as mt, onMounted as qe, nextTick as at, withModifiers as Me, resolveComponent as Qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as qt, withDirectives as Ct, provide as Yt } from "vue";
2
2
  const je = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -555,12 +555,12 @@ const je = {
555
555
  ], ao = [
556
556
  { name: "条码", code: xe.none },
557
557
  { name: "短学号", code: xe.shortId }
558
- ], ct = {
558
+ ], dt = {
559
559
  wide: "text",
560
560
  local: "topic"
561
561
  }, lo = [
562
- { name: "整卷", code: ct.wide },
563
- { name: "大题", code: ct.local }
562
+ { name: "整卷", code: dt.wide },
563
+ { name: "大题", code: dt.local }
564
564
  ], Ve = {
565
565
  system: "system",
566
566
  second: "level_2",
@@ -586,20 +586,20 @@ const je = {
586
586
  { name: "自动", code: Xe.auto },
587
587
  { name: "开", code: Xe.on },
588
588
  { name: "关", code: Xe.off }
589
- ], Ze = {
589
+ ], et = {
590
590
  step: "step",
591
591
  custom: "custom"
592
592
  }, ro = [
593
- { name: "分段", code: Ze.step },
594
- { name: "自编", code: Ze.custom }
595
- ], dt = {
593
+ { name: "分段", code: et.step },
594
+ { name: "自编", code: et.custom }
595
+ ], Je = {
596
596
  custom: "less",
597
597
  average: "ans",
598
- customOpt: "opt"
598
+ averagefill: "opt"
599
599
  }, co = [
600
- { name: "按答案个数均分", code: dt.average },
601
- { name: "手动设置", code: dt.custom }
602
- // { name: '按答案选项单个设置', code: lessScoreRule.customOpt }
600
+ { name: "按答案个数均分", code: Je.average },
601
+ { name: "手动设置", code: Je.custom },
602
+ { name: "按答案个数均分(错选不扣分)", code: Je.averagefill }
603
603
  ], g = {
604
604
  choice_1: "choice-1",
605
605
  choice_2: "choice-2",
@@ -1664,7 +1664,7 @@ const je = {
1664
1664
  value: 24,
1665
1665
  height: 16
1666
1666
  }
1667
- }, et = {
1667
+ }, tt = {
1668
1668
  stand: {
1669
1669
  name: "标准",
1670
1670
  code: "stand",
@@ -1675,7 +1675,7 @@ const je = {
1675
1675
  code: "large",
1676
1676
  value: 33
1677
1677
  }
1678
- }, at = {
1678
+ }, lt = {
1679
1679
  none: {
1680
1680
  name: "无",
1681
1681
  code: "none",
@@ -1729,7 +1729,7 @@ const je = {
1729
1729
  halfScoreType: Xe,
1730
1730
  halfScoreTypeOption: io,
1731
1731
  layoutMode: eo,
1732
- lessScoreRule: dt,
1732
+ lessScoreRule: Je,
1733
1733
  lessScoreRuleOption: co,
1734
1734
  otherLayout: po,
1735
1735
  otherLayoutKey: At,
@@ -1743,9 +1743,9 @@ const je = {
1743
1743
  problemLayout: ho,
1744
1744
  problemLayoutKey: d,
1745
1745
  problemLayoutVal: g,
1746
- scoreLineSize: et,
1747
- scoreLineStyle: at,
1748
- scoreLineType: Ze,
1746
+ scoreLineSize: tt,
1747
+ scoreLineStyle: lt,
1748
+ scoreLineType: et,
1749
1749
  scoreLineTypeOption: ro,
1750
1750
  seatBarOption: oo,
1751
1751
  seatType: xe,
@@ -1754,7 +1754,7 @@ const je = {
1754
1754
  sheetColumnPad: Ie,
1755
1755
  sheetItemColumnPad: Vt,
1756
1756
  subIndentOption: so,
1757
- subRange: ct,
1757
+ subRange: dt,
1758
1758
  subRangeOption: lo,
1759
1759
  subRule: Ve,
1760
1760
  subRuleOption: no,
@@ -1813,7 +1813,7 @@ const je = {
1813
1813
  write_view: `__${be}write`,
1814
1814
  // 密封线
1815
1815
  bind_line: `__${be}bindline`
1816
- }, st = {
1816
+ }, it = {
1817
1817
  [p.choice]: "TYPE_SINGLECHOICE",
1818
1818
  // 单项选择
1819
1819
  [p.choice_english]: "TYPE_SINGLECHOICE",
@@ -1932,7 +1932,7 @@ const ye = (e, t) => {
1932
1932
  }, $o = /* @__PURE__ */ ye(So, [["__scopeId", "data-v-dc735a34"]]), To = { class: "flex-1" }, Io = ["type", "placeholder", "maxlength", "value"], Lo = {
1933
1933
  key: 0,
1934
1934
  class: "flex-shrink-0 ml-2 text-text3"
1935
- }, lt = /* @__PURE__ */ ae({
1935
+ }, nt = /* @__PURE__ */ ae({
1936
1936
  __name: "index",
1937
1937
  props: {
1938
1938
  value: { default: "" },
@@ -1993,7 +1993,7 @@ const ye = (e, t) => {
1993
1993
  right: `${l.value.right + 97}px`,
1994
1994
  bottom: `${l.value.bottom - 25}px`
1995
1995
  }));
1996
- return (s, a) => (i(), V(lt, {
1996
+ return (s, a) => (i(), V(nt, {
1997
1997
  class: "absolute w-72 text-sm",
1998
1998
  value: s.info.slogan,
1999
1999
  maxLength: 12,
@@ -2040,13 +2040,13 @@ const ve = /* @__PURE__ */ ye(Mo, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2040
2040
  setup(e) {
2041
2041
  return (t, o) => (i(), h("div", Do, [
2042
2042
  t.layout.secrecyFlag ? (i(), h("p", Ao, [
2043
- Je("绝密"),
2043
+ Ze("绝密"),
2044
2044
  te(ve, {
2045
2045
  name: "fiveArrow",
2046
2046
  width: 1.4,
2047
2047
  class: "px-0 py-0"
2048
2048
  }),
2049
- Je("启用前")
2049
+ Ze("启用前")
2050
2050
  ])) : P("", !0),
2051
2051
  v("p", Bo, "ID:" + X(t.code), 1)
2052
2052
  ]));
@@ -2094,7 +2094,7 @@ const ve = /* @__PURE__ */ ye(Mo, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2094
2094
  },
2095
2095
  emits: ["change"],
2096
2096
  setup(e, { emit: t }) {
2097
- const o = e, l = A(() => 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 = A(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), s = A(() => o.layout.scoreAddStars === at.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2097
+ const o = e, l = A(() => 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 = A(() => o.data.filter((a) => [ke.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, c) => a + c, 0)), s = A(() => o.layout.scoreAddStars === lt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2098
2098
  return (a, c) => (i(), h("div", zo, [
2099
2099
  v("img", {
2100
2100
  src: a.info.qrCode,
@@ -2127,7 +2127,7 @@ const ve = /* @__PURE__ */ ye(Mo, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2127
2127
  ])) : P("", !0),
2128
2128
  a.layout.examTimeFlag ? (i(), h("p", qo, [
2129
2129
  Yo,
2130
- te(lt, {
2130
+ te(nt, {
2131
2131
  value: a.info.time,
2132
2132
  class: "text-center",
2133
2133
  type: "number",
@@ -2211,7 +2211,7 @@ const ve = /* @__PURE__ */ ye(Mo, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2211
2211
  key: s,
2212
2212
  class: Z(["flex flex-1 min-w-[12rem]", l.isRow && a && "ml-2"])
2213
2213
  }, [
2214
- te(lt, {
2214
+ te(nt, {
2215
2215
  value: l.extent[s],
2216
2216
  class: "px-0",
2217
2217
  placeholder: "",
@@ -2234,7 +2234,7 @@ const ve = /* @__PURE__ */ ye(Mo, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2234
2234
  class: "pt-1",
2235
2235
  name: "fiveArrow"
2236
2236
  }),
2237
- Je("座位号")
2237
+ Ze("座位号")
2238
2238
  ]),
2239
2239
  v("div", {
2240
2240
  class: "flex-1 flex flex-col",
@@ -2267,7 +2267,7 @@ const pa = /* @__PURE__ */ ye(ha, [["__scopeId", "data-v-91b25fab"]]), ma = ["da
2267
2267
  class: "px-1 pt-1",
2268
2268
  name: "fiveArrow"
2269
2269
  }),
2270
- Je("短学号")
2270
+ Ze("短学号")
2271
2271
  ]),
2272
2272
  v("div", {
2273
2273
  class: "flex-1 flex flex-col",
@@ -2304,7 +2304,7 @@ const Nt = /* @__PURE__ */ ye(ba, [["__scopeId", "data-v-96e8d41d"]]), va = /* @
2304
2304
  key: s,
2305
2305
  class: Z(["flex flex-1", l.isRow && a && "ml-2"])
2306
2306
  }, [
2307
- te(lt, {
2307
+ te(nt, {
2308
2308
  value: l.extent[s],
2309
2309
  class: "px-0",
2310
2310
  placeholder: "",
@@ -2595,7 +2595,7 @@ const ll = /* @__PURE__ */ ye(al, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2595
2595
  }, [
2596
2596
  (i(!0), h(M, null, oe(l.value, (a, c) => (i(), h("li", {
2597
2597
  class: "flex items-center justify-center relative score_line",
2598
- style: j({ width: `${I(et)[r.layout.scoreLineSize].value}px` }),
2598
+ style: j({ width: `${I(tt)[r.layout.scoreLineSize].value}px` }),
2599
2599
  "data-xine": I(T).score_item
2600
2600
  }, [
2601
2601
  v("span", hl, X(a), 1),
@@ -2607,7 +2607,7 @@ const ll = /* @__PURE__ */ ye(al, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2607
2607
  ], 8, dl)
2608
2608
  ], 8, cl));
2609
2609
  }
2610
- }), ml = ["data-block", "data-xine"], yl = ["data-xine"], _l = ["data-xine"], nt = /* @__PURE__ */ ae({
2610
+ }), ml = ["data-block", "data-xine"], yl = ["data-xine"], _l = ["data-xine"], st = /* @__PURE__ */ ae({
2611
2611
  __name: "index",
2612
2612
  props: {
2613
2613
  item: {},
@@ -2615,19 +2615,19 @@ const ll = /* @__PURE__ */ ye(al, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2615
2615
  static: { type: Boolean }
2616
2616
  },
2617
2617
  setup(e) {
2618
- const t = e, o = Q(), l = Q(!1), r = Q(!1), s = Q(!1), a = Q([]), c = A(() => t.layout.scoreAddStars === at.star.code);
2618
+ const t = e, o = Q(), l = Q(!1), r = Q(!1), s = Q(!1), a = Q([]), c = A(() => t.layout.scoreAddStars === lt.star.code);
2619
2619
  Ne(() => [t.item.score], () => y()), qe(() => {
2620
2620
  y();
2621
2621
  });
2622
2622
  const y = () => {
2623
- !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || ot(() => {
2623
+ !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || at(() => {
2624
2624
  let u = [];
2625
- if (t.item.scoreLineType === Ze.custom)
2625
+ if (t.item.scoreLineType === et.custom)
2626
2626
  u = [[...t.item.customScore, 0]];
2627
2627
  else if (t.item.scoreStep)
2628
2628
  u.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((z) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * z)).reverse());
2629
2629
  else {
2630
- const z = o.value.offsetWidth, m = et[t.layout.scoreLineSize].value + 1;
2630
+ const z = o.value.offsetWidth, m = tt[t.layout.scoreLineSize].value + 1;
2631
2631
  l.value = z - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * m && 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());
2632
2632
  }
2633
2633
  t.item.hasHalfScore && u.push([0.5]), a.value = u, r.value = !!u.flat().find((z) => `${z}`.length > 3);
@@ -2652,7 +2652,7 @@ const ll = /* @__PURE__ */ ye(al, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2652
2652
  }, [
2653
2653
  (i(!0), h(M, null, oe(m, (B) => (i(), h("li", {
2654
2654
  class: "flex items-center justify-center flex-shrink-0 score_line",
2655
- style: j({ width: `${I(et)[u.layout.scoreLineSize].value}px` }),
2655
+ style: j({ width: `${I(tt)[u.layout.scoreLineSize].value}px` }),
2656
2656
  "data-xine": B.toString() ? I(T).score_item : ""
2657
2657
  }, [
2658
2658
  v("span", {
@@ -2682,7 +2682,7 @@ const ll = /* @__PURE__ */ ye(al, [["__scopeId", "data-v-531dbd62"]]), Se = "MC5
2682
2682
  }, [
2683
2683
  gl,
2684
2684
  bl,
2685
- te(nt, {
2685
+ te(st, {
2686
2686
  item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
2687
2687
  layout: t.layout,
2688
2688
  static: ""
@@ -2884,7 +2884,7 @@ const sn = /* @__PURE__ */ ye(ln, [["render", nn]]), rn = ["data-block", "data-x
2884
2884
  showScoreCn: { type: Boolean }
2885
2885
  },
2886
2886
  setup(e) {
2887
- const t = e, o = A(() => t.layout.scoreAddStars === at.star.code);
2887
+ const t = e, o = A(() => t.layout.scoreAddStars === lt.star.code);
2888
2888
  return (l, r) => l.layout.handReadFlag ? (i(), h("div", {
2889
2889
  key: 0,
2890
2890
  class: "score_fill flex items-center",
@@ -2946,7 +2946,7 @@ const _n = /* @__PURE__ */ ye(mn, [["render", yn]]), fn = ["data-block"], gn = {
2946
2946
  }, [
2947
2947
  mt(t.$slots, "default"),
2948
2948
  v("div", gn, [
2949
- te(nt, {
2949
+ te(st, {
2950
2950
  item: t.item,
2951
2951
  layout: t.layout
2952
2952
  }, null, 8, ["item", "layout"])
@@ -2971,7 +2971,7 @@ const kn = /* @__PURE__ */ ye(vn, [["render", wn]]), xn = /* @__PURE__ */ v("div
2971
2971
  setup(e) {
2972
2972
  return (t, o) => (i(), h(M, null, [
2973
2973
  xn,
2974
- te(nt, {
2974
+ te(st, {
2975
2975
  item: t.item,
2976
2976
  layout: t.layout
2977
2977
  }, null, 8, ["item", "layout"])
@@ -3016,7 +3016,7 @@ const zn = /* @__PURE__ */ ye(Nn, [["render", On]]), Rn = ["data-viewid"], Hn =
3016
3016
  return qe(() => {
3017
3017
  if (!t.item.artBlock)
3018
3018
  return;
3019
- ot(() => {
3019
+ at(() => {
3020
3020
  o.value = Math.floor(r.value.offsetWidth / y.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
3021
3021
  if (!r.value)
3022
3022
  return;
@@ -3042,7 +3042,7 @@ const zn = /* @__PURE__ */ ye(Nn, [["render", On]]), Rn = ["data-viewid"], Hn =
3042
3042
  }, [
3043
3043
  mt(m.$slots, "default"),
3044
3044
  v("div", Wn, [
3045
- te(nt, {
3045
+ te(st, {
3046
3046
  item: m.item,
3047
3047
  layout: m.layout
3048
3048
  }, null, 8, ["item", "layout"])
@@ -3809,8 +3809,8 @@ const Ue = /* @__PURE__ */ ye(ts, [["render", ss]]), is = (e, t, o) => {
3809
3809
  }, gs = (e) => {
3810
3810
  let t = {};
3811
3811
  const o = (s = e, a = !1) => (t[s.id] = {
3812
- _rootProblemType: st[e._rootProblemType],
3813
- _parentProblemType: st[e._parentProblemType]
3812
+ _rootProblemType: it[e._rootProblemType],
3813
+ _parentProblemType: it[e._parentProblemType]
3814
3814
  }, {
3815
3815
  // 块位置
3816
3816
  sectionPosition: re(s.position, !0),
@@ -3821,7 +3821,7 @@ const Ue = /* @__PURE__ */ ye(ts, [["render", ss]]), is = (e, t, o) => {
3821
3821
  // 需要保存文件,固定值
3822
3822
  needSavedFile: !!a || [p.mix].includes(e.problemType),
3823
3823
  // 题型
3824
- cuttingSectionQuestionType: st[s.problemType || e.problemType]
3824
+ cuttingSectionQuestionType: it[s.problemType || e.problemType]
3825
3825
  });
3826
3826
  let l = {};
3827
3827
  switch (e.problemType) {
@@ -4149,7 +4149,7 @@ const Ue = /* @__PURE__ */ ye(ts, [["render", ss]]), is = (e, t, o) => {
4149
4149
  ]));
4150
4150
  }
4151
4151
  });
4152
- const Fs = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-90e967d8"]]), _e = (e) => e == null ? void 0 : e.getBoundingClientRect(), it = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![De, gt].includes(t.dataset.block || "")), tt = (e) => e.previousElementSibling ? [De, gt].includes(e.previousElementSibling.dataset.block || "") ? tt(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? tt(e.parentElement) : document.body, Es = (e) => {
4152
+ const Fs = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-90e967d8"]]), _e = (e) => e == null ? void 0 : e.getBoundingClientRect(), rt = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![De, gt].includes(t.dataset.block || "")), ot = (e) => e.previousElementSibling ? [De, gt].includes(e.previousElementSibling.dataset.block || "") ? ot(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? ot(e.parentElement) : document.body, Es = (e) => {
4153
4153
  const t = e.parentElement, o = document.createElement("span");
4154
4154
  return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = gt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
4155
4155
  }, Ps = (e, t, o, l) => {
@@ -4173,7 +4173,7 @@ const Fs = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4173
4173
  }, pt = (e, t, o) => {
4174
4174
  const l = ht("", e.parentElement), r = l.findIndex((a) => a === e);
4175
4175
  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];
4176
- return s || (s = tt(e), _e(s).top + s.offsetHeight - t > o && (s = pt(s, t, o))), s;
4176
+ return s || (s = ot(e), _e(s).top + s.offsetHeight - t > o && (s = pt(s, t, o))), s;
4177
4177
  }, Ft = (e, t, o, l) => {
4178
4178
  const r = (a, c = o) => {
4179
4179
  var J, L, H;
@@ -4203,7 +4203,7 @@ const Fs = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4203
4203
  return pt(u, t, m);
4204
4204
  const E = Ps(u, c - m, c, l);
4205
4205
  if (E)
4206
- return tt(E);
4206
+ return ot(E);
4207
4207
  if (u.children.length) {
4208
4208
  const U = ht(u);
4209
4209
  return r(U, c);
@@ -4251,7 +4251,7 @@ const Fs = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4251
4251
  return;
4252
4252
  }
4253
4253
  m[m.length - 1].data.push({ ...w }), a([...m]), window.requestAnimationFrame(() => {
4254
- const E = it(w.__tag__, t), U = !w.isHidden && _e(E);
4254
+ const E = rt(w.__tag__, t), U = !w.isHidden && _e(E);
4255
4255
  let N = null;
4256
4256
  if (u) {
4257
4257
  const W = E.querySelector(`*[data-hutkey="${u}"]`), le = _e(W);
@@ -4273,7 +4273,7 @@ const Fs = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4273
4273
  let W = [], le = [], b = !1;
4274
4274
  if (w.children.some((_, O) => {
4275
4275
  var Y, ge;
4276
- const q = it(_.__tag__, t), fe = _e(q);
4276
+ const q = rt(_.__tag__, t), fe = _e(q);
4277
4277
  if (n) {
4278
4278
  const de = q.querySelector(`*[data-cutkey="${n}"]`), x = _e(de);
4279
4279
  m[m.length - 1].top = y.top - x.top, m[m.length - 1].height = y.height - m[m.length - 1].top, n = 0;
@@ -4282,7 +4282,7 @@ const Fs = /* @__PURE__ */ ye(Ls, [["__scopeId", "data-v-90e967d8"]]), _e = (e)
4282
4282
  if ((Y = q.parentElement) != null && Y.dataset.polymer)
4283
4283
  parseInt((ge = q.parentElement) == null ? void 0 : ge.dataset.polymer) ? (W = W.filter((de) => {
4284
4284
  var x;
4285
- return it(de.__tag__, t).dataset.polymer !== ((x = q.parentElement) == null ? void 0 : x.dataset.polymer);
4285
+ return rt(de.__tag__, t).dataset.polymer !== ((x = q.parentElement) == null ? void 0 : x.dataset.polymer);
4286
4286
  }), le = w.children.slice(W.length)) : (m[m.length - 1].data.pop(), W = [], b = !0, B(), H({ ...w }));
4287
4287
  else if (L(q))
4288
4288
  W.push(_), le = O < w.children.length - 1 ? w.children.slice(O + 1) : [];
@@ -4373,7 +4373,7 @@ const As = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4373
4373
  r.value && (r.value.destroy(), r.value = null);
4374
4374
  return;
4375
4375
  }
4376
- ot(() => {
4376
+ at(() => {
4377
4377
  r.value = Ds("inline", l), r.value && r.value.on("instanceReady", (n) => {
4378
4378
  r.value.setData(o.value);
4379
4379
  });
@@ -4439,7 +4439,7 @@ const zs = {
4439
4439
  document.body.removeEventListener("click", Ke);
4440
4440
  }
4441
4441
  };
4442
- let rt = null;
4442
+ let ct = null;
4443
4443
  const Rs = {
4444
4444
  mounted: (e, t) => {
4445
4445
  let o = {}, l = !1, r = !1, s = e.offsetParent, a = {}, c = {};
@@ -4450,16 +4450,16 @@ const Rs = {
4450
4450
  o = { x: n.clientX, y: n.clientY }, a = { x: parseInt(u.left), y: parseInt(u.top) };
4451
4451
  }), document.addEventListener("mouseup", (n) => {
4452
4452
  l = !1;
4453
- }), rt = (n) => {
4453
+ }), ct = (n) => {
4454
4454
  if (!l || e.getAttribute("disabled") === "true")
4455
4455
  return;
4456
4456
  n.stopPropagation(), n.preventDefault(), c = { x: n.clientX, y: n.clientY };
4457
4457
  const u = r ? Math.min(Math.max(c.x - o.x + a.x, 0), s.offsetWidth - e.offsetWidth) : c.x - o.x + a.x, z = r ? Math.min(Math.max(c.y - o.y + a.y, 0), s.offsetHeight - e.offsetHeight) : c.y - o.y + a.y;
4458
4458
  e.style.left = `${u}px`, e.style.top = `${z}px`, t.value && typeof t.value == "function" && t.value({ x: u, y: z });
4459
- }, document.addEventListener("mousemove", rt);
4459
+ }, document.addEventListener("mousemove", ct);
4460
4460
  },
4461
4461
  unmounted: () => {
4462
- document.removeEventListener("mousemove", rt);
4462
+ document.removeEventListener("mousemove", ct);
4463
4463
  }
4464
4464
  }, Hs = ["onMousedown", "data-block"], Ws = ["src"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Qs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, qs = ["onMousedown"], Ys = ["onMousedown"], Us = ["disabled", "onMousedown", "data-block"], Ks = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, js = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Vs = ["onMousedown"], Xs = /* @__PURE__ */ ae({
4465
4465
  __name: "absItem",
@@ -4868,7 +4868,7 @@ const Js = /* @__PURE__ */ ye(Xs, [["__scopeId", "data-v-410db2aa"]]), Zs = ["vi
4868
4868
  contentHeight: `${(ie = l.value[f]) == null ? void 0 : ie.height}px`
4869
4869
  };
4870
4870
  }, Ce = (f, S = !1) => {
4871
- r.value = f.map((pe) => ({ ...pe })), S && (l.value = [...f], a.value += 1, ot(() => {
4871
+ r.value = f.map((pe) => ({ ...pe })), S && (l.value = [...f], a.value += 1, at(() => {
4872
4872
  s.value = Math.ceil(l.value.length / o.layout.column), r.value = [], u.value.forEach((pe, K) => {
4873
4873
  var ie, $e;
4874
4874
  !pe || !pe.col || ((ie = l.value[K]) != null && ie.top ? pe.col.style.marginTop = `${($e = l.value[K]) == null ? void 0 : $e.top}px` : pe.col.style.marginTop = "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alit-layout",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "devDependencies": {