chore(Card): add class for currency (#5237)

This commit is contained in:
neverland
2019-12-10 21:06:49 +08:00
committed by GitHub
parent 03da73137e
commit 95148ebda0
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ function Card(
const priceArr = props.price!.toString().split('.');
return (
<div>
{props.currency}
<span class={bem('price-currency')}>{props.currency}</span>
<span class={bem('price-integer')}>{priceArr[0]}</span>.
<span class={bem('price-decimal')}>{priceArr[1]}</span>
</div>