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添加可选的图片描述文字 #2927

Closed
dpy22 opened this issue Jun 29, 2024 · 2 comments
Closed

[Swiper] 建议在Swiper添加可选的图片描述文字 #2927

dpy22 opened this issue Jun 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@dpy22
Copy link

dpy22 commented Jun 29, 2024

这个功能解决了什么问题

69f9b3e4f3bb1cbdfee34a706719786
建议在Swiper组件的下部添加可选的图片描述文字,毕竟很多情况下,只有一张Swiper图片无法较好地描述完整信息

你建议的方案是什么

建议在组件内添加元素,使用相对位置实现,同时引出为SwiperItem组件的title属性

Copy link
Contributor

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

@anlyyao anlyyao added the enhancement New feature or request label Jul 2, 2024
Fcat003 added a commit to Fcat003/tdesign-miniprogram that referenced this issue Jul 17, 2024
Fcat003 added a commit to Fcat003/tdesign-miniprogram that referenced this issue Jul 17, 2024
@jarmywang
Copy link
Collaborator

jarmywang commented Jul 24, 2024

@dpy22 可以通过navigation/nav的slot实现,通过position: absolute定位,然后监听切换更换文案,示例:
<t-swiper ...> <view slot="navigation" style="position: absolute; bottom: 100rpx; left: 100rpx">描述</view> </t-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

Successfully merging a pull request may close this issue.

3 participants