From 545789219ded707eaadafb5764fb46979af2a8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 28 Dec 2023 20:16:09 +0800 Subject: [PATCH] chore: more ts --- docs/examples/debug.tsx | 5 +++++ src/PickerInput/RangePicker.tsx | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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;