未验证 提交 7cdae9d4 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-types.md.

Signed-off-by: NLiAn <lian15@huawei.com>
Signed-off-by: NLiAn <lian15@huawei.com>
上级 52f5a6af
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
| -------- | ------------------------------------------------------------ | | -------- | ------------------------------------------------------------ |
| string | 需要显式指定像素单位,如'10px',也可设置百分比字符串,如'100%'。 | | string | 需要显式指定像素单位,如'10px',也可设置百分比字符串,如'100%'。 |
| number | 默认单位vp。 | | number | 默认单位vp。 |
| Resource | 使用引入资源的方式,引入系统资源或者应用资源中的尺寸。 | | [Resource](#resource) | 使用引入资源的方式,引入系统资源或者应用资源中的尺寸。 |
## ResourceStr<sup>8+</sup> ## ResourceStr<sup>8+</sup>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
| 类型 | 说明 | | 类型 | 说明 |
| -------- | --------------------------------------------------- | | -------- | --------------------------------------------------- |
| string | 字符串类型。 | | string | 字符串类型。 |
| Resource | 使用引入资源的方式,引入系统资源或者应用资源中的字符串。 | | [Resource](#resource) | 使用引入资源的方式,引入系统资源或者应用资源中的字符串。 |
## Padding ## Padding
...@@ -43,10 +43,10 @@ ...@@ -43,10 +43,10 @@
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- |------------------------ | | ------- | ------ | ---- |------------------------ |
| top | Length | 否 | 组件内元素距组件顶部的尺寸。 | | top | [Length](#length) | 否 | 组件内元素距组件顶部的尺寸。 |
| right | Length | 否 | 组件内元素距组件右边界的尺寸。 | | right | [Length](#length) | 否 | 组件内元素距组件右边界的尺寸。 |
| bottom | Length | 否 | 组件内元素距组件底部的尺寸。 | | bottom | [Length](#length) | 否 | 组件内元素距组件底部的尺寸。 |
| left | Length | 否 | 组件内元素距组件左边界的尺寸。 | | left | [Length](#length) | 否 | 组件内元素距组件左边界的尺寸。 |
## Margin ## Margin
...@@ -54,10 +54,10 @@ ...@@ -54,10 +54,10 @@
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- |------------------------ | | ------- | ------ | ---- |------------------------ |
| top | Length | 否 | 组件外元素距组件顶部的尺寸。 | | top | [Length](#length) | 否 | 组件外元素距组件顶部的尺寸。 |
| right | Length | 否 | 组件外元素距组件右边界的尺寸。 | | right | [Length](#length) | 否 | 组件外元素距组件右边界的尺寸。 |
| bottom | Length | 否 | 组件外元素距组件底部的尺寸。 | | bottom | [Length](#length) | 否 | 组件外元素距组件底部的尺寸。 |
| left | Length | 否 | 组件外元素距组件左边界的尺寸。 | | left | [Length](#length) | 否 | 组件外元素距组件左边界的尺寸。 |
## Offset ## Offset
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | ------ | ---- |--------------------- | | -------- | ------ | ---- |--------------------- |
| dx | Length | 是 | 水平方向偏移量。 | | dx | [Length](#length) | 是 | 水平方向偏移量。 |
| dy | Length | 是 | 竖直方向偏移量。 | | dy | [Length](#length) | 是 | 竖直方向偏移量。 |
## ResourceColor<sup>8+</sup> ## ResourceColor<sup>8+</sup>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
| [Color](ts-appendix-enums.md#color) | 颜色枚举值。 | | [Color](ts-appendix-enums.md#color) | 颜色枚举值。 |
| number | HEX格式颜色。 | | number | HEX格式颜色。 |
| string | rgb或者rgba格式颜色。 | | string | rgb或者rgba格式颜色。 |
| Resource | 使用引入资源的方式,引入系统资源或者应用资源中的颜色。 | | [Resource](#resource) | 使用引入资源的方式,引入系统资源或者应用资源中的颜色。 |
## Font ## Font
...@@ -108,8 +108,8 @@ ...@@ -108,8 +108,8 @@
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ----- | ------- | ---- | ------------------------------------------- | | ----- | ------- | ---- | ------------------------------------------- |
| x | Length | 否 | x轴坐标,作为返回值时,类型为number,单位vp。 | | x | [Length](#length) | 否 | x轴坐标,作为返回值时,类型为number,单位vp。 |
| y | Length | 否 | y轴坐标,作为返回值时,类型为number,单位vp。 | | y | [Length](#length) | 否 | y轴坐标,作为返回值时,类型为number,单位vp。 |
## ConstraintSizeOptions ## ConstraintSizeOptions
...@@ -117,10 +117,10 @@ ...@@ -117,10 +117,10 @@
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| --------- | -------- | ---- | -------------- | | --------- | -------- | ---- | -------------- |
| minWidth | Length | 否 | 元素最小宽度。 | | minWidth | [Length](#length) | 否 | 元素最小宽度。 |
| maxWidth | Length | 否 | 元素最大宽度。 | | maxWidth | [Length](#length) | 否 | 元素最大宽度。 |
| minHeight | Length | 否 | 元素最小高度。 | | minHeight | [Length](#length) | 否 | 元素最小高度。 |
| maxHeight | Length | 否 | 元素最大高度。 | | maxHeight | [Length](#length) | 否 | 元素最大高度。 |
## SizeOptions ## SizeOptions
...@@ -128,8 +128,8 @@ ...@@ -128,8 +128,8 @@
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------- | -------- | ---- | -------------- | | ------- | -------- | ---- | -------------- |
| width | Length | 否 | 元素宽度。 | | width | [Length](#length) | 否 | 元素宽度。 |
| height | Length | 否 | 元素高度。 | | height | [Length](#length) | 否 | 元素高度。 |
## BorderOptions ## BorderOptions
...@@ -138,9 +138,9 @@ ...@@ -138,9 +138,9 @@
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------ | ------------- | ---- | ----------- | | ------ | ------------- | ---- | ----------- |
| width | Length | 否 | 边框宽度。 | | width | [Length](#length) | 否 | 边框宽度。 |
| color | ResourceColor | 否 | 边框颜色。 | | color | [ResourceColor](#resourcecolor8) | 否 | 边框颜色。 |
| radius | Length | 否 | 边框圆角半径。 | | radius | [Length](#length) | 否 | 边框圆角半径。 |
| style | [BorderStyle](ts-appendix-enums.md#borderstyle) | 否 | 边框样式。 | | style | [BorderStyle](ts-appendix-enums.md#borderstyle) | 否 | 边框样式。 |
## CustomBuilder<sup>8+</sup> ## CustomBuilder<sup>8+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册