📅  最后修改于: 2022-03-11 14:57:26.610000             🧑  作者: Mango
代码示例1
const schema = Yup.date()
.nullable()
.transform((curr, orig) => orig === '' ? null : curr)
.required('Mandatory field message')