docs(Popup): fix code in docs to be the same as in demo (#11717)

This commit is contained in:
Gavin 2023-03-29 21:05:07 +08:00 committed by GitHub
parent 58fb3402b6
commit 34634f645d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ app.use(Popup);
### Basic Usage
```html
<van-cell is-link @click="showPopup">Show Popup</van-cell>
<van-cell title="Show Popup" is-link @click="showPopup" />
<van-popup v-model:show="show" :style="{ padding: '64px' }">Content</van-popup>
```

View File

@ -23,7 +23,7 @@ app.use(Popup);
通过 `v-model:show` 控制弹出层是否展示。
```html
<van-cell is-link @click="showPopup">展示弹出层</van-cell>
<van-cell title="展示弹出层" is-link @click="showPopup" />
<van-popup v-model:show="show" :style="{ padding: '64px' }">内容</van-popup>
```