|
@@ -131,6 +131,7 @@ class NumberUnitDrop extends Component{
|
|
|
getClasses(){ //整个标签是否有值的状态
|
|
|
const {value,hideTag,show} = this.props;
|
|
|
const inpValue = this.state.value;
|
|
|
+ const blueBorder = this.state.editable?style['blue-border']:'';
|
|
|
const isSelected = value||inpValue?style['selected']:style['container'];
|
|
|
const noTag = hideTag?style['no-tag']:'';
|
|
|
if(show){
|
|
@@ -138,7 +139,7 @@ class NumberUnitDrop extends Component{
|
|
|
}else{
|
|
|
$(this.$cont.current).removeClass(style['borderd']);
|
|
|
}
|
|
|
- return className(isSelected,noTag);
|
|
|
+ return className(isSelected,noTag,blueBorder);
|
|
|
}
|
|
|
changeToEdit(e){ //整个标签双击编辑状态
|
|
|
e.stopPropagation();
|