mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
@@ -132,7 +132,8 @@ export class TableInfo extends S2ChartView<TableSheet> {
|
||||
formatCfg = formatterItem
|
||||
}
|
||||
return valueFormatter(value, formatCfg)
|
||||
}
|
||||
},
|
||||
id: ele.id
|
||||
})
|
||||
})
|
||||
const { basicStyle, tableCell, tableHeader, tooltip } = parseJson(chart.customAttr)
|
||||
|
||||
@@ -129,7 +129,8 @@ export class TableNormal extends S2ChartView<TableSheet> {
|
||||
formatCfg = formatterItem
|
||||
}
|
||||
return valueFormatter(value, formatCfg)
|
||||
}
|
||||
},
|
||||
id: ele.id
|
||||
})
|
||||
})
|
||||
const { basicStyle, tableCell, tableHeader, tooltip } = parseJson(chart.customAttr)
|
||||
|
||||
@@ -174,7 +174,8 @@ export class TablePivot extends S2ChartView<PivotSheet> {
|
||||
} else {
|
||||
return valueFormatter(value, formatterItem)
|
||||
}
|
||||
}
|
||||
},
|
||||
id: ele.id
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -162,7 +162,14 @@ export abstract class S2ChartView<P extends SpreadSheet> extends AntVAbstractCha
|
||||
this.showTooltip(s2Instance, event, meta)
|
||||
}
|
||||
}
|
||||
touchAction(callback)
|
||||
const cell = s2Instance.getCell(shape)
|
||||
const cellMeta = cell?.getMeta()
|
||||
let fieldId
|
||||
if (cellMeta) {
|
||||
const field = find(meta, item => item.field === cellMeta.valueField)
|
||||
fieldId = field?.id
|
||||
}
|
||||
touchAction(callback, fieldId)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
@@ -370,7 +370,10 @@ const pointClickTrans = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const touchAction = callback => {
|
||||
const touchAction = (callback, fieldId) => {
|
||||
if (fieldId) {
|
||||
state.curActionId = fieldId
|
||||
}
|
||||
if (!trackMenu.value.length) {
|
||||
callback?.()
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ public class ChartViewFieldDTO extends ChartViewFieldBaseDTO implements Serializ
|
||||
|
||||
private boolean hide;
|
||||
|
||||
private String groupType;
|
||||
|
||||
/**
|
||||
* 字段来源
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user