enhance(client): improve tooltip position calclation

This commit is contained in:
syuilo 2022-02-08 15:37:31 +09:00
parent e5d6d1dcf0
commit 5792eea1b1
2 changed files with 130 additions and 21 deletions

View file

@ -1,5 +1,5 @@
<template>
<MkTooltip ref="tooltip" :showing="showing" :x="x" :y="y" :max-width="340" @closed="emit('closed')">
<MkTooltip ref="tooltip" :showing="showing" :x="x" :y="y" :max-width="340" :direction="'left'" :inner-margin="16" @closed="emit('closed')">
<div v-if="title" class="qpcyisrl">
<div class="title">{{ title }}</div>
<div v-for="x in series" class="series">