|
|
@ -40,8 +40,7 @@ class Pie extends Component { |
|
|
window.removeEventListener('resize', this.resize); |
|
|
window.removeEventListener('resize', this.resize); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
// antd xs size
|
|
|
if (this.root.parentNode.clientWidth <= 380) { |
|
|
if (this.root.parentNode.clientWidth <= 480) { |
|
|
|
|
|
if (!this.state.legendBlock) { |
|
|
if (!this.state.legendBlock) { |
|
|
this.setState({ |
|
|
this.setState({ |
|
|
legendBlock: true, |
|
|
legendBlock: true, |
|
|
|