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] index和anchor能否支持差异化显示 #3017

Closed
prprprPro opened this issue Jul 29, 2024 · 2 comments · Fixed by #3222
Closed

[indexes] index和anchor能否支持差异化显示 #3017

prprprPro opened this issue Jul 29, 2024 · 2 comments · Fixed by #3222
Labels
enhancement New feature or request

Comments

@prprprPro
Copy link

tdesign-miniprogram 版本

1.5.0

重现链接

No response

重现步骤

需要在index前面加一个非字母分组时,譬如:

{
  index: '热门城市',
  children: ['北京市', '上海市']
}

右边会显示非常长:
image

而t-indexes-anchor的插槽显示有点奇怪

期望结果

希望能够给t-indexes-anchor或t-indexes加一个能够修改显示内容的属性

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

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

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 24, 2024

可以通过 t-class-sidebar、t-class-sidebar-item 等外部样式类自定义右侧索引样式

@anlyyao anlyyao added the enhancement New feature or request label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants