mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
Merge branch '0.8.0' of github.com:ant-design/ant-design into 0.8.0
This commit is contained in:
commit
da01d52c6c
@ -3,7 +3,7 @@ import Tree from 'rc-tree';
|
|||||||
import velocity from 'velocity-animate';
|
import velocity from 'velocity-animate';
|
||||||
|
|
||||||
const animation = {
|
const animation = {
|
||||||
enter(node, done){
|
enter(node, done) {
|
||||||
var ok = false;
|
var ok = false;
|
||||||
|
|
||||||
function complete() {
|
function complete() {
|
||||||
@ -15,7 +15,7 @@ const animation = {
|
|||||||
|
|
||||||
node.style.display = 'none';
|
node.style.display = 'none';
|
||||||
velocity(node, 'slideDown', {
|
velocity(node, 'slideDown', {
|
||||||
duration: 300,
|
duration: 150,
|
||||||
complete: complete
|
complete: complete
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
@ -27,7 +27,7 @@ const animation = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
leave(node, done){
|
leave(node, done) {
|
||||||
var ok = false;
|
var ok = false;
|
||||||
|
|
||||||
node.style.display = 'block';
|
node.style.display = 'block';
|
||||||
@ -40,7 +40,7 @@ const animation = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
velocity(node, 'slideUp', {
|
velocity(node, 'slideUp', {
|
||||||
duration: 300,
|
duration: 150,
|
||||||
complete: complete
|
complete: complete
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user