import type { FC, ReactNode } from 'react'; import type { Dayjs } from 'dayjs'; import type { BaseFilterProps, InternalFilterProps } from '../type'; export interface RangeOption { label: ReactNode; value: [Dayjs, Dayjs] | null; } export interface FilterRangeProps extends BaseFilterProps, InternalFilterProps { /** 当前选中值 */ value?: [Dayjs, Dayjs]; /** 值变化回调 */ onChange?: (value: [Dayjs, Dayjs]) => void; /** 预设选项列表 */ options?: RangeOption[]; /** 是否加载中 */ loading?: boolean; } declare const FilterRange: FC; export default FilterRange;