|
@@ -137,12 +137,12 @@ class Textarea extends Component {
|
|
if(ev.keyCode==13){return false;}
|
|
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){
|
|
componentWillReceiveProps(next){
|
|
const isRead = this.props.isRead;
|
|
const isRead = this.props.isRead;
|
|
if(next.isRead != isRead||(next.value!=this.props.value&&next.value&&next.value.indexOf("复诊")!=-1)){ //value对比解决复诊不显示bug,复诊对比解决关标跳到前面bug
|
|
if(next.isRead != isRead||(next.value!=this.props.value&&next.value&&next.value.indexOf("复诊")!=-1)){ //value对比解决复诊不显示bug,复诊对比解决关标跳到前面bug
|