fix: 修复npm模块下无分数的展示问题

This commit is contained in:
刘洪洪
2023-01-03 16:22:57 +08:00
parent fe520cfbc3
commit 5d03bcf9aa
2 changed files with 7 additions and 0 deletions

View File

@@ -130,6 +130,10 @@
.data-score.data-score-green {
background: #749F4D;
}
.data-score-no-data {
width: 34px;
text-align: center;
}
}
.data-total-value {
display: flex;

View File

@@ -114,6 +114,9 @@
<div v-else-if="scope.row.score <= 6" :class="{'data-score-green': scope.row.score <= 6}" class="data-score">
{{scope.row.score}}
</div>
<div v-else-if="scope.row.score === '-'" class="data-score-no-data">
-
</div>
</template>
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
<span v-else>-</span>