feat: improve form demo (#5582)

This commit is contained in:
Netfan
2025-02-21 12:07:32 +08:00
committed by GitHub
parent c9ccd2bbab
commit eba372062e
6 changed files with 126 additions and 89 deletions

View File

@@ -150,7 +150,9 @@ const [Form, formApi] = useVbenForm({
default: () => ['我已阅读并同意'],
};
},
rules: 'selectRequired',
rules: z.boolean().refine((value) => value, {
message: '请勾选',
}),
},
{
component: 'DatePicker',