mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
docs(Popup): fix code in docs to be the same as in demo (#11717)
This commit is contained in:
@@ -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>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user