fix:修复 chartDiagram tooltip title宣誓显示错误的问题
This commit is contained in:
@@ -361,12 +361,12 @@ export default {
|
||||
this.position.top = ePosition.layerY
|
||||
this.$nextTick(() => {
|
||||
if ((boxWidth / 2) > ePosition.layerX) {
|
||||
this.position.left = ePosition.layerX + 20
|
||||
this.position.left = ePosition.layerX + 15
|
||||
} else {
|
||||
this.position.left = ePosition.layerX - 20 - 400
|
||||
this.position.left = ePosition.layerX - 15 - 400
|
||||
}
|
||||
if (boxHeight / 2 > ePosition.layerY) {
|
||||
this.position.top = ePosition.layerY + 50
|
||||
this.position.top = ePosition.layerY + 15
|
||||
} else {
|
||||
this.position.top = ePosition.layerY - 300
|
||||
}
|
||||
|
||||
@@ -64,6 +64,9 @@ export default {
|
||||
console.log(this.params.title, this.dataSource.elements.expression, this.dataSource.metric)
|
||||
this.title = this.handleLegendAlias(this.params.title, this.params.title, this.dataSource.metric) || this.params.title
|
||||
this.content = this.handleLegendAlias(this.params.content, this.params.content, this.dataSource.metric) || this.params.content
|
||||
} else {
|
||||
this.title = this.params.title
|
||||
this.content = this.params.content
|
||||
}
|
||||
this.params.legends.forEach(item => {
|
||||
const findItem = this.queryValues.find(query => query.name === item.legend && query.parent === item.parent)
|
||||
|
||||
Reference in New Issue
Block a user