diff --git a/docs/examples/debug.tsx b/docs/examples/debug.tsx index 47d1e1669..345c9c748 100644 --- a/docs/examples/debug.tsx +++ b/docs/examples/debug.tsx @@ -163,6 +163,10 @@ export default () => { // dayjs('2000-01-09'), ]} // disabledDate={(date) => date.date() >= 5} + getPopupContainer={(node) => { + console.log('Popup!', node); + return node.parentElement!; + }} presets={[ { label: 'Good', @@ -192,6 +196,7 @@ export default () => { (config: T | [T, T] | null | undefined, defaultConfig: return [singleConfig, singleConfig]; } -export type RangeValueType = [start?: DateType, end?: DateType]; +export type RangeValueType = [start?: DateType | null, end?: DateType | null]; export interface BaseRangePickerProps extends Omit, 'showTime' | 'id'> { // Structure id?: SelectorIdType; + separator?: React.ReactNode; + // Value value?: RangeValueType; defaultValue?: RangeValueType;