From 7d11491ac4c06b4ad038e1fc616d5df6bcb16eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=9A=E6=A4=8D=E6=B9=96?= <7373307+qizhihu@user.noreply.gitee.com> Date: Wed, 25 May 2022 04:52:47 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/api/ui/animation.md.=20data?= =?UTF-8?q?=E9=87=8C=E9=9D=A2=E5=85=88=E5=AE=9A=E4=B9=89=E4=B8=80=E4=B8=8B?= =?UTF-8?q?animation=E5=90=A7=EF=BC=8C=E8=99=BD=E7=84=B6=E8=BF=99=E6=A0=B7?= =?UTF-8?q?=E4=B9=9F=E8=A1=8C=EF=BC=8C=E4=BD=86=E6=98=AF=E5=AF=B9=E6=96=B0?= =?UTF-8?q?=E6=89=8B=E4=B8=8D=E5=8F=8B=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/ui/animation.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/api/ui/animation.md b/docs/api/ui/animation.md index 4a06820df..27bab153c 100644 --- a/docs/api/ui/animation.md +++ b/docs/api/ui/animation.md @@ -122,24 +122,24 @@ var animation = uni.createAnimation({ export default{ data() { return { - animationData: {} + animationData: {}, + animation:'' } }, onShow: function(){ - var animation = uni.createAnimation({ + this.animation = uni.createAnimation({ duration: 1000, - timingFunction: 'ease', + timingFunction: 'ease', }) - this.animation = animation - animation.scale(2,2).rotate(45).step() + this.animation.scale(2,2).rotate(45).step() - this.animationData = animation.export() + this.animationData = this.animation.export() setTimeout(function() { - animation.translate(30).step() - this.animationData = animation.export() + this.animation.translate(30).step() + this.animationData = this.animation.export() }.bind(this), 1000) }, methods:{ -- Gitee