|
@@ -323,6 +323,22 @@ class EditableSpan extends Component{
|
|
}
|
|
}
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
|
+ const {preIsExt,afterIsExt} = this.props;
|
|
|
|
+ const br = preIsExt&&!afterIsExt; //最后一个体征标签
|
|
|
|
+ if(br){
|
|
|
|
+ return <React.Fragment>
|
|
|
|
+ <span className={this.getClass()}
|
|
|
|
+ contentEditable='true'
|
|
|
|
+ ref={this.$span}
|
|
|
|
+ onInput={this.onChange}
|
|
|
|
+ onFocus={this.handleFocus}
|
|
|
|
+ onBlur={this.handleBlur}
|
|
|
|
+ onKeyDown={this.handleKeydown}
|
|
|
|
+ onClick={this.handleClick}
|
|
|
|
+ onKeyUp={this.handleKeyup}></span>
|
|
|
|
+ <br/>
|
|
|
|
+ </React.Fragment>;
|
|
|
|
+ }
|
|
return <span className={this.getClass()}
|
|
return <span className={this.getClass()}
|
|
contentEditable='true'
|
|
contentEditable='true'
|
|
ref={this.$span}
|
|
ref={this.$span}
|