|
@@ -23,8 +23,9 @@ class ItemBox extends Component {
|
|
|
this.handleInput = this.handleInput.bind(this);
|
|
|
}
|
|
|
getBoxStyle(){
|
|
|
- const {boxHeight,boxWidth,boxLineHeight,marginTop,backgroundColor} = this.props;
|
|
|
- return {width:boxWidth?boxWidth:undefined,height:boxHeight?boxHeight:undefined,lineHeight:boxLineHeight?boxLineHeight:'22px',marginTop:marginTop,backgroundColor:backgroundColor?backgroundColor:''};
|
|
|
+ const {boxHeight,boxWidth,boxLineHeight,marginTop,backgroundColor,style} = this.props;
|
|
|
+ const sty = {width:boxWidth?boxWidth:undefined,height:boxHeight?boxHeight:undefined,lineHeight:boxLineHeight?boxLineHeight:'22px',marginTop:marginTop,backgroundColor:backgroundColor?backgroundColor:''};
|
|
|
+ return style?Object.assign(style,sty):sty;
|
|
|
}
|
|
|
|
|
|
handleClick(e){
|