@iimm/formily-mui
Version:
form field components based on @mui/material and @formily/react
19 lines (18 loc) • 1.05 kB
TypeScript
import { type ReactNode } from "react";
import { type TextFieldProps } from "@mui/material";
import { type FormItemExtraProps, type FormItemBaseProps } from "../../layout";
import type { FieldBaseProps } from "../../types";
type FieldValueType = number | null | undefined;
export type NumberRangeValueType = [FieldValueType, FieldValueType] | null;
export interface NumberRangeProps extends Omit<TextFieldProps, "value" | "onChange" | "defaultValue" | "label" | "multiline" | "maxRows" | "minRows" | "rows">, Omit<FormItemBaseProps, "className" | "style" | "prefixCls">, FieldBaseProps<NumberRangeValueType>, FormItemExtraProps {
showClear?: boolean;
min?: number;
max?: number;
labels?: [ReactNode?, ReactNode?];
step?: number;
divider?: ReactNode;
spacing?: number;
}
export declare const NumberRangeBase: (props: NumberRangeProps) => import("react/jsx-runtime").JSX.Element;
export declare const NumberRange: import("react").MemoExoticComponent<import("@formily/react").ReactFC<Omit<NumberRangeProps, "ref">>>;
export {};