ods-component-lib 1.17.55 → 1.17.57

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, useEffect } from 'react';
1
+ import React, { useState, useRef } 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,17 +1194,6 @@ 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
- if (dataGridRef.current.instance.component !== undefined) {
1201
- debugger;
1202
- dataGridRef.current.instance.component.beginUpdate();
1203
- dataGridRef.current.instance.totalCount(totalCount);
1204
- dataGridRef.current.instance.component.endUpdate();
1205
- }
1206
- }, 1000);
1207
- }, [props.dataSource]);
1208
1197
  return grid(props, dataGridRef);
1209
1198
  }
1210
1199
  function grid(props, dataGridRef) {