From de968bf0ec5d0919d8477d8900f414d16df297e6 Mon Sep 17 00:00:00 2001 From: zhengjiangliang Date: Wed, 23 Nov 2022 11:19:00 +0800 Subject: [PATCH] =?UTF-8?q?doc=E6=96=87=E6=A1=A3=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhengjiangliang Change-Id: Ia14d26a20ab095c9312ecfaa23d6b33b2a18334a --- .../reference/apis/js-apis-screenshot.md | 6 ++-- .../reference/apis/js-apis-window.md | 28 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-screenshot.md b/zh-cn/application-dev/reference/apis/js-apis-screenshot.md index 86d42135ec..85dc24395f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screenshot.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screenshot.md @@ -20,7 +20,7 @@ import screenshot from '@ohos.screenshot'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 参数名 | 类型 | 必填 | 说明 | +| 名称 | 类型 | 必填 | 说明 | | ---------------------- | ------------- | ---- | ------------------------------------------------------------ | | screenRect | [Rect](#rect) | 否 | 表示截取图像的区域,不传值默认为全屏。 | | imageSize | [Size](#size) | 否 | 表示截取图像的大小,不传值默认为全屏。 | @@ -34,7 +34,7 @@ import screenshot from '@ohos.screenshot'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 参数名 | 类型 | 必填 | 说明 | +| 名称 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------------------------------------------ | | left | number | 是 | 表示截取图像区域的左边界。| | top | number | 是 | 表示截取图像区域的上边界。| @@ -48,7 +48,7 @@ import screenshot from '@ohos.screenshot'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 参数名 | 类型 | 必填 | 说明 | +| 名称 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------------------------------------------ | | width | number | 是 | 表示截取图像的宽度。| | height | number | 是 | 表示截取图像的高度。| diff --git a/zh-cn/application-dev/reference/apis/js-apis-window.md b/zh-cn/application-dev/reference/apis/js-apis-window.md index a0a82cbf7f..3809bb3af1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -52,7 +52,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 必填 | 说明 | +| 名称 | 类型 | 必填 | 说明 | | ---------- | -------------------------- | -- | ----------------------------------- | | name | string | 是 | 子窗口名字。 | | windowType | [WindowType](#windowtype7) | 是 | 子窗口类型。 | @@ -108,7 +108,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 必填 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 必填 | 说明 | | -------------------------------------- | -------- | ---- | ---- | ---- | ------------------------------------------------------------ | | statusBarColor | string | 否 | 是 | 否 | 状态栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如`#00FF00`或`#FF00FF00`。默认值:`#0x66000000`。 | | isStatusBarLightIcon7+ | boolean | 否 | 是 | 否 | 状态栏图标是否为高亮状态。true表示高亮;false表示不高亮。默认值:false。 | @@ -161,7 +161,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | --------------- | ------------------------- | ---- | ---- | ------------------------------------------------------------ | | type | [WindowType](#windowtype7) | 是 | 否 | 当前属性改变的系统栏类型,仅支持类型为导航栏、状态栏的系统栏。 | | isEnable | boolean | 是 | 否 | 当前系统栏是否显示。true表示显示;false表示不显示。 | @@ -177,7 +177,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ---------- | --------------------------------------------------- | ---- | ---- | ---------------------------- | | displayId | number | 是 | 否 | 当前物理屏幕id。 | | regionTint | Array<[SystemBarRegionTint](#systembarregiontint8)> | 是 | 否 | 当前已改变的所有系统栏信息。 | @@ -188,7 +188,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | ------------------ | | left | number | 是 | 是 | 矩形区域的左边界。 | | top | number | 是 | 是 | 矩形区域的上边界。 | @@ -201,7 +201,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ---------- | ------------- | ---- | ---- | ------------------ | | visible9+ | boolean | 是 | 是 | 规避区域是否可见。true表示可见;false表示不可见。 | | leftRect | [Rect](#rect7) | 是 | 是 | 屏幕左侧的矩形区。 | @@ -215,7 +215,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | ---------- | | width | number | 是 | 是 | 窗口宽度。 | | height | number | 是 | 是 | 窗口高度。 | @@ -226,7 +226,7 @@ import window from '@ohos.window'; **系统能力:** SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ------------------------------------- | ------------------------- | ---- | ---- | ------------------------------------------------------------ | | windowRect7+ | [Rect](#rect7) | 是 | 是 | 窗口尺寸。 | | type7+ | [WindowType](#windowtype7) | 是 | 是 | 窗口类型。 | @@ -261,7 +261,7 @@ import window from '@ohos.window'; **系统能力**:SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | -------------------------------------------------- | | x | number | 否 | 是 | X轴的缩放参数,默认值为1.0。 | | y | number | 否 | 是 | Y轴的缩放参数,默认值为1.0。 | @@ -276,7 +276,7 @@ import window from '@ohos.window'; **系统能力**:SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | -------------------------------------------------- | | x | number | 否 | 是 | 绕X轴的旋转角度,默认值为0.0。 | | y | number | 否 | 是 | 绕Y轴的旋转角度,默认值为0.0。 | @@ -292,7 +292,7 @@ import window from '@ohos.window'; **系统能力**:SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ---- | -------- | ---- | ---- | ---------------------------- | | x | number | 否 | 是 | X轴的平移参数,默认值为0.0。 | | y | number | 否 | 是 | Y轴的平移参数,默认值为0.0。 | @@ -6012,7 +6012,7 @@ createSubWindow(name: string, callback: AsyncCallback<Window>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------------------- | ---- | --------------------------------------------- | -| name | String | 是 | 子窗口的名字。 | +| name | string | 是 | 子窗口的名字。 | | callback | AsyncCallback<[Window](#window)> | 是 | 回调函数。返回当前WindowStage下的子窗口对象。 | **错误码:** @@ -6063,7 +6063,7 @@ createSubWindow(name: string): Promise<Window> | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | -------------- | -| name | String | 是 | 子窗口的名字。 | +| name | string | 是 | 子窗口的名字。 | **返回值:** @@ -6528,7 +6528,7 @@ class myAbility extends Ability { **系统能力**:SystemCapability.WindowManager.WindowManager.Core -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | --------------------- | ----------------- | ---- | ---- | ---------------- | | toWindow9+ | [Window](#window) | 是 | 是 | 动画的目标窗口。 | -- GitLab