Explorar el Código

双击编辑输入bug修改2833

zhouna hace 5 años
padre
commit
87bee55cd1

+ 1 - 1
src/components/Multiple/index.jsx

@@ -163,7 +163,7 @@ class Multiple extends react.Component{
   }
   handleMouseDown(){
     const {i,setSelectArea,boxMark}= this.props;
-    setSelectArea({i,boxMark,dir:'start'});
+    !this.state.editable&&setSelectArea({i,boxMark,dir:'start'});
   }
   componentDidMount(){
     if(isIE()){

+ 1 - 1
src/components/RadioDrop/index.jsx

@@ -151,7 +151,7 @@ class RadioDrop extends Component{
   }
   handleMouseDown(){
     const {i,setSelectArea,boxMark}= this.props;
-    setSelectArea({i,boxMark,dir:'start'});
+    !this.state.editable&&setSelectArea({i,boxMark,dir:'start'});
   }
   render(){
     const {data,placeholder,show,value,hideTag,boxMark,select_start,i} = this.props;

+ 1 - 1
src/components/SpreadDrop/index.jsx

@@ -376,7 +376,7 @@ class SpreadDrop extends Component{
   }
   handleMouseDown(){
     const {i,setSelectArea,boxMark}= this.props;
-    setSelectArea({i,boxMark,dir:'start'});
+    !this.state.editable&&setSelectArea({i,boxMark,dir:'start'});
   }
   componentDidMount(){
     if(isIE()){

+ 0 - 1
src/utils/utils.js

@@ -151,7 +151,6 @@ export function recoveTag(state,action) {
       const sonMInx = arr.findIndex((it)=>it.flag=='3');
       arr.splice(sonMInx,1);
     }
-    console.log([...action.data].reverse()[0],arr[action.index]);
     const lastReTag = [...action.data].reverse()[0];
     if(lastReTag.tagType=='8'&&arr[action.index].tagType=='8'){
       //要恢复的标签组最后为文本标签,插入位置也为文本标签,则将2个合并为一个文本标签