alit-layout 1.1.43 → 1.1.44

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 +103 -103
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ne, computed as W, openBlock as r, createElementBlock as h, Fragment as O, renderList as le, createElementVNode as k, normalizeStyle as X, unref as L, toDisplayString as te, createCommentVNode as B, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as et, createVNode as ae, pushScopeId as Ye, popScopeId as Ke, renderSlot as mt, onMounted as Ue, nextTick as lt, withModifiers as Ee, resolveComponent as qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as Qt, withDirectives as Ct, provide as Yt } from "vue";
2
- const Re = {
2
+ const He = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
5
5
  // 多选题
@@ -9,7 +9,7 @@ const Re = {
9
9
  // 完形填空
10
10
  cloze: "CLOZE_TEST"
11
11
  }, Pt = {
12
- ...Re,
12
+ ...He,
13
13
  // 判断题
14
14
  decide: "TRUE_OR_FALSE"
15
15
  }, Ge = {
@@ -2166,7 +2166,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2166
2166
  k("p", No, "ID:" + te(t.code), 1)
2167
2167
  ]));
2168
2168
  }
2169
- }), zo = ["innerHTML"], He = /* @__PURE__ */ ne({
2169
+ }), zo = ["innerHTML"], Re = /* @__PURE__ */ ne({
2170
2170
  __name: "index",
2171
2171
  props: {
2172
2172
  value: {},
@@ -2184,7 +2184,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2184
2184
  onBlur: l
2185
2185
  }, null, 40, zo));
2186
2186
  }
