[Bug] In the vtable tree structure data, the collapse and expansion button will clear the selected cells
Version
1.20.3
Link to Minimal Reproduction
No
Steps to Reproduce
Add tree: true to a column in columns, where there are children in the records data, then collapse it. Select a sub cell, and click collapse to expand, which will clear the previously selected cell
const columns = [ { field: ''resourceType', title: 'ResourceType', tree: true, }, { field: 'resourceName', title: 'ResourceName', }, };
const records = [ { resourceType: 'a', id: '1', children: [ { resourceType: 'a', resourceName: 'xxx1', id: '1-1'} { resourceType: 'a', resourceName: 'xxx2', id: '1-2'} ..., }, { resourceType: 'b', id: '2', children: [ { resourceType: 'b', resourceName: 'yxxx1', id: '2-1'} { resourceType: 'b', resourceName: 'yxxx2', id: '2-2'} ..., }, ];
Current Behavior
- In the vtable tree structure data, click the collapse and expand buttons to clear the previously selected cells Set tree: true in column
Expected Behavior
Do not clear previously selected cells when folding and unfolding tree data
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
I didn't reproduce the problem you mentioned
You'd better provide a complete review option! @yx-nuola
First select the child option, then trigger the fold and unfold button, the previous selection will be lost
我还以为是checkbox的选中状态呢!这个单元格的选中效果目前没有时间精力去优化,欢迎共建! @yx-nuola