<Button type="primary" onClick={(e: any)=>{this.handleClick(e,"rectangle")}}> 矩形</Button>
handleAreaClick=(e:any,type:any)=> { if (this.state.drawingManager !=null) { this.state.drawingManager.open(); this.state.drawingManager.setDrawingMode(type); } }