Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
2ab30185
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
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看板
提交
2ab30185
编写于
3月 20, 2022
作者:
K
kukixi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix format_check error
Signed-off-by:
N
kukixi
<
kouxinxin@huawei.com
>
上级
146920e1
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
12 addition
and
7 deletion
+12
-7
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
...-dev/reference/arkui-ts/ts-basic-components-navigation.md
+3
-3
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
...tion-dev/reference/arkui-ts/ts-basic-components-select.md
+3
-3
zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md
...ation-dev/reference/arkui-ts/ts-media-components-video.md
+1
-1
zh-cn/application-dev/ui/ts-types.md
zh-cn/application-dev/ui/ts-types.md
+5
-0
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
浏览文件 @
2ab30185
...
@@ -28,11 +28,11 @@ Navigation()
...
@@ -28,11 +28,11 @@ Navigation()
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| title | string
\|
[
CustomBuilder
](
../../ui/ts-types.md#
custombuilder类型8+
)
<sup>
8+
</sup>
| - | 页面标题。 |
| title | string
\|
[
CustomBuilder
](
../../ui/ts-types.md#
Custombuilder类型
)
<sup>
8+
</sup>
| - | 页面标题。 |
| subtitle | string | - | 页面副标题。 |
| subtitle | string | - | 页面副标题。 |
| menus | Array
<NavigationMenuItem
&
gt
;&
nbsp
;\|&
nbsp
;[
CustomBuilder
](../../
ui
/
ts-types.md#
custombuilder类型8
+
)<
sup
>
8+
</sup>
| - | 页面右上角菜单。 |
| menus | Array
<NavigationMenuItem
&
gt
;&
nbsp
;\|&
nbsp
;[
CustomBuilder
](../../
ui
/
ts-types.md#
Custombuilder类型
)<
sup
>
8+
</sup>
| - | 页面右上角菜单。 |
| titleMode | NavigationTitleMode | NavigationTitleMode.Free | 页面标题栏显示模式。 |
| titleMode | NavigationTitleMode | NavigationTitleMode.Free | 页面标题栏显示模式。 |
| toolBar | {
<br/>
items:
[
<br/>Object<br/>] }<br/>\| [CustomBuilder
](
../../ui/ts-types.md#
custombuilder类型8+
)
<sup>
8+
</sup>
| - | 设置工具栏内容。
<br/>
items:
工具栏所有项。 |
| toolBar | {
<br/>
items:
[
<br/>Object<br/>] }<br/>\| [CustomBuilder
](
../../ui/ts-types.md#
Custombuilder类型
)
<sup>
8+
</sup>
| - | 设置工具栏内容。
<br/>
items:
工具栏所有项。 |
| hideToolBar | boolean | false | 设置隐藏/显示工具栏:
<br/>
true:
隐藏工具栏。
<br/>
false:
显示工具栏。 |
| hideToolBar | boolean | false | 设置隐藏/显示工具栏:
<br/>
true:
隐藏工具栏。
<br/>
false:
显示工具栏。 |
| hideTitleBar | boolean | false | 隐藏标题栏。 |
| hideTitleBar | boolean | false | 隐藏标题栏。 |
| hideBackButton | boolean | false | 隐藏返回键。 |
| hideBackButton | boolean | false | 隐藏返回键。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
浏览文件 @
2ab30185
...
@@ -29,13 +29,13 @@ Select(options: Array<SelectOption>)
...
@@ -29,13 +29,13 @@ Select(options: Array<SelectOption>)
| ----------------------- | --------------------------------------------------- | ------ | ----------------------------------------------- |
| ----------------------- | --------------------------------------------------- | ------ | ----------------------------------------------- |
| selected | number | - | 设置下拉菜单初始选择项的索引,第一项的索引为0。 |
| selected | number | - | 设置下拉菜单初始选择项的索引,第一项的索引为0。 |
| value | string | - | 设置下拉按钮本身的文本显示。 |
| value | string | - | 设置下拉按钮本身的文本显示。 |
| font |
[
Font
](
../../ui/ts-types.md#Font
)
| - | 设置下拉按钮本身的文本样式: |
| font |
[
Font
](
../../ui/ts-types.md#Font
类型
)
| - | 设置下拉按钮本身的文本样式: |
| fontColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉按钮本身的文本颜色。 |
| fontColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉按钮本身的文本颜色。 |
| selectedOptionBgColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单选中项的背景色。 |
| selectedOptionBgColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单选中项的背景色。 |
| selectedOptionFont |
[
Font
](
../../ui/ts-types.md#Font
)
| - | 设置下拉菜单选中项的文本样式: |
| selectedOptionFont |
[
Font
](
../../ui/ts-types.md#Font
类型
)
| - | 设置下拉菜单选中项的文本样式: |
| selectedOptionFontColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单选中项的文本颜色。 |
| selectedOptionFontColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单选中项的文本颜色。 |
| optionBgColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单项的背景色。 |
| optionBgColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单项的背景色。 |
| optionFont |
[
Font
](
../../ui/ts-types.md#Font
)
| - | 设置下拉菜单项的文本样式: |
| optionFont |
[
Font
](
../../ui/ts-types.md#Font
类型
)
| - | 设置下拉菜单项的文本样式: |
| optionFontColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单项的文本颜色。 |
| optionFontColor |
[
ResourceColor
](
../../ui/ts-types.md#ResourceColor
)
| - | 设置下拉菜单项的文本颜色。 |
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md
浏览文件 @
2ab30185
...
@@ -21,7 +21,7 @@ Video(value: VideoOptions)
...
@@ -21,7 +21,7 @@ Video(value: VideoOptions)
| -------- | -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- | -------- |
| src | string | 否 | - | 视频播放源的路径。 |
| src | string | 否 | - | 视频播放源的路径。 |
| currentProgressRate | number
\|
PlaybackSpeed
<sup>
8+
</sup>
| 否 | 1.0
\|
PlaybackSpeed.
<br>
Speed_Forward_1_00_X | 视频播放倍速。
<br/>
>

