Skip to content

Commit

Permalink
fix: revert legend setItems (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Apr 13, 2022
1 parent a769326 commit 18809ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/f2/src/components/legend/withLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ export default (View) => {
});
}

setItems(items) {
this.setState({
items,
});
}

getMaxItemBox(legendShape) {
let maxItemWidth = 0;
let maxItemHeight = 0;
Expand Down

0 comments on commit 18809ec

Please sign in to comment.