cimos7-vue3-common 0.4.41 → 0.4.42
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.
|
@@ -84430,6 +84430,11 @@ const QEe = { class: "zy-table-layout table-layout" }, pEe = { class: "table-con
|
|
|
84430
84430
|
default: "",
|
|
84431
84431
|
required: !1
|
|
84432
84432
|
},
|
|
84433
|
+
defaultRows: {
|
|
84434
|
+
type: Number,
|
|
84435
|
+
default: 1,
|
|
84436
|
+
required: !1
|
|
84437
|
+
},
|
|
84433
84438
|
multiTip: {
|
|
84434
84439
|
type: Object,
|
|
84435
84440
|
default: () => ({
|
|
@@ -84491,9 +84496,7 @@ const QEe = { class: "zy-table-layout table-layout" }, pEe = { class: "table-con
|
|
|
84491
84496
|
},
|
|
84492
84497
|
emits: ["row-click", "update:modelValue", "search", "reset", "loadSuccess", "loadData", "tapOpt", "changeColumns"],
|
|
84493
84498
|
setup(e, { expose: r, emit: a }) {
|
|
84494
|
-
const d = _e(null), f = _e([]), w = e, v = a, b = _e(w.columns.filter((ie) => ie.show !== !1).map((ie) => ie.key))
|
|
84495
|
-
console.log("columnsList.value"), console.log(b.value);
|
|
84496
|
-
const x = _e([]), W = _e({}), B = (ie, Ge, tt, Xe) => {
|
|
84499
|
+
const d = _e(null), f = _e([]), w = e, v = a, b = _e(w.columns.filter((ie) => ie.show !== !1).map((ie) => ie.key)), x = _e([]), W = _e({}), B = (ie, Ge, tt, Xe) => {
|
|
84497
84500
|
v("row-click", ie, Ge, tt, Xe);
|
|
84498
84501
|
};
|
|
84499
84502
|
gn(f, () => {
|
|
@@ -84554,6 +84557,7 @@ const QEe = { class: "zy-table-layout table-layout" }, pEe = { class: "table-con
|
|
|
84554
84557
|
const tt = Di("SearchHeader"), Xe = x0, R = hB, De = yb, re = Di("CTable"), Ee = Di("MultiTip"), Ne = Di("WrapperPage");
|
|
84555
84558
|
return ue(), Re("div", QEe, [
|
|
84556
84559
|
t(tt, {
|
|
84560
|
+
defaultRows: e.defaultRows,
|
|
84557
84561
|
gutter: e.gutter,
|
|
84558
84562
|
searchConfig: e.searchOptions,
|
|
84559
84563
|
modelValue: W.value,
|
|
@@ -84576,7 +84580,7 @@ const QEe = { class: "zy-table-layout table-layout" }, pEe = { class: "table-con
|
|
|
84576
84580
|
]),
|
|
84577
84581
|
_: 3
|
|
84578
84582
|
/* FORWARDED */
|
|
84579
|
-
}, 8, ["gutter", "searchConfig", "modelValue"]),
|
|
84583
|
+
}, 8, ["defaultRows", "gutter", "searchConfig", "modelValue"]),
|
|
84580
84584
|
Be("div", pEe, [
|
|
84581
84585
|
gt("操作 "),
|
|
84582
84586
|
e.showSumData || e.showCustomRenderColumns || ie.$slots.tableHandler ? (ue(), Re("div", eOe, [
|
|
@@ -84793,27 +84797,27 @@ const aOe = ft({
|
|
|
84793
84797
|
const w = _e(!1), v = () => {
|
|
84794
84798
|
w.value = !w.value, d("toggleExpand", w.value);
|
|
84795
84799
|
}, b = Me(() => {
|
|
84796
|
-
const P = a.searchConfig.filter((
|
|
84800
|
+
const P = a.searchConfig.filter((p) => W(p));
|
|
84797
84801
|
if (w.value)
|
|
84798
84802
|
return P;
|
|
84799
84803
|
let A = 0;
|
|
84800
|
-
const $ = 24 * a.defaultRows
|
|
84801
|
-
for (const
|
|
84802
|
-
const
|
|
84803
|
-
if (A +
|
|
84804
|
+
const $ = 6, U = 24 * a.defaultRows - $, G = [];
|
|
84805
|
+
for (const p of P) {
|
|
84806
|
+
const Z = p.span || 6;
|
|
84807
|
+
if (A + Z > U)
|
|
84804
84808
|
break;
|
|
84805
|
-
|
|
84809
|
+
G.push(p), A += Z;
|
|
84806
84810
|
}
|
|
84807
|
-
return
|
|
84811
|
+
return G;
|
|
84808
84812
|
}), x = Me(() => {
|
|
84809
|
-
const P = a.searchConfig.filter((
|
|
84813
|
+
const P = a.searchConfig.filter((G) => W(G));
|
|
84810
84814
|
let A = 0;
|
|
84811
|
-
const $ = 24 * a.defaultRows
|
|
84812
|
-
for (const
|
|
84813
|
-
const
|
|
84814
|
-
if (A +
|
|
84815
|
+
const $ = 6, U = 24 * a.defaultRows - $;
|
|
84816
|
+
for (const G of P) {
|
|
84817
|
+
const p = G.span || 6;
|
|
84818
|
+
if (A + p > U)
|
|
84815
84819
|
return !0;
|
|
84816
|
-
A +=
|
|
84820
|
+
A += p;
|
|
84817
84821
|
}
|
|
84818
84822
|
return !1;
|
|
84819
84823
|
}), W = (P) => {
|
|
@@ -85092,7 +85096,11 @@ const cOe = ft({
|
|
|
85092
85096
|
};
|
|
85093
85097
|
return (B, _) => {
|
|
85094
85098
|
const D = x0, P = Gne;
|
|
85095
|
-
return ue(), Tt(P, {
|
|
85099
|
+
return ue(), Tt(P, {
|
|
85100
|
+
width: "50",
|
|
85101
|
+
"min-width": "50",
|
|
85102
|
+
fixed: "left"
|
|
85103
|
+
}, {
|
|
85096
85104
|
header: st(() => [
|
|
85097
85105
|
t(D, {
|
|
85098
85106
|
modelValue: b.value,
|