[bugfix] Card: origin-price slot not work (#2927)

This commit is contained in:
neverland
2019-03-08 17:53:46 +08:00
committed by GitHub
parent bfa8f38585
commit 2297baa917
3 changed files with 31 additions and 1 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ function Card(
const OriginPrice = showOriginPrice && (
<div class={bem('origin-price')}>
{slots['origin-price']
? slots['origin-price']
? slots['origin-price']()
: `${props.currency} ${props.originPrice}`}
</div>
);