修改: 调整布局,解决全局动画导致的界面抖动问题;

This commit is contained in:
iczer
2020-06-18 18:41:08 +08:00
parent d4d46eeaae
commit a90fa8d106
14 changed files with 122 additions and 64 deletions

View File

@@ -51,9 +51,8 @@
direction = animate.directions[0]
} else {
direction = animate.directions.find(item => item == this.direction)
direction = (direction == undefined || direction === 'default') ? '' : direction
}
window.console.log(direction)
direction = (direction == undefined || direction === 'default') ? '' : direction
if (direction != '') {
direction = isLeave && this.reverse ? this.reversePosition(direction, animate.directions) : direction
direction = direction[0].toUpperCase() + direction.substring(1)