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

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

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

Loading…
Cancel
Save