import { PropsWithChildren, CSSProperties } from "react"; interface CheckBoxProps { /** 数据*/ data: Array; /** 默认选中索引*/ defaultIndexArr?: Array; /** 回调值 */ callback?: (arr: Array) => void; /** 额外类名 */ className?: string; /** 禁用索引 */ disableIndex?: Array; /** 控制转移的onchange回调 */ parentSetStateCallback?: (e: boolean[], index: number) => void; /**控制转移的state */ parentState?: Array; /** 是否显示文字 */ text?: boolean; /** 外层容器样式,有时可能需要把box-shadow设置none*/ style?: CSSProperties; } declare function CheckBox(props: PropsWithChildren): JSX.Element; declare namespace CheckBox { var defaultProps: { data: any[]; text: boolean; }; } export default CheckBox;