From 1e90871df00728ed46113c61b4d489442d7211cb Mon Sep 17 00:00:00 2001 From: luoying_ace Date: Fri, 28 Oct 2022 07:48:25 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md. Signed-off-by: luoying_ace --- .../reference/arkui-ts/ts-page-transition-animation.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md b/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md index 2befc061e4..9d33eb2acc 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md @@ -63,7 +63,7 @@ struct PageTransitionExample1 { build() { Column() { 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%') // 图片存放在media文件夹下 } }.scale({ x: this.scale1 }).opacity(this.opacity1) } @@ -94,9 +94,9 @@ struct AExample { build() { Column() { 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%') // 图片存放在media文件夹下 } - }.height("100%").width("100%").scale({ x: this.scale2 }).opacity(this.opacity2) + }.width('100%').height('100%').scale({ x: this.scale2 }).opacity(this.opacity2) } // 自定义方式1:完全自定义转场过程的效果 pageTransition() { @@ -129,7 +129,7 @@ struct PageTransitionExample { build() { Column() { 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%') // 图片存放在media文件夹下 } }.scale({ x: this.scale1 }).opacity(this.opacity1) } @@ -156,7 +156,7 @@ struct PageTransitionExample1 { build() { Column() { 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%') // 图片存放在media文件夹下 } }.scale({ x: this.scale2 }).opacity(this.opacity2) } -- GitLab