diff --git a/src/components/stateless/EChartsCommon/BaseChart/index.jsx b/src/components/stateless/EChartsCommon/BaseChart/index.jsx index 2ab45bc4..bf33c192 100644 --- a/src/components/stateless/EChartsCommon/BaseChart/index.jsx +++ b/src/components/stateless/EChartsCommon/BaseChart/index.jsx @@ -14,7 +14,7 @@ const EChart = (props, ref) => { const resize = () => { cInstance.current && cInstance.current.resize({ - animation: { duration: 300 }, + animation: { duration: 300 } }) } @@ -27,7 +27,7 @@ const EChart = (props, ref) => { cInstance.current = echarts.getInstanceByDom(cDom.current) if (!cInstance.current) { cInstance.current = echarts.init(cDom.current, null, { - renderer: 'svg', + renderer: 'svg' }) } else { cInstance.current.clear() @@ -69,7 +69,7 @@ const EChart = (props, ref) => { // 对父组件暴露获取ECharts实例的方法,可直接通过实例调用原生函数 useImperativeHandle(ref, () => ({ getInstance })) - return
+ return
} export default React.memo(React.forwardRef(EChart))