|
@@ -34,6 +34,7 @@ import {
|
|
EChartEventHandler,
|
|
EChartEventHandler,
|
|
EChartFinishedHandler,
|
|
EChartFinishedHandler,
|
|
EChartHighlightHandler,
|
|
EChartHighlightHandler,
|
|
|
|
+ EChartMouseOutHandler,
|
|
EChartMouseOverHandler,
|
|
EChartMouseOverHandler,
|
|
EChartRenderedHandler,
|
|
EChartRenderedHandler,
|
|
EChartRestoreHandler,
|
|
EChartRestoreHandler,
|
|
@@ -191,6 +192,7 @@ type Props = {
|
|
selected: Record<string, boolean>;
|
|
selected: Record<string, boolean>;
|
|
type: 'legendselectchanged';
|
|
type: 'legendselectchanged';
|
|
}>;
|
|
}>;
|
|
|
|
+ onMouseOut?: EChartMouseOutHandler;
|
|
onMouseOver?: EChartMouseOverHandler;
|
|
onMouseOver?: EChartMouseOverHandler;
|
|
onRendered?: EChartRenderedHandler;
|
|
onRendered?: EChartRenderedHandler;
|
|
/**
|
|
/**
|
|
@@ -318,6 +320,7 @@ function BaseChartUnwrapped({
|
|
onClick,
|
|
onClick,
|
|
onLegendSelectChanged,
|
|
onLegendSelectChanged,
|
|
onHighlight,
|
|
onHighlight,
|
|
|
|
+ onMouseOut,
|
|
onMouseOver,
|
|
onMouseOver,
|
|
onDataZoom,
|
|
onDataZoom,
|
|
onRestore,
|
|
onRestore,
|
|
@@ -511,6 +514,7 @@ function BaseChartUnwrapped({
|
|
onClick?.(props, instance);
|
|
onClick?.(props, instance);
|
|
},
|
|
},
|
|
highlight: (props, instance) => onHighlight?.(props, instance),
|
|
highlight: (props, instance) => onHighlight?.(props, instance),
|
|
|
|
+ mouseout: (props, instance) => onMouseOut?.(props, instance),
|
|
mouseover: (props, instance) => onMouseOver?.(props, instance),
|
|
mouseover: (props, instance) => onMouseOver?.(props, instance),
|
|
datazoom: (props, instance) => onDataZoom?.(props, instance),
|
|
datazoom: (props, instance) => onDataZoom?.(props, instance),
|
|
restore: (props, instance) => onRestore?.(props, instance),
|
|
restore: (props, instance) => onRestore?.(props, instance),
|
|
@@ -519,7 +523,17 @@ function BaseChartUnwrapped({
|
|
legendselectchanged: (props, instance) =>
|
|
legendselectchanged: (props, instance) =>
|
|
onLegendSelectChanged?.(props, instance),
|
|
onLegendSelectChanged?.(props, instance),
|
|
} as ReactEchartProps['onEvents']),
|
|
} as ReactEchartProps['onEvents']),
|
|
- [onclick, onHighlight, onMouseOver, onDataZoom, onRestore, onFinished, onRendered]
|
|
|
|
|
|
+ [
|
|
|
|
+ onClick,
|
|
|
|
+ onHighlight,
|
|
|
|
+ onLegendSelectChanged,
|
|
|
|
+ onMouseOut,
|
|
|
|
+ onMouseOver,
|
|
|
|
+ onDataZoom,
|
|
|
|
+ onRestore,
|
|
|
|
+ onFinished,
|
|
|
|
+ onRendered,
|
|
|
|
+ ]
|
|
);
|
|
);
|
|
|
|
|
|
return (
|
|
return (
|