diff --git a/pages/template/swiper-list/swiper-list.uvue b/pages/template/swiper-list/swiper-list.uvue index 513e2306bbfe5ae66b2263b675f7e0dfd1e87903..c7fc860f0eaab2ac606eb297a75982805421999b 100644 --- a/pages/template/swiper-list/swiper-list.uvue +++ b/pages/template/swiper-list/swiper-list.uvue @@ -112,7 +112,7 @@ } as SwiperTabsItem) }) }, - setSwiperIndex(index : Number, updateIndicator : Boolean) { + setSwiperIndex(index : number, updateIndicator : boolean) { if (this.swiperIndex === index) { return } @@ -123,7 +123,7 @@ this.updateTabIndicator(this.$swiperTabsRect[index].x, this.$swiperTabsRect[index].w) } }, - updateTabIndicator(left : Number, width : Number) { + updateTabIndicator(left : number, width : number) { // 更新指示线 const x = left + width / 2 this.$indicatorNode?.style?.setProperty('transform', `translateX(${x}px) scaleX(${width}px)`)