Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 01:51:36 +00:00
parent a4605e311a
commit 58905d02c2
28599 changed files with 2179074 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import type { FormInstance } from 'antd';
/**
* 因为 fieldProps 支持了 function 所以新增了这个方法
*
* @param fieldProps
* @param form
*/
export declare const getFieldPropsOrFormItemProps: (fieldProps: any, form?: FormInstance<any> | null, extraProps?: any) => Record<string, any> & {
onChange: any;
colSize: number;
};

View File

@@ -0,0 +1,14 @@
import { runFunction } from "../runFunction";
/**
* 因为 fieldProps 支持了 function 所以新增了这个方法
*
* @param fieldProps
* @param form
*/
export var getFieldPropsOrFormItemProps = function getFieldPropsOrFormItemProps(fieldProps, form, extraProps) {
if (form === undefined) {
return fieldProps;
}
return runFunction(fieldProps, form, extraProps);
};