From 90e4f09d4fd50251ce6d99821618aa8be2875bf7 Mon Sep 17 00:00:00 2001 From: Ryan Zhang Date: Tue, 20 Jun 2023 10:32:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=AF=E6=8C=81=E5=88=B0=E5=A4=84defa?= =?UTF-8?q?ultTimeRange=20(#2161)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/past-time-picker/PastTimePicker.tsx | 2 ++ src/past-time-picker/interfaces.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/past-time-picker/PastTimePicker.tsx b/src/past-time-picker/PastTimePicker.tsx index f68bd5cfec..b22a3d28aa 100644 --- a/src/past-time-picker/PastTimePicker.tsx +++ b/src/past-time-picker/PastTimePicker.tsx @@ -36,6 +36,7 @@ const PastTimePicker = (props: PastTimePickerProps) => { showAbsDate = false, NotAvailableToday = false, allowReset = false, + defaultTimeRange, ...restProps } = props; @@ -190,6 +191,7 @@ const PastTimePicker = (props: PastTimePickerProps) => { modes={modes} experimental={experimental} timeRange={timeRange} + defaultTimeRange={defaultTimeRange} onSelect={handleOnSelect} onRangeSelect={onRangeSelect} onCancel={handleOnCancel} diff --git a/src/past-time-picker/interfaces.ts b/src/past-time-picker/interfaces.ts index cc3a44bd7f..6885a0e107 100644 --- a/src/past-time-picker/interfaces.ts +++ b/src/past-time-picker/interfaces.ts @@ -19,4 +19,5 @@ export interface PastTimePickerProps showAbsDate?: boolean; NotAvailableToday?: boolean; allowReset?: boolean; + defaultTimeRange?: string; }