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