From 217a43f2ad7d87492b296d21e9d37bbafbf63577 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 24 Aug 2015 19:47:20 +0800 Subject: [PATCH] shorter duration --- components/tree/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/tree/index.jsx b/components/tree/index.jsx index 2647c62412..b6555b9e26 100644 --- a/components/tree/index.jsx +++ b/components/tree/index.jsx @@ -3,7 +3,7 @@ import Tree from 'rc-tree'; import velocity from 'velocity-animate'; const animation = { - enter(node, done){ + enter(node, done) { var ok = false; function complete() { @@ -15,7 +15,7 @@ const animation = { node.style.display = 'none'; velocity(node, 'slideDown', { - duration: 300, + duration: 150, complete: complete }); return { @@ -27,7 +27,7 @@ const animation = { }; }, - leave(node, done){ + leave(node, done) { var ok = false; node.style.display = 'block'; @@ -40,7 +40,7 @@ const animation = { } velocity(node, 'slideUp', { - duration: 300, + duration: 150, complete: complete }); return {