mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
fe7a5547a7
@ -205,7 +205,7 @@ DatePicker.RangePicker = function RangePicker(props: any) {
|
||||
...props,
|
||||
format: getDateTimeFormat(targetPicker, targetDateFormat, showTime, timeFormat),
|
||||
picker: targetPicker,
|
||||
showTime: showTime ? { defaultValue: [dayjs('00:00:00', 'HH:mm:ss'), dayjs('00:00:00', 'HH:mm:ss')] } : false,
|
||||
showTime: showTime ? { defaultValue: [dayjs('00:00:00', 'HH:mm:ss'), dayjs('23:59:59', 'HH:mm:ss')] } : false,
|
||||
};
|
||||
const [stateProps, setStateProps] = useState(newProps);
|
||||
if (isFilterAction) {
|
||||
|
@ -229,7 +229,7 @@ export const getPickerFormat = (picker) => {
|
||||
export const getDateTimeFormat = (picker, format, showTime, timeFormat) => {
|
||||
if (picker === 'date') {
|
||||
if (showTime) {
|
||||
return format + timeFormat || 'HH:mm:ss';
|
||||
return `${format} ${timeFormat || 'HH:mm:ss'}`;
|
||||
}
|
||||
return format;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user