/*
 * @Author: your name
 * @Date: 2021-12-07 17:09:18
 * @LastEditTime: 2021-12-10 11:12:21
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /MedicalWisdomCheckSys/src/pages/GradeHospitalAccreditation/accreditationDetail/components/materialTable/index.d.ts
 */


declare namespace MaterialTable {

    type GeDataParams = {
        selectorFilter?: string,
        keyword?: string,
        pageSize: number,
        current: number,
    }

    type MaterialTableProps = {
        selectOptions?: { label: string, value: string }[],
        request?: (params: GeDataParams) => Promise<{
            total: number,// 总数
            pageSize: number,
            current: number,
            list: any[],
        }|undefined>
        addHandle?: () => void,
        reload?: boolean,
        tableItemActionHandle?: (type: 'DEL'|"EDIT",data: any[]) => Promise<boolean|null>,
    }
    
}

