tnt-score
react评分组件
Last updated 2 years ago by wj77998 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tnt-score 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.8.9                                ...           latest (2 years ago)

4 Versions

  • 1.8.9                                ...           2 years ago
  • 1.8.8                                ...           3 years ago
  • 1.7.8                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 4
Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |