@@ -23,16 +23,18 @@ React Tooltip
23
23
[ download-image ] : https://img.shields.io/npm/dm/rc-tooltip.svg?style=flat-square
24
24
[ download-url ] : https://npmjs.org/package/rc-tooltip
25
25
26
- ## Screenshots
26
+ ## Screenshot
27
27
28
28
<img src =" http://gtms03.alicdn.com/tps/i3/TB1NQUSHpXXXXaUXFXXlQqyZXXX-1312-572.png " width =" 600 " />
29
29
30
- ## Feature
30
+ ## Browser Support
31
31
32
- * support ie8,ie8+,chrome,firefox,safari
32
+ | ![ IE] ( https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png ) | ![ Chrome] ( https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png ) | ![ Firefox] ( https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png ) | ![ Opera] ( https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png ) | ![ Safari] ( https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png ) |
33
+ | --- | --- | --- | --- | --- |
34
+ | IE 8 + IE 8+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |
33
35
34
36
35
- ## install
37
+ ## Install
36
38
37
39
[ ![ rc-tooltip] ( https://nodei.co/npm/rc-tooltip.png )] ( https://npmjs.org/package/rc-tooltip )
38
40
@@ -41,19 +43,20 @@ React Tooltip
41
43
``` js
42
44
var Tooltip = require (' rc-tooltip' );
43
45
var React = require (' react' );
44
- var ReactDOM = require (' react-dom' )
46
+ var ReactDOM = require (' react-dom' );
45
47
ReactDOM .render (< Tooltip placement= " left" trigger= {[' click' ]} overlay= {< span> tooltip< / span> }>< a href= ' #' > hover< / a>< / Tooltip> , container);
46
48
```
47
49
48
- ## Example
50
+ ## Examples
49
51
50
- http://localhost:8007/examples
52
+ ` npm start ` and then go to
53
+ [ http://localhost:8007/examples ] ( http://localhost:8007/examples )
51
54
52
- online example: http://react-component.github.io/tooltip/examples/
55
+ Online examples: [ http://react-component.github.io/tooltip/examples/ ] ( http://react-component.github.io/tooltip/examples/ )
53
56
54
57
## API
55
58
56
- ### props
59
+ ### Props
57
60
58
61
<table class =" table table-bordered table-striped " >
59
62
<thead>
@@ -173,19 +176,19 @@ online example: http://react-component.github.io/tooltip/examples/
173
176
174
177
## Development
175
178
176
- ```
179
+ ``` bash
177
180
npm install
178
181
npm start
179
182
```
180
183
181
184
## Test Case
182
185
183
- http://localhost:8007/tests/runner.html?coverage
186
+ [ http://localhost:8007/tests/runner.html?coverage ] ( http://localhost:8007/tests/runner.html?coverage )
184
187
185
188
## Coverage
186
189
187
- http://localhost:8007/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8007/tests/runner.html?coverage
190
+ [ http://localhost:8007/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8007/tests/runner.html?coverage ] ( http://localhost:8007/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8007/tests/runner.html?coverage )
188
191
189
192
## License
190
193
191
- rc-tooltip is released under the MIT license.
194
+ ` rc-tooltip ` is released under the MIT license.
0 commit comments