Browse Source

fix: fix type of SwitchProps

pull/17502/head
DiamondYuan 5 years ago
parent
commit
6b7ad105c6
  1. 2
      components/switch/index.tsx

2
components/switch/index.tsx

@ -18,7 +18,7 @@ export interface SwitchProps {
checked?: boolean;
defaultChecked?: boolean;
onChange?: SwitchChangeEventHandler;
onClick?: SwitchChangeEventHandler;
onClick?: SwitchClickEventHandler;
checkedChildren?: React.ReactNode;
unCheckedChildren?: React.ReactNode;
disabled?: boolean;

Loading…
Cancel
Save