From 7b40ebbbef88227421dcc9f02ac687e5bd86cb44 Mon Sep 17 00:00:00 2001 From: c30077388 Date: Wed, 2 Jul 2025 16:54:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E8=AF=BB->=E5=8F=AA=E8=AF=BB&Resource?= =?UTF-8?q?Color=E5=A2=9E=E5=8A=A0=E6=9E=9A=E4=B8=BE=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: c30077388 Change-Id: Iae4a9d5a4242c839d57bbec5d04242f253c6325e --- .../reference/apis-arkui/arkui-ts/ts-types.md | 2 ++ .../apis-arkui/js-apis-arkui-graphics.md | 16 ++++++++-------- .../reference/apis-arkui/js-apis-arkui-theme.md | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) 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 6228c9c28cc..afdb672a83f 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 0fa45ccbf0b..fc4a1c136fb 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, +∞) | @@ -309,7 +309,7 @@ struct Index { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------ | ---- | ---- | ---- | ---------------- | | left | T | 是 | 是 | 左侧边框的属性。 | | top | T | 是 | 是 | 顶部边框的属性。 | @@ -340,7 +340,7 @@ struct Index { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------ | ---- | ---- | ---- | ---------------- | | width | T | 是 | 是 | 宽度的属性。 | | height | T | 是 | 是 | 高度的属性。 | @@ -368,7 +368,7 @@ struct Index { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------------ | ---------------------------------------- | ---- | ---- | ------ | | value | number | 是 | 是 | 长度属性的值。 | | unit | [LengthUnit](#lengthunit12) | 是 | 是 | 长度属性的单位,默认为VP。| @@ -769,7 +769,7 @@ struct ColorMetricsSample { **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ----------- | ---- | ---- | ---- | ---------------------- | | topLeft | T | 是 | 是 | 左上边框的圆角属性。 | | topRight | T | 是 | 是 | 右上边框的圆角属性。 | @@ -826,7 +826,7 @@ type Rect = common2D.Rect **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------- | ----------------------------- | ---- | ---- | ---------------- | | rect | [Rect](#rect12) | 是 | 是 | 设置矩形的属性。 | | corners | [CornerRadius](#cornerradius12) | 是 | 是 | 设置圆角的属性。 | @@ -839,7 +839,7 @@ type Rect = common2D.Rect **系统能力:** SystemCapability.ArkUI.ArkUI.Full -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可写 | 说明 | | ------- | ------ | ---- | ---- | ------------------------- | | centerX | number | 是 | 是 | 圆心x轴的位置,单位为px。 | | centerY | number | 是 | 是 | 圆心y轴的位置,单位为px。 | @@ -853,7 +853,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 50ea1ee55ad..f6aac15625e 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) | 否 | 否 | 一级警示色。 | -- Gitee