未验证 提交 446f96de 编写于 作者: Y Yi Shen 提交者: GitHub

Merge pull request #12943 from susiwen8/fix-radar

Fix: radar model mixin with  AxisModelCommonMixin
......@@ -151,11 +151,9 @@ class RadarModel extends ComponentModel<RadarOption> implements CoordinateSystem
innerIndicatorOpt.name, innerIndicatorOpt
);
}
const model = zrUtil.extend(
new Model(innerIndicatorOpt, null, this.ecModel),
AxisModelCommonMixin.prototype
) as AxisBaseModel<InnerIndicatorAxisOption>;
const model = new Model(innerIndicatorOpt, null, this.ecModel) as AxisBaseModel<InnerIndicatorAxisOption>;
zrUtil.mixin(model, AxisModelCommonMixin.prototype);
// For triggerEvent.
model.mainType = 'radar';
model.componentIndex = this.componentIndex;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册