[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

View File

@@ -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);