[Doc] fix dialog document (#1124)

This commit is contained in:
张小上 2018-05-21 17:37:37 +08:00 committed by neverland
parent e95107f14c
commit d2ef10991c
2 changed files with 6 additions and 6 deletions

View File

@ -92,8 +92,8 @@ If you need to render vue components within a dialog, you can use dialog compone
<van-field
v-model="password"
type="password"
:label="Password"
:placeholder="Password"
label="Password"
placeholder="Password"
/>
</van-dialog>
```
@ -144,4 +144,4 @@ export default {
| Event | Description | Parameters |
|-----------|-----------|-----------|
| confirm | Triggered when click confirm button | - |
| cancel | Triggered when click cancel button | - |
| cancel | Triggered when click cancel button | - |

View File

@ -98,8 +98,8 @@ export default {
<van-field
v-model="password"
type="password"
:label="密码"
:placeholder="请输入密码"
label="密码"
placeholder="请输入密码"
/>
</van-dialog>
```
@ -149,4 +149,4 @@ export default {
| 事件 | 说明 | 回调参数 |
|-----------|-----------|-----------|
| confirm | 点击确认按钮时触发 | - |
| cancel | 点击取消按钮时触发 | - |
| cancel | 点击取消按钮时触发 | - |