mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix: missing date input field in filter operation on mobile (#5786)
This commit is contained in:
parent
38365a5023
commit
79743f0948
@ -27,6 +27,17 @@ AssociationFieldMobile.InternalSelect = AssociationField.InternalSelect;
|
||||
AssociationFieldMobile.ReadPretty = AssociationField.ReadPretty;
|
||||
AssociationFieldMobile.FileSelector = AssociationField.FileSelector;
|
||||
|
||||
const DatePickerMobile = (props) => {
|
||||
const { designable } = useDesignable();
|
||||
if (designable !== false) {
|
||||
return <DatePicker {...props} />;
|
||||
} else {
|
||||
return <MobileDateTimePicker {...props} />;
|
||||
}
|
||||
};
|
||||
DatePickerMobile.FilterWithPicker = DatePicker.FilterWithPicker;
|
||||
DatePickerMobile.RangePicker = DatePicker.RangePicker;
|
||||
|
||||
const mobileComponents = {
|
||||
Button: MobileButton,
|
||||
Select: (props) => {
|
||||
@ -37,14 +48,7 @@ const mobileComponents = {
|
||||
return <MobilePicker {...props} />;
|
||||
}
|
||||
},
|
||||
DatePicker: (props) => {
|
||||
const { designable } = useDesignable();
|
||||
if (designable !== false) {
|
||||
return <DatePicker {...props} />;
|
||||
} else {
|
||||
return <MobileDateTimePicker {...props} />;
|
||||
}
|
||||
},
|
||||
DatePicker: DatePickerMobile,
|
||||
UnixTimestamp: MobileDateTimePicker,
|
||||
Modal: MobileDialog,
|
||||
AssociationField: AssociationFieldMobile,
|
||||
|
Loading…
x
Reference in New Issue
Block a user