-
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
[Tabs] 滑动切换使底部激活线条和选择项不在屏幕内 #759
Labels
bug
Something isn't working
Comments
👋 @waney,感谢给 TDesign 提出了 issue。 |
@waney 是指,选中后,滑动tabs,仍希望选中项在可视区域内吗? |
不是的,是指滑动后再选择一个之后,选中项会在动画之后移动到画面之外。 |
这里我们要不要用原生scroll-view标签的scroll-into-view属性来修复一下呢 |
CodingOnStar
pushed a commit
to CodingOnStar/tdesign-miniprogram
that referenced
this issue
Aug 19, 2022
Merged
5 tasks
升级 0.19.3,问题仍然存在。 |
正式版1.0.0问题仍然存在。 |
正式版1.1.1问题仍然存在。 |
@waney @xiaodongning @TSiven 各位有空贴一下实际代码哈~,方便我们复现和定位问题。( 刚刚有位用户朋友私聊了我这个问题,最后发现是因为在t-tab-item上给了margin值导致 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tdesign-miniprogram 版本
0.19.0
重现链接
No response
重现步骤
1、左右滑动tabs
2、选中一项后,动画效果,选中项被移到屏幕外。
<t-tabs t-class="t-tabs" t-class-active="t-class-item" t-class-track="t-class-track" swipeable="{{false}}" value="{{tabIndex}}" bind:change="tabChangeHandle"> <t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:key="index" label="{{item.text}}" value="{{item.key}}" /> </t-tabs>
期望结果
希望滑动后选中项保持在画面内。
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: