Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
651ff265
D
Docs
项目概览
OpenHarmony
/
Docs
10 个月 前同步成功
通知
158
Star
292
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
651ff265
编写于
3月 18, 2022
作者:
K
kukixi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
match api changes
Signed-off-by:
N
kukixi
<
kouxinxin@huawei.com
>
上级
da71d188
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
38 addition
and
38 deletion
+38
-38
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-scrollbar.md
...n-dev/reference/arkui-ts/ts-basic-components-scrollbar.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
...tion-dev/reference/arkui-ts/ts-basic-components-select.md
+4
-4
zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md
...on-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md
+4
-4
zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
...n-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-explicit-animation.md
...plication-dev/reference/arkui-ts/ts-explicit-animation.md
+4
-4
zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md
...ation-dev/reference/arkui-ts/ts-media-components-video.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md
...on-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-click.md
...n-dev/reference/arkui-ts/ts-universal-attributes-click.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hover-effect.md
...eference/arkui-ts/ts-universal-attributes-hover-effect.md
+8
-8
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-polymorphic-style.md
...nce/arkui-ts/ts-universal-attributes-polymorphic-style.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md
...n-dev/reference/arkui-ts/ts-universal-attributes-popup.md
+3
-3
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md
...ation-dev/reference/arkui-ts/ts-universal-events-click.md
+2
-2
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
浏览文件 @
651ff265
...
...
@@ -64,9 +64,9 @@ Navigation()
## 事件
| 名称 | 功能描述 |
| 名称 | 功能描述 |
| -------- | -------- |
| onTitleModeChange
d(callback:
(titleMode:
NavigationTitleMode)
=
>
void) | 当titleMode为NavigationTitleMode.Free时,随着可滚动组件的滑动标题栏模式发生变化时触发此回调。 |
| onTitleModeChange
(callback:
(titleMode:
NavigationTitleMode)
=
>
void) | 当titleMode为NavigationTitleMode.Free时,随着可滚动组件的滑动标题栏模式发生变化时触发此回调。 |
## 示例
...
...
@@ -138,7 +138,7 @@ struct NavigationExample {
.titleMode(NavigationTitleMode.Free)
.hideTitleBar(false)
.hideBackButton(false)
.onTitleModeChange
d
((titleModel: NavigationTitleMode) => {
.onTitleModeChange((titleModel: NavigationTitleMode) => {
console.log('titleMode')
})
.toolBar({ items: [
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md
浏览文件 @
651ff265
...
...
@@ -19,9 +19,9 @@
## 接口
ScrollBar(value: ScrollBarOption)
ScrollBar(value: ScrollBarOption
s
)
-
ScrollBarOption的参数描述
-
ScrollBarOption
s
的参数描述
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| scroller |
[
Scroller
](
ts-container-scroll.md#scroller
)
| 是 | - | 可滚动组件的控制器。用于与可滚动组件进行绑定。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
浏览文件 @
651ff265
...
...
@@ -40,9 +40,9 @@ Select(options: Array<SelectOption>)
## 事件
| 名称
| 功能描述 |
| -----------------------------------------------------------
-
| ------------------------------------------------------------ |
| onSelect
ed
(callback: (index: number, value?:string) => void) | 下拉菜单选中某一项的回调。index:选中项的索引。value:选中项的值。 |
| 名称 | 功能描述 |
| ----------------------------------------------------------- | ------------------------------------------------------------ |
| onSelect(callback: (index: number, value?:string) => void) | 下拉菜单选中某一项的回调。index:选中项的索引。value:选中项的值。 |
## 示例
...
...
@@ -61,7 +61,7 @@ struct SliderExample {
.font({size: 30, weight:400, family: 'serif', style: FontStyle.Normal })
.selectedOptionFont({size: 40, weight: 500, family: 'serif', style: FontStyle.Normal })
.optionFont({size: 30, weight: 400, family: 'serif', style: FontStyle.Normal })
.onSelect
ed
((index:number)=>{
.onSelect((index:number)=>{
console.info("Select:" + index)
})
}
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md
浏览文件 @
651ff265
...
...
@@ -11,7 +11,7 @@
## 接口
PanGesture(options?: { fingers?: number, direction?: PanDirection, distance?: number } |
[
PanGestureOption
](
#pangestureoption
)
)
PanGesture(options?: { fingers?: number, direction?: PanDirection, distance?: number } |
[
PanGestureOption
s
](
#pangestureoptions
)
)
-
参数
| 参数名称 | 参数类型 | 必填 | 默认值 | 参数描述 |
...
...
@@ -33,11 +33,11 @@ PanGesture(options?: { fingers?: number, direction?: PanDirection, distance?: nu
| None | 任何方向都不可滑动。 |
### PanGestureOption
### PanGestureOption
s
通过PanGestureOption对象接口可以动态修改滑动手势识别器的属性,从而避免通过状态变量修改属性(状态变量修改会导致UI刷新)。
通过PanGestureOption
s
对象接口可以动态修改滑动手势识别器的属性,从而避免通过状态变量修改属性(状态变量修改会导致UI刷新)。
PanGestureOption(options?: { fingers?: number, direction?: PanDirection, distance?: number })
PanGestureOption
s
(options?: { fingers?: number, direction?: PanDirection, distance?: number })
-
参数
同PanGesture参数说明。
...
...
zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
浏览文件 @
651ff265
...
...
@@ -57,7 +57,7 @@ AlphabetIndexer(value: {arrayValue : Array<string>, selected : number})
| -------- | -------- |
| onSelected(index:
number)
=
>
void | 索引条选中回调。 |
| onRequestPopupData(callback:
(index:
number)
=
>
Array
<
string
>
)
<sup>
8+
</sup>
| 选中字母索引后,请求索引提示窗口显示内容回调。
<br/>
返回值:索引对应的字符串数组,此字符串数组在弹出窗口中竖排显示,字符串列表最多显示5个,超出部分可以滑动显示。 |
| onPopupSelect
ed
(callback:
(index:
number)
=
>
void)
<sup>
8+
</sup>
| 字母索引提示窗口选中回调。 |
| onPopupSelect(callback:
(index:
number)
=
>
void)
<sup>
8+
</sup>
| 字母索引提示窗口选中回调。 |
## 示例
...
...
@@ -79,7 +79,7 @@ struct AlphabetIndexerSample {
.popupFont({ size: 30, weight: FontWeight.Bolder }) // 弹出框的演示
.itemSize(28) // 每一项的大小正方形
.alignStyle(IndexerAlign.Left) // 左对齐
.onSelect
ed
((index: number) => {
.onSelect((index: number) => {
console.info(this.value[index] + '被选中了') // 选中的事件
})
.margin({ left: 50 })
...
...
zh-cn/application-dev/reference/arkui-ts/ts-explicit-animation.md
浏览文件 @
651ff265
...
...
@@ -4,12 +4,12 @@
> 从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
| 接口名称
| 功能描述 |
| --------
|
-------- |
| animateTo(value:
[AnimationOption
](#animationoption对象说明),
event:
()=
>
void)
:
void | 提供全局animateTo显式动画接口来指定由于闭包代码导致的状态变化插入过渡动效。
<br/>
event指定显示动效的闭包函数,在闭包函数中导致的状态变化系统会自动插入过渡动画。 |
| 接口名称
| 功能描述 |
| --------
---------------------------------------------------- | ----------------------------------------------------
-------- |
| animateTo(value:
[AnimationOption
s](#animationoptions对象说明),
event:
()=
>
void)
:
void | 提供全局animateTo显式动画接口来指定由于闭包代码导致的状态变化插入过渡动效。
<br/>
event指定显示动效的闭包函数,在闭包函数中导致的状态变化系统会自动插入过渡动画。 |
## AnimationOption对象说明
## AnimationOption
s
对象说明
-
属性
| 属性名称 | 属性类型 | 默认值 | 描述 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-media-components-video.md
浏览文件 @
651ff265
...
...
@@ -14,9 +14,9 @@
## 接口
Video(value: VideoOption)
Video(value: VideoOption
s
)
-
VideoOption类型接口说明
-
VideoOption
s
类型接口说明
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| src | string | 否 | - | 视频播放源的路径。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md
浏览文件 @
651ff265
...
...
@@ -11,11 +11,11 @@
## TextPickerDialog.show
show(options: TextPickerDialogOption)
show(options: TextPickerDialogOption
s
)
定义文本滑动选择器弹窗并弹出。
-
TextPickerDialogOption参数
-
TextPickerDialogOption
s
参数
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| range | string[] | 是 | - | 选择器的数据选择范围。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-click.md
浏览文件 @
651ff265
# 点击控制
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 从API Version
8
开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
> 从API Version
7
开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
## 权限列表
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hover-effect.md
浏览文件 @
651ff265
...
...
@@ -16,12 +16,12 @@
| hoverEffect | HoverEffect | HoverEffect.Auto | 设置当前组件悬停态下的悬浮效果。 |
-
HoverEffect 枚举说明
| 名称 | 描述 |
| 名称 | 描述 |
| -------- | -------- |
| Auto | 使用组件的系统默认悬浮效果。 |
| Scale | 放大缩小效果。 |
|
Board | 背景淡入淡出效果。 |
| None | 不设置效果。 |
| Auto | 使用组件的系统默认悬浮效果。 |
| Scale | 放大缩小效果。 |
|
Highlight | 背景淡入淡出的强调效果。 |
| None | 不设置效果。 |
## 示例
...
...
@@ -41,17 +41,17 @@ struct HoverExample {
.position({ x: 40, y: 120 })
.hoverEffect(HoverEffect.Scale)
.onHover((isHover: boolean) => {
console.info('Scale' + isHover)
console.info('Scale
isHover:
' + isHover)
this.isHoverVal = isHover
})
Text('Board').fontSize(20).fontColor(Color.Gray).width('90%').position({ x: 0, y: 380 })
Column()
.width('80%').height(200).backgroundColor(Color.Gray)
.hoverEffect(HoverEffect.
Board
)
.hoverEffect(HoverEffect.
Highlight
)
.position({ x: 40, y: 420 })
.onHover((isHover: boolean) => {
console.info('H
overEffect.Board'
)
console.info('H
ighlight isHover: ' +isHover
)
this.isHoverVal = isHover
})
}
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-polymorphic-style.md
浏览文件 @
651ff265
...
...
@@ -16,7 +16,7 @@
| 名称 | 参数类型 | 默认值 | 描述 |
| -------- | -------- | -------- | -------- |
| stateStyle | StateStyles | - | 设置组件不同状态的样式。 |
| stateStyle
s
| StateStyles | - | 设置组件不同状态的样式。 |
-
StateStyles接口说明
| 名称 | 类型 | 必填 | 默认值 | 描述 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md
浏览文件 @
651ff265
...
...
@@ -14,10 +14,10 @@
| 名称 | 参数类型 | 默认值 | 描述 |
| -------- | -------- | -------- | -------- |
| bindPopup | show:
boolean,
<br/>
popup:
PopupOption
\|
CustomPopupOption
| - | 给组件绑定Popup,点击弹出弹窗。
<br/>
show:
创建页面弹窗提示是否默认显示,默认值为false。
<br/>
popup:
配置当前弹窗提示的参数。 |
| bindPopup | show:
boolean,
<br/>
popup:
PopupOption
s\|
CustomPopupOptions
| - | 给组件绑定Popup,点击弹出弹窗。
<br/>
show:
创建页面弹窗提示是否默认显示,默认值为false。
<br/>
popup:
配置当前弹窗提示的参数。 |
-
PopupOption类型接口说明
-
PopupOption
s
类型接口说明
| 名称 | 类型 | 必填 | 默认值 | 描述 |
| -------- | -------- | -------- | -------- | -------- |
| message | string | 是 | - | 弹窗信息内容。 |
...
...
@@ -26,7 +26,7 @@
| secondaryButton | {
<br/>
value:
string,
<br/>
action:
()
=
>
void
<br/>
} | 否 | - | 第二个按钮。
<br/>
value:
弹窗里辅助按钮的文本。
<br/>
action:
点击辅助按钮的回调函数。 |
| onStateChange | (isVisible:
boolean)
=
>
void | 否 | - | 弹窗状态变化事件回调,参数isVisible为弹窗当前的显示状态。 |
-
CustomPopupOption
<sup>
8+
</sup>
类型接口说明
-
CustomPopupOption
s
<sup>
8+
</sup>
类型接口说明
| 名称 | 类型 | 必填 | 默认值 | 描述 |
| -------- | -------- | -------- | -------- | -------- |
| builder | ()
=
>
any | 是 | - | 提示气泡内容的构造器。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md
浏览文件 @
651ff265
...
...
@@ -35,8 +35,8 @@
| -------- | -------- | -------- |
| width | number | 目标元素的宽度,单位为vp。 |
| height | number | 目标元素的高度,单位为vp。 |
| pos | Position | 目标元素左上角相对父元素左上角的位置。 |
| globalPos | Position | 目标元素左上角相对页面左上角的位置。 |
| pos
ition
| Position | 目标元素左上角相对父元素左上角的位置。 |
| globalPos
ition
| Position | 目标元素左上角相对页面左上角的位置。 |
-
Position
<sup>
8+
</sup>
对象说明
| 属性名称 | 参数类型 | 描述 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录