sud-ui 0.1.18 → 0.1.19
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.js +4 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9022,10 +9022,10 @@ const n4 = ({
|
|
|
9022
9022
|
const X = s.reduce((U, Q) => U + (Q.col || (Q.width ? 0 : 1)), 0);
|
|
9023
9023
|
return s.map((U) => {
|
|
9024
9024
|
if (U.width) return U;
|
|
9025
|
-
const Q = U.col || 1;
|
|
9025
|
+
const Q = U.col || 1, d0 = X ? `${Q / X * 100}%` : "auto";
|
|
9026
9026
|
return {
|
|
9027
9027
|
...U,
|
|
9028
|
-
width:
|
|
9028
|
+
width: d0
|
|
9029
9029
|
};
|
|
9030
9030
|
});
|
|
9031
9031
|
}, [s]), B0 = F0(
|
|
@@ -9064,13 +9064,7 @@ const n4 = ({
|
|
|
9064
9064
|
},
|
|
9065
9065
|
role: "presentation",
|
|
9066
9066
|
children: [
|
|
9067
|
-
/* @__PURE__ */ t.jsx("colgroup", { children: S0.map((X, U) => /* @__PURE__ */ t.jsx(
|
|
9068
|
-
"col",
|
|
9069
|
-
{
|
|
9070
|
-
style: X.width ? { width: X.width } : void 0
|
|
9071
|
-
},
|
|
9072
|
-
U
|
|
9073
|
-
)) }),
|
|
9067
|
+
/* @__PURE__ */ t.jsx("colgroup", { children: S0.map((X, U) => /* @__PURE__ */ t.jsx("col", { style: { width: X.width } }, U)) }),
|
|
9074
9068
|
/* @__PURE__ */ t.jsx("thead", { children: /* @__PURE__ */ t.jsx("tr", { children: S0.map((X, U) => {
|
|
9075
9069
|
const Q = X.dataIndex || X.key, d0 = (R == null ? void 0 : R.columnKey) === Q, m0 = d0 ? R.order : null, j0 = X.align || "left";
|
|
9076
9070
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -9192,13 +9186,7 @@ const n4 = ({
|
|
|
9192
9186
|
},
|
|
9193
9187
|
role: "presentation",
|
|
9194
9188
|
children: [
|
|
9195
|
-
/* @__PURE__ */ t.jsx("colgroup", { children: S0.map((X, U) => /* @__PURE__ */ t.jsx(
|
|
9196
|
-
"col",
|
|
9197
|
-
{
|
|
9198
|
-
style: X.width ? { width: X.width } : void 0
|
|
9199
|
-
},
|
|
9200
|
-
U
|
|
9201
|
-
)) }),
|
|
9189
|
+
/* @__PURE__ */ t.jsx("colgroup", { children: S0.map((X, U) => /* @__PURE__ */ t.jsx("col", { style: { width: X.width } }, U)) }),
|
|
9202
9190
|
/* @__PURE__ */ t.jsx("tbody", { children: D.map((X, U) => {
|
|
9203
9191
|
const Q = E(X, U), d0 = L(X.background, $) || "transparent", m0 = L(X.color, $) || "inherit", j0 = L(X.borderColor, $) || m, o0 = g ? `${h}px ${i} ${j0}` : "none";
|
|
9204
9192
|
return /* @__PURE__ */ t.jsx(
|