fix: detail reduction of UI (#1131)

This commit is contained in:
Qi
2023-02-22 11:12:34 +08:00
committed by GitHub
parent 0b072da346
commit 7163ea6c4b
30 changed files with 122 additions and 104 deletions

View File

@@ -1,13 +1,6 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import { TableCellProps } from './interface';
import { StyledTableCell } from './styles';
export const TableCell = ({
children,
...props
}: PropsWithChildren<
TableCellProps & HTMLAttributes<HTMLTableCellElement>
>) => {
export const TableCell = ({ children, ...props }: TableCellProps) => {
return <StyledTableCell {...props}>{children}</StyledTableCell>;
};

View File

@@ -5,6 +5,7 @@
// import TableRow from '@mui/material/TableRow';
//
export * from './interface';
export * from './Table';
export * from './TableBody';
export * from './TableCell';

View File

@@ -1,8 +1,9 @@
import { CSSProperties } from 'react';
import { CSSProperties, HTMLAttributes, PropsWithChildren } from 'react';
export type TableCellProps = {
align?: 'left' | 'right' | 'center';
ellipsis?: boolean;
proportion?: number;
style?: CSSProperties;
};
} & PropsWithChildren &
HTMLAttributes<HTMLTableCellElement>;