ant-design / ant-design/pro-components

固定两个其他的列在列首之后,再拖动固定列区域的列往上排序,就会把 hideInSetting: true的列,直接隐藏掉,

Open
#8,539 0 comments 0 reactions 0 assignees View on GitHub
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的列,直接隐藏掉,如下图
![image](https://github.com/ant-design/pro-components/assets/171925644/9797a9b9-bd4f-4355-b61e-f456809f10e2)
![image](https://github.com/ant-design/pro-components/assets/171925644/8d33d1b1-1f3d-437c-b8ba-dc69c1af7df1)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.