如何在react中添加数据表高度[关闭]

问题描述 投票:0回答:1

我使用下面的代码在数据坦上添加一些特定的高度。但它不接受样式高度。

<DataTable
    pagination
    columns={[
        {
            name: 'INVOICE ID',
            sortable: true,
            maxWidth: '150px',
            selector: row => row.invoice_id
        },
        {
            name: 'Customer',
            sortable: true,
            omit: false,
            maxWidth: '200px',
            selector: row => row.customer_name
        }
        ]}
    paginationPerPage={7}
    defaultRowHeight={250}
    className='react-dataTable'
    sortIcon={<ChevronDown size={10} />}
    paginationComponent={CustomPagination}
    paginationDefaultPage={currentPage + 1}
    selectableRowsComponent={BootstrapCheckbox}
/>

我想更改行高。请推荐我。

javascript reactjs react-hooks datatable
1个回答
0
投票

您可以尝试查看该组件的文档吗?或者请提供更多上下文和信息,了解该组件的来源?

它是定制组件还是您正在使用某些组件库?

也许

style
道具可以帮助你?

© www.soinside.com 2019 - 2024. All rights reserved.