-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
关于flexible适配模式下picker组件的单位转换 #1979
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前项目中用到了flexible的适配处理,大部分的css都能正常从px转到相应rem,但昨天使用Picker组件时发现滚动部分的样式并没有转换为rem,手动强行修改css也只能改尺寸大小,但js的滚动距离部分还是存在问题,滚动位置是按px来计算的,导致滚动位置不准确。
我看了antd-mobile的picker,他们对这个滚动做了适配,单位依然是px,但会根据dpr来改变滚动距离,比如dpr=2时每一格是68px,dpr=3时每一格就是102px,这种适配能否加入到VUX中来呢?
问题样式如图:
The text was updated successfully, but these errors were encountered: