|
@@ -197,7 +197,14 @@ class Multiple extends react.Component{
|
|
|
},this);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ getStyle(){
|
|
|
+ const {left,top,show} = this.props;
|
|
|
+ return {
|
|
|
+ left:left?left+'px':'0',
|
|
|
+ top:top?top+'px':'0',
|
|
|
+ display:show?'table':'none' //table onBlur阻止冒泡是为了修复multSpread中数字键盘点击触发最外层数字组件onBlur事件
|
|
|
+ }
|
|
|
+ }
|
|
|
render(){
|
|
|
const {placeholder,value,show,data} = this.props;
|
|
|
console.log(placeholder,'name')
|
|
@@ -212,7 +219,7 @@ class Multiple extends react.Component{
|
|
|
onBlur={this.handleBlur}
|
|
|
onInput={this.onChange}
|
|
|
onkeydown={handleEnter}
|
|
|
- contentEditable={editable}>ssss{value||placeholder}</div>
|
|
|
+ contentEditable={editable}>{value||placeholder}</div>
|
|
|
<div className={this.getListClass()} style={{top:boxTop,left:boxLeft}} contentEditable="false">
|
|
|
<ul>
|
|
|
{data&&data.map((it)=>{
|