mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 20:04:09 +00:00
[improvement] ContactCard: tsx (#2781)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user