[new feature] Card: add bottom slot

This commit is contained in:
陈嘉涵
2019-05-30 11:00:59 +08:00
parent 6ab565920e
commit f87dac1d61
6 changed files with 32 additions and 1 deletions
+2
View File
@@ -29,6 +29,7 @@ export type CardSlots = DefaultSlots & {
title?: ScopedSlot;
thumb?: ScopedSlot;
price?: ScopedSlot;
bottom?: ScopedSlot;
footer?: ScopedSlot;
'origin-price'?: ScopedSlot;
};
@@ -155,6 +156,7 @@ function Card(
{Price()}
{OriginPrice()}
{Num()}
{slots.bottom && slots.bottom()}
</div>
)}
</div>