mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
<demo-block title="消息提示" padding>
|
|
<van-button type="primary" plain bind:click="onClickAlert" custom-class="demo-margin-right">消息提示</van-button>
|
|
<van-button type="primary" plain bind:click="onClickAlert2">无标题提示</van-button>
|
|
</demo-block>
|
|
|
|
<demo-block title="消息确认" padding>
|
|
<van-button type="primary" plain bind:click="onClickConfirm">消息确认</van-button>
|
|
</demo-block>
|
|
|
|
<demo-block title="组件调用" padding>
|
|
<van-button type="danger" plain bind:click="showCustomDialog">组件调用</van-button>
|
|
<van-dialog
|
|
use-slot
|
|
async-close
|
|
show="{{ show }}"
|
|
show-cancel-button
|
|
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" />
|