refactor: 优化错误处理逻辑

This commit is contained in:
siujamo committed 2025-12-29 11:49:44 +08:00
1 parent b0ccd8f832
commit 1ae17823ef
4 files changed
+51 -27

No files matched your search

+13
View File
@@ -19,3 +19,16 @@ export interface AntSelectOptionItem {
}
export type AntSelectOption = AntSelectOptionItem[]
export interface AntFieldError {
errors: string[]
name: string[]
warnings: unknown[]
}
export interface AntFormValidationError<T> {
values: T
message: string
outOfDate: boolean
errorFields: AntFieldError[]
}