NEZ-1973 fix:选择Metric时出现重影现象样式调整
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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%);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user