未验证 提交 32c03aad 编写于 作者: O openharmony_ci 提交者: Gitee

!16740 翻译完成 16495+16418+16670:更新 ts-types.md

Merge pull request !16740 from ester.zhou/TR-16495
...@@ -124,8 +124,8 @@ The **ResourceColor** type is used to describe the color types of resources. ...@@ -124,8 +124,8 @@ The **ResourceColor** type is used to describe the color types of resources.
| Type | Description | | Type | Description |
| ---------------------------------------- | ------------------------------------------------- | | ---------------------------------------- | ------------------------------------------------- |
| [Color](ts-appendix-enums.md#color) | Color enums. | | [Color](ts-appendix-enums.md#color) | Color enums. |
| number | Color in hexadecimal notation. | | number | Color in hexadecimal notation. RGB is supported. |
| string | Color in RGB or RGBA notation. | | string | Color in RGB or ARGB notation. |
| [Resource](#resource) | Color referenced from system or application resources.| | [Resource](#resource) | Color referenced from system or application resources.|
## ColoringStrategy ## ColoringStrategy
...@@ -134,7 +134,7 @@ The **ColoringStrategy** type is used to describe the foreground colors. ...@@ -134,7 +134,7 @@ The **ColoringStrategy** type is used to describe the foreground colors.
| Name | Description | | Name | Description |
| --------- | ------- | | --------- | ------- |
| Invert | Inverse of the component background color.| | INVERT | Inverse of the component background color.|
## LengthConstrain ## LengthConstrain
...@@ -225,3 +225,14 @@ The **CustomBuilder** type is used to define custom UI descriptions in component ...@@ -225,3 +225,14 @@ The **CustomBuilder** type is used to define custom UI descriptions in component
| Name | Type | Description | | Name | Type | Description |
| ------------- | ---------------------- | ---------------------------------------- | | ------------- | ---------------------- | ---------------------------------------- |
| CustomBuilder | () => any | Must be decorated by **@Builder**. For details, see [@Builder](../../quick-start/arkts-dynamic-ui-elememt-building.md#builder).| | CustomBuilder | () => any | Must be decorated by **@Builder**. For details, see [@Builder](../../quick-start/arkts-dynamic-ui-elememt-building.md#builder).|
## PixelStretchEffectOptions<sup>10+</sup>
Describes the pixel stretch effect options.
| Name | Type | Mandatory | Description |
| ----------- | ------ | ---- | ---------- |
| left | [Length](#length) | No | Length by which a pixel is stretched towards the left edge of the image.|
| right | [Length](#length) | No | Length by which a pixel is stretched towards the right edge of the image.|
| top | [Length](#length) | No | Length by which a pixel is stretched towards the top edge of the image.|
| bottom | [Length](#length) | No | Length by which a pixel is stretched towards the bottom edge of the image.|
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册