Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Coping0606
Docs
提交
af0fdeb9
D
Docs
项目概览
Coping0606
/
Docs
与 Fork 源项目一致
Fork自
OpenHarmony / Docs
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
af0fdeb9
编写于
8月 23, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
!8416 【轻量级 PR】:master:update zh-cn/application-dev/reference/apis/js-apis-window.md,需同步翻译
Merge pull request !8416 from 葛亚芳/N/A
上级
ac6c7ec1
f45f0387
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
10 deletion
+11
-10
zh-cn/application-dev/reference/apis/js-apis-window.md
zh-cn/application-dev/reference/apis/js-apis-window.md
+11
-10
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-window.md
浏览文件 @
af0fdeb9
...
...
@@ -94,11 +94,11 @@ import window from '@ohos.window';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| -------------------------------------- | -------- | ---- | ---- | ------------------------------------------------------------ |
| statusBarColor | string |
是
| 是 | 状态栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| statusBarColor | string |
否
| 是 | 状态栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| isStatusBarLightIcon
<sup>
7+
</sup>
| boolean | 否 | 是 | 状态栏图标是否为高亮状态。 |
| statusBarContentColor
<sup>
8+
</sup>
| string | 否 | 是 | 状态栏文字颜色。 |
| navigationBarColor | string |
是
| 是 | 导航栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| isNavigationBarLightIcon
<sup>
7+
</sup>
| boolean | 否 |
否
| 导航栏图标是否为高亮状态。 |
| navigationBarColor | string |
否
| 是 | 导航栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| isNavigationBarLightIcon
<sup>
7+
</sup>
| boolean | 否 |
是
| 导航栏图标是否为高亮状态。 |
| navigationBarContentColor
<sup>
8+
</sup>
| string | 否 | 是 | 导航栏文字颜色。 |
## Orientation<sup>9+</sup>
...
...
@@ -147,11 +147,11 @@ import window from '@ohos.window';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| --------------- | ------------------------- | ---- | ---- | ------------------------------------------------------------ |
| type |
[
WindowType
](
#windowtype
)
| 是 |
是
| 当前属性改变的系统栏类型,仅支持类型为导航栏、状态栏的系统栏。 |
| isEnable | boolean | 是 |
是
| 当前系统栏是否显示。 |
| region |
[
Rect
](
#rect
)
| 是 |
是
| 当前系统栏的位置及大小。 |
| backgroundColor | string | 是 |
是
| 系统栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| contentColor | string | 是 |
是
| 系统栏文字颜色。 |
| type |
[
WindowType
](
#windowtype
)
| 是 |
否
| 当前属性改变的系统栏类型,仅支持类型为导航栏、状态栏的系统栏。 |
| isEnable | boolean | 是 |
否
| 当前系统栏是否显示。 |
| region |
[
Rect
](
#rect
)
| 是 |
否
| 当前系统栏的位置及大小。 |
| backgroundColor | string | 是 |
否
| 系统栏背景颜色,为十六进制RGB或ARGB颜色,不区分大小写,例如
`#00FF00`
或
`#FF00FF00`
。 |
| contentColor | string | 是 |
否
| 系统栏文字颜色。 |
## SystemBarTintState<sup>8+</sup>
...
...
@@ -164,7 +164,7 @@ import window from '@ohos.window';
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| ---------- | --------------------------------------------------- | ---- | ---- | ---------------------------- |
| displayId | number | 是 | 否 | 当前物理屏幕id。 |
| regionTint | Array
<
[
SystemBarRegionTint
](
#systembarregiontint8
)
>
| 是 |
是
| 当前已改变的所有系统栏信息。 |
| regionTint | Array
<
[
SystemBarRegionTint
](
#systembarregiontint8
)
>
| 是 |
否
| 当前已改变的所有系统栏信息。 |
## Rect<sup>7+</sup>
...
...
@@ -1408,7 +1408,8 @@ getAvoidArea(type: [AvoidAreaType](#avoidareatype7)): Promise<[AvoidArea](#av
**示例:**
```
js
let
promise
=
windowClass
.
getAvoidArea
();
var
type
=
window
.
AvoidAreaType
.
TYPE_SYSTEM
;
let
promise
=
windowClass
.
getAvoidArea
(
type
);
promise
.
then
((
data
)
=>
{
console
.
info
(
'
Succeeded in obtaining the area. Data:
'
+
JSON
.
stringify
(
data
));
}).
catch
((
err
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录