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