[Bug] 列动态设置时,多个ListColumn设置CustomLayout会导致渲染错位
Open
@Rui-Sun is already working on this.
Since Sep 9, 2024.
bug
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
Version
1.7.3
Link to Minimal Reproduction
[Bug] 列动态设置时,设置了多个customLayout会导致渲染错误
Steps to Reproduce
1、配置两个ListColumn,都放一个CustomLayout
2、动态清除第一个ListColumn
Current Behavior
第二个ListColumn会渲染第一个ListColumn的CustomLayout。
这两个componentId分别为ListColumn-0,ListColumn-1,customLayoutCache记录ID也是记录了这两个。
动态删除第一个ListColumn后,第二个ListColumn的componentId变成了ListColumn-0,读取了customLayoutCache中id为ListColumn-0的配置。
Expected Behavior
建议使用field作为ComponentId
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.