update
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user