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 aaaffec88d0661ddd173b180dd9e9d7e76126816..6e0a1e7ea6f111be59804ddc110ad59cb7f59cc1 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 @@ -64,9 +64,9 @@ Navigation() ## 事件 -| 名称 | 功能描述 | +| 名称 | 功能描述 | | -------- | -------- | -| onTitleModeChanged(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) - .onTitleModeChanged((titleModel: NavigationTitleMode) => { + .onTitleModeChange((titleModel: NavigationTitleMode) => { console.log('titleMode') }) .toolBar({ items: [ diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md index 0b59d6a846540b804705777e32fed355d64eed37..fb2139c20442965793177da3f7d258ae979bf22e 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md @@ -19,9 +19,9 @@ ## 接口 -ScrollBar(value: ScrollBarOption) +ScrollBar(value: ScrollBarOptions) -- ScrollBarOption的参数描述 +- ScrollBarOptions的参数描述 | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | -------- | -------- | -------- | -------- | -------- | | scroller | [Scroller](ts-container-scroll.md#scroller) | 是 | - | 可滚动组件的控制器。用于与可滚动组件进行绑定。 | 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 b6c9f6927ae5d374901c8668d70e174a73d843c7..b4d8507557565f60ea52d2e10f198cd4b3a154fb 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 @@ -40,9 +40,9 @@ Select(options: Array) ## 事件 -| 名称 | 功能描述 | -| ------------------------------------------------------------ | ------------------------------------------------------------ | -| onSelected(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 }) - .onSelected((index:number)=>{ + .onSelect((index:number)=>{ console.info("Select:" + index) }) } diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md index d6ef7f4010f2e86e385c86b05b66564ccd50b828..b06b52f666b298cdf2a738390fa5705ace9ca7aa 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-pangesture.md @@ -11,7 +11,7 @@ ## 接口 -PanGesture(options?: { fingers?: number, direction?: PanDirection, distance?: number } | [PanGestureOption](#pangestureoption)) +PanGesture(options?: { fingers?: number, direction?: PanDirection, distance?: number } | [PanGestureOptions](#pangestureoptions)) - 参数 | 参数名称 | 参数类型 | 必填 | 默认值 | 参数描述 | @@ -33,11 +33,11 @@ PanGesture(options?: { fingers?: number, direction?: PanDirection, distance?: nu | None | 任何方向都不可滑动。 | -### PanGestureOption +### PanGestureOptions -通过PanGestureOption对象接口可以动态修改滑动手势识别器的属性,从而避免通过状态变量修改属性(状态变量修改会导致UI刷新)。 +通过PanGestureOptions对象接口可以动态修改滑动手势识别器的属性,从而避免通过状态变量修改属性(状态变量修改会导致UI刷新)。 -PanGestureOption(options?: { fingers?: number, direction?: PanDirection, distance?: number }) +PanGestureOptions(options?: { fingers?: number, direction?: PanDirection, distance?: number }) - 参数 同PanGesture参数说明。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md index 739e60b734ee65f10e29456a1dc80ea6512ff1b7..f3ebe26934d894f3629655440db52ea5a0f56060 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md @@ -57,7 +57,7 @@ AlphabetIndexer(value: {arrayValue : Array<string>, selected : number}) | -------- | -------- | | onSelected(index: number) => void | 索引条选中回调。 | | onRequestPopupData(callback: (index: number) => Array<string>)8+ | 选中字母索引后,请求索引提示窗口显示内容回调。
返回值:索引对应的字符串数组,此字符串数组在弹出窗口中竖排显示,字符串列表最多显示5个,超出部分可以滑动显示。 | -| onPopupSelected(callback: (index: number) => void)8+ | 字母索引提示窗口选中回调。 | +| onPopupSelect(callback: (index: number) => void)8+ | 字母索引提示窗口选中回调。 | ## 示例 @@ -79,7 +79,7 @@ struct AlphabetIndexerSample { .popupFont({ size: 30, weight: FontWeight.Bolder }) // 弹出框的演示 .itemSize(28) // 每一项的大小正方形 .alignStyle(IndexerAlign.Left) // 左对齐 - .onSelected((index: number) => { + .onSelect((index: number) => { console.info(this.value[index] + '被选中了') // 选中的事件 }) .margin({ left: 50 }) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-explicit-animation.md b/zh-cn/application-dev/reference/arkui-ts/ts-explicit-animation.md index 0d763a554becbe28bd5905b6c393efdd3a3f9741..9b2c8200c3c62f8472861e88590fd3fb47866e0f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-explicit-animation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-explicit-animation.md @@ -4,12 +4,12 @@ > 从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 -| 接口名称 | 功能描述 | -| -------- | -------- | -| animateTo(value: [AnimationOption](#animationoption对象说明), event: ()=> void) : void | 提供全局animateTo显式动画接口来指定由于闭包代码导致的状态变化插入过渡动效。
event指定显示动效的闭包函数,在闭包函数中导致的状态变化系统会自动插入过渡动画。 | +| 接口名称 | 功能描述 | +| ------------------------------------------------------------ | ------------------------------------------------------------ | +| animateTo(value: [AnimationOptions](#animationoptions对象说明), event: ()=> void) : void | 提供全局animateTo显式动画接口来指定由于闭包代码导致的状态变化插入过渡动效。
event指定显示动效的闭包函数,在闭包函数中导致的状态变化系统会自动插入过渡动画。 | -## AnimationOption对象说明 +## AnimationOptions对象说明 - 属性 | 属性名称 | 属性类型 | 默认值 | 描述 | 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 fe0e8e92dbbcb024fe7400043d7385fa6b7c2fb7..56ab4ddf902b65ed4427f548a0fafa229863a897 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 @@ -14,9 +14,9 @@ ## 接口 -Video(value: VideoOption) +Video(value: VideoOptions) -- VideoOption类型接口说明 +- VideoOptions类型接口说明 | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | -------- | -------- | -------- | -------- | -------- | | src | string | 否 | - | 视频播放源的路径。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md b/zh-cn/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md index 5e16350f67e178461c1e7ce57ab38f3e156682bf..b9c0e9cd7a1a410f2509f6ceb719820272d1c90f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-methods-textpicker-dialog.md @@ -11,11 +11,11 @@ ## TextPickerDialog.show -show(options: TextPickerDialogOption) +show(options: TextPickerDialogOptions) 定义文本滑动选择器弹窗并弹出。 -- TextPickerDialogOption参数 +- TextPickerDialogOptions参数 | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | -------- | -------- | -------- | -------- | -------- | | range | string[] | 是 | - | 选择器的数据选择范围。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-click.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-click.md index a60397de2481f18ed6d7cbd9b8adbeadb18db665..78dce2d7effffdc585c46edc63e9f1f6bce3fa59 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-click.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-click.md @@ -1,7 +1,7 @@ # 点击控制 > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 从API Version 8开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 +> 从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 ## 权限列表 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hover-effect.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hover-effect.md index da7f2b1e0a0dd6ca0d6577cd31861fc95284f5d3..796b92a921c929133d6c1f9adec13f2b0f78dcce 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hover-effect.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hover-effect.md @@ -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('HoverEffect.Board') + console.info('Highlight isHover: ' +isHover ) this.isHoverVal = isHover }) } diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-polymorphic-style.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-polymorphic-style.md index 28c0b3dcf612d27876403437211e218997564a3f..02941dc6bccbf1e0c8429e1aa69b0a22f2d30d43 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-polymorphic-style.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-polymorphic-style.md @@ -16,7 +16,7 @@ | 名称 | 参数类型 | 默认值 | 描述 | | -------- | -------- | -------- | -------- | -| stateStyle | StateStyles | - | 设置组件不同状态的样式。 | +| stateStyles | StateStyles | - | 设置组件不同状态的样式。 | - StateStyles接口说明 | 名称 | 类型 | 必填 | 默认值 | 描述 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md index ad1873ea00073974a129ca8d303813ba42b46c90..69d70e9c745cdc6ce553309a311376efdc601e9a 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md @@ -14,10 +14,10 @@ | 名称 | 参数类型 | 默认值 | 描述 | | -------- | -------- | -------- | -------- | -| bindPopup | show: boolean,
popup: PopupOption\| CustomPopupOption | - | 给组件绑定Popup,点击弹出弹窗。
show: 创建页面弹窗提示是否默认显示,默认值为false。
popup: 配置当前弹窗提示的参数。 | +| bindPopup | show: boolean,
popup: PopupOptions\| CustomPopupOptions | - | 给组件绑定Popup,点击弹出弹窗。
show: 创建页面弹窗提示是否默认显示,默认值为false。
popup: 配置当前弹窗提示的参数。 | -- PopupOption类型接口说明 +- PopupOptions类型接口说明 | 名称 | 类型 | 必填 | 默认值 | 描述 | | -------- | -------- | -------- | -------- | -------- | | message | string | 是 | - | 弹窗信息内容。 | @@ -26,7 +26,7 @@ | secondaryButton | {
value: string,
action: () => void
} | 否 | - | 第二个按钮。
value: 弹窗里辅助按钮的文本。
action: 点击辅助按钮的回调函数。 | | onStateChange | (isVisible: boolean) => void | 否 | - | 弹窗状态变化事件回调,参数isVisible为弹窗当前的显示状态。 | -- CustomPopupOption8+类型接口说明 +- CustomPopupOptions8+类型接口说明 | 名称 | 类型 | 必填 | 默认值 | 描述 | | -------- | -------- | -------- | -------- | -------- | | builder | () => any | 是 | - | 提示气泡内容的构造器。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md index c6a3fc890b0c27895a6d1e66cc9766df3124455e..1d9c61486c3f1cfdfedf13075f30ace03ee3943e 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md @@ -35,8 +35,8 @@ | -------- | -------- | -------- | | width | number | 目标元素的宽度,单位为vp。 | | height | number | 目标元素的高度,单位为vp。 | - | pos | Position | 目标元素左上角相对父元素左上角的位置。 | - | globalPos | Position | 目标元素左上角相对页面左上角的位置。 | + | position | Position | 目标元素左上角相对父元素左上角的位置。 | + | globalPosition | Position | 目标元素左上角相对页面左上角的位置。 | - Position8+对象说明 | 属性名称 | 参数类型 | 描述 |