export interface CheckListProps { /** * @description 列表数据 * @default [] */ list?: Array; /** * @description 列表类名 * @default '' */ className?: string; /** * @description 列表样式 * @default - */ style?: React.CSSProperties; /** * @description 列表自定义渲染 * @default - */ CustomRender?: () => JSX.Element; /** * @description 列表渲染key字段 * @default id */ itemKey?: string; /** * @description 列表渲染label字段 * @default name */ itemNameKey?: string; /** * @description 激活列表key * @default - */ activeKey?: string; /** * @description 列表拓展内容 * @default - */ checkExt?: React.ReactNode; /** * @description 选中事件,影响是否有checkbox * @default - */ onChecked?: (ids: Array) => void; /** * @description 选中的key * @default [] */ checkedKeys?: string[]; /** * @description 默认选中的key * @default [] */ defaultCheckedIds?: string[]; /** * @description 高亮关键字 * @default - */ keywords?: string; rowHeight?: number; whatIcon?: (item: T) => JSX.Element; renderItemExt?: (item: T) => JSX.Element; onClickItem?: (item: T) => void; onMouseOutItem?: (item: T) => void; onMouseOverItem?: (item: T) => void; renderHeader?: () => JSX.Element; }