提交 5bffd7ae 编写于 作者: H hdx

swiper-list: 处理代码警告问题

上级 9065a439
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
// 更新指示线 // 更新指示线
const x = indicator_line_x + indicator_line_w / 2 const x = indicator_line_x + indicator_line_w / 2
this.$indicatorNode?.style?.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`) this.$indicatorNode!.style.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`)
// 滚动到水平中心位置 // 滚动到水平中心位置
const scroll_x = x - this.$swiperWidth / 2 const scroll_x = x - this.$swiperWidth / 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册