'换火时间BUG,柱状图label纵向'
This commit is contained in:
parent
05b4009614
commit
a3e5119206
@ -75,7 +75,7 @@ export default {
|
||||
this.chart = echarts.init(document.getElementById(this.id));
|
||||
this.chart.setOption({
|
||||
grid: {
|
||||
top: adjust(10),
|
||||
top: adjust(20),
|
||||
left: adjust(28),
|
||||
bottom: adjust(18),
|
||||
right: adjust(12),
|
||||
@ -147,7 +147,9 @@ export default {
|
||||
show: true,
|
||||
fontSize: adjust(7),
|
||||
color: "#eee8",
|
||||
position: "top",
|
||||
position: "topRight",
|
||||
rotate: 90,
|
||||
offset: [5, 0]
|
||||
},
|
||||
itemStyle: {
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||
|
@ -43,8 +43,12 @@ export default {
|
||||
timeFun = setInterval(() => {
|
||||
if (sec > 0) sec -= 1
|
||||
else {
|
||||
sec = 59
|
||||
min -= 1
|
||||
if (min > 0) {
|
||||
sec = 59
|
||||
min -= 1
|
||||
} else {
|
||||
if (timeFun) clearInterval(timeFun)
|
||||
}
|
||||
}
|
||||
this.$set(this.rdata[2], 'value', `${min}分${sec}秒`)
|
||||
}, 1000)
|
||||
|
Loading…
Reference in New Issue
Block a user