mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
284 lines
9.1 KiB
Plaintext
284 lines
9.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`should render demo and match snapshot 1`] = `
|
|
<main>
|
|
<wx-view
|
|
class="container"
|
|
>
|
|
<demo-block>
|
|
<wx-view
|
|
class="custom-class demo-block van-clearfix "
|
|
>
|
|
<wx-view
|
|
class="demo-block__title"
|
|
>
|
|
基础用法
|
|
</wx-view>
|
|
<van-card>
|
|
<wx-view
|
|
class="custom-class van-card"
|
|
>
|
|
<wx-view
|
|
class="van-card__header"
|
|
>
|
|
<wx-view
|
|
class="van-card__thumb"
|
|
bind:tap="onClickThumb"
|
|
>
|
|
<wx-image
|
|
class="van-card__img thumb-class"
|
|
lazyLoad="{{false}}"
|
|
mode="aspectFit"
|
|
src="https://img.yzcdn.cn/upload_files/2017/07/02/af5b9f44deaeb68000d7e4a711160c53.jpg"
|
|
/>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__content van-card__content"
|
|
>
|
|
<wx-view>
|
|
<wx-view
|
|
class="van-card__title title-class"
|
|
>
|
|
2018秋冬新款男士休闲时尚军绿飞行夹克秋冬新款男
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__desc desc-class"
|
|
>
|
|
描述信息
|
|
</wx-view>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__bottom"
|
|
>
|
|
<wx-view
|
|
class="van-card__price price-class"
|
|
>
|
|
<wx-text>
|
|
¥
|
|
</wx-text>
|
|
<wx-text
|
|
class="van-card__price-integer"
|
|
>
|
|
2
|
|
</wx-text>
|
|
<wx-text
|
|
class="van-card__price-decimal"
|
|
>
|
|
.00
|
|
</wx-text>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__num num-class"
|
|
>
|
|
x 2
|
|
</wx-view>
|
|
</wx-view>
|
|
</wx-view>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__footer"
|
|
/>
|
|
</wx-view>
|
|
</van-card>
|
|
</wx-view>
|
|
</demo-block>
|
|
<demo-block>
|
|
<wx-view
|
|
class="custom-class demo-block van-clearfix "
|
|
>
|
|
<wx-view
|
|
class="demo-block__title"
|
|
>
|
|
高级用法
|
|
</wx-view>
|
|
<van-card>
|
|
<wx-view
|
|
class="custom-class van-card"
|
|
>
|
|
<wx-view
|
|
class="van-card__header"
|
|
>
|
|
<wx-view
|
|
class="van-card__thumb"
|
|
bind:tap="onClickThumb"
|
|
>
|
|
<wx-image
|
|
class="van-card__img thumb-class"
|
|
lazyLoad="{{false}}"
|
|
mode="aspectFit"
|
|
src="https://img.yzcdn.cn/upload_files/2017/07/02/af5b9f44deaeb68000d7e4a711160c53.jpg"
|
|
/>
|
|
<van-tag
|
|
customClass="van-card__tag"
|
|
>
|
|
<wx-view
|
|
class="custom-class van-tag van-tag--danger van-tag--mark"
|
|
style=""
|
|
>
|
|
|
|
标签
|
|
|
|
</wx-view>
|
|
</van-tag>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__content van-card__content"
|
|
>
|
|
<wx-view>
|
|
<wx-view
|
|
class="van-card__title title-class"
|
|
>
|
|
2018秋冬新款男士休闲时尚军绿飞行夹克秋冬新款男
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__desc desc-class"
|
|
>
|
|
描述信息
|
|
</wx-view>
|
|
<wx-view
|
|
slot="tags"
|
|
>
|
|
<van-tag
|
|
customClass="tag"
|
|
>
|
|
<wx-view
|
|
class="custom-class van-tag van-tag--danger van-tag--plain"
|
|
style=""
|
|
>
|
|
标签1
|
|
</wx-view>
|
|
</van-tag>
|
|
<van-tag>
|
|
<wx-view
|
|
class="custom-class van-tag van-tag--danger van-tag--plain"
|
|
style=""
|
|
>
|
|
标签2
|
|
</wx-view>
|
|
</van-tag>
|
|
</wx-view>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__bottom"
|
|
>
|
|
<wx-view
|
|
class="van-card__price price-class"
|
|
>
|
|
<wx-text>
|
|
¥
|
|
</wx-text>
|
|
<wx-text
|
|
class="van-card__price-integer"
|
|
>
|
|
2
|
|
</wx-text>
|
|
<wx-text
|
|
class="van-card__price-decimal"
|
|
>
|
|
.00
|
|
</wx-text>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__origin-price origin-price-class"
|
|
>
|
|
¥ 10.00
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__num num-class"
|
|
>
|
|
x 2
|
|
</wx-view>
|
|
</wx-view>
|
|
</wx-view>
|
|
</wx-view>
|
|
<wx-view
|
|
class="van-card__footer"
|
|
>
|
|
<wx-view
|
|
class="van-card__footer"
|
|
slot="footer"
|
|
>
|
|
<van-button
|
|
customClass="button"
|
|
>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--default van-button--mini van-button--round "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
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>
|
|
<van-button>
|
|
<wx-button
|
|
appParameter=""
|
|
ariaLabel=""
|
|
businessId="{{0}}"
|
|
class="custom-class van-button van-button--default van-button--mini van-button--round "
|
|
data-detail="{{null}}"
|
|
formType=""
|
|
hoverClass="van-button--active hover-class"
|
|
id=""
|
|
lang=""
|
|
openType=""
|
|
sendMessageImg=""
|
|
sendMessagePath=""
|
|
sendMessageTitle=""
|
|
sessionFrom=""
|
|
showMessageCard="{{false}}"
|
|
style=""
|
|
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>
|
|
</wx-view>
|
|
</van-card>
|
|
</wx-view>
|
|
</demo-block>
|
|
</wx-view>
|
|
</main>
|
|
`;
|