import { AsyncValidatorFn, FormControl, ValidatorFn } from '@angular/forms'; export interface ControlLayout { xs: number | string; sm: number | string; md: number | string; lg: number | string; xl: number | string; xxl: number | string; } export declare abstract class AbstractCoreControl { abstract readonly type?: string; uid?: number; name?: string; defaultValue?: any; validators?: ValidatorFn | ValidatorFn[] | null; asyncValidators?: AsyncValidatorFn | AsyncValidatorFn[] | null; /** * 验证时机 */ updateOn?: 'change' | 'blur' | 'submit'; /** * 当invalid为true 时 该控件会从动态表单中移除(注意: 不是隐藏) */ invalid?: boolean; /** * 与 invalid 相互配合 如果满足条件 则将 invalid 设置为false 即为有效状态 */ validOfIf?: (value: any) => boolean; /** * 自定义label */ customLabel?: boolean; /** * 当前控件是否隐藏 */ hide?: boolean; label?: string; /** * 当前控件是否禁用 */ disabled?: boolean; /** * 当前控件提示信息 */ placeHolder?: string; /** * 当前控件是否必填 */ required?: boolean; controlLayout?: ControlLayout; formControl?: FormControl | undefined; oldControl?: this | undefined; /** * 该属性 当且仅当不是响应式时有效 * 控件宽度 默认整行 */ controlCol?: string | number; constructor(); } export declare class ChildCoreControl extends AbstractCoreControl { type?: string; [key: string]: any; }