diff --git a/pages/component/web-view/web-view.uvue b/pages/component/web-view/web-view.uvue index 731d60626794fe5e0a807de86a53c2ed34083865..d6b9443f4d1d9fc95aca34de27d1bd1c872e4a22 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; } } }