456 lines
13 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 "
>
<wx-view
class="demo-block__title"
>
基础用法
</wx-view>
<van-submit-bar
customClass="van-submit-bar"
bind:submit="onClickButton"
>
<wx-view
class="van-submit-bar custom-class"
>
<wx-view
class="van-submit-bar__tip"
/>
<wx-view
class="bar-class van-submit-bar__bar"
>
<wx-view
class="van-submit-bar__text"
>
<wx-text>
合计:
</wx-text>
<wx-text
class="van-submit-bar__price price-class"
>
<wx-text
class="van-submit-bar__currency"
>
¥
</wx-text>
<wx-text
class="van-submit-bar__price-integer"
>
30
</wx-text>
<wx-text>
.50
</wx-text>
</wx-text>
<wx-text
class="van-submit-bar__suffix-label"
>
</wx-text>
</wx-view>
<van-button
class="van-submit-bar__button"
customClass="button-class"
bind:click="onSubmit"
>
<wx-button
appParameter=""
ariaLabel=""
businessId="{{0}}"
class="custom-class van-button van-button--danger van-button--normal van-button--round "
data-detail="{{null}}"
formType=""
hoverClass="van-button--active hover-class"
id=""
lang=""
openType=""
sendMessageImg=""
sendMessagePath=""
sendMessageTitle=""
sessionFrom=""
showMessageCard="{{false}}"
style="width: 100%;"
bind:agreeprivacyauthorization="onAgreePrivacyAuthorization"
bind:chooseavatar="onChooseAvatar"
bind:contact="onContact"
bind:error="onError"
bind:getphonenumber="onGetPhoneNumber"
bind:getrealtimephonenumber="onGetRealTimePhoneNumber"
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>
</wx-view>
</van-submit-bar>
</wx-view>
</demo-block>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
禁用状态
</wx-view>
<van-submit-bar
customClass="van-submit-bar"
bind:submit="onClickButton"
>
<wx-view
class="van-submit-bar custom-class"
>
<wx-view
class="van-submit-bar__tip"
>
<van-icon
customClass="van-submit-bar__tip-icon"
>
<wx-view
class="custom-class van-icon van-icon-info-o"
style="font-size:12px"
bind:tap="onClick"
/>
</van-icon>
<wx-view
class="van-submit-bar__tip-text"
>
您的收货地址不支持同城送, 我们已为您推荐快递
</wx-view>
</wx-view>
<wx-view
class="bar-class van-submit-bar__bar"
>
<wx-view
class="van-submit-bar__text"
>
<wx-text>
合计:
</wx-text>
<wx-text
class="van-submit-bar__price price-class"
>
<wx-text
class="van-submit-bar__currency"
>
¥
</wx-text>
<wx-text
class="van-submit-bar__price-integer"
>
30
</wx-text>
<wx-text>
.50
</wx-text>
</wx-text>
<wx-text
class="van-submit-bar__suffix-label"
>
</wx-text>
</wx-view>
<van-button
class="van-submit-bar__button"
customClass="button-class"
bind:click="onSubmit"
>
<wx-button
appParameter=""
ariaLabel=""
businessId="{{0}}"
class="custom-class van-button van-button--danger van-button--normal van-button--round van-button--disabled van-button--unclickable "
data-detail="{{null}}"
formType=""
hoverClass=""
id=""
lang=""
openType=""
sendMessageImg=""
sendMessagePath=""
sendMessageTitle=""
sessionFrom=""
showMessageCard="{{false}}"
style="width: 100%;"
bind:agreeprivacyauthorization="onAgreePrivacyAuthorization"
bind:chooseavatar="onChooseAvatar"
bind:contact="onContact"
bind:error="onError"
bind:getphonenumber="onGetPhoneNumber"
bind:getrealtimephonenumber="onGetRealTimePhoneNumber"
bind:getuserinfo="onGetUserInfo"
bind:launchapp="onLaunchApp"
bind:opensetting="onOpenSetting"
bind:tap=""
>
<wx-view
class="van-button__text"
>
提交订单
</wx-view>
</wx-button>
</van-button>
</wx-view>
</wx-view>
</van-submit-bar>
</wx-view>
</demo-block>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
加载状态
</wx-view>
<van-submit-bar
customClass="van-submit-bar"
bind:submit="onClickButton"
>
<wx-view
class="van-submit-bar custom-class"
>
<wx-view
class="van-submit-bar__tip"
/>
<wx-view
class="bar-class van-submit-bar__bar"
>
<wx-view
class="van-submit-bar__text"
>
<wx-text>
合计:
</wx-text>
<wx-text
class="van-submit-bar__price price-class"
>
<wx-text
class="van-submit-bar__currency"
>
¥
</wx-text>
<wx-text
class="van-submit-bar__price-integer"
>
30
</wx-text>
<wx-text>
.50
</wx-text>
</wx-text>
<wx-text
class="van-submit-bar__suffix-label"
>
</wx-text>
</wx-view>
<van-button
class="van-submit-bar__button"
customClass="button-class"
bind:click="onSubmit"
>
<wx-button
appParameter=""
ariaLabel=""
businessId="{{0}}"
class="custom-class van-button van-button--danger van-button--normal van-button--round van-button--loading van-button--unclickable "
data-detail="{{null}}"
formType=""
hoverClass=""
id=""
lang=""
openType=""
sendMessageImg=""
sendMessagePath=""
sendMessageTitle=""
sessionFrom=""
showMessageCard="{{false}}"
style="width: 100%;"
bind:agreeprivacyauthorization="onAgreePrivacyAuthorization"
bind:chooseavatar="onChooseAvatar"
bind:contact="onContact"
bind:error="onError"
bind:getphonenumber="onGetPhoneNumber"
bind:getrealtimephonenumber="onGetRealTimePhoneNumber"
bind:getuserinfo="onGetUserInfo"
bind:launchapp="onLaunchApp"
bind:opensetting="onOpenSetting"
bind:tap=""
>
<van-loading
customClass="loading-class"
>
<wx-view
class="custom-class van-loading"
>
<wx-view
class="van-loading__spinner van-loading__spinner--circular"
style="color:#fff;width:20px;height:20px"
/>
<wx-view
class="van-loading__text"
style=""
/>
</wx-view>
</van-loading>
</wx-button>
</van-button>
</wx-view>
</wx-view>
</van-submit-bar>
</wx-view>
</demo-block>
<demo-block>
<wx-view
class="custom-class demo-block van-clearfix "
>
<wx-view
class="demo-block__title"
>
高级用法
</wx-view>
<van-submit-bar
customClass="van-submit-bar"
bind:submit="onClickButton"
>
<wx-view
class="van-submit-bar custom-class"
>
<wx-view
class="van-submit-bar__tip"
>
<wx-view
slot="tip"
>
您的收货地址不支持同城送
<wx-text
class="edit-address"
bind:tap="onClickLink"
>
修改地址
</wx-text>
</wx-view>
</wx-view>
<wx-view
class="bar-class van-submit-bar__bar"
>
<van-tag
customClass="submit-tag"
>
<wx-view
class="custom-class van-tag van-tag--primary"
style=""
>
标签
</wx-view>
</van-tag>
<wx-view
class="van-submit-bar__text"
>
<wx-text>
合计:
</wx-text>
<wx-text
class="van-submit-bar__price price-class"
>
<wx-text
class="van-submit-bar__currency"
>
¥
</wx-text>
<wx-text
class="van-submit-bar__price-integer"
>
30
</wx-text>
<wx-text>
.50
</wx-text>
</wx-text>
<wx-text
class="van-submit-bar__suffix-label"
>
</wx-text>
</wx-view>
<van-button
class="van-submit-bar__button"
customClass="button-class"
bind:click="onSubmit"
>
<wx-button
appParameter=""
ariaLabel=""
businessId="{{0}}"
class="custom-class van-button van-button--danger van-button--normal van-button--round "
data-detail="{{null}}"
formType=""
hoverClass="van-button--active hover-class"
id=""
lang=""
openType=""
sendMessageImg=""
sendMessagePath=""
sendMessageTitle=""
sessionFrom=""
showMessageCard="{{false}}"
style="width: 100%;"
bind:agreeprivacyauthorization="onAgreePrivacyAuthorization"
bind:chooseavatar="onChooseAvatar"
bind:contact="onContact"
bind:error="onError"
bind:getphonenumber="onGetPhoneNumber"
bind:getrealtimephonenumber="onGetRealTimePhoneNumber"
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>
</wx-view>
</van-submit-bar>
</wx-view>
</demo-block>
<van-toast
id="van-toast"
>
<van-transition
customClass="van-toast__container"
/>
</van-toast>
</main>
`;