Perf: Some change

This commit is contained in:
zhaojisen
2025-02-28 18:42:21 +08:00
committed by ZhaoJiSen
parent 0968a4d7ef
commit 6c6399abc0
2 changed files with 10 additions and 6 deletions

View File

@@ -112,7 +112,7 @@ export default {
let filteredData = []
// 只要有一个大于零 则展示全部的
if (data.some(item => item.value > 0).length > 0) {
if (data.some(item => item.value > 0)) {
filteredData = data
} else {
filteredData = data.slice(0, 7)
@@ -135,7 +135,6 @@ export default {
show: true,
min: 0,
max: max,
interval: 1,
position: 'top',
axisLine: { show: false },
axisTick: { show: false },

View File

@@ -14,13 +14,17 @@
</two-col>
</el-tab-pane>
</el-tabs>
<div class="copy-btn">
<i
class="copy-btn el-icon-copy-document"
@click="copyContent"
/>
<el-tooltip :content="$t('Copy')" placement="top">
<i
class="copy-btn el-icon-copy-document"
@click="copyContent"
/>
</el-tooltip>
</div>
</div>
</IBox>
</div>
</template>
@@ -129,5 +133,6 @@ export default {
position: absolute;
top: 8px;
right: 5px;
cursor: pointer;
}
</style>