mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-01 14:27:33 -07:00
fix(client): fix chart tooltip rendering
This commit is contained in:
parent
dcf30c1f4a
commit
c23105bad0
1 changed files with 10 additions and 8 deletions
|
@ -1,17 +1,19 @@
|
||||||
<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>
|
||||||
<div v-for="x in series" class="series">
|
<template v-if="series">
|
||||||
<span class="color" :style="{ background: x.backgroundColor, borderColor: x.borderColor }"></span>
|
<div v-for="x in series" class="series">
|
||||||
<span>{{ x.text }}</span>
|
<span class="color" :style="{ background: x.backgroundColor, borderColor: x.borderColor }"></span>
|
||||||
</div>
|
<span>{{ x.text }}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</MkTooltip>
|
</MkTooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import MkTooltip from './ui/tooltip.vue';
|
import MkTooltip from './ui/tooltip.vue';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|
Loading…
Reference in a new issue