test: avoid test error

pull/471/head
tangjinzhou 2019-01-29 22:58:52 +08:00
parent c34a446f73
commit 041cca740d
1 changed files with 5 additions and 3 deletions

View File

@ -210,9 +210,11 @@ export default {
enter: (el, done) => { enter: (el, done) => {
// align updated // align updated
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.alignInstance) {
this.$refs.alignInstance.$nextTick(() => { this.$refs.alignInstance.$nextTick(() => {
animate(el, `${transitionName}-enter`, done); animate(el, `${transitionName}-enter`, done);
}); });
}
}); });
}, },
leave: (el, done) => { leave: (el, done) => {