/** * @author linhd * @date 2021/8/9 15:15 * @description 超出... */ import React, { FunctionComponent, ReactNode } from 'react'; import AutoTipsMultiline from './autoTipsMultiline'; import './index.scss'; export interface AutoTipsProps { /** 样式class */ className?: string; /** style */ style?: React.CSSProperties; /** 超出显示的内容 */ tips?: React.ReactNode; /** 文字下拉提示箭头 */ arrow?: boolean; /** 显示文字还是元素 */ beyondText?: boolean; /** 定位方向 */ placement?: 'top-start' | 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top' | undefined; /** 提示最大宽度 */ tipMaxWidth?: number | string; /** interactive */ interactive?: boolean; /** 内容 * 单行不限制类型 * 多行限制为string * */ children?: ReactNode; [name: string]: any; } declare const AutoTips: FunctionComponent; export { AutoTipsMultiline }; export default AutoTips;