chore: className here is unnecessary (#25701)

Co-authored-by: zhanghaoqiang <zhanghaoqiang@focusmedia.cn>
This commit is contained in:
hoho2017 2020-07-20 15:35:15 +08:00 committed by GitHub
parent 43dc337ead
commit 0222d4e7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ import classNames from 'classnames';
import { Table } from 'antd';
function VirtualTable(props) {
const { columns, scroll, className } = props;
const { columns, scroll } = props;
const [tableWidth, setTableWidth] = useState(0);
const widthColumnCount = columns.filter(({ width }) => !width).length;
@ -103,7 +103,7 @@ function VirtualTable(props) {
>
<Table
{...props}
className={classNames(className, 'virtual-table')}
className="virtual-table"
columns={mergedColumns}
pagination={false}
components={{