@apexcura/ui-components 0.0.15-Beta31 → 0.0.15-Beta33
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 -12
- package/dist/index.mjs +1 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -790,16 +790,6 @@ var TableElement = (props) => {
|
|
|
790
790
|
}))
|
|
791
791
|
];
|
|
792
792
|
}
|
|
793
|
-
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
794
|
-
if (extra && extra.currentDataSource) {
|
|
795
|
-
setDataSource(
|
|
796
|
-
extra.currentDataSource.map((row, index) => ({
|
|
797
|
-
...row,
|
|
798
|
-
index: index + 1
|
|
799
|
-
}))
|
|
800
|
-
);
|
|
801
|
-
}
|
|
802
|
-
};
|
|
803
793
|
const onChangePage = (page, pageSize) => {
|
|
804
794
|
if (props.onChange) {
|
|
805
795
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -828,8 +818,7 @@ var TableElement = (props) => {
|
|
|
828
818
|
dataSource,
|
|
829
819
|
columns,
|
|
830
820
|
size: props.size,
|
|
831
|
-
bordered: true
|
|
832
|
-
onChange: onChangeTable
|
|
821
|
+
bordered: true
|
|
833
822
|
}
|
|
834
823
|
));
|
|
835
824
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -721,16 +721,6 @@ var TableElement = (props) => {
|
|
|
721
721
|
}))
|
|
722
722
|
];
|
|
723
723
|
}
|
|
724
|
-
const onChangeTable = (pagination, filters, sorter, extra) => {
|
|
725
|
-
if (extra && extra.currentDataSource) {
|
|
726
|
-
setDataSource(
|
|
727
|
-
extra.currentDataSource.map((row, index) => ({
|
|
728
|
-
...row,
|
|
729
|
-
index: index + 1
|
|
730
|
-
}))
|
|
731
|
-
);
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
724
|
const onChangePage = (page, pageSize) => {
|
|
735
725
|
if (props.onChange) {
|
|
736
726
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -759,8 +749,7 @@ var TableElement = (props) => {
|
|
|
759
749
|
dataSource,
|
|
760
750
|
columns,
|
|
761
751
|
size: props.size,
|
|
762
|
-
bordered: true
|
|
763
|
-
onChange: onChangeTable
|
|
752
|
+
bordered: true
|
|
764
753
|
}
|
|
765
754
|
));
|
|
766
755
|
};
|