Handle dateonly by default
This commit is contained in:
parent
f09b6bf090
commit
9ad1d60850
1 changed files with 5 additions and 1 deletions
|
@ -69,9 +69,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[FieldType.DATETIME]: (_field, schema) => {
|
[FieldType.DATETIME]: (_field, schema) => {
|
||||||
return {
|
const props = {
|
||||||
valueAsTimestamp: !schema?.timeOnly,
|
valueAsTimestamp: !schema?.timeOnly,
|
||||||
}
|
}
|
||||||
|
if (schema?.dateOnly) {
|
||||||
|
props.enableTime = false
|
||||||
|
}
|
||||||
|
return props
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue