npm

tnt-score

1.8.9 • Public • Published

tnt-score npm version

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

Current Tags

VersionDownloads (Last 7 Days)Tag
1.8.91latest

Version History

VersionDownloads (Last 7 Days)Published
1.8.91
1.8.80
1.7.80
0.0.10

Package Sidebar

Install

npm i tnt-score

Weekly Downloads

0

Version

1.8.9

License

ISC

Last publish

Collaborators

  • wj77998