2187
- }), Ho = { class: "flex w-full" }, Ro = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, qo = {
2187
+ }), Ro = { class: "flex w-full" }, Ho = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, qo = {
2188
2188
  key: 0,
2189
2189
  class: "flex mx-4 min-w-[70px]"
2190
2190
  }, Qo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Yo = {
@@ -2210,21 +2210,21 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2210
2210
  emits: ["change"],
2211
2211
  setup(e, { emit: t }) {
2212
2212
  const o = e, l = W(() => o.data.filter((n) => ![Ce.another, Ce.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), i = W(() => o.data.filter((n) => [Ce.another, Ce.another_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), a = W(() => o.layout.scoreAddStars === nt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2213
- return (n, c) => (r(), h("div", Ho, [
2213
+ return (n, c) => (r(), h("div", Ro, [
2214
2214
  k("img", {
2215
2215
  src: n.info.qrCode,
2216
2216
  alt: "QRCode",
2217
2217
  class: "flex-shrink-0 w-28 h-28",
2218
2218
  "data-xine": L($).art_code
2219
- }, null, 8, Ro),
2219
+ }, null, 8, Ho),
2220
2220
  k("div", Wo, [
2221
- ae(He, {
2221
+ ae(Re, {
2222
2222
  class: "w-full text-center border-2 border-transparent focus:border-current",
2223
2223
  value: n.info.title,
2224
2224
  style: X(n.fontConfig.titleStyle),
2225
2225
  onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
2226
2226
  }, null, 8, ["value", "style"]),
2227
- n.layout.secTitleFlag ? (r(), ee(He, {
2227
+ n.layout.secTitleFlag ? (r(), ee(Re, {
2228
2228
  key: 0,
2229
2229
  class: "w-full text-center border-2 border-transparent focus:border-current",
2230
2230
  value: n.info.secTitle,
@@ -2234,7 +2234,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2234
2234
  k("div", Go, [
2235
2235
  n.layout.examExtentFlag ? (r(), h("p", qo, [
2236
2236
  Qo,
2237
- ae(He, {
2237
+ ae(Re, {
2238
2238
  class: "flex-1",
2239
2239
  value: n.info.extent,
2240
2240
  onChange: c[2] || (c[2] = (y) => t("change", { extent: y }))
@@ -2255,7 +2255,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2255
2255
  ])) : B("", !0),
2256
2256
  n.layout.authorFlag ? (r(), h("p", Vo, [
2257
2257
  jo,
2258
- ae(He, {
2258
+ ae(Re, {
2259
2259
  class: "flex-1",
2260
2260
  value: n.info.author,
2261
2261
  onChange: c[4] || (c[4] = (y) => t("change", { author: y }))
@@ -2263,7 +2263,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2263
2263
  ])) : B("", !0),
2264
2264
  n.layout.reviewerFlag ? (r(), h("p", Xo, [
2265
2265
  Jo,
2266
- ae(He, {
2266
+ ae(Re, {
2267
2267
  class: "flex-1",
2268
2268
  value: n.info.reviewer,
2269
2269
  onChange: c[5] || (c[5] = (y) => t("change", { reviewer: y }))
@@ -2480,7 +2480,7 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2480
2480
  ], Oa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "flex items-center border-l px-2 py-1" }, [
2481
2481
  /* @__PURE__ */ k("span", null, "正确填涂示例"),
2482
2482
  /* @__PURE__ */ k("span", { class: "w-8 bg-black ml-2 block_tips" })
2483
- ], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ha = /* @__PURE__ */ ne({
2483
+ ], -1)), za = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("div", { class: "h-2" }, null, -1)), Ra = /* @__PURE__ */ ne({
2484
2484
  __name: "notice",
2485
2485
  props: {
2486
2486
  layout: {},
@@ -2530,7 +2530,7 @@ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2530
2530
  ], 64));
2531
2531
  }
2532
2532
  });
2533
- const Ra = /* @__PURE__ */ me(Ha, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Wa = (e, t = "", o = !0, l = "children") => {
2533
+ const Ha = /* @__PURE__ */ me(Ra, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Wa = (e, t = "", o = !0, l = "children") => {
2534
2534
  let i = [];
2535
2535
  const a = (n) => {
2536
2536
  (n[l] || []).length ? (o && i.push(t ? n[t] : n[l]), n[l].forEach((c) => a(c))) : i.push(t ? n[t] : n);
@@ -2900,11 +2900,11 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
2900
2900
  }, null, 8, ["class", "item"]));
2901
2901
  }
2902
2902
  });
2903
- const $t = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Hl = {};
2904
- function Rl(e, t) {
2903
+ const $t = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Rl = {};
2904
+ function Hl(e, t) {
2905
2905
  return null;
2906
2906
  }
2907
- const Wl = /* @__PURE__ */ me(Hl, [["render", Rl]]), Gl = ["data-block"], ql = ["data-xine"], Ql = /* @__PURE__ */ ne({
2907
+ const Wl = /* @__PURE__ */ me(Rl, [["render", Hl]]), Gl = ["data-block"], ql = ["data-xine"], Ql = /* @__PURE__ */ ne({
2908
2908
  __name: "sheet",
2909
2909
  props: {
2910
2910
  item: {},
@@ -3117,7 +3117,7 @@ const Bn = /* @__PURE__ */ me(An, [["render", Dn]]), Nn = {};
3117
3117
  function On(e, t) {
3118
3118
  return null;
3119
3119
  }
3120
- const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn = ["data-block"], Wn = { class: "flex-1 flex justify-end overflow-hidden" }, Gn = ["data-block", "data-size"], qn = ["data-block"], Qn = /* @__PURE__ */ ne({
3120
+ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Rn = ["data-viewid"], Hn = ["data-block"], Wn = { class: "flex-1 flex justify-end overflow-hidden" }, Gn = ["data-block", "data-size"], qn = ["data-block"], Qn = /* @__PURE__ */ ne({
3121
3121
  __name: "sheet",
3122
3122
  props: {
3123
3123
  item: {},
@@ -3167,7 +3167,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3167
3167
  layout: p.layout
3168
3168
  }, null, 8, ["item", "layout"])
3169
3169
  ])
3170
- ], 8, Rn)),
3170
+ ], 8, Hn)),
3171
3171
  p.item.artBlock ? (r(), h(O, { key: 1 }, [
3172
3172
  p.item.beforeArt && !p.item.startAnswerLen ? (r(), ee(Oe, {
3173
3173
  key: 0,
@@ -3208,7 +3208,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3208
3208
  "data-area": p.item.id,
3209
3209
  data: p.item.answerArea
3210
3210
  }, null, 8, ["data-area", "data"]))
3211
- ], 8, Hn));
3211
+ ], 8, Rn));
3212
3212
  }
3213
3213
  }), Yn = ["data-block"], Kn = /* @__PURE__ */ ne({
3214
3214
  __name: "index",
@@ -3337,15 +3337,15 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3337
3337
  }), N = g[g.length - 1]), N.children.push({ ...I, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
3338
3338
  });
3339
3339
  const S = (I, N, ue, Y, T, v) => {
3340
- let _ = Math.min(Math.floor(e.width / N), ue), H = [], q = [], E = !0;
3341
- const R = (K = _) => {
3342
- H = (v ? [...Array(K).keys()].map((se, Te) => I.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === Te)).filter((se) => se.length) : [...Array(K).keys()].map((se) => I.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map((Te) => {
3340
+ let _ = Math.min(Math.floor(e.width / N), ue), R = [], q = [], E = !0;
3341
+ const H = (K = _) => {
3342
+ R = (v ? [...Array(K).keys()].map((se, Te) => I.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === Te)).filter((se) => se.length) : [...Array(K).keys()].map((se) => I.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map((Te) => {
3343
3343
  var ge;
3344
3344
  return ((ge = Te.optList) == null ? void 0 : ge.length) || 0;
3345
3345
  })));
3346
3346
  };
3347
- for (R(_), q = [...H]; E && _ < ue; )
3348
- R(_ + 1), E = _ + 1 <= ue && H.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * T < e.width, E && (_ += 1, q = [...H]);
3347
+ for (H(_), q = [...R]; E && _ < ue; )
3348
+ H(_ + 1), E = _ + 1 <= ue && R.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * T < e.width, E && (_ += 1, q = [...R]);
3349
3349
  return { children: I.children.slice(0, v ? Y : Y * _), col: _, colList: [...q] };
3350
3350
  };
3351
3351
  return g = g.map((I) => {
@@ -3353,29 +3353,29 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3353
3353
  if (I.type === "polymer") {
3354
3354
  const ue = I.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = I.styleInfo[d[e.layout.mode].choice_e] || 20, T = e.data.style[d[e.layout.mode].choice_d] || 10, v = (s.value[`h${e.data.id}`] || s.value[I.polymerId] || s.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10;
3355
3355
  if (I.styleInfo[d[e.layout.mode].choice_a] === f.choice_1) {
3356
- let _ = [], H = 0;
3357
- for (; H < I.children.length; ) {
3358
- const q = I.children.slice(H), E = Math.max(...q.map((K) => {
3356
+ let _ = [], R = 0;
3357
+ for (; R < I.children.length; ) {
3358
+ const q = I.children.slice(R), E = Math.max(...q.map((K) => {
3359
3359
  var se;
3360
3360
  return ((se = K.optList) == null ? void 0 : se.length) || 0;
3361
- })) * (Fe[e.layout.fillSize].value + 9) + v, R = S({ ...I, children: q }, E, T, Y, v, ue);
3362
- _.push({ ...I, groupIndex: _.length, children: R.children, col: R.col, colList: R.colList }), H = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
3361
+ })) * (Fe[e.layout.fillSize].value + 9) + v, H = S({ ...I, children: q }, E, T, Y, v, ue);
3362
+ _.push({ ...I, groupIndex: _.length, children: H.children, col: H.col, colList: H.colList }), R = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
3363
3363
  }
3364
3364
  return _;
3365
3365
  } else if (I.styleInfo[d[e.layout.mode].choice_a] === f.choice_2) {
3366
- const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), H = Math.floor(e.width / (_ * I.styleInfo[d[e.layout.mode].choice_c] + 10)), q = H * I.styleInfo[d[e.layout.mode].choice_c];
3367
- let E = [{ children: [], col: H }];
3368
- return I.children.forEach((R, K) => {
3369
- K >= q * E.length && E.push({ children: [], col: H }), E[E.length - 1].children.push(R);
3370
- }), E.map((R, K) => ({ ...I, groupIndex: K, children: R.children, col: R.col, colList: [] }));
3366
+ const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), R = Math.floor(e.width / (_ * I.styleInfo[d[e.layout.mode].choice_c] + 10)), q = R * I.styleInfo[d[e.layout.mode].choice_c];
3367
+ let E = [{ children: [], col: R }];
3368
+ return I.children.forEach((H, K) => {
3369
+ K >= q * E.length && E.push({ children: [], col: R }), E[E.length - 1].children.push(H);
3370
+ }), E.map((H, K) => ({ ...I, groupIndex: K, children: H.children, col: H.col, colList: [] }));
3371
3371
  } else if (I.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
3372
- let _ = [], H = 0, q = 0, E = 0, R = 0;
3372
+ let _ = [], R = 0, q = 0, E = 0, H = 0;
3373
3373
  return I.children.forEach((K) => {
3374
- K.optList.length !== H && (q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / q), T), R = ue ? E * 20 : E * I.styleInfo[d[e.layout.mode].choice_e], H = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(Re).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= R) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
3374
+ K.optList.length !== R && (q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / q), T), H = ue ? E * 20 : E * I.styleInfo[d[e.layout.mode].choice_e], R = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(He).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= H) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
3375
3375
  }), _.map((K, se) => ({ ...I, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
3376
3376
  } else if ([u.fill, u.fill_english].includes(I.problemType) && I.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
3377
3377
  const _ = Math.floor(I.styleInfo[d[e.layout.mode].fill_f]) * (I.styleInfo[d[e.layout.mode].fill_h] || 10);
3378
- return [...Array(Math.ceil(I.children.length / _)).keys()].map((H, q) => ({
3378
+ return [...Array(Math.ceil(I.children.length / _)).keys()].map((R, q) => ({
3379
3379
  ...I,
3380
3380
  groupIndex: q,
3381
3381
  children: I.children.slice(q * _, (q + 1) * _).map((E) => ({
@@ -3435,7 +3435,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3435
3435
  };
3436
3436
  break;
3437
3437
  }
3438
- else if (Object.values(Re).includes(g.problemType)) {
3438
+ else if (Object.values(He).includes(g.problemType)) {
3439
3439
  if (g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2)
3440
3440
  return S;
3441
3441
  let N = [];
@@ -3451,9 +3451,9 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3451
3451
  switch (g.styleInfo[d[e.layout.mode].choice_a]) {
3452
3452
  case f.choice_1:
3453
3453
  case f.choice_3:
3454
- ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((H) => g.children.filter((q, E) => E >= H * Y && E < (H + 1) * Y)).map((H, q) => H.map((E, R) => ({ ...E, _grid_area_: ue ? null : ut[R] + q }))).flat(2).forEach((H) => {
3455
- const q = g.children.find((E) => E.id === H.id);
3456
- q._grid_area_ = H._grid_area_;
3454
+ ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((R) => g.children.filter((q, E) => E >= R * Y && E < (R + 1) * Y)).map((R, q) => R.map((E, H) => ({ ...E, _grid_area_: ue ? null : ut[H] + q }))).flat(2).forEach((R) => {
3455
+ const q = g.children.find((E) => E.id === R.id);
3456
+ q._grid_area_ = R._grid_area_;
3457
3457
  }), S = ue ? {
3458
3458
  "grid-template": `repeat(${Math.ceil(g.children.length / g.col)}, 1fr) / ${N.join(" ")}`
3459
3459
  } : {
@@ -3471,7 +3471,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3471
3471
  return {
3472
3472
  "grid-area": g._grid_area_
3473
3473
  };
3474
- if (Object.values(Re).includes(g.problemType) && g.style[d[e.layout.mode].choice_a] === f.choice_2) {
3474
+ if (Object.values(He).includes(g.problemType) && g.style[d[e.layout.mode].choice_a] === f.choice_2) {
3475
3475
  const N = Math.max(Fe[e.layout.fillSize].value + 9, (s.value[`h${e.data.id}`] || s.value[g.polymerId] || s.value[(I = g.children[0]) == null ? void 0 : I.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (N * g.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - N * ue * g.style[d[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
3476
3476
  return !((S + 1) % g.style[d[e.layout.mode].choice_c]) && ((S + 1) % (g.style[d[e.layout.mode].choice_c] * ue) || ue < 2) ? {
3477
3477
  "min-width": `${N - 5}px`,
@@ -3489,7 +3489,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3489
3489
  return I;
3490
3490
  if (l.includes(g.problemType)) {
3491
3491
  let ue = {};
3492
- if (Object.values(Re).includes(e.data.problemType)) {
3492
+ if (Object.values(He).includes(e.data.problemType)) {
3493
3493
  const Y = Math.max(.../*props.data.rawChildren || */
3494
3494
  e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (s.value[`h${e.data.id}`] || s.value[g.polymerId || ""] || s.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10, T = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
3495
3495
  ue = S % T ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * T) / (T - 1) - 5}px` } : { minWidth: `${Y}px` };
@@ -3625,7 +3625,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3625
3625
  return o === f.bracket_cn ? ")" : ")";
3626
3626
  }, n = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
3627
3627
  return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${n}</span>` : "";
3628
- }, Pe = 200 / 96, Ht = 4, rs = 10, Q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), cs = (e, t, o) => {
3628
+ }, Pe = 200 / 96, Rt = 4, rs = 10, Q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), cs = (e, t, o) => {
3629
3629
  const l = Q(he(`${$.item}${e._sub}`, t));
3630
3630
  return !(l.top >= o.top + o.height || l.top + l.height < o.top);
3631
3631
  }, pe = (e, t, o = !1) => !e || !t ? null : {
@@ -3651,14 +3651,14 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3651
3651
  }, ce = (e, t = !1) => {
3652
3652
  if (!e)
3653
3653
  return null;
3654
- const o = t ? Ht : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
3654
+ const o = t ? Rt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
3655
3655
  return {
3656
3656
  x: Math.round(l.x * Pe - o),
3657
3657
  y: Math.round(l.y * Pe - o),
3658
3658
  width: Math.round(l.width * Pe + o * 2),
3659
3659
  height: Math.round(l.height * Pe + o * 2)
3660
3660
  };
3661
- }, Rt = (e, t = $.en_num) => {
3661
+ }, Ht = (e, t = $.en_num) => {
3662
3662
  const o = he(t);
3663
3663
  if (!o)
3664
3664
  return null;
@@ -3804,7 +3804,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3804
3804
  }))
3805
3805
  };
3806
3806
  }, _s = (e, t) => {
3807
- const o = [u.slove, u.art, u.synthesis, u.fill, u.fill_english, u.mix], l = rs + Ht, i = (a) => parseFloat(a.toFixed(2));
3807
+ const o = [u.slove, u.art, u.synthesis, u.fill, u.fill_english, u.mix], l = rs + Rt, i = (a) => parseFloat(a.toFixed(2));
3808
3808
  return t.flat().filter((a) => o.includes(a.problemType) && a.colIndex < 2).map((a) => {
3809
3809
  switch (a.problemType) {
3810
3810
  case u.fill:
@@ -3941,7 +3941,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3941
3941
  return {
3942
3942
  position: Ne(Y, w, z, !0),
3943
3943
  itemPosition: {
3944
- width: T[0].offsetWidth
3944
+ width: T[0].getBoundingClientRect().width
3945
3945
  },
3946
3946
  score: T.map((v) => Math.abs(parseFloat(v.innerText)))
3947
3947
  };
@@ -4170,7 +4170,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4170
4170
  // true:表示每个页面都要自带页面号确定信息 false:表示可以根据双面扫描下解析出来的另一面来推定
4171
4171
  sideAllSelfIntp: !1,
4172
4172
  // 填涂式考号,与条码式考号互斥
4173
- adminssionTicketID: Rt(e),
4173
+ adminssionTicketID: Ht(e),
4174
4174
  // 试卷二维码
4175
4175
  cardSerialNumber: {
4176
4176
  // 条形码虚线框位置, x, y, width, height
@@ -4208,7 +4208,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4208
4208
  }, ks = (e) => {
4209
4209
  const { config: t, data: o } = e, l = ys(t), i = gs(t, o);
4210
4210
  l && i[0].unshift(l);
4211
- const a = _s(t, i), n = vs(t, i), c = ws(t, n), y = Rt(t, $.en_num_view) || {}, s = fs(i, o);
4211
+ const a = _s(t, i), n = vs(t, i), c = ws(t, n), y = Ht(t, $.en_num_view) || {}, s = fs(i, o);
4212
4212
  return {
4213
4213
  engineData: c,
4214
4214
  pageTotal: t.pageTotal,
@@ -4449,8 +4449,8 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4449
4449
  let _ = { ...S };
4450
4450
  switch (S.problemType) {
4451
4451
  case Ge.slove:
4452
- const H = N.querySelector(`*[data-area="${S.id}"]`);
4453
- H != null && H.contains(C.cut) && (s = Date.now(), C.cut.dataset.cutkey = s, S.answerArea = H.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4452
+ const R = N.querySelector(`*[data-area="${S.id}"]`);
4453
+ R != null && R.contains(C.cut) && (s = Date.now(), C.cut.dataset.cutkey = s, S.answerArea = R.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4454
4454
  break;
4455
4455
  case Ge.art:
4456
4456
  if (S.artEditor) {
@@ -4458,7 +4458,7 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4458
4458
  q != null && q.contains(C.cut) && (s = Date.now(), C.cut.dataset.cutkey = s, S.answerArea = q.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4459
4459
  break;
4460
4460
  } else {
4461
- const q = N.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === Ie && C.targetEl.dataset.size ? C.targetEl : null, R = N.querySelector(`*[data-aart="${S.id}"]`);
4461
+ const q = N.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === Ie && C.targetEl.dataset.size ? C.targetEl : null, H = N.querySelector(`*[data-aart="${S.id}"]`);
4462
4462
  if (q != null && q.contains(C.cut))
4463
4463
  s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt = q == null ? void 0 : q.innerHTML, _.beforeGuide = "", _.afterArt = "", _.endAnswerLen = -1;
4464
4464
  else if (E) {
@@ -4476,7 +4476,7 @@ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4476
4476
  S.beforeGuide = "";
4477
4477
  _.endAnswerLen = K, S.startAnswerLen = K;
4478
4478
  } else
4479
- R != null && R.contains(C.cut) ? (s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = R.innerHTML) : C.targetEl === q ? (_.endAnswerLen = -1, _.beforeGuide = "", _.afterArt = "", S.beforeArt = "") : (q == null ? void 0 : q.previousElementSibling) === C.cut && (_.endAnswerLen = -1, _.beforeArt = "", _.beforeGuide = "", _.afterArt = "");
4479
+ H != null && H.contains(C.cut) ? (s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = H.innerHTML) : C.targetEl === q ? (_.endAnswerLen = -1, _.beforeGuide = "", _.afterArt = "", S.beforeArt = "") : (q == null ? void 0 : q.previousElementSibling) === C.cut && (_.endAnswerLen = -1, _.beforeArt = "", _.beforeGuide = "", _.afterArt = "");
4480
4480
  N.contains(C.targetEl) && (S.chunk += 1);
4481
4481
  break;
4482
4482
  }
@@ -4575,7 +4575,7 @@ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4575
4575
  ]));
4576
4576
  }
4577
4577
  });
4578
- const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4578
+ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Rs = {
4579
4579
  mounted: (e, t) => {
4580
4580
  let o = null, l = null, i = {}, a = !1, n = e.offsetParent, c = {}, y = {}, s = {};
4581
4581
  const m = e.querySelector(".move-target") || e;
@@ -4593,7 +4593,7 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4593
4593
  e.style.left = `${p}px`, e.style.top = `${P}px`, s = { x: p, y: P };
4594
4594
  };
4595
4595
  }
4596
- }, Rs = ["onMousedown", "data-block"], Ws = ["src"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, qs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Qs = ["onMousedown"], Ys = ["onMousedown"], Ks = ["disabled", "onMousedown", "data-block"], Us = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Vs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, js = ["onMousedown"], Xs = /* @__PURE__ */ ne({
4596
+ }, Hs = ["onMousedown", "data-block"], Ws = ["src"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, qs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Qs = ["onMousedown"], Ys = ["onMousedown"], Ks = ["disabled", "onMousedown", "data-block"], Us = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Vs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, js = ["onMousedown"], Xs = /* @__PURE__ */ ne({
4597
4597
  __name: "absItem",
4598
4598
  props: {
4599
4599
  imgData: {},
@@ -4605,7 +4605,7 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4605
4605
  },
4606
4606
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4607
4607
  setup(e, { emit: t }) {
4608
- const o = e, l = Hs, i = [
4608
+ const o = e, l = Rs, i = [
4609
4609
  { left: "0", top: "0", cursor: "nwse-resize" },
4610
4610
  { left: "50%", top: "0", cursor: "ns-resize" },
4611
4611
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4636,46 +4636,46 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4636
4636
  }, ie = (T) => {
4637
4637
  A.value = T;
4638
4638
  }, C = () => {
4639
- const T = D.value, v = T.left + T.width / 2, _ = T.top + T.height / 2, H = s.value.getBoundingClientRect() || {};
4640
- m.value = { x: v + H.left, y: _ + H.top }, s.value.addEventListener("mousemove", U), s.value.addEventListener("mouseleave", de), s.value.addEventListener("mouseup", de);
4639
+ const T = D.value, v = T.left + T.width / 2, _ = T.top + T.height / 2, R = s.value.getBoundingClientRect() || {};
4640
+ m.value = { x: v + R.left, y: _ + R.top }, s.value.addEventListener("mousemove", U), s.value.addEventListener("mouseleave", de), s.value.addEventListener("mouseup", de);
4641
4641
  }, U = (T) => {
4642
4642
  T.stopPropagation(), T.preventDefault();
4643
- const v = T.clientX - m.value.x, _ = m.value.y - T.clientY, H = Math.atan2(_, v) / (Math.PI / 180);
4644
- n.value = { ...D.value, rotate: -parseInt(H.toString()) };
4643
+ const v = T.clientX - m.value.x, _ = m.value.y - T.clientY, R = Math.atan2(_, v) / (Math.PI / 180);
4644
+ n.value = { ...D.value, rotate: -parseInt(R.toString()) };
4645
4645
  }, de = (T) => {
4646
4646
  T.stopPropagation(), T.preventDefault(), t("changeAbsImgItem", n.value), s.value.removeEventListener("mousemove", U), s.value.removeEventListener("mouseleave", de), s.value.removeEventListener("mouseup", de);
4647
4647
  }, g = (T, v) => {
4648
4648
  var _;
4649
4649
  T.stopPropagation(), c.value = v, a.value = { x: T.clientX, y: T.clientY, ...D.value }, ((_ = D.value) == null ? void 0 : _.key.split("-")[0]) === "img" ? s.value.addEventListener("mousemove", S) : s.value.addEventListener("mousemove", I), s.value.addEventListener("mouseleave", N), s.value.addEventListener("mouseup", N);
4650
4650
  }, S = (T) => {
4651
- const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = v.x > v.y ? "width" : "height";
4651
+ const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, R = v.x > v.y ? "width" : "height";
4652
4652
  [
4653
4653
  // 0
4654
4654
  () => {
4655
4655
  const E = {
4656
4656
  width: a.value.width - v.x,
4657
4657
  height: a.value.width * (1 - v.y / a.value.height)
4658
- }[H], R = {
4658
+ }[R], H = {
4659
4659
  width: a.value.height * (1 - v.x / a.value.width),
4660
4660
  height: a.value.height - v.y
4661
- }[H];
4661
+ }[R];
4662
4662
  n.value = {
4663
4663
  ..._,
4664
4664
  width: E,
4665
- height: R,
4665
+ height: H,
4666
4666
  left: a.value.left - (E - a.value.width),
4667
- top: a.value.top - (R - a.value.height)
4667
+ top: a.value.top - (H - a.value.height)
4668
4668
  };
4669
4669
  },
4670
4670
  // 1
4671
4671
  () => {
4672
- const E = a.value.width * (1 - v.y / a.value.height), R = a.value.height - v.y;
4672
+ const E = a.value.width * (1 - v.y / a.value.height), H = a.value.height - v.y;
4673
4673
  n.value = {
4674
4674
  ..._,
4675
4675
  width: E,
4676
- height: R,
4676
+ height: H,
4677
4677
  left: a.value.left - (E - a.value.width) / 2,
4678
- top: a.value.top - (R - a.value.height)
4678
+ top: a.value.top - (H - a.value.height)
4679
4679
  };
4680
4680
  },
4681
4681
  // 2
@@ -4683,36 +4683,36 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4683
4683
  const E = {
4684
4684
  width: a.value.height * (1 + v.x / a.value.width),
4685
4685
  height: a.value.height - v.y
4686
- }[H];
4686
+ }[R];
4687
4687
  n.value = {
4688
4688
  ..._,
4689
4689
  width: {
4690
4690
  width: a.value.width + v.x,
4691
4691
  height: a.value.width * (1 - v.y / a.value.height)
4692
- }[H],
4692
+ }[R],
4693
4693
  height: E,
4694
4694
  top: a.value.top - (E - a.value.height)
4695
4695
  };
4696
4696
  },
4697
4697
  // 3
4698
4698
  () => {
4699
- const E = a.value.width - v.x, R = a.value.height * (1 - v.x / a.value.width);
4699
+ const E = a.value.width - v.x, H = a.value.height * (1 - v.x / a.value.width);
4700
4700
  n.value = {
4701
4701
  ..._,
4702
4702
  width: E,
4703
- height: R,
4703
+ height: H,
4704
4704
  left: a.value.left - (E - a.value.width),
4705
- top: a.value.top - (R - a.value.height) / 2
4705
+ top: a.value.top - (H - a.value.height) / 2
4706
4706
  };
4707
4707
  },
4708
4708
  // 4
4709
4709
  () => {
4710
- const E = a.value.width + v.x, R = a.value.height * (1 + v.x / a.value.width);
4710
+ const E = a.value.width + v.x, H = a.value.height * (1 + v.x / a.value.width);
4711
4711
  n.value = {
4712
4712
  ..._,
4713
4713
  width: E,
4714
- height: R,
4715
- top: a.value.top - (R - a.value.height) / 2
4714
+ height: H,
4715
+ top: a.value.top - (H - a.value.height) / 2
4716
4716
  };
4717
4717
  },
4718
4718
  // 5
@@ -4720,24 +4720,24 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4720
4720
  const E = {
4721
4721
  width: a.value.width - v.x,
4722
4722
  height: a.value.width * (1 + v.y / a.value.height)
4723
- }[H], R = {
4723
+ }[R], H = {
4724
4724
  width: a.value.height * (1 - v.x / a.value.width),
4725
4725
  height: a.value.height + v.y
4726
- }[H];
4726
+ }[R];
4727
4727
  n.value = {
4728
4728
  ..._,
4729
4729
  width: E,
4730
- height: R,
4730
+ height: H,
4731
4731
  left: a.value.left - (E - a.value.width)
4732
4732
  };
4733
4733
  },
4734
4734
  // 6
4735
4735
  () => {
4736
- const E = a.value.width * (1 + v.y / a.value.height), R = a.value.height + v.y;
4736
+ const E = a.value.width * (1 + v.y / a.value.height), H = a.value.height + v.y;
4737
4737
  n.value = {
4738
4738
  ..._,
4739
4739
  width: E,
4740
- height: R,
4740
+ height: H,
4741
4741
  left: a.value.left - (E - a.value.width) / 2
4742
4742
  };
4743
4743
  },
@@ -4746,19 +4746,19 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4746
4746
  const E = {
4747
4747
  width: a.value.width + v.x,
4748
4748
  height: a.value.width * (1 + v.y / a.value.height)
4749
- }[H], R = {
4749
+ }[R], H = {
4750
4750
  width: a.value.height * (1 + v.x / a.value.width),
4751
4751
  height: a.value.height + v.y
4752
- }[H];
4752
+ }[R];
4753
4753
  n.value = {
4754
4754
  ..._,
4755
4755
  width: E,
4756
- height: R
4756
+ height: H
4757
4757
  };
4758
4758
  }
4759
4759
  ][c.value]();
4760
4760
  }, I = (T) => {
4761
- const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = [
4761
+ const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, R = [
4762
4762
  {
4763
4763
  ..._,
4764
4764
  width: a.value.width - v.x,
@@ -4802,7 +4802,7 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4802
4802
  height: a.value.height + v.y
4803
4803
  }
4804
4804
  ];
4805
- n.value = H[c.value];
4805
+ n.value = R[c.value];
4806
4806
  }, N = () => {
4807
4807
  var T;
4808
4808
  s.value.removeEventListener("mousemove", S), s.value.removeEventListener("mousemove", I), s.value.removeEventListener("mouseleave", N), s.value.removeEventListener("mouseup", N), ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? t("changeAbsImgItem", n.value) : t("changeAbsTxtItem", n.value), n.value = null;
@@ -4813,21 +4813,21 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4813
4813
  }
4814
4814
  t("changeAbsTxtItem", { ...D.value, content: T });
4815
4815
  }, Y = (T, v) => {
4816
- var H, q;
4816
+ var R, q;
4817
4817
  const _ = document.body.querySelector(`.cke_editor_${bt}`);
4818
- !T && ((q = (H = v == null ? void 0 : v.target) == null ? void 0 : H.dataset) != null && q.safe || [...P.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (p.value = T == null ? void 0 : T.key, T && (n.value = { ...T }));
4818
+ !T && ((q = (R = v == null ? void 0 : v.target) == null ? void 0 : R.dataset) != null && q.safe || [...P.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (p.value = T == null ? void 0 : T.key, T && (n.value = { ...T }));
4819
4819
  };
4820
4820
  return (T, v) => (r(), h(O, null, [
4821
4821
  (r(!0), h(O, null, le(j.value, (_) => {
4822
- var H, q, E, R, K, se, Te;
4822
+ var R, q, E, H, K, se, Te;
4823
4823
  return Ct((r(), h("div", {
4824
4824
  key: _.id,
4825
4825
  ref_for: !0,
4826
4826
  ref_key: "imgViewList",
4827
4827
  ref: P,
4828
4828
  "data-safe": "true",
4829
- class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8" : "z-7"]),
4830
- style: X({ left: Math.max(((q = w.value[_.key]) == null ? void 0 : q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
4829
+ class: oe(["absolute", ((R = D.value) == null ? void 0 : R.key) === _.key ? "z-8" : "z-7"]),
4830
+ style: X({ left: Math.max(((q = w.value[_.key]) == null ? void 0 : q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((H = w.value[_.key]) == null ? void 0 : H.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
4831
4831
  onClick: v[0] || (v[0] = Ee((ge) => T.void, ["stop"])),
4832
4832
  onMousedown: Ee((ge) => Y(_), ["stop"]),
4833
4833
  "data-block": L(Be)
@@ -4862,12 +4862,12 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4862
4862
  })
4863
4863
  ], 40, Ys)
4864
4864
  ], 64)) : B("", !0)
4865
- ], 46, Rs)), [
4865
+ ], 46, Hs)), [
4866
4866
  [L(l), G]
4867
4867
  ]);
4868
4868
  }), 128)),
4869
4869
  (r(!0), h(O, null, le(J.value, (_) => {
4870
- var H, q, E, R, K, se, Te;
4870
+ var R, q, E, H, K, se, Te;
4871
4871
  return Ct((r(), h("div", {
4872
4872
  key: _.id,
4873
4873
  ref_for: !0,
@@ -4875,8 +4875,8 @@ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4875
4875
  ref: z,
4876
4876
  disabled: A.value,
4877
4877
  "data-safe": "true",
4878
- class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8 bg-white" : "z-7"]),
4879
- style: X({ left: Math.max(((q = w.value[_.key]) == null ? void 0 : q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
4878
+ class: oe(["absolute", ((R = D.value) == null ? void 0 : R.key) === _.key ? "z-8 bg-white" : "z-7"]),
4879
+ style: X({ left: Math.max(((q = w.value[_.key]) == null ? void 0 : q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((H = w.value[_.key]) == null ? void 0 : H.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
4880
4880
  onClick: v[3] || (v[3] = Ee((ge) => T.void, ["stop"])),
4881
4881
  onMousedown: Ee((ge) => Y(_), ["stop"]),
4882
4882
  "data-block": L(Be)
@@ -4953,7 +4953,7 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
4953
4953
  }), j = W(() => {
4954
4954
  var b;
4955
4955
  return o.layout.bindFlag && !!((b = qe.find((F) => F.code === o.layout.paper)) != null && b.isMultCol);
4956
- }), J = W(() => o.isFinal ? 0 : 10), D = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + R(0) : 0) + R(0)) / o.layout.column - R(0)), I = W(() => ({
4956
+ }), J = W(() => o.isFinal ? 0 : 10), D = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + H(0) : 0) + H(0)) / o.layout.column - H(0)), I = W(() => ({
4957
4957
  width: `${x[o.layout.paper].width}px`,
4958
4958
  height: `${(x[o.layout.paper].height + J.value) * G.value - J.value}px`
4959
4959
  })), N = W(() => ({
@@ -4965,7 +4965,7 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
4965
4965
  var F;
4966
4966
  const b = (F = qe.find((_e) => _e.code === o.layout.paper)) == null ? void 0 : F.isFullTitle;
4967
4967
  return {
4968
- left: `${U.value.left + (c.value ? c.value + R(0) : 0)}px`,
4968
+ left: `${U.value.left + (c.value ? c.value + H(0) : 0)}px`,
4969
4969
  top: `${U.value.top}px`,
4970
4970
  width: b ? `${de.value}px` : `${S.value}px`
4971
4971
  };
@@ -4989,18 +4989,18 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
4989
4989
  }
4990
4990
  }
4991
4991
  return F;
4992
- }, v = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _ = (b, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + b, H = (b) => {
4992
+ }, v = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _ = (b, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + b, R = (b) => {
4993
4993
  const F = b % (o.layout.column + o.layout.backColumn);
4994
4994
  return F >= o.layout.column ? F - o.layout.column : F;
4995
4995
  }, q = (b, F) => {
4996
4996
  b ? s.value[F] = b : s.value.splice(F, 1);
4997
4997
  }, E = (b, F) => {
4998
4998
  b ? m.value[F] = b : m.value.splice(F, 1);
4999
- }, R = (b) => Mt[o.layout.mode][o.layout.paper][v(b)] || 0, K = (b, F = !1) => (de.value - (c.value ? c.value + R(b) : 0) + R(b)) / v(b) - R(b) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), se = (b, F) => {
4999
+ }, H = (b) => Mt[o.layout.mode][o.layout.paper][v(b)] || 0, K = (b, F = !1) => (de.value - (c.value ? c.value + H(b) : 0) + H(b)) / v(b) - H(b) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), se = (b, F) => {
5000
5000
  var Z, re;
5001
5001
  const _e = b % (o.layout.column + o.layout.backColumn) ? 0 : ((Z = A.value[Math.min(F, 1)]) == null ? void 0 : Z.offsetHeight) || 0;
5002
5002
  return {
5003
- left: `${U.value.left + (F % 2 ? 0 : c.value ? c.value + R(b) : 0) + C.value.left + H(b) * (K(b) + R(b) + C.value.left + C.value.right)}px`,
5003
+ left: `${U.value.left + (F % 2 ? 0 : c.value ? c.value + H(b) : 0) + C.value.left + R(b) * (K(b) + H(b) + C.value.left + C.value.right)}px`,
5004
5004
  top: `${_e + U.value.top + (!F && !b ? 0 : C.value.top)}px`,
5005
5005
  width: `${K(b)}px`,
5006
5006
  height: `${g.value - _e - (!F && !b ? 0 : C.value.top) - C.value.bottom}px`,
@@ -5128,7 +5128,7 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
5128
5128
  currentPage: re,
5129
5129
  totalPage: w.value,
5130
5130
  columnContentWidth: K(re % 2 ? b.layout.column : 0, !0),
5131
- columnMargin: R(re % 2 ? b.layout.column : 0),
5131
+ columnMargin: H(re % 2 ? b.layout.column : 0),
5132
5132
  bindWidth: c.value,
5133
5133
  padding: U.value
5134
5134
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
@@ -5174,7 +5174,7 @@ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["vi
5174
5174
  isBindFlag: j.value,
5175
5175
  onChange: F[9] || (F[9] = ($e) => t("changeExtentInfo", $e))
5176
5176
  }, null, 8, ["layout", "info", "isBindFlag"]),
5177
- ae(Ra, {
5177
+ ae(Ha, {
5178
5178
  layout: b.layout,
5179
5179
  isBindFlag: j.value
5180
5180
  }, null, 8, ["layout", "isBindFlag"]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alit-layout",
3
- "version": "1.1.43",
3
+ "version": "1.1.44",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "devDependencies": {