@apexcura/ui-components 0.0.15-Beta32 → 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 -13
- package/dist/index.mjs +1 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -790,17 +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
|
-
console.log(dataSource);
|
|
802
|
-
}
|
|
803
|
-
};
|
|
804
793
|
const onChangePage = (page, pageSize) => {
|
|
805
794
|
if (props.onChange) {
|
|
806
795
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -829,8 +818,7 @@ var TableElement = (props) => {
|
|
|
829
818
|
dataSource,
|
|
830
819
|
columns,
|
|
831
820
|
size: props.size,
|
|
832
|
-
bordered: true
|
|
833
|
-
onChange: onChangeTable
|
|
821
|
+
bordered: true
|
|
834
822
|
}
|
|
835
823
|
));
|
|
836
824
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -721,17 +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
|
-
console.log(dataSource);
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
724
|
const onChangePage = (page, pageSize) => {
|
|
736
725
|
if (props.onChange) {
|
|
737
726
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -760,8 +749,7 @@ var TableElement = (props) => {
|
|
|
760
749
|
dataSource,
|
|
761
750
|
columns,
|
|
762
751
|
size: props.size,
|
|
763
|
-
bordered: true
|
|
764
|
-
onChange: onChangeTable
|
|
752
|
+
bordered: true
|
|
765
753
|
}
|
|
766
754
|
));
|
|
767
755
|
};
|