/*
 * @Author: your name
 * @Date: 2021-09-15 09:17:43
 * @LastEditTime: 2021-11-12 18:03:21
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/components/MccsRecordList/typings.d.ts
 */


declare namespace MccsRecordList {

      type propsType = {
        title: string,
        list?: MccsRecordListType|[],
        actionFunc?: (data: historyRecordsItem) => void,  // 删除历史版本回调
        actionText?: string,
        actionNode?: (item?: MccsRecordListItemInnerDetail) => ReactNode,  // 记录操作按钮
      }

      type historyRecordsItem = {
        versionName: string,
        name: string,
        time: string,
        id: number
      }
      
      type MccsRecordListItemInnerDetail = {
        name: string,
        fileName: string,
        fileUrl: string,
        createTime: string,
        recordTypeName?: string,
        accountType?: string,
        cateId?: number,
        historyRecords: historyRecordsItem[]|[]
      }

      type MccsRecordListItem = {
          evaluation: string,
          details: MccsRecordListItemInnerDetail[]
      }

      type MccsRecordListType = MccsRecordListItem[]

}