ширина столбцов по умолчанию
This commit is contained in:
parent
bb74f511af
commit
ca11d55228
@ -104,6 +104,15 @@ export const getTableColumns = ({
|
||||
|
||||
const processColumns = (columns, EditCell, Cell) => {
|
||||
columns.forEach((col) => {
|
||||
if (col.header.length > 15) {
|
||||
col.size = 250;
|
||||
}
|
||||
if(col.header.length >= 20){
|
||||
col.size = 350;
|
||||
}
|
||||
if(col.header.length >= 30){
|
||||
col.size = 400;
|
||||
}
|
||||
col.Cell = ({ cell, table, column, row }) => (
|
||||
<Cell
|
||||
row={row}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user