import { ReactNode, CSSProperties } from 'react'; interface SwitchProps { /** * @description 类名 */ className?: string; /** * @description 自定义样式 */ style?: CSSProperties; /** * @description 禁用 * @default false */ disabled?: boolean; /** * @description 小型按钮 * @default false */ small?: boolean; /** * @description 默认选中 * @default false */ defaultChecked?: boolean; /** * @description 选中文字 */ checkedChildren?: ReactNode; /** * @description 未选中文字 */ unCheckedChildren?: ReactNode; /** * @description 加载状态 * @default false */ loading?: boolean; /** * @description 改变回调函数 */ handleChange?: Function; } export type { SwitchProps };