-
Notifications
You must be signed in to change notification settings - Fork 277
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
t-indexes 只能全局展示,如果顶部有内容t-indexes被scroll-view包裹展示的话页面效果不能生效 #2625
Comments
👋 @lisashare,感谢给 TDesign 提出了 issue。 |
@lisashare 提供一下可复现代码片段吧~ |
@anlyyao 你好,不好意思 是我写错布局了,并不需要使用scroll-view包裹内容。 这是单独的文件,其余的在项目里面不好分割。 这是我的需求效果:https://github.com/Tencent/tdesign-miniprogram/assets/37070480/0930e16a-da6f-4271-82f1-6bbf8b501c90 |
我也想实现这个效果,但t-indexes放到scroll-view后,就不正常了:
期望: 结果: |
@Kenjiang110 我视频的效果最后用的是skyline |
用了你test.zip中的代码,css偏移、padding对于t-indexes-anchor是无效的,还是会定位到页面顶端。顶部内容只是sticky到indexes上面,挡住了而已。 |
这个功能解决了什么问题
t-indexes 只能全局展示,如果顶部有内容t-indexes被scroll-view包裹展示的话页面效果不能生效
你建议的方案是什么
支持顶部有内容,scroll-view包裹后点击侧边栏及吸顶效果不失效
The text was updated successfully, but these errors were encountered: