提交 728c264f 编写于 作者: 杜庆泉's avatar 杜庆泉

anim view 修改为HX适配版本 3.94

上级 35cf84b9
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
], ],
"repository": "", "repository": "",
"engines": { "engines": {
"HBuilderX": "^3.7.0" "HBuilderX": "^3.94"
}, },
"dcloudext": { "dcloudext": {
"type": "component-uts", "type": "component-uts",
......
...@@ -20,22 +20,22 @@ ...@@ -20,22 +20,22 @@
this.comp = com 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") 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 { export default {
name: "animation-view", name: "uts-animation-view",
/** /**
* 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及手动停止动画不会触发) * 当播放到末尾时触发 ended 事件(自然播放结束会触发回调,循环播放结束及手动停止动画不会触发)
*/ */
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
default: false default: false
}, },
/** /**
* 动画是否循环播放 * 动画是否循环播放
*/ */
"loop": { "loop": {
type: Boolean, type: Boolean,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册