Skip to content

Commit

Permalink
style: format code with Prettier and StandardJS
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 7465d27 according to the output
from Prettier and StandardJS.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Sep 20, 2024
1 parent 7465d27 commit d011c24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/stateless/EChartsCommon/BaseChart/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const EChart = (props, ref) => {
const resize = () => {
cInstance.current &&
cInstance.current.resize({
animation: { duration: 300 },
animation: { duration: 300 }
})
}

Expand All @@ -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()
Expand Down Expand Up @@ -69,7 +69,7 @@ const EChart = (props, ref) => {
// 对父组件暴露获取ECharts实例的方法,可直接通过实例调用原生函数
useImperativeHandle(ref, () => ({ getInstance }))

return <div id="myEChart" ref={cDom} style={{ width: '100%', height: '100%', ...style }} />
return <div id='myEChart' ref={cDom} style={{ width: '100%', height: '100%', ...style }} />
}

export default React.memo(React.forwardRef(EChart))

0 comments on commit d011c24

Please sign in to comment.