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] 希望可以轮播的内容不只是图片,可以是其他内容 #1550

Closed
Zlianxin opened this issue Feb 3, 2023 · 6 comments
Closed
Labels
enhancement New feature or request

Comments

@Zlianxin
Copy link

Zlianxin commented Feb 3, 2023

这个功能解决了什么问题

新版组件把swiper-item去掉之后,好像没办法自定义轮播的内容,只可以轮播图片。
但如果出现视频用例中的需求,现在的组件应该是实现不了的。

使用场景的视频用例

你建议的方案是什么

看了一眼现在的组件源码,依赖原生swiper实现,swiper-item在组件内部去写,循环的是参数list,基于现有的代码,确实也没啥建议的方案。。。

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2023

♥️ 有劳 @esky 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Zlianxin

@anlyyao
Copy link
Collaborator

anlyyao commented Feb 7, 2023

@Zlianxin @LeeJim 把swiper-item也抽成一个组件? 这样swiper-item的内容就能支持自定义了

@anlyyao anlyyao added the enhancement New feature or request label Feb 8, 2023
@huhuang03
Copy link

突然把swiper-item去掉了。我代码里面用到了。还要改造之后才能升级,比较麻烦呢。。

@nightmaring
Copy link

同样需要自定义内容

@LeeJim
Copy link
Collaborator

LeeJim commented Aug 16, 2023

建议直接使用小程序原生提供的 swiper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants