;
/**
* @description 若设置了checkbox属性,设置行多选,否则选中单行
*/
setSelected?: (rowIndexes: number[] | number, selected?: boolean) => void;
/**
* @description 重新发起request请求,覆盖之前的查询参数
*/
query?: (params?: IObject | Function, callback?: any) => void;
/**
* @description 刷新数据源(重新发起请求)
*/
refreshData?: () => void;
getStore?: () => any;
}
interface IResult {
isChanged: boolean;
table: P;
}
declare type NewDataType = {
key: string;
newRow: Array>;
};
declare type ChangeDataType = NewDataType & {
modifiedRow: Array>;
deletedRow: Array>;
};
export interface ITableInstance extends TableInstance {
/**
* @description 返回所有数据行,包含行状态
*/
getAllData?: (ignoreUnChanged?: boolean) => IResult>;
}>;
/**
* @description 返回更新的行
*/
getChange?: (config: {
initRows?: any[];
}) => IResult;
}
export {};