From ac2c9054c3650d10a630003db85136b33d726d21 Mon Sep 17 00:00:00 2001 From: c30077388 Date: Thu, 3 Jul 2025 16:13:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?vp2px=E7=AD=89=E6=B7=BB=E5=8A=A0=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: c30077388 Change-Id: I61448facd909fc3b56f2ffaa08bd7738443eda2c --- .../apis-arkui/js-apis-arkui-UIContext.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md index e4d4ec31e5f..cd537aca593 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md @@ -1558,6 +1558,10 @@ vp2px(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> vp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1591,6 +1595,10 @@ px2vp(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> px2vp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1626,6 +1634,10 @@ fp2px(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> fp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1661,6 +1673,10 @@ px2fp(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> px2fp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1692,6 +1708,10 @@ lpx2px(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> lpx2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1723,6 +1743,10 @@ px2lpx(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> px2lpx需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** -- Gitee From 386b7837f7b50cf2e28c0974f7e76525a77e6a8b Mon Sep 17 00:00:00 2001 From: c30077388 Date: Fri, 4 Jul 2025 14:34:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=B4=E6=98=8E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: c30077388 Change-Id: I0607a72a666283388f2ad8f2ffeb0467ef2c31e4 --- .../reference/apis-arkui/js-apis-arkui-UIContext.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md index cd537aca593..e7d93abf420 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md @@ -1560,7 +1560,7 @@ vp2px(value : number) : number > **说明:** > -> vp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1597,7 +1597,7 @@ px2vp(value : number) : number > **说明:** > -> px2vp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1636,7 +1636,7 @@ fp2px(value : number) : number > **说明:** > -> fp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1675,7 +1675,7 @@ px2fp(value : number) : number > **说明:** > -> px2fp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1710,7 +1710,7 @@ lpx2px(value : number) : number > **说明:** > -> lpx2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1745,7 +1745,7 @@ px2lpx(value : number) : number > **说明:** > -> px2lpx需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** -- Gitee