From 6fcf060d029728cfe4b2c7fd7ed13cd1fc26e3d4 Mon Sep 17 00:00:00 2001 From: solanightxie <1927605059@qq.com> Date: Thu, 25 Aug 2022 01:59:57 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md. Signed-off-by: solanightxie <1927605059@qq.com> Signed-off-by: solanightxie <1927605059@qq.com> --- .../reference/arkui-ts/ts-drawing-components-shape.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md index 095ac835ba..026119a0ab 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md @@ -38,14 +38,14 @@ Shape(value:{target?: PixelMap}) | 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -------- | | viewPort | {
x: Length,
y: Length,
width: Length,
height: Length
} | - | 是 | 形状的视口。 | -| fill | Color | Black | 否 | 填充颜色。 | -| stroke | Color | - | 否 | 边框颜色。 | +| fill | [ResourceColor](../../ui/ts-types.md) | Black | 否 | 填充颜色。 | +| stroke | [ResourceColor](../../ui/ts-types.md) | - | 否 | 边框颜色。 | | strokeDashArray | Array<Length> | [] | 否 | 设置边框的间隙。 | | strokeDashOffset | Length | 0 | 否 | 边框绘制起点的偏移量。 | | strokeLineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle) | LineCapStyle.Butt | 否 | 路径端点绘制样式。 | | strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | 否 | 边框拐角绘制样式。 | -| strokeMiterLimit | number | 4 | 否 | 锐角绘制成斜角的极限值。 | -| strokeOpacity | number | 1 | 否 | 设置边框的不透明度。 | +| strokeMiterLimit | number \| string | 4 | 否 | 锐角绘制成斜角的极限值。 | +| strokeOpacity | number \| string \| [Resource](../../ui/ts-types.md#resource类型) | 1 | 否 | 设置边框的不透明度。 | | strokeWidth | Length | 1 | 否 | 设置边框的宽度。 | | antiAlias | boolean | true | 否 | 是否开启抗锯齿。 | -- GitLab