|
@@ -204,12 +204,14 @@ class NumberDrop extends Component{
|
|
|
const orgBorder = isImports&&!(val&&val!=placeholder)?style['orange-border']:'';
|
|
|
const ext = isExtBlue?style['ext']:'';
|
|
|
const noTag = hideTag?style['no-tag']:'';
|
|
|
- return className(isSelected,noTag,orgBorder,ext,setFontColorSize(isExtBlue?2:val?2:isSelectAll?2:1));
|
|
|
+ return className(isSelected,noTag,orgBorder,ext,setFontColorSize(val||isSelectAll?'2,6':isExtBlue?2:1),'prefixUnset');
|
|
|
}
|
|
|
getSpanClass(nospecial){ //将被替换的文字选中状态显示
|
|
|
- const {isSelectAll} = this.props;
|
|
|
+ const {isSelectAll,isExtBlue} = this.props;
|
|
|
+ const val = this.state.value;
|
|
|
const cls = this.props.show?style['blued']:style['nol'];
|
|
|
return cls+' '+setFontColorSize(nospecial?'':2);
|
|
|
+ return className(cls,setFontColorSize(val?'2,6':isSelectAll?'2,6':isExtBlue?2:1))
|
|
|
}
|
|
|
stopBubble(e){
|
|
|
e.stopPropagation();
|
|
@@ -251,7 +253,7 @@ class NumberDrop extends Component{
|
|
|
return <div className={this.getClasses(nospecial)}
|
|
|
style={{position:'relative'}}
|
|
|
onClick={allClick?this.handleNumClick:null}>
|
|
|
- <span className={`${setFontColorSize(val?'':isSelectAll?2:isExtBlue?2:1)}`}>{prefix}</span>
|
|
|
+ <span className={`${setFontColorSize(val?'':isSelectAll?2:isExtBlue?2:1)} prefixUnset`}>{prefix}</span>
|
|
|
<span onFocus={this.handleNumFocus}
|
|
|
onClick={allClick?null:this.handleNumClick}
|
|
|
contentEditable={true}
|
|
@@ -260,9 +262,9 @@ class NumberDrop extends Component{
|
|
|
onkeyup={this.handleKeyDowm}
|
|
|
onBlur={this.numInpBlur}
|
|
|
onInput={this.handleSpanInp}
|
|
|
- className={this.getSpanClass(nospecial)}
|
|
|
+ className={`${this.getSpanClass(nospecial)} 'prefixUnset'`}
|
|
|
> {val||placeholder}</span>
|
|
|
- <span className={`${setFontColorSize(val?'':isSelectAll?2:isExtBlue?2:1)}`}>{suffix}</span>
|
|
|
+ <span className={`${setFontColorSize(val?'':isSelectAll?2:isExtBlue?2:1)} prefixUnset`}>{suffix}</span>
|
|
|
<NumberPan handleSelect={this.select.bind(this)}
|
|
|
noString={formulaCode?true:false}
|
|
|
onClose={handleHide}
|