chore: demo page menu management (#5619)

* 添加菜单管理演示页面
This commit is contained in:
Netfan
2025-02-27 01:22:25 +08:00
committed by GitHub
parent 1d8676f456
commit 5e421ce607
18 changed files with 1328 additions and 11 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) {