mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
35 lines
896 B
Plaintext
35 lines
896 B
Plaintext
<demo-block title="消息提示" padding>
|
|
<van-button bind:click="onClickAlert" custom-class="demo-margin-right">Alert</van-button>
|
|
<van-button bind:click="onClickAlert2">无标题 Alert</van-button>
|
|
</demo-block>
|
|
|
|
<demo-block title="消息确认" padding>
|
|
<van-button bind:click="onClickConfirm">Confirm</van-button>
|
|
</demo-block>
|
|
|
|
<demo-block title="高级用法" padding>
|
|
<van-button bind:click="showCustomDialog">高级用法</van-button>
|
|
<van-dialog
|
|
use-slot
|
|
async-close
|
|
show="{{ show }}"
|
|
show-cancel-button
|
|
bind:close="onClose"
|
|
>
|
|
<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" />
|