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

希望Swipe 组件 自定义滑块大小新增间隔配置 #12742

Closed
Cyan-963852 opened this issue Mar 30, 2024 · 1 comment
Closed

希望Swipe 组件 自定义滑块大小新增间隔配置 #12742

Cyan-963852 opened this issue Mar 30, 2024 · 1 comment

Comments

@Cyan-963852
Copy link

这个功能解决了什么问题?

Swipe 组件在自定义滑块大小的情况下使用了间距(如margin, gap)会导致最后的元素展示被裁切

你期望的 API 是什么样子的?

--van-swipe-item-gap: 10px 或者 --van-swipe-item-margin: 10px

@chenjiahan
Copy link
Member

可以试试在滑块内部设置 right-padding,而不是在滑块外部设置 margin

@inottn inottn closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants