From 728c264fc4a379b2af06ba30e30dc553e22f4eaf Mon Sep 17 00:00:00 2001 From: duqingquan Date: Sat, 21 Oct 2023 15:58:55 +0800 Subject: [PATCH] =?UTF-8?q?anim=20view=20=E4=BF=AE=E6=94=B9=E4=B8=BAHX?= =?UTF-8?q?=E9=80=82=E9=85=8D=E7=89=88=E6=9C=AC=203.94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-animation-view/package.json | 2 +- .../utssdk/app-android/index.vue | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/uni_modules/uni-animation-view/package.json b/uni_modules/uni-animation-view/package.json index 3f848fa..1ab51db 100644 --- a/uni_modules/uni-animation-view/package.json +++ b/uni_modules/uni-animation-view/package.json @@ -9,7 +9,7 @@ ], "repository": "", "engines": { - "HBuilderX": "^3.7.0" + "HBuilderX": "^3.94" }, "dcloudext": { "type": "component-uts", diff --git a/uni_modules/uni-animation-view/utssdk/app-android/index.vue b/uni_modules/uni-animation-view/utssdk/app-android/index.vue index a34681a..d47fe88 100644 --- a/uni_modules/uni-animation-view/utssdk/app-android/index.vue +++ b/uni_modules/uni-animation-view/utssdk/app-android/index.vue @@ -20,22 +20,22 @@ this.comp = com } - override onAnimationStart(animation: Animator | null) {} + override onAnimationStart(animation: Animator) {} - override onAnimationEnd(animation: Animator | null, isReverse: Boolean) { + override onAnimationEnd(animation: Animator, isReverse: Boolean) { this.comp.$emit("bindended") } - override onAnimationEnd(animation: Animator | null) {} + override onAnimationEnd(animation: Animator) {} - override onAnimationCancel(animation: Animator | null) {} + override onAnimationCancel(animation: Animator) {} - override onAnimationRepeat(animation: Animator | null) {} + override onAnimationRepeat(animation: Animator) {} } //原生提供以下属性或方法的实现 export default { - name: "animation-view", + name: "uts-animation-view", /** * 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及手动停止动画不会触发) */ @@ -56,7 +56,7 @@ default: false }, /** - * 动画是否循环播放 + * 动画是否循环播放 */ "loop": { type: Boolean, -- GitLab