From c63ad9b2e5dc9205a612c60ae46b1d524fa8b32e Mon Sep 17 00:00:00 2001 From: lpf Date: Wed, 21 May 2025 16:19:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=E5=B8=83=E5=B1=80=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lpf --- .../reference/apis-arkui/js-apis-window.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md index c734071108f..2f222f8ffb2 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md @@ -2104,7 +2104,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: ` + JSON.stringify(rect)); + console.info(`Get window rect: + ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2166,7 +2166,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: ` + JSON.stringify(rect)); + console.info(`Get window rect: + ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2224,7 +2224,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: ` + JSON.stringify(rect)); + console.info(`Get window rect: + ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2287,7 +2287,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: ` + JSON.stringify(rect)); + console.info(`Get window rect: + ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2471,7 +2471,7 @@ try { promise.then(() => { console.info('Succeeded in changing the window size.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: ` + JSON.stringify(rect)); + console.info(`Get window rect: + ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to change the window size. Cause code: ${err.code}, message: ${err.message}`); }); @@ -4114,7 +4114,7 @@ on(type: 'windowSizeChange', callback: Callback<Size>): void ```ts try { windowClass.on('windowSizeChange', (data) => { - console.info('Succeeded in enabling the listener for window size changes. Data: ' + JSON.stringify(data)); + console.info(`Succeeded in enabling the listener for window size changes. Data: + ${JSON.stringify(data)}`); }); } catch (exception) { console.error(`Failed to enable the listener for window size changes. Cause code: ${exception.code}, message: ${exception.message}`); @@ -5600,7 +5600,7 @@ on(type: 'windowRectChange', callback: Callback<RectChangeOptions>): void ```ts try { windowClass.on('windowRectChange', (data: window.RectChangeOptions) => { - console.info(`Succeeded window rect changes. Data: ` + JSON.stringify(data)); + console.info(`Succeeded window rect changes. Data: + ${JSON.stringify(data)}`); }); } catch (exception) { console.error(`Failed to disable the listener for window rect changes. Cause code: ${exception.code}, message: ${exception.message}`); @@ -7681,7 +7681,7 @@ try { }; let promise = windowClass.setWindowLimits(windowLimits); promise.then((data) => { - console.info('Succeeded in changing the window limits. Cause:' + JSON.stringify(data)); + console.info(`Succeeded in changing the window limits. Cause: + ${JSON.stringify(data)}`); }).catch((err: BusinessError) => { console.error(`Failed to change the window limits. Cause code: ${err.code}, message: ${err.message}`); }); -- Gitee From 594327279e0680965a2a990adaa56fbcdc49dd65 Mon Sep 17 00:00:00 2001 From: lpf Date: Fri, 23 May 2025 10:01:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=E5=B8=83=E5=B1=80=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lpf --- .../reference/apis-arkui/js-apis-window.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md index 2f222f8ffb2..b2432ca723f 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-window.md @@ -2104,7 +2104,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: + ${JSON.stringify(rect)}`); + console.info(`Get window rect: ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2166,7 +2166,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: + ${JSON.stringify(rect)}`); + console.info(`Get window rect: ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2224,7 +2224,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: + ${JSON.stringify(rect)}`); + console.info(`Get window rect: ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2287,7 +2287,7 @@ try { promise.then(() => { console.info('Succeeded in moving the window.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: + ${JSON.stringify(rect)}`); + console.info(`Get window rect: ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to move the window. Cause code: ${err.code}, message: ${err.message}`); }); @@ -2471,7 +2471,7 @@ try { promise.then(() => { console.info('Succeeded in changing the window size.'); let rect = windowClass?.getWindowProperties().windowRect; - console.info(`Get window rect: + ${JSON.stringify(rect)}`); + console.info(`Get window rect: ${JSON.stringify(rect)}`); }).catch((err: BusinessError) => { console.error(`Failed to change the window size. Cause code: ${err.code}, message: ${err.message}`); }); @@ -4114,7 +4114,7 @@ on(type: 'windowSizeChange', callback: Callback<Size>): void ```ts try { windowClass.on('windowSizeChange', (data) => { - console.info(`Succeeded in enabling the listener for window size changes. Data: + ${JSON.stringify(data)}`); + console.info(`Succeeded in enabling the listener for window size changes. Data: ${JSON.stringify(data)}`); }); } catch (exception) { console.error(`Failed to enable the listener for window size changes. Cause code: ${exception.code}, message: ${exception.message}`); @@ -5600,7 +5600,7 @@ on(type: 'windowRectChange', callback: Callback<RectChangeOptions>): void ```ts try { windowClass.on('windowRectChange', (data: window.RectChangeOptions) => { - console.info(`Succeeded window rect changes. Data: + ${JSON.stringify(data)}`); + console.info(`Succeeded window rect changes. Data: ${JSON.stringify(data)}`); }); } catch (exception) { console.error(`Failed to disable the listener for window rect changes. Cause code: ${exception.code}, message: ${exception.message}`); @@ -7681,7 +7681,7 @@ try { }; let promise = windowClass.setWindowLimits(windowLimits); promise.then((data) => { - console.info(`Succeeded in changing the window limits. Cause: + ${JSON.stringify(data)}`); + console.info(`Succeeded in changing the window limits. Cause: ${JSON.stringify(data)}`); }).catch((err: BusinessError) => { console.error(`Failed to change the window limits. Cause code: ${err.code}, message: ${err.message}`); }); -- Gitee