-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Open
Labels
Description
Reproduction Link
https://codesandbox.io/p/live/89d01e0e-4434-4ba7-b5ef-bddd7764c615
Vant Version
4.9.21
Describe the Bug
使用rem的时候,swipe-cell按钮在不同设备表现不一致
使用375x667没问题
使用430x932,按钮会错误,跟有一个padding-top一样
使用430x932的设备时:
html的font-size:43px,body的font-size是36px

Reproduce Steps
配置px2rem,rootValue:37.5
<van-swipe-cell> <template #left> <van-button square type="primary" text="选择" /> </template> <van-cell :border="false" title="单元格" value="内容" /> </van-swipe-cell>
尝试在chrome开发者工具选择不同的device,选择后需要刷新一次
Device / Browser
chrome