UNPKG

tdesign-react

Version:
49 lines (48 loc) 1.63 kB
import React from 'react'; import { StyledProps } from '../../common'; import type { TdDateRangePickerProps } from '../type'; export interface RangePanelProps extends Omit<TdDateRangePickerProps, 'onYearChange' | 'onMonthChange'>, StyledProps { hoverValue?: string[]; activeIndex?: number; isFirstValueSelected?: boolean; popupVisible?: boolean; panelPreselection?: boolean; year?: number[]; month?: number[]; time?: string[]; cancelRangeSelectLimit?: boolean; isSwitchTimeMode?: boolean; onClick?: (context: { e: React.MouseEvent<HTMLDivElement>; }) => void; onCellClick?: (date: Date, context: { e: React.MouseEvent<HTMLDivElement>; partial: 'start' | 'end'; }) => void; onCellMouseEnter?: (date: Date, context: { partial: 'start' | 'end'; }) => void; onCellMouseLeave?: (context: { e: React.MouseEvent<HTMLDivElement>; }) => void; onJumperClick?: (context: { e?: MouseEvent; trigger: string; partial: 'start' | 'end'; }) => void; onConfirmClick?: (context: { e: React.MouseEvent<HTMLButtonElement>; }) => void; onPresetClick?: any; onYearChange?: (year: number, context: { partial: 'start' | 'end'; }) => void; onMonthChange?: (month: number, context: { partial: 'start' | 'end'; }) => void; onTimePickerChange?: (value: string, context?: { activeIndex: 0 | 1; }) => void; } declare const RangePanel: React.ForwardRefExoticComponent<RangePanelProps & React.RefAttributes<HTMLDivElement>>; export default RangePanel;