Skip to content

Commit 98ee08d

Browse files
committed
update examples/empty-children.js
1 parent c548c06 commit 98ee08d

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

examples/empty-children.js

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import QueueAnim from 'rc-queue-anim';
22
import React from 'react';
33
import ReactDom from 'react-dom';
44

5-
const Item = React.createClass({
5+
const QueueItem = React.createClass({
66
render() {
77
return (
88
<QueueAnim>
@@ -14,15 +14,32 @@ const Item = React.createClass({
1414
}
1515
});
1616

17+
const Item = React.createClass({
18+
render() {
19+
return (
20+
<div>Item</div>
21+
);
22+
}
23+
});
24+
1725
const Page1 = React.createClass({
1826
render() {
1927
return (
20-
<QueueAnim interval={3000}>
21-
<Item key='1' />
22-
<Item key='2' />
23-
<Item key='3' />
24-
<Item key='4' />
25-
</QueueAnim>
28+
<div>
29+
<QueueAnim interval={1500}>
30+
<Item key='1' />
31+
<Item key='2' />
32+
<Item key='3' />
33+
<Item key='4' />
34+
</QueueAnim>
35+
<hr />
36+
<QueueAnim interval={1500}>
37+
<QueueItem key='1'>11</QueueItem>
38+
<QueueItem key='2'>11</QueueItem>
39+
<QueueItem key='3'>11</QueueItem>
40+
<QueueItem key='4'>11</QueueItem>
41+
</QueueAnim>
42+
</div>
2643
);
2744
}
2845
});

0 commit comments

Comments
 (0)