react-admin-component
Version:
react library
19 lines (18 loc) • 629 B
TypeScript
import React from 'react';
import { FormBaseProps } from '../form-input';
import { FormProps } from 'antd/lib/form';
import { GetFieldDecoratorOptions } from 'antd/lib/form/Form';
interface IField extends FormBaseProps, GetFieldDecoratorOptions {
type: 'input' | 'select';
valueFilter?: Function;
style?: React.CSSProperties;
options?: {
key: any;
value: any;
}[];
}
interface FormGroupProps extends Omit<FormBaseProps, 'field'>, Omit<FormProps, 'onChange'> {
fields: IField[];
}
declare const FormGroup: (props: FormGroupProps) => JSX.Element;
export default FormGroup;