[update] 解决columns每一个都写dataIndex会有一个横向滚动条的问题
This commit is contained in:
@@ -446,7 +446,8 @@ export default {
|
||||
col = columns.find(col => getKey(col) === key) || {}
|
||||
}
|
||||
// 没有开启拖拽 或 没有宽度 或 有定位,都不能拖拽(防止布局异常,至少有一列不设width并且不能有fixed)
|
||||
if (!col.width || !!col.fixed) {
|
||||
// 或者是最后一列也不能拖拽
|
||||
if (!col.width || !!col.fixed || col.title === columns[columns.length - 1].title) {
|
||||
return <th {...restProps}>{children}</th>
|
||||
}
|
||||
// 开始拖拽监听
|
||||
|
||||
Reference in New Issue
Block a user