@apexcura/ui-components 0.0.14-Beta60 → 0.0.14-Beta62
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 +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -767,6 +767,7 @@ var TableElement = (props) => {
|
|
|
767
767
|
}
|
|
768
768
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
769
769
|
...row,
|
|
770
|
+
key: index + 1,
|
|
770
771
|
[columns[0].key]: index + 1
|
|
771
772
|
}));
|
|
772
773
|
const count = dataSource ? dataSource.length : 0;
|
|
@@ -778,9 +779,6 @@ var TableElement = (props) => {
|
|
|
778
779
|
const rowSelectionConfig = props.rowSelection ? {
|
|
779
780
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
780
781
|
console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
|
|
781
|
-
if (props.onChange) {
|
|
782
|
-
props.onChange(selectedRows);
|
|
783
|
-
}
|
|
784
782
|
}
|
|
785
783
|
} : void 0;
|
|
786
784
|
return /* @__PURE__ */ import_react20.default.createElement(import_react20.default.Fragment, null, /* @__PURE__ */ import_react20.default.createElement(
|
package/dist/index.mjs
CHANGED
|
@@ -707,6 +707,7 @@ var TableElement = (props) => {
|
|
|
707
707
|
}
|
|
708
708
|
const dataSource = tbody && tbody.map((row, index) => ({
|
|
709
709
|
...row,
|
|
710
|
+
key: index + 1,
|
|
710
711
|
[columns[0].key]: index + 1
|
|
711
712
|
}));
|
|
712
713
|
const count = dataSource ? dataSource.length : 0;
|
|
@@ -718,9 +719,6 @@ var TableElement = (props) => {
|
|
|
718
719
|
const rowSelectionConfig = props.rowSelection ? {
|
|
719
720
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
720
721
|
console.log(`selectedRowKeys: ${selectedRowKeys}`, "selectedRows: ", selectedRows);
|
|
721
|
-
if (props.onChange) {
|
|
722
|
-
props.onChange(selectedRows);
|
|
723
|
-
}
|
|
724
722
|
}
|
|
725
723
|
} : void 0;
|
|
726
724
|
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
|