diff --git a/src/coupon-cell/index.tsx b/src/coupon-cell/index.tsx index dbad85936..f4d763ee7 100644 --- a/src/coupon-cell/index.tsx +++ b/src/coupon-cell/index.tsx @@ -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); diff --git a/src/coupon-list/test/__snapshots__/index.spec.js.snap b/src/coupon-list/test/__snapshots__/index.spec.js.snap index cbbd843d0..b6db0680b 100644 --- a/src/coupon-list/test/__snapshots__/index.spec.js.snap +++ b/src/coupon-list/test/__snapshots__/index.spec.js.snap @@ -49,7 +49,7 @@ exports[`render coupon cell 1`] = ` exports[`render coupon cell with coupon 1`] = `
优惠券
-
-¥1.00
+
-¥ 1.00
`;