提交 6cd622c3 编写于 作者: H hdx

swiper-list: 参数类型修正为小写

上级 3ca03b86
......@@ -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)`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册