UNPKG

@schema-render/form-render-react

Version:

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

55 lines (54 loc) 2.73 kB
/// <reference types="react" /> import type { ICoreRef } from '@schema-render/core-react'; declare const _default: import("react").ForwardRefExoticComponent<Omit<Omit<import("@schema-render/core-react").ICore, "schema" | "itemLayout" | "locale">, "renderers"> & Partial<Pick<Omit<import("@schema-render/core-react").ICore, "schema" | "itemLayout" | "locale">, "renderers">> & { schema: import("./typings").IFormRenderRootSchema<string>; rootClassName?: string | undefined; rootStyle?: import("react").CSSProperties | undefined; readonlyPlaceholder?: import("react").ReactNode; itemLayout?: import("react").ComponentType<import("@schema-render/core-react").IOpenItemLayoutParams> | "horizontal" | "vertical" | undefined; labelWidth?: string | number | undefined; labelColon?: import("react").ReactNode; labelGap?: number | undefined; labelRender?: import("./typings").ILabelRender | undefined; locale?: { FormRender: { submit: string; reset: string; placeholderInput: string; placeholderSelect: string; comma: string; displayDateRange: string; }; localeName: string; validation: { required: string; typeError: string; }; } | undefined; actions?: string[] | null | undefined; actionsRenderMode?: "normal" | "formItem" | undefined; actionsRestSchema?: Partial<import("@schema-render/core-react").IBaseSchema<string>> | undefined; disableFormOnActionLoading?: boolean | undefined; validateFormOnSubmit?: boolean | undefined; registerActions?: import("./typings").IRegisterActions<{ FormRender: { submit: string; reset: string; placeholderInput: string; placeholderSelect: string; comma: string; displayDateRange: string; }; localeName: string; validation: { required: string; typeError: string; }; } & import("@schema-render/core-react").IObjectAny> | undefined; submitText?: string | undefined; resetText?: string | undefined; onSubmit?: ((value: import("@schema-render/core-react").IObjectAny) => import("@schema-render/core-react").IMaybePromise<void>) | undefined; onBeforeReset?: ((value: import("@schema-render/core-react").IObjectAny) => import("@schema-render/core-react").IMaybePromise<void | import("@schema-render/core-react").IObjectAny>) | undefined; onReset?: ((value: import("@schema-render/core-react").IObjectAny) => import("@schema-render/core-react").IMaybePromise<void>) | undefined; } & import("react").RefAttributes<ICoreRef>>; export default _default;