@iimm/formily-mui
Version:
form field components based on @mui/material and @formily/react
38 lines (37 loc) • 1.71 kB
TypeScript
import { ReactNode } from "react";
import { type BoxProps, type IconButtonProps } from "@mui/material";
import { type FormItemBaseProps, type FormItemExtraProps } from "../../layout";
import { type ListCardCommonProps } from "./ListCard";
import type { IFieldPropOptions, FieldBaseProps, RefreshOptionsProps } from "../../types";
import "../../styles/refresh.scss";
export declare const TransferBase: (props: TransferBaseProps) => import("react/jsx-runtime").JSX.Element;
export interface TransferBaseProps extends FieldBaseProps<any[]>, ListCardCommonProps, Omit<FormItemBaseProps, "className" | "style" | "prefixCls">, FormItemExtraProps, RefreshOptionsProps {
options?: IFieldPropOptions;
/** 保留不在options里的已选但不显示的值? */
keepExtraItems?: boolean;
titles?: ReactNode | [leftTitle: ReactNode, rightTitle: ReactNode];
/** 每个框的宽度 */
width?: number | string;
/** 每个框内容的高度 */
height?: number | string;
/** 每个框内容的min高度 */
minHeight?: number | string;
/** 每个框内容的max高度 */
maxHeight?: number | string;
minWidth?: number | string;
maxWidth?: number | string;
/** 判断是否需要卡片竖排的限度(ratio个卡片的宽度加上该限度不应大于容器宽度)
* @default 40
*/
overflowThreshold?: number;
/** 判断是否需要卡片竖排首个卡片宽度的倍数(ratio个卡片的宽度加上该限度不应大于容器宽度)
* @default 1.5
*/
overflowRatio?: number;
/**
* 箭头按钮的props
*/
iconButtonProps?: IconButtonProps;
/** 最外层的Box组件的props */
containerBoxProps?: BoxProps;
}