Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const DateRangeUIView = (props: DateRangeUIViewProps) => {
return useUIView(
<DateRangeMobileUIView {...props} />,
<RangePickerStyled
{...omit(props, "onChange")}
{...omit(props, "onChange" , "format")}
ref={props.viewRef as any}
value={[props.start, props.end]}
disabledDate={(current: any) => disabledDate(current, props.minDate, props.maxDate)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type { Dayjs } from 'dayjs';
import { DateParser } from "@lowcoder-ee/util/dateTimeUtils";
import { timeZoneOptions } from "./timeZone";
import { default as AntdSelect } from "antd/es/select";
import { omit } from "lodash";

const DatePickerStyled = styled(DatePicker<Dayjs>)<{ $style: DateTimeStyleType }>`
width: 100%;
Expand Down Expand Up @@ -52,7 +53,7 @@ export const DateUIView = (props: DataUIViewProps) => {
return useUIView(
<DateMobileUIView {...props} />,
<DatePickerStyled
{...props}
{...omit(props, "format")}
multiple={false}
ref={props.viewRef as any}
minDate={props.minDate ? dayjs(props.minDate, DateParser) : undefined}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const TimeRangeUIView = (props: TimeRangeUIViewProps) => {
return useUIView(
<TimeRangeMobileUIView {...props} />,
<RangePickerStyled
{...omit(props, "onChange")}
{...omit(props, "onChange", "format")}
value={[props.start, props.end]}
order={true}
hideDisabledOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { EditorContext } from "../../editorState";
import dayjs from "dayjs"
import { default as AntdSelect } from "antd/es/select";
import { timeZoneOptions } from "./timeZone";
import { omit } from "lodash";

const TimePickerStyled = styled(TimePicker)<{ $style: DateTimeStyleType }>`
width: 100%;
Expand Down Expand Up @@ -43,7 +44,7 @@ export const TimeUIView = (props: TimeUIViewProps) => {
return useUIView(
<TimeMobileUIView {...props} />,
<TimePickerStyled
{...props}
{...omit(props, "format")}
ref={props.viewRef}
hideDisabledOptions
inputReadOnly={checkIsMobile(editorState?.getAppSettings().maxWidth)}
Expand Down
Loading