pref:dashboard legend点击交互 & legend 别名功能优化

1.dashboard legend点击逻辑与grafana保持一致
2.legend别名显示、配置优化
3.tooltip 使用别名
4.抽取公共的重新设置popover z-index 的方法到common.js
This commit is contained in:
wangwenrui
2020-03-04 20:30:25 +08:00
parent 06bb5423d9
commit c2331eaeeb
8 changed files with 188 additions and 52 deletions

View 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)
}