## Rate
### Install
``` javascript
import { Rate } from 'vant';
Vue.use(Rate);
```
### Usage
#### Basic Usage
```html
```
```javascript
export default {
data() {
return {
value: 3
};
}
}
```
#### Custom Icon
```html
```
#### Custom Style
```html
```
#### Half Star
```html
```
```javascript
export default {
data() {
return {
value: 2.5
};
}
}
```
#### Custom Count
```html
```
#### Disabled
```html
```
#### Readonly
```html
```
### API
| Attribute | Description | Type | Default |
|------|------|------|------|
| v-model | Current rate | `Number` | - |
| count | Count | `Number` | `5` |
| size | Icon size (px) | `Number` | `20` |
| color | Selected color | `String` | `#ffd21e` |
| void-color | Void color | `String` | `#c7c7c7` |
| icon | Selected icon | `String` | `star` |
| void-icon | Void icon | `String` | `star-o` |
| allow-half | Whether to allow half star | `Boolean` | `false` |
| readonly | Whether to be readonly | `Boolean` | `false` |
| disabled | Whether to disable rate | `Boolean` | `false` |
| disabled-color | Disabled color | `String` | `#bdbdbd` |
### Event
| Event | Description | Parameters |
|------|------|------|
| change | Triggered when rate changed | current rate |