Commit a7ee35b2 by 李伟康

fix(components): 修复 calc 函数中 toRpx 的使用方式

- 在 GoodsList.vue 和 SkuPopup.vue 组件中,修正了 calc 函数中的 toRpx 使用方式
- 将 toRpx(32) 和 toRpx(350) 用法改为 #{toRpx(32)} 和 #{toRpx(350)}
- 这种修改解决了在某些环境下可能出现的样式计算错误问题
1 parent 143a42d9
......@@ -260,7 +260,7 @@ export default {
flex-wrap: wrap;
margin: 0 toRpx(48);
.item {
width: calc((100% - toRpx(32)) / 2);
width: calc((100% - #{toRpx(32)}) / 2);
justify-content: center;
min-height: toRpx(72);
border-radius: toRpx(8);
......
......@@ -149,7 +149,7 @@ export default {
padding-left: toRpx(48);
}
.popup-body {
height: calc(100% - toRpx(350));
height: calc(100% - #{toRpx(350)});
.popup-scroll-view {
height: 100%;
padding-top: toRpx(24);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!