UNPKG

fx-form-widget

Version:
51 lines (50 loc) 1.41 kB
import React, { CSSProperties, FC, ReactNode } from 'react'; import { LineStyle } from './separator'; import { WidgetType } from './rowContainerGroup/shard'; import './index.less'; export interface DetailRenderProps { partitions?: Partition[]; datas?: any[]; loading?: boolean; bordered?: boolean; colon?: boolean; column?: number; contentStyle?: CSSProperties; extra?: ReactNode; labelStyle?: CSSProperties; layout?: 'horizontal' | 'vertical'; size?: 'default' | 'middle' | 'small'; title?: React.ReactNode; } export declare const DetailRenderContext: import("react").Context<Omit<DetailRenderProps, "partitions" | "datas">>; export interface Partition { partition?: string | null; schemas?: Schema[]; } export interface Data { wid?: string; fieldName?: string; value?: any; } export interface Schema { viewSchema?: { title?: string; lineType?: LineStyle; }; widget?: WidgetType; children?: Schema[]; wid?: string; fieldName?: string; options?: Options; } export interface Options { showSerialNumberButton?: boolean; showActionButton?: boolean; subFormAddButtonText?: string; articlePageNumber?: number; maxCountNumber?: number; showBulkImportButton?: number; exportDataButton?: boolean; } declare const DetailRender: FC<DetailRenderProps>; export default DetailRender;