From 9a4771d2189147ba9eda9ef9909d72a86b775a27 Mon Sep 17 00:00:00 2001 From: fangzhiyuan Date: Wed, 2 Jul 2025 19:50:50 +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: fangzhiyuan --- .../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 a947e402df4..632ef239c30 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 516201d11c9..5a4bfef5a0b 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 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