mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[improvement] ContactCard: tsx (#2783)
This commit is contained in:
@@ -23,6 +23,10 @@ export type ButtonProps = RouteProps & {
|
||||
bottomAction?: boolean;
|
||||
};
|
||||
|
||||
export type ButtonEvents = {
|
||||
onClick?(event: Event): void;
|
||||
};
|
||||
|
||||
const [sfc, bem] = use('button');
|
||||
|
||||
function Button(
|
||||
@@ -100,4 +104,4 @@ Button.props = {
|
||||
}
|
||||
};
|
||||
|
||||
export default sfc<ButtonProps>(Button);
|
||||
export default sfc<ButtonProps, ButtonEvents>(Button);
|
||||
|
Reference in New Issue
Block a user