mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
style(Coupon): insert a space after currency (#6888)
* feat(Coupon): add space * feat(couponCell): update unit test
This commit is contained in:
parent
75de51ebd4
commit
8bdaff57ca
@ -27,7 +27,7 @@ function formatValue(props: CouponCellProps) {
|
||||
|
||||
if (coupon) {
|
||||
const value = coupon.value || coupon.denominations || 0;
|
||||
return `-${currency}${(value / 100).toFixed(2)}`;
|
||||
return `-${currency} ${(value / 100).toFixed(2)}`;
|
||||
}
|
||||
|
||||
return coupons.length === 0 ? t('tips') : t('count', coupons.length);
|
||||
|
@ -49,7 +49,7 @@ exports[`render coupon cell 1`] = `
|
||||
exports[`render coupon cell with coupon 1`] = `
|
||||
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-coupon-cell">
|
||||
<div class="van-cell__title"><span>优惠券</span></div>
|
||||
<div class="van-cell__value van-coupon-cell--selected"><span>-¥1.00</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
|
||||
<div class="van-cell__value van-coupon-cell--selected"><span>-¥ 1.00</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
|
||||
<!----></i>
|
||||
</div>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user