ods-component-lib 1.17.51 → 1.17.53
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 +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1198,6 +1198,14 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
function OdsDataGrid(props) {
|
|
1200
1200
|
var dataGridRef = React.useRef(null);
|
|
1201
|
+
React.useEffect(function () {
|
|
1202
|
+
setTimeout(function () {
|
|
1203
|
+
var totalCount = props.dataSource.length;
|
|
1204
|
+
dataGridRef.current.instance.component.beginUpdate();
|
|
1205
|
+
dataGridRef.current.instance.totalCount(totalCount);
|
|
1206
|
+
dataGridRef.current.instance.component.endUpdate();
|
|
1207
|
+
}, 1000);
|
|
1208
|
+
}, []);
|
|
1201
1209
|
return grid(props, dataGridRef);
|
|
1202
1210
|
}
|
|
1203
1211
|
function grid(props, dataGridRef) {
|
|
@@ -1442,8 +1450,9 @@ function grid(props, dataGridRef) {
|
|
|
1442
1450
|
}), React__default.createElement(dataGrid.Item, {
|
|
1443
1451
|
menuItemRender: renderMenuItem
|
|
1444
1452
|
})), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
|
|
1445
|
-
column:
|
|
1446
|
-
summaryType: "count"
|
|
1453
|
+
column: "Id",
|
|
1454
|
+
summaryType: "count",
|
|
1455
|
+
displayFormat: "{0} Total Data"
|
|
1447
1456
|
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1448
1457
|
return React__default.createElement(dataGrid.TotalItem, {
|
|
1449
1458
|
column: item.columnName,
|