chore: worker downloading tooltip

This commit is contained in:
jialin
2025-03-25 12:33:29 +08:00
parent 626e29a001
commit b25644c590
14 changed files with 299 additions and 77 deletions
+13 -1
View File
@@ -31,11 +31,23 @@
.cell-span {
display: flex;
padding: 4px 6px;
padding: 6px;
min-height: 32px;
}
.cell-header {
font-weight: var(--font-weight-bold);
}
&.light {
th {
color: var(--ant-color-text);
border-bottom: 1px solid var(--ant-color-split);
}
td {
color: var(--ant-color-text);
border-bottom: 1px solid var(--ant-color-split);
}
}
}
+10 -2
View File
@@ -9,6 +9,7 @@ import TableRow from './row';
export interface ColumnProps {
title: string;
key: string;
width?: string | number;
render?: (data: {
dataIndex: string;
dataList?: any[];
@@ -34,13 +35,20 @@ export interface ColumnProps {
}
interface SimpleTableProps {
theme?: 'dark' | 'light';
columns: ColumnProps[];
dataSource: any[];
bordered?: boolean;
rowKey?: string;
}
const SimpleTabel: React.FC<SimpleTableProps> = (props) => {
const { columns, dataSource, rowKey, bordered = true } = props;
const {
columns,
dataSource,
rowKey,
bordered = true,
theme = 'dark'
} = props;
const scroller = React.useRef<any>(null);
const { initialize } = useOverlayScroller();
@@ -50,7 +58,7 @@ const SimpleTabel: React.FC<SimpleTableProps> = (props) => {
return (
<div style={{ maxHeight: 200 }} ref={scroller}>
<table
className={classNames('simple-table', {
className={classNames('simple-table', theme, {
'simple-table-bordered': bordered
})}
>
+1
View File
@@ -35,6 +35,7 @@ const TableCell: React.FC<TableCellProps> = (props: TableCellProps) => {
return (
<td
width={column.width}
key={colIndex}
rowSpan={column.rowSpan?.({
row,