Skip to content

Commit

Permalink
tuple for column fixed prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 authored and afc163 committed Oct 14, 2019
1 parent 4e1bbcc commit 453c01a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/table/interface.tsx
Expand Up @@ -4,6 +4,9 @@ import { Store } from './createStore';
import { RadioChangeEvent } from '../radio';
import { CheckboxChangeEvent } from '../checkbox';
import { PaginationConfig } from '../pagination';
import { tuple } from '../_util/type';

const ColumnFixedPlacements = tuple('left', 'right');

// eslint-disable-next-line import/prefer-default-export
export { PaginationConfig } from '../pagination';
Expand Down Expand Up @@ -44,7 +47,7 @@ export interface ColumnProps<T> {
colSpan?: number;
width?: string | number;
className?: string;
fixed?: boolean | ('left' | 'right');
fixed?: boolean | (typeof ColumnFixedPlacements)[number];
filterIcon?: React.ReactNode | ((filtered: boolean) => React.ReactNode);
filteredValue?: any[];
sortOrder?: SortOrder | boolean;
Expand Down

0 comments on commit 453c01a

Please sign in to comment.