@undermuz/react-json-form
Version:
Generate JSON-based forms with react
23 lines (20 loc) • 713 B
TypeScript
import { IErrors } from '@undermuz/use-form';
import { FC, PropsWithChildren } from 'react';
import { T as TypeValueItem, j as ISchemeItem, d as IJsonFormRef } from '../types-4491bbaa.js';
interface IArrayFormItemProps {
id: number;
parentId?: string;
isShow?: boolean;
primary?: boolean;
level: number;
value: TypeValueItem;
scheme: ISchemeItem[];
onRef?: ({ id, ref }: {
id: number;
ref: IJsonFormRef | null;
}) => void;
onChange: (v: TypeValueItem, id: number | null) => void;
onError: (v: IErrors, id: number) => void;
}
declare const ArrayFormItem: FC<PropsWithChildren & IArrayFormItemProps>;
export { ArrayFormItem as default };