pref:dashboard legend点击交互 & legend 别名功能优化
1.dashboard legend点击逻辑与grafana保持一致 2.legend别名显示、配置优化 3.tooltip 使用别名 4.抽取公共的重新设置popover z-index 的方法到common.js
This commit is contained in:
10
nezha-fronted/src/components/common/js/common.js
Normal file
10
nezha-fronted/src/components/common/js/common.js
Normal file
@@ -0,0 +1,10 @@
|
||||
export function resetZIndex(e){
|
||||
let popId=e.target.getAttribute('aria-describedby');//这里获取的属性 在包含slot='reference'
|
||||
if(!popId){
|
||||
popId=e.target.parentNode.getAttribute('aria-describedby');
|
||||
}
|
||||
let pop=document.getElementById(popId);
|
||||
setTimeout(function(){
|
||||
pop.style.zIndex=999999;
|
||||
},100)
|
||||
}
|
||||
Reference in New Issue
Block a user