# Rate
---

React | ES6 | webpack | ESlint | HMR

## Desc

* 评分插件
* 支持总分设置
* 支持默认值设置
* 支持onChange事件
* 支持不可变更性

## Usage

```js
<Rate
  total={10}
  disabled={false}
  value={score}
  onChange={this.onChange}
/>
```

## Examples

Look the directory `/examples`

## API

### Props

<table class="table table-bordered table-striped">
    <thead>
    <tr>
        <th style="width: 100px;">name</th>
        <th style="width: 50px;">type</th>
        <th style="width: 50px;">default</th>
        <th>description</th>
    </tr>
    </thead>
    <tbody>
        <tr>
          <td>value</td>
          <td>number.isRequired</td>
          <td>0</td>
          <td>当前值</td>
        </tr>
        <tr>
          <td>onChange</td>
          <td>func.isRequired</td>
          <td></td>
          <td>change事件</td>
        </tr>
        <tr>
          <td>disabled</td>
          <td>bool</td>
          <td>false</td>
          <td>是否禁用</td>
        </tr>
        <tr>
          <td>total</td>
          <td>number</td>
          <td>5</td>
          <td>总数</td>
        </tr>
        <tr>
          <td>defaultValue</td>
          <td>number</td>
          <td>0</td>
          <td>默认值</td>
        </tr>
    </tbody>
</table>

## Note

Thank you to give me many importance suggestions!

## Development

```bash
npm install
npm start
```
[node_modules](https://pan.baidu.com/s/1slEzpAt)最新下载地址（https://pan.baidu.com/s/1slEzpAt）
