feat: 系统版本显示

This commit is contained in:
远野千束 2024-04-05 09:44:32 +08:00
parent 844f04d555
commit a9426ca48f

View File

@ -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]
}
},
}