VTable
VTable copied to clipboard
[Bug] 列动态设置时,多个ListColumn设置CustomLayout会导致渲染错位
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
动态删除使用的是实例上的updateColumn api吗?建议在react环境这么使用,目前react标签和option是两套解析逻辑,混用的话会有错乱问题;这里建议直接重新组织Column标签,使用react自己的更新机制来动态设置列
使用的是options传入