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

[ImageViewer] 重新设置图片列表和 initial-index, initial-index不生效 #3102

Closed
dadtakesmefly opened this issue Aug 28, 2024 · 1 comment · Fixed by #3111
Closed
Labels
bug Something isn't working

Comments

@dadtakesmefly
Copy link
Contributor

tdesign-miniprogram 版本

1.6.0

重现链接

https://developers.weixin.qq.com/s/PjlbTMmm7KTG

重现步骤

点击图片预览 设置 initial-index 然后点击删除按钮,重新设置图片列表和 initial-index, initial-index不生效,会出现initial-index比图片长度还大的bug

期望结果

期望能重新设置 initial-index

实际结果

请问一下,ImageViewer组件预览时候,设置了initialndex,再点击删除的话,图片列表长度都发生变化了,但是这个initialndex却不变,甚至比图片长度还要大,其实我重新设置了也不生效

基础库版本

No response

补充说明

No response

Copy link
Contributor

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

@jarmywang jarmywang added the bug Something isn't working label Sep 1, 2024
@jarmywang jarmywang changed the title [组件名称] 描述问题的标题 [ImageViewer] 重新设置图片列表和 initial-index, initial-index不生效 Sep 1, 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
2 participants