import * as React from "react"; /** * 参数:prefixCls,默认bee-table,用于设置图标的样式 * @param {*} Table * @param {*} Icon */ export default function sort(Table: any, Icon: any, icon: any): { new (props: any): { componentWillReceiveProps(nextProps: any): void; _initSort: () => void; /** *column扁平化处理,适应多表头避免递归操作 * */ _toFlatColumn(columns: any, parentIndex?: any, flatColumns?: any): any; getOrderNum: () => number; /** * column 当前的排序的列 * 当有的列不排序时,将该列的orderNum置为‘’,并动态的修改其他列的orderNum。 */ changeOrderNum: (column: any) => void; /** * 获取排序字段 */ getOrderCols: (columns: any) => any; /** * pre:前一条数据 * after:后一条数据 * orderType:升序、降序 */ _sortBy: (pre: any, after: any, orderCols: any, orderColslen: any, currentIndex: any) => any; /** * 多列排序 先排order为1的,其他的基于已排序的数据排 */ multiSort: (columns: any) => any; toggleSortOrder: (order: any, column: any) => void; renderColumnsDropdown: (columns: any) => any; sortColumn: (column: any) => any; defaultSortFn: (key: any) => (a: any, b: any) => 1 | -1; numberSortFn: (key: any) => (a: any, b: any) => 1 | -1; chineseSortFn: (key: any) => (a: any, b: any) => any; _flatToColumn(flatColumns: any): any; handleDropBorder: (event: any, newWidth: any, newColumn: any, newColumns: any) => void; render(): JSX.Element; context: unknown; setState(state: any, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; defaultProps: { prefixCls: string; sort: { mode: string; backSource: boolean; }; }; contextType?: React.Context | undefined; };