From 80b371f11bac1787a307a33499dce944d1e59cc5 Mon Sep 17 00:00:00 2001 From: sfchu Date: Tue, 19 Nov 2024 17:41:20 +0800 Subject: [PATCH 1/5] ADDD --- ...\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" diff --git "a/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" new file mode 100644 index 0000000..2704a19 --- /dev/null +++ "b/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" @@ -0,0 +1 @@ +AAAAAAA \ No newline at end of file -- Gitee From 65d38430b894ae7d987a3963f83e51be126f114e Mon Sep 17 00:00:00 2001 From: sfchu Date: Tue, 19 Nov 2024 17:54:29 +0800 Subject: [PATCH 2/5] add --- ...273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" index 2704a19..69ec23d 100644 --- "a/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" +++ "b/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" @@ -1 +1 @@ -AAAAAAA \ No newline at end of file +ddd \ No newline at end of file -- Gitee From 807540cf92265e566b6aa3b6c8da49d525c7bc41 Mon Sep 17 00:00:00 2001 From: sfchu Date: Wed, 8 Jan 2025 17:18:01 +0800 Subject: [PATCH 3/5] =?UTF-8?q?README.md=20=E6=A0=87=E9=A2=98&=E7=AE=80?= =?UTF-8?q?=E4=BB=8B=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- ...273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 "\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" diff --git a/README.md b/README.md index 2d24e31..89ce661 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Web组件预览PDF文件 +# 基于Web组件实现预览PDF文件功能 ### 介绍 diff --git "a/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" deleted file mode 100644 index 69ec23d..0000000 --- "a/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" +++ /dev/null @@ -1 +0,0 @@ -ddd \ No newline at end of file -- Gitee From df10f653632feb597192b6df2f37052c83a377b2 Mon Sep 17 00:00:00 2001 From: sfchu Date: Thu, 9 Jan 2025 21:02:49 +0800 Subject: [PATCH 4/5] =?UTF-8?q?README.md=20=E6=A0=87=E9=A2=98=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d24e31..89ce661 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Web组件预览PDF文件 +# 基于Web组件实现预览PDF文件功能 ### 介绍 -- Gitee From b5ac833bc3c752f4fc3d2f56d29279c7ab3f92d9 Mon Sep 17 00:00:00 2001 From: sfchu Date: Fri, 10 Jan 2025 11:34:12 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=BA=9F=E5=BC=83=E6=8E=A5=E5=8F=A3=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/ets/entryability/EntryAbility.ets | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index 29c0fea..465cfb2 100644 --- a/entry/src/main/ets/entryability/EntryAbility.ets +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit'; +import { UIAbility } from '@kit.AbilityKit'; import { BusinessError } from '@kit.BasicServicesKit'; import { hilog } from '@kit.PerformanceAnalysisKit'; import { window } from '@kit.ArkUI'; @@ -23,7 +23,7 @@ export default class EntryAbility extends UIAbility { windowClass: window.Window | undefined = undefined; isLayoutFullScreen = true; - onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void { + onCreate(): void { hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate'); } @@ -44,18 +44,18 @@ export default class EntryAbility extends UIAbility { } this.windowClass = data; try { - this.windowClass.setWindowLayoutFullScreen(this.isLayoutFullScreen, (err: BusinessError) => { - const errCode: number = err.code; - if (errCode) { - Logger.error('Failed to set the window layout to full-screen mode. Cause:' + JSON.stringify(err)); - return; - } + let promise = this.windowClass.setWindowLayoutFullScreen(this.isLayoutFullScreen); + promise.then(() => { Logger.info('Succeeded in setting the window layout to full-screen mode.'); + }).catch((err: BusinessError) => { + Logger.error('Failed to set the window layout to full-screen mode. Cause:' + JSON.stringify(err)); }); } catch (exception) { Logger.error('Failed to set the window layout to full-screen mode. Cause:' + JSON.stringify(exception)); } - this.windowClass.setSpecificSystemBarEnabled('status', false); + if (canIUse('SystemCapability.Window.SessionManager')) { + this.windowClass.setSpecificSystemBarEnabled('status', false); + } }) windowStage.loadContent('pages/Index', (err) => { -- Gitee