alit-layout 1.1.39 → 1.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2209,7 +2209,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
|
|
|
2209
2209
|
},
|
|
2210
2210
|
emits: ["change"],
|
|
2211
2211
|
setup(e, { emit: t }) {
|
|
2212
|
-
const o = e, l = W(() => o.data.filter((n) => ![Ce.another, Ce.another_choice
|
|
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
2213
|
return (n, c) => (r(), h("div", Ho, [
|
|
2214
2214
|
k("img", {
|
|
2215
2215
|
src: n.info.qrCode,
|
|
@@ -3871,7 +3871,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
|
|
|
3871
3871
|
let o = 0, l = {};
|
|
3872
3872
|
return [...Array(e.pageDom.length).keys()].map((i) => {
|
|
3873
3873
|
var c, y, s, m;
|
|
3874
|
-
const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), n = (m = (s = t[t.length - 1]) == null ? void 0 : s.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : m.children;
|
|
3874
|
+
const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), n = ((m = (s = t[t.length - 1]) == null ? void 0 : s.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : m.children) || [];
|
|
3875
3875
|
return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((A, p) => a + p < t.length).map((A, p) => {
|
|
3876
3876
|
const P = e.pageDom[i], z = Q(P), j = e.colDom[a + p], J = Q(j), D = e.colViewDom[a + p], w = Q(D), G = t[a + p].data.map((C) => C.children).flat(), ie = t[a + p].data.filter((C) => [Ce.one_choice, Ce.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
|
|
3877
3877
|
const U = he(`${$.choice}${C.id}`, j);
|