From 0eb9a3c232f0953893697e13455b9df94e1612c8 Mon Sep 17 00:00:00 2001 From: luoying_ace Date: Tue, 27 Sep 2022 12:44:23 +0000 Subject: [PATCH] fixed 9567a59 from https://gitee.com/luoying_ace_admin/docs/pulls/10197 update zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md. Signed-off-by: luoying_ace --- .../arkui-ts/ts-drawing-components-ellipse.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md index 6558f3733f..6825c18b27 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md @@ -50,12 +50,17 @@ ellipse(options?: {width?: string | number, height?: string | number}) @Component struct EllipseExample { build() { - Flex({ justifyContent: FlexAlign.SpaceAround }) { - // 在一个 150 * 80 的矩形框中绘制一个椭圆 + Column({ space: 10 }) { + // 绘制一个 150 * 80 的椭圆 Ellipse({ width: 150, height: 80 }) - // 在一个 150 * 80 的矩形框中绘制一个椭圆 - Ellipse().width(150).height(80) - }.width('100%').margin({ top: 5 }) + // 绘制一个 150 * 100 、线条为蓝色的椭圆环 + Ellipse() + .width(150) + .height(100) + .fillOpacity(0) + .stroke(Color.Blue) + .strokeWidth(3) + }.width('100%') } } ``` -- GitLab