diff --git a/pages/template/long-list/long-list.uvue b/pages/template/long-list/long-list.uvue index 6e160525103602ac79afcb58ba94d4c33fe70334..fc8a651a9fb05d1467deef70c96f6cb5055b1a2f 100644 --- a/pages/template/long-list/long-list.uvue +++ b/pages/template/long-list/long-list.uvue @@ -208,11 +208,11 @@ const indicator_line_w = lerpNumber(current_size.w, move_to_size.w, percentage) // 更新指示线 - // #ifdef APP || MP + // #ifdef APP const x = indicator_line_x + indicator_line_w / 2 this.indicatorNode?.style?.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`) // #endif - // #ifdef WEB + // #ifdef WEB || MP // TODO chrome windows系统 transform scaleX渲染bug const x = indicator_line_x this.indicatorNode?.style?.setProperty('width', `${indicator_line_w}px`) diff --git a/pages/template/swiper-list/swiper-list.uvue b/pages/template/swiper-list/swiper-list.uvue index 5a077ac1d6d50da60df7eb8a7d90a3a40bc706e0..4b3a90ce70478c8d8285cee79be0633e3e3364bc 100644 --- a/pages/template/swiper-list/swiper-list.uvue +++ b/pages/template/swiper-list/swiper-list.uvue @@ -168,11 +168,11 @@ const indicator_line_w = lerpNumber(current_size.w, move_to_size.w, percentage) // 通过 transform 更新指示线,避免重排版 - // #ifdef APP || MP + // #ifdef APP const x = indicator_line_x + indicator_line_w / 2 this.indicatorNode?.style?.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`) // #endif - // #ifdef WEB + // #ifdef WEB || MP // TODO chrome windows系统 transform scaleX渲染bug const x = indicator_line_x this.indicatorNode?.style?.setProperty('width', `${indicator_line_w}px`)