Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectedRowKeys.value = 在什么时机 进行赋值呢 #1254

Open
axinger opened this issue May 15, 2024 · 0 comments
Open

selectedRowKeys.value = 在什么时机 进行赋值呢 #1254

axinger opened this issue May 15, 2024 · 0 comments

Comments

@axinger
Copy link

axinger commented May 15, 2024

版本号:3.6.3
问题描述:selectedRowKeys.value = 在什么时机 进行赋值呢?
截图&代码: 目前使用这样方式

图片

然后在选中后 selectionChange,

<BasicTable @register="registerTable" :rowSelection="rowSelection" @selection-change="selectionChange">
图片

function selectionChange(val: any) {
console.log('selectionChange = ' + JSON.stringify(val));
}
图片

图片

只能获取到最新点击的数据, "keys":["16000001","16000002","16000003","16000004","16000005"], "rows":[{"id":"16000005",........}] ,这里没有 selectedRowKeys.value = 起初赋值的 数据, selectedRowKeys.value = 在什么时机 进行赋值呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant