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 | 样式前缀用于重写样式 |

Readme

Keywords

none

Package Sidebar

Install

npm i tnt-score

Weekly Downloads

1

Version

1.8.9

License

ISC

Last publish

Collaborators

  • wj77998