UNPKG

form-render

Version:

通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成

19 lines (18 loc) 1.01 kB
import React from 'react'; export declare const getPath: (path: any) => any; export declare const getLabel: (schema: any, displayType: string, widgets: any, addons: any) => any; export declare const getTooltip: (schema: any, displayType: string) => any; export declare const getExtraView: (extraKey: string, schema: any, widgets: any, addons: any) => React.JSX.Element; export declare const getColSpan: (formCtx: any, parentCtx: any, schema: any) => number; export declare const getParamValue: (formCtx: any, upperCtx: any, schema: any) => (valueKey: string, isTop?: boolean) => any; export declare const getFieldProps: (widgetName: string, schema: any, { widgets, methods, form, dependValues, globalProps, path, rootPath, fieldRef }: { widgets: any; methods: any; form: any; dependValues: any; globalProps: any; path: any; rootPath: any; fieldRef: any; }) => any; export declare const getDependValues: (formData: any, dependPath: string, props: any, dependencieItem: any[]) => any;