mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
306 lines
8.2 KiB
Plaintext
306 lines
8.2 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`should render demo and match snapshot 1`] = `
|
|
<main>
|
|
<demo-block>
|
|
<wx-view
|
|
class="custom-class demo-block van-clearfix demo-block--padding"
|
|
>
|
|
<wx-view
|
|
class="demo-block__title"
|
|
>
|
|
文字提示
|
|
</wx-view>
|
|
<van-button
|
|
class="demo-margin-right"
|
|
bind:tap="showToast"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--primary van-button--normal "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
bind:contact="onContact"
|
|
bind:error="onError"
|
|
bind:getphonenumber="onGetPhoneNumber"
|
|
bind:getuserinfo="onGetUserInfo"
|
|
bind:launchapp="onLaunchApp"
|
|
bind:opensetting="onOpenSetting"
|
|
bind:tap="onClick"
|
|
>
|
|
<wx-view
|
|
class="van-button__text"
|
|
>
|
|
文字提示
|
|
</wx-view>
|
|
</wx-button>
|
|
</van-button>
|
|
<van-button
|
|
bind:tap="showLongToast"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--primary van-button--normal "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
bind:contact="onContact"
|
|
bind:error="onError"
|
|
bind:getphonenumber="onGetPhoneNumber"
|
|
bind:getuserinfo="onGetUserInfo"
|
|
bind:launchapp="onLaunchApp"
|
|
bind:opensetting="onOpenSetting"
|
|
bind:tap="onClick"
|
|
>
|
|
<wx-view
|
|
class="van-button__text"
|
|
>
|
|
长文字提示
|
|
</wx-view>
|
|
</wx-button>
|
|
</van-button>
|
|
</wx-view>
|
|
</demo-block>
|
|
<demo-block>
|
|
<wx-view
|
|
class="custom-class demo-block van-clearfix demo-block--padding"
|
|
>
|
|
<wx-view
|
|
class="demo-block__title"
|
|
>
|
|
加载提示
|
|
</wx-view>
|
|
<van-button
|
|
class="demo-margin-right"
|
|
bind:tap="showLoadingToast"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--primary van-button--normal "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
bind:contact="onContact"
|
|
bind:error="onError"
|
|
bind:getphonenumber="onGetPhoneNumber"
|
|
bind:getuserinfo="onGetUserInfo"
|
|
bind:launchapp="onLaunchApp"
|
|
bind:opensetting="onOpenSetting"
|
|
bind:tap="onClick"
|
|
>
|
|
<wx-view
|
|
class="van-button__text"
|
|
>
|
|
加载提示
|
|
</wx-view>
|
|
</wx-button>
|
|
</van-button>
|
|
<van-button
|
|
bind:tap="showCustomLoadingToast"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--primary van-button--normal "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
bind:contact="onContact"
|
|
bind:error="onError"
|
|
bind:getphonenumber="onGetPhoneNumber"
|
|
bind:getuserinfo="onGetUserInfo"
|
|
bind:launchapp="onLaunchApp"
|
|
bind:opensetting="onOpenSetting"
|
|
bind:tap="onClick"
|
|
>
|
|
<wx-view
|
|
class="van-button__text"
|
|
>
|
|
自定义加载图标
|
|
</wx-view>
|
|
</wx-button>
|
|
</van-button>
|
|
</wx-view>
|
|
</demo-block>
|
|
<demo-block>
|
|
<wx-view
|
|
class="custom-class demo-block van-clearfix demo-block--padding"
|
|
>
|
|
<wx-view
|
|
class="demo-block__title"
|
|
>
|
|
成功/失败提示
|
|
</wx-view>
|
|
<van-button
|
|
class="demo-margin-right"
|
|
bind:tap="showSuccessToast"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--info van-button--normal "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
bind:contact="onContact"
|
|
bind:error="onError"
|
|
bind:getphonenumber="onGetPhoneNumber"
|
|
bind:getuserinfo="onGetUserInfo"
|
|
bind:launchapp="onLaunchApp"
|
|
bind:opensetting="onOpenSetting"
|
|
bind:tap="onClick"
|
|
>
|
|
<wx-view
|
|
class="van-button__text"
|
|
>
|
|
成功提示
|
|
</wx-view>
|
|
</wx-button>
|
|
</van-button>
|
|
<van-button
|
|
bind:tap="showFailToast"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--danger van-button--normal "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
bind:contact="onContact"
|
|
bind:error="onError"
|
|
bind:getphonenumber="onGetPhoneNumber"
|
|
bind:getuserinfo="onGetUserInfo"
|
|
bind:launchapp="onLaunchApp"
|
|
bind:opensetting="onOpenSetting"
|
|
bind:tap="onClick"
|
|
>
|
|
<wx-view
|
|
class="van-button__text"
|
|
>
|
|
失败提示
|
|
</wx-view>
|
|
</wx-button>
|
|
</van-button>
|
|
</wx-view>
|
|
</demo-block>
|
|
<demo-block>
|
|
<wx-view
|
|
class="custom-class demo-block van-clearfix demo-block--padding"
|
|
>
|
|
<wx-view
|
|
class="demo-block__title"
|
|
>
|
|
动态更新提示
|
|
</wx-view>
|
|
<van-button
|
|
bind:tap="showCustomizedToast"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--primary van-button--normal "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
bind:contact="onContact"
|
|
bind:error="onError"
|
|
bind:getphonenumber="onGetPhoneNumber"
|
|
bind:getuserinfo="onGetUserInfo"
|
|
bind:launchapp="onLaunchApp"
|
|
bind:opensetting="onOpenSetting"
|
|
bind:tap="onClick"
|
|
>
|
|
<wx-view
|
|
class="van-button__text"
|
|
>
|
|
动态更新提示
|
|
</wx-view>
|
|
</wx-button>
|
|
</van-button>
|
|
</wx-view>
|
|
</demo-block>
|
|
<van-toast
|
|
id="van-toast"
|
|
>
|
|
<van-transition
|
|
customClass="van-toast__container"
|
|
/>
|
|
</van-toast>
|
|
</main>
|
|
`;
|