Commit 893140f2 authored by 徐一鸣's avatar 徐一鸣

toplist组件优化

parent 2c7514aa
......@@ -78,7 +78,7 @@ export default {
},
methods: {
getBarWidth(value) {
return (value / this.targetValue) * 100 + "%";
return Math.min((value / this.targetValue) * 100, 100) + "%";
},
},
};
......@@ -94,9 +94,7 @@ export default {
display: flex;
justify-content: flex-start;
align-items: center;
}
.item_list:not(:first-child) {
margin-top: 18px;
margin-bottom: 18px;
}
.item_index {
width: 35px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment