-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
SwipeAction组件能不能控制滑块的宽度 #1595
Comments
It will be better to write your issue/comment in English, so more people can understand you. |
JS是怎么控制滑块滑动的距离的?即滑块滑动时的CSS的 left 值可以修改吗? |
看代码应该是没法根据内容来自适应宽度的,是有点不灵活。 |
很多计算都是根据 这个 width 来做的,如果 width 可以自定义,在计算的时候就会很复杂,而且用户有可能每个 button 还不一样宽的话,就没办法做了; 有兴趣研究的,来 PR https://github.com/react-component/swipeout/blob/master/src/Swipeout.tsx |
What problem does this feature solve?
默认滑动出来的div是正方形,怎么让滑块根据文字多少自动变宽,自己改变CSS之后,滑块的总长度还是没变
What does the proposed API look like?
希望可以自定义每个滑块的宽度
The text was updated successfully, but these errors were encountered: