@apexcura/ui-components 0.0.12-Beta96 → 0.0.12-Beta97
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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -615,7 +615,12 @@ var TableElement = (props) => {
|
|
|
615
615
|
const { thead, tbody } = props;
|
|
616
616
|
console.log("thead-----", thead);
|
|
617
617
|
console.log("tbody------", tbody);
|
|
618
|
-
|
|
618
|
+
const columns = thead && thead.map((col) => ({
|
|
619
|
+
title: col.label,
|
|
620
|
+
dataIndex: col.name,
|
|
621
|
+
key: col.key
|
|
622
|
+
}));
|
|
623
|
+
return /* @__PURE__ */ import_react19.default.createElement(import_antd14.Table, { dataSource: tbody, columns });
|
|
619
624
|
};
|
|
620
625
|
// Annotate the CommonJS export names for ESM import in node:
|
|
621
626
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -565,7 +565,12 @@ var TableElement = (props) => {
|
|
|
565
565
|
const { thead, tbody } = props;
|
|
566
566
|
console.log("thead-----", thead);
|
|
567
567
|
console.log("tbody------", tbody);
|
|
568
|
-
|
|
568
|
+
const columns = thead && thead.map((col) => ({
|
|
569
|
+
title: col.label,
|
|
570
|
+
dataIndex: col.name,
|
|
571
|
+
key: col.key
|
|
572
|
+
}));
|
|
573
|
+
return /* @__PURE__ */ React18.createElement(Table2, { dataSource: tbody, columns });
|
|
569
574
|
};
|
|
570
575
|
export {
|
|
571
576
|
AddMoreTable,
|