提交 76b05cc3 编写于 作者: Y yanjin1122

add effectcomponent doc

Signed-off-by: Nyanjin1122 <976819878@qq.com>
上级 c031c730
...@@ -26,7 +26,7 @@ EffectComponent() ...@@ -26,7 +26,7 @@ EffectComponent()
## 事件 ## 事件
无,不支持通用事件。 不支持通用事件。
## 属性 ## 属性
...@@ -35,7 +35,7 @@ EffectComponent() ...@@ -35,7 +35,7 @@ EffectComponent()
## 示例 ## 示例
```ts ```ts
//index.ets //Index.ets
@Entry @Entry
@Component @Component
struct Index { struct Index {
...@@ -45,7 +45,7 @@ struct Index { ...@@ -45,7 +45,7 @@ struct Index {
.autoResize(true) .autoResize(true)
EffectComponent() { EffectComponent() {
Column({ space: 20 }) { Column({ space: 20 }) {
// 使用backgroundBlurStyle进行模糊绘制 // 使用backgroundBlurStyle进行模糊绘制
Text("Normal text with backgroundBlurStyle") Text("Normal text with backgroundBlurStyle")
.textAlign(TextAlign.Center) .textAlign(TextAlign.Center)
.fontSize(16) .fontSize(16)
...@@ -65,7 +65,7 @@ struct Index { ...@@ -65,7 +65,7 @@ struct Index {
.width('90%') .width('90%')
.height('48') .height('48')
// 使用useEffect进行模糊合并绘制,继承effectcomponent的模糊参数 // 使用useEffect进行模糊合并绘制,继承EffectComponent的模糊参数
Text("Normal text with useeffcet blur 1") Text("Normal text with useeffcet blur 1")
.textAlign(TextAlign.Center) .textAlign(TextAlign.Center)
.useEffect(true) .useEffect(true)
...@@ -75,7 +75,7 @@ struct Index { ...@@ -75,7 +75,7 @@ struct Index {
.width('90%') .width('90%')
.height('48') .height('48')
// 使用useEffect进行模糊合并绘制,继承effectcomponent的模糊参数 // 使用useEffect进行模糊合并绘制,继承EffectComponent的模糊参数
Text("Normal text with useeffcet blur 2") Text("Normal text with useeffcet blur 2")
.textAlign(TextAlign.Center) .textAlign(TextAlign.Center)
.useEffect(true) .useEffect(true)
......
# 特效绘制合 # 特效绘制合
用于对背景模糊等特效进行绘制合并。 用于对背景模糊等特效进行绘制合并。
> **说明:** > **说明:**
> >
> 从API Version 10开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 > 从API Version 10开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
>
> 该接口为系统接口。
## 属性 ## 属性
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册