File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
client/packages/lowcoder/src/comps/comps/dateComp Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export const DateRangeUIView = (props: DateRangeUIViewProps) => {
6161 return useUIView (
6262 < DateRangeMobileUIView { ...props } /> ,
6363 < RangePickerStyled
64- { ...omit ( props , "onChange" ) }
64+ { ...omit ( props , "onChange" , "format" ) }
6565 ref = { props . viewRef as any }
6666 value = { [ props . start , props . end ] }
6767 disabledDate = { ( current : any ) => disabledDate ( current , props . minDate , props . maxDate ) }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import type { Dayjs } from 'dayjs';
1313import { DateParser } from "@lowcoder-ee/util/dateTimeUtils" ;
1414import { timeZoneOptions } from "./timeZone" ;
1515import { default as AntdSelect } from "antd/es/select" ;
16+ import { omit } from "lodash" ;
1617
1718const DatePickerStyled = styled ( DatePicker < Dayjs > ) < { $style : DateTimeStyleType } > `
1819 width: 100%;
@@ -52,7 +53,7 @@ export const DateUIView = (props: DataUIViewProps) => {
5253 return useUIView (
5354 < DateMobileUIView { ...props } /> ,
5455 < DatePickerStyled
55- { ...props }
56+ { ...omit ( props , "format" ) }
5657 multiple = { false }
5758 ref = { props . viewRef as any }
5859 minDate = { props . minDate ? dayjs ( props . minDate , DateParser ) : undefined }
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export const TimeRangeUIView = (props: TimeRangeUIViewProps) => {
5656 return useUIView (
5757 < TimeRangeMobileUIView { ...props } /> ,
5858 < RangePickerStyled
59- { ...omit ( props , "onChange" ) }
59+ { ...omit ( props , "onChange" , "format" ) }
6060 value = { [ props . start , props . end ] }
6161 order = { true }
6262 hideDisabledOptions
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { EditorContext } from "../../editorState";
1010import dayjs from "dayjs"
1111import { default as AntdSelect } from "antd/es/select" ;
1212import { timeZoneOptions } from "./timeZone" ;
13+ import { omit } from "lodash" ;
1314
1415const TimePickerStyled = styled ( TimePicker ) < { $style : DateTimeStyleType } > `
1516 width: 100%;
@@ -43,7 +44,7 @@ export const TimeUIView = (props: TimeUIViewProps) => {
4344 return useUIView (
4445 < TimeMobileUIView { ...props } /> ,
4546 < TimePickerStyled
46- { ...props }
47+ { ...omit ( props , "format" ) }
4748 ref = { props . viewRef }
4849 hideDisabledOptions
4950 inputReadOnly = { checkIsMobile ( editorState ?. getAppSettings ( ) . maxWidth ) }
You can’t perform that action at this time.
0 commit comments