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 索引]组件样式出现bug,以及滚动中标题的定位与消失等问题 #2985

Closed
RADWIMPS426 opened this issue Jul 16, 2024 · 3 comments · Fixed by #3000
Closed
Labels
bug Something isn't working

Comments

@RADWIMPS426
Copy link
Collaborator

RADWIMPS426 commented Jul 16, 2024

tdesign-miniprogram 版本

1.4.5

重现链接

https://tdesign.tencent.com/miniprogram/components/indexes

重现步骤

image image image

期望结果

No response

实际结果

1.胶囊样式出现黑色的色块
2.胶囊样式的标题定位不准确
3.基础样式在滚动中标题模块会消失

基础库版本

No response

补充说明

No response

Copy link
Contributor

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

@RADWIMPS426 RADWIMPS426 changed the title [ Indexes 索引] [ Indexes 索引]组件样式出现bug,以及滚动中标题的定位与消失等问题 Jul 16, 2024
@ArcticFoxPro
Copy link
Contributor

同样的问题,能在 Xiaomi 14 Pro 真机使用 TDesign 官方 Demo 复现。

似乎#2825 也属于此问题或其连带问题

mmexport1721114989465.jpg

mmexport1721114983299.mp4

@anlyyao anlyyao added the need confirm need confirm label Jul 17, 2024
@jby0107
Copy link
Collaborator

jby0107 commented Jul 18, 2024

官方demo中两个页面indexes组件的groupTop数组似乎是共享的,复现步骤:

  1. 先进入「基础用法」页面,此时indexes组件正常;返回上一页面;进入「胶囊索引」页面,发现indexes组件anchor定位不正确:
ScreenRecording_07-18-2024.16-57-21_1.MP4
  1. 重新加载小程序;这次先进入「胶囊索引」页面,发现indexes组件正常;返回上一页面;进入「基础用法」页面,发现出现anchor定位错误,anchor名称消失问题:
ScreenRecording_07-18-2024.16-56-27_1.MP4

在ready()中打点发现后进入的页面初始化groupTop时groupTop中存在前一个页面中groupTop数组中的信息:
截屏2024-07-18 17 41 47
截屏2024-07-18 17 41 57

@jarmywang jarmywang added bug Something isn't working and removed need confirm need confirm labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants