NEZ-1973 fix:选择Metric时出现重影现象样式调整

This commit is contained in:
zhangyu
2022-06-23 15:50:05 +08:00
parent e4bab2ee70
commit c5dfe7b6be
3 changed files with 3 additions and 4 deletions

View File

@@ -3,9 +3,8 @@
}
.my-loading-parent--relative {
position: relative;
display: inline-block;
height: 100%;
width: 100%;
width: auto;
}
.panel-chart {
border: 1px solid $--chart-box-border-color;

View File

@@ -58,6 +58,7 @@
}
.el-cascader-menu {
width: 200px;
height: 100%;
}
.metric-btn:hover, .metric-btn:focus {
background-image: linear-gradient(180deg, rgb(247, 248, 250) 0%, rgb(247, 248, 250) 100%);

View File

@@ -23,7 +23,6 @@
v-model="cascaderValue"
v-clickoutside="closeDropdown"
v-my-loading="tempBoxShowLoading"
:loading="loading"
:options="metricOptions"
v-if="type !== 'log'"
:props="cascaderProps"
@@ -925,7 +924,7 @@ export default {
let childrenCopy = JSON.parse(JSON.stringify(children))
const findChild = this.metricOptions.find(item => item.label === data.parent)
if (childrenCopy.length > 100) {
childrenCopy = childrenCopy.splice(findChild.children.length, findChild.children.length + 101)
childrenCopy = childrenCopy.splice(findChild.children.length, 100)
findChild.children.splice(findChild.children.length - 1, 1)
findChild.children.push(...childrenCopy)
if (findChild.children.length < children.length - 1) {