antvis / S2

⚡️ A practical visualization library for tabular analysis.

Home Page:https://s2.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

如何实现点击单元格时,让单元格边框变蓝,再次点击点击时单元格边框恢复正常颜色

Create-Peace opened this issue · comments

🏷 Version

Package Version
@antv/s2 next
@antv/s2-react
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

如何实现点击单元格时,让单元格边框变蓝,点击别的单元或者再次点击点击时单元格边框恢复正常颜色 ?

🔗 Reproduce Link

😊 Expected Behavior

😅 Current Behavior

文档 调整交互主题 有写, 多看文档再提问, 谢谢.

image

点击别的单元或者再次点击点击时单元格边框恢复正常颜色

监听单元格点击, 重置交互即可

s2.interaciton.reset()

另外使用问题请在 https://github.com/antvis/S2/discussions 提问, 谢谢配合.