mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-21 05:50:47 +08:00
docs(Collapse): improve docs for onChange @rex-zsd (#1044)
This commit is contained in:
parent
4912029e2b
commit
aebcb213a9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user