Skip to content

Commit

Permalink
fix: CR
Browse files Browse the repository at this point in the history
  • Loading branch information
ACERY1 committed Feb 16, 2022
1 parent a4df5e2 commit dbce21b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/f2/src/components/guide/withGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ export default (View) => {
const points = this.convertPoints(records);
const theme = this.getGuideTheme();

let animationCfg = animation;
if (isFunction(animation)) {
// 閫忎紶缁樺埗鍏抽敭鐐瑰拰chart瀹炰緥
props.animation = animation(points, chart);
animationCfg = animation(points, chart);
}

return (
Expand All @@ -103,6 +104,7 @@ export default (View) => {
theme={theme}
coord={coord}
{...props}
animation={animationCfg}
/>
);
}
Expand Down

0 comments on commit dbce21b

Please sign in to comment.