fix: sankey graph

This commit is contained in:
Fine 2022-12-17 15:02:37 +08:00
parent 0511a7c869
commit 401d223fdf

View File

@ -96,6 +96,10 @@ limitations under the License. -->
} }
instance.on("click", (params: EventParams) => { instance.on("click", (params: EventParams) => {
currentParams.value = params; currentParams.value = params;
if (props.option.series.type === "sankey") {
emits("select", currentParams.value);
return;
}
if (!menus.value || !chartRef.value) { if (!menus.value || !chartRef.value) {
return; return;
} }