@apexcura/ui-components 0.0.11-Beta251 → 0.0.11-Beta252
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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -702,10 +702,14 @@ var TableElement = (props) => {
|
|
|
702
702
|
...row,
|
|
703
703
|
[columns[0].key]: index + 1
|
|
704
704
|
}));
|
|
705
|
+
const count = dataSource ? dataSource.length : 0;
|
|
705
706
|
return /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, /* @__PURE__ */ import_react21.default.createElement(
|
|
706
707
|
import_antd14.Table,
|
|
707
708
|
{
|
|
708
|
-
pagination: {
|
|
709
|
+
pagination: {
|
|
710
|
+
showTotal: (total) => `Total: ${total} items`,
|
|
711
|
+
total: count
|
|
712
|
+
},
|
|
709
713
|
dataSource,
|
|
710
714
|
columns,
|
|
711
715
|
bordered: true,
|
package/dist/index.mjs
CHANGED
|
@@ -650,10 +650,14 @@ var TableElement = (props) => {
|
|
|
650
650
|
...row,
|
|
651
651
|
[columns[0].key]: index + 1
|
|
652
652
|
}));
|
|
653
|
+
const count = dataSource ? dataSource.length : 0;
|
|
653
654
|
return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
|
|
654
655
|
Table2,
|
|
655
656
|
{
|
|
656
|
-
pagination: {
|
|
657
|
+
pagination: {
|
|
658
|
+
showTotal: (total) => `Total: ${total} items`,
|
|
659
|
+
total: count
|
|
660
|
+
},
|
|
657
661
|
dataSource,
|
|
658
662
|
columns,
|
|
659
663
|
bordered: true,
|