From 2691c11317d069de89a206cba90517b4aee4982e Mon Sep 17 00:00:00 2001 From: qiqimao Date: Thu, 11 Aug 2022 14:33:05 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md. Signed-off-by: qiqimao Signed-off-by: qiqimao --- .../arkui-ts/ts-components-canvas-canvasgradient.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md index b5110c0350..f5a6fe29f9 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvasgradient.md @@ -20,7 +20,7 @@ addColorStop(offset: number, color: string): void | color | string | 是 | '#ffffff' | 设置渐变的颜色。 | - 示例 - ```ts + ```ts // xxx.ets @Entry @Component @@ -46,6 +46,9 @@ addColorStop(offset: number, color: string): void .width('100%') .height('100%') }} +``` + + ![zh-cn_image_0000001194032516](figures/zh-cn_image_0000001194032516.png) -- GitLab