feat: migrate Dialog component

This commit is contained in:
chenjiahan
2020-07-26 16:35:08 +08:00
parent 47ad40794e
commit f3ff931ebf
9 changed files with 86 additions and 299 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ export default {
If you need to render vue components within a dialog, you can use dialog component.
```html
<van-dialog v-model="show" title="Title" show-cancel-button>
<van-dialog v-model:show="show" title="Title" show-cancel-button>
<img src="https://img.yzcdn.cn/vant/apple-3.jpg" />
</van-dialog>
```
@@ -142,7 +142,7 @@ export default {
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| v-model | Whether to show dialog | _boolean_ | - |
| v-model:show | Whether to show dialog | _boolean_ | - |
| title | Title | _string_ | - |
| width `v2.2.7` | Width | _number \| string_ | `320px` |
| message | Message | _string_ | - |