/** * @author linhd * @date 2021/8/9 16:16 * @description 超出自适应盒子 */ import React, { FunctionComponent, ReactNode } from 'react'; import { TooltipPlacement } from '../Tooltip/interface'; import './index.scss'; export interface AutoBoxProps { /** 样式class */ className?: string; /** style */ style?: React.CSSProperties; /** list选项 */ list?: any[]; /** 指定渲染几项,存在这个参数,则不自适应 */ showNum?: number; /** 下拉框样式 */ popoverClassName?: string; /** 自定义更多内容 */ moreCustomize?: ReactNode; /** 隐藏更多按钮 */ hideMore?: boolean; /** 打开下拉框 */ openMore?: boolean; /** 定位元素 */ anchorEl?: any; /** 关闭弹窗 */ onCloseMore?: () => void; /** 显示更多 */ onShowMore?: (bol: boolean) => void; /** 更多触发方式 */ trigger?: 'click' | 'hover'; /** 位置 */ placement?: TooltipPlacement; [name: string]: any; } export declare const AutoBox: FunctionComponent; export default AutoBox;