mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(collapse): fix missing ref
tags (#12460)
This commit is contained in:
parent
f325fc862c
commit
eb8457e026
@ -113,7 +113,7 @@ export default {
|
||||
Using `toggleAll` method to toggle all items.
|
||||
|
||||
```html
|
||||
<van-collapse v-model="activeNames">
|
||||
<van-collapse v-model="activeNames" ref="collapse">
|
||||
<van-collapse-item title="Title1" name="1">Content 1</van-collapse-item>
|
||||
<van-collapse-item title="Title2" name="2">Content 2</van-collapse-item>
|
||||
<van-collapse-item title="Title3" name="3">Content 3</van-collapse-item>
|
||||
|
@ -129,7 +129,7 @@ export default {
|
||||
通过 `Collapse` 实例上的 `toggleAll` 方法可以实现全部展开与全部切换。
|
||||
|
||||
```html
|
||||
<van-collapse v-model="activeNames">
|
||||
<van-collapse v-model="activeNames" ref="collapse">
|
||||
<van-collapse-item title="标题1" name="1">
|
||||
代码是写出来给人看的,附带能在机器上运行。
|
||||
</van-collapse-item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user