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) => {
// align updated
this.$nextTick(() => {
this.$refs.alignInstance.$nextTick(() => {
animate(el, `${transitionName}-enter`, done);
});
if (this.$refs.alignInstance) {
this.$refs.alignInstance.$nextTick(() => {
animate(el, `${transitionName}-enter`, done);
});
}
});
},
leave: (el, done) => {