fix(client): fix chart tooltip rendering

This commit is contained in:
syuilo 2022-06-28 10:41:38 +09:00 committed by Johann150
parent 3579ebf03d
commit 681a650b01
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -1,11 +1,13 @@
<template> <template>
<MkTooltip ref="tooltip" :showing="showing" :x="x" :y="y" :max-width="340" :direction="'left'" :inner-margin="16" @closed="emit('closed')"> <MkTooltip ref="tooltip" :showing="showing" :x="x" :y="y" :max-width="340" :direction="'top'" :inner-margin="16" @closed="emit('closed')">
<div v-if="title" class="qpcyisrl"> <div v-if="title || series" class="qpcyisrl">
<div class="title">{{ title }}</div> <div v-if="title" class="title">{{ title }}</div>
<template v-if="series">
<div v-for="x in series" class="series"> <div v-for="x in series" class="series">
<span class="color" :style="{ background: x.backgroundColor, borderColor: x.borderColor }"></span> <span class="color" :style="{ background: x.backgroundColor, borderColor: x.borderColor }"></span>
<span>{{ x.text }}</span> <span>{{ x.text }}</span>
</div> </div>
</template>
</div> </div>
</MkTooltip> </MkTooltip>
</template> </template>