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

点击 <Table /> 的某一行,如何对该行追加 class,实现高亮 #2263

Closed
ystarlongzi opened this issue Jul 5, 2016 · 6 comments
Closed

Comments

@ystarlongzi
Copy link
Contributor

如题。

看到rowClassName可以配置表格行的类名,但它只会在渲染数据时,触发一次,在点击时,并不会执行。

@afc163
Copy link
Member

afc163 commented Jul 5, 2016

onRowClick 后动态设定 rowClassName

@afc163 afc163 closed this as completed Jul 5, 2016
@ystarlongzi
Copy link
Contributor Author

我知道为什么点击后不会执行了,因为我没更改组件的 state,所以就不会执行 render 函数了。。。傻了

@zhangolve
Copy link

感谢楼上的提问和解答,对我也有很大帮助。

@wnSmile
Copy link

wnSmile commented Apr 27, 2018

请问是怎么解决的 ,有代码可以查看吗

@lvybriage
Copy link

请问 可以paste代码吗 感激不尽

@huangguozhen
Copy link

怎么给制定的行加className

@ant-design ant-design locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants