Skip to content

Commit 545cec8

Browse files
committed
bump 0.12.5
1 parent b21dcd7 commit 545cec8

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ ReactDom.render(<QueueAnim>
6969
| ease | string / array | `easeOutQuart` | animation easing string, [more](http://julian.com/research/velocity/#easing) |
7070
| component | string | `div` | component tag |
7171
| animatingClassName | array | `['queue-anim-entering', 'queue-anim-leaving']` | className to every element of animating |
72+
| onEnd | function | null | animate end callback({ key, type }), type: `enter` or `leave` |
7273

7374
> Above props support array format, like `['left', 'top']`, the secord item is leave config. [Demo](http://react-component.github.io/queue-anim/examples/enter-leave.html)
7475

examples/dynamic.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,17 @@ const App = React.createClass({
8989
});
9090
this.setState({ items });
9191
},
92+
removeTwo() {
93+
const items = this.state.items;
94+
items.splice(1, 1);
95+
this.setState({ items });
96+
},
9297
render() {
9398
return (
9499
<div>
95100
<button onClick={this.add}>点击新增</button>
96101
<button onClick={this.addTwo}>点击新增两个</button>
102+
<button onClick={this.removeTwo}>点击移出第二个</button>
97103
<button onClick={this.removeAll}>移出所有</button>
98104
<button onClick={this.removeAndAdd}>移出与添加</button>
99105
<button onClick={this.removeAndAddTow}>头尾添加与移出两个</button>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-queue-anim",
3-
"version": "0.12.4",
3+
"version": "0.12.5",
44
"description": "Queue animation component for react",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)