update 调整样式·
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="common-card" :class="themeType">
|
||||
<public-title title="长庆油田大病人数" />
|
||||
<public-title title="长庆油田大病人数" :themeType="themeType" />
|
||||
<div class="inner" ref="healthChart"></div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
function initChart(chartData, total) {
|
||||
let myChart = echarts.init(healthChart.value);
|
||||
let options = ringOption(chartData, total);
|
||||
let options = ringOption(chartData, total, unref(themeType));
|
||||
myChart.setOption(options);
|
||||
window.addEventListener('resize', () => {
|
||||
myChart.resize();
|
||||
|
||||
Reference in New Issue
Block a user