[Improvement] Rate: add change event (#1102)

This commit is contained in:
neverland
2018-05-19 09:23:06 +08:00
committed by GitHub
parent 9bafa62ba4
commit 86a2569614
3 changed files with 15 additions and 2 deletions
+7 -1
View File
@@ -43,7 +43,7 @@ export default {
<van-rate v-model="value" disabled />
```
### Rate API
### API
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
@@ -54,3 +54,9 @@ export default {
| void-color | Void color | `String` | `#c7c7c7` |
| disabled-color | Disabled color | `String` | `#bdbdbd` |
| disabled | Whether to disable rate | `Boolean` | `false` |
### Event
| Event | Description | Parameters |
|-----------|-----------|-----------|
| change | Triggered when rate changed | current rate |