@3sc/common-component 0.0.202 → 0.0.203
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 +9 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -42135,23 +42135,25 @@ PC.propTypes = {
|
|
|
42135
42135
|
nested: i.object
|
|
42136
42136
|
};
|
|
42137
42137
|
function AC({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: o }) {
|
|
42138
|
-
var
|
|
42139
|
-
const { columns: r } = e, { visibleGridColumns: s } = ut(fa) ?? { visibleGridColumns: [] }, a = ut(ha)
|
|
42138
|
+
var c;
|
|
42139
|
+
const { columns: r } = e, { visibleGridColumns: s } = ut(fa) ?? { visibleGridColumns: [] }, a = ut(ha);
|
|
42140
|
+
console.log("table", { visibleGridColumns: s });
|
|
42141
|
+
const l = ln(() => {
|
|
42140
42142
|
var d;
|
|
42141
|
-
return
|
|
42143
|
+
return !s || s.length === 0 ? f7({
|
|
42142
42144
|
columns: r,
|
|
42143
42145
|
gridPath: n,
|
|
42144
42146
|
baseUrl: o,
|
|
42145
42147
|
isDefaultConfig: t,
|
|
42146
42148
|
pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
|
|
42147
42149
|
}) : null;
|
|
42148
|
-
}, [
|
|
42150
|
+
}, [s, r, n, o, t, (c = e == null ? void 0 : e.pagination) == null ? void 0 : c.rowPerPage]);
|
|
42149
42151
|
return xt(() => {
|
|
42150
|
-
l &&
|
|
42152
|
+
l && a({
|
|
42151
42153
|
type: Xe.SET_GRID_DATA,
|
|
42152
|
-
payload: { visibleGridColumns:
|
|
42154
|
+
payload: { visibleGridColumns: l }
|
|
42153
42155
|
});
|
|
42154
|
-
}, [l,
|
|
42156
|
+
}, [l, a]), /* @__PURE__ */ g.jsx(
|
|
42155
42157
|
PC,
|
|
42156
42158
|
{
|
|
42157
42159
|
...e,
|