diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-types.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-types.md index a947e402df40e3b38557348d112308c456d62023..632ef239c30c7e1b10bb869669492944760c51b9 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-types.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-types.md @@ -278,6 +278,8 @@ ## ResourceColor +type ResourceColor = [Color](ts-appendix-enums.md#color) | number | string | [Resource](#resource) + 颜色类型,用于描述资源颜色类型。 **卡片能力:** 从API version 9开始,该接口支持在ArkTS卡片中使用。 diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-graphics.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-graphics.md index 516201d11c9e586b51f4c4fe826ab91e3b6140c7..5a4bfef5a0b35d7eed2ddeb89f7a96003524591b 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-graphics.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-graphics.md @@ -20,7 +20,7 @@ import { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4 **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------ | ------ | ---- | ---- | ---------------------- | | width | number | 是 | 是 | 组件大小的宽度。
单位:vp
取值范围:[0, +∞) | | height | number | 是 | 是 | 组件大小的高度。
单位:vp
取值范围:[0, +∞) | @@ -315,7 +315,7 @@ struct Index { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------ | ---- | ---- | ---- | ---------------- | | left | T | 是 | 是 | 左侧边框的属性。 | | top | T | 是 | 是 | 顶部边框的属性。 | @@ -346,7 +346,7 @@ struct Index { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------ | ---- | ---- | ---- | ---------------- | | width | T | 是 | 是 | 宽度的属性。 | | height | T | 是 | 是 | 高度的属性。 | @@ -374,7 +374,7 @@ struct Index { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------------ | ---------------------------------------- | ---- | ---- | ------ | | value | number | 是 | 是 | 长度属性的值。 | | unit | [LengthUnit](#lengthunit12) | 是 | 是 | 长度属性的单位,默认为VP。| @@ -801,7 +801,7 @@ struct ColorMetricsSample { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ----------- | ---- | ---- | ---- | ---------------------- | | topLeft | T | 是 | 是 | 左上边框的圆角属性。 | | topRight | T | 是 | 是 | 右上边框的圆角属性。 | @@ -858,7 +858,7 @@ type Rect = common2D.Rect **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------- | ----------------------------- | ---- | ---- | ---------------- | | rect | [Rect](#rect12) | 是 | 是 | 设置矩形的属性。 | | corners | [CornerRadius](#cornerradius12) | 是 | 是 | 设置圆角的属性。 | @@ -871,7 +871,7 @@ type Rect = common2D.Rect **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------- | ------ | ---- | ---- | ------------------------- | | centerX | number | 是 | 是 | 圆心x轴的位置,单位为px。 | | centerY | number | 是 | 是 | 圆心y轴的位置,单位为px。 | @@ -885,7 +885,7 @@ type Rect = common2D.Rect **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------------------------------------------------------------ | ------ | ---- | ---- | ------------------------------------------------------------ | | [commands](./arkui-ts/ts-drawing-components-path.md#commands) | string | 是 | 是 | 路径绘制的指令字符串。像素单位的转换方法请参考[像素单位转换](./arkui-ts/ts-pixel-units.md#像素单位转换)。
单位:px | diff --git a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-theme.md b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-theme.md index 50ea1ee55adb47a8b53fdb2094f3ca7f33611bca..f6aac15625e04b3e5bf57ca9f999656bc81394c4 100644 --- a/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-theme.md +++ b/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-theme.md @@ -32,7 +32,7 @@ import { Theme, ThemeControl, CustomColors, Colors, CustomTheme } from '@kit.Ark **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | |-------------------------------|-----------------------------------------------------|-----|-----|------------------| | brand | [ResourceColor](arkui-ts/ts-types.md#resourcecolor) | 否 | 否 | 品牌色。 | | warning | [ResourceColor](arkui-ts/ts-types.md#resourcecolor) | 否 | 否 | 一级警示色。 |