parent
55f923c674
commit
f6b1f91cfa
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import { onUnmounted, ref } from 'vue';
|
||||
import { onUnmounted, onDeactivated, ref } from 'vue';
|
||||
import * as os from '@/os';
|
||||
import MkChartTooltip from '@/components/MkChartTooltip.vue';
|
||||
|
||||
|
@ -24,6 +24,10 @@ export function useChartTooltip(opts: { position: 'top' | 'middle' } = { positio
|
|||
if (disposeTooltipComponent) disposeTooltipComponent();
|
||||
});
|
||||
|
||||
onDeactivated(() => {
|
||||
tooltipShowing.value = false;
|
||||
});
|
||||
|
||||
function handler(context) {
|
||||
if (context.tooltip.opacity === 0) {
|
||||
tooltipShowing.value = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue