declare module Base { // ajax请求返回数据格式 interface IResponseData { success: boolean failed: boolean solution: string message: string errorMsg: string data: T status: string } // list接口返回数据格式 interface IListData{ page: number, pages: number, total:number, rows: T[] } interface IResponseList extends IResponseData{ data: IListData } // 列表查询传参 interface IListParams { page?: number rows?: number simple?: boolean params?: string, sorter?: string } // 模态框打开 interface IDialog { visible: boolean record: T } // 搜索配置 interface ISearchConfig { label?: string, value: string, type: string, initValue?: string | number, sign?: string, data?: T[], onChange?: { (val: string, listQuery: any): void } } // 列表 type IListState = { list: T[], total: number, params: IListParams, } }