Browse Source

冗余代码删除

zhouna 5 years atrás
parent
commit
36a3244b04

+ 0 - 10
src/common/components/DropList/index.less

@@ -3,16 +3,6 @@
   .pop;
   padding: 0 0 10px;
   color: @text-color;
-  /*li{
-    line-height: 35px;
-    border:1px #fff solid;
-    padding: 0 15px;
-    white-space: nowrap;
-    cursor: pointer;
-  }*/
-  /*li:hover,.selected{
-    border-color:#3B9ED0;
-  }*/
 }
 .mclear{
   height: 32px;

+ 0 - 25
src/components/ListItem/index.jsx

@@ -37,31 +37,6 @@ class ListItem extends Component{
     }
     handleClick&&handleClick(item,isExclu,joint,index);
   }
-  getClass(id){     //无之后显示黑色,之前显示蓝色
-    const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;
-    if(exclusion!=''){
-      if(+id===+exclusion){
-        return style['selected'];
-      }else{
-        return style['exclusion'];
-      }
-    }else{
-      if(isExclu&&([...noneIds,...exists,...withs].length>0||ban.id)){
-        return style['exclusion'];
-      }
-      if(noneIds.includes(id)){
-        return style['none-selected'];
-      }
-      let existsIds = getIds(exists);
-      let withsIds = getIds(withs);
-      // if(existsIds.includes(id)||withsIds.includes(id)){
-      if(existsIds.includes(id)||withsIds.includes(id)||ban.id && ban.id==id){
-        return style['selected'];
-      }
-
-      return '';
-    }
-  }
   getLis(){
     const {exclusion,noneIds,exists,withs,ban,isSpecialPos,datas} = this.props;
     let type='';    //选中样式类型

+ 1 - 16
src/components/ListItem/index.less

@@ -2,18 +2,10 @@
 
 .row{
   display: inline-block;
-  // width: 200px;
   vertical-align: top;
   margin-left: 8px;
   max-height: 330px;
   overflow-y: auto;
-  /*li{
-    padding-left: 20px;
-    cursor: pointer;
-    .mult-li;
-    height: 30px;
-    line-height: 30px;
-  }*/
 }
 .independent{
   display: block;
@@ -31,14 +23,7 @@
     width: auto !important;
   }
 }
-/*.selected{
-  .select-li;
-}
-.none-selected{
-  .select-li;
-  background-image: url(../../common/images/then.png);
-}*/
-.no-push-data,.exclusion{
+.no-push-data{
   color:@disable-color;
 }
 .tag,.selected-tag{

+ 0 - 7
src/components/Multiple/SlideItem/index.less

@@ -1,7 +1,4 @@
 @import "~@less/mixin.less";
-/*.selected{
-    .select-li;
-  }*/
 .list{
   .pop;
   padding: 0 0 10px;
@@ -15,10 +12,6 @@
     text-align: center;
     cursor: pointer;
   }
-  // li:hover,.selected{
-  /*li:hover{
-    border-color:#3B9ED0;
-  }*/
 }
 .hide{
   display: none;

+ 0 - 3
src/components/Multiple/index.less

@@ -3,9 +3,6 @@
   display: inline-block;
   cursor: pointer;
 }
-/* .selected{
-    .select-li;
-  } */
 .tag,.selected-tag{
   cursor: pointer;
   line-height: 20px;