UNPKG

@schema-render/form-render-react

Version:

Out-of-the-box form rendering library based on Core and Antd.

29 lines (28 loc) 1.41 kB
import type { IInnerFormRenderProps } from '../typings'; type IUseSchemaParams = Pick<IInnerFormRenderProps, 'schema' | 'actionsRestSchema' | 'actionsRenderMode'>; /** * 处理 Actions 为 Schema 渲染器模式 */ export default function useSchema({ schema, actionsRestSchema, actionsRenderMode, }: IUseSchemaParams): { properties: { [x: string]: import("../../../core-react/src").IObjectSchema<string> | import("../../../core-react/src").IArraySchema<string> | import("../../../core-react/src").IBaseSchema<string> | { renderType: string; type?: import("../../../core-react/src").IType | undefined; renderOptions?: import("../../../core-react/src").IObjectAny | undefined; title?: string | undefined; titleDescription?: string | undefined; description?: string | undefined; required?: string | boolean | undefined; disabled?: string | boolean | undefined; readonly?: string | boolean | undefined; hidden?: string | boolean | undefined; className?: string | undefined; style?: import("../../../core-react/src").IObjectAny | undefined; span?: number | undefined; spanStart?: number | undefined; rules?: import("../../../core-react/src").IRuleItem[] | undefined; }; }; renderType: "Root"; }; export {};