Skip to content

Commit

Permalink
fix: 图例类型定义, 除了 marker 其它继承 component (#3654)
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Oct 8, 2021
1 parent 3c89edf commit 6ba4cf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
ICanvas,
IGroup,
IShape,
CategoryLegendCfg,
LegendBackgroundCfg,
LegendItemNameCfg,
LegendItemValueCfg,
Expand Down Expand Up @@ -912,7 +913,7 @@ export interface G2LegendTitleCfg extends LegendTitleCfg {
/**
* 图例项配置
*/
export interface LegendCfg {
export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
/**
* 是否为自定义图例,当该属性为 true 时,需要声明 items 属性。
*/
Expand Down

0 comments on commit 6ba4cf9

Please sign in to comment.