test: enable all demo snapshots

This commit is contained in:
chenjiahan 2020-11-08 20:30:51 +08:00
parent cd9c36fe38
commit 24c4896a11
181 changed files with 10306 additions and 7520 deletions

8
a.js Normal file
View File

@ -0,0 +1,8 @@
const glob = require('glob');
const fs = require('fs');
const legacy = glob.sync('src/**/demo.legacy.js');
legacy.forEach((item) => {
fs.renameSync(item, item.replace('demo.legacy.js', 'demo.spec.js'));
});

View File

@ -1,91 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-action-bar">
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-chat-o van-action-bar-icon__icon">
<!---->
</div>客服
</div>
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-cart-o van-action-bar-icon__icon">
<!---->
</div>购物车
</div>
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-shop-o van-action-bar-icon__icon">
<!---->
</div>店铺
</div> <button class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--first van-action-bar-button--last van-action-bar-button--danger">
<div class="van-button__content"><span class="van-button__text">立即购买</span></div>
</button>
</div>
</div>
<div>
<div class="van-action-bar">
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-chat-o van-action-bar-icon__icon">
<div class="van-badge van-badge--dot"></div>
</div>客服
</div>
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-cart-o van-action-bar-icon__icon">
<div class="van-badge">5</div>
</div>购物车
</div>
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-shop-o van-action-bar-icon__icon">
<div class="van-badge">12</div>
</div>店铺
</div> <button class="van-button van-button--warning van-button--large van-action-bar-button van-action-bar-button--first van-action-bar-button--warning">
<div class="van-button__content"><span class="van-button__text">加入购物车</span></div>
</button> <button class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--last van-action-bar-button--danger">
<div class="van-button__content"><span class="van-button__text">立即购买</span></div>
</button>
</div>
</div>
<div>
<div class="van-action-bar">
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-chat-o van-action-bar-icon__icon" style="color: rgb(7, 193, 96);">
<!---->
</div>客服
</div>
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-cart-o van-action-bar-icon__icon">
<!---->
</div>购物车
</div>
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-star van-action-bar-icon__icon" style="color: rgb(255, 80, 0);">
<!---->
</div>已收藏
</div> <button class="van-button van-button--warning van-button--large van-action-bar-button van-action-bar-button--first van-action-bar-button--warning">
<div class="van-button__content"><span class="van-button__text">加入购物车</span></div>
</button> <button class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--last van-action-bar-button--danger">
<div class="van-button__content"><span class="van-button__text">立即购买</span></div>
</button>
</div>
</div>
<div>
<div class="van-action-bar">
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-chat-o van-action-bar-icon__icon">
<!---->
</div>客服
</div>
<div role="button" tabindex="0" class="van-action-bar-icon">
<div class="van-icon van-icon-cart-o van-action-bar-icon__icon">
<!---->
</div>购物车
</div> <button class="van-button van-button--warning van-button--large van-action-bar-button van-action-bar-button--first van-action-bar-button--warning" style="color: rgb(255, 255, 255); background: rgb(190, 153, 255); border-color: #be99ff;">
<div class="van-button__content"><span class="van-button__text">加入购物车</span></div>
</button> <button class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--last van-action-bar-button--danger" style="color: rgb(255, 255, 255); background: rgb(114, 50, 221); border-color: #7232dd;">
<div class="van-button__content"><span class="van-button__text">立即购买</span></div>
</button>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,134 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-action-bar">
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-chat-o van-action-bar-icon__icon">
<!---->
<!---->
<!---->
</div>客服
</div>
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-cart-o van-action-bar-icon__icon">
<!---->
<!---->
<!---->
</div>购物车
</div>
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-shop-o van-action-bar-icon__icon">
<!---->
<!---->
<!---->
</div>店铺
</div><button type="button" class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--danger van-action-bar-button--last van-action-bar-button--first">
<div class="van-button__content">
<!----><span class="van-button__text">立即购买</span>
<!---->
</div>
</button>
</div>
</div>
<div>
<div class="van-action-bar">
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-chat-o van-action-bar-icon__icon">
<!---->
<!---->
<div class="van-badge van-badge--dot van-badge--fixed">
<!---->
</div>
</div>客服
</div>
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-cart-o van-action-bar-icon__icon">
<!---->
<!---->
<div class="van-badge van-badge--fixed">5</div>
</div>购物车
</div>
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-shop-o van-action-bar-icon__icon">
<!---->
<!---->
<div class="van-badge van-badge--fixed">12</div>
</div>店铺
</div><button type="button" class="van-button van-button--warning van-button--large van-action-bar-button van-action-bar-button--warning van-action-bar-button--first">
<div class="van-button__content">
<!----><span class="van-button__text">加入购物车</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--danger van-action-bar-button--last">
<div class="van-button__content">
<!----><span class="van-button__text">立即购买</span>
<!---->
</div>
</button>
</div>
</div>
<div>
<div class="van-action-bar">
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-chat-o van-action-bar-icon__icon" style="color: rgb(7, 193, 96);">
<!---->
<!---->
<!---->
</div>客服
</div>
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-cart-o van-action-bar-icon__icon">
<!---->
<!---->
<!---->
</div>购物车
</div>
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-star van-action-bar-icon__icon" style="color: rgb(255, 80, 0);">
<!---->
<!---->
<!---->
</div>已收藏
</div><button type="button" class="van-button van-button--warning van-button--large van-action-bar-button van-action-bar-button--warning van-action-bar-button--first">
<div class="van-button__content">
<!----><span class="van-button__text">加入购物车</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--danger van-action-bar-button--last">
<div class="van-button__content">
<!----><span class="van-button__text">立即购买</span>
<!---->
</div>
</button>
</div>
</div>
<div>
<div class="van-action-bar">
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-chat-o van-action-bar-icon__icon">
<!---->
<!---->
<!---->
</div>客服
</div>
<div role="button" class="van-action-bar-icon" tabindex="0">
<div class="van-badge__wrapper van-icon van-icon-cart-o van-action-bar-icon__icon">
<!---->
<!---->
<!---->
</div>购物车
</div><button type="button" class="van-button van-button--warning van-button--large van-action-bar-button van-action-bar-button--warning van-action-bar-button--first" style="color: rgb(255, 255, 255); border-color: #be99ff; background: rgb(190, 153, 255);">
<div class="van-button__content">
<!----><span class="van-button__text">加入购物车</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--danger van-button--large van-action-bar-button van-action-bar-button--danger van-action-bar-button--last" style="color: rgb(255, 255, 255); background: rgb(114, 50, 221); border-color: #7232dd;">
<div class="van-button__content">
<!----><span class="van-button__text">立即购买</span>
<!---->
</div>
</button>
</div>
</div>
`;

View File

@ -1,37 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>基础用法</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>展示取消按钮</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>展示描述信息</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>选项状态</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义面板</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<!---->
<!---->
<!---->
<!---->
<!---->
</div>
`;

View File

@ -0,0 +1,95 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>基础用法</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>展示取消按钮</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>展示描述信息</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>选项状态</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义面板</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
`;

View File

@ -1,60 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-address-edit">
<div class="van-address-edit__fields">
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>姓名</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="收货人姓名" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>电话</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" placeholder="收货人手机号" class="van-field__control"></div>
</div>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-field">
<div class="van-cell__title van-field__label"><span>地区</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" readonly="readonly" placeholder="选择省 / 市 / 区" class="van-field__control">
<div class="van-field__right-icon"><i class="van-icon van-icon-arrow">
<!----></i></div>
</div>
</div>
</div>
<div class="van-cell van-address-edit-detail">
<div class="van-cell__value van-cell__value--alone">
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>详细地址</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><textarea rows="1" placeholder="街道门牌、楼层房间号等信息" class="van-field__control" style="height: auto;"></textarea></div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>邮政编码</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" placeholder="邮政编码" class="van-field__control"></div>
</div>
</div>
</div>
<div class="van-cell van-cell--center van-address-edit__default">
<div class="van-cell__title"><span>设为默认收货地址</span></div>
<div role="switch" aria-checked="false" class="van-switch" style="font-size: 24px;">
<div class="van-switch__node"></div>
</div>
</div>
<div class="van-address-edit__buttons"><button class="van-button van-button--danger van-button--normal van-button--block van-button--round">
<div class="van-button__content"><span class="van-button__text">保存</span></div>
</button><button class="van-button van-button--default van-button--normal van-button--block van-button--round">
<div class="van-button__content"><span class="van-button__text">删除</span></div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,126 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-address-edit">
<div class="van-address-edit__fields">
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>姓名</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="收货人姓名">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>电话</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" class="van-field__control" placeholder="收货人手机号">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-cell--clickable van-field" role="button" tabindex="0">
<!---->
<div class="van-cell__title van-field__label"><span>地区</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" readonly="" placeholder="选择省 / 市 / 区">
<!---->
<div class="van-field__right-icon"><i class="van-badge__wrapper van-icon van-icon-arrow">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field van-address-edit-detail">
<!---->
<div class="van-cell__title van-field__label"><span>详细地址</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><textarea rows="1" class="van-field__control" placeholder="街道门牌、楼层房间号等信息" style="height: auto;"></textarea>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>邮政编码</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" class="van-field__control" placeholder="邮政编码">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
</div>
<div class="van-cell van-cell--center van-address-edit__default">
<!---->
<div class="van-cell__title"><span>设为默认收货地址</span>
<!---->
</div>
<!---->
<div role="switch" class="van-switch" style="font-size: 24px;" aria-checked="false">
<div class="van-switch__node">
<!---->
</div>
</div>
<!---->
</div>
<div class="van-address-edit__buttons"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">保存</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--default van-button--normal van-button--block van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">删除</span>
<!---->
</div>
</button></div>
<!--teleport start-->
<!--teleport end-->
</div>
</div>
`;

View File

@ -1,49 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-address-list">
<div role="radiogroup" class="van-radio-group">
<div class="van-address-item">
<div class="van-cell van-cell--borderless">
<div class="van-cell__value van-cell__value--alone van-address-item__value">
<div role="radio" tabindex="0" aria-checked="true" class="van-radio">
<div class="van-radio__icon van-radio__icon--round van-radio__icon--checked" style="font-size: 18px;"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-radio__label"><div class="van-address-item__name">张三 13000000000<span class="van-tag van-tag--round van-tag--danger van-address-item__tag">默认</span>
</div>
<div class="van-address-item__address">浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室</div></span>
</div>
</div><i class="van-icon van-icon-edit van-address-item__edit">
<!----></i>
</div>
</div>
<div class="van-address-item">
<div class="van-cell van-cell--borderless">
<div class="van-cell__value van-cell__value--alone van-address-item__value">
<div role="radio" tabindex="-1" aria-checked="false" class="van-radio">
<div class="van-radio__icon van-radio__icon--round" style="font-size: 18px;"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-radio__label"><div class="van-address-item__name">李四 1310000000</div><div class="van-address-item__address">浙江省杭州市拱墅区莫干山路 50 号</div></span>
</div>
</div><i class="van-icon van-icon-edit van-address-item__edit">
<!----></i>
</div>
</div>
</div>
<div class="van-address-list__disabled-text">以下地址超出配送范围</div>
<div class="van-address-item van-address-item--disabled">
<div class="van-cell van-cell--borderless">
<div class="van-cell__value van-cell__value--alone van-address-item__value">
<div class="van-address-item__name">王五 1320000000</div>
<div class="van-address-item__address">浙江省杭州市滨江区江南大道 15 号</div>
</div><i class="van-icon van-icon-edit van-address-item__edit">
<!----></i>
</div>
</div>
<div class="van-address-list__bottom"><button class="van-button van-button--danger van-button--normal van-button--block van-button--round van-address-list__add">
<div class="van-button__content"><span class="van-button__text">新增地址</span></div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,76 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-address-list">
<!---->
<div class="van-radio-group" role="radiogroup">
<div class="van-address-item">
<div class="van-cell van-cell--borderless">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone van-address-item__value">
<div role="radio" class="van-radio" tabindex="0" aria-checked="true">
<div class="van-radio__icon van-radio__icon--round van-radio__icon--checked" style="font-size: 18px;"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-radio__label"><div class="van-address-item__name">张三 13000000000<transition-stub class="van-address-item__tag"><span class="van-tag van-tag--round van-tag--danger">默认<!----></span></transition-stub>
</div>
<div class="van-address-item__address">浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室</div></span>
</div>
</div><i class="van-badge__wrapper van-icon van-icon-edit van-address-item__edit">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
<div class="van-address-item">
<div class="van-cell van-cell--borderless">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone van-address-item__value">
<div role="radio" class="van-radio" tabindex="0" aria-checked="false">
<div class="van-radio__icon van-radio__icon--round" style="font-size: 18px;"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-radio__label"><div class="van-address-item__name">李四 1310000000<!----></div><div class="van-address-item__address">浙江省杭州市拱墅区莫干山路 50 号</div></span>
</div>
</div><i class="van-badge__wrapper van-icon van-icon-edit van-address-item__edit">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
</div>
<div class="van-address-list__disabled-text">以下地址超出配送范围</div>
<div class="van-address-item van-address-item--disabled">
<div class="van-cell van-cell--borderless">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone van-address-item__value">
<div class="van-address-item__name">王五 1320000000
<!---->
</div>
<div class="van-address-item__address">浙江省杭州市滨江区江南大道 15 号</div>
</div><i class="van-badge__wrapper van-icon van-icon-edit van-address-item__edit">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
<!---->
<div class="van-address-list__bottom"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round van-address-list__add">
<div class="van-button__content">
<!----><span class="van-button__text">新增地址</span>
<!---->
</div>
</button></div>
</div>
</div>
`;

View File

@ -1,643 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-ellipsis van-picker__title">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">北京市</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">东城区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">西城区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">朝阳区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">丰台区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">石景山区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海淀区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">门头沟区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">房山区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">通州区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">顺义区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">昌平区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">大兴区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">怀柔区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">平谷区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">密云区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">延庆区</div>
</li>
</ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
</div>
</div>
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-ellipsis van-picker__title">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, -330px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 22px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">杭州市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">宁波市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">温州市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">嘉兴市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖州市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">绍兴市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">金华市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">衢州市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">舟山市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">台州市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">丽水市</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">鹿城区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">龙湾区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">瓯海区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">洞头区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">永嘉县</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">平阳县</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">苍南县</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">文成县</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">泰顺县</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">瑞安市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">乐清市</div>
</li>
</ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
</div>
</div>
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-ellipsis van-picker__title">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">北京市</div>
</li>
</ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
</div>
</div>
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-ellipsis van-picker__title">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;">
<li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
<div class="van-ellipsis">请选择</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;"></ul>
</div>
<div class="van-picker-column">
<ul class="van-picker-column__wrapper" style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;"></ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
</div>
</div>
</div>
`;

View File

@ -0,0 +1,649 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-picker__title van-ellipsis">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">北京市</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">东城区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">西城区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">朝阳区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">丰台区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">石景山区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海淀区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">门头沟区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">房山区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">通州区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">顺义区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">昌平区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">大兴区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">怀柔区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">平谷区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">密云区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">延庆区</div>
</li>
</ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-picker__title van-ellipsis">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul style="transform: translate3d(0, -330px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul style="transform: translate3d(0, 22px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">杭州市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">宁波市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">温州市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">嘉兴市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖州市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">绍兴市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">金华市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">衢州市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">舟山市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">台州市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">丽水市</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">鹿城区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">龙湾区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">瓯海区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">洞头区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">永嘉县</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">平阳县</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">苍南县</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">文成县</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">泰顺县</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">瑞安市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">乐清市</div>
</li>
</ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-picker__title van-ellipsis">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">北京市</div>
</li>
</ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-picker van-area">
<div class="van-picker__toolbar"><button type="button" class="van-picker__cancel">取消</button>
<div class="van-picker__title van-ellipsis">标题</div><button type="button" class="van-picker__confirm">确认</button>
</div>
<!---->
<!---->
<div class="van-picker__columns" style="height: 264px;">
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper">
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item van-picker-column__item--selected">
<div class="van-ellipsis">请选择</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">北京市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">天津市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">内蒙古自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">辽宁省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">吉林省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">黑龙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">上海市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江苏省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">浙江省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">安徽省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">福建省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">江西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">山东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">河南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖北省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">湖南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广东省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">广西壮族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">重庆市</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">四川省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">贵州省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">云南省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">西藏自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">陕西省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">甘肃省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">青海省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">宁夏回族自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">新疆维吾尔自治区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">台湾省</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">香港特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">澳门特别行政区</div>
</li>
<li role="button" style="height: 44px;" tabindex="0" class="van-picker-column__item">
<div class="van-ellipsis">海外</div>
</li>
</ul>
</div>
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper"></ul>
</div>
<div class="van-picker-column">
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper"></ul>
</div>
<div class="van-picker__mask" style="background-size: 100% 110px;"></div>
<div class="van-hairline-unset--top-bottom van-picker__frame" style="height: 44px;"></div>
</div>
<!---->
<!---->
</div>
</div>
`;

View File

@ -1,86 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="demo-button-row"><button class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><span class="van-button__text">主要按钮</span></div>
</button> <button class="van-button van-button--info van-button--normal">
<div class="van-button__content"><span class="van-button__text">信息按钮</span></div>
</button> <button class="van-button van-button--default van-button--normal">
<div class="van-button__content"><span class="van-button__text">默认按钮</span></div>
</button></div> <button class="van-button van-button--danger van-button--normal">
<div class="van-button__content"><span class="van-button__text">危险按钮</span></div>
</button> <button class="van-button van-button--warning van-button--normal">
<div class="van-button__content"><span class="van-button__text">警告按钮</span></div>
</button>
</div>
<div><button class="van-button van-button--primary van-button--normal van-button--plain">
<div class="van-button__content"><span class="van-button__text">朴素按钮</span></div>
</button> <button class="van-button van-button--info van-button--normal van-button--plain">
<div class="van-button__content"><span class="van-button__text">朴素按钮</span></div>
</button></div>
<div><button class="van-button van-button--primary van-button--normal van-button--plain van-button--hairline van-hairline--surround">
<div class="van-button__content"><span class="van-button__text">细边框按钮</span></div>
</button> <button class="van-button van-button--info van-button--normal van-button--plain van-button--hairline van-hairline--surround">
<div class="van-button__content"><span class="van-button__text">细边框按钮</span></div>
</button></div>
<div><button disabled="disabled" class="van-button van-button--primary van-button--normal van-button--disabled">
<div class="van-button__content"><span class="van-button__text">禁用状态</span></div>
</button> <button disabled="disabled" class="van-button van-button--info van-button--normal van-button--disabled">
<div class="van-button__content"><span class="van-button__text">禁用状态</span></div>
</button></div>
<div><button class="van-button van-button--primary van-button--normal van-button--loading">
<div class="van-button__content">
<div class="van-loading van-loading--circular van-button__loading"><span class="van-loading__spinner van-loading__spinner--circular" style="color: currentColor; width: 20px; height: 20px;"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span></div>
</div>
</button> <button class="van-button van-button--primary van-button--normal van-button--loading">
<div class="van-button__content">
<div class="van-loading van-loading--spinner van-button__loading"><span class="van-loading__spinner van-loading__spinner--spinner" style="color: currentColor; width: 20px; height: 20px;"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span></div>
</div>
</button> <button class="van-button van-button--info van-button--normal van-button--loading">
<div class="van-button__content">
<div class="van-loading van-loading--circular van-button__loading"><span class="van-loading__spinner van-loading__spinner--circular" style="color: currentColor; width: 20px; height: 20px;"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span></div><span class="van-button__text">加载中...</span>
</div>
</button></div>
<div><button class="van-button van-button--primary van-button--normal van-button--square">
<div class="van-button__content"><span class="van-button__text">方形按钮</span></div>
</button> <button class="van-button van-button--info van-button--normal van-button--round">
<div class="van-button__content"><span class="van-button__text">圆形按钮</span></div>
</button></div>
<div><button class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><i class="van-icon van-icon-plus van-button__icon">
<!----></i></div>
</button> <button class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><i class="van-icon van-icon-plus van-button__icon">
<!----></i><span class="van-button__text">按钮</span></div>
</button> <button class="van-button van-button--info van-button--normal van-button--plain">
<div class="van-button__content"><i class="van-icon van-button__icon"><img src="https://img.yzcdn.cn/vant/user-active.png" class="van-icon__image">
<!----></i><span class="van-button__text">按钮</span></div>
</button></div>
<div><button class="van-button van-button--primary van-button--large">
<div class="van-button__content"><span class="van-button__text">大号按钮</span></div>
</button> <button class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><span class="van-button__text">普通按钮</span></div>
</button> <button class="van-button van-button--primary van-button--small">
<div class="van-button__content"><span class="van-button__text">小型按钮</span></div>
</button> <button class="van-button van-button--primary van-button--mini">
<div class="van-button__content"><span class="van-button__text">迷你按钮</span></div>
</button></div>
<div><button class="van-button van-button--primary van-button--normal van-button--block">
<div class="van-button__content"><span class="van-button__text">块级元素</span></div>
</button></div>
<div><button class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><span class="van-button__text">URL 跳转</span></div>
</button> <button class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><span class="van-button__text">路由跳转</span></div>
</button></div>
<div><button class="van-button van-button--default van-button--normal" style="color: rgb(255, 255, 255); background: rgb(114, 50, 221); border-color: #7232dd;">
<div class="van-button__content"><span class="van-button__text">单色按钮</span></div>
</button> <button class="van-button van-button--default van-button--normal van-button--plain" style="color: rgb(114, 50, 221); border-color: #7232dd;">
<div class="van-button__content"><span class="van-button__text">单色按钮</span></div>
</button> <button class="van-button van-button--default van-button--normal" style="color: rgb(255, 255, 255); border: 0px;">
<div class="van-button__content"><span class="van-button__text">渐变色按钮</span></div>
</button></div>
</div>
`;

View File

@ -0,0 +1,176 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="demo-button-row"><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">主要按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--success van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">成功按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--default van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">默认按钮</span>
<!---->
</div>
</button></div><button type="button" class="van-button van-button--danger van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">危险按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--warning van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">警告按钮</span>
<!---->
</div>
</button>
</div>
<div><button type="button" class="van-button van-button--primary van-button--normal van-button--plain">
<div class="van-button__content">
<!----><span class="van-button__text">朴素按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--success van-button--normal van-button--plain">
<div class="van-button__content">
<!----><span class="van-button__text">朴素按钮</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--normal van-button--plain van-button--hairline van-hairline--surround">
<div class="van-button__content">
<!----><span class="van-button__text">细边框按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--success van-button--normal van-button--plain van-button--hairline van-hairline--surround">
<div class="van-button__content">
<!----><span class="van-button__text">细边框按钮</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--normal van-button--disabled" disabled="">
<div class="van-button__content">
<!----><span class="van-button__text">禁用状态</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--success van-button--normal van-button--disabled" disabled="">
<div class="van-button__content">
<!----><span class="van-button__text">禁用状态</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--normal van-button--loading">
<div class="van-button__content">
<div class="van-loading van-loading--circular van-button__loading"><span class="van-loading__spinner van-loading__spinner--circular" style="color: currentColor; width: 20px; height: 20px;"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span>
<!---->
</div>
<!---->
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--normal van-button--loading">
<div class="van-button__content">
<div class="van-loading van-loading--spinner van-button__loading"><span class="van-loading__spinner van-loading__spinner--spinner" style="color: currentColor; width: 20px; height: 20px;"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
<!---->
</div>
<!---->
<!---->
</div>
</button><button type="button" class="van-button van-button--success van-button--normal van-button--loading">
<div class="van-button__content">
<div class="van-loading van-loading--circular van-button__loading"><span class="van-loading__spinner van-loading__spinner--circular" style="color: currentColor; width: 20px; height: 20px;"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span>
<!---->
</div><span class="van-button__text">加载中...</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--normal van-button--square">
<div class="van-button__content">
<!----><span class="van-button__text">方形按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--success van-button--normal van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">圆形按钮</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><i class="van-badge__wrapper van-icon van-icon-plus van-button__icon">
<!---->
<!---->
<!----></i>
<!---->
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><i class="van-badge__wrapper van-icon van-icon-plus van-button__icon">
<!---->
<!---->
<!----></i><span class="van-button__text">按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--normal van-button--plain">
<div class="van-button__content"><i class="van-badge__wrapper van-icon van-button__icon">
<!----><img class="van-icon__image" src="https://img.yzcdn.cn/vant/user-active.png">
<!----></i><span class="van-button__text">按钮</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--large">
<div class="van-button__content">
<!----><span class="van-button__text">大号按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">普通按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--small">
<div class="van-button__content">
<!----><span class="van-button__text">小型按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--mini">
<div class="van-button__content">
<!----><span class="van-button__text">迷你按钮</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--normal van-button--block">
<div class="van-button__content">
<!----><span class="van-button__text">块级元素</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">URL 跳转</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">路由跳转</span>
<!---->
</div>
</button></div>
<div><button type="button" class="van-button van-button--default van-button--normal" style="color: rgb(255, 255, 255); background: rgb(114, 50, 221); border-color: #7232dd;">
<div class="van-button__content">
<!----><span class="van-button__text">单色按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--default van-button--normal van-button--plain" style="color: rgb(114, 50, 221); border-color: #7232dd;">
<div class="van-button__content">
<!----><span class="van-button__text">单色按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--default van-button--normal" style="color: rgb(255, 255, 255); border: 0px;">
<div class="van-button__content">
<!----><span class="van-button__text">渐变色按钮</span>
<!---->
</div>
</button></div>
`;

View File

@ -1,183 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>选择单个日期</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>选择多个日期</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>选择日期区间</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>选择单个日期</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>选择日期区间</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义颜色</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义日期范围</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义按钮文字</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义日期文案</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义弹出位置</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>日期区间最大范围</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义周起始日</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div class="van-calendar" style="height: 500px;">
<div class="van-calendar__header">
<div class="van-calendar__header-title">日历</div>
<div class="van-calendar__header-subtitle">2012年1月</div>
<div class="van-calendar__weekdays"><span class="van-calendar__weekday">日</span><span class="van-calendar__weekday">一</span><span class="van-calendar__weekday">二</span><span class="van-calendar__weekday">三</span><span class="van-calendar__weekday">四</span><span class="van-calendar__weekday">五</span><span class="van-calendar__weekday">六</span></div>
</div>
<div class="van-calendar__body">
<div class="van-calendar__month" style="padding-bottom: 0px;">
<div role="grid" class="van-calendar__days">
<div class="van-calendar__month-mark">1</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled" style="margin-left: 0%;">1</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">2</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">3</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">4</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">5</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">6</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">7</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">8</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">9</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">
<div class="van-calendar__selected-day">10</div>
</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">11</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">12</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">13</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">14</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">15</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">16</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">17</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">18</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">19</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">20</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">21</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">22</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">23</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">24</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">25</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">26</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">27</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">28</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">29</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">30</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">31</div>
</div>
</div>
<div class="van-calendar__month" style="padding-bottom: 0px;">
<div class="van-calendar__month-title">2012年2月</div>
<div role="grid" class="van-calendar__days">
<div class="van-calendar__month-mark">2</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day" style="margin-left: 42.857142857142854%;">1</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">2</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">3</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">4</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">5</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">6</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">7</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">8</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">9</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">10</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">11</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">12</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">13</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">14</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">15</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">16</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">17</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">18</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">19</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">20</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">21</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">22</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">23</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">24</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">25</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">26</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">27</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">28</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">29</div>
</div>
</div>
<div class="van-calendar__month" style="padding-bottom: 0px;">
<div class="van-calendar__month-title">2012年3月</div>
<div role="grid" class="van-calendar__days">
<div class="van-calendar__month-mark">3</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day" style="margin-left: 57.142857142857146%;">1</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">2</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">3</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">4</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">5</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">6</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">7</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">8</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">9</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">10</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">11</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">12</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">13</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">14</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">15</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">16</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">17</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">18</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">19</div>
<div role="gridcell" tabindex="-1" class="van-calendar__day">20</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">21</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">22</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">23</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">24</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">25</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">26</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">27</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">28</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">29</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">30</div>
<div role="gridcell" class="van-calendar__day van-calendar__day--disabled">31</div>
</div>
</div>
</div>
<div class="van-calendar__footer"></div>
</div>
</div>
<!---->
</div>
`;

View File

@ -0,0 +1,174 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>选择单个日期</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>选择多个日期</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>选择日期区间</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>选择单个日期</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>选择日期区间</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义颜色</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义日期范围</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义按钮文字</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义日期文案</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义弹出位置</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>日期区间最大范围</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义周起始日</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-calendar" style="height: 500px;">
<div class="van-calendar__header">
<div class="van-calendar__header-title">日历</div>
<div class="van-calendar__header-subtitle"></div>
<div class="van-calendar__weekdays"><span class="van-calendar__weekday">日</span><span class="van-calendar__weekday">一</span><span class="van-calendar__weekday">二</span><span class="van-calendar__weekday">三</span><span class="van-calendar__weekday">四</span><span class="van-calendar__weekday">五</span><span class="van-calendar__weekday">六</span></div>
</div>
<div class="van-calendar__body">
<div class="van-calendar__month" style="padding-bottom: 0px;">
<!---->
<div></div>
</div>
<div class="van-calendar__month" style="padding-bottom: 0px;">
<div class="van-calendar__month-title">2012年2月</div>
<div></div>
</div>
<div class="van-calendar__month" style="padding-bottom: 0px;">
<div class="van-calendar__month-title">2012年3月</div>
<div></div>
</div>
</div>
<div class="van-calendar__footer">
<!---->
</div>
</div>
</div>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
`;

View File

@ -1,93 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-card">
<div class="van-card__header"><a class="van-card__thumb">
<div class="van-image" style="width: 100%; height: 100%;"><img src="https://img.yzcdn.cn/vant/ipad.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
</a>
<div class="van-card__content">
<div>
<div class="van-card__title van-multi-ellipsis--l2">商品名称</div>
<div class="van-card__desc van-ellipsis">描述信息</div>
</div>
<div class="van-card__bottom">
<div class="van-card__price">
<div><span class="van-card__price-currency">¥</span><span class="van-card__price-integer">2</span>.<span class="van-card__price-decimal">00</span></div>
</div>
<div class="van-card__num">x2</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="van-card">
<div class="van-card__header"><a class="van-card__thumb">
<div class="van-image" style="width: 100%; height: 100%;"><img src="https://img.yzcdn.cn/vant/ipad.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="van-card__tag"><span class="van-tag van-tag--mark van-tag--danger">标签</span></div>
</a>
<div class="van-card__content">
<div>
<div class="van-card__title van-multi-ellipsis--l2">商品名称</div>
<div class="van-card__desc van-ellipsis">描述信息</div>
</div>
<div class="van-card__bottom">
<div class="van-card__price">
<div><span class="van-card__price-currency">¥</span><span class="van-card__price-integer">2</span>.<span class="van-card__price-decimal">00</span></div>
</div>
<div class="van-card__origin-price">¥ 10.00</div>
<div class="van-card__num">x2</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="van-card">
<div class="van-card__header"><a class="van-card__thumb">
<div class="van-image" style="width: 100%; height: 100%;"><img src="https://img.yzcdn.cn/vant/ipad.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
</a>
<div class="van-card__content">
<div>
<div class="van-card__title van-multi-ellipsis--l2">商品名称</div>
<div class="van-card__desc van-ellipsis">描述信息</div>
<div><span class="van-tag van-tag--plain van-tag--danger" style="margin-right: 5px;">
标签
</span> <span class="van-tag van-tag--plain van-tag--danger">
标签
</span></div>
</div>
<div class="van-card__bottom">
<div class="van-card__price">
<div><span class="van-card__price-currency">¥</span><span class="van-card__price-integer">2</span>.<span class="van-card__price-decimal">00</span></div>
</div>
<div class="van-card__num">x2</div>
</div>
</div>
</div>
<div class="van-card__footer">
<div><button class="van-button van-button--default van-button--mini van-button--round">
<div class="van-button__content"><span class="van-button__text">
按钮
</span></div>
</button> <button class="van-button van-button--default van-button--mini van-button--round">
<div class="van-button__content"><span class="van-button__text">
按钮
</span></div>
</button></div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,117 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-card">
<div class="van-card__header"><a class="van-card__thumb">
<div class="van-image" style="width: 100%; height: 100%;"><img src="https://img.yzcdn.cn/vant/ipad.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
</a>
<div class="van-card__content">
<div>
<div class="van-card__title van-multi-ellipsis--l2">商品名称</div>
<div class="van-card__desc van-ellipsis">描述信息</div>
<!---->
</div>
<div class="van-card__bottom">
<!---->
<div class="van-card__price">
<div><span class="van-card__price-currency">¥</span><span class="van-card__price-integer">2</span>.<span class="van-card__price-decimal">00</span></div>
</div>
<!---->
<div class="van-card__num">x2</div>
<!---->
</div>
</div>
</div>
<!---->
</div>
</div>
<div>
<div class="van-card">
<div class="van-card__header"><a class="van-card__thumb">
<div class="van-image" style="width: 100%; height: 100%;"><img src="https://img.yzcdn.cn/vant/ipad.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="van-card__tag">
<transition-stub><span class="van-tag van-tag--mark van-tag--danger">标签<!----></span></transition-stub>
</div>
</a>
<div class="van-card__content">
<div>
<div class="van-card__title van-multi-ellipsis--l2">商品名称</div>
<div class="van-card__desc van-ellipsis">描述信息</div>
<!---->
</div>
<div class="van-card__bottom">
<!---->
<div class="van-card__price">
<div><span class="van-card__price-currency">¥</span><span class="van-card__price-integer">2</span>.<span class="van-card__price-decimal">00</span></div>
</div>
<div class="van-card__origin-price">¥ 10.00</div>
<div class="van-card__num">x2</div>
<!---->
</div>
</div>
</div>
<!---->
</div>
</div>
<div>
<div class="van-card">
<div class="van-card__header"><a class="van-card__thumb">
<div class="van-image" style="width: 100%; height: 100%;"><img src="https://img.yzcdn.cn/vant/ipad.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
</a>
<div class="van-card__content">
<div>
<div class="van-card__title van-multi-ellipsis--l2">商品名称</div>
<div class="van-card__desc van-ellipsis">描述信息</div>
<div>
<transition-stub style="margin-right: 5px;"><span class="van-tag van-tag--plain van-tag--danger"> 标签 <!----></span></transition-stub>
<transition-stub><span class="van-tag van-tag--plain van-tag--danger"> 标签 <!----></span></transition-stub>
</div>
</div>
<div class="van-card__bottom">
<!---->
<div class="van-card__price">
<div><span class="van-card__price-currency">¥</span><span class="van-card__price-integer">2</span>.<span class="van-card__price-decimal">00</span></div>
</div>
<!---->
<div class="van-card__num">x2</div>
<!---->
</div>
</div>
</div>
<div class="van-card__footer">
<div><button type="button" class="van-button van-button--default van-button--mini van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">按钮</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--default van-button--mini van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">按钮</span>
<!---->
</div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -1,110 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell">
<div class="van-cell__title"><span>单元格</span></div>
<div class="van-cell__value"><span>内容</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>单元格</span>
<div class="van-cell__label">描述信息</div>
</div>
<div class="van-cell__value"><span>内容</span></div>
</div>
</div>
</div>
<div>
<div class="van-cell van-cell--large">
<div class="van-cell__title"><span>单元格</span></div>
<div class="van-cell__value"><span>内容</span></div>
</div>
<div class="van-cell van-cell--large">
<div class="van-cell__title"><span>单元格</span>
<div class="van-cell__label">描述信息</div>
</div>
<div class="van-cell__value"><span>内容</span></div>
</div>
</div>
<div>
<div class="van-cell"><i class="van-icon van-icon-location-o van-cell__left-icon">
<!----></i>
<div class="van-cell__title"><span>单元格</span></div>
<div class="van-cell__value"><span>内容</span></div>
</div>
</div>
<div>
<div class="van-cell">
<div class="van-cell__value van-cell__value--alone"><span>内容</span></div>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>单元格</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>单元格</span></div>
<div class="van-cell__value"><span>内容</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>单元格</span></div>
<div class="van-cell__value"><span>内容</span></div><i class="van-icon van-icon-arrow-down van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>URL 跳转</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>路由跳转</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div>
<div class="van-cell-group__title">分组 1</div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell">
<div class="van-cell__title"><span>单元格</span></div>
<div class="van-cell__value"><span>内容</span></div>
</div>
</div>
</div>
<div>
<div class="van-cell-group__title">分组 2</div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell">
<div class="van-cell__title"><span>单元格</span></div>
<div class="van-cell__value"><span>内容</span></div>
</div>
</div>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span class="custom-title">单元格</span> <span class="van-tag van-tag--danger">标签</span></div>
<div class="van-cell__value"><span>内容</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div class="van-cell"><i class="van-icon van-icon-shop-o van-cell__left-icon">
<!----></i>
<div class="van-cell__title"><span>单元格</span></div><i class="search-icon van-icon van-icon-search">
<!----></i>
</div>
</div>
<div>
<div class="van-cell van-cell--center">
<div class="van-cell__title"><span>单元格</span>
<div class="van-cell__label">描述信息</div>
</div>
<div class="van-cell__value"><span>内容</span></div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,191 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>单元格</span>
<div class="van-cell__label">描述信息</div>
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
</div>
</div>
<div>
<div class="van-cell van-cell--large">
<!---->
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
<div class="van-cell van-cell--large">
<!---->
<div class="van-cell__title"><span>单元格</span>
<div class="van-cell__label">描述信息</div>
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell"><i class="van-badge__wrapper van-icon van-icon-location-o van-cell__left-icon">
<!---->
<!---->
<!----></i>
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone"><span>内容</span></div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div><i class="van-badge__wrapper van-icon van-icon-arrow-down van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>URL 跳转</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>路由跳转</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell-group__title">分组 1</div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
</div>
<div class="van-cell-group__title">分组 2</div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span class="custom-title">单元格</span>
<transition-stub><span class="van-tag van-tag--danger">标签<!----></span></transition-stub>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell"><i class="van-badge__wrapper van-icon van-icon-shop-o van-cell__left-icon">
<!---->
<!---->
<!----></i>
<div class="van-cell__title"><span>单元格</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-search search-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--center">
<!---->
<div class="van-cell__title"><span>单元格</span>
<div class="van-cell__label">描述信息</div>
</div>
<div class="van-cell__value"><span>内容</span></div>
<!---->
<!---->
</div>
</div>
`;

View File

@ -1,150 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框</span>
</div>
</div>
<div>
<div role="checkbox" tabindex="-1" aria-checked="false" class="van-checkbox van-checkbox--disabled">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label van-checkbox__label--disabled">
复选框
</span>
</div>
<div role="checkbox" tabindex="-1" aria-checked="true" class="van-checkbox van-checkbox--disabled">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled van-checkbox__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label van-checkbox__label--disabled">
复选框
</span>
</div>
</div>
<div>
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--square van-checkbox__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
自定义颜色
</span>
</div>
</div>
<div>
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-icon van-icon-success" style="border-color: #07c160; background-color: rgb(7, 193, 96);">
<!----></i></div><span class="van-checkbox__label">
自定义颜色
</span>
</div>
</div>
<div>
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked" style="font-size: 24px;"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
自定义大小
</span>
</div>
</div>
<div>
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><img src="https://img.yzcdn.cn/vant/user-active.png"></div><span class="van-checkbox__label">
自定义图标
</span>
</div>
</div>
<div>
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox van-checkbox--label-disabled">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
复选框
</span>
</div>
</div>
<div>
<div class="van-checkbox-group">
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" tabindex="0" aria-checked="true" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
</div>
</div>
<div>
<div class="van-checkbox-group van-checkbox-group--horizontal">
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox van-checkbox--horizontal">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox van-checkbox--horizontal">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
</div>
</div>
<div>
<div class="van-checkbox-group">
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 c</span>
</div>
</div>
</div>
<div>
<div class="van-checkbox-group">
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">复选框 c</span>
</div>
</div>
<div class="demo-checkbox-buttons"><button class="van-button van-button--primary van-button--normal">
<div class="van-button__content"><span class="van-button__text">
全选
</span></div>
</button> <button class="van-button van-button--info van-button--normal">
<div class="van-button__content"><span class="van-button__text">
反选
</span></div>
</button></div>
</div>
<div>
<div class="van-checkbox-group">
<div class="van-cell-group van-hairline--top-bottom">
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>复选框 a</span></div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div>
</div>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>复选框 b</span></div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div>
</div>
</div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,186 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框</span>
</div>
</div>
<div>
<div role="checkbox" class="van-checkbox van-checkbox--disabled" tabindex="-1" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label van-checkbox__label--disabled">复选框</span>
</div>
<div role="checkbox" class="van-checkbox van-checkbox--disabled" tabindex="-1" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled van-checkbox__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label van-checkbox__label--disabled">复选框</span>
</div>
</div>
<div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--square van-checkbox__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">自定义颜色</span>
</div>
</div>
<div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success" style="border-color: #07c160; background-color: rgb(7, 193, 96);">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">自定义颜色</span>
</div>
</div>
<div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked" style="font-size: 24px;"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">自定义大小</span>
</div>
</div>
<div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><img src="https://img.yzcdn.cn/vant/user-active.png"></div><span class="van-checkbox__label">自定义图标 </span>
</div>
</div>
<div>
<div role="checkbox" class="van-checkbox van-checkbox--label-disabled" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框</span>
</div>
</div>
<div>
<div class="van-checkbox-group">
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="true" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
</div>
</div>
<div>
<div class="van-checkbox-group van-checkbox-group--horizontal">
<div role="checkbox" class="van-checkbox van-checkbox--horizontal" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" class="van-checkbox van-checkbox--horizontal" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
</div>
</div>
<div>
<div class="van-checkbox-group">
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 c</span>
</div>
</div>
</div>
<div>
<div class="van-checkbox-group">
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 a</span>
</div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 b</span>
</div>
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 c</span>
</div>
</div>
<div class="demo-checkbox-buttons"><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">全选</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--primary van-button--normal">
<div class="van-button__content">
<!----><span class="van-button__text">反选</span>
<!---->
</div>
</button></div>
</div>
<div>
<div class="van-checkbox-group">
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>复选框 a</span>
<!---->
</div>
<!---->
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>复选框 b</span>
<!---->
</div>
<!---->
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
</div>
</div>
</div>
</div>
`;

View File

@ -1,57 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1040 1040">
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" stroke="#1989fa" class="van-circle__layer" style="stroke: #1989fa; stroke-width: 41px; stroke-dasharray: 2198px 3140px;"></path>
</svg>
<div class="van-circle__text">70%</div>
</div>
</div>
<div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1060 1060">
<path d="M 530 530 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 60px;"></path>
<path d="M 530 530 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" stroke="#1989fa" class="van-circle__layer" style="stroke: #1989fa; stroke-width: 61px; stroke-dasharray: 2198px 3140px;"></path>
</svg>
<div class="van-circle__text">宽度定制</div>
</div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1040 1040">
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" class="van-circle__hover" style="fill: none; stroke: #ebedf0; stroke-width: 40px;"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" stroke="#ee0a24" class="van-circle__layer" style="stroke: #ee0a24; stroke-width: 41px; stroke-dasharray: 2198px 3140px;"></path>
</svg>
<div class="van-circle__text">颜色定制</div>
</div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1040 1040">
<defs>
<linearGradient id="van-circle-gradient-3" x1="100%" y1="0%" x2="0%" y2="0%">
<stop offset="0%" stop-color="#3fecff"></stop>
<stop offset="100%" stop-color="#6149f6"></stop>
</linearGradient>
</defs>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" stroke="url(#van-circle-gradient-3)" class="van-circle__layer" style="stroke: [object Object]; stroke-width: 41px; stroke-dasharray: 2198px 3140px;"></path>
</svg>
<div class="van-circle__text">渐变色</div>
</div>
<div class="van-circle" style="width: 100px; height: 100px; margin-top: 15px;"><svg viewBox="0 0 1040 1040">
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000" class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000" stroke="#07c160" class="van-circle__layer" style="stroke: #07c160; stroke-width: 41px; stroke-dasharray: 2198px 3140px;"></path>
</svg>
<div class="van-circle__text">逆时针</div>
</div>
<div class="van-circle" style="width: 120px; height: 120px; margin-top: 15px;"><svg viewBox="0 0 1040 1040">
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000" class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000" stroke="#7232dd" class="van-circle__layer" style="stroke: #7232dd; stroke-width: 41px; stroke-dasharray: 2198px 3140px;"></path>
</svg>
<div class="van-circle__text">大小定制</div>
</div>
</div>
<div style="margin-top: 15px;"><button class="van-button van-button--primary van-button--small">
<div class="van-button__content"><span class="van-button__text">增加</span></div>
</button> <button class="van-button van-button--danger van-button--small">
<div class="van-button__content"><span class="van-button__text">减少</span></div>
</button></div>
</div>
`;

View File

@ -0,0 +1,66 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1040 1040">
<!---->
<path class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;" d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" style="stroke: #1989fa; stroke-width: 41px; stroke-dasharray: 2198px 3140px;" class="van-circle__layer" stroke="#1989fa"></path>
</svg>
<div class="van-circle__text">70%</div>
</div>
</div>
<div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1060 1060">
<!---->
<path class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 60px;" d="M 530 530 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000"></path>
<path d="M 530 530 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" style="stroke: #1989fa; stroke-width: 61px; stroke-dasharray: 2198px 3140px;" class="van-circle__layer" stroke="#1989fa"></path>
</svg>
<div class="van-circle__text">宽度定制</div>
</div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1040 1040">
<!---->
<path class="van-circle__hover" style="fill: none; stroke: #ebedf0; stroke-width: 40px;" d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" style="stroke: #ee0a24; stroke-width: 41px; stroke-dasharray: 2198px 3140px;" class="van-circle__layer" stroke="#ee0a24"></path>
</svg>
<div class="van-circle__text">颜色定制</div>
</div>
<div class="van-circle" style="width: 100px; height: 100px;"><svg viewBox="0 0 1040 1040">
<defs>
<linearGradient id="van-circle-3" x1="100%" y1="0%" x2="0%" y2="0%">
<stop offset="0%" stop-color="#3fecff"></stop>
<stop offset="100%" stop-color="#6149f6"></stop>
</linearGradient>
</defs>
<path class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;" d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 1 0, 1000 a 500, 500 0 1, 1 0, -1000" style="stroke: [object Object]; stroke-width: 41px; stroke-dasharray: 2198px 3140px;" class="van-circle__layer" stroke="url(#van-circle-3)"></path>
</svg>
<div class="van-circle__text">渐变色</div>
</div>
<div class="van-circle" style="width: 100px; height: 100px; margin-top: 15px;"><svg viewBox="0 0 1040 1040">
<!---->
<path class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;" d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000" style="stroke: #07c160; stroke-width: 41px; stroke-dasharray: 2198px 3140px;" class="van-circle__layer" stroke="#07c160"></path>
</svg>
<div class="van-circle__text">逆时针</div>
</div>
<div class="van-circle" style="width: 120px; height: 120px; margin-top: 15px;"><svg viewBox="0 0 1040 1040">
<!---->
<path class="van-circle__hover" style="fill: none; stroke: #fff; stroke-width: 40px;" d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000"></path>
<path d="M 520 520 m 0, -500 a 500, 500 0 1, 0 0, 1000 a 500, 500 0 1, 0 0, -1000" style="stroke: #7232dd; stroke-width: 41px; stroke-dasharray: 2198px 3140px;" class="van-circle__layer" stroke="#7232dd"></path>
</svg>
<div class="van-circle__text">大小定制</div>
</div>
</div>
<div style="margin-top: 15px;"><button type="button" class="van-button van-button--primary van-button--small">
<div class="van-button__content">
<!----><span class="van-button__text">增加</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--danger van-button--small">
<div class="van-button__content">
<!----><span class="van-button__text">减少</span>
<!---->
</div>
</button></div>
`;

View File

@ -1,58 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-row">
<div class="van-col van-col--8">span: 8</div>
<div class="van-col van-col--8">span: 8</div>
<div class="van-col van-col--8">span: 8</div>
</div>
<div class="van-row">
<div class="van-col van-col--4">span: 4</div>
<div class="van-col van-col--10 van-col--offset-4">
offset: 4, span: 10
</div>
</div>
<div class="van-row">
<div class="van-col van-col--12 van-col--offset-12">
offset: 12, span: 12
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 13.333333333333334px;">span: 8</div>
<div class="van-col van-col--8" style="padding-left: 6.666666666666666px; padding-right: 6.666666666666668px;">span: 8</div>
<div class="van-col van-col--8" style="padding-left: 13.333333333333332px;">span: 8</div>
</div>
</div>
<div>
<div class="van-row van-row--flex">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
<div class="van-row van-row--flex van-row--justify-center">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
<div class="van-row van-row--flex van-row--justify-end">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
<div class="van-row van-row--flex van-row--justify-space-between">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
<div class="van-row van-row--flex van-row--justify-space-around">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,47 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-row">
<div class="van-col van-col--8">span: 8</div>
<div class="van-col van-col--8">span: 8</div>
<div class="van-col van-col--8">span: 8</div>
</div>
<div class="van-row">
<div class="van-col van-col--4">span: 4</div>
<div class="van-col van-col--10 van-col--offset-4"> offset: 4, span: 10 </div>
</div>
<div class="van-row">
<div class="van-col van-col--12 van-col--offset-12"> offset: 12, span: 12 </div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 13.333333333333334px;">span: 8</div>
<div style="padding-left: 6.666666666666666px; padding-right: 6.666666666666668px;" class="van-col van-col--8">span: 8</div>
<div style="padding-left: 13.333333333333332px;" class="van-col van-col--8">span: 8</div>
</div>
</div>
<div>
<div class="van-row van-row--justify-center">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
<div class="van-row van-row--justify-end">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
<div class="van-row van-row--justify-space-between">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
<div class="van-row van-row--justify-space-around">
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
<div class="van-col van-col--6">span: 6</div>
</div>
</div>
`;

View File

@ -1,102 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div role="button" tabindex="0" aria-expanded="true" class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--expanded">
<div class="van-cell__title"><span>标题1</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div class="van-collapse-item__wrapper">
<div class="van-collapse-item__content">
代码是写出来给人看的,附带能在机器上运行
</div>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div role="button" tabindex="0" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title">
<div class="van-cell__title"><span>标题2</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div role="button" tabindex="0" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title">
<div class="van-cell__title"><span>标题3</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
</div>
</div>
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div role="button" tabindex="0" aria-expanded="true" class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--expanded">
<div class="van-cell__title"><span>标题1</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div class="van-collapse-item__wrapper">
<div class="van-collapse-item__content">
代码是写出来给人看的,附带能在机器上运行
</div>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div role="button" tabindex="0" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title">
<div class="van-cell__title"><span>标题2</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div role="button" tabindex="0" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title">
<div class="van-cell__title"><span>标题3</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
</div>
</div>
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div role="button" tabindex="0" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title">
<div class="van-cell__title"><span>标题1</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div role="button" tabindex="-1" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--disabled">
<div class="van-cell__title"><span>标题2</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div role="button" tabindex="-1" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--disabled">
<div class="van-cell__title"><span>标题3</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
</div>
</div>
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div role="button" tabindex="0" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title">
<div class="van-cell__title">
标题1<i class="van-icon van-icon-question-o">
<!----></i></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div role="button" tabindex="0" aria-expanded="false" class="van-cell van-cell--clickable van-collapse-item__title"><i class="van-icon van-icon-shop-o van-cell__left-icon">
<!----></i>
<div class="van-cell__title"><span>标题2</span></div>
<div class="van-cell__value"><span>内容</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,183 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--expanded" role="button" tabindex="0" aria-expanded="true" disabled="false">
<!---->
<div class="van-cell__title"><span>标题1</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-collapse-item__wrapper">
<div class="van-collapse-item__content">代码是写出来给人看的,附带能在机器上运行</div>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div class="van-cell van-cell--clickable van-collapse-item__title" role="button" tabindex="0" aria-expanded="false" disabled="false">
<!---->
<div class="van-cell__title"><span>标题2</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
<div class="van-collapse-item van-collapse-item--border">
<div class="van-cell van-cell--clickable van-collapse-item__title" role="button" tabindex="0" aria-expanded="false" disabled="false">
<!---->
<div class="van-cell__title"><span>标题3</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
</div>
</div>
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--expanded" role="button" tabindex="0" aria-expanded="true" disabled="false">
<!---->
<div class="van-cell__title"><span>标题1</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-collapse-item__wrapper">
<div class="van-collapse-item__content">代码是写出来给人看的,附带能在机器上运行</div>
</div>
</div>
<div class="van-collapse-item van-collapse-item--border">
<div class="van-cell van-cell--clickable van-collapse-item__title" role="button" tabindex="0" aria-expanded="false" disabled="false">
<!---->
<div class="van-cell__title"><span>标题2</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
<div class="van-collapse-item van-collapse-item--border">
<div class="van-cell van-cell--clickable van-collapse-item__title" role="button" tabindex="0" aria-expanded="false" disabled="false">
<!---->
<div class="van-cell__title"><span>标题3</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
</div>
</div>
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div class="van-cell van-cell--clickable van-collapse-item__title" role="button" tabindex="0" aria-expanded="false" disabled="false">
<!---->
<div class="van-cell__title"><span>标题1</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
<div class="van-collapse-item van-collapse-item--border">
<div class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--disabled" role="button" tabindex="-1" aria-expanded="false" disabled="true">
<!---->
<div class="van-cell__title"><span>标题2</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
<div class="van-collapse-item van-collapse-item--border">
<div class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--disabled" role="button" tabindex="-1" aria-expanded="false" disabled="true">
<!---->
<div class="van-cell__title"><span>标题3</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
</div>
</div>
<div>
<div class="van-collapse van-hairline--top-bottom">
<div class="van-collapse-item">
<div class="van-cell van-cell--clickable van-collapse-item__title" role="button" tabindex="0" aria-expanded="false" disabled="false">
<!---->
<div class="van-cell__title">标题1<i class="van-badge__wrapper van-icon van-icon-question-o">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
<div class="van-collapse-item van-collapse-item--border">
<div class="van-cell van-cell--clickable van-collapse-item__title" role="button" tabindex="0" aria-expanded="false" disabled="false"><i class="van-badge__wrapper van-icon van-icon-shop-o van-cell__left-icon">
<!---->
<!---->
<!----></i>
<div class="van-cell__title"><span>标题2</span>
<!---->
</div>
<div class="van-cell__value"><span>内容</span></div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
</div>
</div>
</div>
`;

View File

@ -1,32 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-cell--center van-cell--borderless van-contact-card van-contact-card--add"><i class="van-icon van-icon-add-square van-cell__left-icon">
<!----></i>
<div class="van-cell__value van-cell__value--alone van-contact-card__value">添加联系人</div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-cell--center van-cell--borderless van-contact-card van-contact-card--edit"><i class="van-icon van-icon-contact van-cell__left-icon">
<!----></i>
<div class="van-cell__value van-cell__value--alone van-contact-card__value">
<div>张三:张三</div>
<div>电话13000000000</div>
</div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div class="van-cell van-cell--center van-cell--borderless van-contact-card van-contact-card--edit"><i class="van-icon van-icon-contact van-cell__left-icon">
<!----></i>
<div class="van-cell__value van-cell__value--alone van-contact-card__value">
<div>张三:张三</div>
<div>电话13000000000</div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,47 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell van-cell--center van-cell--clickable van-cell--borderless van-contact-card van-contact-card--add" role="button" tabindex="0"><i class="van-badge__wrapper van-icon van-icon-add-square van-cell__left-icon">
<!---->
<!---->
<!----></i>
<!---->
<div class="van-cell__value van-cell__value--alone van-contact-card__value">添加联系人</div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--center van-cell--clickable van-cell--borderless van-contact-card van-contact-card--edit" role="button" tabindex="0"><i class="van-badge__wrapper van-icon van-icon-contact van-cell__left-icon">
<!---->
<!---->
<!----></i>
<!---->
<div class="van-cell__value van-cell__value--alone van-contact-card__value">
<div>张三:张三</div>
<div>电话13000000000</div>
</div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--center van-cell--borderless van-contact-card van-contact-card--edit"><i class="van-badge__wrapper van-icon van-icon-contact van-cell__left-icon">
<!---->
<!---->
<!----></i>
<!---->
<div class="van-cell__value van-cell__value--alone van-contact-card__value">
<div>张三:张三</div>
<div>电话13000000000</div>
</div>
<!---->
<!---->
</div>
</div>
`;

View File

@ -1,35 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-contact-edit">
<div class="van-contact-edit__fields">
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>姓名</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="请填写姓名" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>电话</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" placeholder="请填写电话" class="van-field__control"></div>
</div>
</div>
</div>
<div class="van-cell van-cell--borderless van-contact-edit__switch-cell">
<div class="van-cell__title"><span>设为默认联系人</span></div>
<div role="switch" aria-checked="false" class="van-switch" style="font-size: 24px;">
<div class="van-switch__node"></div>
</div>
</div>
<div class="van-contact-edit__buttons"><button class="van-button van-button--danger van-button--normal van-button--block van-button--round">
<div class="van-button__content"><span class="van-button__text">保存</span></div>
</button><button class="van-button van-button--default van-button--normal van-button--block van-button--round">
<div class="van-button__content"><span class="van-button__text">删除</span></div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,70 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div>
<div class="van-contact-edit">
<div class="van-contact-edit__fields">
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>姓名</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="请填写姓名">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>电话</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" class="van-field__control" placeholder="请填写电话">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div class="van-cell van-cell--borderless van-contact-edit__switch-cell">
<!---->
<div class="van-cell__title"><span>设为默认联系人</span>
<!---->
</div>
<!---->
<div role="switch" class="van-switch" style="font-size: 24px;" aria-checked="false">
<div class="van-switch__node">
<!---->
</div>
</div>
<!---->
</div>
<div class="van-contact-edit__buttons"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">保存</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--default van-button--normal van-button--block van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">删除</span>
<!---->
</div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -1,31 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-contact-list">
<div role="radiogroup" class="van-radio-group van-contact-list__group">
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-cell--center van-contact-list__item"><i class="van-icon van-icon-edit van-contact-list__edit">
<!----></i>
<div class="van-cell__value van-cell__value--alone van-contact-list__item-value">张三13000000000<span class="van-tag van-tag--round van-tag--danger van-contact-list__item-tag">默认</span></div>
<div role="radio" tabindex="0" aria-checked="true" class="van-radio">
<div class="van-radio__icon van-radio__icon--round van-radio__icon--checked" style="font-size: 16px;"><i class="van-icon van-icon-success" style="border-color: #ee0a24; background-color: rgb(238, 10, 36);">
<!----></i></div>
</div>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-cell--center van-contact-list__item"><i class="van-icon van-icon-edit van-contact-list__edit">
<!----></i>
<div class="van-cell__value van-cell__value--alone van-contact-list__item-value">李四1310000000</div>
<div role="radio" tabindex="-1" aria-checked="false" class="van-radio">
<div class="van-radio__icon van-radio__icon--round" style="font-size: 16px;"><i class="van-icon van-icon-success">
<!----></i></div>
</div>
</div>
</div>
<div class="van-contact-list__bottom"><button class="van-button van-button--danger van-button--normal van-button--block van-button--round van-contact-list__add">
<div class="van-button__content"><span class="van-button__text">新建联系人</span></div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,49 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div>
<div class="van-contact-list">
<div class="van-radio-group van-contact-list__group" role="radiogroup">
<div class="van-cell van-cell--center van-cell--clickable van-contact-list__item" role="button" tabindex="0"><i class="van-badge__wrapper van-icon van-icon-edit van-contact-list__edit">
<!---->
<!---->
<!----></i>
<!---->
<div class="van-cell__value van-cell__value--alone van-contact-list__item-value">张三13000000000<transition-stub class="van-contact-list__item-tag"><span class="van-tag van-tag--round van-tag--danger">默认<!----></span></transition-stub>
</div>
<div role="radio" class="van-radio" tabindex="0" aria-checked="true">
<div class="van-radio__icon van-radio__icon--round van-radio__icon--checked" style="font-size: 16px;"><i class="van-badge__wrapper van-icon van-icon-success" style="border-color: #ee0a24; background-color: rgb(238, 10, 36);">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
</div>
<div class="van-cell van-cell--center van-cell--clickable van-contact-list__item" role="button" tabindex="0"><i class="van-badge__wrapper van-icon van-icon-edit van-contact-list__edit">
<!---->
<!---->
<!----></i>
<!---->
<div class="van-cell__value van-cell__value--alone van-contact-list__item-value">李四1310000000</div>
<div role="radio" class="van-radio" tabindex="0" aria-checked="false">
<div class="van-radio__icon van-radio__icon--round" style="font-size: 16px;"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
</div>
</div>
<div class="van-contact-list__bottom"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round van-contact-list__add">
<div class="van-button__content">
<!----><span class="van-button__text">新建联系人</span>
<!---->
</div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -1,14 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-coupon-cell">
<div class="van-cell__title"><span>优惠券</span></div>
<div class="van-cell__value van-coupon-cell__value"><span>2张可用</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<!---->
</div>
</div>
`;

View File

@ -0,0 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell van-cell--clickable van-coupon-cell" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>优惠券</span>
<!---->
</div>
<div class="van-cell__value van-coupon-cell__value"><span>2张可用</span></div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
`;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,51 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>提示弹窗</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>提示弹窗(无标题)</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>确认弹窗</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>提示弹窗</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>提示弹窗(无标题)</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>异步关闭</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>组件调用</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="dialog" aria-labelledby="标题" class="van-dialog" style="display: none;" name="van-dialog-bounce">
<div class="van-dialog__header">标题</div>
<div class="van-dialog__content"><img src="https://img.yzcdn.cn/vant/apple-3.jpg"></div>
<div class="van-hairline--top van-dialog__footer"><button class="van-button van-button--default van-button--large van-dialog__cancel">
<div class="van-button__content"><span class="van-button__text">取消</span></div>
</button><button class="van-button van-button--default van-button--large van-dialog__confirm van-hairline--left">
<div class="van-button__content"><span class="van-button__text">确认弹窗</span></div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,110 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>提示弹窗</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>提示弹窗(无标题)</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>确认弹窗</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>提示弹窗</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>提示弹窗(无标题)</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>异步关闭</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>组件调用</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<transition-stub>
<!---->
</transition-stub>
<transition-stub>
<div class="van-popup van-popup--center van-dialog" role="dialog" aria-labelledby="标题" style="display: none;">
<div class="van-dialog__header">标题</div>
<div class="van-dialog__content"><img src="https://img.yzcdn.cn/vant/apple-3.jpg"></div>
<div class="van-hairline--top van-dialog__footer"><button type="button" class="van-button van-button--default van-button--large van-dialog__cancel">
<div class="van-button__content">
<!----><span class="van-button__text">取消</span>
<!---->
</div>
</button><button type="button" class="van-button van-button--default van-button--large van-dialog__confirm van-hairline--left">
<div class="van-button__content">
<!----><span class="van-button__text">确认弹窗</span>
<!---->
</div>
</button></div>
<!---->
</div>
</transition-stub>
</div>
`;

View File

@ -1,32 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="separator" class="van-divider van-divider--hairline"></div>
</div>
<div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-center">
文本
</div>
</div>
<div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-left">
文本
</div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-right">
文本
</div>
</div>
<div>
<div role="separator" class="van-divider van-divider--dashed van-divider--content-center">
文本
</div>
</div>
<div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-center" style="border-color: #1989fa; color: rgb(25, 137, 250); padding: 0px 16px;">
文本
</div>
</div>
</div>
`;

View File

@ -0,0 +1,22 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div role="separator" class="van-divider van-divider--hairline">
<!---->
</div>
</div>
<div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-center">文本</div>
</div>
<div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-left">文本</div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-right">文本</div>
</div>
<div>
<div role="separator" class="van-divider van-divider--dashed van-divider--content-center">文本</div>
</div>
<div>
<div role="separator" class="van-divider van-divider--hairline van-divider--content-center" style="border-color: #1989fa; color: rgb(25, 137, 250); padding: 0px 16px;">文本</div>
</div>
`;

View File

@ -1,96 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">筛选</div></span></div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title van-dropdown-menu__title--down"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title van-dropdown-menu__title--down"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--up" style="bottom: 0px; display: none;">
<!---->
</div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--up" style="bottom: 0px; display: none;">
<!---->
</div>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="-1" class="van-dropdown-menu__item van-dropdown-menu__item--disabled"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="-1" class="van-dropdown-menu__item van-dropdown-menu__item--disabled"><span class="van-dropdown-menu__title"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
<div>
<div class="van-dropdown-item van-dropdown-item--down" style="top: 0px; display: none;">
<!---->
</div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,124 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">筛选</div></span></div>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title van-dropdown-menu__title--down"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="0" class="van-dropdown-menu__item"><span class="van-dropdown-menu__title van-dropdown-menu__title--down"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div style="bottom: 0px; display: none;" class="van-dropdown-item van-dropdown-item--up">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
<div style="bottom: 0px; display: none;" class="van-dropdown-item van-dropdown-item--up">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
</div>
</div>
<div>
<div class="van-dropdown-menu">
<div class="van-dropdown-menu__bar">
<div role="button" tabindex="-1" class="van-dropdown-menu__item van-dropdown-menu__item--disabled"><span class="van-dropdown-menu__title"><div class="van-ellipsis">全部商品</div></span></div>
<div role="button" tabindex="-1" class="van-dropdown-menu__item van-dropdown-menu__item--disabled"><span class="van-dropdown-menu__title"><div class="van-ellipsis">默认排序</div></span></div>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
<div style="top: 0px; display: none;" class="van-dropdown-item van-dropdown-item--down">
<transition-stub style="position: absolute;">
<!---->
</transition-stub>
<transition-stub>
<!---->
</transition-stub>
</div>
</div>
</div>
`;

View File

@ -1,55 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-empty">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/empty-image-default.png"></div>
<p class="van-empty__description">描述文字</p>
</div>
</div>
<div>
<div class="van-tabs van-tabs--line">
<div class="van-tabs__wrap">
<div role="tablist" class="van-tabs__nav van-tabs__nav--line">
<div role="tab" aria-selected="true" class="van-tab van-tab--active"><span class="van-tab__text van-tab__text--ellipsis">通用错误</span></div>
<div role="tab" class="van-tab"><span class="van-tab__text van-tab__text--ellipsis">网络错误</span></div>
<div role="tab" class="van-tab"><span class="van-tab__text van-tab__text--ellipsis">搜索提示</span></div>
<div class="van-tabs__line" style="transform: translateX(0px) translateX(-50%);"></div>
</div>
</div>
<div class="van-tabs__content">
<div role="tabpanel" class="van-tab__pane" style="">
<div class="van-empty">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/empty-image-error.png"></div>
<p class="van-empty__description">描述文字</p>
</div>
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
</div>
</div>
</div>
<div>
<div class="custom-image van-empty">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/custom-empty-image.png"></div>
<p class="van-empty__description">描述文字</p>
</div>
</div>
<div>
<div class="van-empty">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/empty-image-default.png"></div>
<p class="van-empty__description">描述文字</p>
<div class="van-empty__bottom"><button class="bottom-button van-button van-button--danger van-button--normal van-button--round">
<div class="van-button__content"><span class="van-button__text">
按钮
</span></div>
</button></div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,59 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-empty">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/empty-image-default.png"></div>
<p class="van-empty__description">描述文字</p>
<!---->
</div>
</div>
<div>
<div class="van-tabs van-tabs--line" modelvalue="error">
<div class="van-tabs__wrap">
<div role="tablist" class="van-tabs__nav van-tabs__nav--line">
<!---->
<div role="tab" class="van-tab van-tab--active" aria-selected="true"><span class="van-tab__text van-tab__text--ellipsis">通用错误</span></div>
<div role="tab" class="van-tab" aria-selected="false"><span class="van-tab__text van-tab__text--ellipsis">网络错误</span></div>
<div role="tab" class="van-tab" aria-selected="false"><span class="van-tab__text van-tab__text--ellipsis">搜索提示</span></div>
<div class="van-tabs__line" style="transform: translateX(0px) translateX(-50%);"></div>
<!---->
</div>
</div>
<div class="van-tabs__content">
<div role="tabpanel" class="van-tab__pane" style="">
<div class="van-empty">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/empty-image-error.png"></div>
<p class="van-empty__description">描述文字</p>
<!---->
</div>
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
</div>
</div>
</div>
<div>
<div class="van-empty custom-image">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/custom-empty-image.png"></div>
<p class="van-empty__description">描述文字</p>
<!---->
</div>
</div>
<div>
<div class="van-empty">
<div class="van-empty__image"><img src="https://img.yzcdn.cn/vant/empty-image-default.png"></div>
<p class="van-empty__description">描述文字</p>
<div class="van-empty__bottom"><button type="button" class="van-button van-button--danger van-button--normal van-button--round bottom-button">
<div class="van-button__content">
<!----><span class="van-button__text">按钮</span>
<!---->
</div>
</button></div>
</div>
</div>
`;

View File

@ -1,151 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="请输入文本" class="van-field__control"></div>
</div>
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="请输入文本" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>手机号</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" placeholder="请输入手机号" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>整数</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" inputmode="numeric" placeholder="请输入整数" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>数字</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" inputmode="decimal" placeholder="请输入数字(支持小数)" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>密码</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="password" placeholder="请输入密码" class="van-field__control"></div>
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" readonly="readonly" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field van-field--disabled">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" disabled="disabled" class="van-field__control"></div>
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-field__left-icon"><i class="van-icon van-icon-smile-o">
<!----></i></div>
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="显示图标" class="van-field__control">
<div class="van-field__right-icon"><i class="van-icon van-icon-warning-o">
<!----></i></div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-field__left-icon"><i class="van-icon van-icon-music-o">
<!----></i></div>
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="显示清除图标" class="van-field__control"></div>
</div>
</div>
</div>
<div>
<div class="van-cell van-cell--required van-field van-field--error">
<div class="van-cell__title van-field__label"><span>用户名</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="请输入用户名" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-cell--required van-field">
<div class="van-cell__title van-field__label"><span>手机号</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="请输入手机号" class="van-field__control"></div>
<div class="van-field__error-message">手机号格式错误</div>
</div>
</div>
</div>
<div>
<div class="van-cell van-cell--center van-field">
<div class="van-cell__title van-field__label"><span>短信验证码</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="请输入短信验证码" class="van-field__control">
<div class="van-field__button"><button class="van-button van-button--primary van-button--small">
<div class="van-button__content"><span class="van-button__text">
发送验证码
</span></div>
</button></div>
</div>
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="在输入时执行格式化" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="在失焦时执行格式化" class="van-field__control"></div>
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>留言</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><textarea rows="1" placeholder="请输入留言" class="van-field__control" style="height: auto;"></textarea></div>
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>留言</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><textarea rows="2" placeholder="请输入留言" class="van-field__control" style="height: auto;"></textarea></div>
<div class="van-field__word-limit"><span class="van-field__word-num">0</span>/50</div>
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" placeholder="输入框内容右对齐" class="van-field__control van-field__control--right"></div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,346 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell-group van-hairline--top-bottom">
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="请输入文本">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
</div>
<div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="请输入文本">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>手机号</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" class="van-field__control" placeholder="请输入手机号">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>整数</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="tel" inputmode="numeric" class="van-field__control" placeholder="请输入整数">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>数字</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" inputmode="decimal" class="van-field__control" placeholder="请输入数字(支持小数)">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>密码</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="password" class="van-field__control" placeholder="请输入密码">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" readonly="">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field van-field--disabled">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" disabled="">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-field">
<div class="van-field__left-icon"><i class="van-badge__wrapper van-icon van-icon-smile-o">
<!---->
<!---->
<!----></i></div>
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="显示图标">
<!---->
<div class="van-field__right-icon"><i class="van-badge__wrapper van-icon van-icon-warning-o">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<div class="van-field__left-icon"><i class="van-badge__wrapper van-icon van-icon-music-o">
<!---->
<!---->
<!----></i></div>
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="显示清除图标">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--required van-field van-field--error">
<!---->
<div class="van-cell__title van-field__label"><span>用户名</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="请输入用户名">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-cell--required van-field">
<!---->
<div class="van-cell__title van-field__label"><span>手机号</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="请输入手机号">
<!---->
<!---->
<!---->
</div>
<!---->
<div class="van-field__error-message">手机号格式错误</div>
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--center van-field">
<!---->
<div class="van-cell__title van-field__label"><span>短信验证码</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="请输入短信验证码">
<!---->
<!---->
<div class="van-field__button"><button type="button" class="van-button van-button--primary van-button--small">
<div class="van-button__content">
<!----><span class="van-button__text">发送验证码</span>
<!---->
</div>
</button></div>
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="在输入时执行格式化">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" placeholder="在失焦时执行格式化">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>留言</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><textarea rows="1" class="van-field__control" placeholder="请输入留言" style="height: auto;"></textarea>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>留言</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><textarea rows="2" class="van-field__control" placeholder="请输入留言" style="height: auto;"></textarea>
<!---->
<!---->
<!---->
</div>
<div class="van-field__word-limit"><span class="van-field__word-num">0</span>/50</div>
<!---->
</div>
<!---->
<!---->
</div>
</div>
<div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control van-field__control--right" placeholder="输入框内容右对齐">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
</div>
`;

View File

@ -1,224 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<form class="van-form">
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>用户名</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="username" placeholder="用户名" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>密码</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="password" name="password" placeholder="密码" class="van-field__control"></div>
</div>
</div>
<div style="margin: 16px 16px 0px;"><button type="submit" class="van-button van-button--info van-button--normal van-button--block van-button--round">
<div class="van-button__content"><span class="van-button__text">
提交
</span></div>
</button></div>
</form>
</div>
<div>
<form class="van-form">
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="pattern" placeholder="正则校验" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="validator" placeholder="函数校验" class="van-field__control"></div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文本</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="asyncValidator" placeholder="异步函数校验" class="van-field__control"></div>
</div>
</div>
<div style="margin: 16px 16px 0px;"><button type="submit" class="van-button van-button--info van-button--normal van-button--block van-button--round">
<div class="van-button__content"><span class="van-button__text">
提交
</span></div>
</button></div>
</form>
</div>
<div>
<form class="van-form">
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>开关</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div role="switch" aria-checked="false" class="van-switch" style="font-size: 20px;">
<div class="van-switch__node"></div>
</div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>复选框</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--square"><i class="van-icon van-icon-success">
<!----></i></div>
</div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>复选框组</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-checkbox-group van-checkbox-group--horizontal">
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox van-checkbox--horizontal">
<div class="van-checkbox__icon van-checkbox__icon--square"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
复选框 1
</span>
</div>
<div role="checkbox" tabindex="0" aria-checked="false" class="van-checkbox van-checkbox--horizontal">
<div class="van-checkbox__icon van-checkbox__icon--square"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
复选框 2
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>单选框</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div role="radiogroup" class="van-radio-group van-radio-group--horizontal">
<div role="radio" tabindex="0" aria-checked="true" class="van-radio van-radio--horizontal">
<div class="van-radio__icon van-radio__icon--round van-radio__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-radio__label">单选框 1</span>
</div>
<div role="radio" tabindex="-1" aria-checked="false" class="van-radio van-radio--horizontal">
<div class="van-radio__icon van-radio__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-radio__label">单选框 2</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>步进器</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-stepper"><button type="button" class="van-stepper__minus van-stepper__minus--disabled"></button><input type="text" role="spinbutton" inputmode="decimal" aria-valuemax="Infinity" aria-valuemin="1" aria-valuenow="1" class="van-stepper__input"><button type="button" class="van-stepper__plus"></button></div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>评分</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div tabindex="0" role="radiogroup" class="van-rate">
<div role="radio" tabindex="0" aria-setsize="5" aria-posinset="1" aria-checked="true" class="van-rate__item"><i data-score="1" class="van-icon van-icon-star van-rate__icon van-rate__icon--full">
<!----></i></div>
<div role="radio" tabindex="0" aria-setsize="5" aria-posinset="2" aria-checked="true" class="van-rate__item"><i data-score="2" class="van-icon van-icon-star van-rate__icon van-rate__icon--full">
<!----></i></div>
<div role="radio" tabindex="0" aria-setsize="5" aria-posinset="3" aria-checked="true" class="van-rate__item"><i data-score="3" class="van-icon van-icon-star van-rate__icon van-rate__icon--full">
<!----></i></div>
<div role="radio" tabindex="0" aria-setsize="5" aria-posinset="4" aria-checked="false" class="van-rate__item"><i data-score="4" class="van-icon van-icon-star-o van-rate__icon">
<!----></i></div>
<div role="radio" tabindex="0" aria-setsize="5" aria-posinset="5" aria-checked="false" class="van-rate__item"><i data-score="5" class="van-icon van-icon-star-o van-rate__icon">
<!----></i></div>
</div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>滑块</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-slider">
<div class="van-slider__bar" style="width: 50%;">
<div role="slider" tabindex="0" aria-valuemin="0" aria-valuenow="50" aria-valuemax="100" aria-orientation="horizontal" class="van-slider__button-wrapper">
<div class="van-slider__button"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="van-cell van-field">
<div class="van-cell__title van-field__label"><span>文件上传</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-uploader">
<div class="van-uploader__wrapper">
<div class="van-uploader__preview">
<div class="van-image van-uploader__preview-image"><img src="https://img.yzcdn.cn/vant/leaf.jpg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="van-uploader__preview-delete"><i class="van-icon van-icon-cross van-uploader__preview-delete-icon">
<!----></i></div>
</div>
<div class="van-uploader__upload"><i class="van-icon van-icon-photograph van-uploader__upload-icon">
<!----></i><input type="file" accept="image/*" class="van-uploader__input"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-field">
<div class="van-cell__title van-field__label"><span>选择器</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="picker" readonly="readonly" placeholder="点击选择城市" class="van-field__control"></div>
</div>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-field">
<div class="van-cell__title van-field__label"><span>时间选择</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="datetimePicker" readonly="readonly" placeholder="点击选择时间" class="van-field__control"></div>
</div>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-field">
<div class="van-cell__title van-field__label"><span>地区选择</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="area" readonly="readonly" placeholder="点击选择省市区" class="van-field__control"></div>
</div>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-field">
<div class="van-cell__title van-field__label"><span>日历</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="calendar" readonly="readonly" placeholder="点击选择日期" class="van-field__control"></div>
</div>
</div>
<div style="margin: 16px 16px 0px;"><button type="submit" class="van-button van-button--info van-button--normal van-button--block van-button--round">
<div class="van-button__content"><span class="van-button__text">
提交
</span></div>
</button></div>
</form>
</div>
</div>
`;

View File

@ -0,0 +1,450 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<form class="van-form">
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>用户名</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="username" class="van-field__control" placeholder="用户名">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>密码</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="password" name="password" class="van-field__control" placeholder="密码">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div style="margin: 16px 16px 0px;"><button type="submit" class="van-button van-button--primary van-button--normal van-button--block van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">提交</span>
<!---->
</div>
</button></div>
</form>
</div>
<div>
<form class="van-form">
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="pattern" class="van-field__control" placeholder="正则校验">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="validator" class="van-field__control" placeholder="函数校验">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文本</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="asyncValidator" class="van-field__control" placeholder="异步函数校验">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div style="margin: 16px 16px 0px;"><button type="submit" class="van-button van-button--primary van-button--normal van-button--block van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">提交</span>
<!---->
</div>
</button></div>
</form>
</div>
<div>
<form class="van-form">
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>开关</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div role="switch" class="van-switch" style="font-size: 20px;" aria-checked="false">
<div class="van-switch__node">
<!---->
</div>
</div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>复选框</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div role="checkbox" class="van-checkbox" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--square"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>复选框组</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-checkbox-group van-checkbox-group--horizontal">
<div role="checkbox" class="van-checkbox van-checkbox--horizontal" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--square"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 1 </span>
</div>
<div role="checkbox" class="van-checkbox van-checkbox--horizontal" tabindex="0" aria-checked="false" bindgroup="true">
<div class="van-checkbox__icon van-checkbox__icon--square"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-checkbox__label">复选框 2 </span>
</div>
</div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>单选框</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-radio-group van-radio-group--horizontal" role="radiogroup">
<div role="radio" class="van-radio van-radio--horizontal" tabindex="0" aria-checked="true">
<div class="van-radio__icon van-radio__icon--round van-radio__icon--checked"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-radio__label">单选框 1</span>
</div>
<div role="radio" class="van-radio van-radio--horizontal" tabindex="0" aria-checked="false">
<div class="van-radio__icon van-radio__icon--round"><i class="van-badge__wrapper van-icon van-icon-success">
<!---->
<!---->
<!----></i></div><span class="van-radio__label">单选框 2</span>
</div>
</div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>步进器</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-stepper"><button type="button" class="van-stepper__minus van-stepper__minus--disabled"></button><input type="text" role="spinbutton" class="van-stepper__input" inputmode="decimal" aria-valuemax="Infinity" aria-valuemin="1" aria-valuenow="1"><button type="button" class="van-stepper__plus"></button></div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>评分</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div role="radiogroup" class="van-rate" tabindex="0">
<div role="radio" class="van-rate__item" tabindex="0" aria-setsize="5" aria-posinset="1" aria-checked="true"><i class="van-badge__wrapper van-icon van-icon-star van-rate__icon van-rate__icon--full" data-score="1">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div role="radio" class="van-rate__item" tabindex="0" aria-setsize="5" aria-posinset="2" aria-checked="true"><i class="van-badge__wrapper van-icon van-icon-star van-rate__icon van-rate__icon--full" data-score="2">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div role="radio" class="van-rate__item" tabindex="0" aria-setsize="5" aria-posinset="3" aria-checked="true"><i class="van-badge__wrapper van-icon van-icon-star van-rate__icon van-rate__icon--full" data-score="3">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div role="radio" class="van-rate__item" tabindex="0" aria-setsize="5" aria-posinset="4" aria-checked="false"><i class="van-badge__wrapper van-icon van-icon-star-o van-rate__icon" data-score="4">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div role="radio" class="van-rate__item" tabindex="0" aria-setsize="5" aria-posinset="5" aria-checked="false"><i class="van-badge__wrapper van-icon van-icon-star-o van-rate__icon" data-score="5">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>滑块</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-slider">
<div class="van-slider__bar" style="width: 50%; left: 0%;">
<div role="slider" class="van-slider__button-wrapper" tabindex="0" aria-valuemin="0" aria-valuenow="50" aria-valuemax="100" aria-orientation="horizontal">
<div class="van-slider__button"></div>
</div>
</div>
</div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-field">
<!---->
<div class="van-cell__title van-field__label"><span>文件上传</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<div class="van-field__control van-field__control--custom">
<div class="van-uploader">
<div class="van-uploader__wrapper">
<div class="van-uploader__preview">
<div class="van-image van-uploader__preview-image"><img src="https://img.yzcdn.cn/vant/leaf.jpg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<!---->
<div class="van-uploader__preview-delete"><i class="van-badge__wrapper van-icon van-icon-cross van-uploader__preview-delete-icon">
<!---->
<!---->
<!----></i></div>
</div>
<div class="van-uploader__upload"><i class="van-badge__wrapper van-icon van-icon-photograph van-uploader__upload-icon">
<!---->
<!---->
<!----></i>
<!----><input type="file" class="van-uploader__input" accept="image/*"></div>
</div>
</div>
</div>
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-cell van-cell--clickable van-field" role="button" tabindex="0">
<!---->
<div class="van-cell__title van-field__label"><span>选择器</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="picker" class="van-field__control" readonly="" placeholder="点击选择城市">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!--teleport start-->
<!--teleport end-->
<div class="van-cell van-cell--clickable van-field" role="button" tabindex="0">
<!---->
<div class="van-cell__title van-field__label"><span>时间选择</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="datetimePicker" class="van-field__control" readonly="" placeholder="点击选择时间">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!--teleport start-->
<!--teleport end-->
<div class="van-cell van-cell--clickable van-field" role="button" tabindex="0">
<!---->
<div class="van-cell__title van-field__label"><span>地区选择</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="area" class="van-field__control" readonly="" placeholder="点击选择省市区">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!--teleport start-->
<!--teleport end-->
<div class="van-cell van-cell--clickable van-field" role="button" tabindex="0">
<!---->
<div class="van-cell__title van-field__label"><span>日历</span>
<!---->
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" name="calendar" class="van-field__control" readonly="" placeholder="点击选择日期">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<!--teleport start-->
<!--teleport end-->
<div style="margin: 16px 16px 0px;"><button type="submit" class="van-button van-button--primary van-button--normal van-button--block van-button--round">
<div class="van-button__content">
<!----><span class="van-button__text">提交</span>
<!---->
</div>
</button></div>
</form>
</div>
`;

View File

@ -1,196 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid">
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center">
<div class="van-image"><img src="https://img.yzcdn.cn/vant/apple-1.jpg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
</div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center">
<div class="van-image"><img src="https://img.yzcdn.cn/vant/apple-2.jpg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
</div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center">
<div class="van-image"><img src="https://img.yzcdn.cn/vant/apple-3.jpg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid" style="padding-left: 10px;">
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--horizontal van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--horizontal van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--horizontal van-grid-item__content--center van-hairline"><i class="van-icon van-icon-photo-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 50%;">
<div role="button" tabindex="0" class="van-grid-item__content van-grid-item__content--center van-grid-item__content--clickable van-hairline"><i class="van-icon van-icon-home-o van-grid-item__icon">
<!----></i><span class="van-grid-item__text">路由跳转</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 50%;">
<div role="button" tabindex="0" class="van-grid-item__content van-grid-item__content--center van-grid-item__content--clickable van-hairline"><i class="van-icon van-icon-search van-grid-item__icon">
<!----></i><span class="van-grid-item__text">URL 跳转</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 50%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-home-o van-grid-item__icon">
<div class="van-badge van-badge--dot"></div>
</i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 50%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-icon van-icon-search van-grid-item__icon">
<div class="van-badge">99+</div>
</i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,271 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid">
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center">
<div class="van-image"><img src="https://img.yzcdn.cn/vant/apple-1.jpg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
</div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center">
<div class="van-image"><img src="https://img.yzcdn.cn/vant/apple-2.jpg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
</div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--center">
<div class="van-image"><img src="https://img.yzcdn.cn/vant/apple-3.jpg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
</div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item van-grid-item--square" style="flex-basis: 25%; padding-top: 25%;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div style="padding-left: 10px;" class="van-grid">
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 25%; padding-right: 10px; margin-top: 10px;">
<div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--surround van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--horizontal van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--horizontal van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 33.333333333333336%;">
<div class="van-grid-item__content van-grid-item__content--horizontal van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 50%;">
<div role="button" class="van-grid-item__content van-grid-item__content--center van-grid-item__content--clickable van-hairline" tabindex="0"><i class="van-badge__wrapper van-icon van-icon-home-o van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">路由跳转</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 50%;">
<div role="button" class="van-grid-item__content van-grid-item__content--center van-grid-item__content--clickable van-hairline" tabindex="0"><i class="van-badge__wrapper van-icon van-icon-search van-grid-item__icon">
<!---->
<!---->
<!----></i><span class="van-grid-item__text">URL 跳转</span></div>
</div>
</div>
</div>
<div>
<div class="van-grid van-hairline--top">
<div class="van-grid-item" style="flex-basis: 50%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-home-o van-grid-item__icon">
<!---->
<!---->
<div class="van-badge van-badge--dot van-badge--fixed">
<!---->
</div>
</i><span class="van-grid-item__text">文字</span></div>
</div>
<div class="van-grid-item" style="flex-basis: 50%;">
<div class="van-grid-item__content van-grid-item__content--center van-hairline"><i class="van-badge__wrapper van-icon van-icon-search van-grid-item__icon">
<!---->
<!---->
<div class="van-badge van-badge--fixed">99+</div>
</i><span class="van-grid-item__text">文字</span></div>
</div>
</div>
</div>
`;

View File

@ -1,129 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-row">
<div class="van-image" style="width: 100px; height: 100px;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 13.333333333333334px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">contain</div>
</div>
<div class="van-col van-col--8" style="padding-left: 6.666666666666666px; padding-right: 6.666666666666668px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">cover</div>
</div>
<div class="van-col van-col--8" style="padding-left: 13.333333333333332px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: fill;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">fill</div>
</div>
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: none;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">none</div>
</div>
<div class="van-col van-col--8" style="padding-left: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: scale-down;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">scale-down</div>
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 13.333333333333334px;">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">contain</div>
</div>
<div class="van-col van-col--8" style="padding-left: 6.666666666666666px; padding-right: 6.666666666666668px;">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">cover</div>
</div>
<div class="van-col van-col--8" style="padding-left: 13.333333333333332px;">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: fill;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">fill</div>
</div>
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: none;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">none</div>
</div>
<div class="van-col van-col--8" style="padding-left: 10px;">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: scale-down;">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">scale-down</div>
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img class="van-image__img">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">默认提示</div>
</div>
<div class="van-col van-col--8" style="padding-left: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img class="van-image__img">
<div class="van-image__loading">
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner" style="width: 20px; height: 20px;"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span></div>
</div>
</div>
<div class="text">自定义提示</div>
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="x" class="van-image__img">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">默认提示</div>
</div>
<div class="van-col van-col--8" style="padding-left: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="x" class="van-image__img">
<div class="van-image__loading"><i class="van-icon van-icon-photo van-image__loading-icon">
<!----></i></div>
</div>
<div class="text">自定义提示</div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,174 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-row">
<div class="van-image" style="width: 100px; height: 100px;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 13.333333333333334px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">contain</div>
</div>
<div style="padding-left: 6.666666666666666px; padding-right: 6.666666666666668px;" class="van-col van-col--8">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">cover</div>
</div>
<div style="padding-left: 13.333333333333332px;" class="van-col van-col--8">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: fill;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">fill</div>
</div>
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: none;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">none</div>
</div>
<div style="padding-left: 10px;" class="van-col van-col--8">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: scale-down;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">scale-down</div>
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 13.333333333333334px;">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: contain;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">contain</div>
</div>
<div style="padding-left: 6.666666666666666px; padding-right: 6.666666666666668px;" class="van-col van-col--8">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: cover;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">cover</div>
</div>
<div style="padding-left: 13.333333333333332px;" class="van-col van-col--8">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: fill;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">fill</div>
</div>
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: none;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">none</div>
</div>
<div style="padding-left: 10px;" class="van-col van-col--8">
<div class="van-image van-image--round" style="width: 100%; height: 27vw;"><img src="https://img.yzcdn.cn/vant/cat.jpeg" class="van-image__img" style="object-fit: scale-down;">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">scale-down</div>
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;">
<!---->
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">默认提示</div>
</div>
<div style="padding-left: 10px;" class="van-col van-col--8">
<div class="van-image" style="width: 100%; height: 27vw;">
<!---->
<div class="van-image__loading">
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner" style="width: 20px; height: 20px;"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
<!---->
</div>
</div>
<!---->
</div>
<div class="text">自定义提示</div>
</div>
</div>
</div>
<div>
<div class="van-row">
<div class="van-col van-col--8" style="padding-right: 10px;">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="x" class="van-image__img">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">默认提示</div>
</div>
<div style="padding-left: 10px;" class="van-col van-col--8">
<div class="van-image" style="width: 100%; height: 27vw;"><img src="x" class="van-image__img">
<div class="van-image__loading"><i class="van-badge__wrapper van-icon van-icon-photo van-image__loading-icon">
<!---->
<!---->
<!----></i></div>
<!---->
</div>
<div class="text">自定义提示</div>
</div>
</div>
</div>
`;

View File

@ -1,389 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div class="van-tabs van-tabs--line">
<div class="van-tabs__wrap">
<div role="tablist" class="van-tabs__nav van-tabs__nav--line">
<div role="tab" aria-selected="true" class="van-tab van-tab--active"><span class="van-tab__text van-tab__text--ellipsis">基础用法</span></div>
<div role="tab" class="van-tab"><span class="van-tab__text van-tab__text--ellipsis">自定义索引列表</span></div>
<div class="van-tabs__line" style="transform: translateX(0px) translateX(-50%);"></div>
</div>
</div>
<div class="van-tabs__content">
<div role="tabpanel" class="van-tab__pane" style="">
<div class="van-index-bar">
<div class="van-index-bar__sidebar"><span data-index="A" class="van-index-bar__index">A</span><span data-index="B" class="van-index-bar__index">B</span><span data-index="C" class="van-index-bar__index">C</span><span data-index="D" class="van-index-bar__index">D</span><span data-index="E" class="van-index-bar__index">E</span><span data-index="F" class="van-index-bar__index">F</span><span data-index="G" class="van-index-bar__index">G</span><span data-index="H" class="van-index-bar__index">H</span><span data-index="I" class="van-index-bar__index">I</span><span data-index="J" class="van-index-bar__index">J</span><span data-index="K" class="van-index-bar__index">K</span><span data-index="L" class="van-index-bar__index">L</span><span data-index="M" class="van-index-bar__index">M</span><span data-index="N" class="van-index-bar__index">N</span><span data-index="O" class="van-index-bar__index">O</span><span data-index="P" class="van-index-bar__index">P</span><span data-index="Q" class="van-index-bar__index">Q</span><span data-index="R" class="van-index-bar__index">R</span><span data-index="S" class="van-index-bar__index">S</span><span data-index="T" class="van-index-bar__index">T</span><span data-index="U" class="van-index-bar__index">U</span><span data-index="V" class="van-index-bar__index">V</span><span data-index="W" class="van-index-bar__index">W</span><span data-index="X" class="van-index-bar__index">X</span><span data-index="Y" class="van-index-bar__index">Y</span><span data-index="Z" class="van-index-bar__index">Z</span></div>
<div>
<div>
<div class="van-index-anchor">A</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">B</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">C</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">D</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">E</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">F</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">G</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">H</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">I</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">J</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">K</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">L</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">M</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">N</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">O</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">P</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">Q</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">R</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">S</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">T</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">U</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">V</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">W</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">X</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">Y</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
<div>
<div>
<div class="van-index-anchor">Z</div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
<div class="van-cell">
<div class="van-cell__title"><span>文本</span></div>
</div>
</div>
</div>
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,857 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div class="van-tabs van-tabs--line" modelvalue="0">
<div class="van-tabs__wrap">
<div role="tablist" class="van-tabs__nav van-tabs__nav--line">
<!---->
<div role="tab" class="van-tab van-tab--active" aria-selected="true"><span class="van-tab__text van-tab__text--ellipsis">基础用法</span></div>
<div role="tab" class="van-tab" aria-selected="false"><span class="van-tab__text van-tab__text--ellipsis">自定义索引列表</span></div>
<div class="van-tabs__line" style="transform: translateX(0px) translateX(-50%);"></div>
<!---->
</div>
</div>
<div class="van-tabs__content">
<div role="tabpanel" class="van-tab__pane" style="">
<div class="van-index-bar">
<div class="van-index-bar__sidebar"><span class="van-index-bar__index" data-index="A">A</span><span class="van-index-bar__index" data-index="B">B</span><span class="van-index-bar__index" data-index="C">C</span><span class="van-index-bar__index" data-index="D">D</span><span class="van-index-bar__index" data-index="E">E</span><span class="van-index-bar__index" data-index="F">F</span><span class="van-index-bar__index" data-index="G">G</span><span class="van-index-bar__index" data-index="H">H</span><span class="van-index-bar__index" data-index="I">I</span><span class="van-index-bar__index" data-index="J">J</span><span class="van-index-bar__index" data-index="K">K</span><span class="van-index-bar__index" data-index="L">L</span><span class="van-index-bar__index" data-index="M">M</span><span class="van-index-bar__index" data-index="N">N</span><span class="van-index-bar__index" data-index="O">O</span><span class="van-index-bar__index" data-index="P">P</span><span class="van-index-bar__index" data-index="Q">Q</span><span class="van-index-bar__index" data-index="R">R</span><span class="van-index-bar__index" data-index="S">S</span><span class="van-index-bar__index" data-index="T">T</span><span class="van-index-bar__index" data-index="U">U</span><span class="van-index-bar__index" data-index="V">V</span><span class="van-index-bar__index" data-index="W">W</span><span class="van-index-bar__index" data-index="X">X</span><span class="van-index-bar__index" data-index="Y">Y</span><span class="van-index-bar__index" data-index="Z">Z</span></div>
<div>
<div>
<div class="van-index-anchor">A</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">B</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">C</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">D</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">E</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">F</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">G</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">H</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">I</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">J</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">K</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">L</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">M</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">N</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">O</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">P</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">Q</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">R</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">S</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">T</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">U</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">V</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">W</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">X</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">Y</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
<div>
<div>
<div class="van-index-anchor">Z</div>
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
<div class="van-cell">
<!---->
<div class="van-cell__title"><span>文本</span>
<!---->
</div>
<!---->
<!---->
<!---->
</div>
</div>
</div>
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
</div>
</div>
`;

View File

@ -1,32 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div class="van-tabs van-tabs--line">
<div class="van-tabs__wrap">
<div role="tablist" class="van-tabs__nav van-tabs__nav--line">
<div role="tab" aria-selected="true" class="van-tab van-tab--active"><span class="van-tab__text van-tab__text--ellipsis">基础用法</span></div>
<div role="tab" class="van-tab"><span class="van-tab__text van-tab__text--ellipsis">错误提示</span></div>
<div role="tab" class="van-tab"><span class="van-tab__text van-tab__text--ellipsis">下拉刷新</span></div>
<div class="van-tabs__line" style="transform: translateX(0px) translateX(-50%);"></div>
</div>
</div>
<div class="van-tabs__content">
<div role="tabpanel" class="van-tab__pane" style="">
<div role="feed" class="van-list" aria-busy="true">
<div class="van-list__loading">
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 16px; height: 16px;"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span><span class="van-loading__text">加载中...</span></div>
</div>
<div class="van-list__placeholder"></div>
</div>
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,34 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div class="van-tabs van-tabs--line">
<div class="van-tabs__wrap">
<div role="tablist" class="van-tabs__nav van-tabs__nav--line">
<!---->
<div role="tab" class="van-tab van-tab--active" aria-selected="true"><span class="van-tab__text van-tab__text--ellipsis">基础用法</span></div>
<div role="tab" class="van-tab" aria-selected="false"><span class="van-tab__text van-tab__text--ellipsis">错误提示</span></div>
<div role="tab" class="van-tab" aria-selected="false"><span class="van-tab__text van-tab__text--ellipsis">下拉刷新</span></div>
<div class="van-tabs__line" style="transform: translateX(0px) translateX(-50%);"></div>
<!---->
</div>
</div>
<div class="van-tabs__content">
<div role="tabpanel" class="van-tab__pane" style="">
<div role="feed" class="van-list" aria-busy="true">
<div class="van-list__loading">
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 16px; height: 16px;"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span><span class="van-loading__text">加载中...</span></div>
</div>
<!---->
<!---->
<div class="van-list__placeholder"></div>
</div>
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
<div role="tabpanel" class="van-tab__pane" style="display: none;">
<!---->
</div>
</div>
</div>
`;

View File

@ -1,28 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span></div>
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span></div>
</div>
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="color: rgb(25, 137, 250);"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span></div>
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner" style="color: rgb(25, 137, 250);"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span></div>
</div>
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 24px; height: 24px;"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span></div>
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner" style="width: 24px; height: 24px;"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span></div>
</div>
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 24px; height: 24px;"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span><span class="van-loading__text">
加载中...
</span></div>
</div>
<div>
<div class="van-loading van-loading--circular van-loading--vertical"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 24px; height: 24px;"><svg viewBox="25 25 50 50" class="van-loading__circular"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span><span class="van-loading__text">
加载中...
</span></div>
</div>
</div>
`;

View File

@ -0,0 +1,34 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span>
<!---->
</div>
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
<!---->
</div>
</div>
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="color: rgb(25, 137, 250);"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span>
<!---->
</div>
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner" style="color: rgb(25, 137, 250);"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
<!---->
</div>
</div>
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 24px; height: 24px;"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span>
<!---->
</div>
<div class="van-loading van-loading--spinner"><span class="van-loading__spinner van-loading__spinner--spinner" style="width: 24px; height: 24px;"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
<!---->
</div>
</div>
<div>
<div class="van-loading van-loading--circular"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 24px; height: 24px;"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span><span class="van-loading__text">加载中...</span></div>
</div>
<div>
<div class="van-loading van-loading--circular van-loading--vertical"><span class="van-loading__spinner van-loading__spinner--circular" style="width: 24px; height: 24px;"><svg class="van-loading__circular" viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none"></circle></svg></span><span class="van-loading__text">加载中...</span></div>
</div>
`;

View File

@ -1,27 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div class="van-nav-bar van-hairline--bottom">
<div class="van-nav-bar__content">
<div class="van-nav-bar__left"><i class="van-icon van-icon-arrow-left van-nav-bar__arrow">
<!----></i><span class="van-nav-bar__text">返回</span></div>
<div class="van-nav-bar__title van-ellipsis">标题</div>
<div class="van-nav-bar__right"><span class="van-nav-bar__text">按钮</span></div>
</div>
</div>
</div>
<div>
<div class="van-nav-bar van-hairline--bottom">
<div class="van-nav-bar__content">
<div class="van-nav-bar__left"><i class="van-icon van-icon-arrow-left van-nav-bar__arrow">
<!----></i><span class="van-nav-bar__text">返回</span></div>
<div class="van-nav-bar__title van-ellipsis">标题</div>
<div class="van-nav-bar__right"><i class="van-icon van-icon-search" style="font-size: 18px;">
<!----></i></div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,31 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-nav-bar van-hairline--bottom">
<div class="van-nav-bar__content">
<div class="van-nav-bar__left"><i class="van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow">
<!---->
<!---->
<!----></i><span class="van-nav-bar__text">返回</span></div>
<div class="van-nav-bar__title van-ellipsis">标题</div>
<div class="van-nav-bar__right"><span class="van-nav-bar__text">按钮</span></div>
</div>
</div>
</div>
<div>
<div class="van-nav-bar van-hairline--bottom">
<div class="van-nav-bar__content">
<div class="van-nav-bar__left"><i class="van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow">
<!---->
<!---->
<!----></i><span class="van-nav-bar__text">返回</span></div>
<div class="van-nav-bar__title van-ellipsis">标题</div>
<div class="van-nav-bar__right"><i class="van-badge__wrapper van-icon van-icon-search" style="font-size: 18px;">
<!---->
<!---->
<!----></i></div>
</div>
</div>
</div>
`;

View File

@ -1,71 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="alert" class="van-notice-bar"><i class="van-icon van-icon-volume-o van-notice-bar__left-icon">
<!----></i>
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="transition-duration: 0s;">在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。</div>
</div>
</div>
</div>
<div>
<div role="alert" class="van-notice-bar">
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="transition-duration: 0s;">技术是开发它的人的共同灵魂。</div>
</div>
</div>
<div role="alert" class="van-notice-bar">
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content van-ellipsis" style="transition-duration: 0s;">在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。</div>
</div>
</div>
</div>
<div>
<div role="alert" class="van-notice-bar van-notice-bar--wrapable">
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="transition-duration: 0s;">在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。</div>
</div>
</div>
</div>
<div>
<div role="alert" class="van-notice-bar">
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="transition-duration: 0s;">技术是开发它的人的共同灵魂。</div>
</div><i class="van-icon van-icon-cross van-notice-bar__right-icon">
<!----></i>
</div>
<div role="alert" class="van-notice-bar">
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="transition-duration: 0s;">技术是开发它的人的共同灵魂。</div>
</div><i class="van-icon van-icon-arrow van-notice-bar__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="alert" class="van-notice-bar" style="color: rgb(25, 137, 250); background: rgb(236, 249, 255);"><i class="van-icon van-icon-info-o van-notice-bar__left-icon">
<!----></i>
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="transition-duration: 0s;">技术是开发它的人的共同灵魂。</div>
</div>
</div>
</div>
<div>
<div role="alert" class="van-notice-bar"><i class="van-icon van-icon-volume-o van-notice-bar__left-icon">
<!----></i>
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content van-ellipsis" style="transition-duration: 0s;">
<div class="notice-swipe van-swipe">
<div class="van-swipe__track van-swipe__track--vertical" style="height: 0px; transition-duration: 0ms; transform: translateY(0px);">
<div class="van-swipe-item" style="height: 0px;">内容 1</div>
<div class="van-swipe-item" style="height: 0px;">内容 2</div>
<div class="van-swipe-item" style="height: 0px;">内容 3</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,91 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div role="alert" class="van-notice-bar"><i class="van-badge__wrapper van-icon van-icon-volume-o van-notice-bar__left-icon">
<!---->
<!---->
<!----></i>
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content">在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。</div>
</div>
<!---->
</div>
</div>
<div>
<div role="alert" class="van-notice-bar">
<!---->
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content">技术是开发它的人的共同灵魂。</div>
</div>
<!---->
</div>
<div role="alert" class="van-notice-bar">
<!---->
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content van-ellipsis">在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。</div>
</div>
<!---->
</div>
</div>
<div>
<div role="alert" class="van-notice-bar van-notice-bar--wrapable">
<!---->
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content">在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。</div>
</div>
<!---->
</div>
</div>
<div>
<div role="alert" class="van-notice-bar">
<!---->
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content">技术是开发它的人的共同灵魂。</div>
</div><i class="van-badge__wrapper van-icon van-icon-cross van-notice-bar__right-icon">
<!---->
<!---->
<!----></i>
</div>
<div role="alert" class="van-notice-bar">
<!---->
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content">技术是开发它的人的共同灵魂。</div>
</div><i class="van-badge__wrapper van-icon van-icon-arrow van-notice-bar__right-icon">
<!---->
<!---->
<!----></i>
</div>
</div>
<div>
<div role="alert" class="van-notice-bar" style="color: rgb(25, 137, 250); background: rgb(236, 249, 255);"><i class="van-badge__wrapper van-icon van-icon-info-o van-notice-bar__left-icon">
<!---->
<!---->
<!----></i>
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content">技术是开发它的人的共同灵魂。</div>
</div>
<!---->
</div>
</div>
<div>
<div role="alert" class="van-notice-bar"><i class="van-badge__wrapper van-icon van-icon-volume-o van-notice-bar__left-icon">
<!---->
<!---->
<!----></i>
<div role="marquee" class="van-notice-bar__wrap">
<div style="transition-duration: 0s;" class="van-notice-bar__content van-ellipsis">
<div class="van-swipe notice-swipe">
<div style="height: 0px; transition-duration: 0ms; transform: translateY(0px);" class="van-swipe__track van-swipe__track--vertical">
<div class="van-swipe-item" style="height: 0px;">内容 1</div>
<div class="van-swipe-item" style="height: 0px;">内容 2</div>
<div class="van-swipe-item" style="height: 0px;">内容 3</div>
</div>
<!---->
</div>
</div>
</div>
<!---->
</div>
</div>
`;

View File

@ -1,47 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>基础用法</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>主要通知</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>成功通知</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>危险通知</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>警告通知</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义颜色</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>自定义时长</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
</div>
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__title"><span>组件调用</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<!---->
</div>
</div>
`;

View File

@ -0,0 +1,104 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render demo and match snapshot 1`] = `
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>基础用法</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>主要通知</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>成功通知</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>危险通知</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>警告通知</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义颜色</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>自定义时长</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
</div>
<div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<div class="van-cell__title"><span>组件调用</span>
<!---->
</div>
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<!---->
<transition-stub>
<!---->
</transition-stub>
</div>
`;

View File

@ -1,44 +1,71 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__value van-cell__value--alone">
弹出默认键盘
</div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
exports[`should render demo and match snapshot 1`] = `
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone">弹出默认键盘</div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone">弹出带右侧栏的键盘</div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone">弹出身份证号键盘</div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone">弹出带标题的键盘</div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
<!---->
<!---->
<div class="van-cell__value van-cell__value--alone">弹出配置多个按键的键盘</div><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
<!---->
<!---->
<!----></i>
<!---->
</div>
<div class="van-cell van-cell--clickable van-field" role="button" tabindex="0">
<!---->
<div class="van-cell__title van-field__label"><span>双向绑定</span>
<!---->
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__value van-cell__value--alone">
弹出带右侧栏的键盘
</div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__value van-cell__value--alone">
弹出身份证号键盘
</div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__value van-cell__value--alone">
弹出带标题的键盘
</div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable">
<div class="van-cell__value van-cell__value--alone">
弹出配置多个按键的键盘
</div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-field">
<div class="van-cell__title van-field__label"><span>双向绑定</span></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" readonly="readonly" placeholder="点此输入" class="van-field__control"></div>
<div class="van-cell__value van-field__value">
<div class="van-field__body"><input type="text" class="van-field__control" readonly="" placeholder="点此输入">
<!---->
<!---->
<!---->
</div>
<!---->
<!---->
</div>
<div class="van-number-keyboard" name="van-slide-up">
<!---->
<!---->
</div>
<transition-stub>
<div class="van-number-keyboard">
<!---->
<div class="van-number-keyboard__body">
<div class="van-number-keyboard__keys">
<div class="van-key__wrapper">
@ -69,7 +96,7 @@ exports[`renders demo correctly 1`] = `
<div role="button" tabindex="0" class="van-key">9</div>
</div>
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key"><svg viewBox="0 0 30 24" xmlns="http://www.w3.org/2000/svg" class="van-key__collapse-icon">
<div role="button" tabindex="0" class="van-key"><svg class="van-key__collapse-icon" viewBox="0 0 30 24">
<path d="M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z" fill="currentColor"></path>
</svg></div>
</div>
@ -77,14 +104,18 @@ exports[`renders demo correctly 1`] = `
<div role="button" tabindex="0" class="van-key">0</div>
</div>
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg" class="van-key__delete-icon">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg class="van-key__delete-icon" viewBox="0 0 32 22">
<path d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z" fill="currentColor"></path>
</svg></div>
</div>
</div>
<!---->
</div>
</div>
<div class="van-number-keyboard" style="display: none;" name="van-slide-up">
</transition-stub>
<transition-stub>
<div class="van-number-keyboard" style="display: none;">
<!---->
<div class="van-number-keyboard__body">
<div class="van-number-keyboard__keys">
<div class="van-key__wrapper">
@ -123,7 +154,7 @@ exports[`renders demo correctly 1`] = `
</div>
<div class="van-number-keyboard__sidebar">
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key van-key--large van-key--delete"><svg viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg" class="van-key__delete-icon">
<div role="button" tabindex="0" class="van-key van-key--large van-key--delete"><svg class="van-key__delete-icon" viewBox="0 0 32 22">
<path d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z" fill="currentColor"></path>
</svg></div>
</div>
@ -133,8 +164,12 @@ exports[`renders demo correctly 1`] = `
</div>
</div>
</div>
<div class="van-number-keyboard van-number-keyboard--with-title" style="display: none;" name="van-slide-up">
<div class="van-number-keyboard__header"><button type="button" class="van-number-keyboard__close">完成</button></div>
</transition-stub>
<transition-stub>
<div class="van-number-keyboard van-number-keyboard--with-title" style="display: none;">
<div class="van-number-keyboard__header">
<!---->
<!----><button type="button" class="van-number-keyboard__close">完成</button></div>
<div class="van-number-keyboard__body">
<div class="van-number-keyboard__keys">
<div class="van-key__wrapper">
@ -171,15 +206,19 @@ exports[`renders demo correctly 1`] = `
<div role="button" tabindex="0" class="van-key">0</div>
</div>
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg" class="van-key__delete-icon">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg class="van-key__delete-icon" viewBox="0 0 32 22">
<path d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z" fill="currentColor"></path>
</svg></div>
</div>
</div>
<!---->
</div>
</div>
<div class="van-number-keyboard van-number-keyboard--with-title" style="display: none;" name="van-slide-up">
</transition-stub>
<transition-stub>
<div class="van-number-keyboard van-number-keyboard--with-title" style="display: none;">
<div class="van-number-keyboard__header">
<!---->
<h2 class="van-number-keyboard__title">键盘标题</h2><button type="button" class="van-number-keyboard__close">完成</button>
</div>
<div class="van-number-keyboard__body">
@ -218,14 +257,18 @@ exports[`renders demo correctly 1`] = `
<div role="button" tabindex="0" class="van-key">0</div>
</div>
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg" class="van-key__delete-icon">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg class="van-key__delete-icon" viewBox="0 0 32 22">
<path d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z" fill="currentColor"></path>
</svg></div>
</div>
</div>
<!---->
</div>
</div>
<div class="van-number-keyboard" style="display: none;" name="van-slide-up">
</transition-stub>
<transition-stub>
<div class="van-number-keyboard" style="display: none;">
<!---->
<div class="van-number-keyboard__body">
<div class="van-number-keyboard__keys">
<div class="van-key__wrapper">
@ -267,7 +310,7 @@ exports[`renders demo correctly 1`] = `
</div>
<div class="van-number-keyboard__sidebar">
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key van-key--large van-key--delete"><svg viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg" class="van-key__delete-icon">
<div role="button" tabindex="0" class="van-key van-key--large van-key--delete"><svg class="van-key__delete-icon" viewBox="0 0 32 22">
<path d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z" fill="currentColor"></path>
</svg></div>
</div>
@ -277,7 +320,10 @@ exports[`renders demo correctly 1`] = `
</div>
</div>
</div>
<div class="van-number-keyboard" style="display: none;" name="van-slide-up">
</transition-stub>
<transition-stub>
<div class="van-number-keyboard" style="display: none;">
<!---->
<div class="van-number-keyboard__body">
<div class="van-number-keyboard__keys">
<div class="van-key__wrapper">
@ -308,7 +354,7 @@ exports[`renders demo correctly 1`] = `
<div role="button" tabindex="0" class="van-key">9</div>
</div>
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key"><svg viewBox="0 0 30 24" xmlns="http://www.w3.org/2000/svg" class="van-key__collapse-icon">
<div role="button" tabindex="0" class="van-key"><svg class="van-key__collapse-icon" viewBox="0 0 30 24">
<path d="M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z" fill="currentColor"></path>
</svg></div>
</div>
@ -316,12 +362,13 @@ exports[`renders demo correctly 1`] = `
<div role="button" tabindex="0" class="van-key">0</div>
</div>
<div class="van-key__wrapper">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg" class="van-key__delete-icon">
<div role="button" tabindex="0" class="van-key van-key--delete"><svg class="van-key__delete-icon" viewBox="0 0 32 22">
<path d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z" fill="currentColor"></path>
</svg></div>
</div>
</div>
<!---->
</div>
</div>
</div>
</transition-stub>
`;

View File

@ -1,20 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div><button class="van-button van-button--primary van-button--normal" style="margin-left: 16px;">
<div class="van-button__content"><span class="van-button__text">显示遮罩层</span></div>
</button>
<div class="van-overlay" style="display: none;" name="van-fade"></div>
</div>
<div><button class="van-button van-button--primary van-button--normal" style="margin-left: 16px;">
<div class="van-button__content"><span class="van-button__text">嵌入内容</span></div>
</button>
<div class="van-overlay" style="display: none;" name="van-fade">
<div class="wrapper">
<div class="block"></div>
</div>
</div>
</div>
</div>
`;

Some files were not shown because too many files have changed in this diff Show More