antvis/G6




The issue has been closed
vue3 中使用内置的Tooltip无法消失 #5966
weiyuxiang0125 posted onGitHub
Describe the bug / 问题描述
版本: G6:4.8.21, vue:3.4.27 我设置的内置的tooltip,显示正确,但是移出节点的时候,Tooltip依旧显示,没有消失!在vue2中是正常的
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
4.x
Operating System / 操作系统
macOS
Browser / 浏览器
Chrome
Additional context / 补充说明
modes: {
default: [
{
type: "tooltip",
formatText(model) {
var text = content
;
return text;
},
shouldBegin(e) {
return that.tooltipFlag;
},
shouldUpdate() {
return true;
},
},
"drag-canvas",
"zoom-canvas",
],
},