yuzhilin

web 组件恢复

@@ -48,8 +48,8 @@ export struct WdWebLocalComponent { @@ -48,8 +48,8 @@ export struct WdWebLocalComponent {
48 48
49 Row() { 49 Row() {
50 RelativeContainer() { 50 RelativeContainer() {
51 - Web({ src: this.webResource, controller: this.webviewControl, renderMode: RenderMode.SYNC_RENDER })  
52 - // Web({ src: this.webResource, controller: this.webviewControl}) 51 + // Web({ src: this.webResource, controller: this.webviewControl, renderMode: RenderMode.SYNC_RENDER })
  52 + Web({ src: this.webResource, controller: this.webviewControl})
53 .domStorageAccess(true) 53 .domStorageAccess(true)
54 .databaseAccess(true) 54 .databaseAccess(true)
55 .javaScriptAccess(true) 55 .javaScriptAccess(true)
@@ -59,7 +59,7 @@ export struct WdWebLocalComponent { @@ -59,7 +59,7 @@ export struct WdWebLocalComponent {
59 .enableNativeEmbedMode(true) 59 .enableNativeEmbedMode(true)
60 .layoutMode(WebLayoutMode.FIT_CONTENT) 60 .layoutMode(WebLayoutMode.FIT_CONTENT)
61 // .nestedScroll({ scrollForward: NestedScrollMode.SELF_FIRST, scrollBackward: NestedScrollMode.PARENT_FIRST }) 61 // .nestedScroll({ scrollForward: NestedScrollMode.SELF_FIRST, scrollBackward: NestedScrollMode.PARENT_FIRST })
62 - // .height(this.webHeight) 62 + .height(this.webHeight)
63 .onPageBegin((event) => { 63 .onPageBegin((event) => {
64 this.onPageBegin(event?.url); 64 this.onPageBegin(event?.url);
65 }) 65 })