From 5bffd7ae9ee924035d4b55cefd56af3b1a312a13 Mon Sep 17 00:00:00 2001 From: hdx Date: Mon, 11 Sep 2023 15:09:14 +0800 Subject: [PATCH] =?UTF-8?q?swiper-list:=20=E5=A4=84=E7=90=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=AD=A6=E5=91=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/swiper-list/swiper-list.uvue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/template/swiper-list/swiper-list.uvue b/pages/template/swiper-list/swiper-list.uvue index b1c1e0ff..8dcd5378 100644 --- a/pages/template/swiper-list/swiper-list.uvue +++ b/pages/template/swiper-list/swiper-list.uvue @@ -132,7 +132,7 @@ // 更新指示线 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 -- GitLab