Bläddra i källkod

血压类子项选中颜色修改

zhouna 5 år sedan
förälder
incheckning
80b50eb1fb

+ 6 - 0
src/common/less/variables.less

@@ -146,6 +146,9 @@
   &.selected-area{
      background: #338fff;
     color: #fff!important;
+    span{
+      color: #fff!important;
+    }
    }
  }
 .selected-tag{
@@ -158,6 +161,9 @@
   &.selected-area{
     background: #338fff;
     color: #fff!important;
+    span{
+      color: #fff!important;
+    }
   }
 }
 

+ 3 - 2
src/components/MultSpread/index.jsx

@@ -257,12 +257,13 @@ class MultSpread extends Component{
     }
   }
   getContClass(){
-    const {isImports,ikey,saveText,isExtBlue} = this.props;
+    const {isImports,ikey,saveText,isExtBlue,mouseSelect} = this.props;
     const labelInx = tools.getLabelIndex(ikey);
     const text = saveText&&saveText[+labelInx];
     const ext = !text&&isExtBlue?style['ext']:'';
     const orgBorder = isImports&&!text?style['orange-border']:'';
-    return classNames(orgBorder,ext);
+    const selectedArea = mouseSelect?style['selected-area']:'';
+    return classNames(orgBorder,ext,selectedArea);
   }
   render(){
     const {showAdd,addLabelItem,ikey,copyId,textPrefix,textSuffix,isExtBlue} = this.props;

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

@@ -8,6 +8,9 @@
   line-height: 20px;
   &.ext{
     color: @extBlue!important;
+    &.selected-area{
+      color: #fff!important;
+    }
   }
 }
 

+ 3 - 2
src/components/NumberDrop/index.jsx

@@ -208,9 +208,10 @@ class NumberDrop extends Component{
     return className(isSelected,noTag,orgBorder,ext,setFontColorSize(isExtBlue?2:val?2:isSelectAll?2:1),selectedArea);
   }
   getSpanClass(nospecial){       //将被替换的文字选中状态显示
-    const {isSelectAll} = this.props;
+    const {isSelectAll,mouseSelect} = this.props;
+    const selectedArea = mouseSelect?style['selected-area']:'';
     const cls = this.props.show?style['blued']:style['nol'];
-    return cls+' '+setFontColorSize(nospecial?'':2);
+    return className(cls,setFontColorSize(nospecial?'':2),selectedArea);
   }
   stopBubble(e){
     e.stopPropagation();

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

@@ -7,6 +7,9 @@
   &.selected-area{
     background: #338fff;
     color: #fff!important;
+    span{
+      color: #fff!important;
+    }
   }
   line-height: 22px;
   .blued{

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

@@ -17,6 +17,9 @@
   color:@placeholder-color;
   &.ext{
     color: @extBlue!important;
+    &.selected-area{
+    color: #fff!important;
+  }
   }
 }
 .tag:before{