mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 20:17:39 +08:00
feat: 系统版本显示
This commit is contained in:
parent
844f04d555
commit
a9426ca48f
@ -181,6 +181,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getBarOption(title, percent) {
|
function getBarOption(title, percent) {
|
||||||
|
let fillet = 0
|
||||||
|
if (percent < 15){
|
||||||
|
fillet = 50
|
||||||
|
}
|
||||||
// data为百分比,最大值为100
|
// data为百分比,最大值为100
|
||||||
return {
|
return {
|
||||||
background: '#d0e9ff',
|
background: '#d0e9ff',
|
||||||
@ -234,7 +238,7 @@
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
normal: {
|
normal: {
|
||||||
color: '#d0e9ff',
|
color: '#d0e9ff',
|
||||||
barBorderRadius: [0, 50, 50, 0]
|
barBorderRadius: [fillet, 50, 50, fillet]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user