@@ -146,7 +146,7 @@ class DrawLines extends Component {
146146 }
147147 render ( ) {
148148 const { startX, startY, drawing, endX, endY } = this . state ;
149- const { relation, currentRelation, edit } = this . props ;
149+ const { relation, currentRelation, edit, closeIcon } = this . props ;
150150 return < div className = "lines-area" ref = { me => { this . drawEle = me ; } } >
151151 < svg width = "100%" height = "100%" version = "1.1"
152152 xmlns = "http://www.w3.org/2000/svg" >
@@ -173,6 +173,7 @@ class DrawLines extends Component {
173173 endY = { item . target . y }
174174 data = { item }
175175 edit = { edit }
176+ closeIcon = { closeIcon }
176177 toTop = { this . topLine . bind ( this ) }
177178 currentRelation = { currentRelation }
178179 removeRelation = { this . removeRelation . bind ( this ) }
@@ -204,7 +205,8 @@ DrawLines.propTypes = {
204205 edit : PropTypes . bool . isRequired ,
205206 currentRelation : PropTypes . object . isRequired ,
206207 onChange : PropTypes . func . isRequired ,
207- changeIconStatus : PropTypes . func . isRequired
208+ changeIconStatus : PropTypes . func . isRequired ,
209+ closeIcon : PropTypes . string
208210} ;
209211DrawLines . defaultProps = {
210212 onDrawStart : ( ) => { } ,
0 commit comments