docs(Dialog): fix v-model usage #7172
This commit is contained in:
@@ -138,7 +138,7 @@ export default {
|
|||||||
如果需要在弹窗内嵌入组件或其他自定义内容,可以使用组件调用的方式。
|
如果需要在弹窗内嵌入组件或其他自定义内容,可以使用组件调用的方式。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-dialog v-model="show" title="标题" show-cancel-button>
|
<van-dialog v-model:show="show" title="标题" show-cancel-button>
|
||||||
<img src="https://img.yzcdn.cn/vant/apple-3.jpg" />
|
<img src="https://img.yzcdn.cn/vant/apple-3.jpg" />
|
||||||
</van-dialog>
|
</van-dialog>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user