[improvement] SwitchCell: tsx (#2785)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user