From 12314b7023184dd0f24d302c232b2f023d31d0c0 Mon Sep 17 00:00:00 2001 From: hdx Date: Tue, 3 Dec 2024 16:56:54 +0800 Subject: [PATCH] =?UTF-8?q?swiper-list:=20=E9=80=82=E9=85=8D=20Windows=20?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=BC=A9=E6=94=BE=E5=90=8E=E5=9C=A8=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=BC=80=E5=8F=91=E8=80=85=E5=B7=A5=E5=85=B7=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=97=B6=E4=B8=8B=E5=88=92=E7=BA=BF=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/long-list/long-list.uvue | 4 ++-- pages/template/swiper-list/swiper-list.uvue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/template/long-list/long-list.uvue b/pages/template/long-list/long-list.uvue index 6e160525..fc8a651a 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 5a077ac1..4b3a90ce 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`) -- GitLab