Commit 9b49db2dc0ec548fcfa8e1ca6649d950a626b529
1 parent
0a3cc2b8
update animation.js
Showing
1 changed file
with
11 additions
and
1 deletions
front-end/h5/src/mixins/animation.js
| 1 | +/* | ||
| 2 | + * @Author: ly525 | ||
| 3 | + * @Date: 2019-11-24 18:51:58 | ||
| 4 | + * @LastEditors : ly525 | ||
| 5 | + * @LastEditTime : 2020-01-09 21:57:30 | ||
| 6 | + * @FilePath: /luban-h5/front-end/h5/src/mixins/animation.js | ||
| 7 | + * @Github: https://github.com/ly525/luban-h5 | ||
| 8 | + * @Description: | ||
| 9 | + * @Copyright 2018 - 2019 luban-h5. All Rights Reserved | ||
| 10 | + */ | ||
| 1 | // https://stackoverflow.com/questions/26874769/getcomputedstyle-and-csstext-in-ie-and-firefox | 11 | // https://stackoverflow.com/questions/26874769/getcomputedstyle-and-csstext-in-ie-and-firefox |
| 2 | function getComputedCSSText (style) { | 12 | function getComputedCSSText (style) { |
| 3 | let cssText = '' | 13 | let cssText = '' |
| @@ -12,7 +22,7 @@ function getComputedCSSText (style) { | @@ -12,7 +22,7 @@ function getComputedCSSText (style) { | ||
| 12 | 22 | ||
| 13 | export default { | 23 | export default { |
| 14 | methods: { | 24 | methods: { |
| 15 | - async runAnimations () { | 25 | + runAnimations () { |
| 16 | const animationQueue = this.animations || this.element.animations || [] | 26 | const animationQueue = this.animations || this.element.animations || [] |
| 17 | let len = animationQueue.length | 27 | let len = animationQueue.length |
| 18 | if (len === 0) return | 28 | if (len === 0) return |