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 2c37265fd0b029bed6458350d2642c2a5500ec18..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 @@ -45,8 +45,12 @@ addColorStop(offset: number, color: string): void } .width('100%') .height('100%') - } - } - ``` + }} +``` - ![zh-cn_image_0000001194032516](figures/zh-cn_image_0000001194032516.png) + + + +![zh-cn_image_0000001194032516](figures/zh-cn_image_0000001194032516.png) + + \ No newline at end of file