提交 09062ee3 编写于 作者: C chenyuhuai

update backgroundImageSize docs

Signed-off-by: Nchenyuhuai <chenyuhuai1@huawei.com>
上级 41ab2986
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
// xxx.ets // xxx.ets
@Entry @Entry
@Component @Component
struct Index { struct Index {
build() { build() {
Column() { Column() {
...@@ -42,12 +41,13 @@ struct Index { ...@@ -42,12 +41,13 @@ struct Index {
.width(350) .width(350)
.height(300) .height(300)
.backgroundBlurStyle(BlurStyle.Thin) .backgroundBlurStyle(BlurStyle.Thin)
.position({x: "15%", y: "30%"}) .position({ x: "15%", y: "30%" })
} }
.height('100%') .height('100%')
.width('100%') .width('100%')
.backgroundImage($r('app.media.bg')) .backgroundImage($r('app.media.bg'))
.backgroundImageSize(ImageSize.Cover) .backgroundImageSize(ImageSize.Cover)
} }
}
``` ```
![zh-cn_image_background_blur_style](figures/zh-cn_image_background_blur_style.png) ![zh-cn_image_background_blur_style](figures/zh-cn_image_background_blur_style.png)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册