[improvement] SwitchCell: tsx (#2785)

This commit is contained in:
neverland
2019-02-18 20:55:25 +08:00
committed by GitHub
parent e860759f16
commit c372638036
4 changed files with 55 additions and 34 deletions
+5 -1
View File
@@ -15,6 +15,10 @@ export type IconProps = {
classPrefix?: string;
};
export type IconEvents = {
onClick?(event: Event): void;
};
const [sfc] = use('icon');
function Icon(
@@ -55,4 +59,4 @@ Icon.props = {
}
};
export default sfc<IconProps>(Icon);
export default sfc<IconProps, IconEvents>(Icon);