docs(Dialog): fix v-model usage #7172

This commit is contained in:
chenjiahan 2020-09-13 14:50:15 +08:00
parent 366597560f
commit c68e77abca

View File

@ -138,7 +138,7 @@ export default {
如果需要在弹窗内嵌入组件或其他自定义内容,可以使用组件调用的方式。
```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" />
</van-dialog>
```