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

Bug: 表头后端排序后刷新数据后,排序的图标无法标为排序(就是点击排序排序按钮会变黄,但是刷新数据后就没了,也无法让他变黄,标识为“筛选状态”) #5200

Closed
5 tasks done
daipingfa opened this issue Dec 20, 2024 · 4 comments

Comments

@daipingfa
Copy link

Version

Vben Admin V5

Describe the bug?

Bug: 表头后端排序后刷新数据后,排序的图标无法标为排序(就是点击排序排序按钮会变黄,但是刷新数据后就没了,也无法让他变黄,标识为“筛选状态”)

Reproduction

Bug: 表头后端排序后刷新数据后,排序的图标无法标为排序(就是点击排序排序按钮会变黄,但是刷新数据后就没了,也无法让他变黄,标识为“筛选状态”)

System Info

Bug: 表头后端排序后刷新数据后,排序的图标无法标为排序(就是点击排序排序按钮会变黄,但是刷新数据后就没了,也无法让他变黄,标识为“筛选状态”)

Relevant log output

Bug: 表头后端排序后刷新数据后,排序的图标无法标为排序(就是点击排序排序按钮会变黄,但是刷新数据后就没了,也无法让他变黄,标识为“筛选状态”)

Validations

@daipingfa
Copy link
Author

Bug: 表头后端排序后刷新数据后,排序的图标无法标为排序(就是点击排序排序按钮会变黄,但是刷新数据后就没了,也无法让他变黄,标识为“筛选状态”)

@likui628
Copy link
Collaborator

这种最好是能提供一个可以复现的代码块

Copy link

Hello @daipingfa. Please provide the complete reproduction steps and code. Issues labeled by needs reproduction will be closed if no activities in 3 days.

@mynetfan
Copy link
Collaborator

mynetfan commented Dec 21, 2024

看VxeTable的文档。那个刷新按钮默认的code为reload,点击之后会重置所有的排序和当前分页等信息。
你得在toolbarConfig中将refresh配置为{code:'query'},这样才能在点击刷新按钮后重新查询而不是重置表格。
具体查看演示代码 playground\src\views\examples\vxe-table\remote.vue

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

No branches or pull requests

3 participants