From 1fc30ef0c3576aae453d8c783635c7639c266fea Mon Sep 17 00:00:00 2001 From: jljsj Date: Fri, 11 Sep 2015 11:12:30 +0800 Subject: [PATCH] updata enter-animation index.md --- .../enter-animation/demo/router-data.md | 10 ++++---- components/enter-animation/demo/router.md | 10 ++++---- components/enter-animation/index.md | 24 +++++++++++-------- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/components/enter-animation/demo/router-data.md b/components/enter-animation/demo/router-data.md index 703ad17a50..957a0831f5 100644 --- a/components/enter-animation/demo/router-data.md +++ b/components/enter-animation/demo/router-data.md @@ -13,6 +13,7 @@ var Router = ReactRouter.Router; var Route = ReactRouter.Route; var Link = ReactRouter.Link; var EnterAnimation = antd.EnterAnimation; +var Menu = antd.Menu; var App = React.createClass({ getInitialState: function () { @@ -28,10 +29,10 @@ var App = React.createClass({ var key = this.props.location.pathname; return (
-
- Page 1 - Page 2 -
+ + Page 1 + Page 2 + {React.cloneElement(this.props.children ||

Home

这是首页
, {key: key})}
@@ -81,7 +82,6 @@ React.render((