import type { PropsWithChildren, ReactElement, Ref } from 'react'; import type { InputProps as AntdInputProps, InputRef, TooltipProps as AntdTooltipProps } from 'antd'; import { Input } from 'antd'; import type { UIComponentProps } from '../config'; export type InputProps = UIComponentProps & Omit & { value?: string | number; /** 格式化 */ tooltipFormatter?: (value: string | number, props: InputProps) => string; /** 过滤 */ filter?: (value: string, props: InputProps) => string; /** 实际内容提示 */ tooltip?: boolean | AntdTooltipProps; }; type AntdInputType = typeof Input; export type ComponentStaticInterface = Pick & { displayName: string; }; export type InternalComponentType = (props: PropsWithChildren & { ref?: Ref; }) => ReactElement; export type ComponentInterface = InternalComponentType & ComponentStaticInterface; declare const Component: ComponentInterface; export default Component;