ods-component-lib 1.17.52 → 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.
@@ -1,4 +1,4 @@
1
- import React, { useState, useRef } from 'react';
1
+ import React, { useState, useRef, useEffect } from 'react';
2
2
  import { AutoComplete, Button, Dropdown, Calendar, Card as Card$1, Checkbox, DatePicker, Divider, Input, Form, Image, InputNumber, List, Modal, notification, Radio, Rate, Select, Spin, Switch, Tabs, Table, Tag, Timeline, TimePicker, Typography } from 'antd';
3
3
  import styled, { ThemeProvider } from 'styled-components';
4
4
  import Card from 'antd/es/card/Card';
@@ -1194,6 +1194,14 @@ var renderMenuItem = function renderMenuItem() {
1194
1194
  };
1195
1195
  function OdsDataGrid(props) {
1196
1196
  var dataGridRef = useRef(null);
1197
+ useEffect(function () {
1198
+ setTimeout(function () {
1199
+ var totalCount = props.dataSource.length;
1200
+ dataGridRef.current.instance.component.beginUpdate();
1201
+ dataGridRef.current.instance.totalCount(totalCount);
1202
+ dataGridRef.current.instance.component.endUpdate();
1203
+ }, 1000);
1204
+ }, []);
1197
1205
  return grid(props, dataGridRef);
1198
1206
  }
1199
1207
  function grid(props, dataGridRef) {
@@ -1439,7 +1447,8 @@ function grid(props, dataGridRef) {
1439
1447
  menuItemRender: renderMenuItem
1440
1448
  })), React.createElement(Summary, null, React.createElement(TotalItem, {
1441
1449
  column: "Id",
1442
- summaryType: "count"
1450
+ summaryType: "count",
1451
+ displayFormat: "{0} Total Data"
1443
1452
  }), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
1444
1453
  return React.createElement(TotalItem, {
1445
1454
  column: item.columnName,