bhd-components 0.10.29 → 0.10.31

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.
@@ -14532,20 +14532,17 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14532
14532
  setDataSource(function(data) {
14533
14533
  return _to_consumable_array(data).concat(_to_consumable_array(list));
14534
14534
  });
14535
- setFirstItemIndex(function(num) {
14536
- return num + 1;
14537
- });
14538
- // timerRef.current.scrollTimer = setTimeout(() => {
14539
14535
  scrollToBottom();
14540
- // }, 100);
14541
14536
  };
14542
14537
  var scrollToBottom = function() {
14543
14538
  if (!virtuosoRef.current || !autoScrollBottom.current) return;
14544
- virtuosoRef.current.scrollToIndex({
14545
- index: "LAST",
14546
- align: "end",
14547
- behavior: "auto"
14548
- });
14539
+ timerRef.current.scrollTimer = setTimeout(function() {
14540
+ virtuosoRef.current.scrollToIndex({
14541
+ index: "LAST",
14542
+ align: "end",
14543
+ behavior: "auto"
14544
+ });
14545
+ }, 100);
14549
14546
  };
14550
14547
  var getData = function(page, pageSize) {
14551
14548
  setLoading(true);
@@ -14990,6 +14987,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14990
14987
  ref: wrapperRef,
14991
14988
  children: /*#__PURE__*/ jsx(cn, {
14992
14989
  ref: virtuosoRef,
14990
+ totalCount: dataSource.length,
14993
14991
  style: {
14994
14992
  height: "100%"
14995
14993
  },