docs(collapse): fix missing ref tags (#12460)

This commit is contained in:
阿菜 Cai 2023-11-21 22:42:46 +08:00 committed by GitHub
parent f325fc862c
commit eb8457e026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ export default {
Using `toggleAll` method to toggle all items. Using `toggleAll` method to toggle all items.
```html ```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="Title1" name="1">Content 1</van-collapse-item>
<van-collapse-item title="Title2" name="2">Content 2</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> <van-collapse-item title="Title3" name="3">Content 3</van-collapse-item>

View File

@ -129,7 +129,7 @@ export default {
通过 `Collapse` 实例上的 `toggleAll` 方法可以实现全部展开与全部切换。 通过 `Collapse` 实例上的 `toggleAll` 方法可以实现全部展开与全部切换。
```html ```html
<van-collapse v-model="activeNames"> <van-collapse v-model="activeNames" ref="collapse">
<van-collapse-item title="标题1" name="1"> <van-collapse-item title="标题1" name="1">
代码是写出来给人看的,附带能在机器上运行。 代码是写出来给人看的,附带能在机器上运行。
</van-collapse-item> </van-collapse-item>