Commit 407e89f0 authored by 杨思琦's avatar 杨思琦

fix: 图表重渲染

parent 7845df69
...@@ -16,7 +16,11 @@ const ECharts = memo( ...@@ -16,7 +16,11 @@ const ECharts = memo(
}, [props.option]); }, [props.option]);
// const chartProps = pick(props, ['option', 'notMerge', 'lazyUpdate', 'style', 'className', 'theme', 'onChartReady', 'loadingOption', 'showLoading', 'onEvents', 'opts']); // const chartProps = pick(props, ['option', 'notMerge', 'lazyUpdate', 'style', 'className', 'theme', 'onChartReady', 'loadingOption', 'showLoading', 'onEvents', 'opts']);
if (ref.current) {
ref.current.getEchartsInstance().clear();
ref.current.getEchartsInstance().setOption(option);
ref.current.getEchartsInstance().resize();
}
return ( return (
<ReactEcharts <ReactEcharts
ref={ref} ref={ref}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment