diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219864149.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219864149.png
deleted file mode 100644
index 2c20e6d28a0636b8122f6377052933c33cfcffaf..0000000000000000000000000000000000000000
Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001219864149.png and /dev/null differ
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md
index 3e7c936017b6261468ac600c72ca89da39579ee4..7213e77d845a93e31e123014b397b814d6b897e5 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-background.md
@@ -13,7 +13,7 @@
| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置组件的背景色。 |
| backgroundImage | src: [ResourceStr](ts-types.md#resourcestr),
repeat?: [ImageRepeat](ts-appendix-enums.md#imagerepeat) | src:图片地址,支持网络图片资源和本地图片资源地址(不支持svg类型的图片)。
repeat:设置背景图片的重复样式,默认不重复。 |
| backgroundImageSize | {
width?: [Length](ts-types.md#length),
height?: [Length](ts-types.md#length)
} \| [ImageSize](ts-appendix-enums.md#imagesize) | 设置背景图像的高度和宽度。当输入为{width: Length, height: Length}对象时,如果只设置一个属性,则第二个属性保持图片原始宽高比进行调整。默认保持原图的比例不变。
默认值:ImageSize.Auto |
-| backgroundImagePosition | [Position](ts-types.md#position8) \| [Alignment](ts-appendix-enums.md#alignment) | 设置背景图在组件中显示位置。
默认值:{x: 0,y: 0} |
+| backgroundImagePosition | [Position](ts-types.md#position8) \| [Alignment](ts-appendix-enums.md#alignment) | 设置背景图在组件中显示位置。
默认值:
{
x: 0,
y: 0
} |
## 示例
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
index 10ab112d4763b7a22d9822245d1aa44c87afbe8c..574b3191a8a64b5d67f2e5bd17408e6b71e7f72c 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
@@ -17,10 +17,10 @@
| 名称 | 类型 | 描述 |
| ---------- | ---------------------------------------- | --------------------------------------- |
| source | string \| [Resource](ts-types.md#resource) \| [linearGradient](ts-universal-attributes-gradient-color.md) | 边框图源或者渐变色设置。 |
-| slice | [Length](ts-types.md#length)\| [EdgeWidths](ts-types.md#edgewidths9) | 设置图片边框切割宽度。
默认值:0 |
-| width | [Length](ts-types.md#length)\| [EdgeWidths](ts-types.md#edgewidths9) | 设置图片边框宽度。
默认值:0 |
-| outset | [Length](ts-types.md#length)\| [EdgeWidths](ts-types.md#edgewidths9) | 设置边框图片向外延伸距离。
默认值:0 |
-| RepeatMode | RepeatMode | 设置边框图片的重复方式。
默认值:RepeatMode.Stretch |
+| slice | [Length](ts-types.md#length) \| [EdgeWidths](ts-types.md#edgewidths9) | 设置图片边框切割宽度。
默认值:0 |
+| width | [Length](ts-types.md#length) \| [EdgeWidths](ts-types.md#edgewidths9) | 设置图片边框宽度。
默认值:0 |
+| outset | [Length](ts-types.md#length) \| [EdgeWidths](ts-types.md#edgewidths9) | 设置边框图片向外延伸距离。
默认值:0 |
+| repeat | [RepeatMode](#repeatmode枚举说明) | 设置边框图片的重复方式。
默认值:RepeatMode.Stretch |
| fill | boolean | 设置边框图片中心填充。
默认值:false |
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border.md
index 50f39d873d28939f1bc9da5b1d19f66ebdbb7b5d..e4861b5876a42bbd9b0c5367d111661358eb8512 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border.md
@@ -13,11 +13,11 @@
| 名称 | 参数类型 | 描述 |
| ------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
-| border | {
width?: [Length](ts-types.md#length) \| [EdgeWidths9+](#edgewidths9对象说明),
color?: [ResourceColor](ts-types.md#resourcecolor) \| [EdgeColors9+](#edgecolors9对象说明),
radius?: [Length](ts-types.md#length) \| [BorderRadiuses9+](#borderradiuses9对象说明),
style?: [BorderStyle](ts-appendix-enums.md#borderstyle) \| [EdgeStyles9+](#edgestyles9对象说明)
} | 统一边框样式设置接口。
- width:设置边框宽度。
- color:设置边框颜色。
- radius:设置边框圆角半径。
- style:设置边框样式。 |
-| borderStyle | [BorderStyle](ts-appendix-enums.md#borderstyle) \| [EdgeStyles9+](#edgestyles9对象说明) | 设置元素的边框样式。
默认值:BorderStyle.Solid |
-| borderWidth | [Length](ts-types.md#length) \| [EdgeWidths9+](#edgewidths9对象说明) | 设置元素的边框宽度,不支持百分比。 |
-| borderColor | [ResourceColor](ts-types.md#resourcecolor) \| [EdgeColors9+](#edgecolors9对象说明) | 设置元素的边框颜色。 |
-| borderRadius | [Length](ts-types.md#length) \| [BorderRadiuses9+](#borderradiuses9对象说明) | 设置元素的边框圆角半径,不支持百分比。 |
+| border | {
width?: [Length](ts-types.md#length) \| [EdgeWidths](#edgewidths9对象说明)9+,
color?: [ResourceColor](ts-types.md#resourcecolor) \| [EdgeColors](#edgecolors9对象说明)9+,
radius?: [Length](ts-types.md#length) \| [BorderRadiuses](#borderradiuses9对象说明)9+,
style?: [BorderStyle](ts-appendix-enums.md#borderstyle) \| [EdgeStyles](#edgestyles9对象说明)9+
} | 统一边框样式设置接口。
- width:设置边框宽度。
- color:设置边框颜色。
- radius:设置边框圆角半径。
- style:设置边框样式。 |
+| borderStyle | [BorderStyle](ts-appendix-enums.md#borderstyle) \| [EdgeStyles](#edgestyles9对象说明)9+ | 设置元素的边框样式。
默认值:BorderStyle.Solid |
+| borderWidth | [Length](ts-types.md#length) \| [EdgeWidths](#edgewidths9对象说明)9+ | 设置元素的边框宽度,不支持百分比。 |
+| borderColor | [ResourceColor](ts-types.md#resourcecolor) \| [EdgeColors](#edgecolors9对象说明)9+ | 设置元素的边框颜色。 |
+| borderRadius | [Length](ts-types.md#length) \| [BorderRadiuses](#borderradiuses9对象说明)9+ | 设置元素的边框圆角半径,不支持百分比。 |
## EdgeWidths9+对象说明
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
index 7109c2d16a187e6975eaa8758d043bec6ad85c26..8f74a939c67413f65fe610e99754a46dfa4b7dd0 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
@@ -172,7 +172,7 @@ struct IdExample {
console.info(getInspectorTree())
this.text = "Button 'click to start' is clicked"
setTimeout(() => {
- sendEventByKey("longClick", 11, "") //给id为"longClick"的组件发送长按事件
+ sendEventByKey("longClick", 11, "") // 向id为"longClick"的组件发送长按事件
}, 2000)
}).id('click')
@@ -184,18 +184,18 @@ struct IdExample {
console.info('long clicked')
this.text = "Button 'longClick' is longclicked"
setTimeout(() => {
- let rect = Utils.getComponentRect('onTouch') //获取id为"onTouch"组件的矩形区域坐标
+ let rect = Utils.getComponentRect('onTouch') // 获取id为"onTouch"组件的矩形区域坐标
let touchPoint: TouchObject = {
id: 1,
- x: rect.left + (rect.right - rect.left) / 2, //组件中心点x坐标
- y: rect.top + (rect.bottom - rect.top) / 2, //组件中心点y坐标
+ x: rect.left + (rect.right - rect.left) / 2, // 组件中心点x坐标
+ y: rect.top + (rect.bottom - rect.top) / 2, // 组件中心点y坐标
type: TouchType.Down,
- screenX: rect.left + (rect.right - rect.left) / 2, //组件中心点x坐标
- screenY: rect.left + (rect.right - rect.left) / 2, //组件中心点y坐标
+ screenX: rect.left + (rect.right - rect.left) / 2, // 组件中心点x坐标
+ screenY: rect.left + (rect.right - rect.left) / 2, // 组件中心点y坐标
}
- sendTouchEvent(touchPoint) //发送触摸事件
+ sendTouchEvent(touchPoint) // 发送触摸事件
touchPoint.type = TouchType.Up
- sendTouchEvent(touchPoint) //发送触摸事件
+ sendTouchEvent(touchPoint) // 发送触摸事件
}, 2000)
})).id('longClick')
@@ -206,14 +206,14 @@ struct IdExample {
console.info('onTouch is clicked')
this.text = "Button 'onTouch' is clicked"
setTimeout(() => {
- let rect = Utils.getComponentRect('onMouse') //获取id为"onMouse"组件的矩形区域坐标
+ let rect = Utils.getComponentRect('onMouse') // 获取id为"onMouse"组件的矩形区域坐标
let mouseEvent: MouseEvent = {
button: MouseButton.Left,
action: MouseAction.Press,
- x: rect.left + (rect.right - rect.left) / 2, //组件中心点x坐标
- y: rect.top + (rect.bottom - rect.top) / 2, //组件中心点y坐标
- screenX: rect.left + (rect.right - rect.left) / 2, //组件中心点x坐标
- screenY: rect.top + (rect.bottom - rect.top) / 2, //组件中心点y坐标
+ x: rect.left + (rect.right - rect.left) / 2, // 组件中心点x坐标
+ y: rect.top + (rect.bottom - rect.top) / 2, // 组件中心点y坐标
+ screenX: rect.left + (rect.right - rect.left) / 2, // 组件中心点x坐标
+ screenY: rect.top + (rect.bottom - rect.top) / 2, // 组件中心点y坐标
timestamp: 1,
target: {
area: {
@@ -231,7 +231,7 @@ struct IdExample {
},
source: SourceType.Mouse
}
- sendMouseEvent(mouseEvent) //发送鼠标事件
+ sendMouseEvent(mouseEvent) // 发送鼠标事件
}, 2000)
}).id('onTouch')
@@ -251,7 +251,7 @@ struct IdExample {
metaKey: 0,
timestamp: 0
}
- sendKeyEvent(keyEvent) //发送按键事件
+ sendKeyEvent(keyEvent) // 发送按键事件
}, 2000)
}).id('onMouse')
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hit-test-behavior.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hit-test-behavior.md
index e379e647fab1bec6c1c2f0c9eeef8033a7bc2037..e734109f6ad6f387155b3d9848b69cedb213fed6 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hit-test-behavior.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-hit-test-behavior.md
@@ -1,6 +1,6 @@
# 触摸测试控制
-设置组件的触摸测试类型。ArkUI开发框架在处理触屏事件时,会在触屏事件触发前,进行按压点和组件区域的触摸测试来收集需要响应触屏事件的组件,然后基于触摸测试结果分发相应的触屏事件。hitTestBehavior属性可以设置不同的触摸测试响应模式,影响组件的触摸测试收集结果,最终影响后续的触屏事件分发,具体影响参考[HitTestMode](#hittestmode 枚举说明)枚举说明。
+设置组件的触摸测试类型。ArkUI开发框架在处理触屏事件时,会在触屏事件触发前,进行按压点和组件区域的触摸测试来收集需要响应触屏事件的组件,然后基于触摸测试结果分发相应的触屏事件。hitTestBehavior属性可以设置不同的触摸测试响应模式,影响组件的触摸测试收集结果,最终影响后续的触屏事件分发,具体影响参考[HitTestMode](#hittestmode枚举说明)枚举说明。
> **说明:**
> - 从API Version 9开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
@@ -11,9 +11,9 @@
| **名称** | **参数类型** | **描述** |
| -------------------- | -------- | ---------------------------------------- |
-| hitTestBehavior | [HitTestMode](#hittestmode 枚举说明) | 设置当前组件的触摸测试类型。
默认值: HitTestMode.Default |
+| hitTestBehavior | [HitTestMode](#hittestmode枚举说明) | 设置当前组件的触摸测试类型。
默认值: HitTestMode.Default |
-## HitTestMode 枚举说明
+## HitTestMode枚举说明
| 名称 | 描述 |
| ------------| ----------------------------------------- |