How to use the bee-table/build/lib/sum function in bee-table

To help you get started, we’ve selected a few bee-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iuap-design / bee.tinper.org / tinper-bee / bee-complex-grid / src / Grid.js View on Github external
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;