Commit 71506557 by 李伟康

fix(swiper): 修复滑动组件样式和动画问题

- 移除多余的空行以优化代码结构
- 添加条件判断避免swiperType为2时的transform应用
- 为滑块元素添加重要样式覆盖margin属性
- 确保样式一致性和组件正常显示
1 parent f2a12f92
......@@ -177,7 +177,6 @@ export default {
if (this.isTouching) {
moveX = this.viewX
}
if (item.class === 'block-left') {
transform = `translateX(calc(-45% + ${moveX * 0.5}px)) translateZ(-100px) rotateY(25deg) scale(0.9)`
style.zIndex = 10
......@@ -198,7 +197,7 @@ export default {
style.transition = 'none'
}
style.transform = transform
if(this.swiperType != 2) style.transform = transform
return style
},
getDatalist () {
......@@ -488,6 +487,7 @@ export default {
top: toRpx(68);
height: toRpx(306);
width: toRpx(604);
margin: 0 !important;
}
.block-left {
left: toRpx(88);
......@@ -502,6 +502,7 @@ export default {
top: toRpx(10);
width: toRpx(848);
height: toRpx(428);
margin: 0 !important;
}
}
flex-direction: column;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!