docs(Rate): add change event demo (#5596)

This commit is contained in:
Lindy
2020-01-19 17:43:09 +08:00
committed by neverland
parent a30bf27559
commit 8345d6e126
4 changed files with 66 additions and 1 deletions
+16
View File
@@ -88,6 +88,22 @@ export default {
<van-rate v-model="value" readonly />
```
### Change Event
```html
<van-rate v-model="value" @change="onChange" />
```
```javascript
export default {
method: {
onChange(value) {
Toast('current value:'+ value);
}
}
}
```
## API
### Props