feat: add function support for formItemClass prop (#6511)

* feat: add function support for formItemClass prop

* feat: add try-catch to formItemClass function

* fix: formItemClass function ts error

---------

Co-authored-by: sqchen <chenshiqi@sshlx.com>
This commit is contained in:
panda7
2025-07-17 09:37:39 +08:00
committed by GitHub
parent 1bc5d2986b
commit 07b64ad384
3 changed files with 21 additions and 5 deletions

View File

@@ -395,7 +395,7 @@ export interface FormCommonConfig {
* 所有表单项的栅格布局
* @default ""
*/
formItemClass?: string;
formItemClass?: (() => string) | string;
/**
* 隐藏所有表单项label
* @default false