@apexcura/ui-components 0.0.14-Beta173 → 0.0.14-Beta174
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -824,7 +824,6 @@ var TableElement = (props) => {
|
|
|
824
824
|
);
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
|
-
const count = dataSource ? dataSource.length : 0;
|
|
828
827
|
const onChangePage = (page, pageSize) => {
|
|
829
828
|
if (props.onChange) {
|
|
830
829
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -848,8 +847,8 @@ var TableElement = (props) => {
|
|
|
848
847
|
className: props.className,
|
|
849
848
|
pagination: props.pagination && {
|
|
850
849
|
showTotal: (total) => `Total: ${total} items`,
|
|
851
|
-
total: count,
|
|
852
|
-
showSizeChanger: count > 10,
|
|
850
|
+
total: props.count,
|
|
851
|
+
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
853
852
|
onChange: onChangePage
|
|
854
853
|
},
|
|
855
854
|
onRow: (record) => {
|
package/dist/index.mjs
CHANGED
|
@@ -758,7 +758,6 @@ var TableElement = (props) => {
|
|
|
758
758
|
);
|
|
759
759
|
}
|
|
760
760
|
};
|
|
761
|
-
const count = dataSource ? dataSource.length : 0;
|
|
762
761
|
const onChangePage = (page, pageSize) => {
|
|
763
762
|
if (props.onChange) {
|
|
764
763
|
props.onChange({ name: "pagination", page, pageSize });
|
|
@@ -782,8 +781,8 @@ var TableElement = (props) => {
|
|
|
782
781
|
className: props.className,
|
|
783
782
|
pagination: props.pagination && {
|
|
784
783
|
showTotal: (total) => `Total: ${total} items`,
|
|
785
|
-
total: count,
|
|
786
|
-
showSizeChanger: count > 10,
|
|
784
|
+
total: props.count,
|
|
785
|
+
showSizeChanger: props.count ? props.count > 10 : 0 > 10,
|
|
787
786
|
onChange: onChangePage
|
|
788
787
|
},
|
|
789
788
|
onRow: (record) => {
|