**说明:**
<br/>
>
number取值仅支持:0.75,1.0,1.25,1.75,2.0。
<br/>
|
| currentProgressRate | number
\|
PlaybackSpeed
<sup>
8+
</sup>
| 否 | 1.0
\|
PlaybackSpeed.
<br>
Speed_Forward_1_00_X | 视频播放倍速。
<br/>
>

**说明:**
<br/>
>
number取值仅支持:0.75,1.0,1.25,1.75,2.0。
<br/>
|
| previewUri | string
\|
PixelMap
<sup>
8+
</sup>
\|
[
Resource
](
../../ui/ts-types.md#
r
esource类型
)
| 否 | - | 预览图片的路径。 |
| previewUri | string
\|
PixelMap
<sup>
8+
</sup>
\|
[
Resource
](
../../ui/ts-types.md#
R
esource类型
)
| 否 | - | 预览图片的路径。 |
| controller |
[
VideoController
](
#videocontroller
)
| 否 | - | 控制器。 |
| controller |
[
VideoController
](
#videocontroller
)
| 否 | - | 控制器。 |
...
...
zh-cn/application-dev/ui/ts-types.md
浏览文件 @
2ab30185
...
@@ -90,6 +90,11 @@
...
@@ -90,6 +90,11 @@
| -------- | -------- | -------- |
| -------- | -------- | -------- |
| ResourceColor | Color
\|
number
\|
string
\|
Resource | 用于描述资源颜色类型。 |
| ResourceColor | Color
\|
number
\|
string
\|
Resource | 用于描述资源颜色类型。 |
## Font类型<sup>8+</sup>
| 名称 | 类型定义 | 描述 |
| -------- | -------- | -------- |
| Font | {
<br/>
size?: Length;
<br/>
weight?:
<a
href=
"https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md#li24391125115311"
>
FontWeight
</a>
\|
number
\|
string;
<br/>
family?: string
\|
<a
href=
"ts-types.md#Resource"
>
Resource
</a>
;
<br/>
style?:
<a
href=
"https://gitee.com/superFat/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md#li6906111945316"
>
FontStyle
</a>
;
<br/>
} | 设置文本样式:
<br/>
size: 设置文本尺寸,Length为number类型时,使用fp单位。
<br/>
weight: 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
family: 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial, sans-serif'。
<br/>
style: 设置文本的字体样式。 |
## CustomBuilder类型<sup>8+</sup>
## CustomBuilder类型<sup>8+</sup>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录