1

In an antd table I am trying to use the columnWidth property in expandable to set the column width as the minimum. In my table the width for the expandable icon column is very big and by default it's quite large for me. I've tried giving a string | number as said so in the documentation but it doesn't seem to work. Is there any other way to set it to a minimum?

expandable={{expandedRowRender: record => <p style={{ margin: 0 }}></p>,
    columnWidth: 1,
    expandRowByClick: true,
}}      

I've tried to use style and margin as 0 but even that isn't making a difference and columnWidth doesn't seem to work.

4

0 回答 0