mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 12:07:54 +08:00
perf: optimization menu
This commit is contained in:
parent
e1b126cbdd
commit
af666b8bce
@ -1,5 +1,6 @@
|
||||
import cssAnimation from './css-animation';
|
||||
import raf from 'raf';
|
||||
import Vue from 'vue';
|
||||
|
||||
function animate(node, show, done) {
|
||||
let height;
|
||||
@ -54,7 +55,9 @@ function animate(node, show, done) {
|
||||
|
||||
const animation = {
|
||||
enter(node, done) {
|
||||
return animate(node, true, done);
|
||||
Vue.nextTick(() => {
|
||||
animate(node, true, done);
|
||||
});
|
||||
},
|
||||
leave(node, done) {
|
||||
return animate(node, false, done);
|
||||
|
Loading…
Reference in New Issue
Block a user