# Router数据控制 - order: 4 router的data-enter和data-leave控制进出场动画。 --- ````jsx var ReactRouter = require('react-router'); var history = require('react-router/lib/HashHistory').history; var Router = ReactRouter.Router; var Route = ReactRouter.Route; var Link = ReactRouter.Link; var EnterAnimation = antd.EnterAnimation; var App = React.createClass({ getInitialState: function () { return {}; }, clickPage() { this.setState({ enter: {interval: 0.05,type: 'bottom',ease: 'cubic-bezier(0.075, 0.82, 0.165, 1)',delay:0.3,}, leave: {upend: true,duration:0.2,ease: 'cubic-bezier(0.55, 0.085, 0.68, 0.53)',delay:0}//interval与type不重写将继承enter里的数据 }) }, render() { var key = this.props.location.pathname; return (
A link to page 2 should be active依次进场
A link to page 2 should be active依次进场
A link to page 2 should be active依次进场
A link to page 2 should be active依次进场
A link to page 2 should be active改变样式
a link to page 1 我是页面2.
a link to page 1 我是页面2.
a link to page 1 我是页面2.
a link to page 1 我是页面2.