update basic and enter-data demo

pull/297/head
jljsj 10 years ago
parent d42c248780
commit f4f0605a5f

@ -27,8 +27,8 @@ var Test = React.createClass({
<button className="ant-btn ant-btn-primary" onClick={this.onClick}>切换</button>
</div>
<EnterAnimation>
{this.state.show ? <div key='a'>
<div className="demo-content" >
{this.state.show ?
<div className="demo-content" key='a'>
<div className="demo-kp">
<ul>
<li></li>
@ -43,12 +43,9 @@ var Test = React.createClass({
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
</div>
</div> : null}
</EnterAnimation>
</div>

@ -18,6 +18,7 @@ var Test = React.createClass({
interval: .1,
},
leave: {
type:'left',
interval: 0.03
},
show: true

@ -43,8 +43,8 @@ var Test = React.createClass({
<button className="ant-btn ant-btn-primary" onClick={this.onClick}>切换</button>
</div>
<EnterAnimation enter={this.state.enter} leave={this.state.leave}>
{this.state.show ? <div key='demo'>
<div className="demo-content" >
{this.state.show ?
<div className="demo-content" key='demo'>
<div className="demo-kp">
<ul>
<li></li>
@ -59,12 +59,9 @@ var Test = React.createClass({
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
</div>
</div> : null}
</EnterAnimation>
</div>

Loading…
Cancel
Save