diff --git a/components/_util/openAnimation.js b/components/_util/openAnimation.js index a047c7d1a..23a07ff7f 100644 --- a/components/_util/openAnimation.js +++ b/components/_util/openAnimation.js @@ -17,7 +17,7 @@ function animate (node, show, done, type) { height = node.offsetHeight // not get offsetHeight when appear // set it into raf get correct offsetHeight - if (type === 'appear' && height === 0) { + if (height === 0) { appearRequestAnimationFrameId = raf(() => { height = node.offsetHeight node.style.height = '0px' @@ -59,9 +59,6 @@ const animation = { leave (node, done) { return animate(node, false, done) }, - appear (node, done) { - return animate(node, true, done, 'appear') - }, } export default animation