mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 15:09:16 +08:00
docs(Popup): fix code in docs to be the same as in demo (#11717)
This commit is contained in:
parent
58fb3402b6
commit
34634f645d
@ -21,7 +21,7 @@ app.use(Popup);
|
|||||||
### Basic Usage
|
### Basic Usage
|
||||||
|
|
||||||
```html
|
```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>
|
<van-popup v-model:show="show" :style="{ padding: '64px' }">Content</van-popup>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ app.use(Popup);
|
|||||||
通过 `v-model:show` 控制弹出层是否展示。
|
通过 `v-model:show` 控制弹出层是否展示。
|
||||||
|
|
||||||
```html
|
```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>
|
<van-popup v-model:show="show" :style="{ padding: '64px' }">内容</van-popup>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user