import React from 'react'; import { FormInstance } from 'antd'; import { ModeType } from './type'; import './style.less'; export interface WithModeProps { renderMode?: ModeType; value?: any; onChange?: (value: any) => void; [key: string]: any; } /** * @title: 增加renderMode属性 * @description: 基于renderMode属性控制渲染模式 * @return: * * @Author: shengjie.zuo * @Date: 2024-11-23 17:13:18 */ export declare const withMode:
(FieldComponent: React.ComponentType
, ReadPrettyComponent?: React.ComponentType
| undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC
; export interface WithFormItemProps { name: string; label?: string; mode?: ModeType; [key: string]: any; } export declare const formItemNameReplace: (name: string) => string; export declare const formItemNameReverse: (name: string) => string; export declare const isValidDomain: (value: string) => boolean; /** * @title: 追加formItem层 * @description: * @return: * * @Author: shengjie.zuo * @Date: 2024-11-23 17:14:25 */ export declare const withFormItem:
(WrappedComponent: React.ComponentType
, overlayProps?: {
otherFormItemProps?: Record ;
export declare const withDataSource: (WrappedComponent: React.ComponentType ) => (props: P & {
dataSource?: any;
extraParams?: Record (WrappedComponent: React.ComponentType ) => (props: P & {
options?: any;
optionSourceType?: "default" | "custom" | "api" | undefined;
labelField: string;
valueField: string;
extraParams?: Record