Handle dateonly by default
This commit is contained in:
parent
f09b6bf090
commit
9ad1d60850
|
@ -69,9 +69,13 @@
|
|||
}
|
||||
},
|
||||
[FieldType.DATETIME]: (_field, schema) => {
|
||||
return {
|
||||
const props = {
|
||||
valueAsTimestamp: !schema?.timeOnly,
|
||||
}
|
||||
if (schema?.dateOnly) {
|
||||
props.enableTime = false
|
||||
}
|
||||
return props
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue