UNPKG

yg-my-lib

Version:

这是一个测试的库,未正式使用

18 lines (17 loc) 567 B
import { FormInstance, FormProps } from 'antd'; import { DefaultOptionType } from 'antd/es/select'; import { ReactNode } from 'react'; export interface IWidgetProps { label: JSX.Element | string; name: string; type: 'input' | 'select'; options?: DefaultOptionType[]; placeholder?: string; } export interface IDynamicFormProps extends FormProps { widgetlist: IWidgetProps[]; isShowRightNode?: boolean | ReactNode; onSearch?: (values: Record<string, any>) => void; } export interface IDynamicFormImperativeProps extends FormInstance { }