提交 8f98f0bd 编写于 作者: S sienna1128

update docs

Signed-off-by: Nsienna1128 <lixiaoyan45@huawei.com>
上级 07952e68
...@@ -32,7 +32,8 @@ Blank(min?: number&nbsp;|&nbsp;string) ...@@ -32,7 +32,8 @@ Blank(min?: number&nbsp;|&nbsp;string)
## 示例 ## 示例
### 示例一
Blank组件在横竖屏占满空余空间效果。
```ts ```ts
// xxx.ets // xxx.ets
@Entry @Entry
...@@ -59,6 +60,9 @@ struct BlankExample { ...@@ -59,6 +60,9 @@ struct BlankExample {
![zh-cn_image_0000001174104388](figures/zh-cn_image_0000001174104388.gif) ![zh-cn_image_0000001174104388](figures/zh-cn_image_0000001174104388.gif)
### 示例二
Blank组件的父组件未设置宽度时,min参数的使用效果。
```ts ```ts
// xxx.ets // xxx.ets
@Entry @Entry
...@@ -66,7 +70,7 @@ struct BlankExample { ...@@ -66,7 +70,7 @@ struct BlankExample {
struct BlankExample { struct BlankExample {
build() { build() {
Column({ space: 20 }) { Column({ space: 20 }) {
// blank父组件不设置宽度时,Blank世纪 // blank父组件不设置宽度时,Blank失效,可以通过设置min最小宽度填充固定宽度
Row() { Row() {
Text('Bluetooth').fontSize(18) Text('Bluetooth').fontSize(18)
Blank().color(Color.Yellow) Blank().color(Color.Yellow)
......
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
## 示例 ## 示例
示例效果请以真机运行为准,当前IDE预览器不支持。 示例效果请以真机运行为准,当前IDE预览器不支持。
### 示例一,模糊属性的用法,blur内容模糊,backdropBlur背景模糊 ### 示例一
模糊属性的用法,blur内容模糊,backdropBlur背景模糊。
```ts ```ts
// xxx.ets // xxx.ets
@Entry @Entry
...@@ -64,7 +65,8 @@ struct BlurEffectsExample { ...@@ -64,7 +65,8 @@ struct BlurEffectsExample {
![textblur](figures/textblur.png) ![textblur](figures/textblur.png)
### 示例二,图片效果属性的用法 ### 示例二
图片效果属性的用法,阴影,灰度,高光,饱和度,对比度,图像反转,叠色,色相旋转等。
```ts ```ts
// xxx.ets // xxx.ets
@Entry @Entry
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册