@flodejs/json-schema-editor-antd
Version:
Json Schema Editor
19 lines (18 loc) • 794 B
TypeScript
import React from 'react';
import { JSONSchema } from '../types';
type SchemaItemProps = {
propertyName?: string;
nodeDepth?: number;
namePath?: number[];
isArrayItems?: boolean;
isRequire?: boolean;
schema: JSONSchema;
changeSchema?: (namePath: number[], value: any, propertyName?: string) => void;
renameProperty?: (namePath: number[], name: string) => void;
removeProperty?: (namePath: number[]) => void;
addProperty?: (path: number[], isChild: boolean) => void;
updateRequiredProperty?: (namePath: number[], removed: boolean) => void;
handleAdvancedSettingClick?: (namePath: number[], schema: JSONSchema, propertyName?: string) => boolean;
};
declare function SchemaItem(props: SchemaItemProps): React.JSX.Element;
export default SchemaItem;