Material UI TablePagination 中的 属性 ColSpan 是什么意思?
What does the property ColSpan in the Material UI TablePagination mean?
这里的 ColSpan 是做什么用的?
示例来自:https://material-ui.com/components/tables/#table
寻找箭头
<TableFooter>
<TableRow>
<TablePagination
rowsPerPageOptions={[5, 10, 25, { label: 'All', value: -1 }]}
------------> colSpan={3}
count={rows.length}
rowsPerPage={rowsPerPage}
page={page}
SelectProps={{
inputProps: { 'aria-label': 'rows per page' },
native: true,
}}
onChangePage={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
ActionsComponent={TablePaginationActions}
/>
</TableRow>
</TableFooter>
组件<TablePagination>
provides props not listed to <TableCell>
, which provides props not listed to the native element. I assume that would be <td>
属性 colSpan
决定一个单元格跨越多少列。
这里的 ColSpan 是做什么用的?
示例来自:https://material-ui.com/components/tables/#table
寻找箭头
<TableFooter>
<TableRow>
<TablePagination
rowsPerPageOptions={[5, 10, 25, { label: 'All', value: -1 }]}
------------> colSpan={3}
count={rows.length}
rowsPerPage={rowsPerPage}
page={page}
SelectProps={{
inputProps: { 'aria-label': 'rows per page' },
native: true,
}}
onChangePage={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
ActionsComponent={TablePaginationActions}
/>
</TableRow>
</TableFooter>
组件<TablePagination>
provides props not listed to <TableCell>
, which provides props not listed to the native element. I assume that would be <td>
属性 colSpan
决定一个单元格跨越多少列。