NEZ-2895 fix: Tooltip.title & Tooltip.Legends.Alias 支持 变量取值

This commit is contained in:
zhangyu
2023-06-20 16:59:46 +08:00
parent d5bf4733d8
commit 2150fa71d1
57 changed files with 256 additions and 234 deletions

View File

@@ -1396,7 +1396,7 @@ export default {
if (!this.chartConfig.elements.length) {
this.addExpression()
} else {
const expressionsShow = this.$loadsh.cloneDeep(this.expressionsShow)
const expressionsShow = this.$lodash.cloneDeep(this.expressionsShow)
this.chartConfig.elements.forEach((item, index) => {
this.expressions.push(item.expression)
this.expressionName.push(item.name)
@@ -1409,7 +1409,7 @@ export default {
// expressionsShow调整顺序
expressionsShow.forEach((subItem) => {
if (item.name == subItem.oldName) {
this.$set(this.expressionsShow, index, this.$loadsh.cloneDeep(subItem))
this.$set(this.expressionsShow, index, this.$lodash.cloneDeep(subItem))
}
})
})