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

如何手动控制sort状态的高亮显示? #2679

Open
1 task done
fiorayang opened this issue Dec 10, 2024 · 2 comments
Open
1 task done

如何手动控制sort状态的高亮显示? #2679

fiorayang opened this issue Dec 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@fiorayang
Copy link

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

https://vxetable.cn/#/table/api?q=defaultSort

问题描述与截图:

我使用后端排序,每次请求数据后需要重新动态计算一些列的显示,这样会导致每次我的排序状态都会被重置。请问目前可以自己手动控制sort的高亮显示吗?(目前在官网未能找到可用的API)

期望的结果:

No response

操作系统:

macOS 14.5

浏览器版本:

Chrome: 131.0.6778.109

vue 版本:

3.5

vxe-pc-ui 版本:

4.9.19

vxe-table 版本:

4.9.19

是否使用当前最新版本?

  • 我已确认是使用当前的最新版本并已按要求提供复现链接与示例代码。
@fiorayang fiorayang added the bug Something isn't working label Dec 10, 2024
@fiorayang
Copy link
Author

defaultSort确实可以实现需求,但是每次都需要强制重新渲染组件,且卡顿明显,这种方案应该只能算取巧。

@xlz26296
Copy link
Contributor

文档有的

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

2 participants