[improvement] ContactCard: tsx (#2781)

This commit is contained in:
neverland
2019-02-18 19:58:38 +08:00
committed by GitHub
parent 267b47ac54
commit 7b238ed1e7
3 changed files with 33 additions and 8 deletions

View File

@@ -22,6 +22,10 @@ export type CellSlots = DefaultSlots & {
'right-icon'?: ScopedSlot;
};
export type CellEvents = {
onClick(event: Event): void;
};
const [sfc, bem] = use('cell');
function Cell(
@@ -102,4 +106,4 @@ Cell.props = {
arrowDirection: String
};
export default sfc<CellProps>(Cell);
export default sfc<CellProps, CellEvents>(Cell);