VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] In the vtable tree structure data, the collapse and expansion button will clear the selected cells

Open yx-nuola opened this issue 2 months ago • 1 comments

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

  1. 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

yx-nuola avatar Nov 10 '25 07:11 yx-nuola

Image I didn't reproduce the problem you mentioned You'd better provide a complete review option! @yx-nuola

fangsmile avatar Dec 04 '25 06:12 fangsmile

Image

First select the child option, then trigger the fold and unfold button, the previous selection will be lost

yx-nuola avatar Dec 08 '25 06:12 yx-nuola

我还以为是checkbox的选中状态呢!这个单元格的选中效果目前没有时间精力去优化,欢迎共建! @yx-nuola

fangsmile avatar Dec 09 '25 02:12 fangsmile