UNPKG

@iimm/formily-mui

Version:

form field components based on @mui/material and @formily/react

21 lines (20 loc) 1.1 kB
import type { ReactNode } from "react"; import { type TextFieldProps, type FormLabelProps } from "@mui/material"; import { type FormItemExtraProps, type FormItemBaseProps } from "../../layout"; import type { FieldBaseProps } from "../../types"; export declare const InputBase: (props: InputBaseProps) => import("react/jsx-runtime").JSX.Element; export interface InputBaseProps extends FieldBaseProps<string | number>, Omit<FormItemBaseProps, "className" | "style" | "prefixCls">, FormItemExtraProps, Omit<TextFieldProps, "value" | "onChange" | "defaultValue"> { label?: ReactNode; /** 显示内部label? */ showInnerLabel?: boolean; fullWidth?: boolean; tooltip?: ReactNode; showClear?: boolean; required?: boolean; /** 仅showInnerLabel=true时传递给内部Label */ innerLabelProps?: FormLabelProps; type?: "text" | "password" | "date" | "color" | "datetime-local" | "email" | "month" | "number" | "tel" | "time" | "url" | "week" | "datetime"; margin?: "none" | "dense" | "normal"; maxRows?: number | string; endAdornmentItem?: ReactNode; }