fix: vxeGrid init without search form (#5342)

* 修复vxeGrid在未使用表单的情况下,自动加载数据失效的问题。

* 暂时将vxeGrid版本锁定在4.10.0,新版本尺寸计算尚有问题
This commit is contained in:
Netfan
2025-01-10 11:53:06 +08:00
committed by GitHub
parent e10cbe23b9
commit 7606b86854
4 changed files with 13 additions and 19 deletions

View File

@@ -95,7 +95,7 @@ export class FormApi {
async getValues() {
const form = await this.getForm();
return this.handleRangeTimeValue(form.values);
return form.values ? this.handleRangeTimeValue(form.values) : {};
}
async isFieldValid(fieldName: string) {