()
| 17 | |
| 18 | // first add |
| 19 | componentDidMount() { |
| 20 | if(!this.isLayer()) { |
| 21 | const echartObj = this.renderEchartDom() |
| 22 | // on resize |
| 23 | if(echartObj) { |
| 24 | elementResizeEvent(this.refs.echartsDom, () => { |
| 25 | echartObj.resize() |
| 26 | }) |
| 27 | } |
| 28 | } else { |
| 29 | const { cellKey, echartParent } = this.props |
| 30 | echartParent.series[cellKey] = this.getSeries() |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // update |
| 35 | componentDidUpdate() { |
nothing calls this directly
no test coverage detected