Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd573dcd

Browse files
committed
docs: update content
1 parent8ee8286 commitd573dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎packages/docs/components/collapse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The collapse component is used to show and hide content. Buttons or anchors are
1515
You can use a link or a button component.
1616

1717
::: demo
18-
<CButton color="primary" href="#"@click="visible = !visible">Link</CButton>
18+
<CButton color="primary" href="#"@click.prevent="visible = !visible">Link</CButton>
1919
<CButton color="primary"@click="visible = !visible">Button</CButton>
2020
<CCollapse:visible="visible">
2121
<CCardclass="mt-3">
@@ -29,7 +29,7 @@ You can use a link or a button component.
2929
:::
3030
```vue
3131
<template>
32-
<CButton color="primary" href="#" @click="visible = !visible">Link</CButton>
32+
<CButton color="primary" href="#" @click.prevent="visible = !visible">Link</CButton>
3333
<CButton color="primary" @click="visible = !visible">Button</CButton>
3434
<CCollapse :visible="visible">
3535
<CCard class="mt-3">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp