diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md b/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md index aa8968d7c778b593e9b15e81b87d712152efc46d..5df98297bd52f9837e10872d76ca68e950290388 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputdevice.md @@ -180,11 +180,11 @@ export default { ## AxisType -轴类型,本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 +输入设备的轴类型,为'Null'。 ## AxisRange -输入设备的轴信息 +输入设备的轴信息。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.InputDevice @@ -199,7 +199,7 @@ export default { ## SourceType -定义这个轴的输入源类型。比如鼠标设备可上报x轴事件,则x轴的源就是鼠标。 +定义轴的输入源类型。比如鼠标设备可上报x轴事件,则x轴的源就是鼠标。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.InputDevice diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md index 5f97429762a29f94ff317a39179b0272b9e2dbbc..2cf0b223be7c1da3b94ef77907b6add879c7acf0 100755 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md @@ -287,7 +287,6 @@ getHitTest(): HitTestType | HttpAnchorImg | 带有超链接的图片,其中超链接的src为http。 | | Img | HTML::img标签。 | | Map | 地理地址。 | - | Phone | 电话号码。 | | Unknown | 未知内容。 | ### loadData diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md index d4aedb95f8a93932bee05d11344dc578d42e71d2..8c28acff124c4e5ee57997331a6a915b7f928e19 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md @@ -22,7 +22,7 @@ | 名称 | 参数类型 | 必填 | 描述 | | ----------- | --------------------------------------------- | ---- | ------------------------------------------------------------ | | id | string | 是 | 组件的唯一标识,支持最大的字符串长度128。 | - | type | string | 是 | 用于指定XComponent组件类型,可选值为:
-surface:组件内容单独送显,直接合成到屏幕。
-component:组件内容与其他组件合成后统一送显。
component类型在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 | + | type | string | 是 | 用于指定XComponent组件类型,可选值为:
-surface:组件内容单独送显,直接合成到屏幕。
-component:组件内容与其他组件合成后统一送显。| | libraryname | string | 否 | 应用Native层编译输出动态库名称。 | | controller | [XComponentController](#XComponentController) | 否 | 给组件绑定一个控制器,通过控制器调用组件方法。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md b/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md index 395dfa42cbac26e17527ad19f039c4a90f0c152a..498690dcb00b9e93dc70ccd04d26e5b7ecdf5486 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-gesture-settings.md @@ -79,7 +79,7 @@ struct GestureSettingsExample { TapGesture() .onAction((event: GestureEvent) => { this.value = 'priorityGesture onAction' + '\ncomponent globalPos:(' - + event.target.area.globalPos.x + ',' + event.target.area.globalPos.y + ')\nwidth:' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\nwidth:' + event.target.area.width + '\nheight:' + event.target.area.height }), GestureMask.IgnoreInternal ) 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 1d9c61486c3f1cfdfedf13075f30ace03ee3943e..c5da38006bd13fbe276f5b07436c91cf57320611 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 @@ -59,7 +59,7 @@ struct ClickExample { .onClick((event: ClickEvent) => { console.info(this.text = 'Click Point:' + '\n screenX:' + event.screenX + '\n screenY:' + event.screenY + '\n x:' + event.x + '\n y:' + event.y + '\ntarget:' + '\n component globalPos:(' - + event.target.area.globalPos.x + ',' + event.target.area.globalPos.y + ')\n width:' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\n width:' + event.target.area.width + '\n height:' + event.target.area.height) }) Text(this.text).padding(15) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-touch.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-touch.md index ca49bfc099d772425df32ccf6d9eb05c77a99e0f..3aa7ea59de2419093c0c27545d8c8b1e044eb3ba 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-touch.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-touch.md @@ -78,7 +78,7 @@ struct TouchExample { } console.info(this.text = 'TouchType:' + this.eventType + '\nDistance between touch point and touch element:\nx: ' + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\ncomponent globalPos:(' - + event.target.area.globalPos.x + ',' + event.target.area.globalPos.y + ')\nwidth:' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\nwidth:' + event.target.area.width + '\nheight:' + event.target.area.height) }) Text(this.text) diff --git a/zh-cn/application-dev/ui/ts-component-based-preview.md b/zh-cn/application-dev/ui/ts-component-based-preview.md index e0d33c93dd14432a0ba8113d5a18a5cf0968a7f5..b7c790de7201fddbf0e6fe68cff729bf06fa9933 100644 --- a/zh-cn/application-dev/ui/ts-component-based-preview.md +++ b/zh-cn/application-dev/ui/ts-component-based-preview.md @@ -11,7 +11,6 @@ ``` -// Display only Hello Component1 on the preview. The content under MyComponent is displayed on the real device. @Entry @Component struct MyComponent {