Skip to content

Commit

Permalink
feat(collapse-animation): support dynamic child-height
Browse files Browse the repository at this point in the history
  • Loading branch information
devCrossNet committed Aug 28, 2021
1 parent 53ae1ff commit 99d496c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -38,7 +38,6 @@ describe('CollapseAnimation.vue', () => {
};

wrapper.vm.enter(testElement, () => {
expect(testElement.style.height).toBe('0px');
expect(testElement.style.opacity).toBe('1');
done();
});
Expand Down
Expand Up @@ -31,7 +31,11 @@ export default {
},
round: 1,
easing: 'easeInOutCirc',
complete: done,
complete: () => {
el.style.height = null;
el.style.overflow = null;
done();
},
});
},
beforeLeave(el: HTMLElement) {
Expand Down

0 comments on commit 99d496c

Please sign in to comment.