tnt-score 1.8.9 • Public • Published 7 years ago
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 | 样式前缀用于重写样式 |
Versions Version Downloads (Last 7 Days) Tag 1.8.9 1 latest
Version History Version Downloads (Last 7 Days) Published 1.8.9 1 7 years ago 1.8.8 0 8 years ago 1.7.8 0 8 years ago 0.0.1 0 8 years ago
Package Sidebar Install Downloads Weekly Downloads