diff --git a/entry/src/main/ets/pages/LoadStatePage.ets b/entry/src/main/ets/pages/LoadStatePage.ets index 2c0c4d8..a697c75 100644 --- a/entry/src/main/ets/pages/LoadStatePage.ets +++ b/entry/src/main/ets/pages/LoadStatePage.ets @@ -79,7 +79,9 @@ struct LoadStatePage { }) } .margin({ top: 20 }) - Text(this.typeValue) + Text("格式:"+this.typeValue) + Text("宽度:"+this.currentWidth) + Text("高度:"+this.currentHeight) ImageKnifeComponent({ imageKnifeOption: this.ImageKnifeOption }).height(this.currentHeight).width(this.currentWidth) .margin({ top: 20 }) Button($r('app.string.Custom_download_failed')).onClick(()=>{ diff --git a/entry/src/main/ets/pages/TestLoadCancelListenerPage.ets b/entry/src/main/ets/pages/TestLoadCancelListenerPage.ets index cc071b3..d6d1685 100644 --- a/entry/src/main/ets/pages/TestLoadCancelListenerPage.ets +++ b/entry/src/main/ets/pages/TestLoadCancelListenerPage.ets @@ -38,10 +38,10 @@ struct TestLoadCancelListenerPage { loadSrc: "https://q7.itc.cn/images01/20240223/ce80229bf9934dff97cdf2ad7be1dcb8.jpeg", objectFit: ImageFit.Contain, onLoadListener: { - onLoadStart: (data) => { + onLoadStart: () => { this.showChild = false; }, - onLoadCancel: (res, data) => { + onLoadCancel: (res) => { this.text = "onLoadCancel回调成功,网络nLoadCancel回调原因:" + res console.log("TestLoadCancelListenerPage----onLoadCancel> url:" + res) } @@ -66,10 +66,10 @@ struct TestLoadCancelListenerPage { loadSrc: $r('app.media.loading'), objectFit: ImageFit.Contain, onLoadListener: { - onLoadStart: (data) => { + onLoadStart: () => { this.showChild = false; }, - onLoadCancel: (res, data) => { + onLoadCancel: (res) => { this.text = "onLoadCancel回调成功,本地onLoadCancel回调原因:" + res console.log("TestLoadCancelListenerPage----onLoadCancel> url:" + res) }