Vant: picker 不能rem适配

Created on 10 Apr 2019  ·  4Comments  ·  Source: youzan/vant

picker 不能rem适配

All 4 comments

暂无计划支持喔

可以的话,希望能给一个临时的方案,可以在组件props中添加一个单位,这样起码我们也能可以自定义下单位。正常情况换算比例可以确定,我们只要传送换算好的尺寸以及自定义的单位,这样也能临时解决这个问题。

后续看下能否支持

由于 Picker 内部需要通过运算计算偏移量,暂时无法支持 rem 单位(rem 的基准值是未知的),建议自行转换

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LiGuoBi picture LiGuoBi  ·  4Comments

wang475293638 picture wang475293638  ·  3Comments

skyzfdance picture skyzfdance  ·  3Comments

1014156094 picture 1014156094  ·  3Comments

LvJianfeng picture LvJianfeng  ·  4Comments