update
1.修改大屏问题及添加新需求
This commit is contained in:
@@ -32,6 +32,10 @@
|
||||
userCount: {
|
||||
type: Number,
|
||||
},
|
||||
chooseIndex: {
|
||||
type: Number,
|
||||
default: () => 0,
|
||||
},
|
||||
themeType: {
|
||||
type: String,
|
||||
default: () => '',
|
||||
@@ -59,7 +63,7 @@
|
||||
function initChart(chartData, total, color) {
|
||||
nextTick(() => {
|
||||
let myChart = echarts.init(healthChart.value);
|
||||
let options = circleRing(chartData, total, color);
|
||||
let options = circleRing(chartData, total, color, props.chooseIndex);
|
||||
myChart.setOption(options);
|
||||
window.addEventListener('resize', () => {
|
||||
myChart.resize();
|
||||
|
||||
Reference in New Issue
Block a user