style: instance cell style
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user