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

vxe-table 通过点击排序,服务端排序返回渲染数据正常。点击全选。和勾选数据数据是错乱的 #2670

Open
1 task done
2414942130 opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@2414942130
Copy link

可复现的链接(包含复现链接与示例代码):

/** * 选择项变化 * @param {array} selection 选择项 */ const hand const handleSortChange = (data)=>{ console.log('SortChange',data); // 触发自定义排序事件 emits('sort-change', data); }leSelectionChange = (selection) => { console.log(1,selection); // 将选中的记录和保留项合并后传递出去 const selectionData = [...selection.records, ...selection.reserves].reverse() console.log('选中', selectionData); emits('update:selection', selectionData) emits('selection-change', selectionData) } const handleSelectionAll = (selection) => { console.log(2,selection); const selectionData = [...selection.records, ...selection.reserves].reverse() console.log('全选', selectionData); emits('update:selection', selectionData) }

问题描述与截图:

@checkbox-change="handleSelectionChange"
@checkbox-all="handleSelectionAll"

期望的结果:

请问有方法解决嘛

操作系统:

10

浏览器版本:

127.0.6533.120

vue 版本:

3.5

vxe-pc-ui 版本:

"vxe-pc-ui": "4.3.2",

vxe-table 版本:

"vxe-table": "4.9.4"

是否使用当前最新版本?

  • 我已确认是使用当前的最新版本并已按要求提供复现链接与示例代码。
@2414942130 2414942130 added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant