diff --git a/src/action-bar/test/__snapshots__/demo.spec.js.snap b/src/action-bar/test/__snapshots__/demo.spec.js.snap index 50de0d198..b285e9dca 100644 --- a/src/action-bar/test/__snapshots__/demo.spec.js.snap +++ b/src/action-bar/test/__snapshots__/demo.spec.js.snap @@ -9,7 +9,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-badge__wrapper van-icon van-icon-chat-o van-action-bar-icon__icon"> </div> - 客服 + Icon1 </div> <div role="button" class="van-action-bar-icon" @@ -17,7 +17,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-badge__wrapper van-icon van-icon-cart-o van-action-bar-icon__icon"> </div> - 购物车 + Icon2 </div> <div role="button" class="van-action-bar-icon" @@ -25,14 +25,14 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-badge__wrapper van-icon van-icon-shop-o van-action-bar-icon__icon"> </div> - 店铺 + Icon3 </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"> - 立即购买 + Button </span> </div> </button> @@ -48,7 +48,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-badge van-badge--dot van-badge--fixed"> </div> </div> - 客服 + Icon1 </div> <div role="button" class="van-action-bar-icon" @@ -59,7 +59,7 @@ exports[`should render demo and match snapshot 1`] = ` 5 </div> </div> - 购物车 + Icon2 </div> <div role="button" class="van-action-bar-icon" @@ -70,14 +70,14 @@ exports[`should render demo and match snapshot 1`] = ` 12 </div> </div> - 店铺 + Icon3 </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"> - 加入购物车 + Button </span> </div> </button> @@ -86,7 +86,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 立即购买 + Button </span> </div> </button> @@ -102,7 +102,7 @@ exports[`should render demo and match snapshot 1`] = ` style="color: rgb(7, 193, 96);" > </div> - 客服 + Icon1 </div> <div role="button" class="van-action-bar-icon" @@ -110,7 +110,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-badge__wrapper van-icon van-icon-cart-o van-action-bar-icon__icon"> </div> - 购物车 + Icon2 </div> <div role="button" class="van-action-bar-icon" @@ -120,14 +120,14 @@ exports[`should render demo and match snapshot 1`] = ` style="color: rgb(255, 80, 0);" > </div> - 已收藏 + Collected </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"> - 加入购物车 + Button </span> </div> </button> @@ -136,7 +136,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 立即购买 + Button </span> </div> </button> @@ -150,7 +150,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-badge__wrapper van-icon van-icon-chat-o van-action-bar-icon__icon"> </div> - 客服 + Icon1 </div> <div role="button" class="van-action-bar-icon" @@ -158,7 +158,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-badge__wrapper van-icon van-icon-cart-o van-action-bar-icon__icon"> </div> - 购物车 + Icon2 </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" @@ -166,7 +166,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 加入购物车 + Button </span> </div> </button> @@ -176,7 +176,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 立即购买 + Button </span> </div> </button> diff --git a/src/action-sheet/test/__snapshots__/demo.spec.js.snap b/src/action-sheet/test/__snapshots__/demo.spec.js.snap index b2354af90..26711b971 100644 --- a/src/action-sheet/test/__snapshots__/demo.spec.js.snap +++ b/src/action-sheet/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 基础用法 + Basic Usage </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 展示取消按钮 + Show Cancel Button </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -32,7 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 展示描述信息 + Show Description </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -46,7 +46,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 选项状态 + Option Status </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -60,7 +60,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义面板 + Custom Panel </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> diff --git a/src/address-edit/test/__snapshots__/demo.spec.js.snap b/src/address-edit/test/__snapshots__/demo.spec.js.snap index 2a6b302e7..6a4bf00cd 100644 --- a/src/address-edit/test/__snapshots__/demo.spec.js.snap +++ b/src/address-edit/test/__snapshots__/demo.spec.js.snap @@ -7,14 +7,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 姓名 + Name </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="收货人姓名" + placeholder="Name" > </div> </div> @@ -22,14 +22,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 电话 + Phone </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="tel" class="van-field__control" - placeholder="收货人手机号" + placeholder="Phone" > </div> </div> @@ -40,7 +40,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 地区 + Area </span> </div> <div class="van-cell__value van-field__value"> @@ -48,7 +48,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" class="van-field__control" readonly - placeholder="选择省 / 市 / 区" + placeholder="Area" > <div class="van-field__right-icon"> <i class="van-badge__wrapper van-icon van-icon-arrow"> @@ -60,14 +60,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field van-address-edit-detail"> <div class="van-cell__title van-field__label"> <span> - 详细地址 + Address </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <textarea rows="1" class="van-field__control" - placeholder="街道门牌、楼层房间号等信息" + placeholder="Address" style="height: auto;" > </textarea> @@ -77,14 +77,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 邮政编码 + Postal </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="tel" class="van-field__control" - placeholder="邮政编码" + placeholder="Postal" > </div> </div> @@ -93,7 +93,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center van-address-edit__default"> <div class="van-cell__title"> <span> - 设为默认收货地址 + Set as the default address </span> </div> <div role="switch" @@ -111,7 +111,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 保存 + Save </span> </div> </button> @@ -120,7 +120,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 删除 + Delete </span> </div> </button> diff --git a/src/address-list/test/__snapshots__/demo.spec.js.snap b/src/address-list/test/__snapshots__/demo.spec.js.snap index 0cdeacd99..951c277a7 100644 --- a/src/address-list/test/__snapshots__/demo.spec.js.snap +++ b/src/address-list/test/__snapshots__/demo.spec.js.snap @@ -22,15 +22,15 @@ exports[`should render demo and match snapshot 1`] = ` </div> <span class="van-radio__label"> <div class="van-address-item__name"> - 张三 13000000000 + John Snow 13000000000 <transition-stub class="van-address-item__tag"> <span class="van-tag van-tag--round van-tag--danger"> - 默认 + Default </span> </transition-stub> </div> <div class="van-address-item__address"> - 浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室 + Somewhere </div> </span> </div> @@ -55,10 +55,10 @@ exports[`should render demo and match snapshot 1`] = ` </div> <span class="van-radio__label"> <div class="van-address-item__name"> - 李四 1310000000 + Ned Stark 1310000000 </div> <div class="van-address-item__address"> - 浙江省杭州市拱墅区莫干山路 50 号 + Somewhere </div> </span> </div> @@ -69,16 +69,16 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="van-address-list__disabled-text"> - 以下地址超出配送范围 + The following address is out of range </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 + Tywin 1320000000 </div> <div class="van-address-item__address"> - 浙江省杭州市滨江区江南大道 15 号 + Somewhere </div> </div> <i class="van-badge__wrapper van-icon van-icon-edit van-address-item__edit"> @@ -91,7 +91,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 新增地址 + Add new address </span> </div> </button> diff --git a/src/area/test/__snapshots__/demo.spec.js.snap b/src/area/test/__snapshots__/demo.spec.js.snap index 23a49d863..516dfa9e2 100644 --- a/src/area/test/__snapshots__/demo.spec.js.snap +++ b/src/area/test/__snapshots__/demo.spec.js.snap @@ -7,15 +7,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -31,7 +31,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 北京市 + Beijing </div> </li> <li role="button" @@ -40,7 +40,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 天津市 + Zhejiang </div> </li> <li role="button" @@ -49,295 +49,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 海外 + Hong Kong </div> </li> </ul> @@ -352,7 +64,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 北京市 + Beijing City </div> </li> </ul> @@ -367,7 +79,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 东城区 + Dongcheng </div> </li> <li role="button" @@ -376,7 +88,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 西城区 + Xicheng </div> </li> <li role="button" @@ -385,7 +97,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 朝阳区 + Chaoyang </div> </li> <li role="button" @@ -394,7 +106,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 丰台区 + Fengtai </div> </li> <li role="button" @@ -403,7 +115,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 石景山区 + Haidian </div> </li> <li role="button" @@ -412,7 +124,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 海淀区 + Fangshan </div> </li> <li role="button" @@ -421,7 +133,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 门头沟区 + Tongzhou </div> </li> <li role="button" @@ -430,7 +142,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 房山区 + Shunyi </div> </li> <li role="button" @@ -439,7 +151,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 通州区 + Changping </div> </li> <li role="button" @@ -448,61 +160,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 延庆区 + Daxing </div> </li> </ul> @@ -524,22 +182,22 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + 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;" + <ul style="transform: translate3d(0, 66px, 0); transition-duration: 0ms; transition-property: none;" class="van-picker-column__wrapper" > <li role="button" @@ -548,88 +206,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 江苏省 + Beijing </div> </li> <li role="button" @@ -638,7 +215,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 浙江省 + Zhejiang </div> </li> <li role="button" @@ -647,214 +224,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 海外 + Hong Kong </div> </li> </ul> @@ -869,7 +239,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 杭州市 + Hangzhou </div> </li> <li role="button" @@ -878,7 +248,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 宁波市 + Ningbo </div> </li> <li role="button" @@ -887,7 +257,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 温州市 + Wenzhou </div> </li> <li role="button" @@ -896,7 +266,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 嘉兴市 + Jiaxin </div> </li> <li role="button" @@ -905,61 +275,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 丽水市 + Lishui </div> </li> </ul> @@ -974,7 +290,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 鹿城区 + Cangnan </div> </li> <li role="button" @@ -983,7 +299,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 龙湾区 + Wencheng </div> </li> <li role="button" @@ -992,7 +308,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 瓯海区 + Shuntai </div> </li> <li role="button" @@ -1001,7 +317,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 洞头区 + Ruian </div> </li> <li role="button" @@ -1010,61 +326,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 乐清市 + Yueqing </div> </li> </ul> @@ -1086,15 +348,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -1110,7 +372,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 北京市 + Beijing </div> </li> <li role="button" @@ -1119,7 +381,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 天津市 + Zhejiang </div> </li> <li role="button" @@ -1128,295 +390,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 海外 + Hong Kong </div> </li> </ul> @@ -1431,7 +405,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 北京市 + Beijing City </div> </li> </ul> @@ -1453,15 +427,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -1477,7 +451,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 请选择 + Choose </div> </li> <li role="button" @@ -1486,7 +460,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 北京市 + Beijing </div> </li> <li role="button" @@ -1495,7 +469,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 天津市 + Zhejiang </div> </li> <li role="button" @@ -1504,295 +478,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 海外 + Hong Kong </div> </li> </ul> diff --git a/src/button/test/__snapshots__/demo.spec.js.snap b/src/button/test/__snapshots__/demo.spec.js.snap index 05a4dbe62..9230b666b 100644 --- a/src/button/test/__snapshots__/demo.spec.js.snap +++ b/src/button/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 主要按钮 + Primary </span> </div> </button> @@ -17,7 +17,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 成功按钮 + Success </span> </div> </button> @@ -26,7 +26,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 默认按钮 + Default </span> </div> </button> @@ -36,7 +36,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 危险按钮 + Danger </span> </div> </button> @@ -45,7 +45,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 警告按钮 + Warning </span> </div> </button> @@ -56,7 +56,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 朴素按钮 + Plain </span> </div> </button> @@ -65,7 +65,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 朴素按钮 + Plain </span> </div> </button> @@ -76,7 +76,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 细边框按钮 + Hairline </span> </div> </button> @@ -85,7 +85,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 细边框按钮 + Hairline </span> </div> </button> @@ -97,7 +97,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 禁用状态 + Disabled </span> </div> </button> @@ -107,7 +107,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 禁用状态 + Disabled </span> </div> </button> @@ -192,7 +192,7 @@ exports[`should render demo and match snapshot 1`] = ` </span> </div> <span class="van-button__text"> - 加载中... + Loading... </span> </div> </button> @@ -203,7 +203,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 方形按钮 + Square </span> </div> </button> @@ -212,7 +212,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 圆形按钮 + Round </span> </div> </button> @@ -233,7 +233,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-plus van-button__icon"> </i> <span class="van-button__text"> - 按钮 + Button </span> </div> </button> @@ -247,7 +247,7 @@ exports[`should render demo and match snapshot 1`] = ` > </i> <span class="van-button__text"> - 按钮 + Button </span> </div> </button> @@ -258,7 +258,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 大号按钮 + Large </span> </div> </button> @@ -267,7 +267,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 普通按钮 + Normal </span> </div> </button> @@ -276,7 +276,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 小型按钮 + Small </span> </div> </button> @@ -285,7 +285,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 迷你按钮 + Mini </span> </div> </button> @@ -296,7 +296,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 块级元素 + Block Element </span> </div> </button> @@ -307,7 +307,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - URL 跳转 + URL </span> </div> </button> @@ -316,7 +316,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 路由跳转 + Vue Router </span> </div> </button> @@ -328,7 +328,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 单色按钮 + Pure </span> </div> </button> @@ -338,7 +338,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 单色按钮 + Pure </span> </div> </button> @@ -348,7 +348,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 渐变色按钮 + Gradient </span> </div> </button> diff --git a/src/calendar/test/__snapshots__/demo.spec.js.snap b/src/calendar/test/__snapshots__/demo.spec.js.snap index 5188619bd..9cc23b495 100644 --- a/src/calendar/test/__snapshots__/demo.spec.js.snap +++ b/src/calendar/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 选择单个日期 + Select Single Date </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 选择多个日期 + Select Multiple Date </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -32,7 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 选择日期区间 + Select Date Range </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -46,7 +46,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 选择单个日期 + Select Single Date </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 选择日期区间 + Select Date Range </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -72,7 +72,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义颜色 + Custom Color </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -84,7 +84,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义日期范围 + Custom Date Range </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -96,7 +96,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义按钮文字 + Custom Confirm Text </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -108,7 +108,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义日期文案 + Custom Day Text </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -120,7 +120,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义弹出位置 + Custom Position </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -132,7 +132,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 日期区间最大范围 + Max Range </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -144,7 +144,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义周起始日 + Custom First Day Of Week </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -157,31 +157,31 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-calendar__header"> <div class="van-calendar__header-title"> - 日历 + Calendar </div> <div class="van-calendar__header-subtitle"> </div> <div class="van-calendar__weekdays"> <span class="van-calendar__weekday"> - 日 + Sun </span> <span class="van-calendar__weekday"> - 一 + Mon </span> <span class="van-calendar__weekday"> - 二 + Tue </span> <span class="van-calendar__weekday"> - 三 + Wed </span> <span class="van-calendar__weekday"> - 四 + Thu </span> <span class="van-calendar__weekday"> - 五 + Fri </span> <span class="van-calendar__weekday"> - 六 + Sat </span> </div> </div> @@ -224,7 +224,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-calendar__month"> <div class="van-calendar__month-title"> - 2012年2月 + 2012/2 </div> <div role="grid" class="van-calendar__days" @@ -263,7 +263,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-calendar__month"> <div class="van-calendar__month-title"> - 2012年3月 + 2012/3 </div> <div role="grid" class="van-calendar__days" diff --git a/src/card/test/__snapshots__/demo.spec.js.snap b/src/card/test/__snapshots__/demo.spec.js.snap index e681024e1..567d0486e 100644 --- a/src/card/test/__snapshots__/demo.spec.js.snap +++ b/src/card/test/__snapshots__/demo.spec.js.snap @@ -21,10 +21,10 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-card__content"> <div> <div class="van-card__title van-multi-ellipsis--l2"> - 商品名称 + Title </div> <div class="van-card__desc van-ellipsis"> - 描述信息 + Description </div> </div> <div class="van-card__bottom"> @@ -69,7 +69,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-card__tag"> <transition-stub> <span class="van-tag van-tag--mark van-tag--danger"> - 标签 + Tag </span> </transition-stub> </div> @@ -77,10 +77,10 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-card__content"> <div> <div class="van-card__title van-multi-ellipsis--l2"> - 商品名称 + Title </div> <div class="van-card__desc van-ellipsis"> - 描述信息 + Description </div> </div> <div class="van-card__bottom"> @@ -129,10 +129,10 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-card__content"> <div> <div class="van-card__title van-multi-ellipsis--l2"> - 商品名称 + Title </div> <div class="van-card__desc van-ellipsis"> - 描述信息 + Description </div> <div> <transition-stub style="margin-right: 5px;"> @@ -175,7 +175,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 按钮 + Button </span> </div> </button> @@ -184,7 +184,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 按钮 + Button </span> </div> </button> diff --git a/src/cell/test/__snapshots__/demo.spec.js.snap b/src/cell/test/__snapshots__/demo.spec.js.snap index 3a7b62c9b..c6469057e 100644 --- a/src/cell/test/__snapshots__/demo.spec.js.snap +++ b/src/cell/test/__snapshots__/demo.spec.js.snap @@ -6,27 +6,27 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> <div class="van-cell__label"> - 描述信息 + Description </div> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> @@ -36,27 +36,27 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--large"> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> <div class="van-cell van-cell--large"> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> <div class="van-cell__label"> - 描述信息 + Description </div> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> @@ -67,12 +67,12 @@ exports[`should render demo and match snapshot 1`] = ` </i> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> @@ -81,7 +81,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__value van-cell__value--alone"> <span> - 内容 + Content </span> </div> </div> @@ -93,7 +93,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -105,12 +105,12 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -122,12 +122,12 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow-down van-cell__right-icon"> @@ -141,7 +141,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - URL 跳转 + URL </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -153,7 +153,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 路由跳转 + Vue Router </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -162,35 +162,35 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div> <div class="van-cell-group__title"> - 分组 1 + Group 1 </div> <div class="van-cell-group van-hairline--top-bottom"> <div class="van-cell"> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> </div> <div class="van-cell-group__title"> - 分组 2 + Group 2 </div> <div class="van-cell-group van-hairline--top-bottom"> <div class="van-cell"> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> @@ -203,17 +203,17 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span class="custom-title"> - 单元格 + Cell title </span> <transition-stub> <span class="van-tag van-tag--danger"> - 标签 + Tag </span> </transition-stub> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -224,7 +224,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> </div> <i class="van-badge__wrapper van-icon van-icon-search search-icon"> @@ -235,15 +235,15 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 单元格 + Cell title </span> <div class="van-cell__label"> - 描述信息 + Description </div> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> diff --git a/src/checkbox/test/__snapshots__/demo.spec.js.snap b/src/checkbox/test/__snapshots__/demo.spec.js.snap index d47d6977e..bd4a4bdac 100644 --- a/src/checkbox/test/__snapshots__/demo.spec.js.snap +++ b/src/checkbox/test/__snapshots__/demo.spec.js.snap @@ -12,7 +12,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 + Checkbox </span> </div> </div> @@ -27,7 +27,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label van-checkbox__label--disabled"> - 复选框 + Checkbox </span> </div> <div role="checkbox" @@ -40,7 +40,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label van-checkbox__label--disabled"> - 复选框 + Checkbox </span> </div> </div> @@ -55,7 +55,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 自定义形状 + Custom Shape </span> </div> </div> @@ -72,7 +72,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 自定义颜色 + Custom Color </span> </div> </div> @@ -89,7 +89,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 自定义大小 + Custom Icon Size </span> </div> </div> @@ -103,7 +103,7 @@ exports[`should render demo and match snapshot 1`] = ` <img src="https://img.yzcdn.cn/vant/user-active.png"> </div> <span class="van-checkbox__label"> - 自定义图标 + Custom Icon </span> </div> </div> @@ -118,7 +118,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 + Checkbox </span> </div> </div> @@ -134,7 +134,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 a + Checkbox a </span> </div> <div role="checkbox" @@ -147,7 +147,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 b + Checkbox b </span> </div> </div> @@ -164,7 +164,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 a + Checkbox a </span> </div> <div role="checkbox" @@ -177,7 +177,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 b + Checkbox b </span> </div> </div> @@ -194,7 +194,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 a + Checkbox a </span> </div> <div role="checkbox" @@ -207,7 +207,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 b + Checkbox b </span> </div> <div role="checkbox" @@ -220,7 +220,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 c + Checkbox c </span> </div> </div> @@ -237,7 +237,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 a + Checkbox a </span> </div> <div role="checkbox" @@ -250,7 +250,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 b + Checkbox b </span> </div> <div role="checkbox" @@ -263,7 +263,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 c + Checkbox c </span> </div> </div> @@ -273,7 +273,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 全选 + Check All </span> </div> </button> @@ -282,7 +282,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 反选 + Inverse </span> </div> </button> @@ -297,7 +297,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 复选框 a + Checkbox a </span> </div> <div role="checkbox" @@ -317,7 +317,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 复选框 b + Checkbox b </span> </div> <div role="checkbox" diff --git a/src/circle/test/__snapshots__/demo.spec.js.snap b/src/circle/test/__snapshots__/demo.spec.js.snap index 43dd5a180..951714faa 100644 --- a/src/circle/test/__snapshots__/demo.spec.js.snap +++ b/src/circle/test/__snapshots__/demo.spec.js.snap @@ -41,7 +41,7 @@ exports[`should render demo and match snapshot 1`] = ` </path> </svg> <div class="van-circle__text"> - 宽度定制 + Custom Width </div> </div> <div class="van-circle" @@ -61,7 +61,7 @@ exports[`should render demo and match snapshot 1`] = ` </path> </svg> <div class="van-circle__text"> - 颜色定制 + Custom Color </div> </div> <div class="van-circle" @@ -98,7 +98,7 @@ exports[`should render demo and match snapshot 1`] = ` </path> </svg> <div class="van-circle__text"> - 渐变色 + Gradient </div> </div> <div class="van-circle" @@ -118,7 +118,7 @@ exports[`should render demo and match snapshot 1`] = ` </path> </svg> <div class="van-circle__text"> - 逆时针 + Counter Clockwise </div> </div> <div class="van-circle" @@ -138,7 +138,7 @@ exports[`should render demo and match snapshot 1`] = ` </path> </svg> <div class="van-circle__text"> - 大小定制 + Custom Size </div> </div> </div> @@ -148,7 +148,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 增加 + Add </span> </div> </button> @@ -157,7 +157,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 减少 + Decrease </span> </div> </button> diff --git a/src/collapse/test/__snapshots__/demo.spec.js.snap b/src/collapse/test/__snapshots__/demo.spec.js.snap index c558c6be2..3e04e0444 100644 --- a/src/collapse/test/__snapshots__/demo.spec.js.snap +++ b/src/collapse/test/__snapshots__/demo.spec.js.snap @@ -12,7 +12,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题1 + Title1 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-collapse-item__wrapper"> <div class="van-collapse-item__content"> - 代码是写出来给人看的,附带能在机器上运行 + Content </div> </div> </div> @@ -33,7 +33,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题2 + Title2 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -49,7 +49,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题3 + Title3 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -69,7 +69,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题1 + Title1 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -77,7 +77,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-collapse-item__wrapper"> <div class="van-collapse-item__content"> - 代码是写出来给人看的,附带能在机器上运行 + Content </div> </div> </div> @@ -90,7 +90,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题2 + Title2 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -106,7 +106,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题3 + Title3 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -126,7 +126,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题1 + Title1 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -142,7 +142,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题2 + Title2 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -158,7 +158,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 标题3 + Title3 </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -177,7 +177,7 @@ exports[`should render demo and match snapshot 1`] = ` disabled="false" > <div class="van-cell__title"> - 标题1 + Title1 <i class="van-badge__wrapper van-icon van-icon-question-o"> </i> </div> @@ -196,12 +196,12 @@ exports[`should render demo and match snapshot 1`] = ` </i> <div class="van-cell__title"> <span> - 标题2 + Title2 </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> diff --git a/src/contact-card/test/__snapshots__/demo.spec.js.snap b/src/contact-card/test/__snapshots__/demo.spec.js.snap index 4b3e185d1..8b4578d3c 100644 --- a/src/contact-card/test/__snapshots__/demo.spec.js.snap +++ b/src/contact-card/test/__snapshots__/demo.spec.js.snap @@ -9,7 +9,7 @@ exports[`should render demo and match snapshot 1`] = ` <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"> - 添加联系人 + Add contact info </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> </i> @@ -24,10 +24,10 @@ exports[`should render demo and match snapshot 1`] = ` </i> <div class="van-cell__value van-cell__value--alone van-contact-card__value"> <div> - 张三:张三 + John Snow:John Snow </div> <div> - 电话:13000000000 + Phone:13000000000 </div> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -40,10 +40,10 @@ exports[`should render demo and match snapshot 1`] = ` </i> <div class="van-cell__value van-cell__value--alone van-contact-card__value"> <div> - 张三:张三 + John Snow:John Snow </div> <div> - 电话:13000000000 + Phone:13000000000 </div> </div> </div> diff --git a/src/contact-edit/test/__snapshots__/demo.spec.js.snap b/src/contact-edit/test/__snapshots__/demo.spec.js.snap index 15c3c06b9..d83f2eca8 100644 --- a/src/contact-edit/test/__snapshots__/demo.spec.js.snap +++ b/src/contact-edit/test/__snapshots__/demo.spec.js.snap @@ -8,14 +8,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 姓名 + Name </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="请填写姓名" + placeholder="Please fill in the name" > </div> </div> @@ -23,14 +23,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 电话 + Phone </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="tel" class="van-field__control" - placeholder="请填写电话" + placeholder="Please fill in the tel" > </div> </div> @@ -39,7 +39,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--borderless van-contact-edit__switch-cell"> <div class="van-cell__title"> <span> - 设为默认联系人 + Set as the default contact </span> </div> <div role="switch" @@ -57,7 +57,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 保存 + Save </span> </div> </button> @@ -66,7 +66,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 删除 + Delete </span> </div> </button> diff --git a/src/contact-list/test/__snapshots__/demo.spec.js.snap b/src/contact-list/test/__snapshots__/demo.spec.js.snap index 21c03bd78..61db56bb2 100644 --- a/src/contact-list/test/__snapshots__/demo.spec.js.snap +++ b/src/contact-list/test/__snapshots__/demo.spec.js.snap @@ -14,10 +14,10 @@ exports[`should render demo and match snapshot 1`] = ` <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 + John Snow,13000000000 <transition-stub class="van-contact-list__item-tag"> <span class="van-tag van-tag--round van-tag--danger"> - 默认 + default </span> </transition-stub> </div> @@ -43,7 +43,7 @@ exports[`should render demo and match snapshot 1`] = ` <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 + Ned Stark,1310000000 </div> <div role="radio" class="van-radio" @@ -65,7 +65,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 新建联系人 + Add new contact </span> </div> </button> diff --git a/src/coupon-list/test/__snapshots__/demo.spec.js.snap b/src/coupon-list/test/__snapshots__/demo.spec.js.snap index 7709e1b2e..5e7af14fd 100644 --- a/src/coupon-list/test/__snapshots__/demo.spec.js.snap +++ b/src/coupon-list/test/__snapshots__/demo.spec.js.snap @@ -8,12 +8,12 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 优惠券 + Coupon </span> </div> <div class="van-cell__value van-coupon-cell__value"> <span> - 2张可用 + You have 2 coupons </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> diff --git a/src/datetime-picker/test/__snapshots__/demo.spec.js.snap b/src/datetime-picker/test/__snapshots__/demo.spec.js.snap index b5ef0263d..4094b123f 100644 --- a/src/datetime-picker/test/__snapshots__/demo.spec.js.snap +++ b/src/datetime-picker/test/__snapshots__/demo.spec.js.snap @@ -7,15 +7,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 选择年月日 + Choose Date </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -497,15 +497,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 选择年月 + Choose Year-Month </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -521,7 +521,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 2020年 + 2020 Year </div> </li> <li role="button" @@ -530,7 +530,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2021年 + 2021 Year </div> </li> <li role="button" @@ -539,7 +539,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2022年 + 2022 Year </div> </li> <li role="button" @@ -548,7 +548,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2023年 + 2023 Year </div> </li> <li role="button" @@ -557,7 +557,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2024年 + 2024 Year </div> </li> <li role="button" @@ -566,7 +566,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2025年 + 2025 Year </div> </li> </ul> @@ -581,7 +581,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 01月 + 01 Month </div> </li> <li role="button" @@ -590,7 +590,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 02月 + 02 Month </div> </li> <li role="button" @@ -599,7 +599,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 03月 + 03 Month </div> </li> <li role="button" @@ -608,7 +608,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 04月 + 04 Month </div> </li> <li role="button" @@ -617,7 +617,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 05月 + 05 Month </div> </li> <li role="button" @@ -626,7 +626,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 06月 + 06 Month </div> </li> <li role="button" @@ -635,7 +635,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 07月 + 07 Month </div> </li> <li role="button" @@ -644,7 +644,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 08月 + 08 Month </div> </li> <li role="button" @@ -653,7 +653,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 09月 + 09 Month </div> </li> <li role="button" @@ -662,7 +662,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 10月 + 10 Month </div> </li> <li role="button" @@ -671,7 +671,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 11月 + 11 Month </div> </li> <li role="button" @@ -680,7 +680,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 12月 + 12 Month </div> </li> </ul> @@ -702,15 +702,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 选择月日 + Choose Month-Day </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -726,7 +726,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 01月 + 01 Month </div> </li> <li role="button" @@ -735,7 +735,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 02月 + 02 Month </div> </li> <li role="button" @@ -744,7 +744,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 03月 + 03 Month </div> </li> <li role="button" @@ -753,7 +753,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 04月 + 04 Month </div> </li> <li role="button" @@ -762,7 +762,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 05月 + 05 Month </div> </li> <li role="button" @@ -771,7 +771,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 06月 + 06 Month </div> </li> <li role="button" @@ -780,7 +780,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 07月 + 07 Month </div> </li> <li role="button" @@ -789,7 +789,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 08月 + 08 Month </div> </li> <li role="button" @@ -798,7 +798,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 09月 + 09 Month </div> </li> <li role="button" @@ -807,7 +807,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 10月 + 10 Month </div> </li> <li role="button" @@ -816,7 +816,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 11月 + 11 Month </div> </li> <li role="button" @@ -825,7 +825,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 12月 + 12 Month </div> </li> </ul> @@ -840,7 +840,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 01日 + 01 Day </div> </li> <li role="button" @@ -849,7 +849,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 02日 + 02 Day </div> </li> <li role="button" @@ -858,7 +858,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 03日 + 03 Day </div> </li> <li role="button" @@ -867,7 +867,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 04日 + 04 Day </div> </li> <li role="button" @@ -876,7 +876,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 05日 + 05 Day </div> </li> <li role="button" @@ -885,7 +885,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 06日 + 06 Day </div> </li> <li role="button" @@ -894,7 +894,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 07日 + 07 Day </div> </li> <li role="button" @@ -903,7 +903,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 08日 + 08 Day </div> </li> <li role="button" @@ -912,7 +912,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 09日 + 09 Day </div> </li> <li role="button" @@ -921,7 +921,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 10日 + 10 Day </div> </li> <li role="button" @@ -930,7 +930,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 11日 + 11 Day </div> </li> <li role="button" @@ -939,7 +939,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 12日 + 12 Day </div> </li> <li role="button" @@ -948,7 +948,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 13日 + 13 Day </div> </li> <li role="button" @@ -957,7 +957,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 14日 + 14 Day </div> </li> <li role="button" @@ -966,7 +966,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 15日 + 15 Day </div> </li> <li role="button" @@ -975,7 +975,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 16日 + 16 Day </div> </li> <li role="button" @@ -984,7 +984,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 17日 + 17 Day </div> </li> <li role="button" @@ -993,7 +993,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 18日 + 18 Day </div> </li> <li role="button" @@ -1002,7 +1002,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 19日 + 19 Day </div> </li> <li role="button" @@ -1011,7 +1011,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 20日 + 20 Day </div> </li> <li role="button" @@ -1020,7 +1020,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 21日 + 21 Day </div> </li> <li role="button" @@ -1029,7 +1029,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 22日 + 22 Day </div> </li> <li role="button" @@ -1038,7 +1038,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 23日 + 23 Day </div> </li> <li role="button" @@ -1047,7 +1047,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 24日 + 24 Day </div> </li> <li role="button" @@ -1056,7 +1056,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 25日 + 25 Day </div> </li> <li role="button" @@ -1065,7 +1065,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 26日 + 26 Day </div> </li> <li role="button" @@ -1074,7 +1074,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 27日 + 27 Day </div> </li> <li role="button" @@ -1083,7 +1083,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 28日 + 28 Day </div> </li> <li role="button" @@ -1092,7 +1092,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 29日 + 29 Day </div> </li> <li role="button" @@ -1101,7 +1101,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 30日 + 30 Day </div> </li> <li role="button" @@ -1110,7 +1110,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 31日 + 31 Day </div> </li> </ul> @@ -1132,15 +1132,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 选择时间 + Choose Time </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -1814,15 +1814,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 选择完整时间 + Choose DateTime </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -3072,15 +3072,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 选择年月日小时 + Choose DateHour </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -3784,15 +3784,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 选项过滤器 + Option Filter </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -4151,15 +4151,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 自定义列排序 + Columns Order </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -4175,7 +4175,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 01月 + 01 Month </div> </li> <li role="button" @@ -4184,7 +4184,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 02月 + 02 Month </div> </li> <li role="button" @@ -4193,7 +4193,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 03月 + 03 Month </div> </li> <li role="button" @@ -4202,7 +4202,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 04月 + 04 Month </div> </li> <li role="button" @@ -4211,7 +4211,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 05月 + 05 Month </div> </li> <li role="button" @@ -4220,7 +4220,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 06月 + 06 Month </div> </li> <li role="button" @@ -4229,7 +4229,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 07月 + 07 Month </div> </li> <li role="button" @@ -4238,7 +4238,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 08月 + 08 Month </div> </li> <li role="button" @@ -4247,7 +4247,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 09月 + 09 Month </div> </li> <li role="button" @@ -4256,7 +4256,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 10月 + 10 Month </div> </li> <li role="button" @@ -4265,7 +4265,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 11月 + 11 Month </div> </li> <li role="button" @@ -4274,7 +4274,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 12月 + 12 Month </div> </li> </ul> @@ -4289,7 +4289,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 01日 + 01 Day </div> </li> <li role="button" @@ -4298,7 +4298,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 02日 + 02 Day </div> </li> <li role="button" @@ -4307,7 +4307,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 03日 + 03 Day </div> </li> <li role="button" @@ -4316,7 +4316,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 04日 + 04 Day </div> </li> <li role="button" @@ -4325,7 +4325,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 05日 + 05 Day </div> </li> <li role="button" @@ -4334,7 +4334,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 06日 + 06 Day </div> </li> <li role="button" @@ -4343,7 +4343,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 07日 + 07 Day </div> </li> <li role="button" @@ -4352,7 +4352,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 08日 + 08 Day </div> </li> <li role="button" @@ -4361,7 +4361,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 09日 + 09 Day </div> </li> <li role="button" @@ -4370,7 +4370,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 10日 + 10 Day </div> </li> <li role="button" @@ -4379,7 +4379,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 11日 + 11 Day </div> </li> <li role="button" @@ -4388,7 +4388,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 12日 + 12 Day </div> </li> <li role="button" @@ -4397,7 +4397,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 13日 + 13 Day </div> </li> <li role="button" @@ -4406,7 +4406,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 14日 + 14 Day </div> </li> <li role="button" @@ -4415,7 +4415,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 15日 + 15 Day </div> </li> <li role="button" @@ -4424,7 +4424,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 16日 + 16 Day </div> </li> <li role="button" @@ -4433,7 +4433,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 17日 + 17 Day </div> </li> <li role="button" @@ -4442,7 +4442,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 18日 + 18 Day </div> </li> <li role="button" @@ -4451,7 +4451,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 19日 + 19 Day </div> </li> <li role="button" @@ -4460,7 +4460,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 20日 + 20 Day </div> </li> <li role="button" @@ -4469,7 +4469,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 21日 + 21 Day </div> </li> <li role="button" @@ -4478,7 +4478,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 22日 + 22 Day </div> </li> <li role="button" @@ -4487,7 +4487,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 23日 + 23 Day </div> </li> <li role="button" @@ -4496,7 +4496,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 24日 + 24 Day </div> </li> <li role="button" @@ -4505,7 +4505,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 25日 + 25 Day </div> </li> <li role="button" @@ -4514,7 +4514,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 26日 + 26 Day </div> </li> <li role="button" @@ -4523,7 +4523,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 27日 + 27 Day </div> </li> <li role="button" @@ -4532,7 +4532,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 28日 + 28 Day </div> </li> <li role="button" @@ -4541,7 +4541,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 29日 + 29 Day </div> </li> <li role="button" @@ -4550,7 +4550,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 30日 + 30 Day </div> </li> <li role="button" @@ -4559,7 +4559,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 31日 + 31 Day </div> </li> </ul> @@ -4574,7 +4574,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 2020年 + 2020 Year </div> </li> <li role="button" @@ -4583,7 +4583,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2021年 + 2021 Year </div> </li> <li role="button" @@ -4592,7 +4592,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2022年 + 2022 Year </div> </li> <li role="button" @@ -4601,7 +4601,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2023年 + 2023 Year </div> </li> <li role="button" @@ -4610,7 +4610,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2024年 + 2024 Year </div> </li> <li role="button" @@ -4619,7 +4619,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 2025年 + 2025 Year </div> </li> </ul> diff --git a/src/dialog/test/__snapshots__/demo.spec.js.snap b/src/dialog/test/__snapshots__/demo.spec.js.snap index 50d33318e..e5e2c0793 100644 --- a/src/dialog/test/__snapshots__/demo.spec.js.snap +++ b/src/dialog/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 提示弹窗 + Alert </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 提示弹窗(无标题) + Alert without title </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -32,7 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 确认弹窗 + Confirm dialog </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -46,7 +46,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 提示弹窗 + Alert </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 提示弹窗(无标题) + Alert without title </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -72,7 +72,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 异步关闭 + Before Close </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -86,7 +86,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 组件调用 + Component Call </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -97,11 +97,11 @@ exports[`should render demo and match snapshot 1`] = ` <transition-stub> <div class="van-popup van-popup--center van-dialog" role="dialog" - aria-labelledby="标题" + aria-labelledby="Title" style="display: none;" > <div class="van-dialog__header"> - 标题 + Title </div> <div class="van-dialog__content"> <img src="https://img.yzcdn.cn/vant/apple-3.jpg"> @@ -112,7 +112,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 取消 + Cancel </span> </div> </button> @@ -121,7 +121,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 确认弹窗 + Confirm dialog </span> </div> </button> diff --git a/src/divider/test/__snapshots__/demo.spec.js.snap b/src/divider/test/__snapshots__/demo.spec.js.snap index dd4b21953..6435f0fca 100644 --- a/src/divider/test/__snapshots__/demo.spec.js.snap +++ b/src/divider/test/__snapshots__/demo.spec.js.snap @@ -11,26 +11,26 @@ exports[`should render demo and match snapshot 1`] = ` <div role="separator" class="van-divider van-divider--hairline van-divider--content-center" > - 文本 + Text </div> </div> <div> <div role="separator" class="van-divider van-divider--hairline van-divider--content-left" > - 文本 + Text </div> <div role="separator" class="van-divider van-divider--hairline van-divider--content-right" > - 文本 + Text </div> </div> <div> <div role="separator" class="van-divider van-divider--dashed van-divider--content-center" > - 文本 + Text </div> </div> <div> @@ -38,7 +38,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-divider van-divider--hairline van-divider--content-center" style="border-color: #1989fa; color: rgb(25, 137, 250); padding: 0px 16px;" > - 文本 + Text </div> </div> `; diff --git a/src/dropdown-menu/test/__snapshots__/demo.spec.js.snap b/src/dropdown-menu/test/__snapshots__/demo.spec.js.snap index 5f4f46f11..e631090bd 100644 --- a/src/dropdown-menu/test/__snapshots__/demo.spec.js.snap +++ b/src/dropdown-menu/test/__snapshots__/demo.spec.js.snap @@ -10,7 +10,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 全部商品 + Option1 </div> </span> </div> @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 默认排序 + Option A </div> </span> </div> @@ -52,7 +52,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 全部商品 + Option1 </div> </span> </div> @@ -62,7 +62,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 筛选 + Title </div> </span> </div> @@ -94,7 +94,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 全部商品 + Option1 </div> </span> </div> @@ -104,7 +104,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 默认排序 + Option A </div> </span> </div> @@ -136,7 +136,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title van-dropdown-menu__title--down"> <div class="van-ellipsis"> - 全部商品 + Option1 </div> </span> </div> @@ -146,7 +146,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title van-dropdown-menu__title--down"> <div class="van-ellipsis"> - 默认排序 + Option A </div> </span> </div> @@ -178,7 +178,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 全部商品 + Option1 </div> </span> </div> @@ -188,7 +188,7 @@ exports[`should render demo and match snapshot 1`] = ` > <span class="van-dropdown-menu__title"> <div class="van-ellipsis"> - 默认排序 + Option A </div> </span> </div> diff --git a/src/empty/test/__snapshots__/demo.spec.js.snap b/src/empty/test/__snapshots__/demo.spec.js.snap index c826b82e6..ad6fd9b2b 100644 --- a/src/empty/test/__snapshots__/demo.spec.js.snap +++ b/src/empty/test/__snapshots__/demo.spec.js.snap @@ -7,7 +7,7 @@ exports[`should render demo and match snapshot 1`] = ` <img src="https://img.yzcdn.cn/vant/empty-image-default.png"> </div> <p class="van-empty__description"> - 描述文字 + Description </p> </div> </div> @@ -24,7 +24,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 通用错误 + Error </span> </div> <div role="tab" @@ -32,7 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 网络错误 + Network </span> </div> <div role="tab" @@ -40,7 +40,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 搜索提示 + Search </span> </div> <div class="van-tabs__line" @@ -59,7 +59,7 @@ exports[`should render demo and match snapshot 1`] = ` <img src="https://img.yzcdn.cn/vant/empty-image-error.png"> </div> <p class="van-empty__description"> - 描述文字 + Description </p> </div> </div> @@ -82,7 +82,7 @@ exports[`should render demo and match snapshot 1`] = ` <img src="https://img.yzcdn.cn/vant/custom-empty-image.png"> </div> <p class="van-empty__description"> - 描述文字 + Description </p> </div> </div> @@ -92,7 +92,7 @@ exports[`should render demo and match snapshot 1`] = ` <img src="https://img.yzcdn.cn/vant/empty-image-default.png"> </div> <p class="van-empty__description"> - 描述文字 + Description </p> <div class="van-empty__bottom"> <button type="button" @@ -100,7 +100,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 按钮 + Button </span> </div> </button> diff --git a/src/field/test/__snapshots__/demo.spec.js.snap b/src/field/test/__snapshots__/demo.spec.js.snap index a532d44b2..755255e22 100644 --- a/src/field/test/__snapshots__/demo.spec.js.snap +++ b/src/field/test/__snapshots__/demo.spec.js.snap @@ -6,14 +6,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Label </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="请输入文本" + placeholder="Text" > </div> </div> @@ -24,14 +24,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="请输入文本" + placeholder="Text" > </div> </div> @@ -39,14 +39,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 手机号 + Phone </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="tel" class="van-field__control" - placeholder="请输入手机号" + placeholder="Phone" > </div> </div> @@ -54,7 +54,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 整数 + Digit </span> </div> <div class="van-cell__value van-field__value"> @@ -62,7 +62,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="tel" inputmode="numeric" class="van-field__control" - placeholder="请输入整数" + placeholder="Digit" > </div> </div> @@ -70,7 +70,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 数字 + Number </span> </div> <div class="van-cell__value van-field__value"> @@ -78,7 +78,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" inputmode="decimal" class="van-field__control" - placeholder="请输入数字(支持小数)" + placeholder="Number" > </div> </div> @@ -86,14 +86,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 密码 + Password </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="password" class="van-field__control" - placeholder="请输入密码" + placeholder="Password" > </div> </div> @@ -103,7 +103,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </span> </div> <div class="van-cell__value van-field__value"> @@ -118,7 +118,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field van-field--disabled"> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </span> </div> <div class="van-cell__value van-field__value"> @@ -139,14 +139,14 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="显示图标" + placeholder="Show Icon" > <div class="van-field__right-icon"> <i class="van-badge__wrapper van-icon van-icon-warning-o"> @@ -162,14 +162,14 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="显示清除图标" + placeholder="Show Clear Icon" > </div> </div> @@ -179,14 +179,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--required van-field van-field--error"> <div class="van-cell__title van-field__label"> <span> - 用户名 + Username </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="请输入用户名" + placeholder="Username" > </div> </div> @@ -194,18 +194,18 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--required van-field"> <div class="van-cell__title van-field__label"> <span> - 手机号 + Phone </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="请输入手机号" + placeholder="Phone" > </div> <div class="van-field__error-message"> - 手机号格式错误 + Invalid phone </div> </div> </div> @@ -214,14 +214,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center van-field"> <div class="van-cell__title van-field__label"> <span> - 短信验证码 + SMS </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="请输入短信验证码" + placeholder="SMS" > <div class="van-field__button"> <button type="button" @@ -229,7 +229,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 发送验证码 + Send SMS </span> </div> </button> @@ -242,14 +242,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="在输入时执行格式化" + placeholder="Format On Change" > </div> </div> @@ -257,14 +257,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <input type="text" class="van-field__control" - placeholder="在失焦时执行格式化" + placeholder="Format On Blur" > </div> </div> @@ -272,16 +272,11 @@ exports[`should render demo and match snapshot 1`] = ` </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-cell__value van-cell__value--alone van-field__value"> <div class="van-field__body"> <textarea rows="1" class="van-field__control" - placeholder="请输入留言" + placeholder="Message" style="height: auto;" > </textarea> @@ -293,14 +288,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 留言 + Message </span> </div> <div class="van-cell__value van-field__value"> <div class="van-field__body"> <textarea rows="2" class="van-field__control" - placeholder="请输入留言" + placeholder="Message" style="height: auto;" > </textarea> @@ -318,14 +313,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Text </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="输入框内容右对齐" + placeholder="Input Align Right" > </div> </div> diff --git a/src/form/test/__snapshots__/demo.spec.js.snap b/src/form/test/__snapshots__/demo.spec.js.snap index eba4fd856..447c02c8c 100644 --- a/src/form/test/__snapshots__/demo.spec.js.snap +++ b/src/form/test/__snapshots__/demo.spec.js.snap @@ -6,7 +6,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 用户名 + Username </span> </div> <div class="van-cell__value van-field__value"> @@ -14,7 +14,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" name="username" class="van-field__control" - placeholder="用户名" + placeholder="Username" > </div> </div> @@ -22,7 +22,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 密码 + Password </span> </div> <div class="van-cell__value van-field__value"> @@ -30,7 +30,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="password" name="password" class="van-field__control" - placeholder="密码" + placeholder="Password" > </div> </div> @@ -41,7 +41,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 提交 + Submit </span> </div> </button> @@ -53,7 +53,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Label </span> </div> <div class="van-cell__value van-field__value"> @@ -61,7 +61,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" name="pattern" class="van-field__control" - placeholder="正则校验" + placeholder="Use pattern" > </div> </div> @@ -69,7 +69,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Label </span> </div> <div class="van-cell__value van-field__value"> @@ -77,7 +77,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" name="validator" class="van-field__control" - placeholder="函数校验" + placeholder="Use validator" > </div> </div> @@ -85,7 +85,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文本 + Label </span> </div> <div class="van-cell__value van-field__value"> @@ -93,7 +93,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" name="asyncValidator" class="van-field__control" - placeholder="异步函数校验" + placeholder="Use async validator" > </div> </div> @@ -104,7 +104,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 提交 + Submit </span> </div> </button> @@ -116,7 +116,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 开关 + Switch </span> </div> <div class="van-cell__value van-field__value"> @@ -137,7 +137,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 复选框 + Checkbox </span> </div> <div class="van-cell__value van-field__value"> @@ -160,7 +160,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 复选框组 + Checkbox Group </span> </div> <div class="van-cell__value van-field__value"> @@ -177,7 +177,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 1 + Checkbox 1 </span> </div> <div role="checkbox" @@ -190,7 +190,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 复选框 2 + Checkbox 2 </span> </div> </div> @@ -201,7 +201,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 单选框 + Radio </span> </div> <div class="van-cell__value van-field__value"> @@ -220,7 +220,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -233,7 +233,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -244,7 +244,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 步进器 + Stepper </span> </div> <div class="van-cell__value van-field__value"> @@ -275,7 +275,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 评分 + Rate </span> </div> <div class="van-cell__value van-field__value"> @@ -353,7 +353,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 滑块 + Slider </span> </div> <div class="van-cell__value van-field__value"> @@ -383,7 +383,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-field"> <div class="van-cell__title van-field__label"> <span> - 文件上传 + Uploader </span> </div> <div class="van-cell__value van-field__value"> @@ -427,7 +427,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 选择器 + Picker </span> </div> <div class="van-cell__value van-field__value"> @@ -436,7 +436,7 @@ exports[`should render demo and match snapshot 1`] = ` name="picker" class="van-field__control" readonly - placeholder="点击选择城市" + placeholder="Select city" > </div> </div> @@ -447,7 +447,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 时间选择 + Datetime Picker </span> </div> <div class="van-cell__value van-field__value"> @@ -456,7 +456,7 @@ exports[`should render demo and match snapshot 1`] = ` name="datetimePicker" class="van-field__control" readonly - placeholder="点击选择时间" + placeholder="Select time" > </div> </div> @@ -467,7 +467,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 地区选择 + Area Picker </span> </div> <div class="van-cell__value van-field__value"> @@ -476,7 +476,7 @@ exports[`should render demo and match snapshot 1`] = ` name="area" class="van-field__control" readonly - placeholder="点击选择省市区" + placeholder="Select area" > </div> </div> @@ -487,7 +487,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 日历 + Calendar </span> </div> <div class="van-cell__value van-field__value"> @@ -496,7 +496,7 @@ exports[`should render demo and match snapshot 1`] = ` name="calendar" class="van-field__control" readonly - placeholder="点击选择日期" + placeholder="Select date" > </div> </div> @@ -507,7 +507,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 提交 + Submit </span> </div> </button> diff --git a/src/grid/test/__snapshots__/demo.spec.js.snap b/src/grid/test/__snapshots__/demo.spec.js.snap index 5963db128..f2a4ab92a 100644 --- a/src/grid/test/__snapshots__/demo.spec.js.snap +++ b/src/grid/test/__snapshots__/demo.spec.js.snap @@ -10,7 +10,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -21,7 +21,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -32,7 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -43,7 +43,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -69,7 +69,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -80,7 +80,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -91,7 +91,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -102,7 +102,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -113,7 +113,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -180,7 +180,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -191,7 +191,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -202,7 +202,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -213,7 +213,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -224,7 +224,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -235,7 +235,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -246,7 +246,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -257,7 +257,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -274,7 +274,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -285,7 +285,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -296,7 +296,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -307,7 +307,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -318,7 +318,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -329,7 +329,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -340,7 +340,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -351,7 +351,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -366,7 +366,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -377,7 +377,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -388,7 +388,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-photo-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -406,7 +406,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-home-o van-grid-item__icon"> </i> <span class="van-grid-item__text"> - 路由跳转 + Vue Router </span> </div> </div> @@ -420,7 +420,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-search van-grid-item__icon"> </i> <span class="van-grid-item__text"> - URL 跳转 + URL </span> </div> </div> @@ -437,7 +437,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> @@ -451,7 +451,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </i> <span class="van-grid-item__text"> - 文字 + Text </span> </div> </div> diff --git a/src/image/test/__snapshots__/demo.spec.js.snap b/src/image/test/__snapshots__/demo.spec.js.snap index 7aee515c8..02c555d61 100644 --- a/src/image/test/__snapshots__/demo.spec.js.snap +++ b/src/image/test/__snapshots__/demo.spec.js.snap @@ -228,7 +228,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="text"> - 默认提示 + Default Tip </div> </div> <div style="padding-left: 10px;" @@ -271,7 +271,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="text"> - 自定义提示 + Custom Tip </div> </div> </div> @@ -293,7 +293,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="text"> - 默认提示 + Default Tip </div> </div> <div style="padding-left: 10px;" @@ -311,7 +311,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="text"> - 自定义提示 + Custom Tip </div> </div> </div> diff --git a/src/index-bar/test/__snapshots__/demo.spec.js.snap b/src/index-bar/test/__snapshots__/demo.spec.js.snap index 8e939362d..8f4227d53 100644 --- a/src/index-bar/test/__snapshots__/demo.spec.js.snap +++ b/src/index-bar/test/__snapshots__/demo.spec.js.snap @@ -13,7 +13,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 基础用法 + Basic Usage </span> </div> <div role="tab" @@ -21,7 +21,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 自定义索引列表 + Custom Index List </span> </div> <div class="van-tabs__line" @@ -177,21 +177,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -205,21 +205,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -233,21 +233,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -261,21 +261,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -289,21 +289,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -317,21 +317,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -345,21 +345,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -373,21 +373,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -401,21 +401,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -429,21 +429,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -457,21 +457,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -485,21 +485,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -513,21 +513,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -541,21 +541,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -569,21 +569,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -597,21 +597,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -625,21 +625,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -653,21 +653,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -681,21 +681,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -709,21 +709,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -737,21 +737,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -765,21 +765,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -793,21 +793,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -821,21 +821,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -849,21 +849,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> @@ -877,21 +877,21 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> <div class="van-cell"> <div class="van-cell__title"> <span> - 文本 + Text </span> </div> </div> diff --git a/src/list/test/__snapshots__/demo.spec.js.snap b/src/list/test/__snapshots__/demo.spec.js.snap index 8025ce855..b61c279a0 100644 --- a/src/list/test/__snapshots__/demo.spec.js.snap +++ b/src/list/test/__snapshots__/demo.spec.js.snap @@ -11,7 +11,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 基础用法 + Basic Usage </span> </div> <div role="tab" @@ -19,7 +19,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 错误提示 + Error Info </span> </div> <div role="tab" @@ -27,7 +27,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 下拉刷新 + PullRefresh </span> </div> <div class="van-tabs__line" @@ -62,7 +62,7 @@ exports[`should render demo and match snapshot 1`] = ` </svg> </span> <span class="van-loading__text"> - 加载中... + Loading... </span> </div> </div> diff --git a/src/loading/test/__snapshots__/demo.spec.js.snap b/src/loading/test/__snapshots__/demo.spec.js.snap index 881b6c072..b2113929e 100644 --- a/src/loading/test/__snapshots__/demo.spec.js.snap +++ b/src/loading/test/__snapshots__/demo.spec.js.snap @@ -158,7 +158,7 @@ exports[`should render demo and match snapshot 1`] = ` </svg> </span> <span class="van-loading__text"> - 加载中... + Loading... </span> </div> </div> @@ -179,7 +179,7 @@ exports[`should render demo and match snapshot 1`] = ` </svg> </span> <span class="van-loading__text"> - 加载中... + Loading... </span> </div> </div> diff --git a/src/nav-bar/test/__snapshots__/demo.spec.js.snap b/src/nav-bar/test/__snapshots__/demo.spec.js.snap index 7222d14e8..7f35b69a2 100644 --- a/src/nav-bar/test/__snapshots__/demo.spec.js.snap +++ b/src/nav-bar/test/__snapshots__/demo.spec.js.snap @@ -8,15 +8,15 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow"> </i> <span class="van-nav-bar__text"> - 返回 + Back </span> </div> <div class="van-nav-bar__title van-ellipsis"> - 标题 + Title </div> <div class="van-nav-bar__right"> <span class="van-nav-bar__text"> - 按钮 + Button </span> </div> </div> @@ -29,11 +29,11 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow"> </i> <span class="van-nav-bar__text"> - 返回 + Back </span> </div> <div class="van-nav-bar__title van-ellipsis"> - 标题 + Title </div> <div class="van-nav-bar__right"> <i class="van-badge__wrapper van-icon van-icon-search" diff --git a/src/notice-bar/test/__snapshots__/demo.spec.js.snap b/src/notice-bar/test/__snapshots__/demo.spec.js.snap index be3288fd6..ab6b2df88 100644 --- a/src/notice-bar/test/__snapshots__/demo.spec.js.snap +++ b/src/notice-bar/test/__snapshots__/demo.spec.js.snap @@ -13,7 +13,7 @@ exports[`should render demo and match snapshot 1`] = ` <div style="transition-duration: 0s;" class="van-notice-bar__content" > - 在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。 + Technology is the common soul of the people who developed it. </div> </div> </div> @@ -28,7 +28,7 @@ exports[`should render demo and match snapshot 1`] = ` <div style="transition-duration: 0s;" class="van-notice-bar__content" > - 技术是开发它的人的共同灵魂。 + Some short text. </div> </div> </div> @@ -41,7 +41,7 @@ exports[`should render demo and match snapshot 1`] = ` <div style="transition-duration: 0s;" class="van-notice-bar__content van-ellipsis" > - 在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。 + Technology is the common soul of the people who developed it. </div> </div> </div> @@ -56,7 +56,7 @@ exports[`should render demo and match snapshot 1`] = ` <div style="transition-duration: 0s;" class="van-notice-bar__content" > - 在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。 + Technology is the common soul of the people who developed it. </div> </div> </div> @@ -71,7 +71,7 @@ exports[`should render demo and match snapshot 1`] = ` <div style="transition-duration: 0s;" class="van-notice-bar__content" > - 技术是开发它的人的共同灵魂。 + Some short text. </div> </div> <i class="van-badge__wrapper van-icon van-icon-cross van-notice-bar__right-icon"> @@ -86,7 +86,7 @@ exports[`should render demo and match snapshot 1`] = ` <div style="transition-duration: 0s;" class="van-notice-bar__content" > - 技术是开发它的人的共同灵魂。 + Some short text. </div> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-notice-bar__right-icon"> @@ -106,7 +106,7 @@ exports[`should render demo and match snapshot 1`] = ` <div style="transition-duration: 0s;" class="van-notice-bar__content" > - 技术是开发它的人的共同灵魂。 + Some short text. </div> </div> </div> @@ -130,17 +130,17 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-swipe-item" style="height: 0px;" > - 内容 1 + Content 1 </div> <div class="van-swipe-item" style="height: 0px;" > - 内容 2 + Content 2 </div> <div class="van-swipe-item" style="height: 0px;" > - 内容 3 + Content 3 </div> </div> </div> diff --git a/src/notify/test/__snapshots__/demo.spec.js.snap b/src/notify/test/__snapshots__/demo.spec.js.snap index ef7ea6ff9..f9b023818 100644 --- a/src/notify/test/__snapshots__/demo.spec.js.snap +++ b/src/notify/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 基础用法 + Basic Usage </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -22,7 +22,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 主要通知 + Primary </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -34,7 +34,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 成功通知 + Success </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -46,7 +46,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 危险通知 + Danger </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 警告通知 + Warning </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -72,7 +72,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义颜色 + Custom Color </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -84,7 +84,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义时长 + Custom Duration </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -98,7 +98,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 组件调用 + Component Call </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> diff --git a/src/number-keyboard/test/__snapshots__/demo.spec.js.snap b/src/number-keyboard/test/__snapshots__/demo.spec.js.snap index c007072e4..d4614fa5b 100644 --- a/src/number-keyboard/test/__snapshots__/demo.spec.js.snap +++ b/src/number-keyboard/test/__snapshots__/demo.spec.js.snap @@ -6,7 +6,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" > <div class="van-cell__value van-cell__value--alone"> - 弹出默认键盘 + Show Default Keyboard </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> </i> @@ -16,7 +16,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" > <div class="van-cell__value van-cell__value--alone"> - 弹出带右侧栏的键盘 + Show Keyboard With Sidebar </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> </i> @@ -26,7 +26,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" > <div class="van-cell__value van-cell__value--alone"> - 弹出身份证号键盘 + Show IdNumber Keyboard </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> </i> @@ -36,7 +36,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" > <div class="van-cell__value van-cell__value--alone"> - 弹出带标题的键盘 + Show Keyboard With Title </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> </i> @@ -46,7 +46,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" > <div class="van-cell__value van-cell__value--alone"> - 弹出配置多个按键的键盘 + Show Keyboard With Multiple ExtraKey </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> </i> @@ -57,7 +57,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 双向绑定 + Bind Value </span> </div> <div class="van-cell__value van-field__value"> @@ -65,7 +65,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" class="van-field__control" readonly - placeholder="点此输入" + placeholder="Click To Input" > </div> </div> @@ -304,7 +304,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" class="van-key van-key--blue van-key--large" > - 完成 + Close </div> </div> </div> @@ -319,7 +319,7 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-number-keyboard__close" > - 完成 + Close </button> </div> <div class="van-number-keyboard__body"> @@ -437,12 +437,12 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-number-keyboard__header"> <h2 class="van-number-keyboard__title"> - 键盘标题 + Keyboard Title </h2> <button type="button" class="van-number-keyboard__close" > - 完成 + Close </button> </div> <div class="van-number-keyboard__body"> @@ -678,7 +678,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" class="van-key van-key--blue van-key--large" > - 完成 + Close </div> </div> </div> diff --git a/src/overlay/test/__snapshots__/demo.spec.js.snap b/src/overlay/test/__snapshots__/demo.spec.js.snap index 0c5add798..da491d432 100644 --- a/src/overlay/test/__snapshots__/demo.spec.js.snap +++ b/src/overlay/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 显示遮罩层 + Show Overlay </span> </div> </button> @@ -22,7 +22,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 嵌入内容 + Embedded Content </span> </div> </button> diff --git a/src/pagination/test/__snapshots__/demo.spec.js.snap b/src/pagination/test/__snapshots__/demo.spec.js.snap index b710e84cf..1887362a9 100644 --- a/src/pagination/test/__snapshots__/demo.spec.js.snap +++ b/src/pagination/test/__snapshots__/demo.spec.js.snap @@ -4,7 +4,7 @@ exports[`should render demo and match snapshot 1`] = ` <div> <ul class="van-pagination"> <li class="van-pagination__item van-pagination__item--disabled van-pagination__prev van-hairline"> - 上一页 + Prev </li> <li class="van-pagination__item van-pagination__item--active van-pagination__page van-hairline"> 1 @@ -22,7 +22,7 @@ exports[`should render demo and match snapshot 1`] = ` 5 </li> <li class="van-pagination__item van-pagination__next van-hairline"> - 下一页 + Next </li> </ul> </div> @@ -31,20 +31,20 @@ exports[`should render demo and match snapshot 1`] = ` size="small" > <li class="van-pagination__item van-pagination__item--disabled van-pagination__prev van-hairline"> - 上一页 + Prev </li> <li class="van-pagination__page-desc"> 1/12 </li> <li class="van-pagination__item van-pagination__next van-hairline"> - 下一页 + Next </li> </ul> </div> <div> <ul class="van-pagination"> <li class="van-pagination__item van-pagination__item--disabled van-pagination__prev van-hairline"> - 上一页 + Prev </li> <li class="van-pagination__item van-pagination__item--active van-pagination__page van-hairline"> 1 @@ -59,7 +59,7 @@ exports[`should render demo and match snapshot 1`] = ` ... </li> <li class="van-pagination__item van-pagination__next van-hairline"> - 下一页 + Next </li> </ul> </div> diff --git a/src/password-input/test/__snapshots__/demo.spec.js.snap b/src/password-input/test/__snapshots__/demo.spec.js.snap index 2bbb969b3..7902ebbdb 100644 --- a/src/password-input/test/__snapshots__/demo.spec.js.snap +++ b/src/password-input/test/__snapshots__/demo.spec.js.snap @@ -145,7 +145,7 @@ exports[`should render demo and match snapshot 1`] = ` </li> </ul> <div class="van-password-input__info"> - 密码为 6 位数字 + Some tips </div> </div> </div> diff --git a/src/picker/test/__snapshots__/demo.spec.js.snap b/src/picker/test/__snapshots__/demo.spec.js.snap index 5f9aa5f17..39810b44e 100644 --- a/src/picker/test/__snapshots__/demo.spec.js.snap +++ b/src/picker/test/__snapshots__/demo.spec.js.snap @@ -7,15 +7,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -31,7 +31,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 杭州 + Delaware </div> </li> <li role="button" @@ -40,7 +40,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 宁波 + Florida </div> </li> <li role="button" @@ -49,7 +49,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 温州 + Georqia </div> </li> <li role="button" @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 绍兴 + Indiana </div> </li> <li role="button" @@ -67,34 +67,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 衢州 + Maine </div> </li> </ul> @@ -116,15 +89,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -140,7 +113,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 杭州 + Delaware </div> </li> <li role="button" @@ -149,7 +122,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 宁波 + Florida </div> </li> <li role="button" @@ -158,7 +131,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 温州 + Georqia </div> </li> <li role="button" @@ -167,7 +140,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 绍兴 + Indiana </div> </li> <li role="button" @@ -176,34 +149,7 @@ exports[`should render demo and match snapshot 1`] = ` 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"> - 衢州 + Maine </div> </li> </ul> @@ -225,15 +171,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -249,7 +195,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 周一 + Monday </div> </li> <li role="button" @@ -258,7 +204,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 周二 + Tuesday </div> </li> <li role="button" @@ -267,7 +213,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 周三 + Wednesday </div> </li> <li role="button" @@ -276,7 +222,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 周四 + Thusday </div> </li> <li role="button" @@ -285,7 +231,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 周五 + Friday </div> </li> </ul> @@ -300,7 +246,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 上午 + Morging </div> </li> <li role="button" @@ -309,7 +255,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 下午 + Afternoon </div> </li> <li role="button" @@ -318,7 +264,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 晚上 + Evening </div> </li> </ul> @@ -340,15 +286,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -364,7 +310,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 浙江 + Zhejiang </div> </li> <li role="button" @@ -373,7 +319,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 福建 + Fujian </div> </li> </ul> @@ -388,7 +334,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 杭州 + Hangzhou </div> </li> <li role="button" @@ -397,7 +343,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 温州 + Wenzhou </div> </li> </ul> @@ -412,7 +358,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 西湖区 + Xihu </div> </li> <li role="button" @@ -421,7 +367,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 余杭区 + Yuhang </div> </li> </ul> @@ -443,15 +389,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -467,7 +413,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--disabled" > <div class="van-ellipsis"> - 杭州 + Delaware </div> </li> <li role="button" @@ -476,7 +422,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 宁波 + Florida </div> </li> <li role="button" @@ -485,7 +431,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 温州 + Georqia </div> </li> </ul> @@ -507,15 +453,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-picker__columns" @@ -531,7 +477,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 浙江 + Group1 </div> </li> <li role="button" @@ -540,7 +486,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 福建 + Group2 </div> </li> </ul> @@ -555,7 +501,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 杭州 + Delaware </div> </li> <li role="button" @@ -564,7 +510,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 宁波 + Florida </div> </li> <li role="button" @@ -573,7 +519,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 温州 + Georqia </div> </li> <li role="button" @@ -582,7 +528,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 嘉兴 + Indiana </div> </li> <li role="button" @@ -591,7 +537,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 湖州 + Maine </div> </li> </ul> @@ -613,15 +559,15 @@ exports[`should render demo and match snapshot 1`] = ` <button type="button" class="van-picker__cancel" > - 取消 + Cancel </button> <div class="van-picker__title van-ellipsis"> - 标题 + Title </div> <button type="button" class="van-picker__confirm" > - 确认 + Confirm </button> </div> <div class="van-loading van-loading--circular van-picker__loading"> @@ -651,7 +597,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 浙江 + Group1 </div> </li> <li role="button" @@ -660,7 +606,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 福建 + Group2 </div> </li> </ul> @@ -675,7 +621,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 杭州 + Delaware </div> </li> <li role="button" @@ -684,7 +630,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 宁波 + Florida </div> </li> <li role="button" @@ -693,7 +639,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item van-picker-column__item--selected" > <div class="van-ellipsis"> - 温州 + Georqia </div> </li> <li role="button" @@ -702,7 +648,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 嘉兴 + Indiana </div> </li> <li role="button" @@ -711,7 +657,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-picker-column__item" > <div class="van-ellipsis"> - 湖州 + Maine </div> </li> </ul> @@ -734,7 +680,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 城市 + City </span> </div> <div class="van-cell__value van-field__value"> @@ -742,7 +688,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="text" class="van-field__control" readonly - placeholder="选择城市" + placeholder="Choose City" > </div> </div> diff --git a/src/popover/test/__snapshots__/demo.spec.js.snap b/src/popover/test/__snapshots__/demo.spec.js.snap index 8c92be4b8..3504249f3 100644 --- a/src/popover/test/__snapshots__/demo.spec.js.snap +++ b/src/popover/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 浅色风格 + Light Theme </span> </div> </button> @@ -19,7 +19,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 深色风格 + Dark Theme </span> </div> </button> @@ -32,7 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title van-field__label"> <span> - 选择弹出位置 + Placement </span> </div> <div class="van-cell__value van-field__value"> @@ -59,7 +59,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 展示图标 + Show Icon </span> </div> </button> @@ -70,7 +70,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 禁用选项 + Disable Action </span> </div> </button> @@ -83,7 +83,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 自定义内容 + Custom Content </span> </div> </button> diff --git a/src/popup/test/__snapshots__/demo.spec.js.snap b/src/popup/test/__snapshots__/demo.spec.js.snap index e11234329..6b98ed37d 100644 --- a/src/popup/test/__snapshots__/demo.spec.js.snap +++ b/src/popup/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 展示弹出层 + Show Popup </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -26,7 +26,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 顶部弹出 + From Top </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -38,7 +38,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 底部弹出 + From Bottom </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -50,7 +50,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 左侧弹出 + From Left </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -62,7 +62,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 右侧弹出 + From Right </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -92,7 +92,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 关闭图标 + Close Icon </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -104,7 +104,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义图标 + Custom Icon </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -116,7 +116,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 图标位置 + Icon Position </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -142,7 +142,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 圆角弹窗 + Round Corner </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -160,7 +160,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 指定挂载节点 + Get Container </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> diff --git a/src/progress/test/__snapshots__/demo.spec.js.snap b/src/progress/test/__snapshots__/demo.spec.js.snap index 7abb34160..1c6749539 100644 --- a/src/progress/test/__snapshots__/demo.spec.js.snap +++ b/src/progress/test/__snapshots__/demo.spec.js.snap @@ -50,7 +50,7 @@ exports[`should render demo and match snapshot 1`] = ` <span style="left: 0px; background: rgb(242, 130, 106);" class="van-progress__pivot" > - 橙色 + Orange </span> </span> </div> @@ -61,7 +61,7 @@ exports[`should render demo and match snapshot 1`] = ` <span style="left: 0px; background: rgb(238, 10, 36);" class="van-progress__pivot" > - 红色 + Red </span> </span> </div> @@ -72,7 +72,7 @@ exports[`should render demo and match snapshot 1`] = ` <span style="left: 0px; background: rgb(114, 50, 221);" class="van-progress__pivot" > - 紫色 + Purple </span> </span> </div> diff --git a/src/pull-refresh/test/__snapshots__/demo.spec.js.snap b/src/pull-refresh/test/__snapshots__/demo.spec.js.snap index 1512c202c..072104e50 100644 --- a/src/pull-refresh/test/__snapshots__/demo.spec.js.snap +++ b/src/pull-refresh/test/__snapshots__/demo.spec.js.snap @@ -11,7 +11,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 基础用法 + Basic Usage </span> </div> <div role="tab" @@ -19,7 +19,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 成功提示 + Success Tip </span> </div> <div role="tab" @@ -27,7 +27,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 自定义提示 + Custom Tips </span> </div> <div class="van-tabs__line" @@ -48,7 +48,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-pull-refresh__head"> </div> <p> - 下拉试试 + Try it down </p> </div> </div> diff --git a/src/radio/test/__snapshots__/demo.spec.js.snap b/src/radio/test/__snapshots__/demo.spec.js.snap index 73c8bd772..e1e92ad19 100644 --- a/src/radio/test/__snapshots__/demo.spec.js.snap +++ b/src/radio/test/__snapshots__/demo.spec.js.snap @@ -15,7 +15,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -28,7 +28,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -47,7 +47,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -60,7 +60,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -79,7 +79,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label van-radio__label--disabled"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -92,7 +92,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label van-radio__label--disabled"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -111,7 +111,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -124,7 +124,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -145,7 +145,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -158,7 +158,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -181,7 +181,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -196,7 +196,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -214,7 +214,7 @@ exports[`should render demo and match snapshot 1`] = ` <img src="https://img.yzcdn.cn/vant/user-active.png"> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -226,7 +226,7 @@ exports[`should render demo and match snapshot 1`] = ` <img src="https://img.yzcdn.cn/vant/user-inactive.png"> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -245,7 +245,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 1 + Radio 1 </span> </div> <div role="radio" @@ -258,7 +258,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-radio__label"> - 单选框 2 + Radio 2 </span> </div> </div> @@ -274,7 +274,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 单选框1 + Radio1 </span> </div> <div role="radio" @@ -294,7 +294,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 单选框2 + Radio2 </span> </div> <div role="radio" diff --git a/src/search/test/__snapshots__/demo.spec.js.snap b/src/search/test/__snapshots__/demo.spec.js.snap index e9606c245..b26658344 100644 --- a/src/search/test/__snapshots__/demo.spec.js.snap +++ b/src/search/test/__snapshots__/demo.spec.js.snap @@ -13,7 +13,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-field__body"> <input type="search" class="van-field__control" - placeholder="请输入搜索关键词" + placeholder="Placeholder" > </div> </div> @@ -34,7 +34,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-field__body"> <input type="search" class="van-field__control" - placeholder="请输入搜索关键词" + placeholder="Placeholder" > </div> </div> @@ -44,7 +44,7 @@ exports[`should render demo and match snapshot 1`] = ` role="button" tabindex="0" > - 取消 + Cancel </div> </div> </form> @@ -61,7 +61,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-field__body"> <input type="search" class="van-field__control van-field__control--center" - placeholder="请输入搜索关键词" + placeholder="Placeholder" > </div> </div> @@ -82,7 +82,7 @@ exports[`should render demo and match snapshot 1`] = ` <input type="search" class="van-field__control" disabled - placeholder="请输入搜索关键词" + placeholder="Placeholder" > </div> </div> @@ -104,7 +104,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-field__body"> <input type="search" class="van-field__control" - placeholder="请输入搜索关键词" + placeholder="Placeholder" > </div> </div> @@ -116,7 +116,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-search van-search--show-action"> <div class="van-search__content van-search__content--square"> <div class="van-search__label"> - 地址 + Address </div> <div class="van-cell van-cell--borderless van-field"> <div class="van-field__left-icon"> @@ -127,7 +127,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-field__body"> <input type="search" class="van-field__control" - placeholder="请输入搜索关键词" + placeholder="Placeholder" > </div> </div> @@ -138,7 +138,7 @@ exports[`should render demo and match snapshot 1`] = ` tabindex="0" > <div> - 搜索 + Search </div> </div> </div> diff --git a/src/share-sheet/test/__snapshots__/demo.spec.js.snap b/src/share-sheet/test/__snapshots__/demo.spec.js.snap index 8793f3bd3..c7e718993 100644 --- a/src/share-sheet/test/__snapshots__/demo.spec.js.snap +++ b/src/share-sheet/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 显示分享面板 + Show ShareSheet </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -26,7 +26,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 显示分享面板 + Show ShareSheet </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -44,7 +44,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 显示分享面板 + Show ShareSheet </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -62,7 +62,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 显示分享面板 + Show ShareSheet </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> diff --git a/src/sidebar/test/__snapshots__/demo.spec.js.snap b/src/sidebar/test/__snapshots__/demo.spec.js.snap index c295ceaf6..d7a1e809b 100644 --- a/src/sidebar/test/__snapshots__/demo.spec.js.snap +++ b/src/sidebar/test/__snapshots__/demo.spec.js.snap @@ -7,22 +7,22 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-grid-item__content van-grid-item__content--center"> <h3 class="demo-sidebar-title"> - 基础用法 + Basic Usage </h3> <div class="van-sidebar"> <a class="van-sidebar-item van-sidebar-item--select"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title </div> </a> <a class="van-sidebar-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title </div> </a> <a class="van-sidebar-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title </div> </a> </div> @@ -33,19 +33,19 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-grid-item__content van-grid-item__content--center"> <h3 class="demo-sidebar-title"> - 徽标提示 + Show Badge </h3> <div class="van-sidebar"> <a class="van-sidebar-item van-sidebar-item--select"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title <div class="van-badge van-badge--dot van-badge--fixed"> </div> </div> </a> <a class="van-sidebar-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title <div class="van-badge van-badge--fixed"> 5 </div> @@ -53,7 +53,7 @@ exports[`should render demo and match snapshot 1`] = ` </a> <a class="van-sidebar-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title <div class="van-badge van-badge--fixed"> 99+ </div> @@ -67,22 +67,22 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-grid-item__content van-grid-item__content--center"> <h3 class="demo-sidebar-title"> - 禁用选项 + Disabled </h3> <div class="van-sidebar"> <a class="van-sidebar-item van-sidebar-item--select"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title </div> </a> <a class="van-sidebar-item van-sidebar-item--disabled"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title </div> </a> <a class="van-sidebar-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名 + Title </div> </a> </div> @@ -93,22 +93,22 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-grid-item__content van-grid-item__content--center"> <h3 class="demo-sidebar-title"> - 监听切换事件 + Change Event </h3> <div class="van-sidebar"> <a class="van-sidebar-item van-sidebar-item--select"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名1 + Title1 </div> </a> <a class="van-sidebar-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名2 + Title2 </div> </a> <a class="van-sidebar-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 标签名3 + Title3 </div> </a> </div> diff --git a/src/stepper/test/__snapshots__/demo.spec.js.snap b/src/stepper/test/__snapshots__/demo.spec.js.snap index af0671c29..3231e9305 100644 --- a/src/stepper/test/__snapshots__/demo.spec.js.snap +++ b/src/stepper/test/__snapshots__/demo.spec.js.snap @@ -4,7 +4,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 基础用法 + Basic Usage </span> </div> <div class="van-cell__value"> @@ -31,7 +31,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 步长设置 + Step </span> </div> <div class="van-cell__value"> @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 限制输入范围 + Range </span> </div> <div class="van-cell__value"> @@ -85,7 +85,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 限制输入整数 + Integer </span> </div> <div class="van-cell__value"> @@ -112,7 +112,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 禁用状态 + Disabled </span> </div> <div class="van-cell__value"> @@ -140,7 +140,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 禁用输入框 + Disable Input </span> </div> <div class="van-cell__value"> @@ -168,7 +168,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 固定小数位数 + Decimal Length </span> </div> <div class="van-cell__value"> @@ -195,7 +195,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 自定义大小 + Custom Size </span> </div> <div class="van-cell__value"> @@ -225,7 +225,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 异步变更 + Async Change </span> </div> <div class="van-cell__value"> @@ -252,7 +252,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 圆角风格 + Round Theme </span> </div> <div class="van-cell__value"> diff --git a/src/steps/test/__snapshots__/demo.spec.js.snap b/src/steps/test/__snapshots__/demo.spec.js.snap index 84c3809fd..6c18c6e0e 100644 --- a/src/steps/test/__snapshots__/demo.spec.js.snap +++ b/src/steps/test/__snapshots__/demo.spec.js.snap @@ -6,7 +6,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-steps__items"> <div class="van-hairline van-step van-step--horizontal van-step--finish"> <div class="van-step__title"> - 买家下单 + Step1 </div> <div class="van-step__circle-container"> <i class="van-step__circle"> @@ -17,7 +17,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-hairline van-step van-step--horizontal van-step--process"> <div class="van-step__title van-step__title--active"> - 商家接单 + Step2 </div> <div class="van-step__circle-container"> <i class="van-badge__wrapper van-icon van-icon-checked van-step__icon van-step__icon--active"> @@ -28,7 +28,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-hairline van-step van-step--horizontal"> <div class="van-step__title"> - 买家提货 + Step3 </div> <div class="van-step__circle-container"> <i class="van-step__circle"> @@ -39,7 +39,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-hairline van-step van-step--horizontal"> <div class="van-step__title"> - 交易完成 + Step4 </div> <div class="van-step__circle-container"> <i class="van-step__circle"> @@ -55,7 +55,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 下一步 + Next Step </span> </div> </button> @@ -65,7 +65,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-steps__items"> <div class="van-hairline van-step van-step--horizontal van-step--finish"> <div class="van-step__title"> - 买家下单 + Step1 </div> <div class="van-step__circle-container"> <i class="van-badge__wrapper van-icon van-icon-arrow van-step__icon"> @@ -80,7 +80,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-step__title van-step__title--active" style="color: rgb(51, 136, 255);" > - 商家接单 + Step2 </div> <div class="van-step__circle-container"> <i class="van-badge__wrapper van-icon van-icon-success van-step__icon van-step__icon--active" @@ -93,7 +93,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-hairline van-step van-step--horizontal"> <div class="van-step__title"> - 买家提货 + Step3 </div> <div class="van-step__circle-container"> <i class="van-badge__wrapper van-icon van-icon-arrow van-step__icon"> @@ -104,7 +104,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-hairline van-step van-step--horizontal"> <div class="van-step__title"> - 交易完成 + Step4 </div> <div class="van-step__circle-container"> <i class="van-badge__wrapper van-icon van-icon-arrow van-step__icon"> @@ -122,7 +122,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-hairline van-step van-step--vertical van-step--process"> <div class="van-step__title van-step__title--active"> <h3> - 【城市】物流状态1 + 【City】Status1 </h3> <p> 2016-07-12 12:40 @@ -138,7 +138,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-hairline van-step van-step--vertical"> <div class="van-step__title"> <h3> - 【城市】物流状态 + 【City】Status2 </h3> <p> 2016-07-11 10:00 @@ -154,7 +154,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-hairline van-step van-step--vertical"> <div class="van-step__title"> <h3> - 快件已发货 + 【City】Status3 </h3> <p> 2016-07-10 09:30 diff --git a/src/sticky/test/__snapshots__/demo.spec.js.snap b/src/sticky/test/__snapshots__/demo.spec.js.snap index a3e6ef1fd..e4be9e114 100644 --- a/src/sticky/test/__snapshots__/demo.spec.js.snap +++ b/src/sticky/test/__snapshots__/demo.spec.js.snap @@ -10,7 +10,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 基础用法 + Basic Usage </span> </div> </button> @@ -26,7 +26,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 吸顶距离 + Offset Top </span> </div> </button> @@ -43,7 +43,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 指定容器 + Set Container </span> </div> </button> diff --git a/src/submit-bar/test/__snapshots__/demo.spec.js.snap b/src/submit-bar/test/__snapshots__/demo.spec.js.snap index 20ad6f671..ea9fab405 100644 --- a/src/submit-bar/test/__snapshots__/demo.spec.js.snap +++ b/src/submit-bar/test/__snapshots__/demo.spec.js.snap @@ -6,7 +6,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-submit-bar__bar"> <div class="van-submit-bar__text"> <span> - 合计: + Total: </span> <span class="van-submit-bar__price"> ¥ @@ -21,7 +21,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 提交订单 + Submit </span> </div> </button> @@ -34,13 +34,13 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-info-o van-submit-bar__tip-icon"> </i> <span class="van-submit-bar__tip-text"> - 你的收货地址不支持同城送, 我们已为你推荐快递 + Some tips </span> </div> <div class="van-submit-bar__bar"> <div class="van-submit-bar__text"> <span> - 合计: + Total: </span> <span class="van-submit-bar__price"> ¥ @@ -56,7 +56,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 提交订单 + Submit </span> </div> </button> @@ -68,7 +68,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-submit-bar__bar"> <div class="van-submit-bar__text"> <span> - 合计: + Total: </span> <span class="van-submit-bar__price"> ¥ @@ -106,9 +106,9 @@ exports[`should render demo and match snapshot 1`] = ` <div> <div class="van-submit-bar"> <div class="van-submit-bar__tip"> - 你的收货地址不支持同城送, + Some tips, <span class="edit-address"> - 修改地址 + Link </span> </div> <div class="van-submit-bar__bar"> @@ -122,12 +122,12 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <span class="van-checkbox__label"> - 全选 + Label </span> </div> <div class="van-submit-bar__text"> <span> - 合计: + Total: </span> <span class="van-submit-bar__price"> ¥ @@ -142,7 +142,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 提交订单 + Submit </span> </div> </button> diff --git a/src/swipe-cell/test/__snapshots__/demo.spec.js.snap b/src/swipe-cell/test/__snapshots__/demo.spec.js.snap index ce41dbed2..4d7b9ddf6 100644 --- a/src/swipe-cell/test/__snapshots__/demo.spec.js.snap +++ b/src/swipe-cell/test/__snapshots__/demo.spec.js.snap @@ -12,7 +12,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 选择 + Select </span> </div> </button> @@ -20,12 +20,12 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--borderless"> <div class="van-cell__title"> <span> - 单元格 + Cell </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> @@ -35,7 +35,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 删除 + Delete </span> </div> </button> @@ -44,7 +44,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 收藏 + Collect </span> </div> </button> @@ -76,10 +76,10 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-card__content"> <div> <div class="van-card__title van-multi-ellipsis--l2"> - 商品标题 + Title </div> <div class="van-card__desc van-ellipsis"> - 描述信息 + Description </div> </div> <div class="van-card__bottom"> @@ -110,7 +110,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 删除 + Delete </span> </div> </button> @@ -129,7 +129,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 选择 + Select </span> </div> </button> @@ -137,12 +137,12 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--borderless"> <div class="van-cell__title"> <span> - 单元格 + Cell </span> </div> <div class="van-cell__value"> <span> - 内容 + Content </span> </div> </div> @@ -152,7 +152,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-button__content"> <span class="van-button__text"> - 删除 + Delete </span> </div> </button> diff --git a/src/switch/test/__snapshots__/demo.spec.js.snap b/src/switch/test/__snapshots__/demo.spec.js.snap index 5de5d6cf1..d75933790 100644 --- a/src/switch/test/__snapshots__/demo.spec.js.snap +++ b/src/switch/test/__snapshots__/demo.spec.js.snap @@ -75,7 +75,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell van-cell--center"> <div class="van-cell__title"> <span> - 标题 + Title </span> </div> <div role="switch" diff --git a/src/tab/test/__snapshots__/demo.spec.js.snap b/src/tab/test/__snapshots__/demo.spec.js.snap index 799a65227..961614590 100644 --- a/src/tab/test/__snapshots__/demo.spec.js.snap +++ b/src/tab/test/__snapshots__/demo.spec.js.snap @@ -12,7 +12,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -28,7 +28,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> <div role="tab" @@ -36,7 +36,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 4 + Tab 4 </span> </div> <div class="van-tabs__line" @@ -60,7 +60,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 3 + content of tab 3 </div> <div role="tabpanel" class="van-tab__pane" @@ -81,7 +81,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -89,7 +89,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -97,7 +97,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> <div class="van-tabs__line" @@ -116,7 +116,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 2 + content of tab 2 </div> <div role="tabpanel" class="van-tab__pane" @@ -137,7 +137,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -145,7 +145,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -153,7 +153,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 3 + Tab 3 </span> </div> <div role="tab" @@ -161,7 +161,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 4 + Tab 4 </span> </div> <div role="tab" @@ -169,7 +169,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 5 + Tab 5 </span> </div> <div role="tab" @@ -177,7 +177,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 6 + Tab 6 </span> </div> <div role="tab" @@ -185,7 +185,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 7 + Tab 7 </span> </div> <div role="tab" @@ -193,7 +193,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 8 + Tab 8 </span> </div> <div class="van-tabs__line" @@ -207,7 +207,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 1 + content of tab 1 </div> <div role="tabpanel" class="van-tab__pane" @@ -258,7 +258,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -266,7 +266,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -274,7 +274,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> <div class="van-tabs__line" @@ -288,7 +288,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 1 + content of tab 1 </div> <div role="tabpanel" class="van-tab__pane" @@ -314,7 +314,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -322,7 +322,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -330,7 +330,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> </div> @@ -340,7 +340,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 1 + content of tab 1 </div> <div role="tabpanel" class="van-tab__pane" @@ -366,7 +366,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -374,7 +374,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div class="van-tabs__line" @@ -388,7 +388,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 1 + content of tab 1 </div> <div role="tabpanel" class="van-tab__pane" @@ -411,7 +411,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -419,7 +419,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -427,7 +427,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> <div role="tab" @@ -435,7 +435,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 4 + Tab 4 </span> </div> <div class="van-tabs__line" @@ -461,7 +461,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 3 + content of tab 3 </div> <div role="tabpanel" class="van-tab__pane" @@ -484,7 +484,7 @@ exports[`should render demo and match snapshot 1`] = ` <span class="van-tab__text van-tab__text--ellipsis"> <i class="van-badge__wrapper van-icon van-icon-more-o"> </i> - 标签 + Tab </span> </div> <div role="tab" @@ -494,7 +494,7 @@ exports[`should render demo and match snapshot 1`] = ` <span class="van-tab__text van-tab__text--ellipsis"> <i class="van-badge__wrapper van-icon van-icon-more-o"> </i> - 标签 + Tab </span> </div> <div class="van-tabs__line" @@ -508,7 +508,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 1 + content of tab 1 </div> <div role="tabpanel" class="van-tab__pane" @@ -529,7 +529,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -537,7 +537,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -545,7 +545,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> <div role="tab" @@ -553,7 +553,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 4 + Tab 4 </span> </div> <div class="van-tabs__line" @@ -573,7 +573,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-hidden="false" > <div class="van-tab__pane"> - 内容 1 + content of tab 1 </div> </div> <div class="van-swipe-item van-tab__pane-wrapper van-tab__pane-wrapper--inactive" @@ -582,7 +582,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-hidden="true" > <div class="van-tab__pane"> - 内容 2 + content of tab 2 </div> </div> <div class="van-swipe-item van-tab__pane-wrapper van-tab__pane-wrapper--inactive" @@ -613,7 +613,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -621,7 +621,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -629,7 +629,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> <div role="tab" @@ -637,7 +637,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 4 + Tab 4 </span> </div> <div class="van-tabs__line" @@ -657,7 +657,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-hidden="true" > <div class="van-tab__pane"> - 内容 1 + content of tab 1 </div> </div> <div class="van-swipe-item van-tab__pane-wrapper van-tab__pane-wrapper--inactive" @@ -666,7 +666,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-hidden="true" > <div class="van-tab__pane"> - 内容 2 + content of tab 2 </div> </div> <div class="van-swipe-item van-tab__pane-wrapper" @@ -699,7 +699,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -707,7 +707,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -715,7 +715,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 3 + Tab 3 </span> </div> <div role="tab" @@ -723,7 +723,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 4 + Tab 4 </span> </div> <div role="tab" @@ -731,7 +731,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 5 + Tab 5 </span> </div> <div role="tab" @@ -739,7 +739,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 6 + Tab 6 </span> </div> <div role="tab" @@ -747,7 +747,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 7 + Tab 7 </span> </div> <div role="tab" @@ -755,7 +755,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text"> - 标签 8 + Tab 8 </span> </div> <div class="van-tabs__line" @@ -770,42 +770,42 @@ exports[`should render demo and match snapshot 1`] = ` <div role="tabpanel" class="van-tab__pane" > - 内容 1 + content of tab 1 </div> <div role="tabpanel" class="van-tab__pane" > - 内容 2 + content of tab 2 </div> <div role="tabpanel" class="van-tab__pane" > - 内容 3 + content of tab 3 </div> <div role="tabpanel" class="van-tab__pane" > - 内容 4 + content of tab 4 </div> <div role="tabpanel" class="van-tab__pane" > - 内容 5 + content of tab 5 </div> <div role="tabpanel" class="van-tab__pane" > - 内容 6 + content of tab 6 </div> <div role="tabpanel" class="van-tab__pane" > - 内容 7 + content of tab 7 </div> <div role="tabpanel" class="van-tab__pane" > - 内容 8 + content of tab 8 </div> </div> </div> @@ -821,7 +821,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="true" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 1 + Tab 1 </span> </div> <div role="tab" @@ -829,7 +829,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 2 + Tab 2 </span> </div> <div role="tab" @@ -837,7 +837,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 3 + Tab 3 </span> </div> <div role="tab" @@ -845,7 +845,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-selected="false" > <span class="van-tab__text van-tab__text--ellipsis"> - 标签 4 + Tab 4 </span> </div> <div class="van-tabs__line" @@ -859,7 +859,7 @@ exports[`should render demo and match snapshot 1`] = ` class="van-tab__pane" style > - 内容 1 + content of tab 1 </div> <div role="tabpanel" class="van-tab__pane" diff --git a/src/tabbar/test/__snapshots__/demo.spec.js.snap b/src/tabbar/test/__snapshots__/demo.spec.js.snap index ddffb9fdd..51d5247b2 100644 --- a/src/tabbar/test/__snapshots__/demo.spec.js.snap +++ b/src/tabbar/test/__snapshots__/demo.spec.js.snap @@ -9,7 +9,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -18,7 +18,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -27,7 +27,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -36,7 +36,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> </div> @@ -49,7 +49,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -67,7 +67,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -76,7 +76,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> </div> @@ -89,7 +89,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -100,7 +100,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -112,7 +112,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -124,7 +124,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> </div> @@ -140,7 +140,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-tabbar-item__text"> <span> - 自定义 + Custom </span> </div> </div> @@ -150,7 +150,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item"> @@ -159,7 +159,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> </div> @@ -174,7 +174,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item" @@ -185,7 +185,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item" @@ -196,7 +196,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> <div class="van-tabbar-item" @@ -207,7 +207,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签 + Tab </div> </div> </div> @@ -220,7 +220,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签1 + Tab1 </div> </div> <div class="van-tabbar-item"> @@ -229,7 +229,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签2 + Tab2 </div> </div> <div class="van-tabbar-item"> @@ -238,7 +238,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签3 + Tab3 </div> </div> <div class="van-tabbar-item"> @@ -247,7 +247,7 @@ exports[`should render demo and match snapshot 1`] = ` </i> </div> <div class="van-tabbar-item__text"> - 标签4 + Tab4 </div> </div> </div> diff --git a/src/tag/test/__snapshots__/demo.spec.js.snap b/src/tag/test/__snapshots__/demo.spec.js.snap index aa3034312..98dd902f7 100644 --- a/src/tag/test/__snapshots__/demo.spec.js.snap +++ b/src/tag/test/__snapshots__/demo.spec.js.snap @@ -5,13 +5,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - primary 类型 + primary </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--primary"> - 标签 + Tag </span> </transition-stub> </div> @@ -19,13 +19,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - success 类型 + success </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--success"> - 标签 + Tag </span> </transition-stub> </div> @@ -33,13 +33,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - danger 类型 + danger </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--danger"> - 标签 + Tag </span> </transition-stub> </div> @@ -47,13 +47,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - warning 类型 + warning </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--warning"> - 标签 + Tag </span> </transition-stub> </div> @@ -63,13 +63,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 空心样式 + Plain style </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--plain van-tag--primary"> - 标签 + Tag </span> </transition-stub> </div> @@ -77,13 +77,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 圆角样式 + Round style </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--round van-tag--primary"> - 标签 + Tag </span> </transition-stub> </div> @@ -91,13 +91,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 标记样式 + Mark style </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--mark van-tag--primary"> - 标签 + Tag </span> </transition-stub> </div> @@ -105,13 +105,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 可关闭标签 + Closeable </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--medium van-tag--primary"> - 标签 + Tag <i class="van-badge__wrapper van-icon van-icon-cross van-tag__close"> </i> </span> @@ -123,13 +123,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 小号标签 + Small Size </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--primary"> - 标签 + Tag </span> </transition-stub> </div> @@ -137,13 +137,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 中号标签 + Medium Size </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--medium van-tag--primary"> - 标签 + Tag </span> </transition-stub> </div> @@ -151,13 +151,13 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 大号标签 + Large Size </span> </div> <div class="van-cell__value"> <transition-stub> <span class="van-tag van-tag--large van-tag--primary"> - 标签 + Tag </span> </transition-stub> </div> @@ -167,7 +167,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 背景颜色 + Background Color </span> </div> <div class="van-cell__value"> @@ -175,7 +175,7 @@ exports[`should render demo and match snapshot 1`] = ` <span style="background: rgb(114, 50, 221);" class="van-tag van-tag--default" > - 标签 + Tag </span> </transition-stub> </div> @@ -183,7 +183,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 文字颜色 + Text Color </span> </div> <div class="van-cell__value"> @@ -191,7 +191,7 @@ exports[`should render demo and match snapshot 1`] = ` <span style="color: rgb(173, 0, 0); background: rgb(255, 225, 225);" class="van-tag van-tag--default" > - 标签 + Tag </span> </transition-stub> </div> @@ -199,7 +199,7 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-cell"> <div class="van-cell__title"> <span> - 空心颜色 + Plain Color </span> </div> <div class="van-cell__value"> @@ -207,7 +207,7 @@ exports[`should render demo and match snapshot 1`] = ` <span style="color: rgb(114, 50, 221);" class="van-tag van-tag--plain van-tag--default" > - 标签 + Tag </span> </transition-stub> </div> diff --git a/src/toast/test/__snapshots__/demo.spec.js.snap b/src/toast/test/__snapshots__/demo.spec.js.snap index d2c9177d7..b2bbb1a92 100644 --- a/src/toast/test/__snapshots__/demo.spec.js.snap +++ b/src/toast/test/__snapshots__/demo.spec.js.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 文字提示 + Text </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 加载提示 + Loading </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -32,7 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 成功提示 + Success </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -44,7 +44,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 失败提示 + Fail </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -58,7 +58,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义图标 + Custom Icon </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -70,7 +70,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义图片 + Custom Image </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -82,7 +82,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 自定义加载图标 + Loading Type </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -96,7 +96,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 顶部展示 + Top </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -108,7 +108,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 底部展示 + Bottom </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> @@ -122,7 +122,7 @@ exports[`should render demo and match snapshot 1`] = ` > <div class="van-cell__title"> <span> - 动态更新提示 + Update Message </span> </div> <i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon"> diff --git a/src/tree-select/test/__snapshots__/demo.spec.js.snap b/src/tree-select/test/__snapshots__/demo.spec.js.snap index 439963276..01c358217 100644 --- a/src/tree-select/test/__snapshots__/demo.spec.js.snap +++ b/src/tree-select/test/__snapshots__/demo.spec.js.snap @@ -8,34 +8,34 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-sidebar van-tree-select__nav"> <a class="van-sidebar-item van-sidebar-item--select van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 浙江 + Group 1 </div> </a> <a class="van-sidebar-item van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 江苏 + Group 2 </div> </a> <a class="van-sidebar-item van-sidebar-item--disabled van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 福建 + Group 3 </div> </a> </div> <div class="van-tree-select__content"> <div class="van-ellipsis van-tree-select__item van-tree-select__item--active"> - 杭州 + Delaware <i class="van-badge__wrapper van-icon van-icon-success van-tree-select__selected"> </i> </div> <div class="van-ellipsis van-tree-select__item"> - 温州 + Florida </div> <div class="van-ellipsis van-tree-select__item van-tree-select__item--disabled"> - 宁波 + Georqia </div> <div class="van-ellipsis van-tree-select__item"> - 义乌 + Indiana </div> </div> </div> @@ -47,36 +47,36 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-sidebar van-tree-select__nav"> <a class="van-sidebar-item van-sidebar-item--select van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 浙江 + Group 1 </div> </a> <a class="van-sidebar-item van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 江苏 + Group 2 </div> </a> <a class="van-sidebar-item van-sidebar-item--disabled van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 福建 + Group 3 </div> </a> </div> <div class="van-tree-select__content"> <div class="van-ellipsis van-tree-select__item van-tree-select__item--active"> - 杭州 + Delaware <i class="van-badge__wrapper van-icon van-icon-success van-tree-select__selected"> </i> </div> <div class="van-ellipsis van-tree-select__item van-tree-select__item--active"> - 温州 + Florida <i class="van-badge__wrapper van-icon van-icon-success van-tree-select__selected"> </i> </div> <div class="van-ellipsis van-tree-select__item van-tree-select__item--disabled"> - 宁波 + Georqia </div> <div class="van-ellipsis van-tree-select__item"> - 义乌 + Indiana </div> </div> </div> @@ -88,12 +88,12 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-sidebar van-tree-select__nav"> <a class="van-sidebar-item van-sidebar-item--select van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 分组 1 + Group 1 </div> </a> <a class="van-sidebar-item van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 分组 2 + Group 2 </div> </a> </div> @@ -113,14 +113,14 @@ exports[`should render demo and match snapshot 1`] = ` <div class="van-sidebar van-tree-select__nav"> <a class="van-sidebar-item van-sidebar-item--select van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 浙江 + Group 1 <div class="van-badge van-badge--dot van-badge--fixed"> </div> </div> </a> <a class="van-sidebar-item van-tree-select__nav-item"> <div class="van-badge__wrapper van-sidebar-item__text"> - 江苏 + Group 2 <div class="van-badge van-badge--fixed"> 5 </div> @@ -129,18 +129,18 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-tree-select__content"> <div class="van-ellipsis van-tree-select__item van-tree-select__item--active"> - 杭州 + Delaware <i class="van-badge__wrapper van-icon van-icon-success van-tree-select__selected"> </i> </div> <div class="van-ellipsis van-tree-select__item"> - 温州 + Florida </div> <div class="van-ellipsis van-tree-select__item van-tree-select__item--disabled"> - 宁波 + Georqia </div> <div class="van-ellipsis van-tree-select__item"> - 义乌 + Indiana </div> </div> </div> diff --git a/src/uploader/test/__snapshots__/demo.spec.js.snap b/src/uploader/test/__snapshots__/demo.spec.js.snap index 6f83954e7..d67accdfa 100644 --- a/src/uploader/test/__snapshots__/demo.spec.js.snap +++ b/src/uploader/test/__snapshots__/demo.spec.js.snap @@ -92,7 +92,7 @@ exports[`should render demo and match snapshot 1`] = ` </span> </div> <div class="van-uploader__mask-message"> - 上传中... + Uploading... </div> </div> </div> @@ -111,7 +111,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-close van-uploader__mask-icon"> </i> <div class="van-uploader__mask-message"> - 上传失败 + Failed </div> </div> <div class="van-uploader__preview-delete"> @@ -203,7 +203,7 @@ exports[`should render demo and match snapshot 1`] = ` <i class="van-badge__wrapper van-icon van-icon-plus van-button__icon"> </i> <span class="van-button__text"> - 上传文件 + Upload File </span> </div> </button> @@ -230,7 +230,7 @@ exports[`should render demo and match snapshot 1`] = ` </div> <div class="van-uploader__preview-cover"> <div class="preview-cover van-ellipsis"> - 图片名称 + Image Name </div> </div> </div> diff --git a/test/demo.ts b/test/demo.ts index 1f972b914..d65960621 100644 --- a/test/demo.ts +++ b/test/demo.ts @@ -1,8 +1,11 @@ import { h } from 'vue'; import Locale from '../src/locale'; +import enUS from '../src/locale/lang/en-US'; import { mount, later } from '.'; import { DemoLocaleMixin } from '../docs/site/demo-locale'; +Locale.use('en-US', enUS); + const EmptyComponent = { render() { return h('div', [(this as any).$slots.default()]);