[improvement] Card: add click event params (#3780)

This commit is contained in:
neverland
2019-07-08 17:02:12 +08:00
committed by GitHub
parent abc555dd72
commit 701446ece8
4 changed files with 48 additions and 7 deletions
+3 -3
View File
@@ -53,9 +53,9 @@ function Card(
const showOriginPrice = slots['origin-price'] || isDef(props.originPrice);
const showBottom = showNum || showPrice || showOriginPrice;
const onThumbClick = () => {
emit(ctx, 'click-thumb');
};
function onThumbClick(event: MouseEvent) {
emit(ctx, 'click-thumb', event);
}
function ThumbTag() {
if (slots.tag || props.tag) {