UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

38 lines (37 loc) 1.27 kB
import React, { Component, Key, ReactElement, ReactNode } from 'react'; import Menu from '../../../../lib/rc-components/menu/index'; import { ColumnProps } from '../Column'; export interface ColumnFilterProps { prefixCls?: string; onColumnFilterChange?: (item?: any) => void; getPopupContainer?: (triggerNode?: Element) => HTMLElement; } export default class ColumnFilter extends Component<ColumnFilterProps> { static displayName: string; static get contextType(): React.Context<import("../TableContext").TableContextValue>; hidden: any; menu?: Menu | null; constructor(props: any, context: any); saveMenu(node: any): void; handleHiddenChange(hidden: any): void; handleKeyDown(e: any): void; setDropDownHidden(hidden: any): void; getPrefixCls(): string; render(): JSX.Element; handleMenuSelect({ item: { props: { value }, }, }: { item: { props: { value: any; }; }; }): void; handleMenuUnSelect({ item: { props: { value }, }, }: { item: { props: { value: any; }; }; }): void; getMenu(): JSX.Element; getOptions(columns: [ColumnProps, ReactNode, Key][]): ReactElement<any>[]; }