fix: logs page by the data after parsing

This commit is contained in:
jialin
2025-01-12 17:04:12 +08:00
parent 04d5b692b8
commit 0de0426f72
12 changed files with 1063 additions and 312 deletions
+3 -3
View File
@@ -16,10 +16,11 @@ interface LogsListProps {
height?: number;
onScroll?: (data: { isTop: boolean; isBottom: boolean }) => void;
diffHeight?: number;
showNum?: boolean;
ref?: any;
}
const LogsList: React.FC<LogsListProps> = forwardRef((props, ref) => {
const { dataList, height, onScroll, diffHeight = 96 } = props;
const { dataList, height, showNum, onScroll, diffHeight = 96 } = props;
const {
initialize,
updateScrollerPosition,
@@ -83,7 +84,6 @@ const LogsList: React.FC<LogsListProps> = forwardRef((props, ref) => {
isBottom: false
});
}
// debounceResetStopScroll();
},
[debounceResetStopScroll, scrollEventElement]
);
@@ -136,7 +136,7 @@ const LogsList: React.FC<LogsListProps> = forwardRef((props, ref) => {
<div className={classNames('content')}>
{_.map(dataList, (item: any, index: number) => {
return (
<div key={item.uid} className="text">
<div key={item.uid} className={classNames('text')}>
{item.content}
</div>
);