Column.d.ts 1.0 KB

1234567891011121314151617181920212223242526
  1. import type { DefaultOptionType, SingleValueType } from '../Cascader';
  2. import type { Key } from '../../_util/type';
  3. export declare const FIX_LABEL = "__cascader_fix_label__";
  4. export interface ColumnProps {
  5. prefixCls: string;
  6. multiple?: boolean;
  7. options: DefaultOptionType[];
  8. /** Current Column opened item key */
  9. activeValue?: Key;
  10. /** The value path before current column */
  11. prevValuePath: Key[];
  12. onToggleOpen: (open: boolean) => void;
  13. onSelect: (valuePath: SingleValueType, leaf: boolean) => void;
  14. onActive: (valuePath: SingleValueType) => void;
  15. checkedSet: Set<Key>;
  16. halfCheckedSet: Set<Key>;
  17. loadingKeys: Key[];
  18. isSelectable: (option: DefaultOptionType) => boolean;
  19. }
  20. declare function Column({ prefixCls, multiple, options, activeValue, prevValuePath, onToggleOpen, onSelect, onActive, checkedSet, halfCheckedSet, loadingKeys, isSelectable, }: ColumnProps): JSX.Element;
  21. declare namespace Column {
  22. var props: string[];
  23. var displayName: string;
  24. var inheritAttrs: boolean;
  25. }
  26. export default Column;