修改dataZoom结束函数

This commit is contained in:
熊丽君
2021-12-22 15:44:33 +08:00
parent c602a3c067
commit d1e3c698fa
2 changed files with 24 additions and 4 deletions

View File

@ -170,7 +170,14 @@ export default {
top: 50, top: 50,
bottom: 50, bottom: 50,
}, },
dataZoom: {}, dataZoom: {
type: 'slider',
start: 0,
end: this.dataZoomEnd(month.length, 5),
textStyle: {
color: '#fff',
},
},
series: [ series: [
{ {
name: '数量', name: '数量',
@ -299,7 +306,10 @@ export default {
dataZoom: { dataZoom: {
type: 'slider', type: 'slider',
start: 0, start: 0,
end: 50, end: this.dataZoomEnd(deptName.length, 5),
textStyle: {
color: '#fff',
},
}, },
color: ['#ccc', 'red'], color: ['#ccc', 'red'],
yAxis: [ yAxis: [

View File

@ -508,7 +508,14 @@ export default {
top: 50, top: 50,
bottom: 50, bottom: 50,
}, },
dataZoom: {}, dataZoom: {
type: 'slider',
start: 0,
end: this.dataZoomEnd(month.length, 5),
textStyle: {
color: '#fff',
},
},
series: [ series: [
{ {
name: '数量', name: '数量',
@ -641,7 +648,10 @@ export default {
dataZoom: { dataZoom: {
type: 'slider', type: 'slider',
start: 0, start: 0,
end: 50, end: this.dataZoomEnd(deptName.length, 5),
textStyle: {
color: '#fff',
},
}, },
color: ['#ccc', 'red'], color: ['#ccc', 'red'],
yAxis: [ yAxis: [