amis-rpc-design/node_modules/rc-picker/lib/RangeContext.d.ts

15 lines
523 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { NullableDateType, RangeValue } from './interface';
export type RangeContextProps = {
/**
* Set displayed range value style.
* Panel only has one value, this is only style effect.
*/
rangedValue?: [NullableDateType<any>, NullableDateType<any>] | null;
hoverRangedValue?: RangeValue<any>;
inRange?: boolean;
panelPosition?: 'left' | 'right' | false;
};
declare const RangeContext: React.Context<RangeContextProps>;
export default RangeContext;