NEZ-1025 fix:panel name超长 限制 最大宽度 (补充显示 chartNum 以及 下拉框内显示 title)

This commit is contained in:
zhangyu
2021-09-24 15:07:23 +08:00
parent 1d28bf503b
commit cae494a9ec
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
</template>
<template v-slot:trigger>
<i style="color: #BEBEBE" class="el-icon-menu"></i>
<span :title="showPanel.name" class="show-panel-name">{{showPanel.name}}</span>
<span :title="showPanel.name + ' (' + showPanel.chartNum +'charts ' " class="show-panel-name">{{showPanel.name}}</span>
<i style="font-size: 12px;color: #BEBEBE;" class="nz-icon nz-icon-arrow-down"></i>
</template>
<template v-slot:tail>
@@ -517,7 +517,7 @@ export default {
this.panelData = response.data.list
for (let i = 0; i < this.panelData.length; i++) {
if (this.panelData[i].id == this.showPanel.id) {
this.showPanel.name = this.panelData[i].name
this.showPanel = this.panelData[i]
break
}
}