Merge pull request #8771 from dataease/pr@dev-v2@fix_pivot_table_custom_field_name

fix(图表): 透视表字段名称修改无效 #8546
This commit is contained in:
wisonic-s 2024-03-28 15:35:09 +08:00 committed by GitHub
commit 4e54423b78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ export class TablePivot extends S2ChartView<PivotSheet> {
columns.push(ele.dataeaseName) columns.push(ele.dataeaseName)
meta.push({ meta.push({
field: ele.dataeaseName, field: ele.dataeaseName,
name: ele.name, name: ele.chartShowName ?? ele.name,
formatter: value => { formatter: value => {
if (!f) { if (!f) {
return value return value