amis-rpc-design/node_modules/rc-picker/es/PanelContext.d.ts

24 lines
825 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { OnSelect, PanelMode } from './interface';
export type ContextOperationRefProps = {
onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => boolean;
onClose?: () => void;
};
export type PanelContextProps = {
operationRef?: React.MutableRefObject<ContextOperationRefProps | null>;
/** Only work with time panel */
hideHeader?: boolean;
hidePrevBtn?: boolean;
hideNextBtn?: boolean;
onDateMouseEnter?: (date: any) => void;
onDateMouseLeave?: (date: any) => void;
onSelect?: OnSelect<any>;
hideRanges?: boolean;
open?: boolean;
mode?: PanelMode;
/** Only used for TimePicker and this is a deprecated prop */
defaultOpenValue?: any;
};
declare const PanelContext: React.Context<PanelContextProps>;
export default PanelContext;