问题:
解决:
在tooltip 中添加如下代码:
tooltip:{
position:function(point, params , dom, rect, size){
dom.style.transform = "translateZ(0)"
} ,
}
-------------------题外话---------------------
原来通过样式调整了层级,结果失效了
.echart /deep/ div:nth-child(1){
z-index : 1;
} .echart /deep/ canvas{
z-index : 2;
}
tootip自己的层级是,z-index:9999999, 所以不需要设置。