opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.64k stars 263 forks source link

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

Open traveler-h opened 5 months ago

traveler-h commented 5 months ago

Version

~3.11.0

Vue Version

latest

Link to minimal reproduction

grid.value.getSelectRecords()

Step to reproduce

<tiny-grid row-id="id" ref="grid" :select-config="selectConfig" :fetch-data="fetchData"

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

Issues-translate-bot commented 5 months ago

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

gimmyhehe commented 3 months ago

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

Issues-translate-bot commented 3 months ago

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