tnt-score
v1.8.9
Published
react评分组件
Downloads
2
Readme
react 评分组件
#Development npm i && npm dev
#Usage
var TntScore = require('tnt-score');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(<TntScore />, document.getElementById('app'));
#API
##props
| name | type | default | description |
| count | number | 5 | 评分个数 |
| disabled | bool | false | 只读 |
| defaultValue | number | 0 | 分数 |
| allowHalf | bool | false | 允许半颗 |
| style | object | {} | 组件容器样式 |
| onChange | function(val:number) | | 改变之后的值 |
| onHoverChange | function(val:number) | | 鼠标经过事件 |
| prefixCls | string | tnt-switch | 样式前缀用于重写样式 |