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

@@ -171,8 +171,8 @@ export default {
}
}
})
arr = this.$loadsh.uniqBy(arr, 'value')
// arr = this.$loadsh.uniqBy(arr, 'label')
arr = this.$lodash.uniqBy(arr, 'value')
// arr = this.$lodash.uniqBy(arr, 'label')
arr.filter(item => item.value)
response = arr
}
@@ -201,7 +201,7 @@ export default {
label: item
}
})
arr = this.$loadsh.uniqBy(arr, 'value')
arr = this.$lodash.uniqBy(arr, 'value')
arr.filter(item => item.value)
resolve(arr)
})
@@ -230,7 +230,7 @@ export default {
label: item
}
})
arr = this.$loadsh.uniqBy(arr, 'value')
arr = this.$lodash.uniqBy(arr, 'value')
arr = arr.filter(item => item.value)
resolve(arr)
})
@@ -254,7 +254,7 @@ export default {
label: item[label]
}
})
arr = this.$loadsh.uniqBy(arr, 'value')
arr = this.$lodash.uniqBy(arr, 'value')
arr.filter(item => item.value)
resolve(arr)
})