feat(Card): allow use bottom slot without price or num (#5116)

This commit is contained in:
neverland
2019-11-26 19:19:41 +08:00
committed by GitHub
parent e36561457b
commit f59beb9787
3 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ function Card(
const showNum = slots.num || isDef(props.num);
const showPrice = slots.price || isDef(props.price);
const showOriginPrice = slots['origin-price'] || isDef(props.originPrice);
const showBottom = showNum || showPrice || showOriginPrice;
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
function onThumbClick(event: MouseEvent) {
emit(ctx, 'click-thumb', event);