qt-public-ui
Version:
新设计规范下业务组件库
21 lines (15 loc) • 637 B
Markdown
自动显示tooltips方法
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| contentFunc | ref绑定容器函数 | Funcation | [ContentFunc] |
| tooltipProps | 默认日期配置 | [exTooltipProps] | - |
函数类型:<br>
type ContentFunc = (ref: RefObject<HTMLElement>, extra:{ wrapperStyle: CSSProperties, wrapperClassName: string }) => ReactElement;
interface exTooltipProps { <br>
  tooltipProps: TooltipProps; // Antd Tooltip <br>
  type: 'singleLine' | 'multipleLines'; // 单行、多行 <br>
  lines: number; // 行数 <br>
}