Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
total: paginationObj.total,
pageItems: paginationObj.items,
dataNum: paginationObj.dataNum,
showMenuKey:''
// columns: props.columns.slice()
};
//后端回调方法,用户的sortFun和Grid的有时有冲突,所以重新定义了一个sort,传给Table
if (sortObj) {
sortObj.originSortFun = sortObj.originSortFun
? sortObj.originSortFun
: sortObj.sortFun;
sortObj.sortFun = this.sortFun;
this.sort = sortObj;
}
if (props.canSum) {
ComplexTable = sum(ComplexTable);
}
//根据条件生成Grid
ComplexTable = sort(Table, Icon);
if (props.multiSelect !== false) {
ComplexTable = multiSelect(ComplexTable, Checkbox);
}
if(props.loadLazy){
ComplexTable = bigData(ComplexTable);
}
if (props.draggable) {
ComplexTable = dragColumn(ComplexTable);
}
ComplexTable = filterColumn(ComplexTable, Popover);
this.ComplexTable = ComplexTable;