[improvement] ContactCard: tsx (#2783)

This commit is contained in:
neverland
2019-02-18 20:24:51 +08:00
committed by GitHub
parent ad27b885c9
commit f211afe714
7 changed files with 56 additions and 4 deletions
+5 -1
View File
@@ -32,6 +32,10 @@ export type CardSlots = DefaultSlots & {
'origin-price'?: ScopedSlot;
};
export type CardEvents = {
onClick?(event: Event): void;
};
const [sfc, bem] = use('card');
function Card(
@@ -140,4 +144,4 @@ Card.props = {
}
};
export default sfc<CardProps>(Card);
export default sfc<CardProps, CardEvents>(Card);