bhd-components 0.10.30 → 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.
- package/dist/index.esm.es5.development.js +7 -10
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/AIMessageList/components/virtuosoList/index.js +7 -8
- package/esm/AIMessageList/components/virtuosoList/index.js +7 -10
- package/package.json +1 -1
|
@@ -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
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
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);
|