Skip to content

Commit f74b047

Browse files
committed
增加例子
1 parent b11bcfd commit f74b047

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

example/index.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Created by joe on 16/9/7.
3+
*/
4+
5+
import React from 'react';
6+
import DragScroll from '../lib/DragScroll';
7+
8+
class Main extends React.Component {
9+
render () {
10+
<DragScroll height={200} width={300}>
11+
<div>test1</div>
12+
<div>test2</div>
13+
<div>test3</div>
14+
<div>test4</div>
15+
<div>test5</div>
16+
<div>test6</div>
17+
<div>test7</div>
18+
<div>test8</div>
19+
<div>test9</div>
20+
<div>test10</div>
21+
<div>test11</div>
22+
<div>test12</div>
23+
<div>test13</div>
24+
<div>test14</div>
25+
<div>test15</div>
26+
<div>test16</div>
27+
<div>test17</div>
28+
<div>test18</div>
29+
<div>test19</div>
30+
<div>test20</div>
31+
<div>test21</div>
32+
</DragScroll>;
33+
}
34+
}

0 commit comments

Comments
 (0)