VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] 列动态设置时,多个ListColumn设置CustomLayout会导致渲染错位

Open kapeter opened this issue 5 months ago • 2 comments

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

kapeter avatar Sep 06 '24 13:09 kapeter