Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
590dfdc1
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
590dfdc1
编写于
8月 24, 2023
作者:
Y
yanjin1122
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add effect component document
Signed-off-by:
N
yanjin1122
<
976819878@qq.com
>
上级
47cb75c3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
81 addition
and
0 deletion
+81
-0
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
+1
-0
zh-cn/application-dev/reference/arkui-ts/ts-container-effectcomponent.md
...on-dev/reference/arkui-ts/ts-container-effectcomponent.md
+80
-0
未找到文件。
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
浏览文件 @
590dfdc1
...
@@ -141,6 +141,7 @@
...
@@ -141,6 +141,7 @@
-
[
TabContent
](
ts-container-tabcontent.md
)
-
[
TabContent
](
ts-container-tabcontent.md
)
-
[
UIExtensionComponent
](
ts-container-ui-extension-component.md
)
-
[
UIExtensionComponent
](
ts-container-ui-extension-component.md
)
-
[
WaterFlow
](
ts-container-waterflow.md
)
-
[
WaterFlow
](
ts-container-waterflow.md
)
-
[
EffectComponent
](
ts-container-effectcomponent.md
)
-
媒体组件
-
媒体组件
-
[
Video
](
ts-media-components-video.md
)
-
[
Video
](
ts-media-components-video.md
)
-
绘制组件
-
绘制组件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-container-effectcomponent.md
0 → 100644
浏览文件 @
590dfdc1
# EffectComponent
特效合并容器组件,用于子节点特效绘制的合并,实现特效的绘制性能优化。
> **说明:**
>
> - 该组件从API Version 10开始支持。
>
> - 目前该组件仅支持子组件背景模糊效果的合并优化。在对子组件的背景模糊特效进行绘制合并时,需要将子组件的backgroundBlurStyle(BlurStyle)属性替换成userEffect(true)。
## 子组件
可以包含子组件。
## 接口
EffectComponent()
创建特效合并组件,用于对子组件背景模糊特效绘制的合并。
## 事件
无,不支持通用事件。
## 属性
支持通用属性,目前仅支持对backgroundBlurStyle属性做绘制合并优化。
## 示例
```
ts
//index.ets
@
Entry
@
Component
struct
Index
{
build
()
{
Stack
()
{
Image
(
"
pages/test1.png
"
)
.
autoResize
(
true
)
Column
(){
Text
(
"
Normal text with backgroundBlurStyle
"
)
.
fontSize
(
30
)
.
fontWeight
(
FontWeight
.
Bold
)
.
backgroundBlurStyle
(
BlurStyle
.
Thin
)
.
borderRadius
(
30
)
EffectComponent
()
{
Column
()
{
Text
(
"
Normal text without blur
"
)
.
fontSize
(
30
)
.
fontWeight
(
FontWeight
.
Bold
)
.
borderRadius
(
20
)
Text
(
"
Normal text with useeffcet blur 1
"
)
.
useEffect
(
true
)
.
fontSize
(
30
)
.
fontWeight
(
FontWeight
.
Bold
)
.
borderRadius
(
20
)
Text
(
"
Normal text with useeffcet blur 2
"
)
.
useEffect
(
true
)
.
fontSize
(
30
)
.
fontWeight
(
FontWeight
.
Bold
)
.
borderRadius
(
40
)
}
.
borderWidth
(
5
)
.
borderColor
(
Color
.
Green
)
}
.
backgroundBlurStyle
(
BlurStyle
.
Thin
)
}
}
.
backgroundColor
(
Color
.
Black
)
.
width
(
'
100%
'
)
.
height
(
'
100%
'
)
}
}
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录