diff --git a/uni_modules/uni-animation-view/package.json b/uni_modules/uni-animation-view/package.json index 3f848facb6846ed517ae7d48125a444603925fb0..1ab51db88ccd81812ee47dbc7846545a7f374647 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 a34681a2b131e5fa67949d06fd4a6a730d6be34d..d47fe8869eeb86032e1dba8b07db993615c712f8 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,