ant-design / ant-design/pro-components
🐛[BUG] ProTable 中重新打开 settingToolbar 后列的省略号和 Tooltip 失效 🐞🐞🐞
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🐛 bug 描述
在第一次打开 Table 的 settingToolbar 时,列中设置的 ellipsisText 显示正常(文字被省略,并显示 Tooltip)。但当我关闭并再次打开 settingToolbar 后,EllipsisTooltip 就不再生效了,文字不再省略,也没有 Tooltip 显示。
### 📷 复现步骤
1. 打开包含 settingToolbar 的表格页面;
2. 点击右上角的“列设置”按钮,打开列设置;
3. 确认某一列设置了 ellipsis: true 并且第一次加载正常;
4. 关闭列设置,再次点击打开;
5. 此时省略号和 Tooltip 均不显示。
### 🏞 期望结果
每次打开 settingToolbar 时,带有 ellipsis: true 的列都应该正常显示省略效果,并带有 Tooltip 提示。
### 💻 复现代码
```tsx
```
### © 版本信息
- ProComponents 版本: [2.7.14]
- umi 版本
- 浏览器环境
- 开发环境 [mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start with the provided ProTable reproduction using settingToolbar and a column with ellipsis: true, then trace the settingToolbar reopen path and the EllipsisTooltip behavior. Done means the ellipsis and Tooltip remain visible each time the column settings are opened.
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
- 45/100