ng-layout-form
Version:
layout form
31 lines (30 loc) • 950 B
TypeScript
import { CSSProperties, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
export declare type InnerCompPropsInfo<T> = {
formConf?: any;
} & T;
export declare type CompDefaultPropsInfo<R> = {
/**
* @description 组件id
*/
id?: string;
/**
* @description 表单项的配置
*/
config?: R;
/**
* @description 重写config配置信息
*/
setConfig?: (config: R) => R;
/**
* @description UI元数据的路径
*/
confKey?: Array<string>;
style?: CSSProperties;
className?: any;
onLoad?: () => void;
initSc?: any;
formConf?: any;
disabledNotify?: boolean;
} & InnerCompPropsInfo<unknown>;
export declare type InnerComp<T> = ForwardRefExoticComponent<PropsWithoutRef<T> & RefAttributes<any>>;
export declare type CompHocProps<BaseProps, CompProps> = CompDefaultPropsInfo<BaseProps> & CompProps;