[new feature] CellGroup: add title prop (#2928)

This commit is contained in:
neverland
2019-03-09 11:04:58 +08:00
committed by GitHub
parent 2297baa917
commit 4d0e3d6644
6 changed files with 86 additions and 1 deletions
+12
View File
@@ -62,6 +62,17 @@ Vue.use(Cell).use(CellGroup);
</van-cell-group>
```
#### Group Title
```html
<van-cell-group title="Group 1">
<van-cell title="Cell title" value="Content" />
</van-cell-group>
<van-cell-group title="Group 2">
<van-cell title="Cell title" value="Content" />
</van-cell-group>
```
#### Advanced Usage
```html
@@ -83,6 +94,7 @@ Vue.use(Cell).use(CellGroup);
| Attribute | Description | Type | Default |
|------|------|------|------|
| title | Group title | `String` | - |
| border | Whether to show outer border | `Boolean` | `true` |
### Cell API