ant-design / ant-design/pro-components
固定两个其他的列在列首之后,再拖动固定列区域的列往上排序,就会把 hideInSetting: true的列,直接隐藏掉,
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
在antd protable中,有一个属性是
options={{
setting: true,
density: false,
reload: false,
}},
但是我在columns中,使用了hideInSetting: true,如下,
{
title: '',
search: false,
dataIndex: 'index',
valueType: 'index',
width: 48,
fixed: 'left',
align: 'center',
hideInSetting: true,
},
然后我的列设置中除了 dataIndex为'index',的列,都支持列固定在列首,但是固定两个其他的列在列首之后,再拖动固定列区域的列往上排序,就会把 hideInSetting: true的列,直接隐藏掉,如下图


Contributor guide
Research direction
Start with the antd ProTable column-setting behavior described in the report, using the shown options and a column with dataIndex 'index' and hideInSetting: true. Reproduce the case by fixing two other columns and dragging a fixed column upward. Done means reordering fixed columns no longer hides the hideInSetting column unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100