浏览代码

同伴选中状态bug修改

zhouna 6 年之前
父节点
当前提交
19dad21d8d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/SpreadDrop/index.jsx

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

@@ -156,7 +156,7 @@ class SpreadDrop extends Component{
 
   }
   setStateInit(){
-    const {nones,noneOn,noneIds,withOn,exists,nowOn,withs,exclusion,excluName} = deepClone(this.props.selecteds||[]);
+    const {nones,noneOn,noneIds,withOn,exists,nowOn,withs,exclusion,excluName,ban} = deepClone(this.props.selecteds||[]);
     this.setState({
       nones:nones||'',
       exists:exists||[],
@@ -167,7 +167,7 @@ class SpreadDrop extends Component{
       withOn:withOn||false,
       nowOn:nowOn||'',
       exclusion:exclusion||'',
-      ban:{},
+      ban:ban||{},
     });
   }
   clearState(){
@@ -437,7 +437,7 @@ class ListItem extends Component{
     handleClick&&handleClick(item,isExclu,joint,index);
   }
   getClass(id){     //无之后显示黑色,之前显示蓝色
-    const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;console.log(this.props)
+    const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;
     if(exclusion!=''){
       if(+id===+exclusion){
         return style['selected'];