luolei 5 years ago
parent
commit
7b105f9a55

+ 1 - 1
src/common/components/NumberUnitPan/index.less

@@ -4,7 +4,7 @@
 }
 .pan{
   width: 280px;
-  
+  font-weight: normal;
   td{
     width: 68px;
     height:44px;

+ 6 - 6
src/common/components/Textarea/index.jsx

@@ -137,12 +137,12 @@ class Textarea extends Component {
       if(ev.keyCode==13){return false;}
     }
   }
-  shouldComponentUpdate(next){
-    if(JSON.stringify(next) == JSON.stringify(this.props)){
-      return false;
-    }
-    return true;
-  }
+  // shouldComponentUpdate(next){  切换字体设置不渲染
+  //   if(JSON.stringify(next) == JSON.stringify(this.props)){
+  //     return false;
+  //   }
+  //   return true;
+  // }
   componentWillReceiveProps(next){
     const isRead = this.props.isRead;
     if(next.isRead != isRead||(next.value!=this.props.value&&next.value&&next.value.indexOf("复诊")!=-1)){    //value对比解决复诊不显示bug,复诊对比解决关标跳到前面bug