解决方案 Solution可以使用开源图表组件VTable来实现这个效果。VTable可以通过配置isShowOverflowTextTooltip,来实现hover弹出poptip显示被省略的完整文字。代码示例 Code Exampleconst option: TYPES.ListTableConstructorOptions = { records, columns, tooltip: { isShowOverflowTextTooltip: true } }; // 创建 VTable 实例 const vtableInstance = new VTable.ListTable( document.getElementById("container")!, option );结果展示 Results在线效果参考:https://codesandbox.io/s/vtable-showoverflowtexttooltip-qq597m相关文档 Related DocumentationTooltip demo:https://visactor.io/vtable/demo/component/tooltipTooltip 教程:https://visactor.io/vtable/guide/components/tooltip相关api:https://visactor.io/vtable/option/ListTable#tooltip.isShowOve...github:https://github.com/VisActor/VTable
解决方案 Solution
可以使用开源图表组件VTable来实现这个效果。VTable可以通过配置
isShowOverflowTextTooltip
,来实现hover弹出poptip显示被省略的完整文字。代码示例 Code Example
结果展示 Results
在线效果参考:https://codesandbox.io/s/vtable-showoverflowtexttooltip-qq597m
相关文档 Related Documentation
Tooltip demo:https://visactor.io/vtable/demo/component/tooltip
Tooltip 教程:https://visactor.io/vtable/guide/components/tooltip
相关api:https://visactor.io/vtable/option/ListTable#tooltip.isShowOve...
github:https://github.com/VisActor/VTable