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

[indexes] 希望索引可以有点击跳转功能 #2477

Closed
HungryFlo opened this issue Dec 6, 2023 · 6 comments
Closed

[indexes] 希望索引可以有点击跳转功能 #2477

HungryFlo opened this issue Dec 6, 2023 · 6 comments
Labels
question This is a question, not a bug

Comments

@HungryFlo
Copy link

这个功能解决了什么问题

以城市为例,当用户点击一个城市时,可以检测点击的城市,并做出相应的操作(如跳转到相应城市对应的页面)

你建议的方案是什么

添加该功能或在文档中说明如何实现

Copy link
Contributor

github-actions bot commented Dec 6, 2023

👋 @HungryFlo,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HungryFlo
Copy link
Author

HungryFlo commented Dec 6, 2023 via email

@anlyyao anlyyao added the question This is a question, not a bug label Dec 6, 2023
@anlyyao
Copy link
Collaborator

anlyyao commented Dec 6, 2023

@HungryFlo 在cell上加个点击事件就好,自己在事件里面写跳转或者其他业务逻辑

@HungryFlo
Copy link
Author

请问如何区分点击不同cell的不同业务逻辑,是使用下标吗?

@anlyyao
Copy link
Collaborator

anlyyao commented Dec 7, 2023

请问如何区分点击不同cell的不同业务逻辑,是使用下标吗?

都可以。 如果你想同步拿到当前子项更多信息,可以用data-* 属性协助标示

@HungryFlo
Copy link
Author

明白啦,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants