Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
82d398ba
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看板
提交
82d398ba
编写于
8月 31, 2022
作者:
T
tianyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update lottie and animation
Signed-off-by:
N
tianyu
<
tianyu55@h-partners.com
>
上级
37f96289
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
16 deletion
+5
-16
zh-cn/application-dev/reference/apis/js-apis-mediaquery.md
zh-cn/application-dev/reference/apis/js-apis-mediaquery.md
+1
-2
zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194352468.gif
...ference/arkui-ts/figures/zh-cn_image_0000001194352468.gif
+0
-0
zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-lottie.md
...ion-dev/reference/arkui-ts/ts-components-canvas-lottie.md
+3
-0
zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md
...on-dev/reference/arkui-ts/ts-page-transition-animation.md
+1
-14
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-mediaquery.md
浏览文件 @
82d398ba
...
@@ -122,7 +122,6 @@ off(type: 'change', callback?: Callback<MediaQueryResult>): void
...
@@ -122,7 +122,6 @@ off(type: 'change', callback?: Callback<MediaQueryResult>): void
```
ts
```
ts
import
mediaquery
from
'
@ohos.mediaquery
'
import
mediaquery
from
'
@ohos.mediaquery
'
let
portraitFunc
=
null
@
Entry
@
Entry
@
Component
@
Component
...
@@ -142,7 +141,7 @@ struct MediaQueryExample {
...
@@ -142,7 +141,7 @@ struct MediaQueryExample {
}
}
aboutToAppear
()
{
aboutToAppear
()
{
portraitFunc
=
this
.
onPortrait
.
bind
(
this
)
//bind current js instance
let
portraitFunc
=
this
.
onPortrait
.
bind
(
this
)
//bind current js instance
this
.
listener
.
on
(
'
change
'
,
portraitFunc
)
this
.
listener
.
on
(
'
change
'
,
portraitFunc
)
}
}
...
...
zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194352468.gif
查看替换文件 @
37f96289
浏览文件 @
82d398ba
153.8 KB
|
W:
|
H:
688.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-lottie.md
浏览文件 @
82d398ba
...
@@ -18,7 +18,10 @@ import lottie from '@ohos/lottieETS'
...
@@ -18,7 +18,10 @@ import lottie from '@ohos/lottieETS'
```
```
> **说明:**
> **说明:**
>
> 在Terminal窗口使用 `npm install @ohos/lottieETS` 命令下载Lottie,下载之前需要配置权限。
> 在Terminal窗口使用 `npm install @ohos/lottieETS` 命令下载Lottie,下载之前需要配置权限。
>
> 安装ohos npm 三方包时,需要先执行`npm config set @ohos:registry=https://repo.harmonyos.com/npm/`设置仓库地址。
## lottie.loadAnimation
## lottie.loadAnimation
...
...
zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md
浏览文件 @
82d398ba
...
@@ -69,16 +69,12 @@ PageTransitionEnter和PageTransitionExit组件支持的事件:
...
@@ -69,16 +69,12 @@ PageTransitionEnter和PageTransitionExit组件支持的事件:
struct
PageTransitionExample1
{
struct
PageTransitionExample1
{
@
State
scale1
:
number
=
1
@
State
scale1
:
number
=
1
@
State
opacity1
:
number
=
1
@
State
opacity1
:
number
=
1
@
State
active
:
boolean
=
false
build
()
{
build
()
{
Column
()
{
Column
()
{
Navigator
({
target
:
'
pages/page1
'
,
type
:
NavigationType
.
Push
})
{
Navigator
({
target
:
'
pages/page1
'
,
type
:
NavigationType
.
Push
})
{
Image
(
$r
(
'
app.media.bg1
'
)).
width
(
"
100%
"
).
height
(
"
100%
"
)
Image
(
$r
(
'
app.media.bg1
'
)).
width
(
"
100%
"
).
height
(
"
100%
"
)
}
}
.
onClick
(()
=>
{
this
.
active
=
true
})
}.
scale
({
x
:
this
.
scale1
}).
opacity
(
this
.
opacity1
)
}.
scale
({
x
:
this
.
scale1
}).
opacity
(
this
.
opacity1
)
}
}
// 自定义方式1:完全自定义转场过程的效果
// 自定义方式1:完全自定义转场过程的效果
...
@@ -104,7 +100,6 @@ struct PageTransitionExample1 {
...
@@ -104,7 +100,6 @@ struct PageTransitionExample1 {
struct
AExample
{
struct
AExample
{
@
State
scale2
:
number
=
1
@
State
scale2
:
number
=
1
@
State
opacity2
:
number
=
1
@
State
opacity2
:
number
=
1
@
State
active
:
boolean
=
false
build
()
{
build
()
{
Column
()
{
Column
()
{
...
@@ -140,16 +135,12 @@ struct AExample {
...
@@ -140,16 +135,12 @@ struct AExample {
struct
PageTransitionExample
{
struct
PageTransitionExample
{
@
State
scale1
:
number
=
1
@
State
scale1
:
number
=
1
@
State
opacity1
:
number
=
1
@
State
opacity1
:
number
=
1
@
State
active
:
boolean
=
false
build
()
{
build
()
{
Column
()
{
Column
()
{
Navigator
({
target
:
'
pages/page1
'
,
type
:
NavigationType
.
Push
})
{
Navigator
({
target
:
'
pages/page1
'
,
type
:
NavigationType
.
Push
})
{
Image
(
$r
(
'
app.media.bg1
'
)).
width
(
"
100%
"
).
height
(
"
100%
"
)
Image
(
$r
(
'
app.media.bg1
'
)).
width
(
"
100%
"
).
height
(
"
100%
"
)
}
}
.
onClick
(()
=>
{
this
.
active
=
true
})
}.
scale
({
x
:
this
.
scale1
}).
opacity
(
this
.
opacity1
)
}.
scale
({
x
:
this
.
scale1
}).
opacity
(
this
.
opacity1
)
}
}
...
@@ -171,16 +162,12 @@ struct PageTransitionExample {
...
@@ -171,16 +162,12 @@ struct PageTransitionExample {
struct
PageTransitionExample1
{
struct
PageTransitionExample1
{
@
State
scale2
:
number
=
1
@
State
scale2
:
number
=
1
@
State
opacity2
:
number
=
1
@
State
opacity2
:
number
=
1
@
State
active
:
boolean
=
false
build
()
{
build
()
{
Column
()
{
Column
()
{
Navigator
({
target
:
'
pages/index
'
,
type
:
NavigationType
.
Push
})
{
Navigator
({
target
:
'
pages/index
'
,
type
:
NavigationType
.
Push
})
{
Image
(
$r
(
'
app.media.bg2
'
)).
width
(
"
100%
"
).
height
(
"
100%
"
)
Image
(
$r
(
'
app.media.bg2
'
)).
width
(
"
100%
"
).
height
(
"
100%
"
)
}
}
.
onClick
(()
=>
{
this
.
active
=
true
})
}.
scale
({
x
:
this
.
scale2
}).
opacity
(
this
.
opacity2
)
}.
scale
({
x
:
this
.
scale2
}).
opacity
(
this
.
opacity2
)
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录