mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
test: prefer enUS (#8144)
This commit is contained in:
parent
eaf01090cc
commit
cb2c2b9b68
@ -12,14 +12,14 @@ exports[`should render AddressEdit correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
姓名
|
Name
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人姓名"
|
placeholder="Name"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -27,14 +27,14 @@ exports[`should render AddressEdit correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
电话
|
Phone
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="tel"
|
<input type="tel"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人手机号"
|
placeholder="Phone"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -45,7 +45,7 @@ exports[`should render AddressEdit correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
地区
|
Area
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
@ -53,7 +53,7 @@ exports[`should render AddressEdit correctly 1`] = `
|
|||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
readonly
|
readonly
|
||||||
placeholder="选择省 / 市 / 区"
|
placeholder="Area"
|
||||||
>
|
>
|
||||||
<div class="van-field__right-icon">
|
<div class="van-field__right-icon">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
||||||
@ -65,14 +65,14 @@ exports[`should render AddressEdit correctly 1`] = `
|
|||||||
<div class="van-cell van-field van-address-edit-detail">
|
<div class="van-cell van-field van-address-edit-detail">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
详细地址
|
Address
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<textarea rows="1"
|
<textarea rows="1"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="街道门牌、楼层房间号等信息"
|
placeholder="Address"
|
||||||
>
|
>
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
@ -85,7 +85,7 @@ exports[`should render AddressEdit correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<div class="van-button__content">
|
<div class="van-button__content">
|
||||||
<span class="van-button__text">
|
<span class="van-button__text">
|
||||||
保存
|
Save
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
@ -99,14 +99,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
姓名
|
Name
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人姓名"
|
placeholder="Name"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -114,14 +114,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
电话
|
Phone
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="tel"
|
<input type="tel"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人手机号"
|
placeholder="Phone"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -132,7 +132,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
地区
|
Area
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
@ -140,7 +140,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
readonly
|
readonly
|
||||||
placeholder="选择省 / 市 / 区"
|
placeholder="Area"
|
||||||
>
|
>
|
||||||
<div class="van-field__right-icon">
|
<div class="van-field__right-icon">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
||||||
@ -152,14 +152,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
<div class="van-cell van-field van-address-edit-detail">
|
<div class="van-cell van-field van-address-edit-detail">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
详细地址
|
Address
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<textarea rows="1"
|
<textarea rows="1"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="街道门牌、楼层房间号等信息"
|
placeholder="Address"
|
||||||
>
|
>
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
@ -168,14 +168,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
邮政编码
|
Postal
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="tel"
|
<input type="tel"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="邮政编码"
|
placeholder="Postal"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -184,7 +184,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
<div class="van-cell van-cell--center van-address-edit__default">
|
<div class="van-cell van-cell--center van-address-edit__default">
|
||||||
<div class="van-cell__title">
|
<div class="van-cell__title">
|
||||||
<span>
|
<span>
|
||||||
设为默认收货地址
|
Set as the default address
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div role="switch"
|
<div role="switch"
|
||||||
@ -202,7 +202,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<div class="van-button__content">
|
<div class="van-button__content">
|
||||||
<span class="van-button__text">
|
<span class="van-button__text">
|
||||||
保存
|
Save
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
@ -214,19 +214,19 @@ exports[`should valid address detail and render error message correctly 1`] = `
|
|||||||
<div class="van-cell van-field van-address-edit-detail">
|
<div class="van-cell van-field van-address-edit-detail">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
详细地址
|
Address
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<textarea rows="1"
|
<textarea rows="1"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="街道门牌、楼层房间号等信息"
|
placeholder="Address"
|
||||||
>
|
>
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-field__error-message">
|
<div class="van-field__error-message">
|
||||||
请填写详细地址
|
Address can not be empty
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -236,14 +236,14 @@ exports[`should valid address detail and render error message correctly 2`] = `
|
|||||||
<div class="van-cell van-field van-address-edit-detail">
|
<div class="van-cell van-field van-address-edit-detail">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
详细地址
|
Address
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<textarea rows="1"
|
<textarea rows="1"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="街道门牌、楼层房间号等信息"
|
placeholder="Address"
|
||||||
style="height: auto;"
|
style="height: auto;"
|
||||||
>
|
>
|
||||||
</textarea>
|
</textarea>
|
||||||
@ -259,7 +259,7 @@ exports[`should valid area code and render error message correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
地区
|
Area
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
@ -267,7 +267,7 @@ exports[`should valid area code and render error message correctly 1`] = `
|
|||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
readonly
|
readonly
|
||||||
placeholder="选择省 / 市 / 区"
|
placeholder="Area"
|
||||||
>
|
>
|
||||||
<div class="van-field__right-icon">
|
<div class="van-field__right-icon">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
||||||
@ -275,7 +275,7 @@ exports[`should valid area code and render error message correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-field__error-message">
|
<div class="van-field__error-message">
|
||||||
请选择地区
|
Please select a receiving area
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -288,7 +288,7 @@ exports[`should valid area code and render error message correctly 2`] = `
|
|||||||
>
|
>
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
地区
|
Area
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
@ -296,7 +296,7 @@ exports[`should valid area code and render error message correctly 2`] = `
|
|||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
readonly
|
readonly
|
||||||
placeholder="选择省 / 市 / 区"
|
placeholder="Area"
|
||||||
>
|
>
|
||||||
<div class="van-field__right-icon">
|
<div class="van-field__right-icon">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
<i class="van-badge__wrapper van-icon van-icon-arrow">
|
||||||
@ -311,18 +311,18 @@ exports[`should valid name and render error message correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
姓名
|
Name
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人姓名"
|
placeholder="Name"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-field__error-message">
|
<div class="van-field__error-message">
|
||||||
请填写姓名
|
Please fill in the name
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -332,14 +332,14 @@ exports[`should valid name and render error message correctly 2`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
姓名
|
Name
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人姓名"
|
placeholder="Name"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -350,18 +350,18 @@ exports[`should valid postal code and render error message correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
邮政编码
|
Postal
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="tel"
|
<input type="tel"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="邮政编码"
|
placeholder="Postal"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-field__error-message">
|
<div class="van-field__error-message">
|
||||||
邮政编码格式不正确
|
Wrong postal code
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -371,14 +371,14 @@ exports[`should valid postal code and render error message correctly 2`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
邮政编码
|
Postal
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="tel"
|
<input type="tel"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="邮政编码"
|
placeholder="Postal"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -389,18 +389,18 @@ exports[`should valid tel and render error message correctly 1`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
电话
|
Phone
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="tel"
|
<input type="tel"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人手机号"
|
placeholder="Phone"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-field__error-message">
|
<div class="van-field__error-message">
|
||||||
请输入正确的手机号
|
Malformed phone number
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -410,14 +410,14 @@ exports[`should valid tel and render error message correctly 2`] = `
|
|||||||
<div class="van-cell van-field">
|
<div class="van-cell van-field">
|
||||||
<div class="van-cell__title van-field__label">
|
<div class="van-cell__title van-field__label">
|
||||||
<span>
|
<span>
|
||||||
电话
|
Phone
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-cell__value van-field__value">
|
<div class="van-cell__value van-field__value">
|
||||||
<div class="van-field__body">
|
<div class="van-field__body">
|
||||||
<input type="tel"
|
<input type="tel"
|
||||||
class="van-field__control"
|
class="van-field__control"
|
||||||
placeholder="收货人手机号"
|
placeholder="Phone"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,12 +6,12 @@ exports[`should render columns-top、columns-bottom slot correctly 1`] = `
|
|||||||
<button type="button"
|
<button type="button"
|
||||||
class="van-picker__cancel"
|
class="van-picker__cancel"
|
||||||
>
|
>
|
||||||
取消
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="van-picker__confirm"
|
class="van-picker__confirm"
|
||||||
>
|
>
|
||||||
确认
|
Confirm
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
Top
|
Top
|
||||||
@ -54,13 +54,13 @@ exports[`should render title slot correctly 1`] = `
|
|||||||
<button type="button"
|
<button type="button"
|
||||||
class="van-picker__cancel"
|
class="van-picker__cancel"
|
||||||
>
|
>
|
||||||
取消
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
Custom Title
|
Custom Title
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="van-picker__confirm"
|
class="van-picker__confirm"
|
||||||
>
|
>
|
||||||
确认
|
Confirm
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@ -71,12 +71,12 @@ exports[`should render two columns when columns-num prop is two 1`] = `
|
|||||||
<button type="button"
|
<button type="button"
|
||||||
class="van-picker__cancel"
|
class="van-picker__cancel"
|
||||||
>
|
>
|
||||||
取消
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="van-picker__confirm"
|
class="van-picker__confirm"
|
||||||
>
|
>
|
||||||
确认
|
Confirm
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-picker__columns"
|
<div class="van-picker__columns"
|
||||||
|
@ -32,7 +32,7 @@ exports[`should update tabs when previous tab is clicked 1`] = `
|
|||||||
aria-selected="true"
|
aria-selected="true"
|
||||||
>
|
>
|
||||||
<span class="van-tab__text">
|
<span class="van-tab__text">
|
||||||
请选择
|
Select
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-tabs__line"
|
<div class="van-tabs__line"
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
exports[`should validate contact name before submitting form 1`] = `
|
exports[`should validate contact name before submitting form 1`] = `
|
||||||
<div class="van-field__error-message">
|
<div class="van-field__error-message">
|
||||||
请输入正确的姓名
|
Malformed name
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`should validate contact tel before submitting form 1`] = `
|
exports[`should validate contact tel before submitting form 1`] = `
|
||||||
<div class="van-field__error-message">
|
<div class="van-field__error-message">
|
||||||
请输入正确的手机号
|
Malformed phone number
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -36,7 +36,7 @@ exports[`should render ContactList correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<div class="van-button__content">
|
<div class="van-button__content">
|
||||||
<span class="van-button__text">
|
<span class="van-button__text">
|
||||||
新建联系人
|
Add new contact
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
exports[`should render page slot correctly 1`] = `
|
exports[`should render page slot correctly 1`] = `
|
||||||
<ul class="van-pagination">
|
<ul class="van-pagination">
|
||||||
<li class="van-pagination__item van-pagination__prev van-hairline">
|
<li class="van-pagination__item van-pagination__prev van-hairline">
|
||||||
上一页
|
Previous
|
||||||
</li>
|
</li>
|
||||||
<li class="van-pagination__item van-pagination__page van-hairline">
|
<li class="van-pagination__item van-pagination__page van-hairline">
|
||||||
foo 1
|
foo 1
|
||||||
@ -21,7 +21,7 @@ exports[`should render page slot correctly 1`] = `
|
|||||||
foo 5
|
foo 5
|
||||||
</li>
|
</li>
|
||||||
<li class="van-pagination__item van-pagination__next van-hairline">
|
<li class="van-pagination__item van-pagination__next van-hairline">
|
||||||
下一页
|
Next
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
`;
|
`;
|
||||||
|
@ -7,7 +7,7 @@ exports[`should render different head content in different pulling status 1`] =
|
|||||||
>
|
>
|
||||||
<div class="van-pull-refresh__head">
|
<div class="van-pull-refresh__head">
|
||||||
<div class="van-pull-refresh__text">
|
<div class="van-pull-refresh__text">
|
||||||
下拉即可刷新...
|
Pull to refresh...
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -21,7 +21,7 @@ exports[`should render different head content in different pulling status 2`] =
|
|||||||
>
|
>
|
||||||
<div class="van-pull-refresh__head">
|
<div class="van-pull-refresh__head">
|
||||||
<div class="van-pull-refresh__text">
|
<div class="van-pull-refresh__text">
|
||||||
释放即可刷新...
|
Loose to refresh...
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -50,7 +50,7 @@ exports[`should render different head content in different pulling status 3`] =
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<span class="van-loading__text">
|
<span class="van-loading__text">
|
||||||
加载中...
|
Loading...
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -80,7 +80,7 @@ exports[`should render different head content in different pulling status 4`] =
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<span class="van-loading__text">
|
<span class="van-loading__text">
|
||||||
加载中...
|
Loading...
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -34,7 +34,7 @@ exports[`should render title and description slot correctly 1`] = `
|
|||||||
<button type="button"
|
<button type="button"
|
||||||
class="van-share-sheet__cancel"
|
class="van-share-sheet__cancel"
|
||||||
>
|
>
|
||||||
取消
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</transition-stub>
|
</transition-stub>
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
import { h } from 'vue';
|
import { h } from 'vue';
|
||||||
import Locale from '../src/locale';
|
import Locale from '../src/locale';
|
||||||
import enUS from '../src/locale/lang/en-US';
|
|
||||||
import { mount, later } from '.';
|
import { mount, later } from '.';
|
||||||
import { DemoLocaleMixin } from '../docs/site/demo-locale';
|
import { DemoLocaleMixin } from '../docs/site/demo-locale';
|
||||||
|
|
||||||
Locale.use('en-US', enUS);
|
|
||||||
|
|
||||||
const EmptyComponent = {
|
const EmptyComponent = {
|
||||||
render() {
|
render() {
|
||||||
return h('div', [this.$slots.default()]);
|
return h('div', [this.$slots.default()]);
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
import './plugin';
|
import './plugin';
|
||||||
|
import Locale from '../src/locale';
|
||||||
|
import enUS from '../src/locale/lang/en-US';
|
||||||
|
|
||||||
|
Locale.use('en-US', enUS);
|
||||||
|
|
||||||
// promisify setTimeout
|
// promisify setTimeout
|
||||||
export function later(delay = 0): Promise<void> {
|
export function later(delay = 0): Promise<void> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user