/**
 * @author linhd
 * @date 2021/8/6 11:07
 * @description 表格头部参数
 */
import React from 'react';
import { TableHeadBodyPublicProps, SelectStatus, HeadDataProps } from './interface';
import { DragResultProps } from "./thElement";
/** 表格头部参数 */
export interface TableHeadProps extends TableHeadBodyPublicProps {
    /** 是否拖动列 */
    dragColumn?: boolean;
    /** 表格每列没设置宽度的默认宽度, 默认80 */
    lineWidth?: number;
    /** 排序触发事件 property: 属性名 */
    onRequestSort?: (event: React.MouseEvent<unknown>, property: string) => void;
    /** 全选事件 */
    selectAll?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
    /** 选中状态 */
    selectStatus?: SelectStatus;
    /** 是否过滤 */
    filter?: boolean;
    /** 显示列 */
    showList?: any[];
    /** 改变显示列 bol true重置 */
    changeShowList: (headShowArr: any, bol?: boolean, item?: any) => void;
    /** 过滤值 */
    selectFilter: any;
    /** 表格列配置 */
    headDataConfig: HeadDataProps;
    /** 改变过滤 */
    changeFilter?: (val: any) => void;
    /** 改变拖拽列width */
    changeColumnWidth?: (headCell: HeadDataProps, result: DragResultProps) => void;
    /** 下拉框弹窗内容 */
    getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
}
