fix: handle added ctx

This commit is contained in:
sealday 2024-03-19 17:04:56 +08:00
parent 1d8a97bdc0
commit 326dcee3d7

View File

@ -31,8 +31,8 @@ export class Pie extends G2PlotChart {
};
};
getProps({ data, general, advanced, fieldProps }: RenderProps) {
const props = super.getProps({ data, general, advanced, fieldProps });
getProps({ data, general, advanced, fieldProps, ctx }: RenderProps) {
const props = super.getProps({ data, general, advanced, fieldProps, ctx });
return {
...props,
tooltip: (d, index: number, data, column: any) => {