UNPKG

fx-form-widget

Version:
38 lines (37 loc) 1.23 kB
import { CSSProperties, Key, ReactNode } from "react"; import { Data } from "../imageList"; import { LineStyle, SeparatorProps } from "../separator"; import { Schema } from '../Table'; export type WidgetType = 'datePicker' | 'refill' | 'rate' | 'uploadPic' | 'uploadFile' | 'group' | 'subform' | 'separator'; export type Value = Data[] | string | number | any; export declare const blockComponent: string[]; export interface RowContainerProps extends SeparatorProps, Schema { label?: ReactNode; span?: number; labelStyle?: CSSProperties; contentStyle?: CSSProperties; lineStyle?: LineStyle; value?: Value; widgetType?: WidgetType; wid?: string; column?: number; children?: RowContainerProps[]; options?: { showSerialNumberButton?: boolean; articlePageNumber?: number; exportDataButton?: boolean; title?: string; }; } export interface LabelProps { label?: ReactNode; labelStyle?: CSSProperties; } export interface DescriptionsItemProps { label?: ReactNode; span?: number; contentStyle?: CSSProperties; labelStyle?: CSSProperties; key?: Key; } export declare const renderWidget: (widgetType: WidgetType, value: any) => any;