@apexcura/ui-components 0.0.14-Beta157 → 0.0.14-Beta158
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 +10 -9
- package/dist/index.mjs +10 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -739,7 +739,7 @@ var TableElement = (props) => {
|
|
|
739
739
|
(0, import_react20.useEffect)(() => {
|
|
740
740
|
if (tbody) {
|
|
741
741
|
setDataSource(
|
|
742
|
-
tbody
|
|
742
|
+
tbody.map((row, index) => ({
|
|
743
743
|
...row,
|
|
744
744
|
key: index,
|
|
745
745
|
index: index + 1
|
|
@@ -802,14 +802,15 @@ var TableElement = (props) => {
|
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
const onChangeTable = (pagination, filters, sorter) => {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
805
|
+
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
806
|
+
if (extra && extra.currentDataSource) {
|
|
807
|
+
setDataSource(
|
|
808
|
+
extra.currentDataSource.map((row, index) => ({
|
|
809
|
+
...row,
|
|
810
|
+
index: index + 1
|
|
811
|
+
}))
|
|
812
|
+
);
|
|
813
|
+
}
|
|
813
814
|
};
|
|
814
815
|
const count = dataSource ? dataSource.length : 0;
|
|
815
816
|
const onChangePage = (page, pageSize) => {
|
package/dist/index.mjs
CHANGED
|
@@ -673,7 +673,7 @@ var TableElement = (props) => {
|
|
|
673
673
|
useEffect3(() => {
|
|
674
674
|
if (tbody) {
|
|
675
675
|
setDataSource(
|
|
676
|
-
tbody
|
|
676
|
+
tbody.map((row, index) => ({
|
|
677
677
|
...row,
|
|
678
678
|
key: index,
|
|
679
679
|
index: index + 1
|
|
@@ -736,14 +736,15 @@ var TableElement = (props) => {
|
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
const onChangeTable = (pagination, filters, sorter) => {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
739
|
+
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
740
|
+
if (extra && extra.currentDataSource) {
|
|
741
|
+
setDataSource(
|
|
742
|
+
extra.currentDataSource.map((row, index) => ({
|
|
743
|
+
...row,
|
|
744
|
+
index: index + 1
|
|
745
|
+
}))
|
|
746
|
+
);
|
|
747
|
+
}
|
|
747
748
|
};
|
|
748
749
|
const count = dataSource ? dataSource.length : 0;
|
|
749
750
|
const onChangePage = (page, pageSize) => {
|