rex 12dbaa56ce
[bugfix] Transition: overlay still show after closed (#1404)
fix #1377

+ Transition: fix overlay still show after closed
+ Dialog: add new transition none
2019-03-12 21:40:15 +08:00

63 lines
1.2 KiB
Plaintext

<demo-block title="消息提示" padding>
<van-button
plain
type="primary"
class="demo-margin-right"
bind:click="onClickAlert"
>
消息提示
</van-button>
<van-button
plain
type="primary"
bind:click="onClickAlert2"
>
无标题提示
</van-button>
</demo-block>
<demo-block title="消息确认" padding>
<van-button
plain
type="primary"
bind:click="onClickConfirm"
>
消息确认
</van-button>
</demo-block>
<demo-block title="组件调用" padding>
<van-button
plain
type="danger"
bind:click="showCustomDialog"
>
组件调用
</van-button>
<van-dialog
use-slot
async-close
show="{{ show }}"
show-cancel-button
transition="fade"
bind:close="onClose"
confirm-button-open-type="getUserInfo"
bind:getuserinfo="getUserInfo"
>
<van-field
value="{{ username }}"
label="用户名"
placeholder="请输入用户名"
/>
<van-field
value="{{ password }}"
type="password"
label="密码"
border="{{ false }}"
placeholder="请输入密码"
/>
</van-dialog>
</demo-block>
<van-dialog id="van-dialog" />