acud
Version:
acg react 组件库
34 lines (33 loc) • 1.08 kB
TypeScript
/**
* @file Input for FormItem
* @author chenqiang(chenqiang03)
*/
import * as React from 'react';
import { ColProps } from '../grid/col';
import { ValidateStatus } from './FormItem';
interface FormItemInputMiscProps {
prefixCls: string;
children: React.ReactNode;
errors: React.ReactNode[];
hasFeedback?: boolean;
validateStatus?: ValidateStatus;
onDomErrorVisibleChange: (visible: boolean) => void;
/** @private Internal usage, do not use in any of your production. */
_internalItemRender?: {
mark: string;
render: (props: FormItemInputProps & FormItemInputMiscProps, domList: {
input: JSX.Element;
errorList: JSX.Element;
extra: JSX.Element | null;
}) => React.ReactNode;
};
}
export interface FormItemInputProps {
wrapperCol?: ColProps;
inputMaxWidth?: string | number;
help?: React.ReactNode;
extra?: React.ReactNode;
status?: ValidateStatus;
}
declare const FormItemInput: React.FC<FormItemInputProps & FormItemInputMiscProps>;
export default FormItemInput;