style: instance cell style

This commit is contained in:
jialin
2026-03-26 18:20:55 +08:00
committed by jialin
parent 43dfc7e1f0
commit 144d5a6d5f
14 changed files with 125 additions and 51 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ const DropdownButtons: React.FC<
menu={{
onClick: handleMenuClick,
items: _.tail(items).map((item: any) => ({
...item,
..._.omit(item, ['label', 'locale']),
...item.props,
label:
item.locale || item.locale === undefined
@@ -71,7 +71,6 @@ const LogsViewer: React.FC<LogsViewerProps> = forwardRef((props, ref) => {
};
const setCurrentData = (lines: string[]) => {
console.log('setCurrentData', lines);
const dataList = lines.map((line, index) => {
return {
content: line,
@@ -140,7 +139,6 @@ const LogsViewer: React.FC<LogsViewerProps> = forwardRef((props, ref) => {
const handleonToFirst = useCallback(() => {
pageRef.current = 1;
getCurrent();
console.log('pageRef.current', pageRef.current);
setScrollPos(['top', pageRef.current]);
scrollPosRef.current = {
pos: 'top',
@@ -182,13 +180,6 @@ const LogsViewer: React.FC<LogsViewerProps> = forwardRef((props, ref) => {
async (data: { isTop: boolean; isBottom: boolean }) => {
const { isTop, isBottom } = data;
setIsAtTop(isTop);
console.log('scroll========', {
isTop,
isBottom,
loadMoreDone: loadMoreDone.current,
loading: loading,
lineCount: lineCountRef.current
});
if (isBottom) {
scrollPosRef.current = {
pos: 'bottom',