fix: update

This commit is contained in:
Fine 2023-01-05 15:38:51 +08:00
parent 12100b2550
commit 2168a67128

View File

@ -108,13 +108,13 @@ limitations under the License. -->
emits("select", currentParams.value); emits("select", currentParams.value);
return; return;
} }
if (!chartRef.value) {
return;
}
instance.dispatchAction({ instance.dispatchAction({
type: "hideTip", type: "hideTip",
}); });
visMenus.value = true; visMenus.value = true;
if (!chartRef.value) {
return;
}
const w = chartRef.value.getBoundingClientRect().width || 0; const w = chartRef.value.getBoundingClientRect().width || 0;
const h = chartRef.value.getBoundingClientRect().height || 0; const h = chartRef.value.getBoundingClientRect().height || 0;
if (w - params.event.offsetX > 120) { if (w - params.event.offsetX > 120) {
@ -149,6 +149,10 @@ limitations under the License. -->
instance.dispatchAction({ instance.dispatchAction({
type: "hideTip", type: "hideTip",
}); });
instance.dispatchAction({
type: "updateAxisPointer",
currTrigger: "leave",
});
}, },
true, true,
); );