chowa
Version:
UI component library based on React
28 lines (27 loc) • 911 B
TypeScript
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as React from 'react';
import { DataIndex, SortMode } from './table-column';
import { UpdateParams, SorterInfo } from './table';
export interface TableSorterProps {
sorted?: boolean;
sortMode?: SortMode;
sortMethod?: (dataIndex: DataIndex, mode: SortMode) => any;
dataIndex: DataIndex;
activeSorter: SorterInfo;
updateTable: (params: UpdateParams) => void;
}
declare class TableSorter extends React.PureComponent<TableSorterProps, any> {
constructor(props: TableSorterProps);
componentDidUpdate(preProps: TableSorterProps): void;
componentDidMount(): void;
private doSort;
render(): JSX.Element;
}
export default TableSorter;