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

[swiper] swiper设置成卡片样式,然后设置t-class-prev-image和t-class-next-image出现问题 #2502

Closed
aiyangjun923 opened this issue Dec 18, 2023 · 2 comments · Fixed by #2540
Labels
IssueShoot middle middle level of difficulties

Comments

@aiyangjun923
Copy link

aiyangjun923 commented Dec 18, 2023

tdesign-miniprogram 版本

1.1.8

重现链接

No response

重现步骤

swiper设置成卡片样式,然后设置t-class-prev-image和t-class-next-image前后样式类,首次加载正常,滑动页面会发现只有第一张的前后样式类是正常的,其他的都是没有设置成功,当从第一张滚动到第二张时,发现第二张图是保持t-class-next-image的样式,并没有恢复正常样式,然后从第3张开始,其他的t-class-prev-image和t-class-next-image前后样式类都没有生效

期望结果

能随着轮播图滚动,当前页的前后页都能动态的设置上样式类

实际结果

只有第一次进入页面能正常显示,滚动轮播图后样式类不生效

基础库版本

No response

补充说明

No response

IssueShoot

  • 预估时长: 3
  • 期望完成时间: 2023-12-28 00:00:00 +0000 UTC
  • 开发难度: 中
  • 参与人数: 1
  • 需求对接人: jeannehuang;anlyyao
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

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

@aiyangjun923
Copy link
Author

文档的demo也是一样的问题,可以直接看到这个bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IssueShoot middle middle level of difficulties
Projects
None yet
3 participants