docs(Collapse): improve docs for onChange @rex-zsd (#1044)

This commit is contained in:
rex 2018-12-11 14:56:41 +08:00 committed by neverland
parent 4912029e2b
commit aebcb213a9

View File

@ -32,6 +32,11 @@
Page({
data: {
activeNames: ['1']
},
onChange(event) {
this.setData({
activeNames: event.detail
});
}
});
```
@ -57,6 +62,11 @@ Page({
Page({
data: {
activeName: '1'
},
onChange(event) {
this.setData({
activeNames: event.detail
});
}
});
```
@ -75,6 +85,19 @@ Page({
</van-collapse>
```
``` javascript
Page({
data: {
activeName: ['1']
},
onChange(event) {
this.setData({
activeNames: event.detail
});
}
});
```
### Collapse API