Skip to content

Commit

Permalink
1. 仅事件变化时只刷新echart绑定的事件;2. 如果style或者className变化,先进行echarts.resize再刷新数…
Browse files Browse the repository at this point in the history
…据更合理
  • Loading branch information
Wang Sen committed Aug 4, 2021
1 parent 609f104 commit a33c379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class EChartsReactCore extends PureComponent<EChartsReactProps> {
if (!events) return;
// loop and off
for (const eventName in events) {
if (isString(eventName) && Object.prototype.hasOwnProperty.call(events, eventName)) {
if (isString(eventName)) {
instance.off(eventName);
}
}
Expand Down

0 comments on commit a33c379

Please sign in to comment.