Skip to content

Commit

Permalink
fix: CR
Browse files Browse the repository at this point in the history
  • Loading branch information
ACERY1 committed Oct 13, 2021
1 parent 5b72335 commit a17cd21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/f2-next/src/base/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ContainerComponent extends Component {
component.animate = animate;
return component;
});
this.components = isArray(components) ? components : [components];
this.components = components;
this.animate = animate;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/f2-next/src/chart/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Chart

// 交互
interaction: any;
creteInteractionController: ({ chart: any }) => any;
createInteractionController: ({ chart: any }) => any;
setInteraction: (type, cfg) => any;
initInteractions: () => any;

Expand All @@ -68,7 +68,7 @@ class Chart
// 初始化scales
this.scale = this.createScaleController();
// 创建交互事件控制器
this.interaction = this.creteInteractionController({ chart: this });
this.interaction = this.createInteractionController({ chart: this });
}

// 会调用子组件的 constructor 创建组件实例
Expand Down
2 changes: 1 addition & 1 deletion packages/f2-next/src/mixins/interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class InteractionMixin {

interaction: InteractionController;

creteInteractionController({ chart }) {
createInteractionController({ chart }) {
return new InteractionController(chart);
}

Expand Down

0 comments on commit a17cd21

Please sign in to comment.