|
@@ -114,16 +114,16 @@ class CurrentIll extends Component{
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- componentWillReceiveProps(nextProps){
|
|
|
+ //componentWillReceiveProps(nextProps){
|
|
|
/*const contHeightDiff = nextProps.data&&this.props.data&&nextProps.data.length!==this.props.data.length;
|
|
|
const dataDiff = !!nextProps.data!==!!this.props.data;
|
|
|
if(contHeightDiff||dataDiff){*/ //走慢病否,现病史消失滚动才出现bug修改
|
|
|
- if(this.props.data&&this.props.data.length>0){
|
|
|
+ /* if(this.props.data&&this.props.data.length>0){
|
|
|
return ;
|
|
|
}
|
|
|
- this.context.scrollArea.refresh();
|
|
|
+ this.context.scrollArea.refresh();*/
|
|
|
//}
|
|
|
- }
|
|
|
+ //}
|
|
|
render(){
|
|
|
const {hasMain,readMode,fuzhen,isChronic,type,fetchPushInfos,handleInput,isRead,saveText,searchData,totalHide,editClear,data} = this.props;
|
|
|
const {forbidInput,boxLeft,boxTop} = this.state;
|
|
@@ -153,7 +153,7 @@ class CurrentIll extends Component{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-CurrentIll.contextTypes = {
|
|
|
+/*CurrentIll.contextTypes = {
|
|
|
scrollArea: React.PropTypes.object
|
|
|
-};
|
|
|
+};*/
|
|
|
export default CurrentIll;
|