This commit is contained in:
g7hoo 2023-05-14 15:48:18 +08:00
parent 1dc95c0fc8
commit 57d3f53918

View File

@ -1,15 +1,15 @@
<template>
<!-- line chart -->
<div class="line-chart__wrapper">
<div class="line-chart__custom-legend flex" v-if="legendtext.length">
<div class="line-chart__custom-legend flex" v-if="legend.length">
<!-- <span>产线1 - 产线5</span> -->
<ul style="" class="flex">
<li v-for="(v, i) in legendtext" :key="i">{{ v }}</li>
<li v-for="(v, i) in legend" :key="i">{{ v }}</li>
</ul>
</div>
<div :id="id" style="width: 100%; height: 100%"></div>
<div
v-show="legendtext.length === 0"
v-show="legend.length === 0"
style="
position: absolute;
top: 0;