mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bug fix]: Advanced Component document
This commit is contained in:
parent
8c4866e6a7
commit
1bf316ab99
@ -18,7 +18,7 @@ Vue.component(CellSwipe.name, CellSwipe);
|
|||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-cell title="Cell" value="Cell Content"></van-cell>
|
<van-cell title="Cell" value="Cell Content"></van-cell>
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<span slot="right">Delete/span>
|
<span slot="right">Delete</span>
|
||||||
</van-cell-swipe>
|
</van-cell-swipe>
|
||||||
```
|
```
|
||||||
:::
|
:::
|
||||||
|
@ -139,7 +139,7 @@ export default {
|
|||||||
| itemclick | triggered when item is selected | data: selected item |
|
| itemclick | triggered when item is selected | data: selected item |
|
||||||
|
|
||||||
### Data Structure
|
### Data Structure
|
||||||
#### Data Structure of `items`
|
|
||||||
`items` should be an array contains specified tree objects.
|
`items` should be an array contains specified tree objects.
|
||||||
|
|
||||||
In every tree object, `text` property defines the name, `id` stands for the unique key while the `children` contains sub-tree objects.
|
In every tree object, `text` property defines the name, `id` stands for the unique key while the `children` contains sub-tree objects.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user