style: worker vram value

This commit is contained in:
jialin
2024-07-17 13:40:32 +08:00
parent 67d26f18c3
commit e1153dcd65
11 changed files with 94 additions and 76 deletions
+7 -5
View File
@@ -10,7 +10,7 @@ import {
type PaginationProps
} from 'antd';
import _ from 'lodash';
import React, { useEffect, useRef, useState } from 'react';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import TableHeader from './components/table-header';
import TableRow from './components/table-row';
import './styles/index.less';
@@ -153,7 +153,7 @@ const SealTable: React.FC<SealTableProps & { pagination: PaginationProps }> = (
);
};
const renderContent = () => {
const renderContent = useCallback(() => {
if (!props.dataSource.length) {
return (
<div className="empty-wrapper">
@@ -186,18 +186,20 @@ const SealTable: React.FC<SealTableProps & { pagination: PaginationProps }> = (
})}
</div>
);
};
}, [props.dataSource, expandedRowKeys, rowSelection, children]);
return (
<>
<div className="seal-table-container">
{renderHeader()}
{loading ? (
{/* {loading ? (
<div className="spin">
<Spin></Spin>
</div>
) : (
renderContent()
)}
)} */}
<Spin spinning={loading}>{renderContent()}</Spin>
</div>
{pagination && (
<div className="pagination-wrapper">
@@ -3,7 +3,6 @@
display: flex;
align-items: center;
height: 54px;
padding: 0 16px;
border-radius: var(--ant-table-header-border-radius);
transition: all 0.2s ease;