Merge pull request 'ширина столбцов по умолчанию' (#62) from fix-front into test
Reviewed-on: #62
This commit is contained in:
commit
361eeb24bb
@ -104,6 +104,15 @@ export const getTableColumns = ({
|
|||||||
|
|
||||||
const processColumns = (columns, EditCell, Cell) => {
|
const processColumns = (columns, EditCell, Cell) => {
|
||||||
columns.forEach((col) => {
|
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 }) => (
|
col.Cell = ({ cell, table, column, row }) => (
|
||||||
<Cell
|
<Cell
|
||||||
row={row}
|
row={row}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user