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

toplist组件优化

parent 2c7514aa
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
}, },
methods: { methods: {
getBarWidth(value) { getBarWidth(value) {
return (value / this.targetValue) * 100 + "%"; return Math.min((value / this.targetValue) * 100, 100) + "%";
}, },
}, },
}; };
...@@ -94,9 +94,7 @@ export default { ...@@ -94,9 +94,7 @@ export default {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
} margin-bottom: 18px;
.item_list:not(:first-child) {
margin-top: 18px;
} }
.item_index { .item_index {
width: 35px; 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