docs(Collapse): 完善 Collapse 文档

This commit is contained in:
rex 2019-01-16 10:49:53 +08:00 committed by GitHub
parent e34b49ef9b
commit efbbc07c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
通过`value`控制展开的面板列表,`activeNames`为数组格式
```html
<van-collapse value="{{ activeNames }}">
<van-collapse value="{{ activeNames }}" bind:change="onChange">
<van-collapse-item title="有赞微商城" name="1">
提供多样店铺模板,快速搭建网上商城
</van-collapse-item>
@ -45,7 +45,7 @@ Page({
通过`accordion`可以设置为手风琴模式,最多展开一个面板,此时`activeName`为字符串格式
```html
<van-collapse value="{{ activeName }}" accordion>
<van-collapse value="{{ activeName }}" bind:change="onChange" accordion>
<van-collapse-item title="有赞微商城" name="1">
提供多样店铺模板,快速搭建网上商城
</van-collapse-item>
@ -74,7 +74,7 @@ Page({
#### 自定义标题内容
```html
<van-collapse value="{{ activeNames }}">
<van-collapse value="{{ activeNames }}" bind:change="onChange">
<van-collapse-item name="1">
<view slot="title">有赞微商城<van-icon name="question-o" /></view>
提供多样店铺模板,快速搭建网上商城