diff --git a/src/components/e-charts/starlist.vue b/src/components/e-charts/starlist.vue new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/components/e-charts/toplist.vue b/src/components/e-charts/toplist.vue index ba7740922f8e975bf6d4f975a9ec8589b91d9596..d3a27c004e7dea38dfa9c8f793eea8a4d21ad7ca 100644 --- a/src/components/e-charts/toplist.vue +++ b/src/components/e-charts/toplist.vue @@ -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;