Browse Source

test: avoid test error

pull/471/head
tangjinzhou 6 years ago
parent
commit
041cca740d
  1. 8
      components/vc-trigger/Popup.jsx

8
components/vc-trigger/Popup.jsx

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

Loading…
Cancel
Save