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 b5110c035015168e20e1d9d136f8c39164bf4e5e..f5a6fe29f970af5e98e08fd92b0a85e1a8ec1eba 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)