From a4c1a4a0664bc0ff5c80bae0c6bb8ffe6a0b5a32 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Mon, 22 Apr 2024 16:13:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0web-view=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/web-view/web-view.uvue | 34 +++++++++++++++----------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/pages/component/web-view/web-view.uvue b/pages/component/web-view/web-view.uvue index 731d6062..d6b9443f 100644 --- a/pages/component/web-view/web-view.uvue +++ b/pages/component/web-view/web-view.uvue @@ -6,24 +6,30 @@ - + - + - + - - - + + + 显示横向滚动条 + + + + 显示竖向滚动条 + + @@ -97,22 +103,22 @@ } this.src = url; }, - changeHorizontalScrollBarAccess(checked : boolean) { - this.horizontalScrollBarAccess = checked; + changeHorizontalScrollBarAccess(event : UniSwitchChangeEvent) { + this.horizontalScrollBarAccess = event.detail.value; }, - changeVerticalScrollBarAccess(checked : boolean) { - this.verticalScrollBarAccess = checked; + changeVerticalScrollBarAccess(event : UniSwitchChangeEvent) { + this.verticalScrollBarAccess = event.detail.value; } } } -- GitLab