From 2ab30185ff58eb052d9c9caeab06efd2f9a6fb58 Mon Sep 17 00:00:00 2001 From: kukixi Date: Sun, 20 Mar 2022 23:28:16 +0800 Subject: [PATCH] fix format_check error Signed-off-by: kukixi --- .../reference/arkui-ts/ts-basic-components-navigation.md | 6 +++--- .../reference/arkui-ts/ts-basic-components-select.md | 6 +++--- .../reference/arkui-ts/ts-media-components-video.md | 2 +- zh-cn/application-dev/ui/ts-types.md | 5 +++++ 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md index 6e0a1e7ea6..4898f15c77 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md @@ -28,11 +28,11 @@ Navigation() | 名称 | 参数类型 | 默认值 | 描述 | | -------- | -------- | -------- | -------- | -| title | string \| [CustomBuilder](../../ui/ts-types.md#custombuilder类型8+)8+ | - | 页面标题。 | +| title | string \| [CustomBuilder](../../ui/ts-types.md#Custombuilder类型)8+ | - | 页面标题。 | | subtitle | string | - | 页面副标题。 | -| menus | Array8+ | - | 页面右上角菜单。 | +| menus | Array8+ | - | 页面右上角菜单。 | | titleMode | NavigationTitleMode | NavigationTitleMode.Free | 页面标题栏显示模式。 | -| toolBar | {
items:[
Object
] }
\| [CustomBuilder](../../ui/ts-types.md#custombuilder类型8+)8+ | - | 设置工具栏内容。
items: 工具栏所有项。 | +| toolBar | {
items:[
Object
] }
\| [CustomBuilder](../../ui/ts-types.md#Custombuilder类型)8+ | - | 设置工具栏内容。
items: 工具栏所有项。 | | hideToolBar | boolean | false | 设置隐藏/显示工具栏:
true: 隐藏工具栏。
false: 显示工具栏。 | | hideTitleBar | boolean | false | 隐藏标题栏。 | | hideBackButton | boolean | false | 隐藏返回键。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md index b4d8507557..2a2f6ead69 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md @@ -29,13 +29,13 @@ Select(options: Array) | ----------------------- | --------------------------------------------------- | ------ | ----------------------------------------------- | | selected | number | - | 设置下拉菜单初始选择项的索引,第一项的索引为0。 | | value | string | - | 设置下拉按钮本身的文本显示。 | -| font | [Font](../../ui/ts-types.md#Font) | - | 设置下拉按钮本身的文本样式: | +| font | [Font](../../ui/ts-types.md#Font类型) | - | 设置下拉按钮本身的文本样式: | | fontColor | [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) | - | 设置下拉菜单选中项的文本颜色。 | | 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) | - | 设置下拉菜单项的文本颜色。 | ## 事件 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md b/zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md index 56ab4ddf90..0fe5b3d9d8 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md @@ -21,7 +21,7 @@ Video(value: VideoOptions) | -------- | -------- | -------- | -------- | -------- | | src | string | 否 | - | 视频播放源的路径。 | | currentProgressRate | number \| PlaybackSpeed8+ | 否 | 1.0 \| PlaybackSpeed.
Speed_Forward_1_00_X | 视频播放倍速。
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> number取值仅支持:0.75,1.0,1.25,1.75,2.0。
| - | previewUri | string \| PixelMap8+ \| [Resource](../../ui/ts-types.md#resource类型) | 否 | - | 预览图片的路径。 | + | previewUri | string \| PixelMap8+ \| [Resource](../../ui/ts-types.md#Resource类型) | 否 | - | 预览图片的路径。 | | controller | [VideoController](#videocontroller) | 否 | - | 控制器。 | diff --git a/zh-cn/application-dev/ui/ts-types.md b/zh-cn/application-dev/ui/ts-types.md index 62c4f1d5b9..83a1d81fe2 100644 --- a/zh-cn/application-dev/ui/ts-types.md +++ b/zh-cn/application-dev/ui/ts-types.md @@ -90,6 +90,11 @@ | -------- | -------- | -------- | | ResourceColor | Color \| number \| string \| Resource | 用于描述资源颜色类型。 | +## Font类型8+ + +| 名称 | 类型定义 | 描述 | +| -------- | -------- | -------- | +| Font | {
size?: Length;
weight?: FontWeight  \| number  \| string;
family?: string  \| Resource;
style?: FontStyle;
} | 设置文本样式:
size: 设置文本尺寸,Length为number类型时,使用fp单位。
weight: 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。
family: 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial, sans-serif'。
style: 设置文本的字体样式。 | ## CustomBuilder类型8+ -- GitLab