tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: grid表格设置了select-config 的 reserve 属性之后,可以看到翻页前勾选的状态, 但是在通过getSelectRecords() 获取值的时候,无法获取到翻页前勾选的值

Open traveler-h opened this issue 9 months ago • 3 comments

Version

~3.11.0

Vue Version

latest

Link to minimal reproduction

grid.value.getSelectRecords()

Step to reproduce

const selectConfig = { reserve: true, } grid.value.getSelectRecords()

What is expected

No response

What is actually happening

No response

What is your project name

https://github.com/opentiny/tiny-vue/

Any additional comments (optional)

No response

traveler-h avatar May 10 '24 05:05 traveler-h

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: After setting the reserve attribute of select-config in the grid table, you can see the checked status before turning the page. However, when getting the value through getSelectRecords(), you cannot get the check status. The value checked before the page

Issues-translate-bot avatar May 10 '24 05:05 Issues-translate-bot

@traveler-h 目前getSelectRecords是获取当前表格数据中已选中数据,如果需要获取选中数据目前可以同步grid.value.selection获取,我们后续评估是否要提供获取配置了reserve后的selection方法

gimmyhehe avatar Aug 01 '24 01:08 gimmyhehe

Bot detected the issue body's language is not English, translate it automatically.


@traveler-h Currently, getSelectRecords is used to obtain the selected data in the current table data. If you need to obtain the selected data, you can currently obtain it synchronously with grid.value.selection. We will subsequently evaluate whether to provide selection after configuring reserve. method

Issues-translate-bot avatar Aug 01 '24 01:08 Issues-translate-bot