Skip to content

Commit

Permalink
fix: 支持到处defaultTimeRange (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Zhang authored Jun 20, 2023
1 parent 2d98a62 commit 90e4f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/past-time-picker/PastTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const PastTimePicker = (props: PastTimePickerProps) => {
showAbsDate = false,
NotAvailableToday = false,
allowReset = false,
defaultTimeRange,
...restProps
} = props;

Expand Down Expand Up @@ -190,6 +191,7 @@ const PastTimePicker = (props: PastTimePickerProps) => {
modes={modes}
experimental={experimental}
timeRange={timeRange}
defaultTimeRange={defaultTimeRange}
onSelect={handleOnSelect}
onRangeSelect={onRangeSelect}
onCancel={handleOnCancel}
Expand Down
1 change: 1 addition & 0 deletions src/past-time-picker/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ export interface PastTimePickerProps
showAbsDate?: boolean;
NotAvailableToday?: boolean;
allowReset?: boolean;
defaultTimeRange?: string;
}

1 comment on commit 90e4f09

@vercel
Copy link

@vercel vercel bot commented on 90e4f09 Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gio-design – ./

gio-design.vercel.app
gio-design-git-master-growingio.vercel.app
gio-design-growingio.vercel.app

Please sign in to comment.