UNPKG

fx-form-widget

Version:
49 lines (48 loc) 1.21 kB
/// <reference types="react" /> import './index.less'; interface PreviewPlatformProps { schema: { [key: string]: any; }; defaultValue?: Array<any>; loading?: boolean; formId?: string; readonly?: boolean | string[]; hideInForm?: string[]; variant?: 'outlined' | 'borderless' | 'filled'; onCheck?: (checkItem: { fieldName: string; value: string; }) => void; getAnchorInfo?: (anchorInfo: AnchorInfoType[]) => void; } interface FormHandle { setDefaultValue: (value: any) => void; } type AnchorInfoType = { title: string; anchor: string; }; export interface Partition { partition?: string | null; schemas?: Schema[]; } export interface Data { wid?: string; fieldName?: string; value?: any; } export interface Schema { viewSchema?: { title?: string; lineType?: any; }; widget?: any; children?: Schema[]; wid?: string; fieldName?: string; options?: any; } export declare const Context: import("react").Context<{}>; declare const _default: import("react").ForwardRefExoticComponent<PreviewPlatformProps & import("react").RefAttributes<FormHandle>>; export default _default;