/*
 * @Author: your name
 * @Date: 2021-09-27 10:46:48
 * @LastEditTime: 2021-12-30 11:41:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/components/MccsEditableTable/typings.d.ts
 */





declare namespace MccsEditableTableType {

    export type RowDataType = Record<string, any>
     
    export type MccsEditableTableProps = {
         columns: any[],
         request?: (
             current: number,
             pageSize: number,
         ) => Promise<{
             data: any[],
             current?: number,
             total?: number,
             success?: boolean
         }>,
         addHandle?: (data: any) => void,
         editHandle?: (data: any) => void,
         delHandle?: (data: any) => void,   // 当使用默认操作项才存在
         pagination?: boolean,
         reload?: boolean,
         edit?: boolean,
         getTableRef?: (ref: any) => void,
         [key: string]: any
    }
}