This commit is contained in:
dap
2025-03-01 15:22:35 +08:00
28 changed files with 1431 additions and 63 deletions

View File

@@ -93,9 +93,9 @@ export class FormApi {
return this.state;
}
async getValues() {
async getValues<T = Recordable<any>>() {
const form = await this.getForm();
return form.values ? this.handleRangeTimeValue(form.values) : {};
return (form.values ? this.handleRangeTimeValue(form.values) : {}) as T;
}
async isFieldValid(fieldName: string) {