Commit 585e6013 by zhaochengxiang

bug fix

parent 565e943d
......@@ -67,12 +67,6 @@ function FC<RowType extends object = any>({ width, maxHeight, pageSize, pageNum,
if (!!columns && tableWidth > 0) {
const contentWidth = getWidth(width ?? tableWidth,extraColWidth)
for (const item of columns??[]) {
const index = (cols??[]).findIndex(_item => item.dataIndex === _item.dataIndex && item.title === _item.title)
if (index !== -1) {
item.width = cols[index].width
}
}
setDefaultWidth(columns, contentWidth)
paddingCol.current.width = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment