mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
docs(Collapse): 完善 Collapse 文档
This commit is contained in:
parent
e34b49ef9b
commit
efbbc07c10
@ -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>
|
||||
提供多样店铺模板,快速搭建网上商城
|
||||
|
Loading…
x
Reference in New Issue
Block a user