From cf901e97d02bef0afb9170359ec690afc6513596 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 cfbe52e3bd4..24d6cff1489 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 @@ -1636,6 +1636,10 @@ vp2px(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> vp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1669,6 +1673,10 @@ px2vp(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> px2vp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1704,6 +1712,10 @@ fp2px(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> fp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1739,6 +1751,10 @@ px2fp(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> px2fp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1770,6 +1786,10 @@ lpx2px(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> lpx2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** @@ -1801,6 +1821,10 @@ px2lpx(value : number) : number | ------ | -------------- | | number | 转换后的数值。
取值范围:(-∞, +∞) | +> **说明:** +> +> px2lpx需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 + **示例:** -- Gitee From 57da30f2c7cc904ac8b3f2660e4173e645e03f08 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 24d6cff1489..d34133b435d 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 @@ -1638,7 +1638,7 @@ vp2px(value : number) : number > **说明:** > -> vp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1675,7 +1675,7 @@ px2vp(value : number) : number > **说明:** > -> px2vp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1714,7 +1714,7 @@ fp2px(value : number) : number > **说明:** > -> fp2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1753,7 +1753,7 @@ px2fp(value : number) : number > **说明:** > -> px2fp需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1788,7 +1788,7 @@ lpx2px(value : number) : number > **说明:** > -> lpx2px需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** @@ -1823,7 +1823,7 @@ px2lpx(value : number) : number > **说明:** > -> px2lpx需要在windowStage.loadContent初始化完成后调用才能获取到真实值。 +> 本接口需要在windowStage.loadContent后调用以确保UIContext初始化完成,否则可能无法返回准确的结果。 **示例:** -- Gitee